configure revision 168777
1#! /bin/sh
2# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#33 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for OpenBSM 1.0alpha14.
5#
6# Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77  	  /^X\/\(\/\).*/{ s//\1/; q; }
78  	  s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139	 case $as_dir in
140	 /*)
141	   if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149	     CONFIG_SHELL=$as_dir/$as_base
150	     export CONFIG_SHELL
151	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152	   fi;;
153	 esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='	' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" 	$as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253  # Remove one level of quotation (which was required for Make).
254  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255  ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260  # Discard the --no-reexec flag, and continue.
261  shift
262elif test "X$1" = X--fallback-echo; then
263  # Avoid inline document here, it may be left over
264  :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266  # Yippee, $echo works!
267  :
268else
269  # Restart under the correct shell.
270  exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274  # used as fallback echo
275  shift
276  cat <<EOF
277$*
278EOF
279  exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
284(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292       echo_test_string=`eval $cmd` &&
293       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294    then
295      break
296    fi
297  done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302   test "X$echo_testing_string" = "X$echo_test_string"; then
303  :
304else
305  # The Solaris, AIX, and Digital Unix default echo programs unquote
306  # backslashes.  This makes it impossible to quote backslashes using
307  #   echo "$something" | sed 's/\\/\\\\/g'
308  #
309  # So, first we look for a working echo in the user's PATH.
310
311  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312  for dir in $PATH /usr/ucb; do
313    IFS="$lt_save_ifs"
314    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317       test "X$echo_testing_string" = "X$echo_test_string"; then
318      echo="$dir/echo"
319      break
320    fi
321  done
322  IFS="$lt_save_ifs"
323
324  if test "X$echo" = Xecho; then
325    # We didn't find a better echo, so look for alternatives.
326    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328       test "X$echo_testing_string" = "X$echo_test_string"; then
329      # This shell has a builtin print -r that does the trick.
330      echo='print -r'
331    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332	 test "X$CONFIG_SHELL" != X/bin/ksh; then
333      # If we have ksh, try running configure again with it.
334      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335      export ORIGINAL_CONFIG_SHELL
336      CONFIG_SHELL=/bin/ksh
337      export CONFIG_SHELL
338      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339    else
340      # Try using printf.
341      echo='printf %s\n'
342      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344	 test "X$echo_testing_string" = "X$echo_test_string"; then
345	# Cool, printf works
346	:
347      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348	   test "X$echo_testing_string" = 'X\t' &&
349	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350	   test "X$echo_testing_string" = "X$echo_test_string"; then
351	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352	export CONFIG_SHELL
353	SHELL="$CONFIG_SHELL"
354	export SHELL
355	echo="$CONFIG_SHELL $0 --fallback-echo"
356      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357	   test "X$echo_testing_string" = 'X\t' &&
358	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359	   test "X$echo_testing_string" = "X$echo_test_string"; then
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      else
362	# maybe with a smaller string...
363	prev=:
364
365	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367	  then
368	    break
369	  fi
370	  prev="$cmd"
371	done
372
373	if test "$prev" != 'sed 50q "$0"'; then
374	  echo_test_string=`eval $prev`
375	  export echo_test_string
376	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377	else
378	  # Oops.  We lost completely, so just stick with echo.
379	  echo=echo
380	fi
381      fi
382    fi
383  fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete.  It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
425PACKAGE_NAME='OpenBSM'
426PACKAGE_TARNAME='openbsm'
427PACKAGE_VERSION='1.0alpha14'
428PACKAGE_STRING='OpenBSM 1.0alpha14'
429PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
430
431ac_unique_file="bin/auditreduce/auditreduce.c"
432# Factoring default headers for most tests.
433ac_includes_default="\
434#include <stdio.h>
435#if HAVE_SYS_TYPES_H
436# include <sys/types.h>
437#endif
438#if HAVE_SYS_STAT_H
439# include <sys/stat.h>
440#endif
441#if STDC_HEADERS
442# include <stdlib.h>
443# include <stddef.h>
444#else
445# if HAVE_STDLIB_H
446#  include <stdlib.h>
447# endif
448#endif
449#if HAVE_STRING_H
450# if !STDC_HEADERS && HAVE_MEMORY_H
451#  include <memory.h>
452# endif
453# include <string.h>
454#endif
455#if HAVE_STRINGS_H
456# include <strings.h>
457#endif
458#if HAVE_INTTYPES_H
459# include <inttypes.h>
460#else
461# if HAVE_STDINT_H
462#  include <stdint.h>
463# endif
464#endif
465#if HAVE_UNISTD_H
466# include <unistd.h>
467#endif"
468
469ac_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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOBJS HAVE_AUDIT_SYSCALLS_TRUE HAVE_AUDIT_SYSCALLS_FALSE LTLIBOBJS'
470ac_subst_files=''
471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513  # If the previous option needs an argument, assign it.
514  if test -n "$ac_prev"; then
515    eval "$ac_prev=\$ac_option"
516    ac_prev=
517    continue
518  fi
519
520  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522  # Accept the important Cygnus configure options, so we can diagnose typos.
523
524  case $ac_option in
525
526  -bindir | --bindir | --bindi | --bind | --bin | --bi)
527    ac_prev=bindir ;;
528  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529    bindir=$ac_optarg ;;
530
531  -build | --build | --buil | --bui | --bu)
532    ac_prev=build_alias ;;
533  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534    build_alias=$ac_optarg ;;
535
536  -cache-file | --cache-file | --cache-fil | --cache-fi \
537  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538    ac_prev=cache_file ;;
539  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541    cache_file=$ac_optarg ;;
542
543  --config-cache | -C)
544    cache_file=config.cache ;;
545
546  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547    ac_prev=datadir ;;
548  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549  | --da=*)
550    datadir=$ac_optarg ;;
551
552  -disable-* | --disable-*)
553    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554    # Reject names that are not valid shell variable names.
555    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557   { (exit 1); exit 1; }; }
558    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559    eval "enable_$ac_feature=no" ;;
560
561  -enable-* | --enable-*)
562    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563    # Reject names that are not valid shell variable names.
564    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566   { (exit 1); exit 1; }; }
567    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568    case $ac_option in
569      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570      *) ac_optarg=yes ;;
571    esac
572    eval "enable_$ac_feature='$ac_optarg'" ;;
573
574  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576  | --exec | --exe | --ex)
577    ac_prev=exec_prefix ;;
578  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580  | --exec=* | --exe=* | --ex=*)
581    exec_prefix=$ac_optarg ;;
582
583  -gas | --gas | --ga | --g)
584    # Obsolete; use --with-gas.
585    with_gas=yes ;;
586
587  -help | --help | --hel | --he | -h)
588    ac_init_help=long ;;
589  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590    ac_init_help=recursive ;;
591  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592    ac_init_help=short ;;
593
594  -host | --host | --hos | --ho)
595    ac_prev=host_alias ;;
596  -host=* | --host=* | --hos=* | --ho=*)
597    host_alias=$ac_optarg ;;
598
599  -includedir | --includedir | --includedi | --included | --include \
600  | --includ | --inclu | --incl | --inc)
601    ac_prev=includedir ;;
602  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603  | --includ=* | --inclu=* | --incl=* | --inc=*)
604    includedir=$ac_optarg ;;
605
606  -infodir | --infodir | --infodi | --infod | --info | --inf)
607    ac_prev=infodir ;;
608  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609    infodir=$ac_optarg ;;
610
611  -libdir | --libdir | --libdi | --libd)
612    ac_prev=libdir ;;
613  -libdir=* | --libdir=* | --libdi=* | --libd=*)
614    libdir=$ac_optarg ;;
615
616  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617  | --libexe | --libex | --libe)
618    ac_prev=libexecdir ;;
619  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620  | --libexe=* | --libex=* | --libe=*)
621    libexecdir=$ac_optarg ;;
622
623  -localstatedir | --localstatedir | --localstatedi | --localstated \
624  | --localstate | --localstat | --localsta | --localst \
625  | --locals | --local | --loca | --loc | --lo)
626    ac_prev=localstatedir ;;
627  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630    localstatedir=$ac_optarg ;;
631
632  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633    ac_prev=mandir ;;
634  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635    mandir=$ac_optarg ;;
636
637  -nfp | --nfp | --nf)
638    # Obsolete; use --without-fp.
639    with_fp=no ;;
640
641  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642  | --no-cr | --no-c | -n)
643    no_create=yes ;;
644
645  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647    no_recursion=yes ;;
648
649  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651  | --oldin | --oldi | --old | --ol | --o)
652    ac_prev=oldincludedir ;;
653  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656    oldincludedir=$ac_optarg ;;
657
658  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659    ac_prev=prefix ;;
660  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661    prefix=$ac_optarg ;;
662
663  -program-prefix | --program-prefix | --program-prefi | --program-pref \
664  | --program-pre | --program-pr | --program-p)
665    ac_prev=program_prefix ;;
666  -program-prefix=* | --program-prefix=* | --program-prefi=* \
667  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668    program_prefix=$ac_optarg ;;
669
670  -program-suffix | --program-suffix | --program-suffi | --program-suff \
671  | --program-suf | --program-su | --program-s)
672    ac_prev=program_suffix ;;
673  -program-suffix=* | --program-suffix=* | --program-suffi=* \
674  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675    program_suffix=$ac_optarg ;;
676
677  -program-transform-name | --program-transform-name \
678  | --program-transform-nam | --program-transform-na \
679  | --program-transform-n | --program-transform- \
680  | --program-transform | --program-transfor \
681  | --program-transfo | --program-transf \
682  | --program-trans | --program-tran \
683  | --progr-tra | --program-tr | --program-t)
684    ac_prev=program_transform_name ;;
685  -program-transform-name=* | --program-transform-name=* \
686  | --program-transform-nam=* | --program-transform-na=* \
687  | --program-transform-n=* | --program-transform-=* \
688  | --program-transform=* | --program-transfor=* \
689  | --program-transfo=* | --program-transf=* \
690  | --program-trans=* | --program-tran=* \
691  | --progr-tra=* | --program-tr=* | --program-t=*)
692    program_transform_name=$ac_optarg ;;
693
694  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695  | -silent | --silent | --silen | --sile | --sil)
696    silent=yes ;;
697
698  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699    ac_prev=sbindir ;;
700  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701  | --sbi=* | --sb=*)
702    sbindir=$ac_optarg ;;
703
704  -sharedstatedir | --sharedstatedir | --sharedstatedi \
705  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706  | --sharedst | --shareds | --shared | --share | --shar \
707  | --sha | --sh)
708    ac_prev=sharedstatedir ;;
709  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712  | --sha=* | --sh=*)
713    sharedstatedir=$ac_optarg ;;
714
715  -site | --site | --sit)
716    ac_prev=site ;;
717  -site=* | --site=* | --sit=*)
718    site=$ac_optarg ;;
719
720  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721    ac_prev=srcdir ;;
722  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723    srcdir=$ac_optarg ;;
724
725  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726  | --syscon | --sysco | --sysc | --sys | --sy)
727    ac_prev=sysconfdir ;;
728  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730    sysconfdir=$ac_optarg ;;
731
732  -target | --target | --targe | --targ | --tar | --ta | --t)
733    ac_prev=target_alias ;;
734  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735    target_alias=$ac_optarg ;;
736
737  -v | -verbose | --verbose | --verbos | --verbo | --verb)
738    verbose=yes ;;
739
740  -version | --version | --versio | --versi | --vers | -V)
741    ac_init_version=: ;;
742
743  -with-* | --with-*)
744    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745    # Reject names that are not valid shell variable names.
746    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747      { echo "$as_me: error: invalid package name: $ac_package" >&2
748   { (exit 1); exit 1; }; }
749    ac_package=`echo $ac_package| sed 's/-/_/g'`
750    case $ac_option in
751      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752      *) ac_optarg=yes ;;
753    esac
754    eval "with_$ac_package='$ac_optarg'" ;;
755
756  -without-* | --without-*)
757    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package | sed 's/-/_/g'`
763    eval "with_$ac_package=no" ;;
764
765  --x)
766    # Obsolete; use --with-x.
767    with_x=yes ;;
768
769  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770  | --x-incl | --x-inc | --x-in | --x-i)
771    ac_prev=x_includes ;;
772  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774    x_includes=$ac_optarg ;;
775
776  -x-libraries | --x-libraries | --x-librarie | --x-librari \
777  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778    ac_prev=x_libraries ;;
779  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781    x_libraries=$ac_optarg ;;
782
783  -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785   { (exit 1); exit 1; }; }
786    ;;
787
788  *=*)
789    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790    # Reject names that are not valid shell variable names.
791    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793   { (exit 1); exit 1; }; }
794    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795    eval "$ac_envvar='$ac_optarg'"
796    export $ac_envvar ;;
797
798  *)
799    # FIXME: should be removed in autoconf 3.0.
800    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804    ;;
805
806  esac
807done
808
809if test -n "$ac_prev"; then
810  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811  { echo "$as_me: error: missing argument to $ac_option" >&2
812   { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818  eval ac_val=$`echo $ac_var`
819  case $ac_val in
820    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822   { (exit 1); exit 1; }; };;
823  esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828	      localstatedir libdir includedir oldincludedir infodir mandir
829do
830  eval ac_val=$`echo $ac_var`
831  case $ac_val in
832    [\\/$]* | ?:[\\/]* ) ;;
833    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834   { (exit 1); exit 1; }; };;
835  esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847  if test "x$build_alias" = x; then
848    cross_compiling=maybe
849    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850    If a cross compiler is detected then cross compile mode will be used." >&2
851  elif test "x$build_alias" != "x$host_alias"; then
852    cross_compiling=yes
853  fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864  ac_srcdir_defaulted=yes
865  # Try the directory containing this script, then its parent.
866  ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868	 X"$0" : 'X\(//\)[^/]' \| \
869	 X"$0" : 'X\(//\)$' \| \
870	 X"$0" : 'X\(/\)' \| \
871	 .     : '\(.\)' 2>/dev/null ||
872echo X"$0" |
873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875  	  /^X\(\/\/\)$/{ s//\1/; q; }
876  	  /^X\(\/\).*/{ s//\1/; q; }
877  	  s/.*/./; q'`
878  srcdir=$ac_confdir
879  if test ! -r $srcdir/$ac_unique_file; then
880    srcdir=..
881  fi
882else
883  ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886  if test "$ac_srcdir_defaulted" = yes; then
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888   { (exit 1); exit 1; }; }
889  else
890    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891   { (exit 1); exit 1; }; }
892  fi
893fi
894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896   { (exit 1); exit 1; }; }
897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CC_set=${CC+set}
911ac_env_CC_value=$CC
912ac_cv_env_CC_set=${CC+set}
913ac_cv_env_CC_value=$CC
914ac_env_CFLAGS_set=${CFLAGS+set}
915ac_env_CFLAGS_value=$CFLAGS
916ac_cv_env_CFLAGS_set=${CFLAGS+set}
917ac_cv_env_CFLAGS_value=$CFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CPP_set=${CPP+set}
927ac_env_CPP_value=$CPP
928ac_cv_env_CPP_set=${CPP+set}
929ac_cv_env_CPP_value=$CPP
930ac_env_CXX_set=${CXX+set}
931ac_env_CXX_value=$CXX
932ac_cv_env_CXX_set=${CXX+set}
933ac_cv_env_CXX_value=$CXX
934ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_env_CXXFLAGS_value=$CXXFLAGS
936ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955  # Omit some internal or obsolete options to make the list less imposing.
956  # This message is too long to be a string in the A/UX 3.1 sh.
957  cat <<_ACEOF
958\`configure' configures OpenBSM 1.0alpha14 to adapt to many kinds of systems.
959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968  -h, --help              display this help and exit
969      --help=short        display options specific to this package
970      --help=recursive    display the short help of all the included packages
971  -V, --version           display version information and exit
972  -q, --quiet, --silent   do not print \`checking...' messages
973      --cache-file=FILE   cache test results in FILE [disabled]
974  -C, --config-cache      alias for \`--cache-file=config.cache'
975  -n, --no-create         do not create output files
976      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980  cat <<_ACEOF
981Installation directories:
982  --prefix=PREFIX         install architecture-independent files in PREFIX
983			  [$ac_default_prefix]
984  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985			  [PREFIX]
986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995  --bindir=DIR           user executables [EPREFIX/bin]
996  --sbindir=DIR          system admin executables [EPREFIX/sbin]
997  --libexecdir=DIR       program executables [EPREFIX/libexec]
998  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002  --libdir=DIR           object code libraries [EPREFIX/lib]
1003  --includedir=DIR       C header files [PREFIX/include]
1004  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005  --infodir=DIR          info documentation [PREFIX/info]
1006  --mandir=DIR           man documentation [PREFIX/man]
1007_ACEOF
1008
1009  cat <<\_ACEOF
1010
1011Program names:
1012  --program-prefix=PREFIX            prepend PREFIX to installed program names
1013  --program-suffix=SUFFIX            append SUFFIX to installed program names
1014  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016System types:
1017  --build=BUILD     configure for building on BUILD [guessed]
1018  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1019_ACEOF
1020fi
1021
1022if test -n "$ac_init_help"; then
1023  case $ac_init_help in
1024     short | recursive ) echo "Configuration of OpenBSM 1.0alpha14:";;
1025   esac
1026  cat <<\_ACEOF
1027
1028Optional Features:
1029  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1030  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1031  --enable-maintainer-mode  enable make rules and dependencies not useful
1032			  (and sometimes confusing) to the casual installer
1033  --enable-shared[=PKGS]
1034                          build shared libraries [default=yes]
1035  --enable-static[=PKGS]
1036                          build static libraries [default=yes]
1037  --enable-fast-install[=PKGS]
1038                          optimize for fast installation [default=yes]
1039  --disable-libtool-lock  avoid locking (might break parallel builds)
1040  --disable-dependency-tracking  speeds up one-time build
1041  --enable-dependency-tracking   do not reject slow dependency extractors
1042
1043Optional Packages:
1044  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047  --with-pic              try to use only PIC/non-PIC objects [default=use
1048                          both]
1049  --with-tags[=TAGS]
1050                          include additional configurations [automatic]
1051
1052Some influential environment variables:
1053  CC          C compiler command
1054  CFLAGS      C compiler flags
1055  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056              nonstandard directory <lib dir>
1057  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058              headers in a nonstandard directory <include dir>
1059  CPP         C preprocessor
1060  CXX         C++ compiler command
1061  CXXFLAGS    C++ compiler flags
1062  CXXCPP      C++ preprocessor
1063  F77         Fortran 77 compiler command
1064  FFLAGS      Fortran 77 compiler flags
1065
1066Use these variables to override the choices made by `configure' or to help
1067it to find libraries and programs with nonstandard names/locations.
1068
1069Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074  # If there are subdirs, report their specific --help.
1075  ac_popdir=`pwd`
1076  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077    test -d $ac_dir || continue
1078    ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082  # A "../" for each directory in $ac_dir_suffix.
1083  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085  ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089  .)  # No --srcdir option.  We are building in place.
1090    ac_srcdir=.
1091    if test -z "$ac_top_builddir"; then
1092       ac_top_srcdir=.
1093    else
1094       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095    fi ;;
1096  [\\/]* | ?:[\\/]* )  # Absolute path.
1097    ac_srcdir=$srcdir$ac_dir_suffix;
1098    ac_top_srcdir=$srcdir ;;
1099  *) # Relative path.
1100    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103
1104# Do not use `cd foo && pwd` to compute absolute paths, because
1105# the directories may not exist.
1106case `pwd` in
1107.) ac_abs_builddir="$ac_dir";;
1108*)
1109  case "$ac_dir" in
1110  .) ac_abs_builddir=`pwd`;;
1111  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113  esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117*)
1118  case ${ac_top_builddir}. in
1119  .) ac_abs_top_builddir=$ac_abs_builddir;;
1120  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122  esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_srcdir=$ac_srcdir;;
1126*)
1127  case $ac_srcdir in
1128  .) ac_abs_srcdir=$ac_abs_builddir;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135*)
1136  case $ac_top_srcdir in
1137  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140  esac;;
1141esac
1142
1143    cd $ac_dir
1144    # Check for guested configure; otherwise get Cygnus style configure.
1145    if test -f $ac_srcdir/configure.gnu; then
1146      echo
1147      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148    elif test -f $ac_srcdir/configure; then
1149      echo
1150      $SHELL $ac_srcdir/configure  --help=recursive
1151    elif test -f $ac_srcdir/configure.ac ||
1152	   test -f $ac_srcdir/configure.in; then
1153      echo
1154      $ac_configure --help
1155    else
1156      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157    fi
1158    cd $ac_popdir
1159  done
1160fi
1161
1162test -n "$ac_init_help" && exit 0
1163if $ac_init_version; then
1164  cat <<\_ACEOF
1165OpenBSM configure 1.0alpha14
1166generated by GNU Autoconf 2.59
1167
1168Copyright (C) 2003 Free Software Foundation, Inc.
1169This configure script is free software; the Free Software Foundation
1170gives unlimited permission to copy, distribute and modify it.
1171_ACEOF
1172  exit 0
1173fi
1174exec 5>config.log
1175cat >&5 <<_ACEOF
1176This file contains any messages produced by compilers while
1177running configure, to aid debugging if configure makes a mistake.
1178
1179It was created by OpenBSM $as_me 1.0alpha14, which was
1180generated by GNU Autoconf 2.59.  Invocation command line was
1181
1182  $ $0 $@
1183
1184_ACEOF
1185{
1186cat <<_ASUNAME
1187## --------- ##
1188## Platform. ##
1189## --------- ##
1190
1191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1192uname -m = `(uname -m) 2>/dev/null || echo unknown`
1193uname -r = `(uname -r) 2>/dev/null || echo unknown`
1194uname -s = `(uname -s) 2>/dev/null || echo unknown`
1195uname -v = `(uname -v) 2>/dev/null || echo unknown`
1196
1197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1198/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1199
1200/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1201/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1203hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1204/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1205/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1206/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1207
1208_ASUNAME
1209
1210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1211for as_dir in $PATH
1212do
1213  IFS=$as_save_IFS
1214  test -z "$as_dir" && as_dir=.
1215  echo "PATH: $as_dir"
1216done
1217
1218} >&5
1219
1220cat >&5 <<_ACEOF
1221
1222
1223## ----------- ##
1224## Core tests. ##
1225## ----------- ##
1226
1227_ACEOF
1228
1229
1230# Keep a trace of the command line.
1231# Strip out --no-create and --no-recursion so they do not pile up.
1232# Strip out --silent because we don't want to record it for future runs.
1233# Also quote any args containing shell meta-characters.
1234# Make two passes to allow for proper duplicate-argument suppression.
1235ac_configure_args=
1236ac_configure_args0=
1237ac_configure_args1=
1238ac_sep=
1239ac_must_keep_next=false
1240for ac_pass in 1 2
1241do
1242  for ac_arg
1243  do
1244    case $ac_arg in
1245    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1246    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247    | -silent | --silent | --silen | --sile | --sil)
1248      continue ;;
1249    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1250      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1251    esac
1252    case $ac_pass in
1253    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1254    2)
1255      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1256      if test $ac_must_keep_next = true; then
1257	ac_must_keep_next=false # Got value, back to normal.
1258      else
1259	case $ac_arg in
1260	  *=* | --config-cache | -C | -disable-* | --disable-* \
1261	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1262	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1263	  | -with-* | --with-* | -without-* | --without-* | --x)
1264	    case "$ac_configure_args0 " in
1265	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1266	    esac
1267	    ;;
1268	  -* ) ac_must_keep_next=true ;;
1269	esac
1270      fi
1271      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1272      # Get rid of the leading space.
1273      ac_sep=" "
1274      ;;
1275    esac
1276  done
1277done
1278$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1279$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1280
1281# When interrupted or exit'd, cleanup temporary files, and complete
1282# config.log.  We remove comments because anyway the quotes in there
1283# would cause problems or look ugly.
1284# WARNING: Be sure not to use single quotes in there, as some shells,
1285# such as our DU 5.0 friend, will then `close' the trap.
1286trap 'exit_status=$?
1287  # Save into config.log some information that might help in debugging.
1288  {
1289    echo
1290
1291    cat <<\_ASBOX
1292## ---------------- ##
1293## Cache variables. ##
1294## ---------------- ##
1295_ASBOX
1296    echo
1297    # The following way of writing the cache mishandles newlines in values,
1298{
1299  (set) 2>&1 |
1300    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1301    *ac_space=\ *)
1302      sed -n \
1303	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1304	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1305      ;;
1306    *)
1307      sed -n \
1308	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1309      ;;
1310    esac;
1311}
1312    echo
1313
1314    cat <<\_ASBOX
1315## ----------------- ##
1316## Output variables. ##
1317## ----------------- ##
1318_ASBOX
1319    echo
1320    for ac_var in $ac_subst_vars
1321    do
1322      eval ac_val=$`echo $ac_var`
1323      echo "$ac_var='"'"'$ac_val'"'"'"
1324    done | sort
1325    echo
1326
1327    if test -n "$ac_subst_files"; then
1328      cat <<\_ASBOX
1329## ------------- ##
1330## Output files. ##
1331## ------------- ##
1332_ASBOX
1333      echo
1334      for ac_var in $ac_subst_files
1335      do
1336	eval ac_val=$`echo $ac_var`
1337	echo "$ac_var='"'"'$ac_val'"'"'"
1338      done | sort
1339      echo
1340    fi
1341
1342    if test -s confdefs.h; then
1343      cat <<\_ASBOX
1344## ----------- ##
1345## confdefs.h. ##
1346## ----------- ##
1347_ASBOX
1348      echo
1349      sed "/^$/d" confdefs.h | sort
1350      echo
1351    fi
1352    test "$ac_signal" != 0 &&
1353      echo "$as_me: caught signal $ac_signal"
1354    echo "$as_me: exit $exit_status"
1355  } >&5
1356  rm -f core *.core &&
1357  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1358    exit $exit_status
1359     ' 0
1360for ac_signal in 1 2 13 15; do
1361  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1362done
1363ac_signal=0
1364
1365# confdefs.h avoids OS command line length limits that DEFS can exceed.
1366rm -rf conftest* confdefs.h
1367# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1368echo >confdefs.h
1369
1370# Predefined preprocessor variables.
1371
1372cat >>confdefs.h <<_ACEOF
1373#define PACKAGE_NAME "$PACKAGE_NAME"
1374_ACEOF
1375
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_VERSION "$PACKAGE_VERSION"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_STRING "$PACKAGE_STRING"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1394_ACEOF
1395
1396
1397# Let the site file select an alternate cache file if it wants to.
1398# Prefer explicitly selected file to automatically selected ones.
1399if test -z "$CONFIG_SITE"; then
1400  if test "x$prefix" != xNONE; then
1401    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1402  else
1403    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1404  fi
1405fi
1406for ac_site_file in $CONFIG_SITE; do
1407  if test -r "$ac_site_file"; then
1408    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1409echo "$as_me: loading site script $ac_site_file" >&6;}
1410    sed 's/^/| /' "$ac_site_file" >&5
1411    . "$ac_site_file"
1412  fi
1413done
1414
1415if test -r "$cache_file"; then
1416  # Some versions of bash will fail to source /dev/null (special
1417  # files actually), so we avoid doing that.
1418  if test -f "$cache_file"; then
1419    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1420echo "$as_me: loading cache $cache_file" >&6;}
1421    case $cache_file in
1422      [\\/]* | ?:[\\/]* ) . $cache_file;;
1423      *)                      . ./$cache_file;;
1424    esac
1425  fi
1426else
1427  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1428echo "$as_me: creating cache $cache_file" >&6;}
1429  >$cache_file
1430fi
1431
1432# Check that the precious variables saved in the cache have kept the same
1433# value.
1434ac_cache_corrupted=false
1435for ac_var in `(set) 2>&1 |
1436	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1437  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1438  eval ac_new_set=\$ac_env_${ac_var}_set
1439  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1440  eval ac_new_val="\$ac_env_${ac_var}_value"
1441  case $ac_old_set,$ac_new_set in
1442    set,)
1443      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1445      ac_cache_corrupted=: ;;
1446    ,set)
1447      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1448echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1449      ac_cache_corrupted=: ;;
1450    ,);;
1451    *)
1452      if test "x$ac_old_val" != "x$ac_new_val"; then
1453	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1454echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1455	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1456echo "$as_me:   former value:  $ac_old_val" >&2;}
1457	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1458echo "$as_me:   current value: $ac_new_val" >&2;}
1459	ac_cache_corrupted=:
1460      fi;;
1461  esac
1462  # Pass precious variables to config.status.
1463  if test "$ac_new_set" = set; then
1464    case $ac_new_val in
1465    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1466      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1467    *) ac_arg=$ac_var=$ac_new_val ;;
1468    esac
1469    case " $ac_configure_args " in
1470      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1471      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1472    esac
1473  fi
1474done
1475if $ac_cache_corrupted; then
1476  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1477echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1478  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1479echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1480   { (exit 1); exit 1; }; }
1481fi
1482
1483ac_ext=c
1484ac_cpp='$CPP $CPPFLAGS'
1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517ac_aux_dir=
1518for ac_dir in config $srcdir/config; do
1519  if test -f $ac_dir/install-sh; then
1520    ac_aux_dir=$ac_dir
1521    ac_install_sh="$ac_aux_dir/install-sh -c"
1522    break
1523  elif test -f $ac_dir/install.sh; then
1524    ac_aux_dir=$ac_dir
1525    ac_install_sh="$ac_aux_dir/install.sh -c"
1526    break
1527  elif test -f $ac_dir/shtool; then
1528    ac_aux_dir=$ac_dir
1529    ac_install_sh="$ac_aux_dir/shtool install -c"
1530    break
1531  fi
1532done
1533if test -z "$ac_aux_dir"; then
1534  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1535echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1536   { (exit 1); exit 1; }; }
1537fi
1538ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1539ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1541
1542          ac_config_headers="$ac_config_headers config/config.h"
1543
1544echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1545echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1546    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1547if test "${enable_maintainer_mode+set}" = set; then
1548  enableval="$enable_maintainer_mode"
1549  USE_MAINTAINER_MODE=$enableval
1550else
1551  USE_MAINTAINER_MODE=no
1552fi;
1553  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1554echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1555
1556
1557if test $USE_MAINTAINER_MODE = yes; then
1558  MAINTAINER_MODE_TRUE=
1559  MAINTAINER_MODE_FALSE='#'
1560else
1561  MAINTAINER_MODE_TRUE='#'
1562  MAINTAINER_MODE_FALSE=
1563fi
1564
1565  MAINT=$MAINTAINER_MODE_TRUE
1566
1567
1568
1569# Checks for programs.
1570ac_ext=c
1571ac_cpp='$CPP $CPPFLAGS'
1572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1574ac_compiler_gnu=$ac_cv_c_compiler_gnu
1575if test -n "$ac_tool_prefix"; then
1576  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1577set dummy ${ac_tool_prefix}gcc; ac_word=$2
1578echo "$as_me:$LINENO: checking for $ac_word" >&5
1579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580if test "${ac_cv_prog_CC+set}" = set; then
1581  echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583  if test -n "$CC"; then
1584  ac_cv_prog_CC="$CC" # Let the user override the test.
1585else
1586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587for as_dir in $PATH
1588do
1589  IFS=$as_save_IFS
1590  test -z "$as_dir" && as_dir=.
1591  for ac_exec_ext in '' $ac_executable_extensions; do
1592  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595    break 2
1596  fi
1597done
1598done
1599
1600fi
1601fi
1602CC=$ac_cv_prog_CC
1603if test -n "$CC"; then
1604  echo "$as_me:$LINENO: result: $CC" >&5
1605echo "${ECHO_T}$CC" >&6
1606else
1607  echo "$as_me:$LINENO: result: no" >&5
1608echo "${ECHO_T}no" >&6
1609fi
1610
1611fi
1612if test -z "$ac_cv_prog_CC"; then
1613  ac_ct_CC=$CC
1614  # Extract the first word of "gcc", so it can be a program name with args.
1615set dummy gcc; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1619  echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621  if test -n "$ac_ct_CC"; then
1622  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627  IFS=$as_save_IFS
1628  test -z "$as_dir" && as_dir=.
1629  for ac_exec_ext in '' $ac_executable_extensions; do
1630  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631    ac_cv_prog_ac_ct_CC="gcc"
1632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633    break 2
1634  fi
1635done
1636done
1637
1638fi
1639fi
1640ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641if test -n "$ac_ct_CC"; then
1642  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1643echo "${ECHO_T}$ac_ct_CC" >&6
1644else
1645  echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649  CC=$ac_ct_CC
1650else
1651  CC="$ac_cv_prog_CC"
1652fi
1653
1654if test -z "$CC"; then
1655  if test -n "$ac_tool_prefix"; then
1656  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1657set dummy ${ac_tool_prefix}cc; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661  echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663  if test -n "$CC"; then
1664  ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669  IFS=$as_save_IFS
1670  test -z "$as_dir" && as_dir=.
1671  for ac_exec_ext in '' $ac_executable_extensions; do
1672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673    ac_cv_prog_CC="${ac_tool_prefix}cc"
1674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675    break 2
1676  fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684  echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687  echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691fi
1692if test -z "$ac_cv_prog_CC"; then
1693  ac_ct_CC=$CC
1694  # Extract the first word of "cc", so it can be a program name with args.
1695set dummy cc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$ac_ct_CC"; then
1702  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_ac_ct_CC="cc"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729  CC=$ac_ct_CC
1730else
1731  CC="$ac_cv_prog_CC"
1732fi
1733
1734fi
1735if test -z "$CC"; then
1736  # Extract the first word of "cc", so it can be a program name with args.
1737set dummy cc; ac_word=$2
1738echo "$as_me:$LINENO: checking for $ac_word" >&5
1739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740if test "${ac_cv_prog_CC+set}" = set; then
1741  echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743  if test -n "$CC"; then
1744  ac_cv_prog_CC="$CC" # Let the user override the test.
1745else
1746  ac_prog_rejected=no
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    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1755       ac_prog_rejected=yes
1756       continue
1757     fi
1758    ac_cv_prog_CC="cc"
1759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760    break 2
1761  fi
1762done
1763done
1764
1765if test $ac_prog_rejected = yes; then
1766  # We found a bogon in the path, so make sure we never use it.
1767  set dummy $ac_cv_prog_CC
1768  shift
1769  if test $# != 0; then
1770    # We chose a different compiler from the bogus one.
1771    # However, it has the same basename, so the bogon will be chosen
1772    # first if we set CC to just the basename; use the full file name.
1773    shift
1774    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1775  fi
1776fi
1777fi
1778fi
1779CC=$ac_cv_prog_CC
1780if test -n "$CC"; then
1781  echo "$as_me:$LINENO: result: $CC" >&5
1782echo "${ECHO_T}$CC" >&6
1783else
1784  echo "$as_me:$LINENO: result: no" >&5
1785echo "${ECHO_T}no" >&6
1786fi
1787
1788fi
1789if test -z "$CC"; then
1790  if test -n "$ac_tool_prefix"; then
1791  for ac_prog in cl
1792  do
1793    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1794set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1795echo "$as_me:$LINENO: checking for $ac_word" >&5
1796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797if test "${ac_cv_prog_CC+set}" = set; then
1798  echo $ECHO_N "(cached) $ECHO_C" >&6
1799else
1800  if test -n "$CC"; then
1801  ac_cv_prog_CC="$CC" # Let the user override the test.
1802else
1803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804for as_dir in $PATH
1805do
1806  IFS=$as_save_IFS
1807  test -z "$as_dir" && as_dir=.
1808  for ac_exec_ext in '' $ac_executable_extensions; do
1809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812    break 2
1813  fi
1814done
1815done
1816
1817fi
1818fi
1819CC=$ac_cv_prog_CC
1820if test -n "$CC"; then
1821  echo "$as_me:$LINENO: result: $CC" >&5
1822echo "${ECHO_T}$CC" >&6
1823else
1824  echo "$as_me:$LINENO: result: no" >&5
1825echo "${ECHO_T}no" >&6
1826fi
1827
1828    test -n "$CC" && break
1829  done
1830fi
1831if test -z "$CC"; then
1832  ac_ct_CC=$CC
1833  for ac_prog in cl
1834do
1835  # Extract the first word of "$ac_prog", so it can be a program name with args.
1836set dummy $ac_prog; ac_word=$2
1837echo "$as_me:$LINENO: checking for $ac_word" >&5
1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840  echo $ECHO_N "(cached) $ECHO_C" >&6
1841else
1842  if test -n "$ac_ct_CC"; then
1843  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844else
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848  IFS=$as_save_IFS
1849  test -z "$as_dir" && as_dir=.
1850  for ac_exec_ext in '' $ac_executable_extensions; do
1851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852    ac_cv_prog_ac_ct_CC="$ac_prog"
1853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854    break 2
1855  fi
1856done
1857done
1858
1859fi
1860fi
1861ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862if test -n "$ac_ct_CC"; then
1863  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864echo "${ECHO_T}$ac_ct_CC" >&6
1865else
1866  echo "$as_me:$LINENO: result: no" >&5
1867echo "${ECHO_T}no" >&6
1868fi
1869
1870  test -n "$ac_ct_CC" && break
1871done
1872
1873  CC=$ac_ct_CC
1874fi
1875
1876fi
1877
1878
1879test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1880See \`config.log' for more details." >&5
1881echo "$as_me: error: no acceptable C compiler found in \$PATH
1882See \`config.log' for more details." >&2;}
1883   { (exit 1); exit 1; }; }
1884
1885# Provide some information about the compiler.
1886echo "$as_me:$LINENO:" \
1887     "checking for C compiler version" >&5
1888ac_compiler=`set X $ac_compile; echo $2`
1889{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1890  (eval $ac_compiler --version </dev/null >&5) 2>&5
1891  ac_status=$?
1892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893  (exit $ac_status); }
1894{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1895  (eval $ac_compiler -v </dev/null >&5) 2>&5
1896  ac_status=$?
1897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898  (exit $ac_status); }
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1900  (eval $ac_compiler -V </dev/null >&5) 2>&5
1901  ac_status=$?
1902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903  (exit $ac_status); }
1904
1905cat >conftest.$ac_ext <<_ACEOF
1906/* confdefs.h.  */
1907_ACEOF
1908cat confdefs.h >>conftest.$ac_ext
1909cat >>conftest.$ac_ext <<_ACEOF
1910/* end confdefs.h.  */
1911
1912int
1913main ()
1914{
1915
1916  ;
1917  return 0;
1918}
1919_ACEOF
1920ac_clean_files_save=$ac_clean_files
1921ac_clean_files="$ac_clean_files a.out a.exe b.out"
1922# Try to create an executable without -o first, disregard a.out.
1923# It will help us diagnose broken compilers, and finding out an intuition
1924# of exeext.
1925echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1926echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1927ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1928if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1929  (eval $ac_link_default) 2>&5
1930  ac_status=$?
1931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932  (exit $ac_status); }; then
1933  # Find the output, starting from the most likely.  This scheme is
1934# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1935# resort.
1936
1937# Be careful to initialize this variable, since it used to be cached.
1938# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1939ac_cv_exeext=
1940# b.out is created by i960 compilers.
1941for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1942do
1943  test -f "$ac_file" || continue
1944  case $ac_file in
1945    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1946	;;
1947    conftest.$ac_ext )
1948	# This is the source file.
1949	;;
1950    [ab].out )
1951	# We found the default executable, but exeext='' is most
1952	# certainly right.
1953	break;;
1954    *.* )
1955	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1956	# FIXME: I believe we export ac_cv_exeext for Libtool,
1957	# but it would be cool to find out if it's true.  Does anybody
1958	# maintain Libtool? --akim.
1959	export ac_cv_exeext
1960	break;;
1961    * )
1962	break;;
1963  esac
1964done
1965else
1966  echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1970See \`config.log' for more details." >&5
1971echo "$as_me: error: C compiler cannot create executables
1972See \`config.log' for more details." >&2;}
1973   { (exit 77); exit 77; }; }
1974fi
1975
1976ac_exeext=$ac_cv_exeext
1977echo "$as_me:$LINENO: result: $ac_file" >&5
1978echo "${ECHO_T}$ac_file" >&6
1979
1980# Check the compiler produces executables we can run.  If not, either
1981# the compiler is broken, or we cross compile.
1982echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1983echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1984# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1985# If not cross compiling, check that we can run a simple program.
1986if test "$cross_compiling" != yes; then
1987  if { ac_try='./$ac_file'
1988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989  (eval $ac_try) 2>&5
1990  ac_status=$?
1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992  (exit $ac_status); }; }; then
1993    cross_compiling=no
1994  else
1995    if test "$cross_compiling" = maybe; then
1996	cross_compiling=yes
1997    else
1998	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1999If you meant to cross compile, use \`--host'.
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: cannot run C compiled programs.
2002If you meant to cross compile, use \`--host'.
2003See \`config.log' for more details." >&2;}
2004   { (exit 1); exit 1; }; }
2005    fi
2006  fi
2007fi
2008echo "$as_me:$LINENO: result: yes" >&5
2009echo "${ECHO_T}yes" >&6
2010
2011rm -f a.out a.exe conftest$ac_cv_exeext b.out
2012ac_clean_files=$ac_clean_files_save
2013# Check the compiler produces executables we can run.  If not, either
2014# the compiler is broken, or we cross compile.
2015echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2016echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2017echo "$as_me:$LINENO: result: $cross_compiling" >&5
2018echo "${ECHO_T}$cross_compiling" >&6
2019
2020echo "$as_me:$LINENO: checking for suffix of executables" >&5
2021echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2023  (eval $ac_link) 2>&5
2024  ac_status=$?
2025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026  (exit $ac_status); }; then
2027  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2028# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2029# work properly (i.e., refer to `conftest.exe'), while it won't with
2030# `rm'.
2031for ac_file in conftest.exe conftest conftest.*; do
2032  test -f "$ac_file" || continue
2033  case $ac_file in
2034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2035    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2036	  export ac_cv_exeext
2037	  break;;
2038    * ) break;;
2039  esac
2040done
2041else
2042  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2043See \`config.log' for more details." >&5
2044echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2045See \`config.log' for more details." >&2;}
2046   { (exit 1); exit 1; }; }
2047fi
2048
2049rm -f conftest$ac_cv_exeext
2050echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2051echo "${ECHO_T}$ac_cv_exeext" >&6
2052
2053rm -f conftest.$ac_ext
2054EXEEXT=$ac_cv_exeext
2055ac_exeext=$EXEEXT
2056echo "$as_me:$LINENO: checking for suffix of object files" >&5
2057echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2058if test "${ac_cv_objext+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  cat >conftest.$ac_ext <<_ACEOF
2062/* confdefs.h.  */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h.  */
2067
2068int
2069main ()
2070{
2071
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076rm -f conftest.o conftest.obj
2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078  (eval $ac_compile) 2>&5
2079  ac_status=$?
2080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081  (exit $ac_status); }; then
2082  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2083  case $ac_file in
2084    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2085    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2086       break;;
2087  esac
2088done
2089else
2090  echo "$as_me: failed program was:" >&5
2091sed 's/^/| /' conftest.$ac_ext >&5
2092
2093{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2094See \`config.log' for more details." >&5
2095echo "$as_me: error: cannot compute suffix of object files: cannot compile
2096See \`config.log' for more details." >&2;}
2097   { (exit 1); exit 1; }; }
2098fi
2099
2100rm -f conftest.$ac_cv_objext conftest.$ac_ext
2101fi
2102echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2103echo "${ECHO_T}$ac_cv_objext" >&6
2104OBJEXT=$ac_cv_objext
2105ac_objext=$OBJEXT
2106echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2107echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2108if test "${ac_cv_c_compiler_gnu+set}" = set; then
2109  echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
2111  cat >conftest.$ac_ext <<_ACEOF
2112/* confdefs.h.  */
2113_ACEOF
2114cat confdefs.h >>conftest.$ac_ext
2115cat >>conftest.$ac_ext <<_ACEOF
2116/* end confdefs.h.  */
2117
2118int
2119main ()
2120{
2121#ifndef __GNUC__
2122       choke me
2123#endif
2124
2125  ;
2126  return 0;
2127}
2128_ACEOF
2129rm -f conftest.$ac_objext
2130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131  (eval $ac_compile) 2>conftest.er1
2132  ac_status=$?
2133  grep -v '^ *+' conftest.er1 >conftest.err
2134  rm -f conftest.er1
2135  cat conftest.err >&5
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); } &&
2138	 { ac_try='test -z "$ac_c_werror_flag"
2139			 || test ! -s conftest.err'
2140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141  (eval $ac_try) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }; } &&
2145	 { ac_try='test -s conftest.$ac_objext'
2146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147  (eval $ac_try) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }; }; then
2151  ac_compiler_gnu=yes
2152else
2153  echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156ac_compiler_gnu=no
2157fi
2158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159ac_cv_c_compiler_gnu=$ac_compiler_gnu
2160
2161fi
2162echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2163echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2164GCC=`test $ac_compiler_gnu = yes && echo yes`
2165ac_test_CFLAGS=${CFLAGS+set}
2166ac_save_CFLAGS=$CFLAGS
2167CFLAGS="-g"
2168echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2169echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2170if test "${ac_cv_prog_cc_g+set}" = set; then
2171  echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173  cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188rm -f conftest.$ac_objext
2189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190  (eval $ac_compile) 2>conftest.er1
2191  ac_status=$?
2192  grep -v '^ *+' conftest.er1 >conftest.err
2193  rm -f conftest.er1
2194  cat conftest.err >&5
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); } &&
2197	 { ac_try='test -z "$ac_c_werror_flag"
2198			 || test ! -s conftest.err'
2199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200  (eval $ac_try) 2>&5
2201  ac_status=$?
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); }; } &&
2204	 { ac_try='test -s conftest.$ac_objext'
2205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206  (eval $ac_try) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }; }; then
2210  ac_cv_prog_cc_g=yes
2211else
2212  echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215ac_cv_prog_cc_g=no
2216fi
2217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218fi
2219echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2220echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2221if test "$ac_test_CFLAGS" = set; then
2222  CFLAGS=$ac_save_CFLAGS
2223elif test $ac_cv_prog_cc_g = yes; then
2224  if test "$GCC" = yes; then
2225    CFLAGS="-g -O2"
2226  else
2227    CFLAGS="-g"
2228  fi
2229else
2230  if test "$GCC" = yes; then
2231    CFLAGS="-O2"
2232  else
2233    CFLAGS=
2234  fi
2235fi
2236echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2237echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2238if test "${ac_cv_prog_cc_stdc+set}" = set; then
2239  echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241  ac_cv_prog_cc_stdc=no
2242ac_save_CC=$CC
2243cat >conftest.$ac_ext <<_ACEOF
2244/* confdefs.h.  */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h.  */
2249#include <stdarg.h>
2250#include <stdio.h>
2251#include <sys/types.h>
2252#include <sys/stat.h>
2253/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2254struct buf { int x; };
2255FILE * (*rcsopen) (struct buf *, struct stat *, int);
2256static char *e (p, i)
2257     char **p;
2258     int i;
2259{
2260  return p[i];
2261}
2262static char *f (char * (*g) (char **, int), char **p, ...)
2263{
2264  char *s;
2265  va_list v;
2266  va_start (v,p);
2267  s = g (p, va_arg (v,int));
2268  va_end (v);
2269  return s;
2270}
2271
2272/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2273   function prototypes and stuff, but not '\xHH' hex character constants.
2274   These don't provoke an error unfortunately, instead are silently treated
2275   as 'x'.  The following induces an error, until -std1 is added to get
2276   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2277   array size at least.  It's necessary to write '\x00'==0 to get something
2278   that's true only with -std1.  */
2279int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2280
2281int test (int i, double x);
2282struct s1 {int (*f) (int a);};
2283struct s2 {int (*f) (double a);};
2284int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2285int argc;
2286char **argv;
2287int
2288main ()
2289{
2290return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295# Don't try gcc -ansi; that turns off useful extensions and
2296# breaks some systems' header files.
2297# AIX			-qlanglvl=ansi
2298# Ultrix and OSF/1	-std1
2299# HP-UX 10.20 and later	-Ae
2300# HP-UX older versions	-Aa -D_HPUX_SOURCE
2301# SVR4			-Xc -D__EXTENSIONS__
2302for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2303do
2304  CC="$ac_save_CC $ac_arg"
2305  rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307  (eval $ac_compile) 2>conftest.er1
2308  ac_status=$?
2309  grep -v '^ *+' conftest.er1 >conftest.err
2310  rm -f conftest.er1
2311  cat conftest.err >&5
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); } &&
2314	 { ac_try='test -z "$ac_c_werror_flag"
2315			 || test ! -s conftest.err'
2316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317  (eval $ac_try) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; } &&
2321	 { ac_try='test -s conftest.$ac_objext'
2322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323  (eval $ac_try) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; }; then
2327  ac_cv_prog_cc_stdc=$ac_arg
2328break
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333fi
2334rm -f conftest.err conftest.$ac_objext
2335done
2336rm -f conftest.$ac_ext conftest.$ac_objext
2337CC=$ac_save_CC
2338
2339fi
2340
2341case "x$ac_cv_prog_cc_stdc" in
2342  x|xno)
2343    echo "$as_me:$LINENO: result: none needed" >&5
2344echo "${ECHO_T}none needed" >&6 ;;
2345  *)
2346    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2347echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2348    CC="$CC $ac_cv_prog_cc_stdc" ;;
2349esac
2350
2351# Some people use a C++ compiler to compile C.  Since we use `exit',
2352# in C++ we need to declare it.  In case someone uses the same compiler
2353# for both compiling C and C++ we need to have the C++ compiler decide
2354# the declaration of exit, since it's the most demanding environment.
2355cat >conftest.$ac_ext <<_ACEOF
2356#ifndef __cplusplus
2357  choke me
2358#endif
2359_ACEOF
2360rm -f conftest.$ac_objext
2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362  (eval $ac_compile) 2>conftest.er1
2363  ac_status=$?
2364  grep -v '^ *+' conftest.er1 >conftest.err
2365  rm -f conftest.er1
2366  cat conftest.err >&5
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); } &&
2369	 { ac_try='test -z "$ac_c_werror_flag"
2370			 || test ! -s conftest.err'
2371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372  (eval $ac_try) 2>&5
2373  ac_status=$?
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); }; } &&
2376	 { ac_try='test -s conftest.$ac_objext'
2377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378  (eval $ac_try) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; }; then
2382  for ac_declaration in \
2383   '' \
2384   'extern "C" void std::exit (int) throw (); using std::exit;' \
2385   'extern "C" void std::exit (int); using std::exit;' \
2386   'extern "C" void exit (int) throw ();' \
2387   'extern "C" void exit (int);' \
2388   'void exit (int);'
2389do
2390  cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h.  */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h.  */
2396$ac_declaration
2397#include <stdlib.h>
2398int
2399main ()
2400{
2401exit (42);
2402  ;
2403  return 0;
2404}
2405_ACEOF
2406rm -f conftest.$ac_objext
2407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408  (eval $ac_compile) 2>conftest.er1
2409  ac_status=$?
2410  grep -v '^ *+' conftest.er1 >conftest.err
2411  rm -f conftest.er1
2412  cat conftest.err >&5
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); } &&
2415	 { ac_try='test -z "$ac_c_werror_flag"
2416			 || test ! -s conftest.err'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; } &&
2422	 { ac_try='test -s conftest.$ac_objext'
2423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424  (eval $ac_try) 2>&5
2425  ac_status=$?
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); }; }; then
2428  :
2429else
2430  echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433continue
2434fi
2435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436  cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h.  */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h.  */
2442$ac_declaration
2443int
2444main ()
2445{
2446exit (42);
2447  ;
2448  return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext
2452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453  (eval $ac_compile) 2>conftest.er1
2454  ac_status=$?
2455  grep -v '^ *+' conftest.er1 >conftest.err
2456  rm -f conftest.er1
2457  cat conftest.err >&5
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); } &&
2460	 { ac_try='test -z "$ac_c_werror_flag"
2461			 || test ! -s conftest.err'
2462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463  (eval $ac_try) 2>&5
2464  ac_status=$?
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); }; } &&
2467	 { ac_try='test -s conftest.$ac_objext'
2468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469  (eval $ac_try) 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; }; then
2473  break
2474else
2475  echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478fi
2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480done
2481rm -f conftest*
2482if test -n "$ac_declaration"; then
2483  echo '#ifdef __cplusplus' >>confdefs.h
2484  echo $ac_declaration      >>confdefs.h
2485  echo '#endif'             >>confdefs.h
2486fi
2487
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494ac_ext=c
2495ac_cpp='$CPP $CPPFLAGS'
2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
2500# Find a good install program.  We prefer a C program (faster),
2501# so one script is as good as another.  But avoid the broken or
2502# incompatible versions:
2503# SysV /etc/install, /usr/sbin/install
2504# SunOS /usr/etc/install
2505# IRIX /sbin/install
2506# AIX /bin/install
2507# AmigaOS /C/install, which installs bootblocks on floppy discs
2508# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2511# OS/2's system install, which has a completely different semantic
2512# ./install, which can be erroneously created by make from ./install.sh.
2513echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2514echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2515if test -z "$INSTALL"; then
2516if test "${ac_cv_path_install+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520for as_dir in $PATH
2521do
2522  IFS=$as_save_IFS
2523  test -z "$as_dir" && as_dir=.
2524  # Account for people who put trailing slashes in PATH elements.
2525case $as_dir/ in
2526  ./ | .// | /cC/* | \
2527  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2529  /usr/ucb/* ) ;;
2530  *)
2531    # OSF1 and SCO ODT 3.0 have their own names for install.
2532    # Don't use installbsd from OSF since it installs stuff as root
2533    # by default.
2534    for ac_prog in ginstall scoinst install; do
2535      for ac_exec_ext in '' $ac_executable_extensions; do
2536	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2537	  if test $ac_prog = install &&
2538	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539	    # AIX install.  It has an incompatible calling convention.
2540	    :
2541	  elif test $ac_prog = install &&
2542	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543	    # program-specific install script used by HP pwplus--don't use.
2544	    :
2545	  else
2546	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2547	    break 3
2548	  fi
2549	fi
2550      done
2551    done
2552    ;;
2553esac
2554done
2555
2556
2557fi
2558  if test "${ac_cv_path_install+set}" = set; then
2559    INSTALL=$ac_cv_path_install
2560  else
2561    # As a last resort, use the slow shell script.  We don't cache a
2562    # path for INSTALL within a source directory, because that will
2563    # break other packages using the cache if that directory is
2564    # removed, or if the path is relative.
2565    INSTALL=$ac_install_sh
2566  fi
2567fi
2568echo "$as_me:$LINENO: result: $INSTALL" >&5
2569echo "${ECHO_T}$INSTALL" >&6
2570
2571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572# It thinks the first close brace ends the variable substitution.
2573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579# Check whether --enable-shared or --disable-shared was given.
2580if test "${enable_shared+set}" = set; then
2581  enableval="$enable_shared"
2582  p=${PACKAGE-default}
2583    case $enableval in
2584    yes) enable_shared=yes ;;
2585    no) enable_shared=no ;;
2586    *)
2587      enable_shared=no
2588      # Look at the argument we got.  We use all the common list separators.
2589      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2590      for pkg in $enableval; do
2591	IFS="$lt_save_ifs"
2592	if test "X$pkg" = "X$p"; then
2593	  enable_shared=yes
2594	fi
2595      done
2596      IFS="$lt_save_ifs"
2597      ;;
2598    esac
2599else
2600  enable_shared=yes
2601fi;
2602
2603# Check whether --enable-static or --disable-static was given.
2604if test "${enable_static+set}" = set; then
2605  enableval="$enable_static"
2606  p=${PACKAGE-default}
2607    case $enableval in
2608    yes) enable_static=yes ;;
2609    no) enable_static=no ;;
2610    *)
2611     enable_static=no
2612      # Look at the argument we got.  We use all the common list separators.
2613      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2614      for pkg in $enableval; do
2615	IFS="$lt_save_ifs"
2616	if test "X$pkg" = "X$p"; then
2617	  enable_static=yes
2618	fi
2619      done
2620      IFS="$lt_save_ifs"
2621      ;;
2622    esac
2623else
2624  enable_static=yes
2625fi;
2626
2627# Check whether --enable-fast-install or --disable-fast-install was given.
2628if test "${enable_fast_install+set}" = set; then
2629  enableval="$enable_fast_install"
2630  p=${PACKAGE-default}
2631    case $enableval in
2632    yes) enable_fast_install=yes ;;
2633    no) enable_fast_install=no ;;
2634    *)
2635      enable_fast_install=no
2636      # Look at the argument we got.  We use all the common list separators.
2637      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2638      for pkg in $enableval; do
2639	IFS="$lt_save_ifs"
2640	if test "X$pkg" = "X$p"; then
2641	  enable_fast_install=yes
2642	fi
2643      done
2644      IFS="$lt_save_ifs"
2645      ;;
2646    esac
2647else
2648  enable_fast_install=yes
2649fi;
2650
2651# Make sure we can run config.sub.
2652$ac_config_sub sun4 >/dev/null 2>&1 ||
2653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2655   { (exit 1); exit 1; }; }
2656
2657echo "$as_me:$LINENO: checking build system type" >&5
2658echo $ECHO_N "checking build system type... $ECHO_C" >&6
2659if test "${ac_cv_build+set}" = set; then
2660  echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662  ac_cv_build_alias=$build_alias
2663test -z "$ac_cv_build_alias" &&
2664  ac_cv_build_alias=`$ac_config_guess`
2665test -z "$ac_cv_build_alias" &&
2666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668   { (exit 1); exit 1; }; }
2669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2672   { (exit 1); exit 1; }; }
2673
2674fi
2675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676echo "${ECHO_T}$ac_cv_build" >&6
2677build=$ac_cv_build
2678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2681
2682
2683echo "$as_me:$LINENO: checking host system type" >&5
2684echo $ECHO_N "checking host system type... $ECHO_C" >&6
2685if test "${ac_cv_host+set}" = set; then
2686  echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688  ac_cv_host_alias=$host_alias
2689test -z "$ac_cv_host_alias" &&
2690  ac_cv_host_alias=$ac_cv_build_alias
2691ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2692  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2693echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2694   { (exit 1); exit 1; }; }
2695
2696fi
2697echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698echo "${ECHO_T}$ac_cv_host" >&6
2699host=$ac_cv_host
2700host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2701host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2702host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2703
2704
2705echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2706echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2707if test "${lt_cv_path_SED+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  # Loop through the user's path and test for sed and gsed.
2711# Then use that list of sed's as ones to test for truncation.
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715  IFS=$as_save_IFS
2716  test -z "$as_dir" && as_dir=.
2717  for lt_ac_prog in sed gsed; do
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2720        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2721      fi
2722    done
2723  done
2724done
2725lt_ac_max=0
2726lt_ac_count=0
2727# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2728# along with /bin/sed that truncates output.
2729for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2730  test ! -f $lt_ac_sed && continue
2731  cat /dev/null > conftest.in
2732  lt_ac_count=0
2733  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2734  # Check for GNU sed and select it if it is found.
2735  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2736    lt_cv_path_SED=$lt_ac_sed
2737    break
2738  fi
2739  while true; do
2740    cat conftest.in conftest.in >conftest.tmp
2741    mv conftest.tmp conftest.in
2742    cp conftest.in conftest.nl
2743    echo >>conftest.nl
2744    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2745    cmp -s conftest.out conftest.nl || break
2746    # 10000 chars as input seems more than enough
2747    test $lt_ac_count -gt 10 && break
2748    lt_ac_count=`expr $lt_ac_count + 1`
2749    if test $lt_ac_count -gt $lt_ac_max; then
2750      lt_ac_max=$lt_ac_count
2751      lt_cv_path_SED=$lt_ac_sed
2752    fi
2753  done
2754done
2755
2756fi
2757
2758SED=$lt_cv_path_SED
2759echo "$as_me:$LINENO: result: $SED" >&5
2760echo "${ECHO_T}$SED" >&6
2761
2762echo "$as_me:$LINENO: checking for egrep" >&5
2763echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2764if test "${ac_cv_prog_egrep+set}" = set; then
2765  echo $ECHO_N "(cached) $ECHO_C" >&6
2766else
2767  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2768    then ac_cv_prog_egrep='grep -E'
2769    else ac_cv_prog_egrep='egrep'
2770    fi
2771fi
2772echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2773echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2774 EGREP=$ac_cv_prog_egrep
2775
2776
2777
2778# Check whether --with-gnu-ld or --without-gnu-ld was given.
2779if test "${with_gnu_ld+set}" = set; then
2780  withval="$with_gnu_ld"
2781  test "$withval" = no || with_gnu_ld=yes
2782else
2783  with_gnu_ld=no
2784fi;
2785ac_prog=ld
2786if test "$GCC" = yes; then
2787  # Check if gcc -print-prog-name=ld gives a path.
2788  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2789echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2790  case $host in
2791  *-*-mingw*)
2792    # gcc leaves a trailing carriage return which upsets mingw
2793    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2794  *)
2795    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2796  esac
2797  case $ac_prog in
2798    # Accept absolute paths.
2799    [\\/]* | ?:[\\/]*)
2800      re_direlt='/[^/][^/]*/\.\./'
2801      # Canonicalize the pathname of ld
2802      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2803      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2804	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2805      done
2806      test -z "$LD" && LD="$ac_prog"
2807      ;;
2808  "")
2809    # If it fails, then pretend we aren't using GCC.
2810    ac_prog=ld
2811    ;;
2812  *)
2813    # If it is relative, then search for the first ld in PATH.
2814    with_gnu_ld=unknown
2815    ;;
2816  esac
2817elif test "$with_gnu_ld" = yes; then
2818  echo "$as_me:$LINENO: checking for GNU ld" >&5
2819echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2820else
2821  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2822echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2823fi
2824if test "${lt_cv_path_LD+set}" = set; then
2825  echo $ECHO_N "(cached) $ECHO_C" >&6
2826else
2827  if test -z "$LD"; then
2828  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2829  for ac_dir in $PATH; do
2830    IFS="$lt_save_ifs"
2831    test -z "$ac_dir" && ac_dir=.
2832    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2833      lt_cv_path_LD="$ac_dir/$ac_prog"
2834      # Check to see if the program is GNU ld.  I'd rather use --version,
2835      # but apparently some variants of GNU ld only accept -v.
2836      # Break only if it was the GNU/non-GNU ld that we prefer.
2837      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2838      *GNU* | *'with BFD'*)
2839	test "$with_gnu_ld" != no && break
2840	;;
2841      *)
2842	test "$with_gnu_ld" != yes && break
2843	;;
2844      esac
2845    fi
2846  done
2847  IFS="$lt_save_ifs"
2848else
2849  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2850fi
2851fi
2852
2853LD="$lt_cv_path_LD"
2854if test -n "$LD"; then
2855  echo "$as_me:$LINENO: result: $LD" >&5
2856echo "${ECHO_T}$LD" >&6
2857else
2858  echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6
2860fi
2861test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2862echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2863   { (exit 1); exit 1; }; }
2864echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2865echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2866if test "${lt_cv_prog_gnu_ld+set}" = set; then
2867  echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869  # I'd rather use --version here, but apparently some GNU lds only accept -v.
2870case `$LD -v 2>&1 </dev/null` in
2871*GNU* | *'with BFD'*)
2872  lt_cv_prog_gnu_ld=yes
2873  ;;
2874*)
2875  lt_cv_prog_gnu_ld=no
2876  ;;
2877esac
2878fi
2879echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2880echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2881with_gnu_ld=$lt_cv_prog_gnu_ld
2882
2883
2884echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2885echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2886if test "${lt_cv_ld_reload_flag+set}" = set; then
2887  echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889  lt_cv_ld_reload_flag='-r'
2890fi
2891echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2892echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2893reload_flag=$lt_cv_ld_reload_flag
2894case $reload_flag in
2895"" | " "*) ;;
2896*) reload_flag=" $reload_flag" ;;
2897esac
2898reload_cmds='$LD$reload_flag -o $output$reload_objs'
2899case $host_os in
2900  darwin*)
2901    if test "$GCC" = yes; then
2902      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2903    else
2904      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2905    fi
2906    ;;
2907esac
2908
2909echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2910echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2911if test "${lt_cv_path_NM+set}" = set; then
2912  echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914  if test -n "$NM"; then
2915  # Let the user override the test.
2916  lt_cv_path_NM="$NM"
2917else
2918  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2919  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2920    IFS="$lt_save_ifs"
2921    test -z "$ac_dir" && ac_dir=.
2922    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2923    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2924      # Check to see if the nm accepts a BSD-compat flag.
2925      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2926      #   nm: unknown option "B" ignored
2927      # Tru64's nm complains that /dev/null is an invalid object file
2928      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2929      */dev/null* | *'Invalid file or object type'*)
2930	lt_cv_path_NM="$tmp_nm -B"
2931	break
2932        ;;
2933      *)
2934	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2935	*/dev/null*)
2936	  lt_cv_path_NM="$tmp_nm -p"
2937	  break
2938	  ;;
2939	*)
2940	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2941	  continue # so that we can try to find one that supports BSD flags
2942	  ;;
2943	esac
2944      esac
2945    fi
2946  done
2947  IFS="$lt_save_ifs"
2948  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2949fi
2950fi
2951echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2952echo "${ECHO_T}$lt_cv_path_NM" >&6
2953NM="$lt_cv_path_NM"
2954
2955echo "$as_me:$LINENO: checking whether ln -s works" >&5
2956echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2957LN_S=$as_ln_s
2958if test "$LN_S" = "ln -s"; then
2959  echo "$as_me:$LINENO: result: yes" >&5
2960echo "${ECHO_T}yes" >&6
2961else
2962  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2963echo "${ECHO_T}no, using $LN_S" >&6
2964fi
2965
2966echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2967echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2968if test "${lt_cv_deplibs_check_method+set}" = set; then
2969  echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971  lt_cv_file_magic_cmd='$MAGIC_CMD'
2972lt_cv_file_magic_test_file=
2973lt_cv_deplibs_check_method='unknown'
2974# Need to set the preceding variable on all platforms that support
2975# interlibrary dependencies.
2976# 'none' -- dependencies not supported.
2977# `unknown' -- same as none, but documents that we really don't know.
2978# 'pass_all' -- all dependencies passed with no checks.
2979# 'test_compile' -- check by making test program.
2980# 'file_magic [[regex]]' -- check by looking for files in library path
2981# which responds to the $file_magic_cmd with a given extended regex.
2982# If you have `file' or equivalent on your system and you're not sure
2983# whether `pass_all' will *always* work, you probably want this one.
2984
2985case $host_os in
2986aix4* | aix5*)
2987  lt_cv_deplibs_check_method=pass_all
2988  ;;
2989
2990beos*)
2991  lt_cv_deplibs_check_method=pass_all
2992  ;;
2993
2994bsdi[45]*)
2995  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2996  lt_cv_file_magic_cmd='/usr/bin/file -L'
2997  lt_cv_file_magic_test_file=/shlib/libc.so
2998  ;;
2999
3000cygwin*)
3001  # func_win32_libid is a shell function defined in ltmain.sh
3002  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3003  lt_cv_file_magic_cmd='func_win32_libid'
3004  ;;
3005
3006mingw* | pw32*)
3007  # Base MSYS/MinGW do not provide the 'file' command needed by
3008  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3009  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3010  lt_cv_file_magic_cmd='$OBJDUMP -f'
3011  ;;
3012
3013darwin* | rhapsody*)
3014  lt_cv_deplibs_check_method=pass_all
3015  ;;
3016
3017freebsd* | kfreebsd*-gnu | dragonfly*)
3018  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3019    case $host_cpu in
3020    i*86 )
3021      # Not sure whether the presence of OpenBSD here was a mistake.
3022      # Let's accept both of them until this is cleared up.
3023      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3024      lt_cv_file_magic_cmd=/usr/bin/file
3025      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3026      ;;
3027    esac
3028  else
3029    lt_cv_deplibs_check_method=pass_all
3030  fi
3031  ;;
3032
3033gnu*)
3034  lt_cv_deplibs_check_method=pass_all
3035  ;;
3036
3037hpux10.20* | hpux11*)
3038  lt_cv_file_magic_cmd=/usr/bin/file
3039  case $host_cpu in
3040  ia64*)
3041    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3042    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3043    ;;
3044  hppa*64*)
3045    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]'
3046    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3047    ;;
3048  *)
3049    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3050    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3051    ;;
3052  esac
3053  ;;
3054
3055irix5* | irix6* | nonstopux*)
3056  case $LD in
3057  *-32|*"-32 ") libmagic=32-bit;;
3058  *-n32|*"-n32 ") libmagic=N32;;
3059  *-64|*"-64 ") libmagic=64-bit;;
3060  *) libmagic=never-match;;
3061  esac
3062  lt_cv_deplibs_check_method=pass_all
3063  ;;
3064
3065# This must be Linux ELF.
3066linux*)
3067  lt_cv_deplibs_check_method=pass_all
3068  ;;
3069
3070netbsd*)
3071  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3072    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3073  else
3074    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3075  fi
3076  ;;
3077
3078newos6*)
3079  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3080  lt_cv_file_magic_cmd=/usr/bin/file
3081  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3082  ;;
3083
3084nto-qnx*)
3085  lt_cv_deplibs_check_method=unknown
3086  ;;
3087
3088openbsd*)
3089  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3090    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3091  else
3092    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3093  fi
3094  ;;
3095
3096osf3* | osf4* | osf5*)
3097  lt_cv_deplibs_check_method=pass_all
3098  ;;
3099
3100sco3.2v5*)
3101  lt_cv_deplibs_check_method=pass_all
3102  ;;
3103
3104solaris*)
3105  lt_cv_deplibs_check_method=pass_all
3106  ;;
3107
3108sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3109  case $host_vendor in
3110  motorola)
3111    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]'
3112    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3113    ;;
3114  ncr)
3115    lt_cv_deplibs_check_method=pass_all
3116    ;;
3117  sequent)
3118    lt_cv_file_magic_cmd='/bin/file'
3119    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3120    ;;
3121  sni)
3122    lt_cv_file_magic_cmd='/bin/file'
3123    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3124    lt_cv_file_magic_test_file=/lib/libc.so
3125    ;;
3126  siemens)
3127    lt_cv_deplibs_check_method=pass_all
3128    ;;
3129  esac
3130  ;;
3131
3132sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3133  lt_cv_deplibs_check_method=pass_all
3134  ;;
3135esac
3136
3137fi
3138echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3139echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3140file_magic_cmd=$lt_cv_file_magic_cmd
3141deplibs_check_method=$lt_cv_deplibs_check_method
3142test -z "$deplibs_check_method" && deplibs_check_method=unknown
3143
3144
3145
3146
3147# If no C compiler was specified, use CC.
3148LTCC=${LTCC-"$CC"}
3149
3150# Allow CC to be a program name with arguments.
3151compiler=$CC
3152
3153
3154# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3155if test "${enable_libtool_lock+set}" = set; then
3156  enableval="$enable_libtool_lock"
3157
3158fi;
3159test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3160
3161# Some flags need to be propagated to the compiler or linker for good
3162# libtool support.
3163case $host in
3164ia64-*-hpux*)
3165  # Find out which ABI we are using.
3166  echo 'int i;' > conftest.$ac_ext
3167  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3168  (eval $ac_compile) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }; then
3172    case `/usr/bin/file conftest.$ac_objext` in
3173    *ELF-32*)
3174      HPUX_IA64_MODE="32"
3175      ;;
3176    *ELF-64*)
3177      HPUX_IA64_MODE="64"
3178      ;;
3179    esac
3180  fi
3181  rm -rf conftest*
3182  ;;
3183*-*-irix6*)
3184  # Find out which ABI we are using.
3185  echo '#line 3185 "configure"' > conftest.$ac_ext
3186  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187  (eval $ac_compile) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; then
3191   if test "$lt_cv_prog_gnu_ld" = yes; then
3192    case `/usr/bin/file conftest.$ac_objext` in
3193    *32-bit*)
3194      LD="${LD-ld} -melf32bsmip"
3195      ;;
3196    *N32*)
3197      LD="${LD-ld} -melf32bmipn32"
3198      ;;
3199    *64-bit*)
3200      LD="${LD-ld} -melf64bmip"
3201      ;;
3202    esac
3203   else
3204    case `/usr/bin/file conftest.$ac_objext` in
3205    *32-bit*)
3206      LD="${LD-ld} -32"
3207      ;;
3208    *N32*)
3209      LD="${LD-ld} -n32"
3210      ;;
3211    *64-bit*)
3212      LD="${LD-ld} -64"
3213      ;;
3214    esac
3215   fi
3216  fi
3217  rm -rf conftest*
3218  ;;
3219
3220x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3221  # Find out which ABI we are using.
3222  echo 'int i;' > conftest.$ac_ext
3223  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3224  (eval $ac_compile) 2>&5
3225  ac_status=$?
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); }; then
3228    case `/usr/bin/file conftest.o` in
3229    *32-bit*)
3230      case $host in
3231        x86_64-*linux*)
3232          LD="${LD-ld} -m elf_i386"
3233          ;;
3234        ppc64-*linux*|powerpc64-*linux*)
3235          LD="${LD-ld} -m elf32ppclinux"
3236          ;;
3237        s390x-*linux*)
3238          LD="${LD-ld} -m elf_s390"
3239          ;;
3240        sparc64-*linux*)
3241          LD="${LD-ld} -m elf32_sparc"
3242          ;;
3243      esac
3244      ;;
3245    *64-bit*)
3246      case $host in
3247        x86_64-*linux*)
3248          LD="${LD-ld} -m elf_x86_64"
3249          ;;
3250        ppc*-*linux*|powerpc*-*linux*)
3251          LD="${LD-ld} -m elf64ppc"
3252          ;;
3253        s390*-*linux*)
3254          LD="${LD-ld} -m elf64_s390"
3255          ;;
3256        sparc*-*linux*)
3257          LD="${LD-ld} -m elf64_sparc"
3258          ;;
3259      esac
3260      ;;
3261    esac
3262  fi
3263  rm -rf conftest*
3264  ;;
3265
3266*-*-sco3.2v5*)
3267  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3268  SAVE_CFLAGS="$CFLAGS"
3269  CFLAGS="$CFLAGS -belf"
3270  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3271echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3272if test "${lt_cv_cc_needs_belf+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  ac_ext=c
3276ac_cpp='$CPP $CPPFLAGS'
3277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280
3281     cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h.  */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296rm -f conftest.$ac_objext conftest$ac_exeext
3297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298  (eval $ac_link) 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } &&
3305	 { ac_try='test -z "$ac_c_werror_flag"
3306			 || test ! -s conftest.err'
3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308  (eval $ac_try) 2>&5
3309  ac_status=$?
3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); }; } &&
3312	 { ac_try='test -s conftest$ac_exeext'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; }; then
3318  lt_cv_cc_needs_belf=yes
3319else
3320  echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323lt_cv_cc_needs_belf=no
3324fi
3325rm -f conftest.err conftest.$ac_objext \
3326      conftest$ac_exeext conftest.$ac_ext
3327     ac_ext=c
3328ac_cpp='$CPP $CPPFLAGS'
3329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333fi
3334echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3335echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3336  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3337    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3338    CFLAGS="$SAVE_CFLAGS"
3339  fi
3340  ;;
3341
3342esac
3343
3344need_locks="$enable_libtool_lock"
3345
3346
3347ac_ext=c
3348ac_cpp='$CPP $CPPFLAGS'
3349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3353echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3354# On Suns, sometimes $CPP names a directory.
3355if test -n "$CPP" && test -d "$CPP"; then
3356  CPP=
3357fi
3358if test -z "$CPP"; then
3359  if test "${ac_cv_prog_CPP+set}" = set; then
3360  echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362      # Double quotes because CPP needs to be expanded
3363    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364    do
3365      ac_preproc_ok=false
3366for ac_c_preproc_warn_flag in '' yes
3367do
3368  # Use a header file that comes with gcc, so configuring glibc
3369  # with a fresh cross-compiler works.
3370  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371  # <limits.h> exists even on freestanding compilers.
3372  # On the NeXT, cc -E runs the code through the compiler's parser,
3373  # not just through cpp. "Syntax error" is here to catch this case.
3374  cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h.  */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h.  */
3380#ifdef __STDC__
3381# include <limits.h>
3382#else
3383# include <assert.h>
3384#endif
3385		     Syntax error
3386_ACEOF
3387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3388  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } >/dev/null; then
3395  if test -s conftest.err; then
3396    ac_cpp_err=$ac_c_preproc_warn_flag
3397    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398  else
3399    ac_cpp_err=
3400  fi
3401else
3402  ac_cpp_err=yes
3403fi
3404if test -z "$ac_cpp_err"; then
3405  :
3406else
3407  echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410  # Broken: fails on valid input.
3411continue
3412fi
3413rm -f conftest.err conftest.$ac_ext
3414
3415  # OK, works on sane cases.  Now check whether non-existent headers
3416  # can be detected and how.
3417  cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h.  */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h.  */
3423#include <ac_nonexistent.h>
3424_ACEOF
3425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427  ac_status=$?
3428  grep -v '^ *+' conftest.er1 >conftest.err
3429  rm -f conftest.er1
3430  cat conftest.err >&5
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); } >/dev/null; then
3433  if test -s conftest.err; then
3434    ac_cpp_err=$ac_c_preproc_warn_flag
3435    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436  else
3437    ac_cpp_err=
3438  fi
3439else
3440  ac_cpp_err=yes
3441fi
3442if test -z "$ac_cpp_err"; then
3443  # Broken: success on invalid input.
3444continue
3445else
3446  echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
3449  # Passes both tests.
3450ac_preproc_ok=:
3451break
3452fi
3453rm -f conftest.err conftest.$ac_ext
3454
3455done
3456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457rm -f conftest.err conftest.$ac_ext
3458if $ac_preproc_ok; then
3459  break
3460fi
3461
3462    done
3463    ac_cv_prog_CPP=$CPP
3464
3465fi
3466  CPP=$ac_cv_prog_CPP
3467else
3468  ac_cv_prog_CPP=$CPP
3469fi
3470echo "$as_me:$LINENO: result: $CPP" >&5
3471echo "${ECHO_T}$CPP" >&6
3472ac_preproc_ok=false
3473for ac_c_preproc_warn_flag in '' yes
3474do
3475  # Use a header file that comes with gcc, so configuring glibc
3476  # with a fresh cross-compiler works.
3477  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478  # <limits.h> exists even on freestanding compilers.
3479  # On the NeXT, cc -E runs the code through the compiler's parser,
3480  # not just through cpp. "Syntax error" is here to catch this case.
3481  cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h.  */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h.  */
3487#ifdef __STDC__
3488# include <limits.h>
3489#else
3490# include <assert.h>
3491#endif
3492		     Syntax error
3493_ACEOF
3494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } >/dev/null; then
3502  if test -s conftest.err; then
3503    ac_cpp_err=$ac_c_preproc_warn_flag
3504    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3505  else
3506    ac_cpp_err=
3507  fi
3508else
3509  ac_cpp_err=yes
3510fi
3511if test -z "$ac_cpp_err"; then
3512  :
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517  # Broken: fails on valid input.
3518continue
3519fi
3520rm -f conftest.err conftest.$ac_ext
3521
3522  # OK, works on sane cases.  Now check whether non-existent headers
3523  # can be detected and how.
3524  cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h.  */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h.  */
3530#include <ac_nonexistent.h>
3531_ACEOF
3532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3533  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3534  ac_status=$?
3535  grep -v '^ *+' conftest.er1 >conftest.err
3536  rm -f conftest.er1
3537  cat conftest.err >&5
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); } >/dev/null; then
3540  if test -s conftest.err; then
3541    ac_cpp_err=$ac_c_preproc_warn_flag
3542    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3543  else
3544    ac_cpp_err=
3545  fi
3546else
3547  ac_cpp_err=yes
3548fi
3549if test -z "$ac_cpp_err"; then
3550  # Broken: success on invalid input.
3551continue
3552else
3553  echo "$as_me: failed program was:" >&5
3554sed 's/^/| /' conftest.$ac_ext >&5
3555
3556  # Passes both tests.
3557ac_preproc_ok=:
3558break
3559fi
3560rm -f conftest.err conftest.$ac_ext
3561
3562done
3563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564rm -f conftest.err conftest.$ac_ext
3565if $ac_preproc_ok; then
3566  :
3567else
3568  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3569See \`config.log' for more details." >&5
3570echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3571See \`config.log' for more details." >&2;}
3572   { (exit 1); exit 1; }; }
3573fi
3574
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581
3582echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3584if test "${ac_cv_header_stdc+set}" = set; then
3585  echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587  cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h.  */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h.  */
3593#include <stdlib.h>
3594#include <stdarg.h>
3595#include <string.h>
3596#include <float.h>
3597
3598int
3599main ()
3600{
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext
3607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608  (eval $ac_compile) 2>conftest.er1
3609  ac_status=$?
3610  grep -v '^ *+' conftest.er1 >conftest.err
3611  rm -f conftest.er1
3612  cat conftest.err >&5
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); } &&
3615	 { ac_try='test -z "$ac_c_werror_flag"
3616			 || test ! -s conftest.err'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; } &&
3622	 { ac_try='test -s conftest.$ac_objext'
3623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624  (eval $ac_try) 2>&5
3625  ac_status=$?
3626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); }; }; then
3628  ac_cv_header_stdc=yes
3629else
3630  echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
3633ac_cv_header_stdc=no
3634fi
3635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636
3637if test $ac_cv_header_stdc = yes; then
3638  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3639  cat >conftest.$ac_ext <<_ACEOF
3640/* confdefs.h.  */
3641_ACEOF
3642cat confdefs.h >>conftest.$ac_ext
3643cat >>conftest.$ac_ext <<_ACEOF
3644/* end confdefs.h.  */
3645#include <string.h>
3646
3647_ACEOF
3648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649  $EGREP "memchr" >/dev/null 2>&1; then
3650  :
3651else
3652  ac_cv_header_stdc=no
3653fi
3654rm -f conftest*
3655
3656fi
3657
3658if test $ac_cv_header_stdc = yes; then
3659  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3660  cat >conftest.$ac_ext <<_ACEOF
3661/* confdefs.h.  */
3662_ACEOF
3663cat confdefs.h >>conftest.$ac_ext
3664cat >>conftest.$ac_ext <<_ACEOF
3665/* end confdefs.h.  */
3666#include <stdlib.h>
3667
3668_ACEOF
3669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670  $EGREP "free" >/dev/null 2>&1; then
3671  :
3672else
3673  ac_cv_header_stdc=no
3674fi
3675rm -f conftest*
3676
3677fi
3678
3679if test $ac_cv_header_stdc = yes; then
3680  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3681  if test "$cross_compiling" = yes; then
3682  :
3683else
3684  cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h.  */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h.  */
3690#include <ctype.h>
3691#if ((' ' & 0x0FF) == 0x020)
3692# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3693# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3694#else
3695# define ISLOWER(c) \
3696		   (('a' <= (c) && (c) <= 'i') \
3697		     || ('j' <= (c) && (c) <= 'r') \
3698		     || ('s' <= (c) && (c) <= 'z'))
3699# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3700#endif
3701
3702#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3703int
3704main ()
3705{
3706  int i;
3707  for (i = 0; i < 256; i++)
3708    if (XOR (islower (i), ISLOWER (i))
3709	|| toupper (i) != TOUPPER (i))
3710      exit(2);
3711  exit (0);
3712}
3713_ACEOF
3714rm -f conftest$ac_exeext
3715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716  (eval $ac_link) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  :
3726else
3727  echo "$as_me: program exited with status $ac_status" >&5
3728echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731( exit $ac_status )
3732ac_cv_header_stdc=no
3733fi
3734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3735fi
3736fi
3737fi
3738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3739echo "${ECHO_T}$ac_cv_header_stdc" >&6
3740if test $ac_cv_header_stdc = yes; then
3741
3742cat >>confdefs.h <<\_ACEOF
3743#define STDC_HEADERS 1
3744_ACEOF
3745
3746fi
3747
3748# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3759		  inttypes.h stdint.h unistd.h
3760do
3761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773$ac_includes_default
3774
3775#include <$ac_header>
3776_ACEOF
3777rm -f conftest.$ac_objext
3778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779  (eval $ac_compile) 2>conftest.er1
3780  ac_status=$?
3781  grep -v '^ *+' conftest.er1 >conftest.err
3782  rm -f conftest.er1
3783  cat conftest.err >&5
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); } &&
3786	 { ac_try='test -z "$ac_c_werror_flag"
3787			 || test ! -s conftest.err'
3788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789  (eval $ac_try) 2>&5
3790  ac_status=$?
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); }; } &&
3793	 { ac_try='test -s conftest.$ac_objext'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; }; then
3799  eval "$as_ac_Header=yes"
3800else
3801  echo "$as_me: failed program was:" >&5
3802sed 's/^/| /' conftest.$ac_ext >&5
3803
3804eval "$as_ac_Header=no"
3805fi
3806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3807fi
3808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3810if test `eval echo '${'$as_ac_Header'}'` = yes; then
3811  cat >>confdefs.h <<_ACEOF
3812#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3813_ACEOF
3814
3815fi
3816
3817done
3818
3819
3820
3821for ac_header in dlfcn.h
3822do
3823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3824if eval "test \"\${$as_ac_Header+set}\" = set"; then
3825  echo "$as_me:$LINENO: checking for $ac_header" >&5
3826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3827if eval "test \"\${$as_ac_Header+set}\" = set"; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829fi
3830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3832else
3833  # Is the header compilable?
3834echo "$as_me:$LINENO: checking $ac_header usability" >&5
3835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3836cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842$ac_includes_default
3843#include <$ac_header>
3844_ACEOF
3845rm -f conftest.$ac_objext
3846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847  (eval $ac_compile) 2>conftest.er1
3848  ac_status=$?
3849  grep -v '^ *+' conftest.er1 >conftest.err
3850  rm -f conftest.er1
3851  cat conftest.err >&5
3852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853  (exit $ac_status); } &&
3854	 { ac_try='test -z "$ac_c_werror_flag"
3855			 || test ! -s conftest.err'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; } &&
3861	 { ac_try='test -s conftest.$ac_objext'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; }; then
3867  ac_header_compiler=yes
3868else
3869  echo "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872ac_header_compiler=no
3873fi
3874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3876echo "${ECHO_T}$ac_header_compiler" >&6
3877
3878# Is the header present?
3879echo "$as_me:$LINENO: checking $ac_header presence" >&5
3880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3881cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h.  */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h.  */
3887#include <$ac_header>
3888_ACEOF
3889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891  ac_status=$?
3892  grep -v '^ *+' conftest.er1 >conftest.err
3893  rm -f conftest.er1
3894  cat conftest.err >&5
3895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896  (exit $ac_status); } >/dev/null; then
3897  if test -s conftest.err; then
3898    ac_cpp_err=$ac_c_preproc_warn_flag
3899    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3900  else
3901    ac_cpp_err=
3902  fi
3903else
3904  ac_cpp_err=yes
3905fi
3906if test -z "$ac_cpp_err"; then
3907  ac_header_preproc=yes
3908else
3909  echo "$as_me: failed program was:" >&5
3910sed 's/^/| /' conftest.$ac_ext >&5
3911
3912  ac_header_preproc=no
3913fi
3914rm -f conftest.err conftest.$ac_ext
3915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3916echo "${ECHO_T}$ac_header_preproc" >&6
3917
3918# So?  What about this header?
3919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3920  yes:no: )
3921    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3923    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3925    ac_header_preproc=yes
3926    ;;
3927  no:yes:* )
3928    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3930    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3931echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3932    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3934    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3935echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3936    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3938    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3940    (
3941      cat <<\_ASBOX
3942## ----------------------------------------------- ##
3943## Report this to trustedbsd-audit@TrustesdBSD.org ##
3944## ----------------------------------------------- ##
3945_ASBOX
3946    ) |
3947      sed "s/^/$as_me: WARNING:     /" >&2
3948    ;;
3949esac
3950echo "$as_me:$LINENO: checking for $ac_header" >&5
3951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3952if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  eval "$as_ac_Header=\$ac_header_preproc"
3956fi
3957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3959
3960fi
3961if test `eval echo '${'$as_ac_Header'}'` = yes; then
3962  cat >>confdefs.h <<_ACEOF
3963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3964_ACEOF
3965
3966fi
3967
3968done
3969
3970ac_ext=cc
3971ac_cpp='$CXXCPP $CPPFLAGS'
3972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3975if test -n "$ac_tool_prefix"; then
3976  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3977  do
3978    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980echo "$as_me:$LINENO: checking for $ac_word" >&5
3981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982if test "${ac_cv_prog_CXX+set}" = set; then
3983  echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985  if test -n "$CXX"; then
3986  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993  for ac_exec_ext in '' $ac_executable_extensions; do
3994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997    break 2
3998  fi
3999done
4000done
4001
4002fi
4003fi
4004CXX=$ac_cv_prog_CXX
4005if test -n "$CXX"; then
4006  echo "$as_me:$LINENO: result: $CXX" >&5
4007echo "${ECHO_T}$CXX" >&6
4008else
4009  echo "$as_me:$LINENO: result: no" >&5
4010echo "${ECHO_T}no" >&6
4011fi
4012
4013    test -n "$CXX" && break
4014  done
4015fi
4016if test -z "$CXX"; then
4017  ac_ct_CXX=$CXX
4018  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4019do
4020  # Extract the first word of "$ac_prog", so it can be a program name with args.
4021set dummy $ac_prog; ac_word=$2
4022echo "$as_me:$LINENO: checking for $ac_word" >&5
4023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4025  echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027  if test -n "$ac_ct_CXX"; then
4028  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035  for ac_exec_ext in '' $ac_executable_extensions; do
4036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037    ac_cv_prog_ac_ct_CXX="$ac_prog"
4038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042done
4043
4044fi
4045fi
4046ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4047if test -n "$ac_ct_CXX"; then
4048  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4049echo "${ECHO_T}$ac_ct_CXX" >&6
4050else
4051  echo "$as_me:$LINENO: result: no" >&5
4052echo "${ECHO_T}no" >&6
4053fi
4054
4055  test -n "$ac_ct_CXX" && break
4056done
4057test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4058
4059  CXX=$ac_ct_CXX
4060fi
4061
4062
4063# Provide some information about the compiler.
4064echo "$as_me:$LINENO:" \
4065     "checking for C++ compiler version" >&5
4066ac_compiler=`set X $ac_compile; echo $2`
4067{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4068  (eval $ac_compiler --version </dev/null >&5) 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }
4072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4073  (eval $ac_compiler -v </dev/null >&5) 2>&5
4074  ac_status=$?
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); }
4077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4078  (eval $ac_compiler -V </dev/null >&5) 2>&5
4079  ac_status=$?
4080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); }
4082
4083echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4084echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4085if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4086  echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088  cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094
4095int
4096main ()
4097{
4098#ifndef __GNUC__
4099       choke me
4100#endif
4101
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext
4107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108  (eval $ac_compile) 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } &&
4115	 { ac_try='test -z "$ac_cxx_werror_flag"
4116			 || test ! -s conftest.err'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; } &&
4122	 { ac_try='test -s conftest.$ac_objext'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; }; then
4128  ac_compiler_gnu=yes
4129else
4130  echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133ac_compiler_gnu=no
4134fi
4135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4137
4138fi
4139echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4140echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4141GXX=`test $ac_compiler_gnu = yes && echo yes`
4142ac_test_CXXFLAGS=${CXXFLAGS+set}
4143ac_save_CXXFLAGS=$CXXFLAGS
4144CXXFLAGS="-g"
4145echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4146echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4147if test "${ac_cv_prog_cxx_g+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156
4157int
4158main ()
4159{
4160
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165rm -f conftest.$ac_objext
4166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167  (eval $ac_compile) 2>conftest.er1
4168  ac_status=$?
4169  grep -v '^ *+' conftest.er1 >conftest.err
4170  rm -f conftest.er1
4171  cat conftest.err >&5
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); } &&
4174	 { ac_try='test -z "$ac_cxx_werror_flag"
4175			 || test ! -s conftest.err'
4176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177  (eval $ac_try) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }; } &&
4181	 { ac_try='test -s conftest.$ac_objext'
4182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183  (eval $ac_try) 2>&5
4184  ac_status=$?
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); }; }; then
4187  ac_cv_prog_cxx_g=yes
4188else
4189  echo "$as_me: failed program was:" >&5
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
4192ac_cv_prog_cxx_g=no
4193fi
4194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4195fi
4196echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4197echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4198if test "$ac_test_CXXFLAGS" = set; then
4199  CXXFLAGS=$ac_save_CXXFLAGS
4200elif test $ac_cv_prog_cxx_g = yes; then
4201  if test "$GXX" = yes; then
4202    CXXFLAGS="-g -O2"
4203  else
4204    CXXFLAGS="-g"
4205  fi
4206else
4207  if test "$GXX" = yes; then
4208    CXXFLAGS="-O2"
4209  else
4210    CXXFLAGS=
4211  fi
4212fi
4213for ac_declaration in \
4214   '' \
4215   'extern "C" void std::exit (int) throw (); using std::exit;' \
4216   'extern "C" void std::exit (int); using std::exit;' \
4217   'extern "C" void exit (int) throw ();' \
4218   'extern "C" void exit (int);' \
4219   'void exit (int);'
4220do
4221  cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h.  */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h.  */
4227$ac_declaration
4228#include <stdlib.h>
4229int
4230main ()
4231{
4232exit (42);
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext
4238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239  (eval $ac_compile) 2>conftest.er1
4240  ac_status=$?
4241  grep -v '^ *+' conftest.er1 >conftest.err
4242  rm -f conftest.er1
4243  cat conftest.err >&5
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); } &&
4246	 { ac_try='test -z "$ac_cxx_werror_flag"
4247			 || test ! -s conftest.err'
4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249  (eval $ac_try) 2>&5
4250  ac_status=$?
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); }; } &&
4253	 { ac_try='test -s conftest.$ac_objext'
4254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255  (eval $ac_try) 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  :
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264continue
4265fi
4266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4267  cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h.  */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h.  */
4273$ac_declaration
4274int
4275main ()
4276{
4277exit (42);
4278  ;
4279  return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284  (eval $ac_compile) 2>conftest.er1
4285  ac_status=$?
4286  grep -v '^ *+' conftest.er1 >conftest.err
4287  rm -f conftest.er1
4288  cat conftest.err >&5
4289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290  (exit $ac_status); } &&
4291	 { ac_try='test -z "$ac_cxx_werror_flag"
4292			 || test ! -s conftest.err'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; } &&
4298	 { ac_try='test -s conftest.$ac_objext'
4299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300  (eval $ac_try) 2>&5
4301  ac_status=$?
4302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303  (exit $ac_status); }; }; then
4304  break
4305else
4306  echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309fi
4310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311done
4312rm -f conftest*
4313if test -n "$ac_declaration"; then
4314  echo '#ifdef __cplusplus' >>confdefs.h
4315  echo $ac_declaration      >>confdefs.h
4316  echo '#endif'             >>confdefs.h
4317fi
4318
4319ac_ext=cc
4320ac_cpp='$CXXCPP $CPPFLAGS'
4321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4324
4325
4326
4327if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4328    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4329    (test "X$CXX" != "Xg++"))) ; then
4330  ac_ext=cc
4331ac_cpp='$CXXCPP $CPPFLAGS'
4332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4335echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4336echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4337if test -z "$CXXCPP"; then
4338  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4339  echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341      # Double quotes because CXXCPP needs to be expanded
4342    for CXXCPP in "$CXX -E" "/lib/cpp"
4343    do
4344      ac_preproc_ok=false
4345for ac_cxx_preproc_warn_flag in '' yes
4346do
4347  # Use a header file that comes with gcc, so configuring glibc
4348  # with a fresh cross-compiler works.
4349  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350  # <limits.h> exists even on freestanding compilers.
4351  # On the NeXT, cc -E runs the code through the compiler's parser,
4352  # not just through cpp. "Syntax error" is here to catch this case.
4353  cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h.  */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h.  */
4359#ifdef __STDC__
4360# include <limits.h>
4361#else
4362# include <assert.h>
4363#endif
4364		     Syntax error
4365_ACEOF
4366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368  ac_status=$?
4369  grep -v '^ *+' conftest.er1 >conftest.err
4370  rm -f conftest.er1
4371  cat conftest.err >&5
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); } >/dev/null; then
4374  if test -s conftest.err; then
4375    ac_cpp_err=$ac_cxx_preproc_warn_flag
4376    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4377  else
4378    ac_cpp_err=
4379  fi
4380else
4381  ac_cpp_err=yes
4382fi
4383if test -z "$ac_cpp_err"; then
4384  :
4385else
4386  echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389  # Broken: fails on valid input.
4390continue
4391fi
4392rm -f conftest.err conftest.$ac_ext
4393
4394  # OK, works on sane cases.  Now check whether non-existent headers
4395  # can be detected and how.
4396  cat >conftest.$ac_ext <<_ACEOF
4397/* confdefs.h.  */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h.  */
4402#include <ac_nonexistent.h>
4403_ACEOF
4404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4406  ac_status=$?
4407  grep -v '^ *+' conftest.er1 >conftest.err
4408  rm -f conftest.er1
4409  cat conftest.err >&5
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); } >/dev/null; then
4412  if test -s conftest.err; then
4413    ac_cpp_err=$ac_cxx_preproc_warn_flag
4414    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4415  else
4416    ac_cpp_err=
4417  fi
4418else
4419  ac_cpp_err=yes
4420fi
4421if test -z "$ac_cpp_err"; then
4422  # Broken: success on invalid input.
4423continue
4424else
4425  echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428  # Passes both tests.
4429ac_preproc_ok=:
4430break
4431fi
4432rm -f conftest.err conftest.$ac_ext
4433
4434done
4435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4436rm -f conftest.err conftest.$ac_ext
4437if $ac_preproc_ok; then
4438  break
4439fi
4440
4441    done
4442    ac_cv_prog_CXXCPP=$CXXCPP
4443
4444fi
4445  CXXCPP=$ac_cv_prog_CXXCPP
4446else
4447  ac_cv_prog_CXXCPP=$CXXCPP
4448fi
4449echo "$as_me:$LINENO: result: $CXXCPP" >&5
4450echo "${ECHO_T}$CXXCPP" >&6
4451ac_preproc_ok=false
4452for ac_cxx_preproc_warn_flag in '' yes
4453do
4454  # Use a header file that comes with gcc, so configuring glibc
4455  # with a fresh cross-compiler works.
4456  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457  # <limits.h> exists even on freestanding compilers.
4458  # On the NeXT, cc -E runs the code through the compiler's parser,
4459  # not just through cpp. "Syntax error" is here to catch this case.
4460  cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h.  */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h.  */
4466#ifdef __STDC__
4467# include <limits.h>
4468#else
4469# include <assert.h>
4470#endif
4471		     Syntax error
4472_ACEOF
4473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4474  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4475  ac_status=$?
4476  grep -v '^ *+' conftest.er1 >conftest.err
4477  rm -f conftest.er1
4478  cat conftest.err >&5
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); } >/dev/null; then
4481  if test -s conftest.err; then
4482    ac_cpp_err=$ac_cxx_preproc_warn_flag
4483    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4484  else
4485    ac_cpp_err=
4486  fi
4487else
4488  ac_cpp_err=yes
4489fi
4490if test -z "$ac_cpp_err"; then
4491  :
4492else
4493  echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496  # Broken: fails on valid input.
4497continue
4498fi
4499rm -f conftest.err conftest.$ac_ext
4500
4501  # OK, works on sane cases.  Now check whether non-existent headers
4502  # can be detected and how.
4503  cat >conftest.$ac_ext <<_ACEOF
4504/* confdefs.h.  */
4505_ACEOF
4506cat confdefs.h >>conftest.$ac_ext
4507cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h.  */
4509#include <ac_nonexistent.h>
4510_ACEOF
4511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4512  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4513  ac_status=$?
4514  grep -v '^ *+' conftest.er1 >conftest.err
4515  rm -f conftest.er1
4516  cat conftest.err >&5
4517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518  (exit $ac_status); } >/dev/null; then
4519  if test -s conftest.err; then
4520    ac_cpp_err=$ac_cxx_preproc_warn_flag
4521    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4522  else
4523    ac_cpp_err=
4524  fi
4525else
4526  ac_cpp_err=yes
4527fi
4528if test -z "$ac_cpp_err"; then
4529  # Broken: success on invalid input.
4530continue
4531else
4532  echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535  # Passes both tests.
4536ac_preproc_ok=:
4537break
4538fi
4539rm -f conftest.err conftest.$ac_ext
4540
4541done
4542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543rm -f conftest.err conftest.$ac_ext
4544if $ac_preproc_ok; then
4545  :
4546else
4547  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4548See \`config.log' for more details." >&5
4549echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4550See \`config.log' for more details." >&2;}
4551   { (exit 1); exit 1; }; }
4552fi
4553
4554ac_ext=cc
4555ac_cpp='$CXXCPP $CPPFLAGS'
4556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4559
4560fi
4561
4562
4563ac_ext=f
4564ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4565ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4567if test -n "$ac_tool_prefix"; then
4568  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4569  do
4570    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574if test "${ac_cv_prog_F77+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  if test -n "$F77"; then
4578  ac_cv_prog_F77="$F77" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583  IFS=$as_save_IFS
4584  test -z "$as_dir" && as_dir=.
4585  for ac_exec_ext in '' $ac_executable_extensions; do
4586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589    break 2
4590  fi
4591done
4592done
4593
4594fi
4595fi
4596F77=$ac_cv_prog_F77
4597if test -n "$F77"; then
4598  echo "$as_me:$LINENO: result: $F77" >&5
4599echo "${ECHO_T}$F77" >&6
4600else
4601  echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
4603fi
4604
4605    test -n "$F77" && break
4606  done
4607fi
4608if test -z "$F77"; then
4609  ac_ct_F77=$F77
4610  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4611do
4612  # Extract the first word of "$ac_prog", so it can be a program name with args.
4613set dummy $ac_prog; ac_word=$2
4614echo "$as_me:$LINENO: checking for $ac_word" >&5
4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4617  echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619  if test -n "$ac_ct_F77"; then
4620  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625  IFS=$as_save_IFS
4626  test -z "$as_dir" && as_dir=.
4627  for ac_exec_ext in '' $ac_executable_extensions; do
4628  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629    ac_cv_prog_ac_ct_F77="$ac_prog"
4630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631    break 2
4632  fi
4633done
4634done
4635
4636fi
4637fi
4638ac_ct_F77=$ac_cv_prog_ac_ct_F77
4639if test -n "$ac_ct_F77"; then
4640  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4641echo "${ECHO_T}$ac_ct_F77" >&6
4642else
4643  echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6
4645fi
4646
4647  test -n "$ac_ct_F77" && break
4648done
4649
4650  F77=$ac_ct_F77
4651fi
4652
4653
4654# Provide some information about the compiler.
4655echo "$as_me:4655:" \
4656     "checking for Fortran 77 compiler version" >&5
4657ac_compiler=`set X $ac_compile; echo $2`
4658{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4659  (eval $ac_compiler --version </dev/null >&5) 2>&5
4660  ac_status=$?
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); }
4663{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4664  (eval $ac_compiler -v </dev/null >&5) 2>&5
4665  ac_status=$?
4666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667  (exit $ac_status); }
4668{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4669  (eval $ac_compiler -V </dev/null >&5) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }
4673rm -f a.out
4674
4675# If we don't use `.F' as extension, the preprocessor is not run on the
4676# input file.  (Note that this only needs to work for GNU compilers.)
4677ac_save_ext=$ac_ext
4678ac_ext=F
4679echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4680echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4681if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4682  echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684  cat >conftest.$ac_ext <<_ACEOF
4685      program main
4686#ifndef __GNUC__
4687       choke me
4688#endif
4689
4690      end
4691_ACEOF
4692rm -f conftest.$ac_objext
4693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694  (eval $ac_compile) 2>conftest.er1
4695  ac_status=$?
4696  grep -v '^ *+' conftest.er1 >conftest.err
4697  rm -f conftest.er1
4698  cat conftest.err >&5
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); } &&
4701	 { ac_try='test -z "$ac_f77_werror_flag"
4702			 || test ! -s conftest.err'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; } &&
4708	 { ac_try='test -s conftest.$ac_objext'
4709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710  (eval $ac_try) 2>&5
4711  ac_status=$?
4712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713  (exit $ac_status); }; }; then
4714  ac_compiler_gnu=yes
4715else
4716  echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719ac_compiler_gnu=no
4720fi
4721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4723
4724fi
4725echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4726echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4727ac_ext=$ac_save_ext
4728ac_test_FFLAGS=${FFLAGS+set}
4729ac_save_FFLAGS=$FFLAGS
4730FFLAGS=
4731echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4732echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4733if test "${ac_cv_prog_f77_g+set}" = set; then
4734  echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736  FFLAGS=-g
4737cat >conftest.$ac_ext <<_ACEOF
4738      program main
4739
4740      end
4741_ACEOF
4742rm -f conftest.$ac_objext
4743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744  (eval $ac_compile) 2>conftest.er1
4745  ac_status=$?
4746  grep -v '^ *+' conftest.er1 >conftest.err
4747  rm -f conftest.er1
4748  cat conftest.err >&5
4749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750  (exit $ac_status); } &&
4751	 { ac_try='test -z "$ac_f77_werror_flag"
4752			 || test ! -s conftest.err'
4753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754  (eval $ac_try) 2>&5
4755  ac_status=$?
4756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757  (exit $ac_status); }; } &&
4758	 { ac_try='test -s conftest.$ac_objext'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; }; then
4764  ac_cv_prog_f77_g=yes
4765else
4766  echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769ac_cv_prog_f77_g=no
4770fi
4771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772
4773fi
4774echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4775echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4776if test "$ac_test_FFLAGS" = set; then
4777  FFLAGS=$ac_save_FFLAGS
4778elif test $ac_cv_prog_f77_g = yes; then
4779  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4780    FFLAGS="-g -O2"
4781  else
4782    FFLAGS="-g"
4783  fi
4784else
4785  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4786    FFLAGS="-O2"
4787  else
4788    FFLAGS=
4789  fi
4790fi
4791
4792G77=`test $ac_compiler_gnu = yes && echo yes`
4793ac_ext=c
4794ac_cpp='$CPP $CPPFLAGS'
4795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799
4800
4801# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4802
4803# find the maximum length of command line arguments
4804echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4805echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4806if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808else
4809    i=0
4810  teststring="ABCD"
4811
4812  case $build_os in
4813  msdosdjgpp*)
4814    # On DJGPP, this test can blow up pretty badly due to problems in libc
4815    # (any single argument exceeding 2000 bytes causes a buffer overrun
4816    # during glob expansion).  Even if it were fixed, the result of this
4817    # check would be larger than it should be.
4818    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4819    ;;
4820
4821  gnu*)
4822    # Under GNU Hurd, this test is not required because there is
4823    # no limit to the length of command line arguments.
4824    # Libtool will interpret -1 as no limit whatsoever
4825    lt_cv_sys_max_cmd_len=-1;
4826    ;;
4827
4828  cygwin* | mingw*)
4829    # On Win9x/ME, this test blows up -- it succeeds, but takes
4830    # about 5 minutes as the teststring grows exponentially.
4831    # Worse, since 9x/ME are not pre-emptively multitasking,
4832    # you end up with a "frozen" computer, even though with patience
4833    # the test eventually succeeds (with a max line length of 256k).
4834    # Instead, let's just punt: use the minimum linelength reported by
4835    # all of the supported platforms: 8192 (on NT/2K/XP).
4836    lt_cv_sys_max_cmd_len=8192;
4837    ;;
4838
4839  amigaos*)
4840    # On AmigaOS with pdksh, this test takes hours, literally.
4841    # So we just punt and use a minimum line length of 8192.
4842    lt_cv_sys_max_cmd_len=8192;
4843    ;;
4844
4845  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4846    # This has been around since 386BSD, at least.  Likely further.
4847    if test -x /sbin/sysctl; then
4848      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4849    elif test -x /usr/sbin/sysctl; then
4850      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4851    else
4852      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4853    fi
4854    # And add a safety zone
4855    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4857    ;;
4858  osf*)
4859    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4860    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4861    # nice to cause kernel panics so lets avoid the loop below.
4862    # First set a reasonable default.
4863    lt_cv_sys_max_cmd_len=16384
4864    #
4865    if test -x /sbin/sysconfig; then
4866      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4867        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4868      esac
4869    fi
4870    ;;
4871  *)
4872    # If test is not a shell built-in, we'll probably end up computing a
4873    # maximum length that is only half of the actual maximum length, but
4874    # we can't tell.
4875    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4876    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4877	       = "XX$teststring") >/dev/null 2>&1 &&
4878	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
4879	    lt_cv_sys_max_cmd_len=$new_result &&
4880	    test $i != 17 # 1/2 MB should be enough
4881    do
4882      i=`expr $i + 1`
4883      teststring=$teststring$teststring
4884    done
4885    teststring=
4886    # Add a significant safety factor because C++ compilers can tack on massive
4887    # amounts of additional arguments before passing them to the linker.
4888    # It appears as though 1/2 is a usable value.
4889    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4890    ;;
4891  esac
4892
4893fi
4894
4895if test -n $lt_cv_sys_max_cmd_len ; then
4896  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4897echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4898else
4899  echo "$as_me:$LINENO: result: none" >&5
4900echo "${ECHO_T}none" >&6
4901fi
4902
4903
4904
4905
4906# Check for command to grab the raw symbol name followed by C symbol from nm.
4907echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4908echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4909if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4910  echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912
4913# These are sane defaults that work on at least a few old systems.
4914# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4915
4916# Character class describing NM global symbol codes.
4917symcode='[BCDEGRST]'
4918
4919# Regexp to match symbols that can be accessed directly from C.
4920sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4921
4922# Transform an extracted symbol line into a proper C declaration
4923lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4924
4925# Transform an extracted symbol line into symbol name and symbol address
4926lt_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'"
4927
4928# Define system-specific variables.
4929case $host_os in
4930aix*)
4931  symcode='[BCDT]'
4932  ;;
4933cygwin* | mingw* | pw32*)
4934  symcode='[ABCDGISTW]'
4935  ;;
4936hpux*) # Its linker distinguishes data from code symbols
4937  if test "$host_cpu" = ia64; then
4938    symcode='[ABCDEGRST]'
4939  fi
4940  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4941  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'"
4942  ;;
4943linux*)
4944  if test "$host_cpu" = ia64; then
4945    symcode='[ABCDGIRSTW]'
4946    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4947    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'"
4948  fi
4949  ;;
4950irix* | nonstopux*)
4951  symcode='[BCDEGRST]'
4952  ;;
4953osf*)
4954  symcode='[BCDEGQRST]'
4955  ;;
4956solaris* | sysv5*)
4957  symcode='[BDRT]'
4958  ;;
4959sysv4)
4960  symcode='[DFNSTU]'
4961  ;;
4962esac
4963
4964# Handle CRLF in mingw tool chain
4965opt_cr=
4966case $build_os in
4967mingw*)
4968  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4969  ;;
4970esac
4971
4972# If we're using GNU nm, then use its standard symbol codes.
4973case `$NM -V 2>&1` in
4974*GNU* | *'with BFD'*)
4975  symcode='[ABCDGIRSTW]' ;;
4976esac
4977
4978# Try without a prefix undercore, then with it.
4979for ac_symprfx in "" "_"; do
4980
4981  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4982  symxfrm="\\1 $ac_symprfx\\2 \\2"
4983
4984  # Write the raw and C identifiers.
4985  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4986
4987  # Check to see that the pipe works correctly.
4988  pipe_works=no
4989
4990  rm -f conftest*
4991  cat > conftest.$ac_ext <<EOF
4992#ifdef __cplusplus
4993extern "C" {
4994#endif
4995char nm_test_var;
4996void nm_test_func(){}
4997#ifdef __cplusplus
4998}
4999#endif
5000int main(){nm_test_var='a';nm_test_func();return(0);}
5001EOF
5002
5003  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004  (eval $ac_compile) 2>&5
5005  ac_status=$?
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); }; then
5008    # Now try to grab the symbols.
5009    nlist=conftest.nm
5010    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5011  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5012  ac_status=$?
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } && test -s "$nlist"; then
5015      # Try sorting and uniquifying the output.
5016      if sort "$nlist" | uniq > "$nlist"T; then
5017	mv -f "$nlist"T "$nlist"
5018      else
5019	rm -f "$nlist"T
5020      fi
5021
5022      # Make sure that we snagged all the symbols we need.
5023      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5024	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5025	  cat <<EOF > conftest.$ac_ext
5026#ifdef __cplusplus
5027extern "C" {
5028#endif
5029
5030EOF
5031	  # Now generate the symbol file.
5032	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5033
5034	  cat <<EOF >> conftest.$ac_ext
5035#if defined (__STDC__) && __STDC__
5036# define lt_ptr_t void *
5037#else
5038# define lt_ptr_t char *
5039# define const
5040#endif
5041
5042/* The mapping between symbol names and symbols. */
5043const struct {
5044  const char *name;
5045  lt_ptr_t address;
5046}
5047lt_preloaded_symbols[] =
5048{
5049EOF
5050	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5051	  cat <<\EOF >> conftest.$ac_ext
5052  {0, (lt_ptr_t) 0}
5053};
5054
5055#ifdef __cplusplus
5056}
5057#endif
5058EOF
5059	  # Now try linking the two files.
5060	  mv conftest.$ac_objext conftstm.$ac_objext
5061	  lt_save_LIBS="$LIBS"
5062	  lt_save_CFLAGS="$CFLAGS"
5063	  LIBS="conftstm.$ac_objext"
5064	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5065	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066  (eval $ac_link) 2>&5
5067  ac_status=$?
5068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5070	    pipe_works=yes
5071	  fi
5072	  LIBS="$lt_save_LIBS"
5073	  CFLAGS="$lt_save_CFLAGS"
5074	else
5075	  echo "cannot find nm_test_func in $nlist" >&5
5076	fi
5077      else
5078	echo "cannot find nm_test_var in $nlist" >&5
5079      fi
5080    else
5081      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5082    fi
5083  else
5084    echo "$progname: failed program was:" >&5
5085    cat conftest.$ac_ext >&5
5086  fi
5087  rm -f conftest* conftst*
5088
5089  # Do not use the global_symbol_pipe unless it works.
5090  if test "$pipe_works" = yes; then
5091    break
5092  else
5093    lt_cv_sys_global_symbol_pipe=
5094  fi
5095done
5096
5097fi
5098
5099if test -z "$lt_cv_sys_global_symbol_pipe"; then
5100  lt_cv_sys_global_symbol_to_cdecl=
5101fi
5102if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5103  echo "$as_me:$LINENO: result: failed" >&5
5104echo "${ECHO_T}failed" >&6
5105else
5106  echo "$as_me:$LINENO: result: ok" >&5
5107echo "${ECHO_T}ok" >&6
5108fi
5109
5110echo "$as_me:$LINENO: checking for objdir" >&5
5111echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5112if test "${lt_cv_objdir+set}" = set; then
5113  echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115  rm -f .libs 2>/dev/null
5116mkdir .libs 2>/dev/null
5117if test -d .libs; then
5118  lt_cv_objdir=.libs
5119else
5120  # MS-DOS does not allow filenames that begin with a dot.
5121  lt_cv_objdir=_libs
5122fi
5123rmdir .libs 2>/dev/null
5124fi
5125echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5126echo "${ECHO_T}$lt_cv_objdir" >&6
5127objdir=$lt_cv_objdir
5128
5129
5130
5131
5132
5133case $host_os in
5134aix3*)
5135  # AIX sometimes has problems with the GCC collect2 program.  For some
5136  # reason, if we set the COLLECT_NAMES environment variable, the problems
5137  # vanish in a puff of smoke.
5138  if test "X${COLLECT_NAMES+set}" != Xset; then
5139    COLLECT_NAMES=
5140    export COLLECT_NAMES
5141  fi
5142  ;;
5143esac
5144
5145# Sed substitution that helps us do robust quoting.  It backslashifies
5146# metacharacters that are still active within double-quoted strings.
5147Xsed='sed -e 1s/^X//'
5148sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5149
5150# Same as above, but do not quote variable references.
5151double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5152
5153# Sed substitution to delay expansion of an escaped shell variable in a
5154# double_quote_subst'ed string.
5155delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5156
5157# Sed substitution to avoid accidental globbing in evaled expressions
5158no_glob_subst='s/\*/\\\*/g'
5159
5160# Constants:
5161rm="rm -f"
5162
5163# Global variables:
5164default_ofile=libtool
5165can_build_shared=yes
5166
5167# All known linkers require a `.a' archive for static linking (except MSVC,
5168# which needs '.lib').
5169libext=a
5170ltmain="$ac_aux_dir/ltmain.sh"
5171ofile="$default_ofile"
5172with_gnu_ld="$lt_cv_prog_gnu_ld"
5173
5174if test -n "$ac_tool_prefix"; then
5175  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5176set dummy ${ac_tool_prefix}ar; ac_word=$2
5177echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179if test "${ac_cv_prog_AR+set}" = set; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  if test -n "$AR"; then
5183  ac_cv_prog_AR="$AR" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188  IFS=$as_save_IFS
5189  test -z "$as_dir" && as_dir=.
5190  for ac_exec_ext in '' $ac_executable_extensions; do
5191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192    ac_cv_prog_AR="${ac_tool_prefix}ar"
5193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194    break 2
5195  fi
5196done
5197done
5198
5199fi
5200fi
5201AR=$ac_cv_prog_AR
5202if test -n "$AR"; then
5203  echo "$as_me:$LINENO: result: $AR" >&5
5204echo "${ECHO_T}$AR" >&6
5205else
5206  echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208fi
5209
5210fi
5211if test -z "$ac_cv_prog_AR"; then
5212  ac_ct_AR=$AR
5213  # Extract the first word of "ar", so it can be a program name with args.
5214set dummy ar; ac_word=$2
5215echo "$as_me:$LINENO: checking for $ac_word" >&5
5216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5218  echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220  if test -n "$ac_ct_AR"; then
5221  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5222else
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226  IFS=$as_save_IFS
5227  test -z "$as_dir" && as_dir=.
5228  for ac_exec_ext in '' $ac_executable_extensions; do
5229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230    ac_cv_prog_ac_ct_AR="ar"
5231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232    break 2
5233  fi
5234done
5235done
5236
5237  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5238fi
5239fi
5240ac_ct_AR=$ac_cv_prog_ac_ct_AR
5241if test -n "$ac_ct_AR"; then
5242  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5243echo "${ECHO_T}$ac_ct_AR" >&6
5244else
5245  echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247fi
5248
5249  AR=$ac_ct_AR
5250else
5251  AR="$ac_cv_prog_AR"
5252fi
5253
5254if test -n "$ac_tool_prefix"; then
5255  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5256set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5257echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259if test "${ac_cv_prog_RANLIB+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  if test -n "$RANLIB"; then
5263  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270  for ac_exec_ext in '' $ac_executable_extensions; do
5271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277done
5278
5279fi
5280fi
5281RANLIB=$ac_cv_prog_RANLIB
5282if test -n "$RANLIB"; then
5283  echo "$as_me:$LINENO: result: $RANLIB" >&5
5284echo "${ECHO_T}$RANLIB" >&6
5285else
5286  echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288fi
5289
5290fi
5291if test -z "$ac_cv_prog_RANLIB"; then
5292  ac_ct_RANLIB=$RANLIB
5293  # Extract the first word of "ranlib", so it can be a program name with args.
5294set dummy ranlib; ac_word=$2
5295echo "$as_me:$LINENO: checking for $ac_word" >&5
5296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5297if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5298  echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300  if test -n "$ac_ct_RANLIB"; then
5301  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308  for ac_exec_ext in '' $ac_executable_extensions; do
5309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310    ac_cv_prog_ac_ct_RANLIB="ranlib"
5311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312    break 2
5313  fi
5314done
5315done
5316
5317  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5318fi
5319fi
5320ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5321if test -n "$ac_ct_RANLIB"; then
5322  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5323echo "${ECHO_T}$ac_ct_RANLIB" >&6
5324else
5325  echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
5327fi
5328
5329  RANLIB=$ac_ct_RANLIB
5330else
5331  RANLIB="$ac_cv_prog_RANLIB"
5332fi
5333
5334if test -n "$ac_tool_prefix"; then
5335  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5336set dummy ${ac_tool_prefix}strip; ac_word=$2
5337echo "$as_me:$LINENO: checking for $ac_word" >&5
5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339if test "${ac_cv_prog_STRIP+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  if test -n "$STRIP"; then
5343  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348  IFS=$as_save_IFS
5349  test -z "$as_dir" && as_dir=.
5350  for ac_exec_ext in '' $ac_executable_extensions; do
5351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354    break 2
5355  fi
5356done
5357done
5358
5359fi
5360fi
5361STRIP=$ac_cv_prog_STRIP
5362if test -n "$STRIP"; then
5363  echo "$as_me:$LINENO: result: $STRIP" >&5
5364echo "${ECHO_T}$STRIP" >&6
5365else
5366  echo "$as_me:$LINENO: result: no" >&5
5367echo "${ECHO_T}no" >&6
5368fi
5369
5370fi
5371if test -z "$ac_cv_prog_STRIP"; then
5372  ac_ct_STRIP=$STRIP
5373  # Extract the first word of "strip", so it can be a program name with args.
5374set dummy strip; ac_word=$2
5375echo "$as_me:$LINENO: checking for $ac_word" >&5
5376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5377if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  if test -n "$ac_ct_STRIP"; then
5381  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5382else
5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388  for ac_exec_ext in '' $ac_executable_extensions; do
5389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390    ac_cv_prog_ac_ct_STRIP="strip"
5391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392    break 2
5393  fi
5394done
5395done
5396
5397  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5398fi
5399fi
5400ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5401if test -n "$ac_ct_STRIP"; then
5402  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5403echo "${ECHO_T}$ac_ct_STRIP" >&6
5404else
5405  echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
5407fi
5408
5409  STRIP=$ac_ct_STRIP
5410else
5411  STRIP="$ac_cv_prog_STRIP"
5412fi
5413
5414
5415old_CC="$CC"
5416old_CFLAGS="$CFLAGS"
5417
5418# Set sane defaults for various variables
5419test -z "$AR" && AR=ar
5420test -z "$AR_FLAGS" && AR_FLAGS=cru
5421test -z "$AS" && AS=as
5422test -z "$CC" && CC=cc
5423test -z "$LTCC" && LTCC=$CC
5424test -z "$DLLTOOL" && DLLTOOL=dlltool
5425test -z "$LD" && LD=ld
5426test -z "$LN_S" && LN_S="ln -s"
5427test -z "$MAGIC_CMD" && MAGIC_CMD=file
5428test -z "$NM" && NM=nm
5429test -z "$SED" && SED=sed
5430test -z "$OBJDUMP" && OBJDUMP=objdump
5431test -z "$RANLIB" && RANLIB=:
5432test -z "$STRIP" && STRIP=:
5433test -z "$ac_objext" && ac_objext=o
5434
5435# Determine commands to create old-style static archives.
5436old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5437old_postinstall_cmds='chmod 644 $oldlib'
5438old_postuninstall_cmds=
5439
5440if test -n "$RANLIB"; then
5441  case $host_os in
5442  openbsd*)
5443    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5444    ;;
5445  *)
5446    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5447    ;;
5448  esac
5449  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5450fi
5451
5452for cc_temp in $compiler""; do
5453  case $cc_temp in
5454    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5455    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5456    \-*) ;;
5457    *) break;;
5458  esac
5459done
5460cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5461
5462
5463# Only perform the check for file, if the check method requires it
5464case $deplibs_check_method in
5465file_magic*)
5466  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5467    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5468echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5469if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  case $MAGIC_CMD in
5473[\\/*] |  ?:[\\/]*)
5474  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5475  ;;
5476*)
5477  lt_save_MAGIC_CMD="$MAGIC_CMD"
5478  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5479  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5480  for ac_dir in $ac_dummy; do
5481    IFS="$lt_save_ifs"
5482    test -z "$ac_dir" && ac_dir=.
5483    if test -f $ac_dir/${ac_tool_prefix}file; then
5484      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5485      if test -n "$file_magic_test_file"; then
5486	case $deplibs_check_method in
5487	"file_magic "*)
5488	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5489	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5490	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5491	    $EGREP "$file_magic_regex" > /dev/null; then
5492	    :
5493	  else
5494	    cat <<EOF 1>&2
5495
5496*** Warning: the command libtool uses to detect shared libraries,
5497*** $file_magic_cmd, produces output that libtool cannot recognize.
5498*** The result is that libtool may fail to recognize shared libraries
5499*** as such.  This will affect the creation of libtool libraries that
5500*** depend on shared libraries, but programs linked with such libtool
5501*** libraries will work regardless of this problem.  Nevertheless, you
5502*** may want to report the problem to your system manager and/or to
5503*** bug-libtool@gnu.org
5504
5505EOF
5506	  fi ;;
5507	esac
5508      fi
5509      break
5510    fi
5511  done
5512  IFS="$lt_save_ifs"
5513  MAGIC_CMD="$lt_save_MAGIC_CMD"
5514  ;;
5515esac
5516fi
5517
5518MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5519if test -n "$MAGIC_CMD"; then
5520  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5521echo "${ECHO_T}$MAGIC_CMD" >&6
5522else
5523  echo "$as_me:$LINENO: result: no" >&5
5524echo "${ECHO_T}no" >&6
5525fi
5526
5527if test -z "$lt_cv_path_MAGIC_CMD"; then
5528  if test -n "$ac_tool_prefix"; then
5529    echo "$as_me:$LINENO: checking for file" >&5
5530echo $ECHO_N "checking for file... $ECHO_C" >&6
5531if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  case $MAGIC_CMD in
5535[\\/*] |  ?:[\\/]*)
5536  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5537  ;;
5538*)
5539  lt_save_MAGIC_CMD="$MAGIC_CMD"
5540  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5541  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5542  for ac_dir in $ac_dummy; do
5543    IFS="$lt_save_ifs"
5544    test -z "$ac_dir" && ac_dir=.
5545    if test -f $ac_dir/file; then
5546      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5547      if test -n "$file_magic_test_file"; then
5548	case $deplibs_check_method in
5549	"file_magic "*)
5550	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5551	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5552	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5553	    $EGREP "$file_magic_regex" > /dev/null; then
5554	    :
5555	  else
5556	    cat <<EOF 1>&2
5557
5558*** Warning: the command libtool uses to detect shared libraries,
5559*** $file_magic_cmd, produces output that libtool cannot recognize.
5560*** The result is that libtool may fail to recognize shared libraries
5561*** as such.  This will affect the creation of libtool libraries that
5562*** depend on shared libraries, but programs linked with such libtool
5563*** libraries will work regardless of this problem.  Nevertheless, you
5564*** may want to report the problem to your system manager and/or to
5565*** bug-libtool@gnu.org
5566
5567EOF
5568	  fi ;;
5569	esac
5570      fi
5571      break
5572    fi
5573  done
5574  IFS="$lt_save_ifs"
5575  MAGIC_CMD="$lt_save_MAGIC_CMD"
5576  ;;
5577esac
5578fi
5579
5580MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5581if test -n "$MAGIC_CMD"; then
5582  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5583echo "${ECHO_T}$MAGIC_CMD" >&6
5584else
5585  echo "$as_me:$LINENO: result: no" >&5
5586echo "${ECHO_T}no" >&6
5587fi
5588
5589  else
5590    MAGIC_CMD=:
5591  fi
5592fi
5593
5594  fi
5595  ;;
5596esac
5597
5598enable_dlopen=no
5599enable_win32_dll=no
5600
5601# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5602if test "${enable_libtool_lock+set}" = set; then
5603  enableval="$enable_libtool_lock"
5604
5605fi;
5606test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5607
5608
5609# Check whether --with-pic or --without-pic was given.
5610if test "${with_pic+set}" = set; then
5611  withval="$with_pic"
5612  pic_mode="$withval"
5613else
5614  pic_mode=default
5615fi;
5616test -z "$pic_mode" && pic_mode=default
5617
5618# Use C for the default configuration in the libtool script
5619tagname=
5620lt_save_CC="$CC"
5621ac_ext=c
5622ac_cpp='$CPP $CPPFLAGS'
5623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626
5627
5628# Source file extension for C test sources.
5629ac_ext=c
5630
5631# Object file extension for compiled C test sources.
5632objext=o
5633objext=$objext
5634
5635# Code to be used in simple compile tests
5636lt_simple_compile_test_code="int some_variable = 0;\n"
5637
5638# Code to be used in simple link tests
5639lt_simple_link_test_code='int main(){return(0);}\n'
5640
5641
5642# If no C compiler was specified, use CC.
5643LTCC=${LTCC-"$CC"}
5644
5645# Allow CC to be a program name with arguments.
5646compiler=$CC
5647
5648
5649# save warnings/boilerplate of simple test code
5650ac_outfile=conftest.$ac_objext
5651printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5653_lt_compiler_boilerplate=`cat conftest.err`
5654$rm conftest*
5655
5656ac_outfile=conftest.$ac_objext
5657printf "$lt_simple_link_test_code" >conftest.$ac_ext
5658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
5659_lt_linker_boilerplate=`cat conftest.err`
5660$rm conftest*
5661
5662
5663#
5664# Check for any special shared library compilation flags.
5665#
5666lt_prog_cc_shlib=
5667if test "$GCC" = no; then
5668  case $host_os in
5669  sco3.2v5*)
5670    lt_prog_cc_shlib='-belf'
5671    ;;
5672  esac
5673fi
5674if test -n "$lt_prog_cc_shlib"; then
5675  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5676echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5677  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
5678  else
5679    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5680echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5681    lt_cv_prog_cc_can_build_shared=no
5682  fi
5683fi
5684
5685
5686#
5687# Check to make sure the static flag actually works.
5688#
5689echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5690echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5691if test "${lt_prog_compiler_static_works+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694  lt_prog_compiler_static_works=no
5695   save_LDFLAGS="$LDFLAGS"
5696   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5697   printf "$lt_simple_link_test_code" > conftest.$ac_ext
5698   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5699     # The linker can only warn and ignore the option if not recognized
5700     # So say no if there are warnings
5701     if test -s conftest.err; then
5702       # Append any errors to the config.log.
5703       cat conftest.err 1>&5
5704       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
5705       $SED '/^$/d' conftest.err >conftest.er2
5706       if diff conftest.exp conftest.er2 >/dev/null; then
5707         lt_prog_compiler_static_works=yes
5708       fi
5709     else
5710       lt_prog_compiler_static_works=yes
5711     fi
5712   fi
5713   $rm conftest*
5714   LDFLAGS="$save_LDFLAGS"
5715
5716fi
5717echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5718echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5719
5720if test x"$lt_prog_compiler_static_works" = xyes; then
5721    :
5722else
5723    lt_prog_compiler_static=
5724fi
5725
5726
5727
5728
5729lt_prog_compiler_no_builtin_flag=
5730
5731if test "$GCC" = yes; then
5732  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5733
5734
5735echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5736echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5737if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  lt_cv_prog_compiler_rtti_exceptions=no
5741  ac_outfile=conftest.$ac_objext
5742   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5743   lt_compiler_flag="-fno-rtti -fno-exceptions"
5744   # Insert the option either (1) after the last *FLAGS variable, or
5745   # (2) before a word containing "conftest.", or (3) at the end.
5746   # Note that $ac_compile itself does not contain backslashes and begins
5747   # with a dollar sign (not a hyphen), so the echo should work correctly.
5748   # The option is referenced via a variable to avoid confusing sed.
5749   lt_compile=`echo "$ac_compile" | $SED \
5750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5752   -e 's:$: $lt_compiler_flag:'`
5753   (eval echo "\"\$as_me:5753: $lt_compile\"" >&5)
5754   (eval "$lt_compile" 2>conftest.err)
5755   ac_status=$?
5756   cat conftest.err >&5
5757   echo "$as_me:5757: \$? = $ac_status" >&5
5758   if (exit $ac_status) && test -s "$ac_outfile"; then
5759     # The compiler can only warn and ignore the option if not recognized
5760     # So say no if there are warnings other than the usual output.
5761     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
5762     $SED '/^$/d' conftest.err >conftest.er2
5763     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
5764       lt_cv_prog_compiler_rtti_exceptions=yes
5765     fi
5766   fi
5767   $rm conftest*
5768
5769fi
5770echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5771echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5772
5773if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5774    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5775else
5776    :
5777fi
5778
5779fi
5780
5781lt_prog_compiler_wl=
5782lt_prog_compiler_pic=
5783lt_prog_compiler_static=
5784
5785echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5786echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5787
5788  if test "$GCC" = yes; then
5789    lt_prog_compiler_wl='-Wl,'
5790    lt_prog_compiler_static='-static'
5791
5792    case $host_os in
5793      aix*)
5794      # All AIX code is PIC.
5795      if test "$host_cpu" = ia64; then
5796	# AIX 5 now supports IA64 processor
5797	lt_prog_compiler_static='-Bstatic'
5798      fi
5799      ;;
5800
5801    amigaos*)
5802      # FIXME: we need at least 68020 code to build shared libraries, but
5803      # adding the `-m68020' flag to GCC prevents building anything better,
5804      # like `-m68040'.
5805      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5806      ;;
5807
5808    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5809      # PIC is the default for these OSes.
5810      ;;
5811
5812    mingw* | pw32* | os2*)
5813      # This hack is so that the source file can tell whether it is being
5814      # built for inclusion in a dll (and should export symbols for example).
5815      lt_prog_compiler_pic='-DDLL_EXPORT'
5816      ;;
5817
5818    darwin* | rhapsody*)
5819      # PIC is the default on this platform
5820      # Common symbols not allowed in MH_DYLIB files
5821      lt_prog_compiler_pic='-fno-common'
5822      ;;
5823
5824    msdosdjgpp*)
5825      # Just because we use GCC doesn't mean we suddenly get shared libraries
5826      # on systems that don't support them.
5827      lt_prog_compiler_can_build_shared=no
5828      enable_shared=no
5829      ;;
5830
5831    sysv4*MP*)
5832      if test -d /usr/nec; then
5833	lt_prog_compiler_pic=-Kconform_pic
5834      fi
5835      ;;
5836
5837    hpux*)
5838      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5839      # not for PA HP-UX.
5840      case $host_cpu in
5841      hppa*64*|ia64*)
5842	# +Z the default
5843	;;
5844      *)
5845	lt_prog_compiler_pic='-fPIC'
5846	;;
5847      esac
5848      ;;
5849
5850    *)
5851      lt_prog_compiler_pic='-fPIC'
5852      ;;
5853    esac
5854  else
5855    # PORTME Check for flag to pass linker flags through the system compiler.
5856    case $host_os in
5857    aix*)
5858      lt_prog_compiler_wl='-Wl,'
5859      if test "$host_cpu" = ia64; then
5860	# AIX 5 now supports IA64 processor
5861	lt_prog_compiler_static='-Bstatic'
5862      else
5863	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5864      fi
5865      ;;
5866      darwin*)
5867        # PIC is the default on this platform
5868        # Common symbols not allowed in MH_DYLIB files
5869       case $cc_basename in
5870         xlc*)
5871         lt_prog_compiler_pic='-qnocommon'
5872         lt_prog_compiler_wl='-Wl,'
5873         ;;
5874       esac
5875       ;;
5876
5877    mingw* | pw32* | os2*)
5878      # This hack is so that the source file can tell whether it is being
5879      # built for inclusion in a dll (and should export symbols for example).
5880      lt_prog_compiler_pic='-DDLL_EXPORT'
5881      ;;
5882
5883    hpux9* | hpux10* | hpux11*)
5884      lt_prog_compiler_wl='-Wl,'
5885      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5886      # not for PA HP-UX.
5887      case $host_cpu in
5888      hppa*64*|ia64*)
5889	# +Z the default
5890	;;
5891      *)
5892	lt_prog_compiler_pic='+Z'
5893	;;
5894      esac
5895      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5896      lt_prog_compiler_static='${wl}-a ${wl}archive'
5897      ;;
5898
5899    irix5* | irix6* | nonstopux*)
5900      lt_prog_compiler_wl='-Wl,'
5901      # PIC (with -KPIC) is the default.
5902      lt_prog_compiler_static='-non_shared'
5903      ;;
5904
5905    newsos6)
5906      lt_prog_compiler_pic='-KPIC'
5907      lt_prog_compiler_static='-Bstatic'
5908      ;;
5909
5910    linux*)
5911      case $cc_basename in
5912      icc* | ecc*)
5913	lt_prog_compiler_wl='-Wl,'
5914	lt_prog_compiler_pic='-KPIC'
5915	lt_prog_compiler_static='-static'
5916        ;;
5917      pgcc* | pgf77* | pgf90* | pgf95*)
5918        # Portland Group compilers (*not* the Pentium gcc compiler,
5919	# which looks to be a dead project)
5920	lt_prog_compiler_wl='-Wl,'
5921	lt_prog_compiler_pic='-fpic'
5922	lt_prog_compiler_static='-Bstatic'
5923        ;;
5924      ccc*)
5925        lt_prog_compiler_wl='-Wl,'
5926        # All Alpha code is PIC.
5927        lt_prog_compiler_static='-non_shared'
5928        ;;
5929      esac
5930      ;;
5931
5932    osf3* | osf4* | osf5*)
5933      lt_prog_compiler_wl='-Wl,'
5934      # All OSF/1 code is PIC.
5935      lt_prog_compiler_static='-non_shared'
5936      ;;
5937
5938    sco3.2v5*)
5939      lt_prog_compiler_pic='-Kpic'
5940      lt_prog_compiler_static='-dn'
5941      ;;
5942
5943    solaris*)
5944      lt_prog_compiler_pic='-KPIC'
5945      lt_prog_compiler_static='-Bstatic'
5946      case $cc_basename in
5947      f77* | f90* | f95*)
5948	lt_prog_compiler_wl='-Qoption ld ';;
5949      *)
5950	lt_prog_compiler_wl='-Wl,';;
5951      esac
5952      ;;
5953
5954    sunos4*)
5955      lt_prog_compiler_wl='-Qoption ld '
5956      lt_prog_compiler_pic='-PIC'
5957      lt_prog_compiler_static='-Bstatic'
5958      ;;
5959
5960    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5961      lt_prog_compiler_wl='-Wl,'
5962      lt_prog_compiler_pic='-KPIC'
5963      lt_prog_compiler_static='-Bstatic'
5964      ;;
5965
5966    sysv4*MP*)
5967      if test -d /usr/nec ;then
5968	lt_prog_compiler_pic='-Kconform_pic'
5969	lt_prog_compiler_static='-Bstatic'
5970      fi
5971      ;;
5972
5973    unicos*)
5974      lt_prog_compiler_wl='-Wl,'
5975      lt_prog_compiler_can_build_shared=no
5976      ;;
5977
5978    uts4*)
5979      lt_prog_compiler_pic='-pic'
5980      lt_prog_compiler_static='-Bstatic'
5981      ;;
5982
5983    *)
5984      lt_prog_compiler_can_build_shared=no
5985      ;;
5986    esac
5987  fi
5988
5989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5990echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5991
5992#
5993# Check to make sure the PIC flag actually works.
5994#
5995if test -n "$lt_prog_compiler_pic"; then
5996
5997echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5999if test "${lt_prog_compiler_pic_works+set}" = set; then
6000  echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002  lt_prog_compiler_pic_works=no
6003  ac_outfile=conftest.$ac_objext
6004   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6005   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6006   # Insert the option either (1) after the last *FLAGS variable, or
6007   # (2) before a word containing "conftest.", or (3) at the end.
6008   # Note that $ac_compile itself does not contain backslashes and begins
6009   # with a dollar sign (not a hyphen), so the echo should work correctly.
6010   # The option is referenced via a variable to avoid confusing sed.
6011   lt_compile=`echo "$ac_compile" | $SED \
6012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6014   -e 's:$: $lt_compiler_flag:'`
6015   (eval echo "\"\$as_me:6015: $lt_compile\"" >&5)
6016   (eval "$lt_compile" 2>conftest.err)
6017   ac_status=$?
6018   cat conftest.err >&5
6019   echo "$as_me:6019: \$? = $ac_status" >&5
6020   if (exit $ac_status) && test -s "$ac_outfile"; then
6021     # The compiler can only warn and ignore the option if not recognized
6022     # So say no if there are warnings other than the usual output.
6023     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6024     $SED '/^$/d' conftest.err >conftest.er2
6025     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6026       lt_prog_compiler_pic_works=yes
6027     fi
6028   fi
6029   $rm conftest*
6030
6031fi
6032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6033echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6034
6035if test x"$lt_prog_compiler_pic_works" = xyes; then
6036    case $lt_prog_compiler_pic in
6037     "" | " "*) ;;
6038     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6039     esac
6040else
6041    lt_prog_compiler_pic=
6042     lt_prog_compiler_can_build_shared=no
6043fi
6044
6045fi
6046case $host_os in
6047  # For platforms which do not support PIC, -DPIC is meaningless:
6048  *djgpp*)
6049    lt_prog_compiler_pic=
6050    ;;
6051  *)
6052    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6053    ;;
6054esac
6055
6056echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6057echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6058if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6059  echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061  lt_cv_prog_compiler_c_o=no
6062   $rm -r conftest 2>/dev/null
6063   mkdir conftest
6064   cd conftest
6065   mkdir out
6066   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6067
6068   lt_compiler_flag="-o out/conftest2.$ac_objext"
6069   # Insert the option either (1) after the last *FLAGS variable, or
6070   # (2) before a word containing "conftest.", or (3) at the end.
6071   # Note that $ac_compile itself does not contain backslashes and begins
6072   # with a dollar sign (not a hyphen), so the echo should work correctly.
6073   lt_compile=`echo "$ac_compile" | $SED \
6074   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6076   -e 's:$: $lt_compiler_flag:'`
6077   (eval echo "\"\$as_me:6077: $lt_compile\"" >&5)
6078   (eval "$lt_compile" 2>out/conftest.err)
6079   ac_status=$?
6080   cat out/conftest.err >&5
6081   echo "$as_me:6081: \$? = $ac_status" >&5
6082   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6083   then
6084     # The compiler can only warn and ignore the option if not recognized
6085     # So say no if there are warnings
6086     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6087     $SED '/^$/d' out/conftest.err >out/conftest.er2
6088     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6089       lt_cv_prog_compiler_c_o=yes
6090     fi
6091   fi
6092   chmod u+w . 2>&5
6093   $rm conftest*
6094   # SGI C++ compiler will create directory out/ii_files/ for
6095   # template instantiation
6096   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6097   $rm out/* && rmdir out
6098   cd ..
6099   rmdir conftest
6100   $rm conftest*
6101
6102fi
6103echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6104echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6105
6106
6107hard_links="nottested"
6108if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6109  # do not overwrite the value of need_locks provided by the user
6110  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6111echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6112  hard_links=yes
6113  $rm conftest*
6114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6115  touch conftest.a
6116  ln conftest.a conftest.b 2>&5 || hard_links=no
6117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6118  echo "$as_me:$LINENO: result: $hard_links" >&5
6119echo "${ECHO_T}$hard_links" >&6
6120  if test "$hard_links" = no; then
6121    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6122echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6123    need_locks=warn
6124  fi
6125else
6126  need_locks=no
6127fi
6128
6129echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6131
6132  runpath_var=
6133  allow_undefined_flag=
6134  enable_shared_with_static_runtimes=no
6135  archive_cmds=
6136  archive_expsym_cmds=
6137  old_archive_From_new_cmds=
6138  old_archive_from_expsyms_cmds=
6139  export_dynamic_flag_spec=
6140  whole_archive_flag_spec=
6141  thread_safe_flag_spec=
6142  hardcode_libdir_flag_spec=
6143  hardcode_libdir_flag_spec_ld=
6144  hardcode_libdir_separator=
6145  hardcode_direct=no
6146  hardcode_minus_L=no
6147  hardcode_shlibpath_var=unsupported
6148  link_all_deplibs=unknown
6149  hardcode_automatic=no
6150  module_cmds=
6151  module_expsym_cmds=
6152  always_export_symbols=no
6153  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6154  # include_expsyms should be a list of space-separated symbols to be *always*
6155  # included in the symbol list
6156  include_expsyms=
6157  # exclude_expsyms can be an extended regexp of symbols to exclude
6158  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6159  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6160  # as well as any symbol that contains `d'.
6161  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6162  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6163  # platforms (ab)use it in PIC code, but their linkers get confused if
6164  # the symbol is explicitly referenced.  Since portable code cannot
6165  # rely on this symbol name, it's probably fine to never include it in
6166  # preloaded symbol tables.
6167  extract_expsyms_cmds=
6168  # Just being paranoid about ensuring that cc_basename is set.
6169  for cc_temp in $compiler""; do
6170  case $cc_temp in
6171    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6172    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6173    \-*) ;;
6174    *) break;;
6175  esac
6176done
6177cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6178
6179  case $host_os in
6180  cygwin* | mingw* | pw32*)
6181    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6182    # When not using gcc, we currently assume that we are using
6183    # Microsoft Visual C++.
6184    if test "$GCC" != yes; then
6185      with_gnu_ld=no
6186    fi
6187    ;;
6188  openbsd*)
6189    with_gnu_ld=no
6190    ;;
6191  esac
6192
6193  ld_shlibs=yes
6194  if test "$with_gnu_ld" = yes; then
6195    # If archive_cmds runs LD, not CC, wlarc should be empty
6196    wlarc='${wl}'
6197
6198    # Set some defaults for GNU ld with shared library support. These
6199    # are reset later if shared libraries are not supported. Putting them
6200    # here allows them to be overridden if necessary.
6201    runpath_var=LD_RUN_PATH
6202    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6203    export_dynamic_flag_spec='${wl}--export-dynamic'
6204    # ancient GNU ld didn't support --whole-archive et. al.
6205    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6206	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6207      else
6208  	whole_archive_flag_spec=
6209    fi
6210    supports_anon_versioning=no
6211    case `$LD -v 2>/dev/null` in
6212      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6213      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6214      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6215      *\ 2.11.*) ;; # other 2.11 versions
6216      *) supports_anon_versioning=yes ;;
6217    esac
6218
6219    # See if GNU ld supports shared libraries.
6220    case $host_os in
6221    aix3* | aix4* | aix5*)
6222      # On AIX/PPC, the GNU linker is very broken
6223      if test "$host_cpu" != ia64; then
6224	ld_shlibs=no
6225	cat <<EOF 1>&2
6226
6227*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6228*** to be unable to reliably create shared libraries on AIX.
6229*** Therefore, libtool is disabling shared libraries support.  If you
6230*** really care for shared libraries, you may want to modify your PATH
6231*** so that a non-GNU linker is found, and then restart.
6232
6233EOF
6234      fi
6235      ;;
6236
6237    amigaos*)
6238      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)'
6239      hardcode_libdir_flag_spec='-L$libdir'
6240      hardcode_minus_L=yes
6241
6242      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6243      # that the semantics of dynamic libraries on AmigaOS, at least up
6244      # to version 4, is to share data among multiple programs linked
6245      # with the same dynamic library.  Since this doesn't match the
6246      # behavior of shared libraries on other platforms, we can't use
6247      # them.
6248      ld_shlibs=no
6249      ;;
6250
6251    beos*)
6252      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6253	allow_undefined_flag=unsupported
6254	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6255	# support --undefined.  This deserves some investigation.  FIXME
6256	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6257      else
6258	ld_shlibs=no
6259      fi
6260      ;;
6261
6262    cygwin* | mingw* | pw32*)
6263      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6264      # as there is no search path for DLLs.
6265      hardcode_libdir_flag_spec='-L$libdir'
6266      allow_undefined_flag=unsupported
6267      always_export_symbols=no
6268      enable_shared_with_static_runtimes=yes
6269      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6270
6271      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6272        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6273	# If the export-symbols file already is a .def file (1st line
6274	# is EXPORTS), use it as is; otherwise, prepend...
6275	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6276	  cp $export_symbols $output_objdir/$soname.def;
6277	else
6278	  echo EXPORTS > $output_objdir/$soname.def;
6279	  cat $export_symbols >> $output_objdir/$soname.def;
6280	fi~
6281	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6282      else
6283	ld_shlibs=no
6284      fi
6285      ;;
6286
6287    linux*)
6288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6289	tmp_addflag=
6290	case $cc_basename,$host_cpu in
6291	pgcc*)				# Portland Group C compiler
6292	  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'
6293	  tmp_addflag=' $pic_flag'
6294	  ;;
6295	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6296	  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'
6297	  tmp_addflag=' $pic_flag -Mnomain' ;;
6298	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6299	  tmp_addflag=' -i_dynamic' ;;
6300	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6301	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6302	ifc* | ifort*)			# Intel Fortran compiler
6303	  tmp_addflag=' -nofor_main' ;;
6304	esac
6305	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6306
6307	if test $supports_anon_versioning = yes; then
6308	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6309  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6310  $echo "local: *; };" >> $output_objdir/$libname.ver~
6311	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6312	fi
6313      else
6314	ld_shlibs=no
6315      fi
6316      ;;
6317
6318    netbsd*)
6319      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6320	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6321	wlarc=
6322      else
6323	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6324	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6325      fi
6326      ;;
6327
6328    solaris* | sysv5*)
6329      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6330	ld_shlibs=no
6331	cat <<EOF 1>&2
6332
6333*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6334*** create shared libraries on Solaris systems.  Therefore, libtool
6335*** is disabling shared libraries support.  We urge you to upgrade GNU
6336*** binutils to release 2.9.1 or newer.  Another option is to modify
6337*** your PATH or compiler configuration so that the native linker is
6338*** used, and then restart.
6339
6340EOF
6341      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6342	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6343	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6344      else
6345	ld_shlibs=no
6346      fi
6347      ;;
6348
6349    sunos4*)
6350      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6351      wlarc=
6352      hardcode_direct=yes
6353      hardcode_shlibpath_var=no
6354      ;;
6355
6356    *)
6357      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6358	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6359	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6360      else
6361	ld_shlibs=no
6362      fi
6363      ;;
6364    esac
6365
6366    if test "$ld_shlibs" = no; then
6367      runpath_var=
6368      hardcode_libdir_flag_spec=
6369      export_dynamic_flag_spec=
6370      whole_archive_flag_spec=
6371    fi
6372  else
6373    # PORTME fill in a description of your system's linker (not GNU ld)
6374    case $host_os in
6375    aix3*)
6376      allow_undefined_flag=unsupported
6377      always_export_symbols=yes
6378      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'
6379      # Note: this linker hardcodes the directories in LIBPATH if there
6380      # are no directories specified by -L.
6381      hardcode_minus_L=yes
6382      if test "$GCC" = yes && test -z "$link_static_flag"; then
6383	# Neither direct hardcoding nor static linking is supported with a
6384	# broken collect2.
6385	hardcode_direct=unsupported
6386      fi
6387      ;;
6388
6389    aix4* | aix5*)
6390      if test "$host_cpu" = ia64; then
6391	# On IA64, the linker does run time linking by default, so we don't
6392	# have to do anything special.
6393	aix_use_runtimelinking=no
6394	exp_sym_flag='-Bexport'
6395	no_entry_flag=""
6396      else
6397	# If we're using GNU nm, then we don't want the "-C" option.
6398	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6399	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6400	  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'
6401	else
6402	  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'
6403	fi
6404	aix_use_runtimelinking=no
6405
6406	# Test if we are trying to use run time linking or normal
6407	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6408	# need to do runtime linking.
6409	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6410	  for ld_flag in $LDFLAGS; do
6411  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6412  	    aix_use_runtimelinking=yes
6413  	    break
6414  	  fi
6415	  done
6416	esac
6417
6418	exp_sym_flag='-bexport'
6419	no_entry_flag='-bnoentry'
6420      fi
6421
6422      # When large executables or shared objects are built, AIX ld can
6423      # have problems creating the table of contents.  If linking a library
6424      # or program results in "error TOC overflow" add -mminimal-toc to
6425      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6426      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6427
6428      archive_cmds=''
6429      hardcode_direct=yes
6430      hardcode_libdir_separator=':'
6431      link_all_deplibs=yes
6432
6433      if test "$GCC" = yes; then
6434	case $host_os in aix4.[012]|aix4.[012].*)
6435	# We only want to do this on AIX 4.2 and lower, the check
6436	# below for broken collect2 doesn't work under 4.3+
6437	  collect2name=`${CC} -print-prog-name=collect2`
6438	  if test -f "$collect2name" && \
6439  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6440	  then
6441  	  # We have reworked collect2
6442  	  hardcode_direct=yes
6443	  else
6444  	  # We have old collect2
6445  	  hardcode_direct=unsupported
6446  	  # It fails to find uninstalled libraries when the uninstalled
6447  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6448  	  # to unsupported forces relinking
6449  	  hardcode_minus_L=yes
6450  	  hardcode_libdir_flag_spec='-L$libdir'
6451  	  hardcode_libdir_separator=
6452	  fi
6453	esac
6454	shared_flag='-shared'
6455	if test "$aix_use_runtimelinking" = yes; then
6456	  shared_flag="$shared_flag "'${wl}-G'
6457	fi
6458      else
6459	# not using gcc
6460	if test "$host_cpu" = ia64; then
6461  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6462  	# chokes on -Wl,-G. The following line is correct:
6463	  shared_flag='-G'
6464	else
6465  	if test "$aix_use_runtimelinking" = yes; then
6466	    shared_flag='${wl}-G'
6467	  else
6468	    shared_flag='${wl}-bM:SRE'
6469  	fi
6470	fi
6471      fi
6472
6473      # It seems that -bexpall does not export symbols beginning with
6474      # underscore (_), so it is better to generate a list of symbols to export.
6475      always_export_symbols=yes
6476      if test "$aix_use_runtimelinking" = yes; then
6477	# Warning - without using the other runtime loading flags (-brtl),
6478	# -berok will link without error, but may produce a broken library.
6479	allow_undefined_flag='-berok'
6480       # Determine the default libpath from the value encoded in an empty executable.
6481       cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h.  */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h.  */
6487
6488int
6489main ()
6490{
6491
6492  ;
6493  return 0;
6494}
6495_ACEOF
6496rm -f conftest.$ac_objext conftest$ac_exeext
6497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498  (eval $ac_link) 2>conftest.er1
6499  ac_status=$?
6500  grep -v '^ *+' conftest.er1 >conftest.err
6501  rm -f conftest.er1
6502  cat conftest.err >&5
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); } &&
6505	 { ac_try='test -z "$ac_c_werror_flag"
6506			 || test ! -s conftest.err'
6507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508  (eval $ac_try) 2>&5
6509  ac_status=$?
6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511  (exit $ac_status); }; } &&
6512	 { ac_try='test -s conftest$ac_exeext'
6513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514  (eval $ac_try) 2>&5
6515  ac_status=$?
6516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517  (exit $ac_status); }; }; then
6518
6519aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6520}'`
6521# Check for a 64-bit object if we didn't find anything.
6522if 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; }
6523}'`; fi
6524else
6525  echo "$as_me: failed program was:" >&5
6526sed 's/^/| /' conftest.$ac_ext >&5
6527
6528fi
6529rm -f conftest.err conftest.$ac_objext \
6530      conftest$ac_exeext conftest.$ac_ext
6531if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6532
6533       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6534	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6535       else
6536	if test "$host_cpu" = ia64; then
6537	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6538	  allow_undefined_flag="-z nodefs"
6539	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6540	else
6541	 # Determine the default libpath from the value encoded in an empty executable.
6542	 cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h.  */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
6547/* end confdefs.h.  */
6548
6549int
6550main ()
6551{
6552
6553  ;
6554  return 0;
6555}
6556_ACEOF
6557rm -f conftest.$ac_objext conftest$ac_exeext
6558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559  (eval $ac_link) 2>conftest.er1
6560  ac_status=$?
6561  grep -v '^ *+' conftest.er1 >conftest.err
6562  rm -f conftest.er1
6563  cat conftest.err >&5
6564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); } &&
6566	 { ac_try='test -z "$ac_c_werror_flag"
6567			 || test ! -s conftest.err'
6568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569  (eval $ac_try) 2>&5
6570  ac_status=$?
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); }; } &&
6573	 { ac_try='test -s conftest$ac_exeext'
6574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575  (eval $ac_try) 2>&5
6576  ac_status=$?
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); }; }; then
6579
6580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6581}'`
6582# Check for a 64-bit object if we didn't find anything.
6583if 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; }
6584}'`; fi
6585else
6586  echo "$as_me: failed program was:" >&5
6587sed 's/^/| /' conftest.$ac_ext >&5
6588
6589fi
6590rm -f conftest.err conftest.$ac_objext \
6591      conftest$ac_exeext conftest.$ac_ext
6592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6593
6594	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6595	  # Warning - without using the other run time loading flags,
6596	  # -berok will link without error, but may produce a broken library.
6597	  no_undefined_flag=' ${wl}-bernotok'
6598	  allow_undefined_flag=' ${wl}-berok'
6599	  # -bexpall does not export symbols beginning with underscore (_)
6600	  always_export_symbols=yes
6601	  # Exported symbols can be pulled into shared objects from archives
6602	  whole_archive_flag_spec=' '
6603	  archive_cmds_need_lc=yes
6604	  # This is similar to how AIX traditionally builds its shared libraries.
6605	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6606	fi
6607      fi
6608      ;;
6609
6610    amigaos*)
6611      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)'
6612      hardcode_libdir_flag_spec='-L$libdir'
6613      hardcode_minus_L=yes
6614      # see comment about different semantics on the GNU ld section
6615      ld_shlibs=no
6616      ;;
6617
6618    bsdi[45]*)
6619      export_dynamic_flag_spec=-rdynamic
6620      ;;
6621
6622    cygwin* | mingw* | pw32*)
6623      # When not using gcc, we currently assume that we are using
6624      # Microsoft Visual C++.
6625      # hardcode_libdir_flag_spec is actually meaningless, as there is
6626      # no search path for DLLs.
6627      hardcode_libdir_flag_spec=' '
6628      allow_undefined_flag=unsupported
6629      # Tell ltmain to make .lib files, not .a files.
6630      libext=lib
6631      # Tell ltmain to make .dll files, not .so files.
6632      shrext_cmds=".dll"
6633      # FIXME: Setting linknames here is a bad hack.
6634      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6635      # The linker will automatically build a .lib file if we build a DLL.
6636      old_archive_From_new_cmds='true'
6637      # FIXME: Should let the user specify the lib program.
6638      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6639      fix_srcfile_path='`cygpath -w "$srcfile"`'
6640      enable_shared_with_static_runtimes=yes
6641      ;;
6642
6643    darwin* | rhapsody*)
6644      case $host_os in
6645        rhapsody* | darwin1.[012])
6646         allow_undefined_flag='${wl}-undefined ${wl}suppress'
6647         ;;
6648       *) # Darwin 1.3 on
6649         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6650           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6651         else
6652           case ${MACOSX_DEPLOYMENT_TARGET} in
6653             10.[012])
6654               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6655               ;;
6656             10.*)
6657               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6658               ;;
6659           esac
6660         fi
6661         ;;
6662      esac
6663      archive_cmds_need_lc=no
6664      hardcode_direct=no
6665      hardcode_automatic=yes
6666      hardcode_shlibpath_var=unsupported
6667      whole_archive_flag_spec=''
6668      link_all_deplibs=yes
6669    if test "$GCC" = yes ; then
6670    	output_verbose_link_cmd='echo'
6671        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6672      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6673      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6674      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}'
6675      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}'
6676    else
6677      case $cc_basename in
6678        xlc*)
6679         output_verbose_link_cmd='echo'
6680         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6681         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6682          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6683         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}'
6684          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}'
6685          ;;
6686       *)
6687         ld_shlibs=no
6688          ;;
6689      esac
6690    fi
6691      ;;
6692
6693    dgux*)
6694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6695      hardcode_libdir_flag_spec='-L$libdir'
6696      hardcode_shlibpath_var=no
6697      ;;
6698
6699    freebsd1*)
6700      ld_shlibs=no
6701      ;;
6702
6703    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6704    # support.  Future versions do this automatically, but an explicit c++rt0.o
6705    # does not break anything, and helps significantly (at the cost of a little
6706    # extra space).
6707    freebsd2.2*)
6708      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6709      hardcode_libdir_flag_spec='-R$libdir'
6710      hardcode_direct=yes
6711      hardcode_shlibpath_var=no
6712      ;;
6713
6714    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6715    freebsd2*)
6716      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6717      hardcode_direct=yes
6718      hardcode_minus_L=yes
6719      hardcode_shlibpath_var=no
6720      ;;
6721
6722    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6723    freebsd* | kfreebsd*-gnu | dragonfly*)
6724      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6725      hardcode_libdir_flag_spec='-R$libdir'
6726      hardcode_direct=yes
6727      hardcode_shlibpath_var=no
6728      ;;
6729
6730    hpux9*)
6731      if test "$GCC" = yes; then
6732	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'
6733      else
6734	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'
6735      fi
6736      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6737      hardcode_libdir_separator=:
6738      hardcode_direct=yes
6739
6740      # hardcode_minus_L: Not really in the search PATH,
6741      # but as the default location of the library.
6742      hardcode_minus_L=yes
6743      export_dynamic_flag_spec='${wl}-E'
6744      ;;
6745
6746    hpux10* | hpux11*)
6747      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6748	case $host_cpu in
6749	hppa*64*|ia64*)
6750	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6751	  ;;
6752	*)
6753	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6754	  ;;
6755	esac
6756      else
6757	case $host_cpu in
6758	hppa*64*|ia64*)
6759	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6760	  ;;
6761	*)
6762	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6763	  ;;
6764	esac
6765      fi
6766      if test "$with_gnu_ld" = no; then
6767	case $host_cpu in
6768	hppa*64*)
6769	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770	  hardcode_libdir_flag_spec_ld='+b $libdir'
6771	  hardcode_libdir_separator=:
6772	  hardcode_direct=no
6773	  hardcode_shlibpath_var=no
6774	  ;;
6775	ia64*)
6776	  hardcode_libdir_flag_spec='-L$libdir'
6777	  hardcode_direct=no
6778	  hardcode_shlibpath_var=no
6779
6780	  # hardcode_minus_L: Not really in the search PATH,
6781	  # but as the default location of the library.
6782	  hardcode_minus_L=yes
6783	  ;;
6784	*)
6785	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6786	  hardcode_libdir_separator=:
6787	  hardcode_direct=yes
6788	  export_dynamic_flag_spec='${wl}-E'
6789
6790	  # hardcode_minus_L: Not really in the search PATH,
6791	  # but as the default location of the library.
6792	  hardcode_minus_L=yes
6793	  ;;
6794	esac
6795      fi
6796      ;;
6797
6798    irix5* | irix6* | nonstopux*)
6799      if test "$GCC" = yes; then
6800	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'
6801      else
6802	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'
6803	hardcode_libdir_flag_spec_ld='-rpath $libdir'
6804      fi
6805      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6806      hardcode_libdir_separator=:
6807      link_all_deplibs=yes
6808      ;;
6809
6810    netbsd*)
6811      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6812	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6813      else
6814	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6815      fi
6816      hardcode_libdir_flag_spec='-R$libdir'
6817      hardcode_direct=yes
6818      hardcode_shlibpath_var=no
6819      ;;
6820
6821    newsos6)
6822      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6823      hardcode_direct=yes
6824      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6825      hardcode_libdir_separator=:
6826      hardcode_shlibpath_var=no
6827      ;;
6828
6829    openbsd*)
6830      hardcode_direct=yes
6831      hardcode_shlibpath_var=no
6832      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6833	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6834	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6835	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6836	export_dynamic_flag_spec='${wl}-E'
6837      else
6838       case $host_os in
6839	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6840	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6841	   hardcode_libdir_flag_spec='-R$libdir'
6842	   ;;
6843	 *)
6844	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6845	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6846	   ;;
6847       esac
6848      fi
6849      ;;
6850
6851    os2*)
6852      hardcode_libdir_flag_spec='-L$libdir'
6853      hardcode_minus_L=yes
6854      allow_undefined_flag=unsupported
6855      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'
6856      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6857      ;;
6858
6859    osf3*)
6860      if test "$GCC" = yes; then
6861	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6862	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'
6863      else
6864	allow_undefined_flag=' -expect_unresolved \*'
6865	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'
6866      fi
6867      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6868      hardcode_libdir_separator=:
6869      ;;
6870
6871    osf4* | osf5*)	# as osf3* with the addition of -msym flag
6872      if test "$GCC" = yes; then
6873	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6874	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'
6875	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6876      else
6877	allow_undefined_flag=' -expect_unresolved \*'
6878	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'
6879	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6880	$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'
6881
6882	# Both c and cxx compiler support -rpath directly
6883	hardcode_libdir_flag_spec='-rpath $libdir'
6884      fi
6885      hardcode_libdir_separator=:
6886      ;;
6887
6888    sco3.2v5*)
6889      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6890      hardcode_shlibpath_var=no
6891      export_dynamic_flag_spec='${wl}-Bexport'
6892      runpath_var=LD_RUN_PATH
6893      hardcode_runpath_var=yes
6894      ;;
6895
6896    solaris*)
6897      no_undefined_flag=' -z text'
6898      if test "$GCC" = yes; then
6899	wlarc='${wl}'
6900	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6901	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6902	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6903      else
6904	wlarc=''
6905	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6906	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6907  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6908      fi
6909      hardcode_libdir_flag_spec='-R$libdir'
6910      hardcode_shlibpath_var=no
6911      case $host_os in
6912      solaris2.[0-5] | solaris2.[0-5].*) ;;
6913      *)
6914 	# The compiler driver will combine linker options so we
6915 	# cannot just pass the convience library names through
6916 	# without $wl, iff we do not link with $LD.
6917 	# Luckily, gcc supports the same syntax we need for Sun Studio.
6918 	# Supported since Solaris 2.6 (maybe 2.5.1?)
6919 	case $wlarc in
6920 	'')
6921 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6922 	*)
6923 	  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' ;;
6924 	esac ;;
6925      esac
6926      link_all_deplibs=yes
6927      ;;
6928
6929    sunos4*)
6930      if test "x$host_vendor" = xsequent; then
6931	# Use $CC to link under sequent, because it throws in some extra .o
6932	# files that make .init and .fini sections work.
6933	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6934      else
6935	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6936      fi
6937      hardcode_libdir_flag_spec='-L$libdir'
6938      hardcode_direct=yes
6939      hardcode_minus_L=yes
6940      hardcode_shlibpath_var=no
6941      ;;
6942
6943    sysv4)
6944      case $host_vendor in
6945	sni)
6946	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6947	  hardcode_direct=yes # is this really true???
6948	;;
6949	siemens)
6950	  ## LD is ld it makes a PLAMLIB
6951	  ## CC just makes a GrossModule.
6952	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6953	  reload_cmds='$CC -r -o $output$reload_objs'
6954	  hardcode_direct=no
6955        ;;
6956	motorola)
6957	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6958	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6959	;;
6960      esac
6961      runpath_var='LD_RUN_PATH'
6962      hardcode_shlibpath_var=no
6963      ;;
6964
6965    sysv4.3*)
6966      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967      hardcode_shlibpath_var=no
6968      export_dynamic_flag_spec='-Bexport'
6969      ;;
6970
6971    sysv4*MP*)
6972      if test -d /usr/nec; then
6973	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6974	hardcode_shlibpath_var=no
6975	runpath_var=LD_RUN_PATH
6976	hardcode_runpath_var=yes
6977	ld_shlibs=yes
6978      fi
6979      ;;
6980
6981    sysv4.2uw2*)
6982      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6983      hardcode_direct=yes
6984      hardcode_minus_L=no
6985      hardcode_shlibpath_var=no
6986      hardcode_runpath_var=yes
6987      runpath_var=LD_RUN_PATH
6988      ;;
6989
6990   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6991      no_undefined_flag='${wl}-z ${wl}text'
6992      if test "$GCC" = yes; then
6993	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994      else
6995	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6996      fi
6997      runpath_var='LD_RUN_PATH'
6998      hardcode_shlibpath_var=no
6999      ;;
7000
7001    sysv5*)
7002      no_undefined_flag=' -z text'
7003      # $CC -shared without GNU ld will not create a library from C++
7004      # object files and a static libstdc++, better avoid it by now
7005      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7007  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7008      hardcode_libdir_flag_spec=
7009      hardcode_shlibpath_var=no
7010      runpath_var='LD_RUN_PATH'
7011      ;;
7012
7013    uts4*)
7014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015      hardcode_libdir_flag_spec='-L$libdir'
7016      hardcode_shlibpath_var=no
7017      ;;
7018
7019    *)
7020      ld_shlibs=no
7021      ;;
7022    esac
7023  fi
7024
7025echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7026echo "${ECHO_T}$ld_shlibs" >&6
7027test "$ld_shlibs" = no && can_build_shared=no
7028
7029variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7030if test "$GCC" = yes; then
7031  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7032fi
7033
7034#
7035# Do we need to explicitly link libc?
7036#
7037case "x$archive_cmds_need_lc" in
7038x|xyes)
7039  # Assume -lc should be added
7040  archive_cmds_need_lc=yes
7041
7042  if test "$enable_shared" = yes && test "$GCC" = yes; then
7043    case $archive_cmds in
7044    *'~'*)
7045      # FIXME: we may have to deal with multi-command sequences.
7046      ;;
7047    '$CC '*)
7048      # Test whether the compiler implicitly links with -lc since on some
7049      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7050      # to ld, don't add -lc before -lgcc.
7051      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7052echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7053      $rm conftest*
7054      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7055
7056      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057  (eval $ac_compile) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); } 2>conftest.err; then
7061        soname=conftest
7062        lib=conftest
7063        libobjs=conftest.$ac_objext
7064        deplibs=
7065        wl=$lt_prog_compiler_wl
7066        compiler_flags=-v
7067        linker_flags=-v
7068        verstring=
7069        output_objdir=.
7070        libname=conftest
7071        lt_save_allow_undefined_flag=$allow_undefined_flag
7072        allow_undefined_flag=
7073        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7074  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7075  ac_status=$?
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); }
7078        then
7079	  archive_cmds_need_lc=no
7080        else
7081	  archive_cmds_need_lc=yes
7082        fi
7083        allow_undefined_flag=$lt_save_allow_undefined_flag
7084      else
7085        cat conftest.err 1>&5
7086      fi
7087      $rm conftest*
7088      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7089echo "${ECHO_T}$archive_cmds_need_lc" >&6
7090      ;;
7091    esac
7092  fi
7093  ;;
7094esac
7095
7096echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7097echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7098library_names_spec=
7099libname_spec='lib$name'
7100soname_spec=
7101shrext_cmds=".so"
7102postinstall_cmds=
7103postuninstall_cmds=
7104finish_cmds=
7105finish_eval=
7106shlibpath_var=
7107shlibpath_overrides_runpath=unknown
7108version_type=none
7109dynamic_linker="$host_os ld.so"
7110sys_lib_dlsearch_path_spec="/lib /usr/lib"
7111if test "$GCC" = yes; then
7112  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7113  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7114    # if the path contains ";" then we assume it to be the separator
7115    # otherwise default to the standard path separator (i.e. ":") - it is
7116    # assumed that no part of a normal pathname contains ";" but that should
7117    # okay in the real world where ";" in dirpaths is itself problematic.
7118    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7119  else
7120    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7121  fi
7122else
7123  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7124fi
7125need_lib_prefix=unknown
7126hardcode_into_libs=no
7127
7128# when you set need_version to no, make sure it does not cause -set_version
7129# flags to be left without arguments
7130need_version=unknown
7131
7132case $host_os in
7133aix3*)
7134  version_type=linux
7135  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7136  shlibpath_var=LIBPATH
7137
7138  # AIX 3 has no versioning support, so we append a major version to the name.
7139  soname_spec='${libname}${release}${shared_ext}$major'
7140  ;;
7141
7142aix4* | aix5*)
7143  version_type=linux
7144  need_lib_prefix=no
7145  need_version=no
7146  hardcode_into_libs=yes
7147  if test "$host_cpu" = ia64; then
7148    # AIX 5 supports IA64
7149    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7150    shlibpath_var=LD_LIBRARY_PATH
7151  else
7152    # With GCC up to 2.95.x, collect2 would create an import file
7153    # for dependence libraries.  The import file would start with
7154    # the line `#! .'.  This would cause the generated library to
7155    # depend on `.', always an invalid library.  This was fixed in
7156    # development snapshots of GCC prior to 3.0.
7157    case $host_os in
7158      aix4 | aix4.[01] | aix4.[01].*)
7159      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7160	   echo ' yes '
7161	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7162	:
7163      else
7164	can_build_shared=no
7165      fi
7166      ;;
7167    esac
7168    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7169    # soname into executable. Probably we can add versioning support to
7170    # collect2, so additional links can be useful in future.
7171    if test "$aix_use_runtimelinking" = yes; then
7172      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7173      # instead of lib<name>.a to let people know that these are not
7174      # typical AIX shared libraries.
7175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7176    else
7177      # We preserve .a as extension for shared libraries through AIX4.2
7178      # and later when we are not doing run time linking.
7179      library_names_spec='${libname}${release}.a $libname.a'
7180      soname_spec='${libname}${release}${shared_ext}$major'
7181    fi
7182    shlibpath_var=LIBPATH
7183  fi
7184  ;;
7185
7186amigaos*)
7187  library_names_spec='$libname.ixlibrary $libname.a'
7188  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7189  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'
7190  ;;
7191
7192beos*)
7193  library_names_spec='${libname}${shared_ext}'
7194  dynamic_linker="$host_os ld.so"
7195  shlibpath_var=LIBRARY_PATH
7196  ;;
7197
7198bsdi[45]*)
7199  version_type=linux
7200  need_version=no
7201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7202  soname_spec='${libname}${release}${shared_ext}$major'
7203  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7204  shlibpath_var=LD_LIBRARY_PATH
7205  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7206  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7207  # the default ld.so.conf also contains /usr/contrib/lib and
7208  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7209  # libtool to hard-code these into programs
7210  ;;
7211
7212cygwin* | mingw* | pw32*)
7213  version_type=windows
7214  shrext_cmds=".dll"
7215  need_version=no
7216  need_lib_prefix=no
7217
7218  case $GCC,$host_os in
7219  yes,cygwin* | yes,mingw* | yes,pw32*)
7220    library_names_spec='$libname.dll.a'
7221    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7222    postinstall_cmds='base_file=`basename \${file}`~
7223      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7224      dldir=$destdir/`dirname \$dlpath`~
7225      test -d \$dldir || mkdir -p \$dldir~
7226      $install_prog $dir/$dlname \$dldir/$dlname~
7227      chmod a+x \$dldir/$dlname'
7228    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7229      dlpath=$dir/\$dldll~
7230       $rm \$dlpath'
7231    shlibpath_overrides_runpath=yes
7232
7233    case $host_os in
7234    cygwin*)
7235      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7236      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7237      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7238      ;;
7239    mingw*)
7240      # MinGW DLLs use traditional 'lib' prefix
7241      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7242      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7243      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7244        # It is most probably a Windows format PATH printed by
7245        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7246        # path with ; separators, and with drive letters. We can handle the
7247        # drive letters (cygwin fileutils understands them), so leave them,
7248        # especially as we might pass files found there to a mingw objdump,
7249        # which wouldn't understand a cygwinified path. Ahh.
7250        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7251      else
7252        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7253      fi
7254      ;;
7255    pw32*)
7256      # pw32 DLLs use 'pw' prefix rather than 'lib'
7257      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7258      ;;
7259    esac
7260    ;;
7261
7262  *)
7263    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7264    ;;
7265  esac
7266  dynamic_linker='Win32 ld.exe'
7267  # FIXME: first we should search . and the directory the executable is in
7268  shlibpath_var=PATH
7269  ;;
7270
7271darwin* | rhapsody*)
7272  dynamic_linker="$host_os dyld"
7273  version_type=darwin
7274  need_lib_prefix=no
7275  need_version=no
7276  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7277  soname_spec='${libname}${release}${major}$shared_ext'
7278  shlibpath_overrides_runpath=yes
7279  shlibpath_var=DYLD_LIBRARY_PATH
7280  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7281  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7282  if test "$GCC" = yes; then
7283    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"`
7284  else
7285    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7286  fi
7287  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7288  ;;
7289
7290dgux*)
7291  version_type=linux
7292  need_lib_prefix=no
7293  need_version=no
7294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7295  soname_spec='${libname}${release}${shared_ext}$major'
7296  shlibpath_var=LD_LIBRARY_PATH
7297  ;;
7298
7299freebsd1*)
7300  dynamic_linker=no
7301  ;;
7302
7303kfreebsd*-gnu)
7304  version_type=linux
7305  need_lib_prefix=no
7306  need_version=no
7307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7308  soname_spec='${libname}${release}${shared_ext}$major'
7309  shlibpath_var=LD_LIBRARY_PATH
7310  shlibpath_overrides_runpath=no
7311  hardcode_into_libs=yes
7312  dynamic_linker='GNU ld.so'
7313  ;;
7314
7315freebsd* | dragonfly*)
7316  # DragonFly does not have aout.  When/if they implement a new
7317  # versioning mechanism, adjust this.
7318  if test -x /usr/bin/objformat; then
7319    objformat=`/usr/bin/objformat`
7320  else
7321    case $host_os in
7322    freebsd[123]*) objformat=aout ;;
7323    *) objformat=elf ;;
7324    esac
7325  fi
7326  version_type=freebsd-$objformat
7327  case $version_type in
7328    freebsd-elf*)
7329      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7330      need_version=no
7331      need_lib_prefix=no
7332      ;;
7333    freebsd-*)
7334      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7335      need_version=yes
7336      ;;
7337  esac
7338  shlibpath_var=LD_LIBRARY_PATH
7339  case $host_os in
7340  freebsd2*)
7341    shlibpath_overrides_runpath=yes
7342    ;;
7343  freebsd3.[01]* | freebsdelf3.[01]*)
7344    shlibpath_overrides_runpath=yes
7345    hardcode_into_libs=yes
7346    ;;
7347  *) # from 3.2 on
7348    shlibpath_overrides_runpath=no
7349    hardcode_into_libs=yes
7350    ;;
7351  esac
7352  ;;
7353
7354gnu*)
7355  version_type=linux
7356  need_lib_prefix=no
7357  need_version=no
7358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7359  soname_spec='${libname}${release}${shared_ext}$major'
7360  shlibpath_var=LD_LIBRARY_PATH
7361  hardcode_into_libs=yes
7362  ;;
7363
7364hpux9* | hpux10* | hpux11*)
7365  # Give a soname corresponding to the major version so that dld.sl refuses to
7366  # link against other versions.
7367  version_type=sunos
7368  need_lib_prefix=no
7369  need_version=no
7370  case $host_cpu in
7371  ia64*)
7372    shrext_cmds='.so'
7373    hardcode_into_libs=yes
7374    dynamic_linker="$host_os dld.so"
7375    shlibpath_var=LD_LIBRARY_PATH
7376    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7377    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7378    soname_spec='${libname}${release}${shared_ext}$major'
7379    if test "X$HPUX_IA64_MODE" = X32; then
7380      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7381    else
7382      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7383    fi
7384    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7385    ;;
7386   hppa*64*)
7387     shrext_cmds='.sl'
7388     hardcode_into_libs=yes
7389     dynamic_linker="$host_os dld.sl"
7390     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7391     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7393     soname_spec='${libname}${release}${shared_ext}$major'
7394     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7396     ;;
7397   *)
7398    shrext_cmds='.sl'
7399    dynamic_linker="$host_os dld.sl"
7400    shlibpath_var=SHLIB_PATH
7401    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7403    soname_spec='${libname}${release}${shared_ext}$major'
7404    ;;
7405  esac
7406  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7407  postinstall_cmds='chmod 555 $lib'
7408  ;;
7409
7410irix5* | irix6* | nonstopux*)
7411  case $host_os in
7412    nonstopux*) version_type=nonstopux ;;
7413    *)
7414	if test "$lt_cv_prog_gnu_ld" = yes; then
7415		version_type=linux
7416	else
7417		version_type=irix
7418	fi ;;
7419  esac
7420  need_lib_prefix=no
7421  need_version=no
7422  soname_spec='${libname}${release}${shared_ext}$major'
7423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7424  case $host_os in
7425  irix5* | nonstopux*)
7426    libsuff= shlibsuff=
7427    ;;
7428  *)
7429    case $LD in # libtool.m4 will add one of these switches to LD
7430    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7431      libsuff= shlibsuff= libmagic=32-bit;;
7432    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7433      libsuff=32 shlibsuff=N32 libmagic=N32;;
7434    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7435      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7436    *) libsuff= shlibsuff= libmagic=never-match;;
7437    esac
7438    ;;
7439  esac
7440  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7441  shlibpath_overrides_runpath=no
7442  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7443  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7444  hardcode_into_libs=yes
7445  ;;
7446
7447# No shared lib support for Linux oldld, aout, or coff.
7448linux*oldld* | linux*aout* | linux*coff*)
7449  dynamic_linker=no
7450  ;;
7451
7452# This must be Linux ELF.
7453linux*)
7454  version_type=linux
7455  need_lib_prefix=no
7456  need_version=no
7457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458  soname_spec='${libname}${release}${shared_ext}$major'
7459  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7460  shlibpath_var=LD_LIBRARY_PATH
7461  shlibpath_overrides_runpath=no
7462  # This implies no fast_install, which is unacceptable.
7463  # Some rework will be needed to allow for fast_install
7464  # before this can be enabled.
7465  hardcode_into_libs=yes
7466
7467  # Append ld.so.conf contents to the search path
7468  if test -f /etc/ld.so.conf; then
7469    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' ' '`
7470    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7471  fi
7472
7473  # We used to test for /lib/ld.so.1 and disable shared libraries on
7474  # powerpc, because MkLinux only supported shared libraries with the
7475  # GNU dynamic linker.  Since this was broken with cross compilers,
7476  # most powerpc-linux boxes support dynamic linking these days and
7477  # people can always --disable-shared, the test was removed, and we
7478  # assume the GNU/Linux dynamic linker is in use.
7479  dynamic_linker='GNU/Linux ld.so'
7480  ;;
7481
7482knetbsd*-gnu)
7483  version_type=linux
7484  need_lib_prefix=no
7485  need_version=no
7486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7487  soname_spec='${libname}${release}${shared_ext}$major'
7488  shlibpath_var=LD_LIBRARY_PATH
7489  shlibpath_overrides_runpath=no
7490  hardcode_into_libs=yes
7491  dynamic_linker='GNU ld.so'
7492  ;;
7493
7494netbsd*)
7495  version_type=sunos
7496  need_lib_prefix=no
7497  need_version=no
7498  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7500    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7501    dynamic_linker='NetBSD (a.out) ld.so'
7502  else
7503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7504    soname_spec='${libname}${release}${shared_ext}$major'
7505    dynamic_linker='NetBSD ld.elf_so'
7506  fi
7507  shlibpath_var=LD_LIBRARY_PATH
7508  shlibpath_overrides_runpath=yes
7509  hardcode_into_libs=yes
7510  ;;
7511
7512newsos6)
7513  version_type=linux
7514  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515  shlibpath_var=LD_LIBRARY_PATH
7516  shlibpath_overrides_runpath=yes
7517  ;;
7518
7519nto-qnx*)
7520  version_type=linux
7521  need_lib_prefix=no
7522  need_version=no
7523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7524  soname_spec='${libname}${release}${shared_ext}$major'
7525  shlibpath_var=LD_LIBRARY_PATH
7526  shlibpath_overrides_runpath=yes
7527  ;;
7528
7529openbsd*)
7530  version_type=sunos
7531  need_lib_prefix=no
7532  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7533  case $host_os in
7534    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7535    *)                         need_version=no  ;;
7536  esac
7537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7538  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7539  shlibpath_var=LD_LIBRARY_PATH
7540  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7541    case $host_os in
7542      openbsd2.[89] | openbsd2.[89].*)
7543	shlibpath_overrides_runpath=no
7544	;;
7545      *)
7546	shlibpath_overrides_runpath=yes
7547	;;
7548      esac
7549  else
7550    shlibpath_overrides_runpath=yes
7551  fi
7552  ;;
7553
7554os2*)
7555  libname_spec='$name'
7556  shrext_cmds=".dll"
7557  need_lib_prefix=no
7558  library_names_spec='$libname${shared_ext} $libname.a'
7559  dynamic_linker='OS/2 ld.exe'
7560  shlibpath_var=LIBPATH
7561  ;;
7562
7563osf3* | osf4* | osf5*)
7564  version_type=osf
7565  need_lib_prefix=no
7566  need_version=no
7567  soname_spec='${libname}${release}${shared_ext}$major'
7568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7569  shlibpath_var=LD_LIBRARY_PATH
7570  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7571  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7572  ;;
7573
7574sco3.2v5*)
7575  version_type=osf
7576  soname_spec='${libname}${release}${shared_ext}$major'
7577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7578  shlibpath_var=LD_LIBRARY_PATH
7579  ;;
7580
7581solaris*)
7582  version_type=linux
7583  need_lib_prefix=no
7584  need_version=no
7585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7586  soname_spec='${libname}${release}${shared_ext}$major'
7587  shlibpath_var=LD_LIBRARY_PATH
7588  shlibpath_overrides_runpath=yes
7589  hardcode_into_libs=yes
7590  # ldd complains unless libraries are executable
7591  postinstall_cmds='chmod +x $lib'
7592  ;;
7593
7594sunos4*)
7595  version_type=sunos
7596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7597  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7598  shlibpath_var=LD_LIBRARY_PATH
7599  shlibpath_overrides_runpath=yes
7600  if test "$with_gnu_ld" = yes; then
7601    need_lib_prefix=no
7602  fi
7603  need_version=yes
7604  ;;
7605
7606sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7607  version_type=linux
7608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7609  soname_spec='${libname}${release}${shared_ext}$major'
7610  shlibpath_var=LD_LIBRARY_PATH
7611  case $host_vendor in
7612    sni)
7613      shlibpath_overrides_runpath=no
7614      need_lib_prefix=no
7615      export_dynamic_flag_spec='${wl}-Blargedynsym'
7616      runpath_var=LD_RUN_PATH
7617      ;;
7618    siemens)
7619      need_lib_prefix=no
7620      ;;
7621    motorola)
7622      need_lib_prefix=no
7623      need_version=no
7624      shlibpath_overrides_runpath=no
7625      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7626      ;;
7627  esac
7628  ;;
7629
7630sysv4*MP*)
7631  if test -d /usr/nec ;then
7632    version_type=linux
7633    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7634    soname_spec='$libname${shared_ext}.$major'
7635    shlibpath_var=LD_LIBRARY_PATH
7636  fi
7637  ;;
7638
7639uts4*)
7640  version_type=linux
7641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7642  soname_spec='${libname}${release}${shared_ext}$major'
7643  shlibpath_var=LD_LIBRARY_PATH
7644  ;;
7645
7646*)
7647  dynamic_linker=no
7648  ;;
7649esac
7650echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7651echo "${ECHO_T}$dynamic_linker" >&6
7652test "$dynamic_linker" = no && can_build_shared=no
7653
7654echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7655echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7656hardcode_action=
7657if test -n "$hardcode_libdir_flag_spec" || \
7658   test -n "$runpath_var" || \
7659   test "X$hardcode_automatic" = "Xyes" ; then
7660
7661  # We can hardcode non-existant directories.
7662  if test "$hardcode_direct" != no &&
7663     # If the only mechanism to avoid hardcoding is shlibpath_var, we
7664     # have to relink, otherwise we might link with an installed library
7665     # when we should be linking with a yet-to-be-installed one
7666     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7667     test "$hardcode_minus_L" != no; then
7668    # Linking always hardcodes the temporary library directory.
7669    hardcode_action=relink
7670  else
7671    # We can link without hardcoding, and we can hardcode nonexisting dirs.
7672    hardcode_action=immediate
7673  fi
7674else
7675  # We cannot hardcode anything, or else we can only hardcode existing
7676  # directories.
7677  hardcode_action=unsupported
7678fi
7679echo "$as_me:$LINENO: result: $hardcode_action" >&5
7680echo "${ECHO_T}$hardcode_action" >&6
7681
7682if test "$hardcode_action" = relink; then
7683  # Fast installation is not supported
7684  enable_fast_install=no
7685elif test "$shlibpath_overrides_runpath" = yes ||
7686     test "$enable_shared" = no; then
7687  # Fast installation is not necessary
7688  enable_fast_install=needless
7689fi
7690
7691striplib=
7692old_striplib=
7693echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7694echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7695if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7696  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7697  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7698  echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700else
7701# FIXME - insert some real tests, host_os isn't really good enough
7702  case $host_os in
7703   darwin*)
7704       if test -n "$STRIP" ; then
7705         striplib="$STRIP -x"
7706         echo "$as_me:$LINENO: result: yes" >&5
7707echo "${ECHO_T}yes" >&6
7708       else
7709  echo "$as_me:$LINENO: result: no" >&5
7710echo "${ECHO_T}no" >&6
7711fi
7712       ;;
7713   *)
7714  echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716    ;;
7717  esac
7718fi
7719
7720if test "x$enable_dlopen" != xyes; then
7721  enable_dlopen=unknown
7722  enable_dlopen_self=unknown
7723  enable_dlopen_self_static=unknown
7724else
7725  lt_cv_dlopen=no
7726  lt_cv_dlopen_libs=
7727
7728  case $host_os in
7729  beos*)
7730    lt_cv_dlopen="load_add_on"
7731    lt_cv_dlopen_libs=
7732    lt_cv_dlopen_self=yes
7733    ;;
7734
7735  mingw* | pw32*)
7736    lt_cv_dlopen="LoadLibrary"
7737    lt_cv_dlopen_libs=
7738   ;;
7739
7740  cygwin*)
7741    lt_cv_dlopen="dlopen"
7742    lt_cv_dlopen_libs=
7743   ;;
7744
7745  darwin*)
7746  # if libdl is installed we need to link against it
7747    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7748echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7749if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7750  echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752  ac_check_lib_save_LIBS=$LIBS
7753LIBS="-ldl  $LIBS"
7754cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h.  */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h.  */
7760
7761/* Override any gcc2 internal prototype to avoid an error.  */
7762#ifdef __cplusplus
7763extern "C"
7764#endif
7765/* We use char because int might match the return type of a gcc2
7766   builtin and then its argument prototype would still apply.  */
7767char dlopen ();
7768int
7769main ()
7770{
7771dlopen ();
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776rm -f conftest.$ac_objext conftest$ac_exeext
7777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778  (eval $ac_link) 2>conftest.er1
7779  ac_status=$?
7780  grep -v '^ *+' conftest.er1 >conftest.err
7781  rm -f conftest.er1
7782  cat conftest.err >&5
7783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784  (exit $ac_status); } &&
7785	 { ac_try='test -z "$ac_c_werror_flag"
7786			 || test ! -s conftest.err'
7787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788  (eval $ac_try) 2>&5
7789  ac_status=$?
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); }; } &&
7792	 { ac_try='test -s conftest$ac_exeext'
7793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794  (eval $ac_try) 2>&5
7795  ac_status=$?
7796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797  (exit $ac_status); }; }; then
7798  ac_cv_lib_dl_dlopen=yes
7799else
7800  echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803ac_cv_lib_dl_dlopen=no
7804fi
7805rm -f conftest.err conftest.$ac_objext \
7806      conftest$ac_exeext conftest.$ac_ext
7807LIBS=$ac_check_lib_save_LIBS
7808fi
7809echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7810echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7811if test $ac_cv_lib_dl_dlopen = yes; then
7812  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7813else
7814
7815    lt_cv_dlopen="dyld"
7816    lt_cv_dlopen_libs=
7817    lt_cv_dlopen_self=yes
7818
7819fi
7820
7821   ;;
7822
7823  *)
7824    echo "$as_me:$LINENO: checking for shl_load" >&5
7825echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7826if test "${ac_cv_func_shl_load+set}" = set; then
7827  echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829  cat >conftest.$ac_ext <<_ACEOF
7830/* confdefs.h.  */
7831_ACEOF
7832cat confdefs.h >>conftest.$ac_ext
7833cat >>conftest.$ac_ext <<_ACEOF
7834/* end confdefs.h.  */
7835/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7836   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7837#define shl_load innocuous_shl_load
7838
7839/* System header to define __stub macros and hopefully few prototypes,
7840    which can conflict with char shl_load (); below.
7841    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842    <limits.h> exists even on freestanding compilers.  */
7843
7844#ifdef __STDC__
7845# include <limits.h>
7846#else
7847# include <assert.h>
7848#endif
7849
7850#undef shl_load
7851
7852/* Override any gcc2 internal prototype to avoid an error.  */
7853#ifdef __cplusplus
7854extern "C"
7855{
7856#endif
7857/* We use char because int might match the return type of a gcc2
7858   builtin and then its argument prototype would still apply.  */
7859char shl_load ();
7860/* The GNU C library defines this for functions which it implements
7861    to always fail with ENOSYS.  Some functions are actually named
7862    something starting with __ and the normal name is an alias.  */
7863#if defined (__stub_shl_load) || defined (__stub___shl_load)
7864choke me
7865#else
7866char (*f) () = shl_load;
7867#endif
7868#ifdef __cplusplus
7869}
7870#endif
7871
7872int
7873main ()
7874{
7875return f != shl_load;
7876  ;
7877  return 0;
7878}
7879_ACEOF
7880rm -f conftest.$ac_objext conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882  (eval $ac_link) 2>conftest.er1
7883  ac_status=$?
7884  grep -v '^ *+' conftest.er1 >conftest.err
7885  rm -f conftest.er1
7886  cat conftest.err >&5
7887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888  (exit $ac_status); } &&
7889	 { ac_try='test -z "$ac_c_werror_flag"
7890			 || test ! -s conftest.err'
7891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892  (eval $ac_try) 2>&5
7893  ac_status=$?
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); }; } &&
7896	 { ac_try='test -s conftest$ac_exeext'
7897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898  (eval $ac_try) 2>&5
7899  ac_status=$?
7900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901  (exit $ac_status); }; }; then
7902  ac_cv_func_shl_load=yes
7903else
7904  echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907ac_cv_func_shl_load=no
7908fi
7909rm -f conftest.err conftest.$ac_objext \
7910      conftest$ac_exeext conftest.$ac_ext
7911fi
7912echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7913echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7914if test $ac_cv_func_shl_load = yes; then
7915  lt_cv_dlopen="shl_load"
7916else
7917  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7918echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7919if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7920  echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922  ac_check_lib_save_LIBS=$LIBS
7923LIBS="-ldld  $LIBS"
7924cat >conftest.$ac_ext <<_ACEOF
7925/* confdefs.h.  */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h.  */
7930
7931/* Override any gcc2 internal prototype to avoid an error.  */
7932#ifdef __cplusplus
7933extern "C"
7934#endif
7935/* We use char because int might match the return type of a gcc2
7936   builtin and then its argument prototype would still apply.  */
7937char shl_load ();
7938int
7939main ()
7940{
7941shl_load ();
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext conftest$ac_exeext
7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948  (eval $ac_link) 2>conftest.er1
7949  ac_status=$?
7950  grep -v '^ *+' conftest.er1 >conftest.err
7951  rm -f conftest.er1
7952  cat conftest.err >&5
7953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954  (exit $ac_status); } &&
7955	 { ac_try='test -z "$ac_c_werror_flag"
7956			 || test ! -s conftest.err'
7957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958  (eval $ac_try) 2>&5
7959  ac_status=$?
7960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961  (exit $ac_status); }; } &&
7962	 { ac_try='test -s conftest$ac_exeext'
7963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964  (eval $ac_try) 2>&5
7965  ac_status=$?
7966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967  (exit $ac_status); }; }; then
7968  ac_cv_lib_dld_shl_load=yes
7969else
7970  echo "$as_me: failed program was:" >&5
7971sed 's/^/| /' conftest.$ac_ext >&5
7972
7973ac_cv_lib_dld_shl_load=no
7974fi
7975rm -f conftest.err conftest.$ac_objext \
7976      conftest$ac_exeext conftest.$ac_ext
7977LIBS=$ac_check_lib_save_LIBS
7978fi
7979echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7980echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7981if test $ac_cv_lib_dld_shl_load = yes; then
7982  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7983else
7984  echo "$as_me:$LINENO: checking for dlopen" >&5
7985echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7986if test "${ac_cv_func_dlopen+set}" = set; then
7987  echo $ECHO_N "(cached) $ECHO_C" >&6
7988else
7989  cat >conftest.$ac_ext <<_ACEOF
7990/* confdefs.h.  */
7991_ACEOF
7992cat confdefs.h >>conftest.$ac_ext
7993cat >>conftest.$ac_ext <<_ACEOF
7994/* end confdefs.h.  */
7995/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7996   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7997#define dlopen innocuous_dlopen
7998
7999/* System header to define __stub macros and hopefully few prototypes,
8000    which can conflict with char dlopen (); below.
8001    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002    <limits.h> exists even on freestanding compilers.  */
8003
8004#ifdef __STDC__
8005# include <limits.h>
8006#else
8007# include <assert.h>
8008#endif
8009
8010#undef dlopen
8011
8012/* Override any gcc2 internal prototype to avoid an error.  */
8013#ifdef __cplusplus
8014extern "C"
8015{
8016#endif
8017/* We use char because int might match the return type of a gcc2
8018   builtin and then its argument prototype would still apply.  */
8019char dlopen ();
8020/* The GNU C library defines this for functions which it implements
8021    to always fail with ENOSYS.  Some functions are actually named
8022    something starting with __ and the normal name is an alias.  */
8023#if defined (__stub_dlopen) || defined (__stub___dlopen)
8024choke me
8025#else
8026char (*f) () = dlopen;
8027#endif
8028#ifdef __cplusplus
8029}
8030#endif
8031
8032int
8033main ()
8034{
8035return f != dlopen;
8036  ;
8037  return 0;
8038}
8039_ACEOF
8040rm -f conftest.$ac_objext conftest$ac_exeext
8041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042  (eval $ac_link) 2>conftest.er1
8043  ac_status=$?
8044  grep -v '^ *+' conftest.er1 >conftest.err
8045  rm -f conftest.er1
8046  cat conftest.err >&5
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); } &&
8049	 { ac_try='test -z "$ac_c_werror_flag"
8050			 || test ! -s conftest.err'
8051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052  (eval $ac_try) 2>&5
8053  ac_status=$?
8054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055  (exit $ac_status); }; } &&
8056	 { ac_try='test -s conftest$ac_exeext'
8057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058  (eval $ac_try) 2>&5
8059  ac_status=$?
8060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061  (exit $ac_status); }; }; then
8062  ac_cv_func_dlopen=yes
8063else
8064  echo "$as_me: failed program was:" >&5
8065sed 's/^/| /' conftest.$ac_ext >&5
8066
8067ac_cv_func_dlopen=no
8068fi
8069rm -f conftest.err conftest.$ac_objext \
8070      conftest$ac_exeext conftest.$ac_ext
8071fi
8072echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8073echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8074if test $ac_cv_func_dlopen = yes; then
8075  lt_cv_dlopen="dlopen"
8076else
8077  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8078echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8079if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8080  echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082  ac_check_lib_save_LIBS=$LIBS
8083LIBS="-ldl  $LIBS"
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h.  */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h.  */
8090
8091/* Override any gcc2 internal prototype to avoid an error.  */
8092#ifdef __cplusplus
8093extern "C"
8094#endif
8095/* We use char because int might match the return type of a gcc2
8096   builtin and then its argument prototype would still apply.  */
8097char dlopen ();
8098int
8099main ()
8100{
8101dlopen ();
8102  ;
8103  return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext conftest$ac_exeext
8107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108  (eval $ac_link) 2>conftest.er1
8109  ac_status=$?
8110  grep -v '^ *+' conftest.er1 >conftest.err
8111  rm -f conftest.er1
8112  cat conftest.err >&5
8113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114  (exit $ac_status); } &&
8115	 { ac_try='test -z "$ac_c_werror_flag"
8116			 || test ! -s conftest.err'
8117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118  (eval $ac_try) 2>&5
8119  ac_status=$?
8120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121  (exit $ac_status); }; } &&
8122	 { ac_try='test -s conftest$ac_exeext'
8123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124  (eval $ac_try) 2>&5
8125  ac_status=$?
8126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127  (exit $ac_status); }; }; then
8128  ac_cv_lib_dl_dlopen=yes
8129else
8130  echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133ac_cv_lib_dl_dlopen=no
8134fi
8135rm -f conftest.err conftest.$ac_objext \
8136      conftest$ac_exeext conftest.$ac_ext
8137LIBS=$ac_check_lib_save_LIBS
8138fi
8139echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8140echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8141if test $ac_cv_lib_dl_dlopen = yes; then
8142  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8143else
8144  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8145echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8146if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8147  echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149  ac_check_lib_save_LIBS=$LIBS
8150LIBS="-lsvld  $LIBS"
8151cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h.  */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h.  */
8157
8158/* Override any gcc2 internal prototype to avoid an error.  */
8159#ifdef __cplusplus
8160extern "C"
8161#endif
8162/* We use char because int might match the return type of a gcc2
8163   builtin and then its argument prototype would still apply.  */
8164char dlopen ();
8165int
8166main ()
8167{
8168dlopen ();
8169  ;
8170  return 0;
8171}
8172_ACEOF
8173rm -f conftest.$ac_objext conftest$ac_exeext
8174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175  (eval $ac_link) 2>conftest.er1
8176  ac_status=$?
8177  grep -v '^ *+' conftest.er1 >conftest.err
8178  rm -f conftest.er1
8179  cat conftest.err >&5
8180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181  (exit $ac_status); } &&
8182	 { ac_try='test -z "$ac_c_werror_flag"
8183			 || test ! -s conftest.err'
8184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185  (eval $ac_try) 2>&5
8186  ac_status=$?
8187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188  (exit $ac_status); }; } &&
8189	 { ac_try='test -s conftest$ac_exeext'
8190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191  (eval $ac_try) 2>&5
8192  ac_status=$?
8193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194  (exit $ac_status); }; }; then
8195  ac_cv_lib_svld_dlopen=yes
8196else
8197  echo "$as_me: failed program was:" >&5
8198sed 's/^/| /' conftest.$ac_ext >&5
8199
8200ac_cv_lib_svld_dlopen=no
8201fi
8202rm -f conftest.err conftest.$ac_objext \
8203      conftest$ac_exeext conftest.$ac_ext
8204LIBS=$ac_check_lib_save_LIBS
8205fi
8206echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8207echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8208if test $ac_cv_lib_svld_dlopen = yes; then
8209  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8210else
8211  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8212echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8213if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8214  echo $ECHO_N "(cached) $ECHO_C" >&6
8215else
8216  ac_check_lib_save_LIBS=$LIBS
8217LIBS="-ldld  $LIBS"
8218cat >conftest.$ac_ext <<_ACEOF
8219/* confdefs.h.  */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h.  */
8224
8225/* Override any gcc2 internal prototype to avoid an error.  */
8226#ifdef __cplusplus
8227extern "C"
8228#endif
8229/* We use char because int might match the return type of a gcc2
8230   builtin and then its argument prototype would still apply.  */
8231char dld_link ();
8232int
8233main ()
8234{
8235dld_link ();
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext conftest$ac_exeext
8241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242  (eval $ac_link) 2>conftest.er1
8243  ac_status=$?
8244  grep -v '^ *+' conftest.er1 >conftest.err
8245  rm -f conftest.er1
8246  cat conftest.err >&5
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); } &&
8249	 { ac_try='test -z "$ac_c_werror_flag"
8250			 || test ! -s conftest.err'
8251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252  (eval $ac_try) 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); }; } &&
8256	 { ac_try='test -s conftest$ac_exeext'
8257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258  (eval $ac_try) 2>&5
8259  ac_status=$?
8260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261  (exit $ac_status); }; }; then
8262  ac_cv_lib_dld_dld_link=yes
8263else
8264  echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267ac_cv_lib_dld_dld_link=no
8268fi
8269rm -f conftest.err conftest.$ac_objext \
8270      conftest$ac_exeext conftest.$ac_ext
8271LIBS=$ac_check_lib_save_LIBS
8272fi
8273echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8274echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8275if test $ac_cv_lib_dld_dld_link = yes; then
8276  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8277fi
8278
8279
8280fi
8281
8282
8283fi
8284
8285
8286fi
8287
8288
8289fi
8290
8291
8292fi
8293
8294    ;;
8295  esac
8296
8297  if test "x$lt_cv_dlopen" != xno; then
8298    enable_dlopen=yes
8299  else
8300    enable_dlopen=no
8301  fi
8302
8303  case $lt_cv_dlopen in
8304  dlopen)
8305    save_CPPFLAGS="$CPPFLAGS"
8306    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8307
8308    save_LDFLAGS="$LDFLAGS"
8309    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8310
8311    save_LIBS="$LIBS"
8312    LIBS="$lt_cv_dlopen_libs $LIBS"
8313
8314    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8315echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8316if test "${lt_cv_dlopen_self+set}" = set; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  	  if test "$cross_compiling" = yes; then :
8320  lt_cv_dlopen_self=cross
8321else
8322  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8323  lt_status=$lt_dlunknown
8324  cat > conftest.$ac_ext <<EOF
8325#line 8325 "configure"
8326#include "confdefs.h"
8327
8328#if HAVE_DLFCN_H
8329#include <dlfcn.h>
8330#endif
8331
8332#include <stdio.h>
8333
8334#ifdef RTLD_GLOBAL
8335#  define LT_DLGLOBAL		RTLD_GLOBAL
8336#else
8337#  ifdef DL_GLOBAL
8338#    define LT_DLGLOBAL		DL_GLOBAL
8339#  else
8340#    define LT_DLGLOBAL		0
8341#  endif
8342#endif
8343
8344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8345   find out it does not work in some platform. */
8346#ifndef LT_DLLAZY_OR_NOW
8347#  ifdef RTLD_LAZY
8348#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8349#  else
8350#    ifdef DL_LAZY
8351#      define LT_DLLAZY_OR_NOW		DL_LAZY
8352#    else
8353#      ifdef RTLD_NOW
8354#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8355#      else
8356#        ifdef DL_NOW
8357#          define LT_DLLAZY_OR_NOW	DL_NOW
8358#        else
8359#          define LT_DLLAZY_OR_NOW	0
8360#        endif
8361#      endif
8362#    endif
8363#  endif
8364#endif
8365
8366#ifdef __cplusplus
8367extern "C" void exit (int);
8368#endif
8369
8370void fnord() { int i=42;}
8371int main ()
8372{
8373  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8374  int status = $lt_dlunknown;
8375
8376  if (self)
8377    {
8378      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8379      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8380      /* dlclose (self); */
8381    }
8382
8383    exit (status);
8384}
8385EOF
8386  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387  (eval $ac_link) 2>&5
8388  ac_status=$?
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8391    (./conftest; exit; ) >&5 2>/dev/null
8392    lt_status=$?
8393    case x$lt_status in
8394      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8395      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8396      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8397    esac
8398  else :
8399    # compilation failed
8400    lt_cv_dlopen_self=no
8401  fi
8402fi
8403rm -fr conftest*
8404
8405
8406fi
8407echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8408echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8409
8410    if test "x$lt_cv_dlopen_self" = xyes; then
8411      LDFLAGS="$LDFLAGS $link_static_flag"
8412      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8413echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8414if test "${lt_cv_dlopen_self_static+set}" = set; then
8415  echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417  	  if test "$cross_compiling" = yes; then :
8418  lt_cv_dlopen_self_static=cross
8419else
8420  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8421  lt_status=$lt_dlunknown
8422  cat > conftest.$ac_ext <<EOF
8423#line 8423 "configure"
8424#include "confdefs.h"
8425
8426#if HAVE_DLFCN_H
8427#include <dlfcn.h>
8428#endif
8429
8430#include <stdio.h>
8431
8432#ifdef RTLD_GLOBAL
8433#  define LT_DLGLOBAL		RTLD_GLOBAL
8434#else
8435#  ifdef DL_GLOBAL
8436#    define LT_DLGLOBAL		DL_GLOBAL
8437#  else
8438#    define LT_DLGLOBAL		0
8439#  endif
8440#endif
8441
8442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8443   find out it does not work in some platform. */
8444#ifndef LT_DLLAZY_OR_NOW
8445#  ifdef RTLD_LAZY
8446#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8447#  else
8448#    ifdef DL_LAZY
8449#      define LT_DLLAZY_OR_NOW		DL_LAZY
8450#    else
8451#      ifdef RTLD_NOW
8452#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8453#      else
8454#        ifdef DL_NOW
8455#          define LT_DLLAZY_OR_NOW	DL_NOW
8456#        else
8457#          define LT_DLLAZY_OR_NOW	0
8458#        endif
8459#      endif
8460#    endif
8461#  endif
8462#endif
8463
8464#ifdef __cplusplus
8465extern "C" void exit (int);
8466#endif
8467
8468void fnord() { int i=42;}
8469int main ()
8470{
8471  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8472  int status = $lt_dlunknown;
8473
8474  if (self)
8475    {
8476      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8477      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8478      /* dlclose (self); */
8479    }
8480
8481    exit (status);
8482}
8483EOF
8484  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485  (eval $ac_link) 2>&5
8486  ac_status=$?
8487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8489    (./conftest; exit; ) >&5 2>/dev/null
8490    lt_status=$?
8491    case x$lt_status in
8492      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8493      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8494      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8495    esac
8496  else :
8497    # compilation failed
8498    lt_cv_dlopen_self_static=no
8499  fi
8500fi
8501rm -fr conftest*
8502
8503
8504fi
8505echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8506echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8507    fi
8508
8509    CPPFLAGS="$save_CPPFLAGS"
8510    LDFLAGS="$save_LDFLAGS"
8511    LIBS="$save_LIBS"
8512    ;;
8513  esac
8514
8515  case $lt_cv_dlopen_self in
8516  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8517  *) enable_dlopen_self=unknown ;;
8518  esac
8519
8520  case $lt_cv_dlopen_self_static in
8521  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8522  *) enable_dlopen_self_static=unknown ;;
8523  esac
8524fi
8525
8526
8527# Report which librarie types wil actually be built
8528echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8529echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8530echo "$as_me:$LINENO: result: $can_build_shared" >&5
8531echo "${ECHO_T}$can_build_shared" >&6
8532
8533echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8534echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8535test "$can_build_shared" = "no" && enable_shared=no
8536
8537# On AIX, shared libraries and static libraries use the same namespace, and
8538# are all built from PIC.
8539case $host_os in
8540aix3*)
8541  test "$enable_shared" = yes && enable_static=no
8542  if test -n "$RANLIB"; then
8543    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8544    postinstall_cmds='$RANLIB $lib'
8545  fi
8546  ;;
8547
8548aix4* | aix5*)
8549  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8550    test "$enable_shared" = yes && enable_static=no
8551  fi
8552    ;;
8553esac
8554echo "$as_me:$LINENO: result: $enable_shared" >&5
8555echo "${ECHO_T}$enable_shared" >&6
8556
8557echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8558echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8559# Make sure either enable_shared or enable_static is yes.
8560test "$enable_shared" = yes || enable_static=yes
8561echo "$as_me:$LINENO: result: $enable_static" >&5
8562echo "${ECHO_T}$enable_static" >&6
8563
8564# The else clause should only fire when bootstrapping the
8565# libtool distribution, otherwise you forgot to ship ltmain.sh
8566# with your package, and you will get complaints that there are
8567# no rules to generate ltmain.sh.
8568if test -f "$ltmain"; then
8569  # See if we are running on zsh, and set the options which allow our commands through
8570  # without removal of \ escapes.
8571  if test -n "${ZSH_VERSION+set}" ; then
8572    setopt NO_GLOB_SUBST
8573  fi
8574  # Now quote all the things that may contain metacharacters while being
8575  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8576  # variables and quote the copies for generation of the libtool script.
8577  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8578    SED SHELL STRIP \
8579    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8580    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8581    deplibs_check_method reload_flag reload_cmds need_locks \
8582    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8583    lt_cv_sys_global_symbol_to_c_name_address \
8584    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8585    old_postinstall_cmds old_postuninstall_cmds \
8586    compiler \
8587    CC \
8588    LD \
8589    lt_prog_compiler_wl \
8590    lt_prog_compiler_pic \
8591    lt_prog_compiler_static \
8592    lt_prog_compiler_no_builtin_flag \
8593    export_dynamic_flag_spec \
8594    thread_safe_flag_spec \
8595    whole_archive_flag_spec \
8596    enable_shared_with_static_runtimes \
8597    old_archive_cmds \
8598    old_archive_from_new_cmds \
8599    predep_objects \
8600    postdep_objects \
8601    predeps \
8602    postdeps \
8603    compiler_lib_search_path \
8604    archive_cmds \
8605    archive_expsym_cmds \
8606    postinstall_cmds \
8607    postuninstall_cmds \
8608    old_archive_from_expsyms_cmds \
8609    allow_undefined_flag \
8610    no_undefined_flag \
8611    export_symbols_cmds \
8612    hardcode_libdir_flag_spec \
8613    hardcode_libdir_flag_spec_ld \
8614    hardcode_libdir_separator \
8615    hardcode_automatic \
8616    module_cmds \
8617    module_expsym_cmds \
8618    lt_cv_prog_compiler_c_o \
8619    exclude_expsyms \
8620    include_expsyms; do
8621
8622    case $var in
8623    old_archive_cmds | \
8624    old_archive_from_new_cmds | \
8625    archive_cmds | \
8626    archive_expsym_cmds | \
8627    module_cmds | \
8628    module_expsym_cmds | \
8629    old_archive_from_expsyms_cmds | \
8630    export_symbols_cmds | \
8631    extract_expsyms_cmds | reload_cmds | finish_cmds | \
8632    postinstall_cmds | postuninstall_cmds | \
8633    old_postinstall_cmds | old_postuninstall_cmds | \
8634    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8635      # Double-quote double-evaled strings.
8636      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8637      ;;
8638    *)
8639      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8640      ;;
8641    esac
8642  done
8643
8644  case $lt_echo in
8645  *'\$0 --fallback-echo"')
8646    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8647    ;;
8648  esac
8649
8650cfgfile="${ofile}T"
8651  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8652  $rm -f "$cfgfile"
8653  { echo "$as_me:$LINENO: creating $ofile" >&5
8654echo "$as_me: creating $ofile" >&6;}
8655
8656  cat <<__EOF__ >> "$cfgfile"
8657#! $SHELL
8658
8659# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8660# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8661# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8662#
8663# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8664# Free Software Foundation, Inc.
8665#
8666# This file is part of GNU Libtool:
8667# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8668#
8669# This program is free software; you can redistribute it and/or modify
8670# it under the terms of the GNU General Public License as published by
8671# the Free Software Foundation; either version 2 of the License, or
8672# (at your option) any later version.
8673#
8674# This program is distributed in the hope that it will be useful, but
8675# WITHOUT ANY WARRANTY; without even the implied warranty of
8676# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8677# General Public License for more details.
8678#
8679# You should have received a copy of the GNU General Public License
8680# along with this program; if not, write to the Free Software
8681# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8682#
8683# As a special exception to the GNU General Public License, if you
8684# distribute this file as part of a program that contains a
8685# configuration script generated by Autoconf, you may include it under
8686# the same distribution terms that you use for the rest of that program.
8687
8688# A sed program that does not truncate output.
8689SED=$lt_SED
8690
8691# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8692Xsed="$SED -e 1s/^X//"
8693
8694# The HP-UX ksh and POSIX shell print the target directory to stdout
8695# if CDPATH is set.
8696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8697
8698# The names of the tagged configurations supported by this script.
8699available_tags=
8700
8701# ### BEGIN LIBTOOL CONFIG
8702
8703# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8704
8705# Shell to use when invoking shell scripts.
8706SHELL=$lt_SHELL
8707
8708# Whether or not to build shared libraries.
8709build_libtool_libs=$enable_shared
8710
8711# Whether or not to build static libraries.
8712build_old_libs=$enable_static
8713
8714# Whether or not to add -lc for building shared libraries.
8715build_libtool_need_lc=$archive_cmds_need_lc
8716
8717# Whether or not to disallow shared libs when runtime libs are static
8718allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8719
8720# Whether or not to optimize for fast installation.
8721fast_install=$enable_fast_install
8722
8723# The host system.
8724host_alias=$host_alias
8725host=$host
8726host_os=$host_os
8727
8728# The build system.
8729build_alias=$build_alias
8730build=$build
8731build_os=$build_os
8732
8733# An echo program that does not interpret backslashes.
8734echo=$lt_echo
8735
8736# The archiver.
8737AR=$lt_AR
8738AR_FLAGS=$lt_AR_FLAGS
8739
8740# A C compiler.
8741LTCC=$lt_LTCC
8742
8743# A language-specific compiler.
8744CC=$lt_compiler
8745
8746# Is the compiler the GNU C compiler?
8747with_gcc=$GCC
8748
8749# An ERE matcher.
8750EGREP=$lt_EGREP
8751
8752# The linker used to build libraries.
8753LD=$lt_LD
8754
8755# Whether we need hard or soft links.
8756LN_S=$lt_LN_S
8757
8758# A BSD-compatible nm program.
8759NM=$lt_NM
8760
8761# A symbol stripping program
8762STRIP=$lt_STRIP
8763
8764# Used to examine libraries when file_magic_cmd begins "file"
8765MAGIC_CMD=$MAGIC_CMD
8766
8767# Used on cygwin: DLL creation program.
8768DLLTOOL="$DLLTOOL"
8769
8770# Used on cygwin: object dumper.
8771OBJDUMP="$OBJDUMP"
8772
8773# Used on cygwin: assembler.
8774AS="$AS"
8775
8776# The name of the directory that contains temporary libtool files.
8777objdir=$objdir
8778
8779# How to create reloadable object files.
8780reload_flag=$lt_reload_flag
8781reload_cmds=$lt_reload_cmds
8782
8783# How to pass a linker flag through the compiler.
8784wl=$lt_lt_prog_compiler_wl
8785
8786# Object file suffix (normally "o").
8787objext="$ac_objext"
8788
8789# Old archive suffix (normally "a").
8790libext="$libext"
8791
8792# Shared library suffix (normally ".so").
8793shrext_cmds='$shrext_cmds'
8794
8795# Executable file suffix (normally "").
8796exeext="$exeext"
8797
8798# Additional compiler flags for building library objects.
8799pic_flag=$lt_lt_prog_compiler_pic
8800pic_mode=$pic_mode
8801
8802# What is the maximum length of a command?
8803max_cmd_len=$lt_cv_sys_max_cmd_len
8804
8805# Does compiler simultaneously support -c and -o options?
8806compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8807
8808# Must we lock files when doing compilation?
8809need_locks=$lt_need_locks
8810
8811# Do we need the lib prefix for modules?
8812need_lib_prefix=$need_lib_prefix
8813
8814# Do we need a version for libraries?
8815need_version=$need_version
8816
8817# Whether dlopen is supported.
8818dlopen_support=$enable_dlopen
8819
8820# Whether dlopen of programs is supported.
8821dlopen_self=$enable_dlopen_self
8822
8823# Whether dlopen of statically linked programs is supported.
8824dlopen_self_static=$enable_dlopen_self_static
8825
8826# Compiler flag to prevent dynamic linking.
8827link_static_flag=$lt_lt_prog_compiler_static
8828
8829# Compiler flag to turn off builtin functions.
8830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8831
8832# Compiler flag to allow reflexive dlopens.
8833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8834
8835# Compiler flag to generate shared objects directly from archives.
8836whole_archive_flag_spec=$lt_whole_archive_flag_spec
8837
8838# Compiler flag to generate thread-safe objects.
8839thread_safe_flag_spec=$lt_thread_safe_flag_spec
8840
8841# Library versioning type.
8842version_type=$version_type
8843
8844# Format of library name prefix.
8845libname_spec=$lt_libname_spec
8846
8847# List of archive names.  First name is the real one, the rest are links.
8848# The last name is the one that the linker finds with -lNAME.
8849library_names_spec=$lt_library_names_spec
8850
8851# The coded name of the library, if different from the real name.
8852soname_spec=$lt_soname_spec
8853
8854# Commands used to build and install an old-style archive.
8855RANLIB=$lt_RANLIB
8856old_archive_cmds=$lt_old_archive_cmds
8857old_postinstall_cmds=$lt_old_postinstall_cmds
8858old_postuninstall_cmds=$lt_old_postuninstall_cmds
8859
8860# Create an old-style archive from a shared archive.
8861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8862
8863# Create a temporary old-style archive to link instead of a shared archive.
8864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8865
8866# Commands used to build and install a shared archive.
8867archive_cmds=$lt_archive_cmds
8868archive_expsym_cmds=$lt_archive_expsym_cmds
8869postinstall_cmds=$lt_postinstall_cmds
8870postuninstall_cmds=$lt_postuninstall_cmds
8871
8872# Commands used to build a loadable module (assumed same as above if empty)
8873module_cmds=$lt_module_cmds
8874module_expsym_cmds=$lt_module_expsym_cmds
8875
8876# Commands to strip libraries.
8877old_striplib=$lt_old_striplib
8878striplib=$lt_striplib
8879
8880# Dependencies to place before the objects being linked to create a
8881# shared library.
8882predep_objects=$lt_predep_objects
8883
8884# Dependencies to place after the objects being linked to create a
8885# shared library.
8886postdep_objects=$lt_postdep_objects
8887
8888# Dependencies to place before the objects being linked to create a
8889# shared library.
8890predeps=$lt_predeps
8891
8892# Dependencies to place after the objects being linked to create a
8893# shared library.
8894postdeps=$lt_postdeps
8895
8896# The library search path used internally by the compiler when linking
8897# a shared library.
8898compiler_lib_search_path=$lt_compiler_lib_search_path
8899
8900# Method to check whether dependent libraries are shared objects.
8901deplibs_check_method=$lt_deplibs_check_method
8902
8903# Command to use when deplibs_check_method == file_magic.
8904file_magic_cmd=$lt_file_magic_cmd
8905
8906# Flag that allows shared libraries with undefined symbols to be built.
8907allow_undefined_flag=$lt_allow_undefined_flag
8908
8909# Flag that forces no undefined symbols.
8910no_undefined_flag=$lt_no_undefined_flag
8911
8912# Commands used to finish a libtool library installation in a directory.
8913finish_cmds=$lt_finish_cmds
8914
8915# Same as above, but a single script fragment to be evaled but not shown.
8916finish_eval=$lt_finish_eval
8917
8918# Take the output of nm and produce a listing of raw symbols and C names.
8919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8920
8921# Transform the output of nm in a proper C declaration
8922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8923
8924# Transform the output of nm in a C name address pair
8925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8926
8927# This is the shared library runtime path variable.
8928runpath_var=$runpath_var
8929
8930# This is the shared library path variable.
8931shlibpath_var=$shlibpath_var
8932
8933# Is shlibpath searched before the hard-coded library search path?
8934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8935
8936# How to hardcode a shared library path into an executable.
8937hardcode_action=$hardcode_action
8938
8939# Whether we should hardcode library paths into libraries.
8940hardcode_into_libs=$hardcode_into_libs
8941
8942# Flag to hardcode \$libdir into a binary during linking.
8943# This must work even if \$libdir does not exist.
8944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8945
8946# If ld is used when linking, flag to hardcode \$libdir into
8947# a binary during linking. This must work even if \$libdir does
8948# not exist.
8949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8950
8951# Whether we need a single -rpath flag with a separated argument.
8952hardcode_libdir_separator=$lt_hardcode_libdir_separator
8953
8954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8955# resulting binary.
8956hardcode_direct=$hardcode_direct
8957
8958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8959# resulting binary.
8960hardcode_minus_L=$hardcode_minus_L
8961
8962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8963# the resulting binary.
8964hardcode_shlibpath_var=$hardcode_shlibpath_var
8965
8966# Set to yes if building a shared library automatically hardcodes DIR into the library
8967# and all subsequent libraries and executables linked against it.
8968hardcode_automatic=$hardcode_automatic
8969
8970# Variables whose values should be saved in libtool wrapper scripts and
8971# restored at relink time.
8972variables_saved_for_relink="$variables_saved_for_relink"
8973
8974# Whether libtool must link a program against all its dependency libraries.
8975link_all_deplibs=$link_all_deplibs
8976
8977# Compile-time system search path for libraries
8978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8979
8980# Run-time system search path for libraries
8981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8982
8983# Fix the shell variable \$srcfile for the compiler.
8984fix_srcfile_path="$fix_srcfile_path"
8985
8986# Set to yes if exported symbols are required.
8987always_export_symbols=$always_export_symbols
8988
8989# The commands to list exported symbols.
8990export_symbols_cmds=$lt_export_symbols_cmds
8991
8992# The commands to extract the exported symbol list from a shared archive.
8993extract_expsyms_cmds=$lt_extract_expsyms_cmds
8994
8995# Symbols that should not be listed in the preloaded symbols.
8996exclude_expsyms=$lt_exclude_expsyms
8997
8998# Symbols that must always be exported.
8999include_expsyms=$lt_include_expsyms
9000
9001# ### END LIBTOOL CONFIG
9002
9003__EOF__
9004
9005
9006  case $host_os in
9007  aix3*)
9008    cat <<\EOF >> "$cfgfile"
9009
9010# AIX sometimes has problems with the GCC collect2 program.  For some
9011# reason, if we set the COLLECT_NAMES environment variable, the problems
9012# vanish in a puff of smoke.
9013if test "X${COLLECT_NAMES+set}" != Xset; then
9014  COLLECT_NAMES=
9015  export COLLECT_NAMES
9016fi
9017EOF
9018    ;;
9019  esac
9020
9021  # We use sed instead of cat because bash on DJGPP gets confused if
9022  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9023  # text mode, it properly converts lines to CR/LF.  This bash problem
9024  # is reportedly fixed, but why not run on old versions too?
9025  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9026
9027  mv -f "$cfgfile" "$ofile" || \
9028    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9029  chmod +x "$ofile"
9030
9031else
9032  # If there is no Makefile yet, we rely on a make rule to execute
9033  # `config.status --recheck' to rerun these tests and create the
9034  # libtool script then.
9035  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9036  if test -f "$ltmain_in"; then
9037    test -f Makefile && make "$ltmain"
9038  fi
9039fi
9040
9041
9042ac_ext=c
9043ac_cpp='$CPP $CPPFLAGS'
9044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9046ac_compiler_gnu=$ac_cv_c_compiler_gnu
9047
9048CC="$lt_save_CC"
9049
9050
9051# Check whether --with-tags or --without-tags was given.
9052if test "${with_tags+set}" = set; then
9053  withval="$with_tags"
9054  tagnames="$withval"
9055fi;
9056
9057if test -f "$ltmain" && test -n "$tagnames"; then
9058  if test ! -f "${ofile}"; then
9059    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9060echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9061  fi
9062
9063  if test -z "$LTCC"; then
9064    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9065    if test -z "$LTCC"; then
9066      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9067echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9068    else
9069      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9070echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9071    fi
9072  fi
9073
9074  # Extract list of available tagged configurations in $ofile.
9075  # Note that this assumes the entire list is on one line.
9076  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9077
9078  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9079  for tagname in $tagnames; do
9080    IFS="$lt_save_ifs"
9081    # Check whether tagname contains only valid characters
9082    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9083    "") ;;
9084    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9085echo "$as_me: error: invalid tag name: $tagname" >&2;}
9086   { (exit 1); exit 1; }; }
9087	;;
9088    esac
9089
9090    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9091    then
9092      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9093echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9094   { (exit 1); exit 1; }; }
9095    fi
9096
9097    # Update the list of available tags.
9098    if test -n "$tagname"; then
9099      echo appending configuration tag \"$tagname\" to $ofile
9100
9101      case $tagname in
9102      CXX)
9103	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9104	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9105	    (test "X$CXX" != "Xg++"))) ; then
9106	  ac_ext=cc
9107ac_cpp='$CXXCPP $CPPFLAGS'
9108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9111
9112
9113
9114
9115archive_cmds_need_lc_CXX=no
9116allow_undefined_flag_CXX=
9117always_export_symbols_CXX=no
9118archive_expsym_cmds_CXX=
9119export_dynamic_flag_spec_CXX=
9120hardcode_direct_CXX=no
9121hardcode_libdir_flag_spec_CXX=
9122hardcode_libdir_flag_spec_ld_CXX=
9123hardcode_libdir_separator_CXX=
9124hardcode_minus_L_CXX=no
9125hardcode_automatic_CXX=no
9126module_cmds_CXX=
9127module_expsym_cmds_CXX=
9128link_all_deplibs_CXX=unknown
9129old_archive_cmds_CXX=$old_archive_cmds
9130no_undefined_flag_CXX=
9131whole_archive_flag_spec_CXX=
9132enable_shared_with_static_runtimes_CXX=no
9133
9134# Dependencies to place before and after the object being linked:
9135predep_objects_CXX=
9136postdep_objects_CXX=
9137predeps_CXX=
9138postdeps_CXX=
9139compiler_lib_search_path_CXX=
9140
9141# Source file extension for C++ test sources.
9142ac_ext=cpp
9143
9144# Object file extension for compiled C++ test sources.
9145objext=o
9146objext_CXX=$objext
9147
9148# Code to be used in simple compile tests
9149lt_simple_compile_test_code="int some_variable = 0;\n"
9150
9151# Code to be used in simple link tests
9152lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9153
9154# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9155
9156# If no C compiler was specified, use CC.
9157LTCC=${LTCC-"$CC"}
9158
9159# Allow CC to be a program name with arguments.
9160compiler=$CC
9161
9162
9163# save warnings/boilerplate of simple test code
9164ac_outfile=conftest.$ac_objext
9165printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9166eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9167_lt_compiler_boilerplate=`cat conftest.err`
9168$rm conftest*
9169
9170ac_outfile=conftest.$ac_objext
9171printf "$lt_simple_link_test_code" >conftest.$ac_ext
9172eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9173_lt_linker_boilerplate=`cat conftest.err`
9174$rm conftest*
9175
9176
9177# Allow CC to be a program name with arguments.
9178lt_save_CC=$CC
9179lt_save_LD=$LD
9180lt_save_GCC=$GCC
9181GCC=$GXX
9182lt_save_with_gnu_ld=$with_gnu_ld
9183lt_save_path_LD=$lt_cv_path_LD
9184if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9185  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9186else
9187  unset lt_cv_prog_gnu_ld
9188fi
9189if test -n "${lt_cv_path_LDCXX+set}"; then
9190  lt_cv_path_LD=$lt_cv_path_LDCXX
9191else
9192  unset lt_cv_path_LD
9193fi
9194test -z "${LDCXX+set}" || LD=$LDCXX
9195CC=${CXX-"c++"}
9196compiler=$CC
9197compiler_CXX=$CC
9198for cc_temp in $compiler""; do
9199  case $cc_temp in
9200    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9201    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9202    \-*) ;;
9203    *) break;;
9204  esac
9205done
9206cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9207
9208
9209# We don't want -fno-exception wen compiling C++ code, so set the
9210# no_builtin_flag separately
9211if test "$GXX" = yes; then
9212  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9213else
9214  lt_prog_compiler_no_builtin_flag_CXX=
9215fi
9216
9217if test "$GXX" = yes; then
9218  # Set up default GNU C++ configuration
9219
9220
9221# Check whether --with-gnu-ld or --without-gnu-ld was given.
9222if test "${with_gnu_ld+set}" = set; then
9223  withval="$with_gnu_ld"
9224  test "$withval" = no || with_gnu_ld=yes
9225else
9226  with_gnu_ld=no
9227fi;
9228ac_prog=ld
9229if test "$GCC" = yes; then
9230  # Check if gcc -print-prog-name=ld gives a path.
9231  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9232echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9233  case $host in
9234  *-*-mingw*)
9235    # gcc leaves a trailing carriage return which upsets mingw
9236    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9237  *)
9238    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9239  esac
9240  case $ac_prog in
9241    # Accept absolute paths.
9242    [\\/]* | ?:[\\/]*)
9243      re_direlt='/[^/][^/]*/\.\./'
9244      # Canonicalize the pathname of ld
9245      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9246      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9247	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9248      done
9249      test -z "$LD" && LD="$ac_prog"
9250      ;;
9251  "")
9252    # If it fails, then pretend we aren't using GCC.
9253    ac_prog=ld
9254    ;;
9255  *)
9256    # If it is relative, then search for the first ld in PATH.
9257    with_gnu_ld=unknown
9258    ;;
9259  esac
9260elif test "$with_gnu_ld" = yes; then
9261  echo "$as_me:$LINENO: checking for GNU ld" >&5
9262echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9263else
9264  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9265echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9266fi
9267if test "${lt_cv_path_LD+set}" = set; then
9268  echo $ECHO_N "(cached) $ECHO_C" >&6
9269else
9270  if test -z "$LD"; then
9271  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9272  for ac_dir in $PATH; do
9273    IFS="$lt_save_ifs"
9274    test -z "$ac_dir" && ac_dir=.
9275    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9276      lt_cv_path_LD="$ac_dir/$ac_prog"
9277      # Check to see if the program is GNU ld.  I'd rather use --version,
9278      # but apparently some variants of GNU ld only accept -v.
9279      # Break only if it was the GNU/non-GNU ld that we prefer.
9280      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9281      *GNU* | *'with BFD'*)
9282	test "$with_gnu_ld" != no && break
9283	;;
9284      *)
9285	test "$with_gnu_ld" != yes && break
9286	;;
9287      esac
9288    fi
9289  done
9290  IFS="$lt_save_ifs"
9291else
9292  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9293fi
9294fi
9295
9296LD="$lt_cv_path_LD"
9297if test -n "$LD"; then
9298  echo "$as_me:$LINENO: result: $LD" >&5
9299echo "${ECHO_T}$LD" >&6
9300else
9301  echo "$as_me:$LINENO: result: no" >&5
9302echo "${ECHO_T}no" >&6
9303fi
9304test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9305echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9306   { (exit 1); exit 1; }; }
9307echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9308echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9309if test "${lt_cv_prog_gnu_ld+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9313case `$LD -v 2>&1 </dev/null` in
9314*GNU* | *'with BFD'*)
9315  lt_cv_prog_gnu_ld=yes
9316  ;;
9317*)
9318  lt_cv_prog_gnu_ld=no
9319  ;;
9320esac
9321fi
9322echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9323echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9324with_gnu_ld=$lt_cv_prog_gnu_ld
9325
9326
9327
9328  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9329  # archiving commands below assume that GNU ld is being used.
9330  if test "$with_gnu_ld" = yes; then
9331    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332    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'
9333
9334    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9335    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9336
9337    # If archive_cmds runs LD, not CC, wlarc should be empty
9338    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9339    #     investigate it a little bit more. (MM)
9340    wlarc='${wl}'
9341
9342    # ancient GNU ld didn't support --whole-archive et. al.
9343    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9344	grep 'no-whole-archive' > /dev/null; then
9345      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9346    else
9347      whole_archive_flag_spec_CXX=
9348    fi
9349  else
9350    with_gnu_ld=no
9351    wlarc=
9352
9353    # A generic and very simple default shared library creation
9354    # command for GNU C++ for the case where it uses the native
9355    # linker, instead of GNU ld.  If possible, this setting should
9356    # overridden to take advantage of the native linker features on
9357    # the platform it is being used on.
9358    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9359  fi
9360
9361  # Commands to make compiler produce verbose output that lists
9362  # what "hidden" libraries, object files and flags are used when
9363  # linking a shared library.
9364  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9365
9366else
9367  GXX=no
9368  with_gnu_ld=no
9369  wlarc=
9370fi
9371
9372# PORTME: fill in a description of your system's C++ link characteristics
9373echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9374echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9375ld_shlibs_CXX=yes
9376case $host_os in
9377  aix3*)
9378    # FIXME: insert proper C++ library support
9379    ld_shlibs_CXX=no
9380    ;;
9381  aix4* | aix5*)
9382    if test "$host_cpu" = ia64; then
9383      # On IA64, the linker does run time linking by default, so we don't
9384      # have to do anything special.
9385      aix_use_runtimelinking=no
9386      exp_sym_flag='-Bexport'
9387      no_entry_flag=""
9388    else
9389      aix_use_runtimelinking=no
9390
9391      # Test if we are trying to use run time linking or normal
9392      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393      # need to do runtime linking.
9394      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9395	for ld_flag in $LDFLAGS; do
9396	  case $ld_flag in
9397	  *-brtl*)
9398	    aix_use_runtimelinking=yes
9399	    break
9400	    ;;
9401	  esac
9402	done
9403      esac
9404
9405      exp_sym_flag='-bexport'
9406      no_entry_flag='-bnoentry'
9407    fi
9408
9409    # When large executables or shared objects are built, AIX ld can
9410    # have problems creating the table of contents.  If linking a library
9411    # or program results in "error TOC overflow" add -mminimal-toc to
9412    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9413    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9414
9415    archive_cmds_CXX=''
9416    hardcode_direct_CXX=yes
9417    hardcode_libdir_separator_CXX=':'
9418    link_all_deplibs_CXX=yes
9419
9420    if test "$GXX" = yes; then
9421      case $host_os in aix4.[012]|aix4.[012].*)
9422      # We only want to do this on AIX 4.2 and lower, the check
9423      # below for broken collect2 doesn't work under 4.3+
9424	collect2name=`${CC} -print-prog-name=collect2`
9425	if test -f "$collect2name" && \
9426	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9427	then
9428	  # We have reworked collect2
9429	  hardcode_direct_CXX=yes
9430	else
9431	  # We have old collect2
9432	  hardcode_direct_CXX=unsupported
9433	  # It fails to find uninstalled libraries when the uninstalled
9434	  # path is not listed in the libpath.  Setting hardcode_minus_L
9435	  # to unsupported forces relinking
9436	  hardcode_minus_L_CXX=yes
9437	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9438	  hardcode_libdir_separator_CXX=
9439	fi
9440      esac
9441      shared_flag='-shared'
9442      if test "$aix_use_runtimelinking" = yes; then
9443	shared_flag="$shared_flag "'${wl}-G'
9444      fi
9445    else
9446      # not using gcc
9447      if test "$host_cpu" = ia64; then
9448	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9449	# chokes on -Wl,-G. The following line is correct:
9450	shared_flag='-G'
9451      else
9452	if test "$aix_use_runtimelinking" = yes; then
9453	  shared_flag='${wl}-G'
9454	else
9455	  shared_flag='${wl}-bM:SRE'
9456	fi
9457      fi
9458    fi
9459
9460    # It seems that -bexpall does not export symbols beginning with
9461    # underscore (_), so it is better to generate a list of symbols to export.
9462    always_export_symbols_CXX=yes
9463    if test "$aix_use_runtimelinking" = yes; then
9464      # Warning - without using the other runtime loading flags (-brtl),
9465      # -berok will link without error, but may produce a broken library.
9466      allow_undefined_flag_CXX='-berok'
9467      # Determine the default libpath from the value encoded in an empty executable.
9468      cat >conftest.$ac_ext <<_ACEOF
9469/* confdefs.h.  */
9470_ACEOF
9471cat confdefs.h >>conftest.$ac_ext
9472cat >>conftest.$ac_ext <<_ACEOF
9473/* end confdefs.h.  */
9474
9475int
9476main ()
9477{
9478
9479  ;
9480  return 0;
9481}
9482_ACEOF
9483rm -f conftest.$ac_objext conftest$ac_exeext
9484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485  (eval $ac_link) 2>conftest.er1
9486  ac_status=$?
9487  grep -v '^ *+' conftest.er1 >conftest.err
9488  rm -f conftest.er1
9489  cat conftest.err >&5
9490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491  (exit $ac_status); } &&
9492	 { ac_try='test -z "$ac_cxx_werror_flag"
9493			 || test ! -s conftest.err'
9494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495  (eval $ac_try) 2>&5
9496  ac_status=$?
9497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); }; } &&
9499	 { ac_try='test -s conftest$ac_exeext'
9500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501  (eval $ac_try) 2>&5
9502  ac_status=$?
9503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504  (exit $ac_status); }; }; then
9505
9506aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9507}'`
9508# Check for a 64-bit object if we didn't find anything.
9509if 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; }
9510}'`; fi
9511else
9512  echo "$as_me: failed program was:" >&5
9513sed 's/^/| /' conftest.$ac_ext >&5
9514
9515fi
9516rm -f conftest.err conftest.$ac_objext \
9517      conftest$ac_exeext conftest.$ac_ext
9518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9519
9520      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9521
9522      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9523     else
9524      if test "$host_cpu" = ia64; then
9525	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9526	allow_undefined_flag_CXX="-z nodefs"
9527	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9528      else
9529	# Determine the default libpath from the value encoded in an empty executable.
9530	cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h.  */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h.  */
9536
9537int
9538main ()
9539{
9540
9541  ;
9542  return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext conftest$ac_exeext
9546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9547  (eval $ac_link) 2>conftest.er1
9548  ac_status=$?
9549  grep -v '^ *+' conftest.er1 >conftest.err
9550  rm -f conftest.er1
9551  cat conftest.err >&5
9552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553  (exit $ac_status); } &&
9554	 { ac_try='test -z "$ac_cxx_werror_flag"
9555			 || test ! -s conftest.err'
9556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557  (eval $ac_try) 2>&5
9558  ac_status=$?
9559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560  (exit $ac_status); }; } &&
9561	 { ac_try='test -s conftest$ac_exeext'
9562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563  (eval $ac_try) 2>&5
9564  ac_status=$?
9565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566  (exit $ac_status); }; }; then
9567
9568aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9569}'`
9570# Check for a 64-bit object if we didn't find anything.
9571if 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; }
9572}'`; fi
9573else
9574  echo "$as_me: failed program was:" >&5
9575sed 's/^/| /' conftest.$ac_ext >&5
9576
9577fi
9578rm -f conftest.err conftest.$ac_objext \
9579      conftest$ac_exeext conftest.$ac_ext
9580if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9581
9582	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9583	# Warning - without using the other run time loading flags,
9584	# -berok will link without error, but may produce a broken library.
9585	no_undefined_flag_CXX=' ${wl}-bernotok'
9586	allow_undefined_flag_CXX=' ${wl}-berok'
9587	# -bexpall does not export symbols beginning with underscore (_)
9588	always_export_symbols_CXX=yes
9589	# Exported symbols can be pulled into shared objects from archives
9590	whole_archive_flag_spec_CXX=' '
9591	archive_cmds_need_lc_CXX=yes
9592	# This is similar to how AIX traditionally builds its shared libraries.
9593	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9594      fi
9595    fi
9596    ;;
9597  chorus*)
9598    case $cc_basename in
9599      *)
9600	# FIXME: insert proper C++ library support
9601	ld_shlibs_CXX=no
9602	;;
9603    esac
9604    ;;
9605
9606
9607  cygwin* | mingw* | pw32*)
9608    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9609    # as there is no search path for DLLs.
9610    hardcode_libdir_flag_spec_CXX='-L$libdir'
9611    allow_undefined_flag_CXX=unsupported
9612    always_export_symbols_CXX=no
9613    enable_shared_with_static_runtimes_CXX=yes
9614
9615    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9616      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9617      # If the export-symbols file already is a .def file (1st line
9618      # is EXPORTS), use it as is; otherwise, prepend...
9619      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9620	cp $export_symbols $output_objdir/$soname.def;
9621      else
9622	echo EXPORTS > $output_objdir/$soname.def;
9623	cat $export_symbols >> $output_objdir/$soname.def;
9624      fi~
9625      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9626    else
9627      ld_shlibs_CXX=no
9628    fi
9629  ;;
9630      darwin* | rhapsody*)
9631        case $host_os in
9632        rhapsody* | darwin1.[012])
9633         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9634         ;;
9635       *) # Darwin 1.3 on
9636         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9637           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9638         else
9639           case ${MACOSX_DEPLOYMENT_TARGET} in
9640             10.[012])
9641               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9642               ;;
9643             10.*)
9644               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9645               ;;
9646           esac
9647         fi
9648         ;;
9649        esac
9650      archive_cmds_need_lc_CXX=no
9651      hardcode_direct_CXX=no
9652      hardcode_automatic_CXX=yes
9653      hardcode_shlibpath_var_CXX=unsupported
9654      whole_archive_flag_spec_CXX=''
9655      link_all_deplibs_CXX=yes
9656
9657    if test "$GXX" = yes ; then
9658      lt_int_apple_cc_single_mod=no
9659      output_verbose_link_cmd='echo'
9660      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9661       lt_int_apple_cc_single_mod=yes
9662      fi
9663      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9664       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9665      else
9666          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9667        fi
9668        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9669        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9670          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9671            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9672          else
9673            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9674          fi
9675            module_expsym_cmds_CXX='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}'
9676      else
9677      case $cc_basename in
9678        xlc*)
9679         output_verbose_link_cmd='echo'
9680          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9681          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9682          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9683          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9684          module_expsym_cmds_CXX='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}'
9685          ;;
9686       *)
9687         ld_shlibs_CXX=no
9688          ;;
9689      esac
9690      fi
9691        ;;
9692
9693  dgux*)
9694    case $cc_basename in
9695      ec++*)
9696	# FIXME: insert proper C++ library support
9697	ld_shlibs_CXX=no
9698	;;
9699      ghcx*)
9700	# Green Hills C++ Compiler
9701	# FIXME: insert proper C++ library support
9702	ld_shlibs_CXX=no
9703	;;
9704      *)
9705	# FIXME: insert proper C++ library support
9706	ld_shlibs_CXX=no
9707	;;
9708    esac
9709    ;;
9710  freebsd[12]*)
9711    # C++ shared libraries reported to be fairly broken before switch to ELF
9712    ld_shlibs_CXX=no
9713    ;;
9714  freebsd-elf*)
9715    archive_cmds_need_lc_CXX=no
9716    ;;
9717  freebsd* | kfreebsd*-gnu | dragonfly*)
9718    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9719    # conventions
9720    ld_shlibs_CXX=yes
9721    ;;
9722  gnu*)
9723    ;;
9724  hpux9*)
9725    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9726    hardcode_libdir_separator_CXX=:
9727    export_dynamic_flag_spec_CXX='${wl}-E'
9728    hardcode_direct_CXX=yes
9729    hardcode_minus_L_CXX=yes # Not in the search PATH,
9730				# but as the default
9731				# location of the library.
9732
9733    case $cc_basename in
9734    CC*)
9735      # FIXME: insert proper C++ library support
9736      ld_shlibs_CXX=no
9737      ;;
9738    aCC*)
9739      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9740      # Commands to make compiler produce verbose output that lists
9741      # what "hidden" libraries, object files and flags are used when
9742      # linking a shared library.
9743      #
9744      # There doesn't appear to be a way to prevent this compiler from
9745      # explicitly linking system object files so we need to strip them
9746      # from the output so that they don't get included in the library
9747      # dependencies.
9748      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9749      ;;
9750    *)
9751      if test "$GXX" = yes; then
9752        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9753      else
9754        # FIXME: insert proper C++ library support
9755        ld_shlibs_CXX=no
9756      fi
9757      ;;
9758    esac
9759    ;;
9760  hpux10*|hpux11*)
9761    if test $with_gnu_ld = no; then
9762      case $host_cpu in
9763      hppa*64*)
9764	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9765	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9766	hardcode_libdir_separator_CXX=:
9767        ;;
9768      ia64*)
9769	hardcode_libdir_flag_spec_CXX='-L$libdir'
9770        ;;
9771      *)
9772	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9773	hardcode_libdir_separator_CXX=:
9774	export_dynamic_flag_spec_CXX='${wl}-E'
9775        ;;
9776      esac
9777    fi
9778    case $host_cpu in
9779    hppa*64*)
9780      hardcode_direct_CXX=no
9781      hardcode_shlibpath_var_CXX=no
9782      ;;
9783    ia64*)
9784      hardcode_direct_CXX=no
9785      hardcode_shlibpath_var_CXX=no
9786      hardcode_minus_L_CXX=yes # Not in the search PATH,
9787					      # but as the default
9788					      # location of the library.
9789      ;;
9790    *)
9791      hardcode_direct_CXX=yes
9792      hardcode_minus_L_CXX=yes # Not in the search PATH,
9793					      # but as the default
9794					      # location of the library.
9795      ;;
9796    esac
9797
9798    case $cc_basename in
9799      CC*)
9800	# FIXME: insert proper C++ library support
9801	ld_shlibs_CXX=no
9802	;;
9803      aCC*)
9804	case $host_cpu in
9805	hppa*64*|ia64*)
9806	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9807	  ;;
9808	*)
9809	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9810	  ;;
9811	esac
9812	# Commands to make compiler produce verbose output that lists
9813	# what "hidden" libraries, object files and flags are used when
9814	# linking a shared library.
9815	#
9816	# There doesn't appear to be a way to prevent this compiler from
9817	# explicitly linking system object files so we need to strip them
9818	# from the output so that they don't get included in the library
9819	# dependencies.
9820	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9821	;;
9822      *)
9823	if test "$GXX" = yes; then
9824	  if test $with_gnu_ld = no; then
9825	    case $host_cpu in
9826	    ia64*|hppa*64*)
9827	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9828	      ;;
9829	    *)
9830	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9831	      ;;
9832	    esac
9833	  fi
9834	else
9835	  # FIXME: insert proper C++ library support
9836	  ld_shlibs_CXX=no
9837	fi
9838	;;
9839    esac
9840    ;;
9841  irix5* | irix6*)
9842    case $cc_basename in
9843      CC*)
9844	# SGI C++
9845	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9846
9847	# Archives containing C++ object files must be created using
9848	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9849	# necessary to make sure instantiated templates are included
9850	# in the archive.
9851	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9852	;;
9853      *)
9854	if test "$GXX" = yes; then
9855	  if test "$with_gnu_ld" = no; then
9856	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
9857	  else
9858	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
9859	  fi
9860	fi
9861	link_all_deplibs_CXX=yes
9862	;;
9863    esac
9864    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9865    hardcode_libdir_separator_CXX=:
9866    ;;
9867  linux*)
9868    case $cc_basename in
9869      KCC*)
9870	# Kuck and Associates, Inc. (KAI) C++ Compiler
9871
9872	# KCC will only create a shared library if the output file
9873	# ends with ".so" (or ".sl" for HP-UX), so rename the library
9874	# to its proper name (with version) after linking.
9875	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
9876	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
9877	# Commands to make compiler produce verbose output that lists
9878	# what "hidden" libraries, object files and flags are used when
9879	# linking a shared library.
9880	#
9881	# There doesn't appear to be a way to prevent this compiler from
9882	# explicitly linking system object files so we need to strip them
9883	# from the output so that they don't get included in the library
9884	# dependencies.
9885	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9886
9887	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9888	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9889
9890	# Archives containing C++ object files must be created using
9891	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9892	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9893	;;
9894      icpc*)
9895	# Intel C++
9896	with_gnu_ld=yes
9897	# version 8.0 and above of icpc choke on multiply defined symbols
9898	# if we add $predep_objects and $postdep_objects, however 7.1 and
9899	# earlier do not add the objects themselves.
9900	case `$CC -V 2>&1` in
9901	*"Version 7."*)
9902  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9904	  ;;
9905	*)  # Version 8.0 or newer
9906	  tmp_idyn=
9907	  case $host_cpu in
9908	    ia64*) tmp_idyn=' -i_dynamic';;
9909	  esac
9910  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9912	  ;;
9913	esac
9914	archive_cmds_need_lc_CXX=no
9915	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9916	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9917	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9918	;;
9919      pgCC*)
9920        # Portland Group C++ compiler
9921	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9922  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9923
9924	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9925	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9926	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9927        ;;
9928      cxx*)
9929	# Compaq C++
9930	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
9932
9933	runpath_var=LD_RUN_PATH
9934	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9935	hardcode_libdir_separator_CXX=:
9936
9937	# Commands to make compiler produce verbose output that lists
9938	# what "hidden" libraries, object files and flags are used when
9939	# linking a shared library.
9940	#
9941	# There doesn't appear to be a way to prevent this compiler from
9942	# explicitly linking system object files so we need to strip them
9943	# from the output so that they don't get included in the library
9944	# dependencies.
9945	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9946	;;
9947    esac
9948    ;;
9949  lynxos*)
9950    # FIXME: insert proper C++ library support
9951    ld_shlibs_CXX=no
9952    ;;
9953  m88k*)
9954    # FIXME: insert proper C++ library support
9955    ld_shlibs_CXX=no
9956    ;;
9957  mvs*)
9958    case $cc_basename in
9959      cxx*)
9960	# FIXME: insert proper C++ library support
9961	ld_shlibs_CXX=no
9962	;;
9963      *)
9964	# FIXME: insert proper C++ library support
9965	ld_shlibs_CXX=no
9966	;;
9967    esac
9968    ;;
9969  netbsd*)
9970    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9971      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9972      wlarc=
9973      hardcode_libdir_flag_spec_CXX='-R$libdir'
9974      hardcode_direct_CXX=yes
9975      hardcode_shlibpath_var_CXX=no
9976    fi
9977    # Workaround some broken pre-1.5 toolchains
9978    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9979    ;;
9980  openbsd2*)
9981    # C++ shared libraries are fairly broken
9982    ld_shlibs_CXX=no
9983    ;;
9984  openbsd*)
9985    hardcode_direct_CXX=yes
9986    hardcode_shlibpath_var_CXX=no
9987    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9988    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9989    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9990      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9991      export_dynamic_flag_spec_CXX='${wl}-E'
9992      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9993    fi
9994    output_verbose_link_cmd='echo'
9995    ;;
9996  osf3*)
9997    case $cc_basename in
9998      KCC*)
9999	# Kuck and Associates, Inc. (KAI) C++ Compiler
10000
10001	# KCC will only create a shared library if the output file
10002	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10003	# to its proper name (with version) after linking.
10004	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10005
10006	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10007	hardcode_libdir_separator_CXX=:
10008
10009	# Archives containing C++ object files must be created using
10010	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10011	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10012
10013	;;
10014      RCC*)
10015	# Rational C++ 2.4.1
10016	# FIXME: insert proper C++ library support
10017	ld_shlibs_CXX=no
10018	;;
10019      cxx*)
10020	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10021	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10022
10023	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10024	hardcode_libdir_separator_CXX=:
10025
10026	# Commands to make compiler produce verbose output that lists
10027	# what "hidden" libraries, object files and flags are used when
10028	# linking a shared library.
10029	#
10030	# There doesn't appear to be a way to prevent this compiler from
10031	# explicitly linking system object files so we need to strip them
10032	# from the output so that they don't get included in the library
10033	# dependencies.
10034	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10035	;;
10036      *)
10037	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10038	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10039	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10040
10041	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10042	  hardcode_libdir_separator_CXX=:
10043
10044	  # Commands to make compiler produce verbose output that lists
10045	  # what "hidden" libraries, object files and flags are used when
10046	  # linking a shared library.
10047	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10048
10049	else
10050	  # FIXME: insert proper C++ library support
10051	  ld_shlibs_CXX=no
10052	fi
10053	;;
10054    esac
10055    ;;
10056  osf4* | osf5*)
10057    case $cc_basename in
10058      KCC*)
10059	# Kuck and Associates, Inc. (KAI) C++ Compiler
10060
10061	# KCC will only create a shared library if the output file
10062	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10063	# to its proper name (with version) after linking.
10064	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10065
10066	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10067	hardcode_libdir_separator_CXX=:
10068
10069	# Archives containing C++ object files must be created using
10070	# the KAI C++ compiler.
10071	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10072	;;
10073      RCC*)
10074	# Rational C++ 2.4.1
10075	# FIXME: insert proper C++ library support
10076	ld_shlibs_CXX=no
10077	;;
10078      cxx*)
10079	allow_undefined_flag_CXX=' -expect_unresolved \*'
10080	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10081	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10082	  echo "-hidden">> $lib.exp~
10083	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10084	  $rm $lib.exp'
10085
10086	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10087	hardcode_libdir_separator_CXX=:
10088
10089	# Commands to make compiler produce verbose output that lists
10090	# what "hidden" libraries, object files and flags are used when
10091	# linking a shared library.
10092	#
10093	# There doesn't appear to be a way to prevent this compiler from
10094	# explicitly linking system object files so we need to strip them
10095	# from the output so that they don't get included in the library
10096	# dependencies.
10097	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10098	;;
10099      *)
10100	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10101	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10102	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
10103
10104	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10105	  hardcode_libdir_separator_CXX=:
10106
10107	  # Commands to make compiler produce verbose output that lists
10108	  # what "hidden" libraries, object files and flags are used when
10109	  # linking a shared library.
10110	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10111
10112	else
10113	  # FIXME: insert proper C++ library support
10114	  ld_shlibs_CXX=no
10115	fi
10116	;;
10117    esac
10118    ;;
10119  psos*)
10120    # FIXME: insert proper C++ library support
10121    ld_shlibs_CXX=no
10122    ;;
10123  sco*)
10124    archive_cmds_need_lc_CXX=no
10125    case $cc_basename in
10126      CC*)
10127	# FIXME: insert proper C++ library support
10128	ld_shlibs_CXX=no
10129	;;
10130      *)
10131	# FIXME: insert proper C++ library support
10132	ld_shlibs_CXX=no
10133	;;
10134    esac
10135    ;;
10136  sunos4*)
10137    case $cc_basename in
10138      CC*)
10139	# Sun C++ 4.x
10140	# FIXME: insert proper C++ library support
10141	ld_shlibs_CXX=no
10142	;;
10143      lcc*)
10144	# Lucid
10145	# FIXME: insert proper C++ library support
10146	ld_shlibs_CXX=no
10147	;;
10148      *)
10149	# FIXME: insert proper C++ library support
10150	ld_shlibs_CXX=no
10151	;;
10152    esac
10153    ;;
10154  solaris*)
10155    case $cc_basename in
10156      CC*)
10157	# Sun C++ 4.2, 5.x and Centerline C++
10158        archive_cmds_need_lc_CXX=yes
10159	no_undefined_flag_CXX=' -zdefs'
10160	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10161	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10162	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10163
10164	hardcode_libdir_flag_spec_CXX='-R$libdir'
10165	hardcode_shlibpath_var_CXX=no
10166	case $host_os in
10167	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10168	  *)
10169	    # The C++ compiler is used as linker so we must use $wl
10170	    # flag to pass the commands to the underlying system
10171	    # linker. We must also pass each convience library through
10172	    # to the system linker between allextract/defaultextract.
10173	    # The C++ compiler will combine linker options so we
10174	    # cannot just pass the convience library names through
10175	    # without $wl.
10176	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10177	    whole_archive_flag_spec_CXX='${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'
10178	    ;;
10179	esac
10180	link_all_deplibs_CXX=yes
10181
10182	output_verbose_link_cmd='echo'
10183
10184	# Archives containing C++ object files must be created using
10185	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10186	# necessary to make sure instantiated templates are included
10187	# in the archive.
10188	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10189	;;
10190      gcx*)
10191	# Green Hills C++ Compiler
10192	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10193
10194	# The C++ compiler must be used to create the archive.
10195	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10196	;;
10197      *)
10198	# GNU C++ compiler with Solaris linker
10199	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10200	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10201	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10202	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10203	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10204		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10205
10206	    # Commands to make compiler produce verbose output that lists
10207	    # what "hidden" libraries, object files and flags are used when
10208	    # linking a shared library.
10209	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10210	  else
10211	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10212	    # platform.
10213	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10214	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10215		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10216
10217	    # Commands to make compiler produce verbose output that lists
10218	    # what "hidden" libraries, object files and flags are used when
10219	    # linking a shared library.
10220	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10221	  fi
10222
10223	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10224	fi
10225	;;
10226    esac
10227    ;;
10228  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10229    archive_cmds_need_lc_CXX=no
10230    ;;
10231  tandem*)
10232    case $cc_basename in
10233      NCC*)
10234	# NonStop-UX NCC 3.20
10235	# FIXME: insert proper C++ library support
10236	ld_shlibs_CXX=no
10237	;;
10238      *)
10239	# FIXME: insert proper C++ library support
10240	ld_shlibs_CXX=no
10241	;;
10242    esac
10243    ;;
10244  vxworks*)
10245    # FIXME: insert proper C++ library support
10246    ld_shlibs_CXX=no
10247    ;;
10248  *)
10249    # FIXME: insert proper C++ library support
10250    ld_shlibs_CXX=no
10251    ;;
10252esac
10253echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10254echo "${ECHO_T}$ld_shlibs_CXX" >&6
10255test "$ld_shlibs_CXX" = no && can_build_shared=no
10256
10257GCC_CXX="$GXX"
10258LD_CXX="$LD"
10259
10260
10261cat > conftest.$ac_ext <<EOF
10262class Foo
10263{
10264public:
10265  Foo (void) { a = 0; }
10266private:
10267  int a;
10268};
10269EOF
10270
10271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272  (eval $ac_compile) 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; then
10276  # Parse the compiler output and extract the necessary
10277  # objects, libraries and library flags.
10278
10279  # Sentinel used to keep track of whether or not we are before
10280  # the conftest object file.
10281  pre_test_object_deps_done=no
10282
10283  # The `*' in the case matches for architectures that use `case' in
10284  # $output_verbose_cmd can trigger glob expansion during the loop
10285  # eval without this substitution.
10286  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10287
10288  for p in `eval $output_verbose_link_cmd`; do
10289    case $p in
10290
10291    -L* | -R* | -l*)
10292       # Some compilers place space between "-{L,R}" and the path.
10293       # Remove the space.
10294       if test $p = "-L" \
10295	  || test $p = "-R"; then
10296	 prev=$p
10297	 continue
10298       else
10299	 prev=
10300       fi
10301
10302       if test "$pre_test_object_deps_done" = no; then
10303	 case $p in
10304	 -L* | -R*)
10305	   # Internal compiler library paths should come after those
10306	   # provided the user.  The postdeps already come after the
10307	   # user supplied libs so there is no need to process them.
10308	   if test -z "$compiler_lib_search_path_CXX"; then
10309	     compiler_lib_search_path_CXX="${prev}${p}"
10310	   else
10311	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10312	   fi
10313	   ;;
10314	 # The "-l" case would never come before the object being
10315	 # linked, so don't bother handling this case.
10316	 esac
10317       else
10318	 if test -z "$postdeps_CXX"; then
10319	   postdeps_CXX="${prev}${p}"
10320	 else
10321	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10322	 fi
10323       fi
10324       ;;
10325
10326    *.$objext)
10327       # This assumes that the test object file only shows up
10328       # once in the compiler output.
10329       if test "$p" = "conftest.$objext"; then
10330	 pre_test_object_deps_done=yes
10331	 continue
10332       fi
10333
10334       if test "$pre_test_object_deps_done" = no; then
10335	 if test -z "$predep_objects_CXX"; then
10336	   predep_objects_CXX="$p"
10337	 else
10338	   predep_objects_CXX="$predep_objects_CXX $p"
10339	 fi
10340       else
10341	 if test -z "$postdep_objects_CXX"; then
10342	   postdep_objects_CXX="$p"
10343	 else
10344	   postdep_objects_CXX="$postdep_objects_CXX $p"
10345	 fi
10346       fi
10347       ;;
10348
10349    *) ;; # Ignore the rest.
10350
10351    esac
10352  done
10353
10354  # Clean up.
10355  rm -f a.out a.exe
10356else
10357  echo "libtool.m4: error: problem compiling CXX test program"
10358fi
10359
10360$rm -f confest.$objext
10361
10362# PORTME: override above test on systems where it is broken
10363case $host_os in
10364solaris*)
10365  case $cc_basename in
10366  CC*)
10367    # Adding this requires a known-good setup of shared libraries for
10368    # Sun compiler versions before 5.6, else PIC objects from an old
10369    # archive will be linked into the output, leading to subtle bugs.
10370    postdeps_CXX='-lCstd -lCrun'
10371    ;;
10372  esac
10373esac
10374
10375
10376case " $postdeps_CXX " in
10377*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10378esac
10379
10380lt_prog_compiler_wl_CXX=
10381lt_prog_compiler_pic_CXX=
10382lt_prog_compiler_static_CXX=
10383
10384echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10385echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10386
10387  # C++ specific cases for pic, static, wl, etc.
10388  if test "$GXX" = yes; then
10389    lt_prog_compiler_wl_CXX='-Wl,'
10390    lt_prog_compiler_static_CXX='-static'
10391
10392    case $host_os in
10393    aix*)
10394      # All AIX code is PIC.
10395      if test "$host_cpu" = ia64; then
10396	# AIX 5 now supports IA64 processor
10397	lt_prog_compiler_static_CXX='-Bstatic'
10398      fi
10399      ;;
10400    amigaos*)
10401      # FIXME: we need at least 68020 code to build shared libraries, but
10402      # adding the `-m68020' flag to GCC prevents building anything better,
10403      # like `-m68040'.
10404      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10405      ;;
10406    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10407      # PIC is the default for these OSes.
10408      ;;
10409    mingw* | os2* | pw32*)
10410      # This hack is so that the source file can tell whether it is being
10411      # built for inclusion in a dll (and should export symbols for example).
10412      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10413      ;;
10414    darwin* | rhapsody*)
10415      # PIC is the default on this platform
10416      # Common symbols not allowed in MH_DYLIB files
10417      lt_prog_compiler_pic_CXX='-fno-common'
10418      ;;
10419    *djgpp*)
10420      # DJGPP does not support shared libraries at all
10421      lt_prog_compiler_pic_CXX=
10422      ;;
10423    sysv4*MP*)
10424      if test -d /usr/nec; then
10425	lt_prog_compiler_pic_CXX=-Kconform_pic
10426      fi
10427      ;;
10428    hpux*)
10429      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10430      # not for PA HP-UX.
10431      case $host_cpu in
10432      hppa*64*|ia64*)
10433	;;
10434      *)
10435	lt_prog_compiler_pic_CXX='-fPIC'
10436	;;
10437      esac
10438      ;;
10439    *)
10440      lt_prog_compiler_pic_CXX='-fPIC'
10441      ;;
10442    esac
10443  else
10444    case $host_os in
10445      aix4* | aix5*)
10446	# All AIX code is PIC.
10447	if test "$host_cpu" = ia64; then
10448	  # AIX 5 now supports IA64 processor
10449	  lt_prog_compiler_static_CXX='-Bstatic'
10450	else
10451	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10452	fi
10453	;;
10454      chorus*)
10455	case $cc_basename in
10456	cxch68*)
10457	  # Green Hills C++ Compiler
10458	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10459	  ;;
10460	esac
10461	;;
10462       darwin*)
10463         # PIC is the default on this platform
10464         # Common symbols not allowed in MH_DYLIB files
10465         case $cc_basename in
10466           xlc*)
10467           lt_prog_compiler_pic_CXX='-qnocommon'
10468           lt_prog_compiler_wl_CXX='-Wl,'
10469           ;;
10470         esac
10471       ;;
10472      dgux*)
10473	case $cc_basename in
10474	  ec++*)
10475	    lt_prog_compiler_pic_CXX='-KPIC'
10476	    ;;
10477	  ghcx*)
10478	    # Green Hills C++ Compiler
10479	    lt_prog_compiler_pic_CXX='-pic'
10480	    ;;
10481	  *)
10482	    ;;
10483	esac
10484	;;
10485      freebsd* | kfreebsd*-gnu | dragonfly*)
10486	# FreeBSD uses GNU C++
10487	;;
10488      hpux9* | hpux10* | hpux11*)
10489	case $cc_basename in
10490	  CC*)
10491	    lt_prog_compiler_wl_CXX='-Wl,'
10492	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10493	    if test "$host_cpu" != ia64; then
10494	      lt_prog_compiler_pic_CXX='+Z'
10495	    fi
10496	    ;;
10497	  aCC*)
10498	    lt_prog_compiler_wl_CXX='-Wl,'
10499	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10500	    case $host_cpu in
10501	    hppa*64*|ia64*)
10502	      # +Z the default
10503	      ;;
10504	    *)
10505	      lt_prog_compiler_pic_CXX='+Z'
10506	      ;;
10507	    esac
10508	    ;;
10509	  *)
10510	    ;;
10511	esac
10512	;;
10513      irix5* | irix6* | nonstopux*)
10514	case $cc_basename in
10515	  CC*)
10516	    lt_prog_compiler_wl_CXX='-Wl,'
10517	    lt_prog_compiler_static_CXX='-non_shared'
10518	    # CC pic flag -KPIC is the default.
10519	    ;;
10520	  *)
10521	    ;;
10522	esac
10523	;;
10524      linux*)
10525	case $cc_basename in
10526	  KCC*)
10527	    # KAI C++ Compiler
10528	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10529	    lt_prog_compiler_pic_CXX='-fPIC'
10530	    ;;
10531	  icpc* | ecpc*)
10532	    # Intel C++
10533	    lt_prog_compiler_wl_CXX='-Wl,'
10534	    lt_prog_compiler_pic_CXX='-KPIC'
10535	    lt_prog_compiler_static_CXX='-static'
10536	    ;;
10537	  pgCC*)
10538	    # Portland Group C++ compiler.
10539	    lt_prog_compiler_wl_CXX='-Wl,'
10540	    lt_prog_compiler_pic_CXX='-fpic'
10541	    lt_prog_compiler_static_CXX='-Bstatic'
10542	    ;;
10543	  cxx*)
10544	    # Compaq C++
10545	    # Make sure the PIC flag is empty.  It appears that all Alpha
10546	    # Linux and Compaq Tru64 Unix objects are PIC.
10547	    lt_prog_compiler_pic_CXX=
10548	    lt_prog_compiler_static_CXX='-non_shared'
10549	    ;;
10550	  *)
10551	    ;;
10552	esac
10553	;;
10554      lynxos*)
10555	;;
10556      m88k*)
10557	;;
10558      mvs*)
10559	case $cc_basename in
10560	  cxx*)
10561	    lt_prog_compiler_pic_CXX='-W c,exportall'
10562	    ;;
10563	  *)
10564	    ;;
10565	esac
10566	;;
10567      netbsd*)
10568	;;
10569      osf3* | osf4* | osf5*)
10570	case $cc_basename in
10571	  KCC*)
10572	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10573	    ;;
10574	  RCC*)
10575	    # Rational C++ 2.4.1
10576	    lt_prog_compiler_pic_CXX='-pic'
10577	    ;;
10578	  cxx*)
10579	    # Digital/Compaq C++
10580	    lt_prog_compiler_wl_CXX='-Wl,'
10581	    # Make sure the PIC flag is empty.  It appears that all Alpha
10582	    # Linux and Compaq Tru64 Unix objects are PIC.
10583	    lt_prog_compiler_pic_CXX=
10584	    lt_prog_compiler_static_CXX='-non_shared'
10585	    ;;
10586	  *)
10587	    ;;
10588	esac
10589	;;
10590      psos*)
10591	;;
10592      sco*)
10593	case $cc_basename in
10594	  CC*)
10595	    lt_prog_compiler_pic_CXX='-fPIC'
10596	    ;;
10597	  *)
10598	    ;;
10599	esac
10600	;;
10601      solaris*)
10602	case $cc_basename in
10603	  CC*)
10604	    # Sun C++ 4.2, 5.x and Centerline C++
10605	    lt_prog_compiler_pic_CXX='-KPIC'
10606	    lt_prog_compiler_static_CXX='-Bstatic'
10607	    lt_prog_compiler_wl_CXX='-Qoption ld '
10608	    ;;
10609	  gcx*)
10610	    # Green Hills C++ Compiler
10611	    lt_prog_compiler_pic_CXX='-PIC'
10612	    ;;
10613	  *)
10614	    ;;
10615	esac
10616	;;
10617      sunos4*)
10618	case $cc_basename in
10619	  CC*)
10620	    # Sun C++ 4.x
10621	    lt_prog_compiler_pic_CXX='-pic'
10622	    lt_prog_compiler_static_CXX='-Bstatic'
10623	    ;;
10624	  lcc*)
10625	    # Lucid
10626	    lt_prog_compiler_pic_CXX='-pic'
10627	    ;;
10628	  *)
10629	    ;;
10630	esac
10631	;;
10632      tandem*)
10633	case $cc_basename in
10634	  NCC*)
10635	    # NonStop-UX NCC 3.20
10636	    lt_prog_compiler_pic_CXX='-KPIC'
10637	    ;;
10638	  *)
10639	    ;;
10640	esac
10641	;;
10642      unixware*)
10643	;;
10644      vxworks*)
10645	;;
10646      *)
10647	lt_prog_compiler_can_build_shared_CXX=no
10648	;;
10649    esac
10650  fi
10651
10652echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10653echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10654
10655#
10656# Check to make sure the PIC flag actually works.
10657#
10658if test -n "$lt_prog_compiler_pic_CXX"; then
10659
10660echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10661echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10662if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10663  echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665  lt_prog_compiler_pic_works_CXX=no
10666  ac_outfile=conftest.$ac_objext
10667   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10668   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10669   # Insert the option either (1) after the last *FLAGS variable, or
10670   # (2) before a word containing "conftest.", or (3) at the end.
10671   # Note that $ac_compile itself does not contain backslashes and begins
10672   # with a dollar sign (not a hyphen), so the echo should work correctly.
10673   # The option is referenced via a variable to avoid confusing sed.
10674   lt_compile=`echo "$ac_compile" | $SED \
10675   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10676   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10677   -e 's:$: $lt_compiler_flag:'`
10678   (eval echo "\"\$as_me:10678: $lt_compile\"" >&5)
10679   (eval "$lt_compile" 2>conftest.err)
10680   ac_status=$?
10681   cat conftest.err >&5
10682   echo "$as_me:10682: \$? = $ac_status" >&5
10683   if (exit $ac_status) && test -s "$ac_outfile"; then
10684     # The compiler can only warn and ignore the option if not recognized
10685     # So say no if there are warnings other than the usual output.
10686     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
10687     $SED '/^$/d' conftest.err >conftest.er2
10688     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
10689       lt_prog_compiler_pic_works_CXX=yes
10690     fi
10691   fi
10692   $rm conftest*
10693
10694fi
10695echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10696echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10697
10698if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10699    case $lt_prog_compiler_pic_CXX in
10700     "" | " "*) ;;
10701     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10702     esac
10703else
10704    lt_prog_compiler_pic_CXX=
10705     lt_prog_compiler_can_build_shared_CXX=no
10706fi
10707
10708fi
10709case $host_os in
10710  # For platforms which do not support PIC, -DPIC is meaningless:
10711  *djgpp*)
10712    lt_prog_compiler_pic_CXX=
10713    ;;
10714  *)
10715    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10716    ;;
10717esac
10718
10719echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10720echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10721if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10722  echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724  lt_cv_prog_compiler_c_o_CXX=no
10725   $rm -r conftest 2>/dev/null
10726   mkdir conftest
10727   cd conftest
10728   mkdir out
10729   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10730
10731   lt_compiler_flag="-o out/conftest2.$ac_objext"
10732   # Insert the option either (1) after the last *FLAGS variable, or
10733   # (2) before a word containing "conftest.", or (3) at the end.
10734   # Note that $ac_compile itself does not contain backslashes and begins
10735   # with a dollar sign (not a hyphen), so the echo should work correctly.
10736   lt_compile=`echo "$ac_compile" | $SED \
10737   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10738   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10739   -e 's:$: $lt_compiler_flag:'`
10740   (eval echo "\"\$as_me:10740: $lt_compile\"" >&5)
10741   (eval "$lt_compile" 2>out/conftest.err)
10742   ac_status=$?
10743   cat out/conftest.err >&5
10744   echo "$as_me:10744: \$? = $ac_status" >&5
10745   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10746   then
10747     # The compiler can only warn and ignore the option if not recognized
10748     # So say no if there are warnings
10749     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
10750     $SED '/^$/d' out/conftest.err >out/conftest.er2
10751     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10752       lt_cv_prog_compiler_c_o_CXX=yes
10753     fi
10754   fi
10755   chmod u+w . 2>&5
10756   $rm conftest*
10757   # SGI C++ compiler will create directory out/ii_files/ for
10758   # template instantiation
10759   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10760   $rm out/* && rmdir out
10761   cd ..
10762   rmdir conftest
10763   $rm conftest*
10764
10765fi
10766echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10767echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10768
10769
10770hard_links="nottested"
10771if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10772  # do not overwrite the value of need_locks provided by the user
10773  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10774echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10775  hard_links=yes
10776  $rm conftest*
10777  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10778  touch conftest.a
10779  ln conftest.a conftest.b 2>&5 || hard_links=no
10780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10781  echo "$as_me:$LINENO: result: $hard_links" >&5
10782echo "${ECHO_T}$hard_links" >&6
10783  if test "$hard_links" = no; then
10784    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10785echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10786    need_locks=warn
10787  fi
10788else
10789  need_locks=no
10790fi
10791
10792echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10793echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10794
10795  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10796  case $host_os in
10797  aix4* | aix5*)
10798    # If we're using GNU nm, then we don't want the "-C" option.
10799    # -C means demangle to AIX nm, but means don't demangle with GNU nm
10800    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10801      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10802    else
10803      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10804    fi
10805    ;;
10806  pw32*)
10807    export_symbols_cmds_CXX="$ltdll_cmds"
10808  ;;
10809  cygwin* | mingw*)
10810    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10811  ;;
10812  *)
10813    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10814  ;;
10815  esac
10816
10817echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10818echo "${ECHO_T}$ld_shlibs_CXX" >&6
10819test "$ld_shlibs_CXX" = no && can_build_shared=no
10820
10821variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10822if test "$GCC" = yes; then
10823  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10824fi
10825
10826#
10827# Do we need to explicitly link libc?
10828#
10829case "x$archive_cmds_need_lc_CXX" in
10830x|xyes)
10831  # Assume -lc should be added
10832  archive_cmds_need_lc_CXX=yes
10833
10834  if test "$enable_shared" = yes && test "$GCC" = yes; then
10835    case $archive_cmds_CXX in
10836    *'~'*)
10837      # FIXME: we may have to deal with multi-command sequences.
10838      ;;
10839    '$CC '*)
10840      # Test whether the compiler implicitly links with -lc since on some
10841      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10842      # to ld, don't add -lc before -lgcc.
10843      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10844echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10845      $rm conftest*
10846      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10847
10848      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10849  (eval $ac_compile) 2>&5
10850  ac_status=$?
10851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852  (exit $ac_status); } 2>conftest.err; then
10853        soname=conftest
10854        lib=conftest
10855        libobjs=conftest.$ac_objext
10856        deplibs=
10857        wl=$lt_prog_compiler_wl_CXX
10858        compiler_flags=-v
10859        linker_flags=-v
10860        verstring=
10861        output_objdir=.
10862        libname=conftest
10863        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10864        allow_undefined_flag_CXX=
10865        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10866  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10867  ac_status=$?
10868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869  (exit $ac_status); }
10870        then
10871	  archive_cmds_need_lc_CXX=no
10872        else
10873	  archive_cmds_need_lc_CXX=yes
10874        fi
10875        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10876      else
10877        cat conftest.err 1>&5
10878      fi
10879      $rm conftest*
10880      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10881echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10882      ;;
10883    esac
10884  fi
10885  ;;
10886esac
10887
10888echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10889echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10890library_names_spec=
10891libname_spec='lib$name'
10892soname_spec=
10893shrext_cmds=".so"
10894postinstall_cmds=
10895postuninstall_cmds=
10896finish_cmds=
10897finish_eval=
10898shlibpath_var=
10899shlibpath_overrides_runpath=unknown
10900version_type=none
10901dynamic_linker="$host_os ld.so"
10902sys_lib_dlsearch_path_spec="/lib /usr/lib"
10903if test "$GCC" = yes; then
10904  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10905  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10906    # if the path contains ";" then we assume it to be the separator
10907    # otherwise default to the standard path separator (i.e. ":") - it is
10908    # assumed that no part of a normal pathname contains ";" but that should
10909    # okay in the real world where ";" in dirpaths is itself problematic.
10910    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10911  else
10912    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10913  fi
10914else
10915  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10916fi
10917need_lib_prefix=unknown
10918hardcode_into_libs=no
10919
10920# when you set need_version to no, make sure it does not cause -set_version
10921# flags to be left without arguments
10922need_version=unknown
10923
10924case $host_os in
10925aix3*)
10926  version_type=linux
10927  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10928  shlibpath_var=LIBPATH
10929
10930  # AIX 3 has no versioning support, so we append a major version to the name.
10931  soname_spec='${libname}${release}${shared_ext}$major'
10932  ;;
10933
10934aix4* | aix5*)
10935  version_type=linux
10936  need_lib_prefix=no
10937  need_version=no
10938  hardcode_into_libs=yes
10939  if test "$host_cpu" = ia64; then
10940    # AIX 5 supports IA64
10941    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10942    shlibpath_var=LD_LIBRARY_PATH
10943  else
10944    # With GCC up to 2.95.x, collect2 would create an import file
10945    # for dependence libraries.  The import file would start with
10946    # the line `#! .'.  This would cause the generated library to
10947    # depend on `.', always an invalid library.  This was fixed in
10948    # development snapshots of GCC prior to 3.0.
10949    case $host_os in
10950      aix4 | aix4.[01] | aix4.[01].*)
10951      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10952	   echo ' yes '
10953	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10954	:
10955      else
10956	can_build_shared=no
10957      fi
10958      ;;
10959    esac
10960    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10961    # soname into executable. Probably we can add versioning support to
10962    # collect2, so additional links can be useful in future.
10963    if test "$aix_use_runtimelinking" = yes; then
10964      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10965      # instead of lib<name>.a to let people know that these are not
10966      # typical AIX shared libraries.
10967      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968    else
10969      # We preserve .a as extension for shared libraries through AIX4.2
10970      # and later when we are not doing run time linking.
10971      library_names_spec='${libname}${release}.a $libname.a'
10972      soname_spec='${libname}${release}${shared_ext}$major'
10973    fi
10974    shlibpath_var=LIBPATH
10975  fi
10976  ;;
10977
10978amigaos*)
10979  library_names_spec='$libname.ixlibrary $libname.a'
10980  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10981  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'
10982  ;;
10983
10984beos*)
10985  library_names_spec='${libname}${shared_ext}'
10986  dynamic_linker="$host_os ld.so"
10987  shlibpath_var=LIBRARY_PATH
10988  ;;
10989
10990bsdi[45]*)
10991  version_type=linux
10992  need_version=no
10993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994  soname_spec='${libname}${release}${shared_ext}$major'
10995  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10996  shlibpath_var=LD_LIBRARY_PATH
10997  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10998  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10999  # the default ld.so.conf also contains /usr/contrib/lib and
11000  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11001  # libtool to hard-code these into programs
11002  ;;
11003
11004cygwin* | mingw* | pw32*)
11005  version_type=windows
11006  shrext_cmds=".dll"
11007  need_version=no
11008  need_lib_prefix=no
11009
11010  case $GCC,$host_os in
11011  yes,cygwin* | yes,mingw* | yes,pw32*)
11012    library_names_spec='$libname.dll.a'
11013    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11014    postinstall_cmds='base_file=`basename \${file}`~
11015      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11016      dldir=$destdir/`dirname \$dlpath`~
11017      test -d \$dldir || mkdir -p \$dldir~
11018      $install_prog $dir/$dlname \$dldir/$dlname~
11019      chmod a+x \$dldir/$dlname'
11020    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11021      dlpath=$dir/\$dldll~
11022       $rm \$dlpath'
11023    shlibpath_overrides_runpath=yes
11024
11025    case $host_os in
11026    cygwin*)
11027      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11028      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11029      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11030      ;;
11031    mingw*)
11032      # MinGW DLLs use traditional 'lib' prefix
11033      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11034      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11035      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11036        # It is most probably a Windows format PATH printed by
11037        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11038        # path with ; separators, and with drive letters. We can handle the
11039        # drive letters (cygwin fileutils understands them), so leave them,
11040        # especially as we might pass files found there to a mingw objdump,
11041        # which wouldn't understand a cygwinified path. Ahh.
11042        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11043      else
11044        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11045      fi
11046      ;;
11047    pw32*)
11048      # pw32 DLLs use 'pw' prefix rather than 'lib'
11049      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11050      ;;
11051    esac
11052    ;;
11053
11054  *)
11055    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11056    ;;
11057  esac
11058  dynamic_linker='Win32 ld.exe'
11059  # FIXME: first we should search . and the directory the executable is in
11060  shlibpath_var=PATH
11061  ;;
11062
11063darwin* | rhapsody*)
11064  dynamic_linker="$host_os dyld"
11065  version_type=darwin
11066  need_lib_prefix=no
11067  need_version=no
11068  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11069  soname_spec='${libname}${release}${major}$shared_ext'
11070  shlibpath_overrides_runpath=yes
11071  shlibpath_var=DYLD_LIBRARY_PATH
11072  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11073  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11074  if test "$GCC" = yes; then
11075    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"`
11076  else
11077    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11078  fi
11079  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11080  ;;
11081
11082dgux*)
11083  version_type=linux
11084  need_lib_prefix=no
11085  need_version=no
11086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11087  soname_spec='${libname}${release}${shared_ext}$major'
11088  shlibpath_var=LD_LIBRARY_PATH
11089  ;;
11090
11091freebsd1*)
11092  dynamic_linker=no
11093  ;;
11094
11095kfreebsd*-gnu)
11096  version_type=linux
11097  need_lib_prefix=no
11098  need_version=no
11099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100  soname_spec='${libname}${release}${shared_ext}$major'
11101  shlibpath_var=LD_LIBRARY_PATH
11102  shlibpath_overrides_runpath=no
11103  hardcode_into_libs=yes
11104  dynamic_linker='GNU ld.so'
11105  ;;
11106
11107freebsd* | dragonfly*)
11108  # DragonFly does not have aout.  When/if they implement a new
11109  # versioning mechanism, adjust this.
11110  if test -x /usr/bin/objformat; then
11111    objformat=`/usr/bin/objformat`
11112  else
11113    case $host_os in
11114    freebsd[123]*) objformat=aout ;;
11115    *) objformat=elf ;;
11116    esac
11117  fi
11118  version_type=freebsd-$objformat
11119  case $version_type in
11120    freebsd-elf*)
11121      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122      need_version=no
11123      need_lib_prefix=no
11124      ;;
11125    freebsd-*)
11126      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11127      need_version=yes
11128      ;;
11129  esac
11130  shlibpath_var=LD_LIBRARY_PATH
11131  case $host_os in
11132  freebsd2*)
11133    shlibpath_overrides_runpath=yes
11134    ;;
11135  freebsd3.[01]* | freebsdelf3.[01]*)
11136    shlibpath_overrides_runpath=yes
11137    hardcode_into_libs=yes
11138    ;;
11139  *) # from 3.2 on
11140    shlibpath_overrides_runpath=no
11141    hardcode_into_libs=yes
11142    ;;
11143  esac
11144  ;;
11145
11146gnu*)
11147  version_type=linux
11148  need_lib_prefix=no
11149  need_version=no
11150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11151  soname_spec='${libname}${release}${shared_ext}$major'
11152  shlibpath_var=LD_LIBRARY_PATH
11153  hardcode_into_libs=yes
11154  ;;
11155
11156hpux9* | hpux10* | hpux11*)
11157  # Give a soname corresponding to the major version so that dld.sl refuses to
11158  # link against other versions.
11159  version_type=sunos
11160  need_lib_prefix=no
11161  need_version=no
11162  case $host_cpu in
11163  ia64*)
11164    shrext_cmds='.so'
11165    hardcode_into_libs=yes
11166    dynamic_linker="$host_os dld.so"
11167    shlibpath_var=LD_LIBRARY_PATH
11168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170    soname_spec='${libname}${release}${shared_ext}$major'
11171    if test "X$HPUX_IA64_MODE" = X32; then
11172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11173    else
11174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11175    fi
11176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11177    ;;
11178   hppa*64*)
11179     shrext_cmds='.sl'
11180     hardcode_into_libs=yes
11181     dynamic_linker="$host_os dld.sl"
11182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185     soname_spec='${libname}${release}${shared_ext}$major'
11186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11188     ;;
11189   *)
11190    shrext_cmds='.sl'
11191    dynamic_linker="$host_os dld.sl"
11192    shlibpath_var=SHLIB_PATH
11193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195    soname_spec='${libname}${release}${shared_ext}$major'
11196    ;;
11197  esac
11198  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11199  postinstall_cmds='chmod 555 $lib'
11200  ;;
11201
11202irix5* | irix6* | nonstopux*)
11203  case $host_os in
11204    nonstopux*) version_type=nonstopux ;;
11205    *)
11206	if test "$lt_cv_prog_gnu_ld" = yes; then
11207		version_type=linux
11208	else
11209		version_type=irix
11210	fi ;;
11211  esac
11212  need_lib_prefix=no
11213  need_version=no
11214  soname_spec='${libname}${release}${shared_ext}$major'
11215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11216  case $host_os in
11217  irix5* | nonstopux*)
11218    libsuff= shlibsuff=
11219    ;;
11220  *)
11221    case $LD in # libtool.m4 will add one of these switches to LD
11222    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11223      libsuff= shlibsuff= libmagic=32-bit;;
11224    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11225      libsuff=32 shlibsuff=N32 libmagic=N32;;
11226    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11227      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11228    *) libsuff= shlibsuff= libmagic=never-match;;
11229    esac
11230    ;;
11231  esac
11232  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11233  shlibpath_overrides_runpath=no
11234  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11235  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11236  hardcode_into_libs=yes
11237  ;;
11238
11239# No shared lib support for Linux oldld, aout, or coff.
11240linux*oldld* | linux*aout* | linux*coff*)
11241  dynamic_linker=no
11242  ;;
11243
11244# This must be Linux ELF.
11245linux*)
11246  version_type=linux
11247  need_lib_prefix=no
11248  need_version=no
11249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11250  soname_spec='${libname}${release}${shared_ext}$major'
11251  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11252  shlibpath_var=LD_LIBRARY_PATH
11253  shlibpath_overrides_runpath=no
11254  # This implies no fast_install, which is unacceptable.
11255  # Some rework will be needed to allow for fast_install
11256  # before this can be enabled.
11257  hardcode_into_libs=yes
11258
11259  # Append ld.so.conf contents to the search path
11260  if test -f /etc/ld.so.conf; then
11261    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' ' '`
11262    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11263  fi
11264
11265  # We used to test for /lib/ld.so.1 and disable shared libraries on
11266  # powerpc, because MkLinux only supported shared libraries with the
11267  # GNU dynamic linker.  Since this was broken with cross compilers,
11268  # most powerpc-linux boxes support dynamic linking these days and
11269  # people can always --disable-shared, the test was removed, and we
11270  # assume the GNU/Linux dynamic linker is in use.
11271  dynamic_linker='GNU/Linux ld.so'
11272  ;;
11273
11274knetbsd*-gnu)
11275  version_type=linux
11276  need_lib_prefix=no
11277  need_version=no
11278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11279  soname_spec='${libname}${release}${shared_ext}$major'
11280  shlibpath_var=LD_LIBRARY_PATH
11281  shlibpath_overrides_runpath=no
11282  hardcode_into_libs=yes
11283  dynamic_linker='GNU ld.so'
11284  ;;
11285
11286netbsd*)
11287  version_type=sunos
11288  need_lib_prefix=no
11289  need_version=no
11290  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11291    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293    dynamic_linker='NetBSD (a.out) ld.so'
11294  else
11295    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11296    soname_spec='${libname}${release}${shared_ext}$major'
11297    dynamic_linker='NetBSD ld.elf_so'
11298  fi
11299  shlibpath_var=LD_LIBRARY_PATH
11300  shlibpath_overrides_runpath=yes
11301  hardcode_into_libs=yes
11302  ;;
11303
11304newsos6)
11305  version_type=linux
11306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  shlibpath_overrides_runpath=yes
11309  ;;
11310
11311nto-qnx*)
11312  version_type=linux
11313  need_lib_prefix=no
11314  need_version=no
11315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316  soname_spec='${libname}${release}${shared_ext}$major'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=yes
11319  ;;
11320
11321openbsd*)
11322  version_type=sunos
11323  need_lib_prefix=no
11324  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11325  case $host_os in
11326    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11327    *)                         need_version=no  ;;
11328  esac
11329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11331  shlibpath_var=LD_LIBRARY_PATH
11332  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11333    case $host_os in
11334      openbsd2.[89] | openbsd2.[89].*)
11335	shlibpath_overrides_runpath=no
11336	;;
11337      *)
11338	shlibpath_overrides_runpath=yes
11339	;;
11340      esac
11341  else
11342    shlibpath_overrides_runpath=yes
11343  fi
11344  ;;
11345
11346os2*)
11347  libname_spec='$name'
11348  shrext_cmds=".dll"
11349  need_lib_prefix=no
11350  library_names_spec='$libname${shared_ext} $libname.a'
11351  dynamic_linker='OS/2 ld.exe'
11352  shlibpath_var=LIBPATH
11353  ;;
11354
11355osf3* | osf4* | osf5*)
11356  version_type=osf
11357  need_lib_prefix=no
11358  need_version=no
11359  soname_spec='${libname}${release}${shared_ext}$major'
11360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361  shlibpath_var=LD_LIBRARY_PATH
11362  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11363  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11364  ;;
11365
11366sco3.2v5*)
11367  version_type=osf
11368  soname_spec='${libname}${release}${shared_ext}$major'
11369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370  shlibpath_var=LD_LIBRARY_PATH
11371  ;;
11372
11373solaris*)
11374  version_type=linux
11375  need_lib_prefix=no
11376  need_version=no
11377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378  soname_spec='${libname}${release}${shared_ext}$major'
11379  shlibpath_var=LD_LIBRARY_PATH
11380  shlibpath_overrides_runpath=yes
11381  hardcode_into_libs=yes
11382  # ldd complains unless libraries are executable
11383  postinstall_cmds='chmod +x $lib'
11384  ;;
11385
11386sunos4*)
11387  version_type=sunos
11388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11389  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11390  shlibpath_var=LD_LIBRARY_PATH
11391  shlibpath_overrides_runpath=yes
11392  if test "$with_gnu_ld" = yes; then
11393    need_lib_prefix=no
11394  fi
11395  need_version=yes
11396  ;;
11397
11398sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11399  version_type=linux
11400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401  soname_spec='${libname}${release}${shared_ext}$major'
11402  shlibpath_var=LD_LIBRARY_PATH
11403  case $host_vendor in
11404    sni)
11405      shlibpath_overrides_runpath=no
11406      need_lib_prefix=no
11407      export_dynamic_flag_spec='${wl}-Blargedynsym'
11408      runpath_var=LD_RUN_PATH
11409      ;;
11410    siemens)
11411      need_lib_prefix=no
11412      ;;
11413    motorola)
11414      need_lib_prefix=no
11415      need_version=no
11416      shlibpath_overrides_runpath=no
11417      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11418      ;;
11419  esac
11420  ;;
11421
11422sysv4*MP*)
11423  if test -d /usr/nec ;then
11424    version_type=linux
11425    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11426    soname_spec='$libname${shared_ext}.$major'
11427    shlibpath_var=LD_LIBRARY_PATH
11428  fi
11429  ;;
11430
11431uts4*)
11432  version_type=linux
11433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434  soname_spec='${libname}${release}${shared_ext}$major'
11435  shlibpath_var=LD_LIBRARY_PATH
11436  ;;
11437
11438*)
11439  dynamic_linker=no
11440  ;;
11441esac
11442echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11443echo "${ECHO_T}$dynamic_linker" >&6
11444test "$dynamic_linker" = no && can_build_shared=no
11445
11446echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11447echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11448hardcode_action_CXX=
11449if test -n "$hardcode_libdir_flag_spec_CXX" || \
11450   test -n "$runpath_var_CXX" || \
11451   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11452
11453  # We can hardcode non-existant directories.
11454  if test "$hardcode_direct_CXX" != no &&
11455     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11456     # have to relink, otherwise we might link with an installed library
11457     # when we should be linking with a yet-to-be-installed one
11458     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11459     test "$hardcode_minus_L_CXX" != no; then
11460    # Linking always hardcodes the temporary library directory.
11461    hardcode_action_CXX=relink
11462  else
11463    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11464    hardcode_action_CXX=immediate
11465  fi
11466else
11467  # We cannot hardcode anything, or else we can only hardcode existing
11468  # directories.
11469  hardcode_action_CXX=unsupported
11470fi
11471echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11472echo "${ECHO_T}$hardcode_action_CXX" >&6
11473
11474if test "$hardcode_action_CXX" = relink; then
11475  # Fast installation is not supported
11476  enable_fast_install=no
11477elif test "$shlibpath_overrides_runpath" = yes ||
11478     test "$enable_shared" = no; then
11479  # Fast installation is not necessary
11480  enable_fast_install=needless
11481fi
11482
11483striplib=
11484old_striplib=
11485echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11486echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11487if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11488  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11489  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11490  echo "$as_me:$LINENO: result: yes" >&5
11491echo "${ECHO_T}yes" >&6
11492else
11493# FIXME - insert some real tests, host_os isn't really good enough
11494  case $host_os in
11495   darwin*)
11496       if test -n "$STRIP" ; then
11497         striplib="$STRIP -x"
11498         echo "$as_me:$LINENO: result: yes" >&5
11499echo "${ECHO_T}yes" >&6
11500       else
11501  echo "$as_me:$LINENO: result: no" >&5
11502echo "${ECHO_T}no" >&6
11503fi
11504       ;;
11505   *)
11506  echo "$as_me:$LINENO: result: no" >&5
11507echo "${ECHO_T}no" >&6
11508    ;;
11509  esac
11510fi
11511
11512if test "x$enable_dlopen" != xyes; then
11513  enable_dlopen=unknown
11514  enable_dlopen_self=unknown
11515  enable_dlopen_self_static=unknown
11516else
11517  lt_cv_dlopen=no
11518  lt_cv_dlopen_libs=
11519
11520  case $host_os in
11521  beos*)
11522    lt_cv_dlopen="load_add_on"
11523    lt_cv_dlopen_libs=
11524    lt_cv_dlopen_self=yes
11525    ;;
11526
11527  mingw* | pw32*)
11528    lt_cv_dlopen="LoadLibrary"
11529    lt_cv_dlopen_libs=
11530   ;;
11531
11532  cygwin*)
11533    lt_cv_dlopen="dlopen"
11534    lt_cv_dlopen_libs=
11535   ;;
11536
11537  darwin*)
11538  # if libdl is installed we need to link against it
11539    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11540echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11541if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11542  echo $ECHO_N "(cached) $ECHO_C" >&6
11543else
11544  ac_check_lib_save_LIBS=$LIBS
11545LIBS="-ldl  $LIBS"
11546cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h.  */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h.  */
11552
11553/* Override any gcc2 internal prototype to avoid an error.  */
11554#ifdef __cplusplus
11555extern "C"
11556#endif
11557/* We use char because int might match the return type of a gcc2
11558   builtin and then its argument prototype would still apply.  */
11559char dlopen ();
11560int
11561main ()
11562{
11563dlopen ();
11564  ;
11565  return 0;
11566}
11567_ACEOF
11568rm -f conftest.$ac_objext conftest$ac_exeext
11569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570  (eval $ac_link) 2>conftest.er1
11571  ac_status=$?
11572  grep -v '^ *+' conftest.er1 >conftest.err
11573  rm -f conftest.er1
11574  cat conftest.err >&5
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); } &&
11577	 { ac_try='test -z "$ac_cxx_werror_flag"
11578			 || test ! -s conftest.err'
11579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580  (eval $ac_try) 2>&5
11581  ac_status=$?
11582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583  (exit $ac_status); }; } &&
11584	 { ac_try='test -s conftest$ac_exeext'
11585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586  (eval $ac_try) 2>&5
11587  ac_status=$?
11588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589  (exit $ac_status); }; }; then
11590  ac_cv_lib_dl_dlopen=yes
11591else
11592  echo "$as_me: failed program was:" >&5
11593sed 's/^/| /' conftest.$ac_ext >&5
11594
11595ac_cv_lib_dl_dlopen=no
11596fi
11597rm -f conftest.err conftest.$ac_objext \
11598      conftest$ac_exeext conftest.$ac_ext
11599LIBS=$ac_check_lib_save_LIBS
11600fi
11601echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11602echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11603if test $ac_cv_lib_dl_dlopen = yes; then
11604  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11605else
11606
11607    lt_cv_dlopen="dyld"
11608    lt_cv_dlopen_libs=
11609    lt_cv_dlopen_self=yes
11610
11611fi
11612
11613   ;;
11614
11615  *)
11616    echo "$as_me:$LINENO: checking for shl_load" >&5
11617echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11618if test "${ac_cv_func_shl_load+set}" = set; then
11619  echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621  cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h.  */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h.  */
11627/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11628   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11629#define shl_load innocuous_shl_load
11630
11631/* System header to define __stub macros and hopefully few prototypes,
11632    which can conflict with char shl_load (); below.
11633    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634    <limits.h> exists even on freestanding compilers.  */
11635
11636#ifdef __STDC__
11637# include <limits.h>
11638#else
11639# include <assert.h>
11640#endif
11641
11642#undef shl_load
11643
11644/* Override any gcc2 internal prototype to avoid an error.  */
11645#ifdef __cplusplus
11646extern "C"
11647{
11648#endif
11649/* We use char because int might match the return type of a gcc2
11650   builtin and then its argument prototype would still apply.  */
11651char shl_load ();
11652/* The GNU C library defines this for functions which it implements
11653    to always fail with ENOSYS.  Some functions are actually named
11654    something starting with __ and the normal name is an alias.  */
11655#if defined (__stub_shl_load) || defined (__stub___shl_load)
11656choke me
11657#else
11658char (*f) () = shl_load;
11659#endif
11660#ifdef __cplusplus
11661}
11662#endif
11663
11664int
11665main ()
11666{
11667return f != shl_load;
11668  ;
11669  return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext conftest$ac_exeext
11673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674  (eval $ac_link) 2>conftest.er1
11675  ac_status=$?
11676  grep -v '^ *+' conftest.er1 >conftest.err
11677  rm -f conftest.er1
11678  cat conftest.err >&5
11679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680  (exit $ac_status); } &&
11681	 { ac_try='test -z "$ac_cxx_werror_flag"
11682			 || test ! -s conftest.err'
11683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684  (eval $ac_try) 2>&5
11685  ac_status=$?
11686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687  (exit $ac_status); }; } &&
11688	 { ac_try='test -s conftest$ac_exeext'
11689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690  (eval $ac_try) 2>&5
11691  ac_status=$?
11692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693  (exit $ac_status); }; }; then
11694  ac_cv_func_shl_load=yes
11695else
11696  echo "$as_me: failed program was:" >&5
11697sed 's/^/| /' conftest.$ac_ext >&5
11698
11699ac_cv_func_shl_load=no
11700fi
11701rm -f conftest.err conftest.$ac_objext \
11702      conftest$ac_exeext conftest.$ac_ext
11703fi
11704echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11705echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11706if test $ac_cv_func_shl_load = yes; then
11707  lt_cv_dlopen="shl_load"
11708else
11709  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11710echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11711if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11712  echo $ECHO_N "(cached) $ECHO_C" >&6
11713else
11714  ac_check_lib_save_LIBS=$LIBS
11715LIBS="-ldld  $LIBS"
11716cat >conftest.$ac_ext <<_ACEOF
11717/* confdefs.h.  */
11718_ACEOF
11719cat confdefs.h >>conftest.$ac_ext
11720cat >>conftest.$ac_ext <<_ACEOF
11721/* end confdefs.h.  */
11722
11723/* Override any gcc2 internal prototype to avoid an error.  */
11724#ifdef __cplusplus
11725extern "C"
11726#endif
11727/* We use char because int might match the return type of a gcc2
11728   builtin and then its argument prototype would still apply.  */
11729char shl_load ();
11730int
11731main ()
11732{
11733shl_load ();
11734  ;
11735  return 0;
11736}
11737_ACEOF
11738rm -f conftest.$ac_objext conftest$ac_exeext
11739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740  (eval $ac_link) 2>conftest.er1
11741  ac_status=$?
11742  grep -v '^ *+' conftest.er1 >conftest.err
11743  rm -f conftest.er1
11744  cat conftest.err >&5
11745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746  (exit $ac_status); } &&
11747	 { ac_try='test -z "$ac_cxx_werror_flag"
11748			 || test ! -s conftest.err'
11749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750  (eval $ac_try) 2>&5
11751  ac_status=$?
11752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753  (exit $ac_status); }; } &&
11754	 { ac_try='test -s conftest$ac_exeext'
11755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756  (eval $ac_try) 2>&5
11757  ac_status=$?
11758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759  (exit $ac_status); }; }; then
11760  ac_cv_lib_dld_shl_load=yes
11761else
11762  echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765ac_cv_lib_dld_shl_load=no
11766fi
11767rm -f conftest.err conftest.$ac_objext \
11768      conftest$ac_exeext conftest.$ac_ext
11769LIBS=$ac_check_lib_save_LIBS
11770fi
11771echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11772echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11773if test $ac_cv_lib_dld_shl_load = yes; then
11774  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11775else
11776  echo "$as_me:$LINENO: checking for dlopen" >&5
11777echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11778if test "${ac_cv_func_dlopen+set}" = set; then
11779  echo $ECHO_N "(cached) $ECHO_C" >&6
11780else
11781  cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h.  */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h.  */
11787/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11788   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11789#define dlopen innocuous_dlopen
11790
11791/* System header to define __stub macros and hopefully few prototypes,
11792    which can conflict with char dlopen (); below.
11793    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11794    <limits.h> exists even on freestanding compilers.  */
11795
11796#ifdef __STDC__
11797# include <limits.h>
11798#else
11799# include <assert.h>
11800#endif
11801
11802#undef dlopen
11803
11804/* Override any gcc2 internal prototype to avoid an error.  */
11805#ifdef __cplusplus
11806extern "C"
11807{
11808#endif
11809/* We use char because int might match the return type of a gcc2
11810   builtin and then its argument prototype would still apply.  */
11811char dlopen ();
11812/* The GNU C library defines this for functions which it implements
11813    to always fail with ENOSYS.  Some functions are actually named
11814    something starting with __ and the normal name is an alias.  */
11815#if defined (__stub_dlopen) || defined (__stub___dlopen)
11816choke me
11817#else
11818char (*f) () = dlopen;
11819#endif
11820#ifdef __cplusplus
11821}
11822#endif
11823
11824int
11825main ()
11826{
11827return f != dlopen;
11828  ;
11829  return 0;
11830}
11831_ACEOF
11832rm -f conftest.$ac_objext conftest$ac_exeext
11833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834  (eval $ac_link) 2>conftest.er1
11835  ac_status=$?
11836  grep -v '^ *+' conftest.er1 >conftest.err
11837  rm -f conftest.er1
11838  cat conftest.err >&5
11839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840  (exit $ac_status); } &&
11841	 { ac_try='test -z "$ac_cxx_werror_flag"
11842			 || test ! -s conftest.err'
11843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844  (eval $ac_try) 2>&5
11845  ac_status=$?
11846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847  (exit $ac_status); }; } &&
11848	 { ac_try='test -s conftest$ac_exeext'
11849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850  (eval $ac_try) 2>&5
11851  ac_status=$?
11852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853  (exit $ac_status); }; }; then
11854  ac_cv_func_dlopen=yes
11855else
11856  echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859ac_cv_func_dlopen=no
11860fi
11861rm -f conftest.err conftest.$ac_objext \
11862      conftest$ac_exeext conftest.$ac_ext
11863fi
11864echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11865echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11866if test $ac_cv_func_dlopen = yes; then
11867  lt_cv_dlopen="dlopen"
11868else
11869  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11871if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11872  echo $ECHO_N "(cached) $ECHO_C" >&6
11873else
11874  ac_check_lib_save_LIBS=$LIBS
11875LIBS="-ldl  $LIBS"
11876cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h.  */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h.  */
11882
11883/* Override any gcc2 internal prototype to avoid an error.  */
11884#ifdef __cplusplus
11885extern "C"
11886#endif
11887/* We use char because int might match the return type of a gcc2
11888   builtin and then its argument prototype would still apply.  */
11889char dlopen ();
11890int
11891main ()
11892{
11893dlopen ();
11894  ;
11895  return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext conftest$ac_exeext
11899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900  (eval $ac_link) 2>conftest.er1
11901  ac_status=$?
11902  grep -v '^ *+' conftest.er1 >conftest.err
11903  rm -f conftest.er1
11904  cat conftest.err >&5
11905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906  (exit $ac_status); } &&
11907	 { ac_try='test -z "$ac_cxx_werror_flag"
11908			 || test ! -s conftest.err'
11909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910  (eval $ac_try) 2>&5
11911  ac_status=$?
11912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913  (exit $ac_status); }; } &&
11914	 { ac_try='test -s conftest$ac_exeext'
11915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916  (eval $ac_try) 2>&5
11917  ac_status=$?
11918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919  (exit $ac_status); }; }; then
11920  ac_cv_lib_dl_dlopen=yes
11921else
11922  echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925ac_cv_lib_dl_dlopen=no
11926fi
11927rm -f conftest.err conftest.$ac_objext \
11928      conftest$ac_exeext conftest.$ac_ext
11929LIBS=$ac_check_lib_save_LIBS
11930fi
11931echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11932echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11933if test $ac_cv_lib_dl_dlopen = yes; then
11934  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11935else
11936  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11937echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11938if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11939  echo $ECHO_N "(cached) $ECHO_C" >&6
11940else
11941  ac_check_lib_save_LIBS=$LIBS
11942LIBS="-lsvld  $LIBS"
11943cat >conftest.$ac_ext <<_ACEOF
11944/* confdefs.h.  */
11945_ACEOF
11946cat confdefs.h >>conftest.$ac_ext
11947cat >>conftest.$ac_ext <<_ACEOF
11948/* end confdefs.h.  */
11949
11950/* Override any gcc2 internal prototype to avoid an error.  */
11951#ifdef __cplusplus
11952extern "C"
11953#endif
11954/* We use char because int might match the return type of a gcc2
11955   builtin and then its argument prototype would still apply.  */
11956char dlopen ();
11957int
11958main ()
11959{
11960dlopen ();
11961  ;
11962  return 0;
11963}
11964_ACEOF
11965rm -f conftest.$ac_objext conftest$ac_exeext
11966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967  (eval $ac_link) 2>conftest.er1
11968  ac_status=$?
11969  grep -v '^ *+' conftest.er1 >conftest.err
11970  rm -f conftest.er1
11971  cat conftest.err >&5
11972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973  (exit $ac_status); } &&
11974	 { ac_try='test -z "$ac_cxx_werror_flag"
11975			 || test ! -s conftest.err'
11976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977  (eval $ac_try) 2>&5
11978  ac_status=$?
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); }; } &&
11981	 { ac_try='test -s conftest$ac_exeext'
11982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983  (eval $ac_try) 2>&5
11984  ac_status=$?
11985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986  (exit $ac_status); }; }; then
11987  ac_cv_lib_svld_dlopen=yes
11988else
11989  echo "$as_me: failed program was:" >&5
11990sed 's/^/| /' conftest.$ac_ext >&5
11991
11992ac_cv_lib_svld_dlopen=no
11993fi
11994rm -f conftest.err conftest.$ac_objext \
11995      conftest$ac_exeext conftest.$ac_ext
11996LIBS=$ac_check_lib_save_LIBS
11997fi
11998echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11999echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12000if test $ac_cv_lib_svld_dlopen = yes; then
12001  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12002else
12003  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12004echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12005if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12006  echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008  ac_check_lib_save_LIBS=$LIBS
12009LIBS="-ldld  $LIBS"
12010cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h.  */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h.  */
12016
12017/* Override any gcc2 internal prototype to avoid an error.  */
12018#ifdef __cplusplus
12019extern "C"
12020#endif
12021/* We use char because int might match the return type of a gcc2
12022   builtin and then its argument prototype would still apply.  */
12023char dld_link ();
12024int
12025main ()
12026{
12027dld_link ();
12028  ;
12029  return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
12033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034  (eval $ac_link) 2>conftest.er1
12035  ac_status=$?
12036  grep -v '^ *+' conftest.er1 >conftest.err
12037  rm -f conftest.er1
12038  cat conftest.err >&5
12039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040  (exit $ac_status); } &&
12041	 { ac_try='test -z "$ac_cxx_werror_flag"
12042			 || test ! -s conftest.err'
12043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044  (eval $ac_try) 2>&5
12045  ac_status=$?
12046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047  (exit $ac_status); }; } &&
12048	 { ac_try='test -s conftest$ac_exeext'
12049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050  (eval $ac_try) 2>&5
12051  ac_status=$?
12052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053  (exit $ac_status); }; }; then
12054  ac_cv_lib_dld_dld_link=yes
12055else
12056  echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059ac_cv_lib_dld_dld_link=no
12060fi
12061rm -f conftest.err conftest.$ac_objext \
12062      conftest$ac_exeext conftest.$ac_ext
12063LIBS=$ac_check_lib_save_LIBS
12064fi
12065echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12066echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12067if test $ac_cv_lib_dld_dld_link = yes; then
12068  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12069fi
12070
12071
12072fi
12073
12074
12075fi
12076
12077
12078fi
12079
12080
12081fi
12082
12083
12084fi
12085
12086    ;;
12087  esac
12088
12089  if test "x$lt_cv_dlopen" != xno; then
12090    enable_dlopen=yes
12091  else
12092    enable_dlopen=no
12093  fi
12094
12095  case $lt_cv_dlopen in
12096  dlopen)
12097    save_CPPFLAGS="$CPPFLAGS"
12098    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12099
12100    save_LDFLAGS="$LDFLAGS"
12101    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12102
12103    save_LIBS="$LIBS"
12104    LIBS="$lt_cv_dlopen_libs $LIBS"
12105
12106    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12107echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12108if test "${lt_cv_dlopen_self+set}" = set; then
12109  echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111  	  if test "$cross_compiling" = yes; then :
12112  lt_cv_dlopen_self=cross
12113else
12114  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12115  lt_status=$lt_dlunknown
12116  cat > conftest.$ac_ext <<EOF
12117#line 12117 "configure"
12118#include "confdefs.h"
12119
12120#if HAVE_DLFCN_H
12121#include <dlfcn.h>
12122#endif
12123
12124#include <stdio.h>
12125
12126#ifdef RTLD_GLOBAL
12127#  define LT_DLGLOBAL		RTLD_GLOBAL
12128#else
12129#  ifdef DL_GLOBAL
12130#    define LT_DLGLOBAL		DL_GLOBAL
12131#  else
12132#    define LT_DLGLOBAL		0
12133#  endif
12134#endif
12135
12136/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12137   find out it does not work in some platform. */
12138#ifndef LT_DLLAZY_OR_NOW
12139#  ifdef RTLD_LAZY
12140#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12141#  else
12142#    ifdef DL_LAZY
12143#      define LT_DLLAZY_OR_NOW		DL_LAZY
12144#    else
12145#      ifdef RTLD_NOW
12146#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12147#      else
12148#        ifdef DL_NOW
12149#          define LT_DLLAZY_OR_NOW	DL_NOW
12150#        else
12151#          define LT_DLLAZY_OR_NOW	0
12152#        endif
12153#      endif
12154#    endif
12155#  endif
12156#endif
12157
12158#ifdef __cplusplus
12159extern "C" void exit (int);
12160#endif
12161
12162void fnord() { int i=42;}
12163int main ()
12164{
12165  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12166  int status = $lt_dlunknown;
12167
12168  if (self)
12169    {
12170      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12171      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172      /* dlclose (self); */
12173    }
12174
12175    exit (status);
12176}
12177EOF
12178  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179  (eval $ac_link) 2>&5
12180  ac_status=$?
12181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12183    (./conftest; exit; ) >&5 2>/dev/null
12184    lt_status=$?
12185    case x$lt_status in
12186      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12187      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12188      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12189    esac
12190  else :
12191    # compilation failed
12192    lt_cv_dlopen_self=no
12193  fi
12194fi
12195rm -fr conftest*
12196
12197
12198fi
12199echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12200echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12201
12202    if test "x$lt_cv_dlopen_self" = xyes; then
12203      LDFLAGS="$LDFLAGS $link_static_flag"
12204      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12205echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12206if test "${lt_cv_dlopen_self_static+set}" = set; then
12207  echo $ECHO_N "(cached) $ECHO_C" >&6
12208else
12209  	  if test "$cross_compiling" = yes; then :
12210  lt_cv_dlopen_self_static=cross
12211else
12212  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12213  lt_status=$lt_dlunknown
12214  cat > conftest.$ac_ext <<EOF
12215#line 12215 "configure"
12216#include "confdefs.h"
12217
12218#if HAVE_DLFCN_H
12219#include <dlfcn.h>
12220#endif
12221
12222#include <stdio.h>
12223
12224#ifdef RTLD_GLOBAL
12225#  define LT_DLGLOBAL		RTLD_GLOBAL
12226#else
12227#  ifdef DL_GLOBAL
12228#    define LT_DLGLOBAL		DL_GLOBAL
12229#  else
12230#    define LT_DLGLOBAL		0
12231#  endif
12232#endif
12233
12234/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12235   find out it does not work in some platform. */
12236#ifndef LT_DLLAZY_OR_NOW
12237#  ifdef RTLD_LAZY
12238#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12239#  else
12240#    ifdef DL_LAZY
12241#      define LT_DLLAZY_OR_NOW		DL_LAZY
12242#    else
12243#      ifdef RTLD_NOW
12244#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12245#      else
12246#        ifdef DL_NOW
12247#          define LT_DLLAZY_OR_NOW	DL_NOW
12248#        else
12249#          define LT_DLLAZY_OR_NOW	0
12250#        endif
12251#      endif
12252#    endif
12253#  endif
12254#endif
12255
12256#ifdef __cplusplus
12257extern "C" void exit (int);
12258#endif
12259
12260void fnord() { int i=42;}
12261int main ()
12262{
12263  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12264  int status = $lt_dlunknown;
12265
12266  if (self)
12267    {
12268      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12269      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12270      /* dlclose (self); */
12271    }
12272
12273    exit (status);
12274}
12275EOF
12276  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277  (eval $ac_link) 2>&5
12278  ac_status=$?
12279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12281    (./conftest; exit; ) >&5 2>/dev/null
12282    lt_status=$?
12283    case x$lt_status in
12284      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12285      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12286      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12287    esac
12288  else :
12289    # compilation failed
12290    lt_cv_dlopen_self_static=no
12291  fi
12292fi
12293rm -fr conftest*
12294
12295
12296fi
12297echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12298echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12299    fi
12300
12301    CPPFLAGS="$save_CPPFLAGS"
12302    LDFLAGS="$save_LDFLAGS"
12303    LIBS="$save_LIBS"
12304    ;;
12305  esac
12306
12307  case $lt_cv_dlopen_self in
12308  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12309  *) enable_dlopen_self=unknown ;;
12310  esac
12311
12312  case $lt_cv_dlopen_self_static in
12313  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12314  *) enable_dlopen_self_static=unknown ;;
12315  esac
12316fi
12317
12318
12319# The else clause should only fire when bootstrapping the
12320# libtool distribution, otherwise you forgot to ship ltmain.sh
12321# with your package, and you will get complaints that there are
12322# no rules to generate ltmain.sh.
12323if test -f "$ltmain"; then
12324  # See if we are running on zsh, and set the options which allow our commands through
12325  # without removal of \ escapes.
12326  if test -n "${ZSH_VERSION+set}" ; then
12327    setopt NO_GLOB_SUBST
12328  fi
12329  # Now quote all the things that may contain metacharacters while being
12330  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12331  # variables and quote the copies for generation of the libtool script.
12332  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12333    SED SHELL STRIP \
12334    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12335    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12336    deplibs_check_method reload_flag reload_cmds need_locks \
12337    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12338    lt_cv_sys_global_symbol_to_c_name_address \
12339    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12340    old_postinstall_cmds old_postuninstall_cmds \
12341    compiler_CXX \
12342    CC_CXX \
12343    LD_CXX \
12344    lt_prog_compiler_wl_CXX \
12345    lt_prog_compiler_pic_CXX \
12346    lt_prog_compiler_static_CXX \
12347    lt_prog_compiler_no_builtin_flag_CXX \
12348    export_dynamic_flag_spec_CXX \
12349    thread_safe_flag_spec_CXX \
12350    whole_archive_flag_spec_CXX \
12351    enable_shared_with_static_runtimes_CXX \
12352    old_archive_cmds_CXX \
12353    old_archive_from_new_cmds_CXX \
12354    predep_objects_CXX \
12355    postdep_objects_CXX \
12356    predeps_CXX \
12357    postdeps_CXX \
12358    compiler_lib_search_path_CXX \
12359    archive_cmds_CXX \
12360    archive_expsym_cmds_CXX \
12361    postinstall_cmds_CXX \
12362    postuninstall_cmds_CXX \
12363    old_archive_from_expsyms_cmds_CXX \
12364    allow_undefined_flag_CXX \
12365    no_undefined_flag_CXX \
12366    export_symbols_cmds_CXX \
12367    hardcode_libdir_flag_spec_CXX \
12368    hardcode_libdir_flag_spec_ld_CXX \
12369    hardcode_libdir_separator_CXX \
12370    hardcode_automatic_CXX \
12371    module_cmds_CXX \
12372    module_expsym_cmds_CXX \
12373    lt_cv_prog_compiler_c_o_CXX \
12374    exclude_expsyms_CXX \
12375    include_expsyms_CXX; do
12376
12377    case $var in
12378    old_archive_cmds_CXX | \
12379    old_archive_from_new_cmds_CXX | \
12380    archive_cmds_CXX | \
12381    archive_expsym_cmds_CXX | \
12382    module_cmds_CXX | \
12383    module_expsym_cmds_CXX | \
12384    old_archive_from_expsyms_cmds_CXX | \
12385    export_symbols_cmds_CXX | \
12386    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12387    postinstall_cmds | postuninstall_cmds | \
12388    old_postinstall_cmds | old_postuninstall_cmds | \
12389    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12390      # Double-quote double-evaled strings.
12391      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12392      ;;
12393    *)
12394      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12395      ;;
12396    esac
12397  done
12398
12399  case $lt_echo in
12400  *'\$0 --fallback-echo"')
12401    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12402    ;;
12403  esac
12404
12405cfgfile="$ofile"
12406
12407  cat <<__EOF__ >> "$cfgfile"
12408# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12409
12410# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12411
12412# Shell to use when invoking shell scripts.
12413SHELL=$lt_SHELL
12414
12415# Whether or not to build shared libraries.
12416build_libtool_libs=$enable_shared
12417
12418# Whether or not to build static libraries.
12419build_old_libs=$enable_static
12420
12421# Whether or not to add -lc for building shared libraries.
12422build_libtool_need_lc=$archive_cmds_need_lc_CXX
12423
12424# Whether or not to disallow shared libs when runtime libs are static
12425allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12426
12427# Whether or not to optimize for fast installation.
12428fast_install=$enable_fast_install
12429
12430# The host system.
12431host_alias=$host_alias
12432host=$host
12433host_os=$host_os
12434
12435# The build system.
12436build_alias=$build_alias
12437build=$build
12438build_os=$build_os
12439
12440# An echo program that does not interpret backslashes.
12441echo=$lt_echo
12442
12443# The archiver.
12444AR=$lt_AR
12445AR_FLAGS=$lt_AR_FLAGS
12446
12447# A C compiler.
12448LTCC=$lt_LTCC
12449
12450# A language-specific compiler.
12451CC=$lt_compiler_CXX
12452
12453# Is the compiler the GNU C compiler?
12454with_gcc=$GCC_CXX
12455
12456# An ERE matcher.
12457EGREP=$lt_EGREP
12458
12459# The linker used to build libraries.
12460LD=$lt_LD_CXX
12461
12462# Whether we need hard or soft links.
12463LN_S=$lt_LN_S
12464
12465# A BSD-compatible nm program.
12466NM=$lt_NM
12467
12468# A symbol stripping program
12469STRIP=$lt_STRIP
12470
12471# Used to examine libraries when file_magic_cmd begins "file"
12472MAGIC_CMD=$MAGIC_CMD
12473
12474# Used on cygwin: DLL creation program.
12475DLLTOOL="$DLLTOOL"
12476
12477# Used on cygwin: object dumper.
12478OBJDUMP="$OBJDUMP"
12479
12480# Used on cygwin: assembler.
12481AS="$AS"
12482
12483# The name of the directory that contains temporary libtool files.
12484objdir=$objdir
12485
12486# How to create reloadable object files.
12487reload_flag=$lt_reload_flag
12488reload_cmds=$lt_reload_cmds
12489
12490# How to pass a linker flag through the compiler.
12491wl=$lt_lt_prog_compiler_wl_CXX
12492
12493# Object file suffix (normally "o").
12494objext="$ac_objext"
12495
12496# Old archive suffix (normally "a").
12497libext="$libext"
12498
12499# Shared library suffix (normally ".so").
12500shrext_cmds='$shrext_cmds'
12501
12502# Executable file suffix (normally "").
12503exeext="$exeext"
12504
12505# Additional compiler flags for building library objects.
12506pic_flag=$lt_lt_prog_compiler_pic_CXX
12507pic_mode=$pic_mode
12508
12509# What is the maximum length of a command?
12510max_cmd_len=$lt_cv_sys_max_cmd_len
12511
12512# Does compiler simultaneously support -c and -o options?
12513compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12514
12515# Must we lock files when doing compilation?
12516need_locks=$lt_need_locks
12517
12518# Do we need the lib prefix for modules?
12519need_lib_prefix=$need_lib_prefix
12520
12521# Do we need a version for libraries?
12522need_version=$need_version
12523
12524# Whether dlopen is supported.
12525dlopen_support=$enable_dlopen
12526
12527# Whether dlopen of programs is supported.
12528dlopen_self=$enable_dlopen_self
12529
12530# Whether dlopen of statically linked programs is supported.
12531dlopen_self_static=$enable_dlopen_self_static
12532
12533# Compiler flag to prevent dynamic linking.
12534link_static_flag=$lt_lt_prog_compiler_static_CXX
12535
12536# Compiler flag to turn off builtin functions.
12537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12538
12539# Compiler flag to allow reflexive dlopens.
12540export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12541
12542# Compiler flag to generate shared objects directly from archives.
12543whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12544
12545# Compiler flag to generate thread-safe objects.
12546thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12547
12548# Library versioning type.
12549version_type=$version_type
12550
12551# Format of library name prefix.
12552libname_spec=$lt_libname_spec
12553
12554# List of archive names.  First name is the real one, the rest are links.
12555# The last name is the one that the linker finds with -lNAME.
12556library_names_spec=$lt_library_names_spec
12557
12558# The coded name of the library, if different from the real name.
12559soname_spec=$lt_soname_spec
12560
12561# Commands used to build and install an old-style archive.
12562RANLIB=$lt_RANLIB
12563old_archive_cmds=$lt_old_archive_cmds_CXX
12564old_postinstall_cmds=$lt_old_postinstall_cmds
12565old_postuninstall_cmds=$lt_old_postuninstall_cmds
12566
12567# Create an old-style archive from a shared archive.
12568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12569
12570# Create a temporary old-style archive to link instead of a shared archive.
12571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12572
12573# Commands used to build and install a shared archive.
12574archive_cmds=$lt_archive_cmds_CXX
12575archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12576postinstall_cmds=$lt_postinstall_cmds
12577postuninstall_cmds=$lt_postuninstall_cmds
12578
12579# Commands used to build a loadable module (assumed same as above if empty)
12580module_cmds=$lt_module_cmds_CXX
12581module_expsym_cmds=$lt_module_expsym_cmds_CXX
12582
12583# Commands to strip libraries.
12584old_striplib=$lt_old_striplib
12585striplib=$lt_striplib
12586
12587# Dependencies to place before the objects being linked to create a
12588# shared library.
12589predep_objects=$lt_predep_objects_CXX
12590
12591# Dependencies to place after the objects being linked to create a
12592# shared library.
12593postdep_objects=$lt_postdep_objects_CXX
12594
12595# Dependencies to place before the objects being linked to create a
12596# shared library.
12597predeps=$lt_predeps_CXX
12598
12599# Dependencies to place after the objects being linked to create a
12600# shared library.
12601postdeps=$lt_postdeps_CXX
12602
12603# The library search path used internally by the compiler when linking
12604# a shared library.
12605compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12606
12607# Method to check whether dependent libraries are shared objects.
12608deplibs_check_method=$lt_deplibs_check_method
12609
12610# Command to use when deplibs_check_method == file_magic.
12611file_magic_cmd=$lt_file_magic_cmd
12612
12613# Flag that allows shared libraries with undefined symbols to be built.
12614allow_undefined_flag=$lt_allow_undefined_flag_CXX
12615
12616# Flag that forces no undefined symbols.
12617no_undefined_flag=$lt_no_undefined_flag_CXX
12618
12619# Commands used to finish a libtool library installation in a directory.
12620finish_cmds=$lt_finish_cmds
12621
12622# Same as above, but a single script fragment to be evaled but not shown.
12623finish_eval=$lt_finish_eval
12624
12625# Take the output of nm and produce a listing of raw symbols and C names.
12626global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12627
12628# Transform the output of nm in a proper C declaration
12629global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12630
12631# Transform the output of nm in a C name address pair
12632global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12633
12634# This is the shared library runtime path variable.
12635runpath_var=$runpath_var
12636
12637# This is the shared library path variable.
12638shlibpath_var=$shlibpath_var
12639
12640# Is shlibpath searched before the hard-coded library search path?
12641shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12642
12643# How to hardcode a shared library path into an executable.
12644hardcode_action=$hardcode_action_CXX
12645
12646# Whether we should hardcode library paths into libraries.
12647hardcode_into_libs=$hardcode_into_libs
12648
12649# Flag to hardcode \$libdir into a binary during linking.
12650# This must work even if \$libdir does not exist.
12651hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12652
12653# If ld is used when linking, flag to hardcode \$libdir into
12654# a binary during linking. This must work even if \$libdir does
12655# not exist.
12656hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12657
12658# Whether we need a single -rpath flag with a separated argument.
12659hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12660
12661# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12662# resulting binary.
12663hardcode_direct=$hardcode_direct_CXX
12664
12665# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12666# resulting binary.
12667hardcode_minus_L=$hardcode_minus_L_CXX
12668
12669# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12670# the resulting binary.
12671hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12672
12673# Set to yes if building a shared library automatically hardcodes DIR into the library
12674# and all subsequent libraries and executables linked against it.
12675hardcode_automatic=$hardcode_automatic_CXX
12676
12677# Variables whose values should be saved in libtool wrapper scripts and
12678# restored at relink time.
12679variables_saved_for_relink="$variables_saved_for_relink"
12680
12681# Whether libtool must link a program against all its dependency libraries.
12682link_all_deplibs=$link_all_deplibs_CXX
12683
12684# Compile-time system search path for libraries
12685sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12686
12687# Run-time system search path for libraries
12688sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12689
12690# Fix the shell variable \$srcfile for the compiler.
12691fix_srcfile_path="$fix_srcfile_path_CXX"
12692
12693# Set to yes if exported symbols are required.
12694always_export_symbols=$always_export_symbols_CXX
12695
12696# The commands to list exported symbols.
12697export_symbols_cmds=$lt_export_symbols_cmds_CXX
12698
12699# The commands to extract the exported symbol list from a shared archive.
12700extract_expsyms_cmds=$lt_extract_expsyms_cmds
12701
12702# Symbols that should not be listed in the preloaded symbols.
12703exclude_expsyms=$lt_exclude_expsyms_CXX
12704
12705# Symbols that must always be exported.
12706include_expsyms=$lt_include_expsyms_CXX
12707
12708# ### END LIBTOOL TAG CONFIG: $tagname
12709
12710__EOF__
12711
12712
12713else
12714  # If there is no Makefile yet, we rely on a make rule to execute
12715  # `config.status --recheck' to rerun these tests and create the
12716  # libtool script then.
12717  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12718  if test -f "$ltmain_in"; then
12719    test -f Makefile && make "$ltmain"
12720  fi
12721fi
12722
12723
12724ac_ext=c
12725ac_cpp='$CPP $CPPFLAGS'
12726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12728ac_compiler_gnu=$ac_cv_c_compiler_gnu
12729
12730CC=$lt_save_CC
12731LDCXX=$LD
12732LD=$lt_save_LD
12733GCC=$lt_save_GCC
12734with_gnu_ldcxx=$with_gnu_ld
12735with_gnu_ld=$lt_save_with_gnu_ld
12736lt_cv_path_LDCXX=$lt_cv_path_LD
12737lt_cv_path_LD=$lt_save_path_LD
12738lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12739lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12740
12741	else
12742	  tagname=""
12743	fi
12744	;;
12745
12746      F77)
12747	if test -n "$F77" && test "X$F77" != "Xno"; then
12748
12749ac_ext=f
12750ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12751ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12753
12754
12755archive_cmds_need_lc_F77=no
12756allow_undefined_flag_F77=
12757always_export_symbols_F77=no
12758archive_expsym_cmds_F77=
12759export_dynamic_flag_spec_F77=
12760hardcode_direct_F77=no
12761hardcode_libdir_flag_spec_F77=
12762hardcode_libdir_flag_spec_ld_F77=
12763hardcode_libdir_separator_F77=
12764hardcode_minus_L_F77=no
12765hardcode_automatic_F77=no
12766module_cmds_F77=
12767module_expsym_cmds_F77=
12768link_all_deplibs_F77=unknown
12769old_archive_cmds_F77=$old_archive_cmds
12770no_undefined_flag_F77=
12771whole_archive_flag_spec_F77=
12772enable_shared_with_static_runtimes_F77=no
12773
12774# Source file extension for f77 test sources.
12775ac_ext=f
12776
12777# Object file extension for compiled f77 test sources.
12778objext=o
12779objext_F77=$objext
12780
12781# Code to be used in simple compile tests
12782lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12783
12784# Code to be used in simple link tests
12785lt_simple_link_test_code="      program t\n      end\n"
12786
12787# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12788
12789# If no C compiler was specified, use CC.
12790LTCC=${LTCC-"$CC"}
12791
12792# Allow CC to be a program name with arguments.
12793compiler=$CC
12794
12795
12796# save warnings/boilerplate of simple test code
12797ac_outfile=conftest.$ac_objext
12798printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12799eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12800_lt_compiler_boilerplate=`cat conftest.err`
12801$rm conftest*
12802
12803ac_outfile=conftest.$ac_objext
12804printf "$lt_simple_link_test_code" >conftest.$ac_ext
12805eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12806_lt_linker_boilerplate=`cat conftest.err`
12807$rm conftest*
12808
12809
12810# Allow CC to be a program name with arguments.
12811lt_save_CC="$CC"
12812CC=${F77-"f77"}
12813compiler=$CC
12814compiler_F77=$CC
12815for cc_temp in $compiler""; do
12816  case $cc_temp in
12817    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12818    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12819    \-*) ;;
12820    *) break;;
12821  esac
12822done
12823cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12824
12825
12826echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12827echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12828echo "$as_me:$LINENO: result: $can_build_shared" >&5
12829echo "${ECHO_T}$can_build_shared" >&6
12830
12831echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12832echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12833test "$can_build_shared" = "no" && enable_shared=no
12834
12835# On AIX, shared libraries and static libraries use the same namespace, and
12836# are all built from PIC.
12837case $host_os in
12838aix3*)
12839  test "$enable_shared" = yes && enable_static=no
12840  if test -n "$RANLIB"; then
12841    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12842    postinstall_cmds='$RANLIB $lib'
12843  fi
12844  ;;
12845aix4* | aix5*)
12846  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12847    test "$enable_shared" = yes && enable_static=no
12848  fi
12849  ;;
12850esac
12851echo "$as_me:$LINENO: result: $enable_shared" >&5
12852echo "${ECHO_T}$enable_shared" >&6
12853
12854echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12855echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12856# Make sure either enable_shared or enable_static is yes.
12857test "$enable_shared" = yes || enable_static=yes
12858echo "$as_me:$LINENO: result: $enable_static" >&5
12859echo "${ECHO_T}$enable_static" >&6
12860
12861test "$ld_shlibs_F77" = no && can_build_shared=no
12862
12863GCC_F77="$G77"
12864LD_F77="$LD"
12865
12866lt_prog_compiler_wl_F77=
12867lt_prog_compiler_pic_F77=
12868lt_prog_compiler_static_F77=
12869
12870echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12871echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12872
12873  if test "$GCC" = yes; then
12874    lt_prog_compiler_wl_F77='-Wl,'
12875    lt_prog_compiler_static_F77='-static'
12876
12877    case $host_os in
12878      aix*)
12879      # All AIX code is PIC.
12880      if test "$host_cpu" = ia64; then
12881	# AIX 5 now supports IA64 processor
12882	lt_prog_compiler_static_F77='-Bstatic'
12883      fi
12884      ;;
12885
12886    amigaos*)
12887      # FIXME: we need at least 68020 code to build shared libraries, but
12888      # adding the `-m68020' flag to GCC prevents building anything better,
12889      # like `-m68040'.
12890      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12891      ;;
12892
12893    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12894      # PIC is the default for these OSes.
12895      ;;
12896
12897    mingw* | pw32* | os2*)
12898      # This hack is so that the source file can tell whether it is being
12899      # built for inclusion in a dll (and should export symbols for example).
12900      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12901      ;;
12902
12903    darwin* | rhapsody*)
12904      # PIC is the default on this platform
12905      # Common symbols not allowed in MH_DYLIB files
12906      lt_prog_compiler_pic_F77='-fno-common'
12907      ;;
12908
12909    msdosdjgpp*)
12910      # Just because we use GCC doesn't mean we suddenly get shared libraries
12911      # on systems that don't support them.
12912      lt_prog_compiler_can_build_shared_F77=no
12913      enable_shared=no
12914      ;;
12915
12916    sysv4*MP*)
12917      if test -d /usr/nec; then
12918	lt_prog_compiler_pic_F77=-Kconform_pic
12919      fi
12920      ;;
12921
12922    hpux*)
12923      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924      # not for PA HP-UX.
12925      case $host_cpu in
12926      hppa*64*|ia64*)
12927	# +Z the default
12928	;;
12929      *)
12930	lt_prog_compiler_pic_F77='-fPIC'
12931	;;
12932      esac
12933      ;;
12934
12935    *)
12936      lt_prog_compiler_pic_F77='-fPIC'
12937      ;;
12938    esac
12939  else
12940    # PORTME Check for flag to pass linker flags through the system compiler.
12941    case $host_os in
12942    aix*)
12943      lt_prog_compiler_wl_F77='-Wl,'
12944      if test "$host_cpu" = ia64; then
12945	# AIX 5 now supports IA64 processor
12946	lt_prog_compiler_static_F77='-Bstatic'
12947      else
12948	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12949      fi
12950      ;;
12951      darwin*)
12952        # PIC is the default on this platform
12953        # Common symbols not allowed in MH_DYLIB files
12954       case $cc_basename in
12955         xlc*)
12956         lt_prog_compiler_pic_F77='-qnocommon'
12957         lt_prog_compiler_wl_F77='-Wl,'
12958         ;;
12959       esac
12960       ;;
12961
12962    mingw* | pw32* | os2*)
12963      # This hack is so that the source file can tell whether it is being
12964      # built for inclusion in a dll (and should export symbols for example).
12965      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12966      ;;
12967
12968    hpux9* | hpux10* | hpux11*)
12969      lt_prog_compiler_wl_F77='-Wl,'
12970      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971      # not for PA HP-UX.
12972      case $host_cpu in
12973      hppa*64*|ia64*)
12974	# +Z the default
12975	;;
12976      *)
12977	lt_prog_compiler_pic_F77='+Z'
12978	;;
12979      esac
12980      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12982      ;;
12983
12984    irix5* | irix6* | nonstopux*)
12985      lt_prog_compiler_wl_F77='-Wl,'
12986      # PIC (with -KPIC) is the default.
12987      lt_prog_compiler_static_F77='-non_shared'
12988      ;;
12989
12990    newsos6)
12991      lt_prog_compiler_pic_F77='-KPIC'
12992      lt_prog_compiler_static_F77='-Bstatic'
12993      ;;
12994
12995    linux*)
12996      case $cc_basename in
12997      icc* | ecc*)
12998	lt_prog_compiler_wl_F77='-Wl,'
12999	lt_prog_compiler_pic_F77='-KPIC'
13000	lt_prog_compiler_static_F77='-static'
13001        ;;
13002      pgcc* | pgf77* | pgf90* | pgf95*)
13003        # Portland Group compilers (*not* the Pentium gcc compiler,
13004	# which looks to be a dead project)
13005	lt_prog_compiler_wl_F77='-Wl,'
13006	lt_prog_compiler_pic_F77='-fpic'
13007	lt_prog_compiler_static_F77='-Bstatic'
13008        ;;
13009      ccc*)
13010        lt_prog_compiler_wl_F77='-Wl,'
13011        # All Alpha code is PIC.
13012        lt_prog_compiler_static_F77='-non_shared'
13013        ;;
13014      esac
13015      ;;
13016
13017    osf3* | osf4* | osf5*)
13018      lt_prog_compiler_wl_F77='-Wl,'
13019      # All OSF/1 code is PIC.
13020      lt_prog_compiler_static_F77='-non_shared'
13021      ;;
13022
13023    sco3.2v5*)
13024      lt_prog_compiler_pic_F77='-Kpic'
13025      lt_prog_compiler_static_F77='-dn'
13026      ;;
13027
13028    solaris*)
13029      lt_prog_compiler_pic_F77='-KPIC'
13030      lt_prog_compiler_static_F77='-Bstatic'
13031      case $cc_basename in
13032      f77* | f90* | f95*)
13033	lt_prog_compiler_wl_F77='-Qoption ld ';;
13034      *)
13035	lt_prog_compiler_wl_F77='-Wl,';;
13036      esac
13037      ;;
13038
13039    sunos4*)
13040      lt_prog_compiler_wl_F77='-Qoption ld '
13041      lt_prog_compiler_pic_F77='-PIC'
13042      lt_prog_compiler_static_F77='-Bstatic'
13043      ;;
13044
13045    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13046      lt_prog_compiler_wl_F77='-Wl,'
13047      lt_prog_compiler_pic_F77='-KPIC'
13048      lt_prog_compiler_static_F77='-Bstatic'
13049      ;;
13050
13051    sysv4*MP*)
13052      if test -d /usr/nec ;then
13053	lt_prog_compiler_pic_F77='-Kconform_pic'
13054	lt_prog_compiler_static_F77='-Bstatic'
13055      fi
13056      ;;
13057
13058    unicos*)
13059      lt_prog_compiler_wl_F77='-Wl,'
13060      lt_prog_compiler_can_build_shared_F77=no
13061      ;;
13062
13063    uts4*)
13064      lt_prog_compiler_pic_F77='-pic'
13065      lt_prog_compiler_static_F77='-Bstatic'
13066      ;;
13067
13068    *)
13069      lt_prog_compiler_can_build_shared_F77=no
13070      ;;
13071    esac
13072  fi
13073
13074echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13075echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13076
13077#
13078# Check to make sure the PIC flag actually works.
13079#
13080if test -n "$lt_prog_compiler_pic_F77"; then
13081
13082echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13083echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13084if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13085  echo $ECHO_N "(cached) $ECHO_C" >&6
13086else
13087  lt_prog_compiler_pic_works_F77=no
13088  ac_outfile=conftest.$ac_objext
13089   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13090   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13091   # Insert the option either (1) after the last *FLAGS variable, or
13092   # (2) before a word containing "conftest.", or (3) at the end.
13093   # Note that $ac_compile itself does not contain backslashes and begins
13094   # with a dollar sign (not a hyphen), so the echo should work correctly.
13095   # The option is referenced via a variable to avoid confusing sed.
13096   lt_compile=`echo "$ac_compile" | $SED \
13097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13099   -e 's:$: $lt_compiler_flag:'`
13100   (eval echo "\"\$as_me:13100: $lt_compile\"" >&5)
13101   (eval "$lt_compile" 2>conftest.err)
13102   ac_status=$?
13103   cat conftest.err >&5
13104   echo "$as_me:13104: \$? = $ac_status" >&5
13105   if (exit $ac_status) && test -s "$ac_outfile"; then
13106     # The compiler can only warn and ignore the option if not recognized
13107     # So say no if there are warnings other than the usual output.
13108     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13109     $SED '/^$/d' conftest.err >conftest.er2
13110     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13111       lt_prog_compiler_pic_works_F77=yes
13112     fi
13113   fi
13114   $rm conftest*
13115
13116fi
13117echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13118echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13119
13120if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13121    case $lt_prog_compiler_pic_F77 in
13122     "" | " "*) ;;
13123     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13124     esac
13125else
13126    lt_prog_compiler_pic_F77=
13127     lt_prog_compiler_can_build_shared_F77=no
13128fi
13129
13130fi
13131case $host_os in
13132  # For platforms which do not support PIC, -DPIC is meaningless:
13133  *djgpp*)
13134    lt_prog_compiler_pic_F77=
13135    ;;
13136  *)
13137    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13138    ;;
13139esac
13140
13141echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13142echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13143if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13144  echo $ECHO_N "(cached) $ECHO_C" >&6
13145else
13146  lt_cv_prog_compiler_c_o_F77=no
13147   $rm -r conftest 2>/dev/null
13148   mkdir conftest
13149   cd conftest
13150   mkdir out
13151   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13152
13153   lt_compiler_flag="-o out/conftest2.$ac_objext"
13154   # Insert the option either (1) after the last *FLAGS variable, or
13155   # (2) before a word containing "conftest.", or (3) at the end.
13156   # Note that $ac_compile itself does not contain backslashes and begins
13157   # with a dollar sign (not a hyphen), so the echo should work correctly.
13158   lt_compile=`echo "$ac_compile" | $SED \
13159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13161   -e 's:$: $lt_compiler_flag:'`
13162   (eval echo "\"\$as_me:13162: $lt_compile\"" >&5)
13163   (eval "$lt_compile" 2>out/conftest.err)
13164   ac_status=$?
13165   cat out/conftest.err >&5
13166   echo "$as_me:13166: \$? = $ac_status" >&5
13167   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13168   then
13169     # The compiler can only warn and ignore the option if not recognized
13170     # So say no if there are warnings
13171     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13172     $SED '/^$/d' out/conftest.err >out/conftest.er2
13173     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13174       lt_cv_prog_compiler_c_o_F77=yes
13175     fi
13176   fi
13177   chmod u+w . 2>&5
13178   $rm conftest*
13179   # SGI C++ compiler will create directory out/ii_files/ for
13180   # template instantiation
13181   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13182   $rm out/* && rmdir out
13183   cd ..
13184   rmdir conftest
13185   $rm conftest*
13186
13187fi
13188echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13189echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13190
13191
13192hard_links="nottested"
13193if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13194  # do not overwrite the value of need_locks provided by the user
13195  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13196echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13197  hard_links=yes
13198  $rm conftest*
13199  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13200  touch conftest.a
13201  ln conftest.a conftest.b 2>&5 || hard_links=no
13202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13203  echo "$as_me:$LINENO: result: $hard_links" >&5
13204echo "${ECHO_T}$hard_links" >&6
13205  if test "$hard_links" = no; then
13206    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13207echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13208    need_locks=warn
13209  fi
13210else
13211  need_locks=no
13212fi
13213
13214echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13215echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13216
13217  runpath_var=
13218  allow_undefined_flag_F77=
13219  enable_shared_with_static_runtimes_F77=no
13220  archive_cmds_F77=
13221  archive_expsym_cmds_F77=
13222  old_archive_From_new_cmds_F77=
13223  old_archive_from_expsyms_cmds_F77=
13224  export_dynamic_flag_spec_F77=
13225  whole_archive_flag_spec_F77=
13226  thread_safe_flag_spec_F77=
13227  hardcode_libdir_flag_spec_F77=
13228  hardcode_libdir_flag_spec_ld_F77=
13229  hardcode_libdir_separator_F77=
13230  hardcode_direct_F77=no
13231  hardcode_minus_L_F77=no
13232  hardcode_shlibpath_var_F77=unsupported
13233  link_all_deplibs_F77=unknown
13234  hardcode_automatic_F77=no
13235  module_cmds_F77=
13236  module_expsym_cmds_F77=
13237  always_export_symbols_F77=no
13238  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13239  # include_expsyms should be a list of space-separated symbols to be *always*
13240  # included in the symbol list
13241  include_expsyms_F77=
13242  # exclude_expsyms can be an extended regexp of symbols to exclude
13243  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13244  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13245  # as well as any symbol that contains `d'.
13246  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13247  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13248  # platforms (ab)use it in PIC code, but their linkers get confused if
13249  # the symbol is explicitly referenced.  Since portable code cannot
13250  # rely on this symbol name, it's probably fine to never include it in
13251  # preloaded symbol tables.
13252  extract_expsyms_cmds=
13253  # Just being paranoid about ensuring that cc_basename is set.
13254  for cc_temp in $compiler""; do
13255  case $cc_temp in
13256    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13257    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13258    \-*) ;;
13259    *) break;;
13260  esac
13261done
13262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13263
13264  case $host_os in
13265  cygwin* | mingw* | pw32*)
13266    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13267    # When not using gcc, we currently assume that we are using
13268    # Microsoft Visual C++.
13269    if test "$GCC" != yes; then
13270      with_gnu_ld=no
13271    fi
13272    ;;
13273  openbsd*)
13274    with_gnu_ld=no
13275    ;;
13276  esac
13277
13278  ld_shlibs_F77=yes
13279  if test "$with_gnu_ld" = yes; then
13280    # If archive_cmds runs LD, not CC, wlarc should be empty
13281    wlarc='${wl}'
13282
13283    # Set some defaults for GNU ld with shared library support. These
13284    # are reset later if shared libraries are not supported. Putting them
13285    # here allows them to be overridden if necessary.
13286    runpath_var=LD_RUN_PATH
13287    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13288    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13289    # ancient GNU ld didn't support --whole-archive et. al.
13290    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13291	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13292      else
13293  	whole_archive_flag_spec_F77=
13294    fi
13295    supports_anon_versioning=no
13296    case `$LD -v 2>/dev/null` in
13297      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13298      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13299      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13300      *\ 2.11.*) ;; # other 2.11 versions
13301      *) supports_anon_versioning=yes ;;
13302    esac
13303
13304    # See if GNU ld supports shared libraries.
13305    case $host_os in
13306    aix3* | aix4* | aix5*)
13307      # On AIX/PPC, the GNU linker is very broken
13308      if test "$host_cpu" != ia64; then
13309	ld_shlibs_F77=no
13310	cat <<EOF 1>&2
13311
13312*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13313*** to be unable to reliably create shared libraries on AIX.
13314*** Therefore, libtool is disabling shared libraries support.  If you
13315*** really care for shared libraries, you may want to modify your PATH
13316*** so that a non-GNU linker is found, and then restart.
13317
13318EOF
13319      fi
13320      ;;
13321
13322    amigaos*)
13323      archive_cmds_F77='$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)'
13324      hardcode_libdir_flag_spec_F77='-L$libdir'
13325      hardcode_minus_L_F77=yes
13326
13327      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13328      # that the semantics of dynamic libraries on AmigaOS, at least up
13329      # to version 4, is to share data among multiple programs linked
13330      # with the same dynamic library.  Since this doesn't match the
13331      # behavior of shared libraries on other platforms, we can't use
13332      # them.
13333      ld_shlibs_F77=no
13334      ;;
13335
13336    beos*)
13337      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13338	allow_undefined_flag_F77=unsupported
13339	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13340	# support --undefined.  This deserves some investigation.  FIXME
13341	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342      else
13343	ld_shlibs_F77=no
13344      fi
13345      ;;
13346
13347    cygwin* | mingw* | pw32*)
13348      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13349      # as there is no search path for DLLs.
13350      hardcode_libdir_flag_spec_F77='-L$libdir'
13351      allow_undefined_flag_F77=unsupported
13352      always_export_symbols_F77=no
13353      enable_shared_with_static_runtimes_F77=yes
13354      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13355
13356      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13357        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13358	# If the export-symbols file already is a .def file (1st line
13359	# is EXPORTS), use it as is; otherwise, prepend...
13360	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13361	  cp $export_symbols $output_objdir/$soname.def;
13362	else
13363	  echo EXPORTS > $output_objdir/$soname.def;
13364	  cat $export_symbols >> $output_objdir/$soname.def;
13365	fi~
13366	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13367      else
13368	ld_shlibs_F77=no
13369      fi
13370      ;;
13371
13372    linux*)
13373      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13374	tmp_addflag=
13375	case $cc_basename,$host_cpu in
13376	pgcc*)				# Portland Group C compiler
13377	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13378	  tmp_addflag=' $pic_flag'
13379	  ;;
13380	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13381	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13382	  tmp_addflag=' $pic_flag -Mnomain' ;;
13383	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13384	  tmp_addflag=' -i_dynamic' ;;
13385	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13386	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13387	ifc* | ifort*)			# Intel Fortran compiler
13388	  tmp_addflag=' -nofor_main' ;;
13389	esac
13390	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391
13392	if test $supports_anon_versioning = yes; then
13393	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13394  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13395  $echo "local: *; };" >> $output_objdir/$libname.ver~
13396	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13397	fi
13398      else
13399	ld_shlibs_F77=no
13400      fi
13401      ;;
13402
13403    netbsd*)
13404      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13405	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13406	wlarc=
13407      else
13408	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13409	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13410      fi
13411      ;;
13412
13413    solaris* | sysv5*)
13414      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13415	ld_shlibs_F77=no
13416	cat <<EOF 1>&2
13417
13418*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13419*** create shared libraries on Solaris systems.  Therefore, libtool
13420*** is disabling shared libraries support.  We urge you to upgrade GNU
13421*** binutils to release 2.9.1 or newer.  Another option is to modify
13422*** your PATH or compiler configuration so that the native linker is
13423*** used, and then restart.
13424
13425EOF
13426      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13427	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13428	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13429      else
13430	ld_shlibs_F77=no
13431      fi
13432      ;;
13433
13434    sunos4*)
13435      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13436      wlarc=
13437      hardcode_direct_F77=yes
13438      hardcode_shlibpath_var_F77=no
13439      ;;
13440
13441    *)
13442      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13443	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13445      else
13446	ld_shlibs_F77=no
13447      fi
13448      ;;
13449    esac
13450
13451    if test "$ld_shlibs_F77" = no; then
13452      runpath_var=
13453      hardcode_libdir_flag_spec_F77=
13454      export_dynamic_flag_spec_F77=
13455      whole_archive_flag_spec_F77=
13456    fi
13457  else
13458    # PORTME fill in a description of your system's linker (not GNU ld)
13459    case $host_os in
13460    aix3*)
13461      allow_undefined_flag_F77=unsupported
13462      always_export_symbols_F77=yes
13463      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13464      # Note: this linker hardcodes the directories in LIBPATH if there
13465      # are no directories specified by -L.
13466      hardcode_minus_L_F77=yes
13467      if test "$GCC" = yes && test -z "$link_static_flag"; then
13468	# Neither direct hardcoding nor static linking is supported with a
13469	# broken collect2.
13470	hardcode_direct_F77=unsupported
13471      fi
13472      ;;
13473
13474    aix4* | aix5*)
13475      if test "$host_cpu" = ia64; then
13476	# On IA64, the linker does run time linking by default, so we don't
13477	# have to do anything special.
13478	aix_use_runtimelinking=no
13479	exp_sym_flag='-Bexport'
13480	no_entry_flag=""
13481      else
13482	# If we're using GNU nm, then we don't want the "-C" option.
13483	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13484	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13485	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13486	else
13487	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13488	fi
13489	aix_use_runtimelinking=no
13490
13491	# Test if we are trying to use run time linking or normal
13492	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13493	# need to do runtime linking.
13494	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13495	  for ld_flag in $LDFLAGS; do
13496  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13497  	    aix_use_runtimelinking=yes
13498  	    break
13499  	  fi
13500	  done
13501	esac
13502
13503	exp_sym_flag='-bexport'
13504	no_entry_flag='-bnoentry'
13505      fi
13506
13507      # When large executables or shared objects are built, AIX ld can
13508      # have problems creating the table of contents.  If linking a library
13509      # or program results in "error TOC overflow" add -mminimal-toc to
13510      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13511      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13512
13513      archive_cmds_F77=''
13514      hardcode_direct_F77=yes
13515      hardcode_libdir_separator_F77=':'
13516      link_all_deplibs_F77=yes
13517
13518      if test "$GCC" = yes; then
13519	case $host_os in aix4.[012]|aix4.[012].*)
13520	# We only want to do this on AIX 4.2 and lower, the check
13521	# below for broken collect2 doesn't work under 4.3+
13522	  collect2name=`${CC} -print-prog-name=collect2`
13523	  if test -f "$collect2name" && \
13524  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13525	  then
13526  	  # We have reworked collect2
13527  	  hardcode_direct_F77=yes
13528	  else
13529  	  # We have old collect2
13530  	  hardcode_direct_F77=unsupported
13531  	  # It fails to find uninstalled libraries when the uninstalled
13532  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13533  	  # to unsupported forces relinking
13534  	  hardcode_minus_L_F77=yes
13535  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13536  	  hardcode_libdir_separator_F77=
13537	  fi
13538	esac
13539	shared_flag='-shared'
13540	if test "$aix_use_runtimelinking" = yes; then
13541	  shared_flag="$shared_flag "'${wl}-G'
13542	fi
13543      else
13544	# not using gcc
13545	if test "$host_cpu" = ia64; then
13546  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13547  	# chokes on -Wl,-G. The following line is correct:
13548	  shared_flag='-G'
13549	else
13550  	if test "$aix_use_runtimelinking" = yes; then
13551	    shared_flag='${wl}-G'
13552	  else
13553	    shared_flag='${wl}-bM:SRE'
13554  	fi
13555	fi
13556      fi
13557
13558      # It seems that -bexpall does not export symbols beginning with
13559      # underscore (_), so it is better to generate a list of symbols to export.
13560      always_export_symbols_F77=yes
13561      if test "$aix_use_runtimelinking" = yes; then
13562	# Warning - without using the other runtime loading flags (-brtl),
13563	# -berok will link without error, but may produce a broken library.
13564	allow_undefined_flag_F77='-berok'
13565       # Determine the default libpath from the value encoded in an empty executable.
13566       cat >conftest.$ac_ext <<_ACEOF
13567      program main
13568
13569      end
13570_ACEOF
13571rm -f conftest.$ac_objext conftest$ac_exeext
13572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13573  (eval $ac_link) 2>conftest.er1
13574  ac_status=$?
13575  grep -v '^ *+' conftest.er1 >conftest.err
13576  rm -f conftest.er1
13577  cat conftest.err >&5
13578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579  (exit $ac_status); } &&
13580	 { ac_try='test -z "$ac_f77_werror_flag"
13581			 || test ! -s conftest.err'
13582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583  (eval $ac_try) 2>&5
13584  ac_status=$?
13585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586  (exit $ac_status); }; } &&
13587	 { ac_try='test -s conftest$ac_exeext'
13588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589  (eval $ac_try) 2>&5
13590  ac_status=$?
13591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592  (exit $ac_status); }; }; then
13593
13594aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13595}'`
13596# Check for a 64-bit object if we didn't find anything.
13597if 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; }
13598}'`; fi
13599else
13600  echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
13602
13603fi
13604rm -f conftest.err conftest.$ac_objext \
13605      conftest$ac_exeext conftest.$ac_ext
13606if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13607
13608       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13609	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13610       else
13611	if test "$host_cpu" = ia64; then
13612	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13613	  allow_undefined_flag_F77="-z nodefs"
13614	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13615	else
13616	 # Determine the default libpath from the value encoded in an empty executable.
13617	 cat >conftest.$ac_ext <<_ACEOF
13618      program main
13619
13620      end
13621_ACEOF
13622rm -f conftest.$ac_objext conftest$ac_exeext
13623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13624  (eval $ac_link) 2>conftest.er1
13625  ac_status=$?
13626  grep -v '^ *+' conftest.er1 >conftest.err
13627  rm -f conftest.er1
13628  cat conftest.err >&5
13629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630  (exit $ac_status); } &&
13631	 { ac_try='test -z "$ac_f77_werror_flag"
13632			 || test ! -s conftest.err'
13633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634  (eval $ac_try) 2>&5
13635  ac_status=$?
13636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637  (exit $ac_status); }; } &&
13638	 { ac_try='test -s conftest$ac_exeext'
13639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640  (eval $ac_try) 2>&5
13641  ac_status=$?
13642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643  (exit $ac_status); }; }; then
13644
13645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13646}'`
13647# Check for a 64-bit object if we didn't find anything.
13648if 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; }
13649}'`; fi
13650else
13651  echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654fi
13655rm -f conftest.err conftest.$ac_objext \
13656      conftest$ac_exeext conftest.$ac_ext
13657if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13658
13659	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13660	  # Warning - without using the other run time loading flags,
13661	  # -berok will link without error, but may produce a broken library.
13662	  no_undefined_flag_F77=' ${wl}-bernotok'
13663	  allow_undefined_flag_F77=' ${wl}-berok'
13664	  # -bexpall does not export symbols beginning with underscore (_)
13665	  always_export_symbols_F77=yes
13666	  # Exported symbols can be pulled into shared objects from archives
13667	  whole_archive_flag_spec_F77=' '
13668	  archive_cmds_need_lc_F77=yes
13669	  # This is similar to how AIX traditionally builds its shared libraries.
13670	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13671	fi
13672      fi
13673      ;;
13674
13675    amigaos*)
13676      archive_cmds_F77='$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)'
13677      hardcode_libdir_flag_spec_F77='-L$libdir'
13678      hardcode_minus_L_F77=yes
13679      # see comment about different semantics on the GNU ld section
13680      ld_shlibs_F77=no
13681      ;;
13682
13683    bsdi[45]*)
13684      export_dynamic_flag_spec_F77=-rdynamic
13685      ;;
13686
13687    cygwin* | mingw* | pw32*)
13688      # When not using gcc, we currently assume that we are using
13689      # Microsoft Visual C++.
13690      # hardcode_libdir_flag_spec is actually meaningless, as there is
13691      # no search path for DLLs.
13692      hardcode_libdir_flag_spec_F77=' '
13693      allow_undefined_flag_F77=unsupported
13694      # Tell ltmain to make .lib files, not .a files.
13695      libext=lib
13696      # Tell ltmain to make .dll files, not .so files.
13697      shrext_cmds=".dll"
13698      # FIXME: Setting linknames here is a bad hack.
13699      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13700      # The linker will automatically build a .lib file if we build a DLL.
13701      old_archive_From_new_cmds_F77='true'
13702      # FIXME: Should let the user specify the lib program.
13703      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13704      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13705      enable_shared_with_static_runtimes_F77=yes
13706      ;;
13707
13708    darwin* | rhapsody*)
13709      case $host_os in
13710        rhapsody* | darwin1.[012])
13711         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13712         ;;
13713       *) # Darwin 1.3 on
13714         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13715           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13716         else
13717           case ${MACOSX_DEPLOYMENT_TARGET} in
13718             10.[012])
13719               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13720               ;;
13721             10.*)
13722               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13723               ;;
13724           esac
13725         fi
13726         ;;
13727      esac
13728      archive_cmds_need_lc_F77=no
13729      hardcode_direct_F77=no
13730      hardcode_automatic_F77=yes
13731      hardcode_shlibpath_var_F77=unsupported
13732      whole_archive_flag_spec_F77=''
13733      link_all_deplibs_F77=yes
13734    if test "$GCC" = yes ; then
13735    	output_verbose_link_cmd='echo'
13736        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13737      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13738      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13739      archive_expsym_cmds_F77='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}'
13740      module_expsym_cmds_F77='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}'
13741    else
13742      case $cc_basename in
13743        xlc*)
13744         output_verbose_link_cmd='echo'
13745         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13746         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13747          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13748         archive_expsym_cmds_F77='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}'
13749          module_expsym_cmds_F77='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}'
13750          ;;
13751       *)
13752         ld_shlibs_F77=no
13753          ;;
13754      esac
13755    fi
13756      ;;
13757
13758    dgux*)
13759      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13760      hardcode_libdir_flag_spec_F77='-L$libdir'
13761      hardcode_shlibpath_var_F77=no
13762      ;;
13763
13764    freebsd1*)
13765      ld_shlibs_F77=no
13766      ;;
13767
13768    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13769    # support.  Future versions do this automatically, but an explicit c++rt0.o
13770    # does not break anything, and helps significantly (at the cost of a little
13771    # extra space).
13772    freebsd2.2*)
13773      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13774      hardcode_libdir_flag_spec_F77='-R$libdir'
13775      hardcode_direct_F77=yes
13776      hardcode_shlibpath_var_F77=no
13777      ;;
13778
13779    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13780    freebsd2*)
13781      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13782      hardcode_direct_F77=yes
13783      hardcode_minus_L_F77=yes
13784      hardcode_shlibpath_var_F77=no
13785      ;;
13786
13787    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13788    freebsd* | kfreebsd*-gnu | dragonfly*)
13789      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13790      hardcode_libdir_flag_spec_F77='-R$libdir'
13791      hardcode_direct_F77=yes
13792      hardcode_shlibpath_var_F77=no
13793      ;;
13794
13795    hpux9*)
13796      if test "$GCC" = yes; then
13797	archive_cmds_F77='$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'
13798      else
13799	archive_cmds_F77='$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'
13800      fi
13801      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13802      hardcode_libdir_separator_F77=:
13803      hardcode_direct_F77=yes
13804
13805      # hardcode_minus_L: Not really in the search PATH,
13806      # but as the default location of the library.
13807      hardcode_minus_L_F77=yes
13808      export_dynamic_flag_spec_F77='${wl}-E'
13809      ;;
13810
13811    hpux10* | hpux11*)
13812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13813	case $host_cpu in
13814	hppa*64*|ia64*)
13815	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13816	  ;;
13817	*)
13818	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13819	  ;;
13820	esac
13821      else
13822	case $host_cpu in
13823	hppa*64*|ia64*)
13824	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13825	  ;;
13826	*)
13827	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13828	  ;;
13829	esac
13830      fi
13831      if test "$with_gnu_ld" = no; then
13832	case $host_cpu in
13833	hppa*64*)
13834	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13835	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13836	  hardcode_libdir_separator_F77=:
13837	  hardcode_direct_F77=no
13838	  hardcode_shlibpath_var_F77=no
13839	  ;;
13840	ia64*)
13841	  hardcode_libdir_flag_spec_F77='-L$libdir'
13842	  hardcode_direct_F77=no
13843	  hardcode_shlibpath_var_F77=no
13844
13845	  # hardcode_minus_L: Not really in the search PATH,
13846	  # but as the default location of the library.
13847	  hardcode_minus_L_F77=yes
13848	  ;;
13849	*)
13850	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13851	  hardcode_libdir_separator_F77=:
13852	  hardcode_direct_F77=yes
13853	  export_dynamic_flag_spec_F77='${wl}-E'
13854
13855	  # hardcode_minus_L: Not really in the search PATH,
13856	  # but as the default location of the library.
13857	  hardcode_minus_L_F77=yes
13858	  ;;
13859	esac
13860      fi
13861      ;;
13862
13863    irix5* | irix6* | nonstopux*)
13864      if test "$GCC" = yes; then
13865	archive_cmds_F77='$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'
13866      else
13867	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13868	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13869      fi
13870      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13871      hardcode_libdir_separator_F77=:
13872      link_all_deplibs_F77=yes
13873      ;;
13874
13875    netbsd*)
13876      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13877	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13878      else
13879	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13880      fi
13881      hardcode_libdir_flag_spec_F77='-R$libdir'
13882      hardcode_direct_F77=yes
13883      hardcode_shlibpath_var_F77=no
13884      ;;
13885
13886    newsos6)
13887      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13888      hardcode_direct_F77=yes
13889      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13890      hardcode_libdir_separator_F77=:
13891      hardcode_shlibpath_var_F77=no
13892      ;;
13893
13894    openbsd*)
13895      hardcode_direct_F77=yes
13896      hardcode_shlibpath_var_F77=no
13897      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13898	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13899	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13900	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13901	export_dynamic_flag_spec_F77='${wl}-E'
13902      else
13903       case $host_os in
13904	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13905	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13906	   hardcode_libdir_flag_spec_F77='-R$libdir'
13907	   ;;
13908	 *)
13909	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13910	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13911	   ;;
13912       esac
13913      fi
13914      ;;
13915
13916    os2*)
13917      hardcode_libdir_flag_spec_F77='-L$libdir'
13918      hardcode_minus_L_F77=yes
13919      allow_undefined_flag_F77=unsupported
13920      archive_cmds_F77='$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'
13921      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13922      ;;
13923
13924    osf3*)
13925      if test "$GCC" = yes; then
13926	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13927	archive_cmds_F77='$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'
13928      else
13929	allow_undefined_flag_F77=' -expect_unresolved \*'
13930	archive_cmds_F77='$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'
13931      fi
13932      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13933      hardcode_libdir_separator_F77=:
13934      ;;
13935
13936    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13937      if test "$GCC" = yes; then
13938	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13939	archive_cmds_F77='$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'
13940	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13941      else
13942	allow_undefined_flag_F77=' -expect_unresolved \*'
13943	archive_cmds_F77='$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'
13944	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13945	$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'
13946
13947	# Both c and cxx compiler support -rpath directly
13948	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13949      fi
13950      hardcode_libdir_separator_F77=:
13951      ;;
13952
13953    sco3.2v5*)
13954      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13955      hardcode_shlibpath_var_F77=no
13956      export_dynamic_flag_spec_F77='${wl}-Bexport'
13957      runpath_var=LD_RUN_PATH
13958      hardcode_runpath_var=yes
13959      ;;
13960
13961    solaris*)
13962      no_undefined_flag_F77=' -z text'
13963      if test "$GCC" = yes; then
13964	wlarc='${wl}'
13965	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13966	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13967	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13968      else
13969	wlarc=''
13970	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13973      fi
13974      hardcode_libdir_flag_spec_F77='-R$libdir'
13975      hardcode_shlibpath_var_F77=no
13976      case $host_os in
13977      solaris2.[0-5] | solaris2.[0-5].*) ;;
13978      *)
13979 	# The compiler driver will combine linker options so we
13980 	# cannot just pass the convience library names through
13981 	# without $wl, iff we do not link with $LD.
13982 	# Luckily, gcc supports the same syntax we need for Sun Studio.
13983 	# Supported since Solaris 2.6 (maybe 2.5.1?)
13984 	case $wlarc in
13985 	'')
13986 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13987 	*)
13988 	  whole_archive_flag_spec_F77='${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' ;;
13989 	esac ;;
13990      esac
13991      link_all_deplibs_F77=yes
13992      ;;
13993
13994    sunos4*)
13995      if test "x$host_vendor" = xsequent; then
13996	# Use $CC to link under sequent, because it throws in some extra .o
13997	# files that make .init and .fini sections work.
13998	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13999      else
14000	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14001      fi
14002      hardcode_libdir_flag_spec_F77='-L$libdir'
14003      hardcode_direct_F77=yes
14004      hardcode_minus_L_F77=yes
14005      hardcode_shlibpath_var_F77=no
14006      ;;
14007
14008    sysv4)
14009      case $host_vendor in
14010	sni)
14011	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012	  hardcode_direct_F77=yes # is this really true???
14013	;;
14014	siemens)
14015	  ## LD is ld it makes a PLAMLIB
14016	  ## CC just makes a GrossModule.
14017	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14018	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14019	  hardcode_direct_F77=no
14020        ;;
14021	motorola)
14022	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14023	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14024	;;
14025      esac
14026      runpath_var='LD_RUN_PATH'
14027      hardcode_shlibpath_var_F77=no
14028      ;;
14029
14030    sysv4.3*)
14031      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14032      hardcode_shlibpath_var_F77=no
14033      export_dynamic_flag_spec_F77='-Bexport'
14034      ;;
14035
14036    sysv4*MP*)
14037      if test -d /usr/nec; then
14038	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039	hardcode_shlibpath_var_F77=no
14040	runpath_var=LD_RUN_PATH
14041	hardcode_runpath_var=yes
14042	ld_shlibs_F77=yes
14043      fi
14044      ;;
14045
14046    sysv4.2uw2*)
14047      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14048      hardcode_direct_F77=yes
14049      hardcode_minus_L_F77=no
14050      hardcode_shlibpath_var_F77=no
14051      hardcode_runpath_var=yes
14052      runpath_var=LD_RUN_PATH
14053      ;;
14054
14055   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14056      no_undefined_flag_F77='${wl}-z ${wl}text'
14057      if test "$GCC" = yes; then
14058	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14059      else
14060	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14061      fi
14062      runpath_var='LD_RUN_PATH'
14063      hardcode_shlibpath_var_F77=no
14064      ;;
14065
14066    sysv5*)
14067      no_undefined_flag_F77=' -z text'
14068      # $CC -shared without GNU ld will not create a library from C++
14069      # object files and a static libstdc++, better avoid it by now
14070      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14071      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14072  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14073      hardcode_libdir_flag_spec_F77=
14074      hardcode_shlibpath_var_F77=no
14075      runpath_var='LD_RUN_PATH'
14076      ;;
14077
14078    uts4*)
14079      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14080      hardcode_libdir_flag_spec_F77='-L$libdir'
14081      hardcode_shlibpath_var_F77=no
14082      ;;
14083
14084    *)
14085      ld_shlibs_F77=no
14086      ;;
14087    esac
14088  fi
14089
14090echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14091echo "${ECHO_T}$ld_shlibs_F77" >&6
14092test "$ld_shlibs_F77" = no && can_build_shared=no
14093
14094variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14095if test "$GCC" = yes; then
14096  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14097fi
14098
14099#
14100# Do we need to explicitly link libc?
14101#
14102case "x$archive_cmds_need_lc_F77" in
14103x|xyes)
14104  # Assume -lc should be added
14105  archive_cmds_need_lc_F77=yes
14106
14107  if test "$enable_shared" = yes && test "$GCC" = yes; then
14108    case $archive_cmds_F77 in
14109    *'~'*)
14110      # FIXME: we may have to deal with multi-command sequences.
14111      ;;
14112    '$CC '*)
14113      # Test whether the compiler implicitly links with -lc since on some
14114      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14115      # to ld, don't add -lc before -lgcc.
14116      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14117echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14118      $rm conftest*
14119      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14120
14121      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122  (eval $ac_compile) 2>&5
14123  ac_status=$?
14124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125  (exit $ac_status); } 2>conftest.err; then
14126        soname=conftest
14127        lib=conftest
14128        libobjs=conftest.$ac_objext
14129        deplibs=
14130        wl=$lt_prog_compiler_wl_F77
14131        compiler_flags=-v
14132        linker_flags=-v
14133        verstring=
14134        output_objdir=.
14135        libname=conftest
14136        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14137        allow_undefined_flag_F77=
14138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14139  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14140  ac_status=$?
14141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142  (exit $ac_status); }
14143        then
14144	  archive_cmds_need_lc_F77=no
14145        else
14146	  archive_cmds_need_lc_F77=yes
14147        fi
14148        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14149      else
14150        cat conftest.err 1>&5
14151      fi
14152      $rm conftest*
14153      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14154echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14155      ;;
14156    esac
14157  fi
14158  ;;
14159esac
14160
14161echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14162echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14163library_names_spec=
14164libname_spec='lib$name'
14165soname_spec=
14166shrext_cmds=".so"
14167postinstall_cmds=
14168postuninstall_cmds=
14169finish_cmds=
14170finish_eval=
14171shlibpath_var=
14172shlibpath_overrides_runpath=unknown
14173version_type=none
14174dynamic_linker="$host_os ld.so"
14175sys_lib_dlsearch_path_spec="/lib /usr/lib"
14176if test "$GCC" = yes; then
14177  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14178  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14179    # if the path contains ";" then we assume it to be the separator
14180    # otherwise default to the standard path separator (i.e. ":") - it is
14181    # assumed that no part of a normal pathname contains ";" but that should
14182    # okay in the real world where ";" in dirpaths is itself problematic.
14183    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14184  else
14185    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14186  fi
14187else
14188  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14189fi
14190need_lib_prefix=unknown
14191hardcode_into_libs=no
14192
14193# when you set need_version to no, make sure it does not cause -set_version
14194# flags to be left without arguments
14195need_version=unknown
14196
14197case $host_os in
14198aix3*)
14199  version_type=linux
14200  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14201  shlibpath_var=LIBPATH
14202
14203  # AIX 3 has no versioning support, so we append a major version to the name.
14204  soname_spec='${libname}${release}${shared_ext}$major'
14205  ;;
14206
14207aix4* | aix5*)
14208  version_type=linux
14209  need_lib_prefix=no
14210  need_version=no
14211  hardcode_into_libs=yes
14212  if test "$host_cpu" = ia64; then
14213    # AIX 5 supports IA64
14214    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14215    shlibpath_var=LD_LIBRARY_PATH
14216  else
14217    # With GCC up to 2.95.x, collect2 would create an import file
14218    # for dependence libraries.  The import file would start with
14219    # the line `#! .'.  This would cause the generated library to
14220    # depend on `.', always an invalid library.  This was fixed in
14221    # development snapshots of GCC prior to 3.0.
14222    case $host_os in
14223      aix4 | aix4.[01] | aix4.[01].*)
14224      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14225	   echo ' yes '
14226	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14227	:
14228      else
14229	can_build_shared=no
14230      fi
14231      ;;
14232    esac
14233    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14234    # soname into executable. Probably we can add versioning support to
14235    # collect2, so additional links can be useful in future.
14236    if test "$aix_use_runtimelinking" = yes; then
14237      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14238      # instead of lib<name>.a to let people know that these are not
14239      # typical AIX shared libraries.
14240      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14241    else
14242      # We preserve .a as extension for shared libraries through AIX4.2
14243      # and later when we are not doing run time linking.
14244      library_names_spec='${libname}${release}.a $libname.a'
14245      soname_spec='${libname}${release}${shared_ext}$major'
14246    fi
14247    shlibpath_var=LIBPATH
14248  fi
14249  ;;
14250
14251amigaos*)
14252  library_names_spec='$libname.ixlibrary $libname.a'
14253  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14254  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'
14255  ;;
14256
14257beos*)
14258  library_names_spec='${libname}${shared_ext}'
14259  dynamic_linker="$host_os ld.so"
14260  shlibpath_var=LIBRARY_PATH
14261  ;;
14262
14263bsdi[45]*)
14264  version_type=linux
14265  need_version=no
14266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14267  soname_spec='${libname}${release}${shared_ext}$major'
14268  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14269  shlibpath_var=LD_LIBRARY_PATH
14270  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14271  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14272  # the default ld.so.conf also contains /usr/contrib/lib and
14273  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14274  # libtool to hard-code these into programs
14275  ;;
14276
14277cygwin* | mingw* | pw32*)
14278  version_type=windows
14279  shrext_cmds=".dll"
14280  need_version=no
14281  need_lib_prefix=no
14282
14283  case $GCC,$host_os in
14284  yes,cygwin* | yes,mingw* | yes,pw32*)
14285    library_names_spec='$libname.dll.a'
14286    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14287    postinstall_cmds='base_file=`basename \${file}`~
14288      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14289      dldir=$destdir/`dirname \$dlpath`~
14290      test -d \$dldir || mkdir -p \$dldir~
14291      $install_prog $dir/$dlname \$dldir/$dlname~
14292      chmod a+x \$dldir/$dlname'
14293    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294      dlpath=$dir/\$dldll~
14295       $rm \$dlpath'
14296    shlibpath_overrides_runpath=yes
14297
14298    case $host_os in
14299    cygwin*)
14300      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14303      ;;
14304    mingw*)
14305      # MinGW DLLs use traditional 'lib' prefix
14306      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309        # It is most probably a Windows format PATH printed by
14310        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311        # path with ; separators, and with drive letters. We can handle the
14312        # drive letters (cygwin fileutils understands them), so leave them,
14313        # especially as we might pass files found there to a mingw objdump,
14314        # which wouldn't understand a cygwinified path. Ahh.
14315        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316      else
14317        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14318      fi
14319      ;;
14320    pw32*)
14321      # pw32 DLLs use 'pw' prefix rather than 'lib'
14322      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14323      ;;
14324    esac
14325    ;;
14326
14327  *)
14328    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14329    ;;
14330  esac
14331  dynamic_linker='Win32 ld.exe'
14332  # FIXME: first we should search . and the directory the executable is in
14333  shlibpath_var=PATH
14334  ;;
14335
14336darwin* | rhapsody*)
14337  dynamic_linker="$host_os dyld"
14338  version_type=darwin
14339  need_lib_prefix=no
14340  need_version=no
14341  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14342  soname_spec='${libname}${release}${major}$shared_ext'
14343  shlibpath_overrides_runpath=yes
14344  shlibpath_var=DYLD_LIBRARY_PATH
14345  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14346  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14347  if test "$GCC" = yes; then
14348    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"`
14349  else
14350    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14351  fi
14352  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14353  ;;
14354
14355dgux*)
14356  version_type=linux
14357  need_lib_prefix=no
14358  need_version=no
14359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14360  soname_spec='${libname}${release}${shared_ext}$major'
14361  shlibpath_var=LD_LIBRARY_PATH
14362  ;;
14363
14364freebsd1*)
14365  dynamic_linker=no
14366  ;;
14367
14368kfreebsd*-gnu)
14369  version_type=linux
14370  need_lib_prefix=no
14371  need_version=no
14372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373  soname_spec='${libname}${release}${shared_ext}$major'
14374  shlibpath_var=LD_LIBRARY_PATH
14375  shlibpath_overrides_runpath=no
14376  hardcode_into_libs=yes
14377  dynamic_linker='GNU ld.so'
14378  ;;
14379
14380freebsd* | dragonfly*)
14381  # DragonFly does not have aout.  When/if they implement a new
14382  # versioning mechanism, adjust this.
14383  if test -x /usr/bin/objformat; then
14384    objformat=`/usr/bin/objformat`
14385  else
14386    case $host_os in
14387    freebsd[123]*) objformat=aout ;;
14388    *) objformat=elf ;;
14389    esac
14390  fi
14391  version_type=freebsd-$objformat
14392  case $version_type in
14393    freebsd-elf*)
14394      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14395      need_version=no
14396      need_lib_prefix=no
14397      ;;
14398    freebsd-*)
14399      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14400      need_version=yes
14401      ;;
14402  esac
14403  shlibpath_var=LD_LIBRARY_PATH
14404  case $host_os in
14405  freebsd2*)
14406    shlibpath_overrides_runpath=yes
14407    ;;
14408  freebsd3.[01]* | freebsdelf3.[01]*)
14409    shlibpath_overrides_runpath=yes
14410    hardcode_into_libs=yes
14411    ;;
14412  *) # from 3.2 on
14413    shlibpath_overrides_runpath=no
14414    hardcode_into_libs=yes
14415    ;;
14416  esac
14417  ;;
14418
14419gnu*)
14420  version_type=linux
14421  need_lib_prefix=no
14422  need_version=no
14423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14424  soname_spec='${libname}${release}${shared_ext}$major'
14425  shlibpath_var=LD_LIBRARY_PATH
14426  hardcode_into_libs=yes
14427  ;;
14428
14429hpux9* | hpux10* | hpux11*)
14430  # Give a soname corresponding to the major version so that dld.sl refuses to
14431  # link against other versions.
14432  version_type=sunos
14433  need_lib_prefix=no
14434  need_version=no
14435  case $host_cpu in
14436  ia64*)
14437    shrext_cmds='.so'
14438    hardcode_into_libs=yes
14439    dynamic_linker="$host_os dld.so"
14440    shlibpath_var=LD_LIBRARY_PATH
14441    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14442    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443    soname_spec='${libname}${release}${shared_ext}$major'
14444    if test "X$HPUX_IA64_MODE" = X32; then
14445      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14446    else
14447      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14448    fi
14449    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14450    ;;
14451   hppa*64*)
14452     shrext_cmds='.sl'
14453     hardcode_into_libs=yes
14454     dynamic_linker="$host_os dld.sl"
14455     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458     soname_spec='${libname}${release}${shared_ext}$major'
14459     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14460     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14461     ;;
14462   *)
14463    shrext_cmds='.sl'
14464    dynamic_linker="$host_os dld.sl"
14465    shlibpath_var=SHLIB_PATH
14466    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14467    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468    soname_spec='${libname}${release}${shared_ext}$major'
14469    ;;
14470  esac
14471  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14472  postinstall_cmds='chmod 555 $lib'
14473  ;;
14474
14475irix5* | irix6* | nonstopux*)
14476  case $host_os in
14477    nonstopux*) version_type=nonstopux ;;
14478    *)
14479	if test "$lt_cv_prog_gnu_ld" = yes; then
14480		version_type=linux
14481	else
14482		version_type=irix
14483	fi ;;
14484  esac
14485  need_lib_prefix=no
14486  need_version=no
14487  soname_spec='${libname}${release}${shared_ext}$major'
14488  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14489  case $host_os in
14490  irix5* | nonstopux*)
14491    libsuff= shlibsuff=
14492    ;;
14493  *)
14494    case $LD in # libtool.m4 will add one of these switches to LD
14495    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14496      libsuff= shlibsuff= libmagic=32-bit;;
14497    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14498      libsuff=32 shlibsuff=N32 libmagic=N32;;
14499    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14500      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14501    *) libsuff= shlibsuff= libmagic=never-match;;
14502    esac
14503    ;;
14504  esac
14505  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14506  shlibpath_overrides_runpath=no
14507  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14508  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14509  hardcode_into_libs=yes
14510  ;;
14511
14512# No shared lib support for Linux oldld, aout, or coff.
14513linux*oldld* | linux*aout* | linux*coff*)
14514  dynamic_linker=no
14515  ;;
14516
14517# This must be Linux ELF.
14518linux*)
14519  version_type=linux
14520  need_lib_prefix=no
14521  need_version=no
14522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523  soname_spec='${libname}${release}${shared_ext}$major'
14524  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14525  shlibpath_var=LD_LIBRARY_PATH
14526  shlibpath_overrides_runpath=no
14527  # This implies no fast_install, which is unacceptable.
14528  # Some rework will be needed to allow for fast_install
14529  # before this can be enabled.
14530  hardcode_into_libs=yes
14531
14532  # Append ld.so.conf contents to the search path
14533  if test -f /etc/ld.so.conf; then
14534    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' ' '`
14535    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14536  fi
14537
14538  # We used to test for /lib/ld.so.1 and disable shared libraries on
14539  # powerpc, because MkLinux only supported shared libraries with the
14540  # GNU dynamic linker.  Since this was broken with cross compilers,
14541  # most powerpc-linux boxes support dynamic linking these days and
14542  # people can always --disable-shared, the test was removed, and we
14543  # assume the GNU/Linux dynamic linker is in use.
14544  dynamic_linker='GNU/Linux ld.so'
14545  ;;
14546
14547knetbsd*-gnu)
14548  version_type=linux
14549  need_lib_prefix=no
14550  need_version=no
14551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14552  soname_spec='${libname}${release}${shared_ext}$major'
14553  shlibpath_var=LD_LIBRARY_PATH
14554  shlibpath_overrides_runpath=no
14555  hardcode_into_libs=yes
14556  dynamic_linker='GNU ld.so'
14557  ;;
14558
14559netbsd*)
14560  version_type=sunos
14561  need_lib_prefix=no
14562  need_version=no
14563  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14564    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14565    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14566    dynamic_linker='NetBSD (a.out) ld.so'
14567  else
14568    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14569    soname_spec='${libname}${release}${shared_ext}$major'
14570    dynamic_linker='NetBSD ld.elf_so'
14571  fi
14572  shlibpath_var=LD_LIBRARY_PATH
14573  shlibpath_overrides_runpath=yes
14574  hardcode_into_libs=yes
14575  ;;
14576
14577newsos6)
14578  version_type=linux
14579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14580  shlibpath_var=LD_LIBRARY_PATH
14581  shlibpath_overrides_runpath=yes
14582  ;;
14583
14584nto-qnx*)
14585  version_type=linux
14586  need_lib_prefix=no
14587  need_version=no
14588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589  soname_spec='${libname}${release}${shared_ext}$major'
14590  shlibpath_var=LD_LIBRARY_PATH
14591  shlibpath_overrides_runpath=yes
14592  ;;
14593
14594openbsd*)
14595  version_type=sunos
14596  need_lib_prefix=no
14597  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14598  case $host_os in
14599    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14600    *)                         need_version=no  ;;
14601  esac
14602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14603  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14604  shlibpath_var=LD_LIBRARY_PATH
14605  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14606    case $host_os in
14607      openbsd2.[89] | openbsd2.[89].*)
14608	shlibpath_overrides_runpath=no
14609	;;
14610      *)
14611	shlibpath_overrides_runpath=yes
14612	;;
14613      esac
14614  else
14615    shlibpath_overrides_runpath=yes
14616  fi
14617  ;;
14618
14619os2*)
14620  libname_spec='$name'
14621  shrext_cmds=".dll"
14622  need_lib_prefix=no
14623  library_names_spec='$libname${shared_ext} $libname.a'
14624  dynamic_linker='OS/2 ld.exe'
14625  shlibpath_var=LIBPATH
14626  ;;
14627
14628osf3* | osf4* | osf5*)
14629  version_type=osf
14630  need_lib_prefix=no
14631  need_version=no
14632  soname_spec='${libname}${release}${shared_ext}$major'
14633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634  shlibpath_var=LD_LIBRARY_PATH
14635  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14636  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14637  ;;
14638
14639sco3.2v5*)
14640  version_type=osf
14641  soname_spec='${libname}${release}${shared_ext}$major'
14642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643  shlibpath_var=LD_LIBRARY_PATH
14644  ;;
14645
14646solaris*)
14647  version_type=linux
14648  need_lib_prefix=no
14649  need_version=no
14650  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651  soname_spec='${libname}${release}${shared_ext}$major'
14652  shlibpath_var=LD_LIBRARY_PATH
14653  shlibpath_overrides_runpath=yes
14654  hardcode_into_libs=yes
14655  # ldd complains unless libraries are executable
14656  postinstall_cmds='chmod +x $lib'
14657  ;;
14658
14659sunos4*)
14660  version_type=sunos
14661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14662  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14663  shlibpath_var=LD_LIBRARY_PATH
14664  shlibpath_overrides_runpath=yes
14665  if test "$with_gnu_ld" = yes; then
14666    need_lib_prefix=no
14667  fi
14668  need_version=yes
14669  ;;
14670
14671sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14672  version_type=linux
14673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674  soname_spec='${libname}${release}${shared_ext}$major'
14675  shlibpath_var=LD_LIBRARY_PATH
14676  case $host_vendor in
14677    sni)
14678      shlibpath_overrides_runpath=no
14679      need_lib_prefix=no
14680      export_dynamic_flag_spec='${wl}-Blargedynsym'
14681      runpath_var=LD_RUN_PATH
14682      ;;
14683    siemens)
14684      need_lib_prefix=no
14685      ;;
14686    motorola)
14687      need_lib_prefix=no
14688      need_version=no
14689      shlibpath_overrides_runpath=no
14690      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14691      ;;
14692  esac
14693  ;;
14694
14695sysv4*MP*)
14696  if test -d /usr/nec ;then
14697    version_type=linux
14698    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14699    soname_spec='$libname${shared_ext}.$major'
14700    shlibpath_var=LD_LIBRARY_PATH
14701  fi
14702  ;;
14703
14704uts4*)
14705  version_type=linux
14706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707  soname_spec='${libname}${release}${shared_ext}$major'
14708  shlibpath_var=LD_LIBRARY_PATH
14709  ;;
14710
14711*)
14712  dynamic_linker=no
14713  ;;
14714esac
14715echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14716echo "${ECHO_T}$dynamic_linker" >&6
14717test "$dynamic_linker" = no && can_build_shared=no
14718
14719echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14720echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14721hardcode_action_F77=
14722if test -n "$hardcode_libdir_flag_spec_F77" || \
14723   test -n "$runpath_var_F77" || \
14724   test "X$hardcode_automatic_F77" = "Xyes" ; then
14725
14726  # We can hardcode non-existant directories.
14727  if test "$hardcode_direct_F77" != no &&
14728     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14729     # have to relink, otherwise we might link with an installed library
14730     # when we should be linking with a yet-to-be-installed one
14731     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14732     test "$hardcode_minus_L_F77" != no; then
14733    # Linking always hardcodes the temporary library directory.
14734    hardcode_action_F77=relink
14735  else
14736    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14737    hardcode_action_F77=immediate
14738  fi
14739else
14740  # We cannot hardcode anything, or else we can only hardcode existing
14741  # directories.
14742  hardcode_action_F77=unsupported
14743fi
14744echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14745echo "${ECHO_T}$hardcode_action_F77" >&6
14746
14747if test "$hardcode_action_F77" = relink; then
14748  # Fast installation is not supported
14749  enable_fast_install=no
14750elif test "$shlibpath_overrides_runpath" = yes ||
14751     test "$enable_shared" = no; then
14752  # Fast installation is not necessary
14753  enable_fast_install=needless
14754fi
14755
14756striplib=
14757old_striplib=
14758echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14759echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14760if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14761  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14762  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14763  echo "$as_me:$LINENO: result: yes" >&5
14764echo "${ECHO_T}yes" >&6
14765else
14766# FIXME - insert some real tests, host_os isn't really good enough
14767  case $host_os in
14768   darwin*)
14769       if test -n "$STRIP" ; then
14770         striplib="$STRIP -x"
14771         echo "$as_me:$LINENO: result: yes" >&5
14772echo "${ECHO_T}yes" >&6
14773       else
14774  echo "$as_me:$LINENO: result: no" >&5
14775echo "${ECHO_T}no" >&6
14776fi
14777       ;;
14778   *)
14779  echo "$as_me:$LINENO: result: no" >&5
14780echo "${ECHO_T}no" >&6
14781    ;;
14782  esac
14783fi
14784
14785
14786
14787# The else clause should only fire when bootstrapping the
14788# libtool distribution, otherwise you forgot to ship ltmain.sh
14789# with your package, and you will get complaints that there are
14790# no rules to generate ltmain.sh.
14791if test -f "$ltmain"; then
14792  # See if we are running on zsh, and set the options which allow our commands through
14793  # without removal of \ escapes.
14794  if test -n "${ZSH_VERSION+set}" ; then
14795    setopt NO_GLOB_SUBST
14796  fi
14797  # Now quote all the things that may contain metacharacters while being
14798  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14799  # variables and quote the copies for generation of the libtool script.
14800  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14801    SED SHELL STRIP \
14802    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14803    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14804    deplibs_check_method reload_flag reload_cmds need_locks \
14805    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14806    lt_cv_sys_global_symbol_to_c_name_address \
14807    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14808    old_postinstall_cmds old_postuninstall_cmds \
14809    compiler_F77 \
14810    CC_F77 \
14811    LD_F77 \
14812    lt_prog_compiler_wl_F77 \
14813    lt_prog_compiler_pic_F77 \
14814    lt_prog_compiler_static_F77 \
14815    lt_prog_compiler_no_builtin_flag_F77 \
14816    export_dynamic_flag_spec_F77 \
14817    thread_safe_flag_spec_F77 \
14818    whole_archive_flag_spec_F77 \
14819    enable_shared_with_static_runtimes_F77 \
14820    old_archive_cmds_F77 \
14821    old_archive_from_new_cmds_F77 \
14822    predep_objects_F77 \
14823    postdep_objects_F77 \
14824    predeps_F77 \
14825    postdeps_F77 \
14826    compiler_lib_search_path_F77 \
14827    archive_cmds_F77 \
14828    archive_expsym_cmds_F77 \
14829    postinstall_cmds_F77 \
14830    postuninstall_cmds_F77 \
14831    old_archive_from_expsyms_cmds_F77 \
14832    allow_undefined_flag_F77 \
14833    no_undefined_flag_F77 \
14834    export_symbols_cmds_F77 \
14835    hardcode_libdir_flag_spec_F77 \
14836    hardcode_libdir_flag_spec_ld_F77 \
14837    hardcode_libdir_separator_F77 \
14838    hardcode_automatic_F77 \
14839    module_cmds_F77 \
14840    module_expsym_cmds_F77 \
14841    lt_cv_prog_compiler_c_o_F77 \
14842    exclude_expsyms_F77 \
14843    include_expsyms_F77; do
14844
14845    case $var in
14846    old_archive_cmds_F77 | \
14847    old_archive_from_new_cmds_F77 | \
14848    archive_cmds_F77 | \
14849    archive_expsym_cmds_F77 | \
14850    module_cmds_F77 | \
14851    module_expsym_cmds_F77 | \
14852    old_archive_from_expsyms_cmds_F77 | \
14853    export_symbols_cmds_F77 | \
14854    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14855    postinstall_cmds | postuninstall_cmds | \
14856    old_postinstall_cmds | old_postuninstall_cmds | \
14857    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14858      # Double-quote double-evaled strings.
14859      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14860      ;;
14861    *)
14862      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14863      ;;
14864    esac
14865  done
14866
14867  case $lt_echo in
14868  *'\$0 --fallback-echo"')
14869    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14870    ;;
14871  esac
14872
14873cfgfile="$ofile"
14874
14875  cat <<__EOF__ >> "$cfgfile"
14876# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14877
14878# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14879
14880# Shell to use when invoking shell scripts.
14881SHELL=$lt_SHELL
14882
14883# Whether or not to build shared libraries.
14884build_libtool_libs=$enable_shared
14885
14886# Whether or not to build static libraries.
14887build_old_libs=$enable_static
14888
14889# Whether or not to add -lc for building shared libraries.
14890build_libtool_need_lc=$archive_cmds_need_lc_F77
14891
14892# Whether or not to disallow shared libs when runtime libs are static
14893allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14894
14895# Whether or not to optimize for fast installation.
14896fast_install=$enable_fast_install
14897
14898# The host system.
14899host_alias=$host_alias
14900host=$host
14901host_os=$host_os
14902
14903# The build system.
14904build_alias=$build_alias
14905build=$build
14906build_os=$build_os
14907
14908# An echo program that does not interpret backslashes.
14909echo=$lt_echo
14910
14911# The archiver.
14912AR=$lt_AR
14913AR_FLAGS=$lt_AR_FLAGS
14914
14915# A C compiler.
14916LTCC=$lt_LTCC
14917
14918# A language-specific compiler.
14919CC=$lt_compiler_F77
14920
14921# Is the compiler the GNU C compiler?
14922with_gcc=$GCC_F77
14923
14924# An ERE matcher.
14925EGREP=$lt_EGREP
14926
14927# The linker used to build libraries.
14928LD=$lt_LD_F77
14929
14930# Whether we need hard or soft links.
14931LN_S=$lt_LN_S
14932
14933# A BSD-compatible nm program.
14934NM=$lt_NM
14935
14936# A symbol stripping program
14937STRIP=$lt_STRIP
14938
14939# Used to examine libraries when file_magic_cmd begins "file"
14940MAGIC_CMD=$MAGIC_CMD
14941
14942# Used on cygwin: DLL creation program.
14943DLLTOOL="$DLLTOOL"
14944
14945# Used on cygwin: object dumper.
14946OBJDUMP="$OBJDUMP"
14947
14948# Used on cygwin: assembler.
14949AS="$AS"
14950
14951# The name of the directory that contains temporary libtool files.
14952objdir=$objdir
14953
14954# How to create reloadable object files.
14955reload_flag=$lt_reload_flag
14956reload_cmds=$lt_reload_cmds
14957
14958# How to pass a linker flag through the compiler.
14959wl=$lt_lt_prog_compiler_wl_F77
14960
14961# Object file suffix (normally "o").
14962objext="$ac_objext"
14963
14964# Old archive suffix (normally "a").
14965libext="$libext"
14966
14967# Shared library suffix (normally ".so").
14968shrext_cmds='$shrext_cmds'
14969
14970# Executable file suffix (normally "").
14971exeext="$exeext"
14972
14973# Additional compiler flags for building library objects.
14974pic_flag=$lt_lt_prog_compiler_pic_F77
14975pic_mode=$pic_mode
14976
14977# What is the maximum length of a command?
14978max_cmd_len=$lt_cv_sys_max_cmd_len
14979
14980# Does compiler simultaneously support -c and -o options?
14981compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14982
14983# Must we lock files when doing compilation?
14984need_locks=$lt_need_locks
14985
14986# Do we need the lib prefix for modules?
14987need_lib_prefix=$need_lib_prefix
14988
14989# Do we need a version for libraries?
14990need_version=$need_version
14991
14992# Whether dlopen is supported.
14993dlopen_support=$enable_dlopen
14994
14995# Whether dlopen of programs is supported.
14996dlopen_self=$enable_dlopen_self
14997
14998# Whether dlopen of statically linked programs is supported.
14999dlopen_self_static=$enable_dlopen_self_static
15000
15001# Compiler flag to prevent dynamic linking.
15002link_static_flag=$lt_lt_prog_compiler_static_F77
15003
15004# Compiler flag to turn off builtin functions.
15005no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15006
15007# Compiler flag to allow reflexive dlopens.
15008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15009
15010# Compiler flag to generate shared objects directly from archives.
15011whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15012
15013# Compiler flag to generate thread-safe objects.
15014thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15015
15016# Library versioning type.
15017version_type=$version_type
15018
15019# Format of library name prefix.
15020libname_spec=$lt_libname_spec
15021
15022# List of archive names.  First name is the real one, the rest are links.
15023# The last name is the one that the linker finds with -lNAME.
15024library_names_spec=$lt_library_names_spec
15025
15026# The coded name of the library, if different from the real name.
15027soname_spec=$lt_soname_spec
15028
15029# Commands used to build and install an old-style archive.
15030RANLIB=$lt_RANLIB
15031old_archive_cmds=$lt_old_archive_cmds_F77
15032old_postinstall_cmds=$lt_old_postinstall_cmds
15033old_postuninstall_cmds=$lt_old_postuninstall_cmds
15034
15035# Create an old-style archive from a shared archive.
15036old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15037
15038# Create a temporary old-style archive to link instead of a shared archive.
15039old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15040
15041# Commands used to build and install a shared archive.
15042archive_cmds=$lt_archive_cmds_F77
15043archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15044postinstall_cmds=$lt_postinstall_cmds
15045postuninstall_cmds=$lt_postuninstall_cmds
15046
15047# Commands used to build a loadable module (assumed same as above if empty)
15048module_cmds=$lt_module_cmds_F77
15049module_expsym_cmds=$lt_module_expsym_cmds_F77
15050
15051# Commands to strip libraries.
15052old_striplib=$lt_old_striplib
15053striplib=$lt_striplib
15054
15055# Dependencies to place before the objects being linked to create a
15056# shared library.
15057predep_objects=$lt_predep_objects_F77
15058
15059# Dependencies to place after the objects being linked to create a
15060# shared library.
15061postdep_objects=$lt_postdep_objects_F77
15062
15063# Dependencies to place before the objects being linked to create a
15064# shared library.
15065predeps=$lt_predeps_F77
15066
15067# Dependencies to place after the objects being linked to create a
15068# shared library.
15069postdeps=$lt_postdeps_F77
15070
15071# The library search path used internally by the compiler when linking
15072# a shared library.
15073compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15074
15075# Method to check whether dependent libraries are shared objects.
15076deplibs_check_method=$lt_deplibs_check_method
15077
15078# Command to use when deplibs_check_method == file_magic.
15079file_magic_cmd=$lt_file_magic_cmd
15080
15081# Flag that allows shared libraries with undefined symbols to be built.
15082allow_undefined_flag=$lt_allow_undefined_flag_F77
15083
15084# Flag that forces no undefined symbols.
15085no_undefined_flag=$lt_no_undefined_flag_F77
15086
15087# Commands used to finish a libtool library installation in a directory.
15088finish_cmds=$lt_finish_cmds
15089
15090# Same as above, but a single script fragment to be evaled but not shown.
15091finish_eval=$lt_finish_eval
15092
15093# Take the output of nm and produce a listing of raw symbols and C names.
15094global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15095
15096# Transform the output of nm in a proper C declaration
15097global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15098
15099# Transform the output of nm in a C name address pair
15100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15101
15102# This is the shared library runtime path variable.
15103runpath_var=$runpath_var
15104
15105# This is the shared library path variable.
15106shlibpath_var=$shlibpath_var
15107
15108# Is shlibpath searched before the hard-coded library search path?
15109shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15110
15111# How to hardcode a shared library path into an executable.
15112hardcode_action=$hardcode_action_F77
15113
15114# Whether we should hardcode library paths into libraries.
15115hardcode_into_libs=$hardcode_into_libs
15116
15117# Flag to hardcode \$libdir into a binary during linking.
15118# This must work even if \$libdir does not exist.
15119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15120
15121# If ld is used when linking, flag to hardcode \$libdir into
15122# a binary during linking. This must work even if \$libdir does
15123# not exist.
15124hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15125
15126# Whether we need a single -rpath flag with a separated argument.
15127hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15128
15129# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15130# resulting binary.
15131hardcode_direct=$hardcode_direct_F77
15132
15133# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15134# resulting binary.
15135hardcode_minus_L=$hardcode_minus_L_F77
15136
15137# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15138# the resulting binary.
15139hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15140
15141# Set to yes if building a shared library automatically hardcodes DIR into the library
15142# and all subsequent libraries and executables linked against it.
15143hardcode_automatic=$hardcode_automatic_F77
15144
15145# Variables whose values should be saved in libtool wrapper scripts and
15146# restored at relink time.
15147variables_saved_for_relink="$variables_saved_for_relink"
15148
15149# Whether libtool must link a program against all its dependency libraries.
15150link_all_deplibs=$link_all_deplibs_F77
15151
15152# Compile-time system search path for libraries
15153sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15154
15155# Run-time system search path for libraries
15156sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15157
15158# Fix the shell variable \$srcfile for the compiler.
15159fix_srcfile_path="$fix_srcfile_path_F77"
15160
15161# Set to yes if exported symbols are required.
15162always_export_symbols=$always_export_symbols_F77
15163
15164# The commands to list exported symbols.
15165export_symbols_cmds=$lt_export_symbols_cmds_F77
15166
15167# The commands to extract the exported symbol list from a shared archive.
15168extract_expsyms_cmds=$lt_extract_expsyms_cmds
15169
15170# Symbols that should not be listed in the preloaded symbols.
15171exclude_expsyms=$lt_exclude_expsyms_F77
15172
15173# Symbols that must always be exported.
15174include_expsyms=$lt_include_expsyms_F77
15175
15176# ### END LIBTOOL TAG CONFIG: $tagname
15177
15178__EOF__
15179
15180
15181else
15182  # If there is no Makefile yet, we rely on a make rule to execute
15183  # `config.status --recheck' to rerun these tests and create the
15184  # libtool script then.
15185  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15186  if test -f "$ltmain_in"; then
15187    test -f Makefile && make "$ltmain"
15188  fi
15189fi
15190
15191
15192ac_ext=c
15193ac_cpp='$CPP $CPPFLAGS'
15194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197
15198CC="$lt_save_CC"
15199
15200	else
15201	  tagname=""
15202	fi
15203	;;
15204
15205      GCJ)
15206	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15207
15208
15209
15210# Source file extension for Java test sources.
15211ac_ext=java
15212
15213# Object file extension for compiled Java test sources.
15214objext=o
15215objext_GCJ=$objext
15216
15217# Code to be used in simple compile tests
15218lt_simple_compile_test_code="class foo {}\n"
15219
15220# Code to be used in simple link tests
15221lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15222
15223# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15224
15225# If no C compiler was specified, use CC.
15226LTCC=${LTCC-"$CC"}
15227
15228# Allow CC to be a program name with arguments.
15229compiler=$CC
15230
15231
15232# save warnings/boilerplate of simple test code
15233ac_outfile=conftest.$ac_objext
15234printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15235eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15236_lt_compiler_boilerplate=`cat conftest.err`
15237$rm conftest*
15238
15239ac_outfile=conftest.$ac_objext
15240printf "$lt_simple_link_test_code" >conftest.$ac_ext
15241eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15242_lt_linker_boilerplate=`cat conftest.err`
15243$rm conftest*
15244
15245
15246# Allow CC to be a program name with arguments.
15247lt_save_CC="$CC"
15248CC=${GCJ-"gcj"}
15249compiler=$CC
15250compiler_GCJ=$CC
15251for cc_temp in $compiler""; do
15252  case $cc_temp in
15253    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15254    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15255    \-*) ;;
15256    *) break;;
15257  esac
15258done
15259cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15260
15261
15262# GCJ did not exist at the time GCC didn't implicitly link libc in.
15263archive_cmds_need_lc_GCJ=no
15264
15265old_archive_cmds_GCJ=$old_archive_cmds
15266
15267
15268lt_prog_compiler_no_builtin_flag_GCJ=
15269
15270if test "$GCC" = yes; then
15271  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15272
15273
15274echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15275echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15276if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15277  echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279  lt_cv_prog_compiler_rtti_exceptions=no
15280  ac_outfile=conftest.$ac_objext
15281   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15282   lt_compiler_flag="-fno-rtti -fno-exceptions"
15283   # Insert the option either (1) after the last *FLAGS variable, or
15284   # (2) before a word containing "conftest.", or (3) at the end.
15285   # Note that $ac_compile itself does not contain backslashes and begins
15286   # with a dollar sign (not a hyphen), so the echo should work correctly.
15287   # The option is referenced via a variable to avoid confusing sed.
15288   lt_compile=`echo "$ac_compile" | $SED \
15289   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15290   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15291   -e 's:$: $lt_compiler_flag:'`
15292   (eval echo "\"\$as_me:15292: $lt_compile\"" >&5)
15293   (eval "$lt_compile" 2>conftest.err)
15294   ac_status=$?
15295   cat conftest.err >&5
15296   echo "$as_me:15296: \$? = $ac_status" >&5
15297   if (exit $ac_status) && test -s "$ac_outfile"; then
15298     # The compiler can only warn and ignore the option if not recognized
15299     # So say no if there are warnings other than the usual output.
15300     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15301     $SED '/^$/d' conftest.err >conftest.er2
15302     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15303       lt_cv_prog_compiler_rtti_exceptions=yes
15304     fi
15305   fi
15306   $rm conftest*
15307
15308fi
15309echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15310echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15311
15312if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15313    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15314else
15315    :
15316fi
15317
15318fi
15319
15320lt_prog_compiler_wl_GCJ=
15321lt_prog_compiler_pic_GCJ=
15322lt_prog_compiler_static_GCJ=
15323
15324echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15325echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15326
15327  if test "$GCC" = yes; then
15328    lt_prog_compiler_wl_GCJ='-Wl,'
15329    lt_prog_compiler_static_GCJ='-static'
15330
15331    case $host_os in
15332      aix*)
15333      # All AIX code is PIC.
15334      if test "$host_cpu" = ia64; then
15335	# AIX 5 now supports IA64 processor
15336	lt_prog_compiler_static_GCJ='-Bstatic'
15337      fi
15338      ;;
15339
15340    amigaos*)
15341      # FIXME: we need at least 68020 code to build shared libraries, but
15342      # adding the `-m68020' flag to GCC prevents building anything better,
15343      # like `-m68040'.
15344      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15345      ;;
15346
15347    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15348      # PIC is the default for these OSes.
15349      ;;
15350
15351    mingw* | pw32* | os2*)
15352      # This hack is so that the source file can tell whether it is being
15353      # built for inclusion in a dll (and should export symbols for example).
15354      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15355      ;;
15356
15357    darwin* | rhapsody*)
15358      # PIC is the default on this platform
15359      # Common symbols not allowed in MH_DYLIB files
15360      lt_prog_compiler_pic_GCJ='-fno-common'
15361      ;;
15362
15363    msdosdjgpp*)
15364      # Just because we use GCC doesn't mean we suddenly get shared libraries
15365      # on systems that don't support them.
15366      lt_prog_compiler_can_build_shared_GCJ=no
15367      enable_shared=no
15368      ;;
15369
15370    sysv4*MP*)
15371      if test -d /usr/nec; then
15372	lt_prog_compiler_pic_GCJ=-Kconform_pic
15373      fi
15374      ;;
15375
15376    hpux*)
15377      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15378      # not for PA HP-UX.
15379      case $host_cpu in
15380      hppa*64*|ia64*)
15381	# +Z the default
15382	;;
15383      *)
15384	lt_prog_compiler_pic_GCJ='-fPIC'
15385	;;
15386      esac
15387      ;;
15388
15389    *)
15390      lt_prog_compiler_pic_GCJ='-fPIC'
15391      ;;
15392    esac
15393  else
15394    # PORTME Check for flag to pass linker flags through the system compiler.
15395    case $host_os in
15396    aix*)
15397      lt_prog_compiler_wl_GCJ='-Wl,'
15398      if test "$host_cpu" = ia64; then
15399	# AIX 5 now supports IA64 processor
15400	lt_prog_compiler_static_GCJ='-Bstatic'
15401      else
15402	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15403      fi
15404      ;;
15405      darwin*)
15406        # PIC is the default on this platform
15407        # Common symbols not allowed in MH_DYLIB files
15408       case $cc_basename in
15409         xlc*)
15410         lt_prog_compiler_pic_GCJ='-qnocommon'
15411         lt_prog_compiler_wl_GCJ='-Wl,'
15412         ;;
15413       esac
15414       ;;
15415
15416    mingw* | pw32* | os2*)
15417      # This hack is so that the source file can tell whether it is being
15418      # built for inclusion in a dll (and should export symbols for example).
15419      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15420      ;;
15421
15422    hpux9* | hpux10* | hpux11*)
15423      lt_prog_compiler_wl_GCJ='-Wl,'
15424      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15425      # not for PA HP-UX.
15426      case $host_cpu in
15427      hppa*64*|ia64*)
15428	# +Z the default
15429	;;
15430      *)
15431	lt_prog_compiler_pic_GCJ='+Z'
15432	;;
15433      esac
15434      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15435      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15436      ;;
15437
15438    irix5* | irix6* | nonstopux*)
15439      lt_prog_compiler_wl_GCJ='-Wl,'
15440      # PIC (with -KPIC) is the default.
15441      lt_prog_compiler_static_GCJ='-non_shared'
15442      ;;
15443
15444    newsos6)
15445      lt_prog_compiler_pic_GCJ='-KPIC'
15446      lt_prog_compiler_static_GCJ='-Bstatic'
15447      ;;
15448
15449    linux*)
15450      case $cc_basename in
15451      icc* | ecc*)
15452	lt_prog_compiler_wl_GCJ='-Wl,'
15453	lt_prog_compiler_pic_GCJ='-KPIC'
15454	lt_prog_compiler_static_GCJ='-static'
15455        ;;
15456      pgcc* | pgf77* | pgf90* | pgf95*)
15457        # Portland Group compilers (*not* the Pentium gcc compiler,
15458	# which looks to be a dead project)
15459	lt_prog_compiler_wl_GCJ='-Wl,'
15460	lt_prog_compiler_pic_GCJ='-fpic'
15461	lt_prog_compiler_static_GCJ='-Bstatic'
15462        ;;
15463      ccc*)
15464        lt_prog_compiler_wl_GCJ='-Wl,'
15465        # All Alpha code is PIC.
15466        lt_prog_compiler_static_GCJ='-non_shared'
15467        ;;
15468      esac
15469      ;;
15470
15471    osf3* | osf4* | osf5*)
15472      lt_prog_compiler_wl_GCJ='-Wl,'
15473      # All OSF/1 code is PIC.
15474      lt_prog_compiler_static_GCJ='-non_shared'
15475      ;;
15476
15477    sco3.2v5*)
15478      lt_prog_compiler_pic_GCJ='-Kpic'
15479      lt_prog_compiler_static_GCJ='-dn'
15480      ;;
15481
15482    solaris*)
15483      lt_prog_compiler_pic_GCJ='-KPIC'
15484      lt_prog_compiler_static_GCJ='-Bstatic'
15485      case $cc_basename in
15486      f77* | f90* | f95*)
15487	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15488      *)
15489	lt_prog_compiler_wl_GCJ='-Wl,';;
15490      esac
15491      ;;
15492
15493    sunos4*)
15494      lt_prog_compiler_wl_GCJ='-Qoption ld '
15495      lt_prog_compiler_pic_GCJ='-PIC'
15496      lt_prog_compiler_static_GCJ='-Bstatic'
15497      ;;
15498
15499    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15500      lt_prog_compiler_wl_GCJ='-Wl,'
15501      lt_prog_compiler_pic_GCJ='-KPIC'
15502      lt_prog_compiler_static_GCJ='-Bstatic'
15503      ;;
15504
15505    sysv4*MP*)
15506      if test -d /usr/nec ;then
15507	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15508	lt_prog_compiler_static_GCJ='-Bstatic'
15509      fi
15510      ;;
15511
15512    unicos*)
15513      lt_prog_compiler_wl_GCJ='-Wl,'
15514      lt_prog_compiler_can_build_shared_GCJ=no
15515      ;;
15516
15517    uts4*)
15518      lt_prog_compiler_pic_GCJ='-pic'
15519      lt_prog_compiler_static_GCJ='-Bstatic'
15520      ;;
15521
15522    *)
15523      lt_prog_compiler_can_build_shared_GCJ=no
15524      ;;
15525    esac
15526  fi
15527
15528echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15529echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15530
15531#
15532# Check to make sure the PIC flag actually works.
15533#
15534if test -n "$lt_prog_compiler_pic_GCJ"; then
15535
15536echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15537echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15538if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15539  echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541  lt_prog_compiler_pic_works_GCJ=no
15542  ac_outfile=conftest.$ac_objext
15543   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15544   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15545   # Insert the option either (1) after the last *FLAGS variable, or
15546   # (2) before a word containing "conftest.", or (3) at the end.
15547   # Note that $ac_compile itself does not contain backslashes and begins
15548   # with a dollar sign (not a hyphen), so the echo should work correctly.
15549   # The option is referenced via a variable to avoid confusing sed.
15550   lt_compile=`echo "$ac_compile" | $SED \
15551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15553   -e 's:$: $lt_compiler_flag:'`
15554   (eval echo "\"\$as_me:15554: $lt_compile\"" >&5)
15555   (eval "$lt_compile" 2>conftest.err)
15556   ac_status=$?
15557   cat conftest.err >&5
15558   echo "$as_me:15558: \$? = $ac_status" >&5
15559   if (exit $ac_status) && test -s "$ac_outfile"; then
15560     # The compiler can only warn and ignore the option if not recognized
15561     # So say no if there are warnings other than the usual output.
15562     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15563     $SED '/^$/d' conftest.err >conftest.er2
15564     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15565       lt_prog_compiler_pic_works_GCJ=yes
15566     fi
15567   fi
15568   $rm conftest*
15569
15570fi
15571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15572echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15573
15574if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15575    case $lt_prog_compiler_pic_GCJ in
15576     "" | " "*) ;;
15577     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15578     esac
15579else
15580    lt_prog_compiler_pic_GCJ=
15581     lt_prog_compiler_can_build_shared_GCJ=no
15582fi
15583
15584fi
15585case $host_os in
15586  # For platforms which do not support PIC, -DPIC is meaningless:
15587  *djgpp*)
15588    lt_prog_compiler_pic_GCJ=
15589    ;;
15590  *)
15591    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15592    ;;
15593esac
15594
15595echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15596echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15597if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15598  echo $ECHO_N "(cached) $ECHO_C" >&6
15599else
15600  lt_cv_prog_compiler_c_o_GCJ=no
15601   $rm -r conftest 2>/dev/null
15602   mkdir conftest
15603   cd conftest
15604   mkdir out
15605   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15606
15607   lt_compiler_flag="-o out/conftest2.$ac_objext"
15608   # Insert the option either (1) after the last *FLAGS variable, or
15609   # (2) before a word containing "conftest.", or (3) at the end.
15610   # Note that $ac_compile itself does not contain backslashes and begins
15611   # with a dollar sign (not a hyphen), so the echo should work correctly.
15612   lt_compile=`echo "$ac_compile" | $SED \
15613   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15614   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15615   -e 's:$: $lt_compiler_flag:'`
15616   (eval echo "\"\$as_me:15616: $lt_compile\"" >&5)
15617   (eval "$lt_compile" 2>out/conftest.err)
15618   ac_status=$?
15619   cat out/conftest.err >&5
15620   echo "$as_me:15620: \$? = $ac_status" >&5
15621   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15622   then
15623     # The compiler can only warn and ignore the option if not recognized
15624     # So say no if there are warnings
15625     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15626     $SED '/^$/d' out/conftest.err >out/conftest.er2
15627     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15628       lt_cv_prog_compiler_c_o_GCJ=yes
15629     fi
15630   fi
15631   chmod u+w . 2>&5
15632   $rm conftest*
15633   # SGI C++ compiler will create directory out/ii_files/ for
15634   # template instantiation
15635   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15636   $rm out/* && rmdir out
15637   cd ..
15638   rmdir conftest
15639   $rm conftest*
15640
15641fi
15642echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15643echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15644
15645
15646hard_links="nottested"
15647if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15648  # do not overwrite the value of need_locks provided by the user
15649  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15650echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15651  hard_links=yes
15652  $rm conftest*
15653  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15654  touch conftest.a
15655  ln conftest.a conftest.b 2>&5 || hard_links=no
15656  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15657  echo "$as_me:$LINENO: result: $hard_links" >&5
15658echo "${ECHO_T}$hard_links" >&6
15659  if test "$hard_links" = no; then
15660    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15661echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15662    need_locks=warn
15663  fi
15664else
15665  need_locks=no
15666fi
15667
15668echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15669echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15670
15671  runpath_var=
15672  allow_undefined_flag_GCJ=
15673  enable_shared_with_static_runtimes_GCJ=no
15674  archive_cmds_GCJ=
15675  archive_expsym_cmds_GCJ=
15676  old_archive_From_new_cmds_GCJ=
15677  old_archive_from_expsyms_cmds_GCJ=
15678  export_dynamic_flag_spec_GCJ=
15679  whole_archive_flag_spec_GCJ=
15680  thread_safe_flag_spec_GCJ=
15681  hardcode_libdir_flag_spec_GCJ=
15682  hardcode_libdir_flag_spec_ld_GCJ=
15683  hardcode_libdir_separator_GCJ=
15684  hardcode_direct_GCJ=no
15685  hardcode_minus_L_GCJ=no
15686  hardcode_shlibpath_var_GCJ=unsupported
15687  link_all_deplibs_GCJ=unknown
15688  hardcode_automatic_GCJ=no
15689  module_cmds_GCJ=
15690  module_expsym_cmds_GCJ=
15691  always_export_symbols_GCJ=no
15692  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15693  # include_expsyms should be a list of space-separated symbols to be *always*
15694  # included in the symbol list
15695  include_expsyms_GCJ=
15696  # exclude_expsyms can be an extended regexp of symbols to exclude
15697  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15698  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15699  # as well as any symbol that contains `d'.
15700  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15701  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15702  # platforms (ab)use it in PIC code, but their linkers get confused if
15703  # the symbol is explicitly referenced.  Since portable code cannot
15704  # rely on this symbol name, it's probably fine to never include it in
15705  # preloaded symbol tables.
15706  extract_expsyms_cmds=
15707  # Just being paranoid about ensuring that cc_basename is set.
15708  for cc_temp in $compiler""; do
15709  case $cc_temp in
15710    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15711    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15712    \-*) ;;
15713    *) break;;
15714  esac
15715done
15716cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15717
15718  case $host_os in
15719  cygwin* | mingw* | pw32*)
15720    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15721    # When not using gcc, we currently assume that we are using
15722    # Microsoft Visual C++.
15723    if test "$GCC" != yes; then
15724      with_gnu_ld=no
15725    fi
15726    ;;
15727  openbsd*)
15728    with_gnu_ld=no
15729    ;;
15730  esac
15731
15732  ld_shlibs_GCJ=yes
15733  if test "$with_gnu_ld" = yes; then
15734    # If archive_cmds runs LD, not CC, wlarc should be empty
15735    wlarc='${wl}'
15736
15737    # Set some defaults for GNU ld with shared library support. These
15738    # are reset later if shared libraries are not supported. Putting them
15739    # here allows them to be overridden if necessary.
15740    runpath_var=LD_RUN_PATH
15741    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15742    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15743    # ancient GNU ld didn't support --whole-archive et. al.
15744    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15745	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15746      else
15747  	whole_archive_flag_spec_GCJ=
15748    fi
15749    supports_anon_versioning=no
15750    case `$LD -v 2>/dev/null` in
15751      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15752      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15753      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15754      *\ 2.11.*) ;; # other 2.11 versions
15755      *) supports_anon_versioning=yes ;;
15756    esac
15757
15758    # See if GNU ld supports shared libraries.
15759    case $host_os in
15760    aix3* | aix4* | aix5*)
15761      # On AIX/PPC, the GNU linker is very broken
15762      if test "$host_cpu" != ia64; then
15763	ld_shlibs_GCJ=no
15764	cat <<EOF 1>&2
15765
15766*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15767*** to be unable to reliably create shared libraries on AIX.
15768*** Therefore, libtool is disabling shared libraries support.  If you
15769*** really care for shared libraries, you may want to modify your PATH
15770*** so that a non-GNU linker is found, and then restart.
15771
15772EOF
15773      fi
15774      ;;
15775
15776    amigaos*)
15777      archive_cmds_GCJ='$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)'
15778      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15779      hardcode_minus_L_GCJ=yes
15780
15781      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15782      # that the semantics of dynamic libraries on AmigaOS, at least up
15783      # to version 4, is to share data among multiple programs linked
15784      # with the same dynamic library.  Since this doesn't match the
15785      # behavior of shared libraries on other platforms, we can't use
15786      # them.
15787      ld_shlibs_GCJ=no
15788      ;;
15789
15790    beos*)
15791      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15792	allow_undefined_flag_GCJ=unsupported
15793	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15794	# support --undefined.  This deserves some investigation.  FIXME
15795	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796      else
15797	ld_shlibs_GCJ=no
15798      fi
15799      ;;
15800
15801    cygwin* | mingw* | pw32*)
15802      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15803      # as there is no search path for DLLs.
15804      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15805      allow_undefined_flag_GCJ=unsupported
15806      always_export_symbols_GCJ=no
15807      enable_shared_with_static_runtimes_GCJ=yes
15808      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15809
15810      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15811        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15812	# If the export-symbols file already is a .def file (1st line
15813	# is EXPORTS), use it as is; otherwise, prepend...
15814	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15815	  cp $export_symbols $output_objdir/$soname.def;
15816	else
15817	  echo EXPORTS > $output_objdir/$soname.def;
15818	  cat $export_symbols >> $output_objdir/$soname.def;
15819	fi~
15820	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15821      else
15822	ld_shlibs_GCJ=no
15823      fi
15824      ;;
15825
15826    linux*)
15827      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15828	tmp_addflag=
15829	case $cc_basename,$host_cpu in
15830	pgcc*)				# Portland Group C compiler
15831	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15832	  tmp_addflag=' $pic_flag'
15833	  ;;
15834	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15835	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15836	  tmp_addflag=' $pic_flag -Mnomain' ;;
15837	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15838	  tmp_addflag=' -i_dynamic' ;;
15839	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15840	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15841	ifc* | ifort*)			# Intel Fortran compiler
15842	  tmp_addflag=' -nofor_main' ;;
15843	esac
15844	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15845
15846	if test $supports_anon_versioning = yes; then
15847	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15848  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15849  $echo "local: *; };" >> $output_objdir/$libname.ver~
15850	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15851	fi
15852      else
15853	ld_shlibs_GCJ=no
15854      fi
15855      ;;
15856
15857    netbsd*)
15858      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15859	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15860	wlarc=
15861      else
15862	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15863	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15864      fi
15865      ;;
15866
15867    solaris* | sysv5*)
15868      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15869	ld_shlibs_GCJ=no
15870	cat <<EOF 1>&2
15871
15872*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15873*** create shared libraries on Solaris systems.  Therefore, libtool
15874*** is disabling shared libraries support.  We urge you to upgrade GNU
15875*** binutils to release 2.9.1 or newer.  Another option is to modify
15876*** your PATH or compiler configuration so that the native linker is
15877*** used, and then restart.
15878
15879EOF
15880      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15881	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15882	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15883      else
15884	ld_shlibs_GCJ=no
15885      fi
15886      ;;
15887
15888    sunos4*)
15889      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15890      wlarc=
15891      hardcode_direct_GCJ=yes
15892      hardcode_shlibpath_var_GCJ=no
15893      ;;
15894
15895    *)
15896      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15897	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15899      else
15900	ld_shlibs_GCJ=no
15901      fi
15902      ;;
15903    esac
15904
15905    if test "$ld_shlibs_GCJ" = no; then
15906      runpath_var=
15907      hardcode_libdir_flag_spec_GCJ=
15908      export_dynamic_flag_spec_GCJ=
15909      whole_archive_flag_spec_GCJ=
15910    fi
15911  else
15912    # PORTME fill in a description of your system's linker (not GNU ld)
15913    case $host_os in
15914    aix3*)
15915      allow_undefined_flag_GCJ=unsupported
15916      always_export_symbols_GCJ=yes
15917      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15918      # Note: this linker hardcodes the directories in LIBPATH if there
15919      # are no directories specified by -L.
15920      hardcode_minus_L_GCJ=yes
15921      if test "$GCC" = yes && test -z "$link_static_flag"; then
15922	# Neither direct hardcoding nor static linking is supported with a
15923	# broken collect2.
15924	hardcode_direct_GCJ=unsupported
15925      fi
15926      ;;
15927
15928    aix4* | aix5*)
15929      if test "$host_cpu" = ia64; then
15930	# On IA64, the linker does run time linking by default, so we don't
15931	# have to do anything special.
15932	aix_use_runtimelinking=no
15933	exp_sym_flag='-Bexport'
15934	no_entry_flag=""
15935      else
15936	# If we're using GNU nm, then we don't want the "-C" option.
15937	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15938	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15939	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15940	else
15941	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15942	fi
15943	aix_use_runtimelinking=no
15944
15945	# Test if we are trying to use run time linking or normal
15946	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15947	# need to do runtime linking.
15948	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15949	  for ld_flag in $LDFLAGS; do
15950  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15951  	    aix_use_runtimelinking=yes
15952  	    break
15953  	  fi
15954	  done
15955	esac
15956
15957	exp_sym_flag='-bexport'
15958	no_entry_flag='-bnoentry'
15959      fi
15960
15961      # When large executables or shared objects are built, AIX ld can
15962      # have problems creating the table of contents.  If linking a library
15963      # or program results in "error TOC overflow" add -mminimal-toc to
15964      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15965      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15966
15967      archive_cmds_GCJ=''
15968      hardcode_direct_GCJ=yes
15969      hardcode_libdir_separator_GCJ=':'
15970      link_all_deplibs_GCJ=yes
15971
15972      if test "$GCC" = yes; then
15973	case $host_os in aix4.[012]|aix4.[012].*)
15974	# We only want to do this on AIX 4.2 and lower, the check
15975	# below for broken collect2 doesn't work under 4.3+
15976	  collect2name=`${CC} -print-prog-name=collect2`
15977	  if test -f "$collect2name" && \
15978  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15979	  then
15980  	  # We have reworked collect2
15981  	  hardcode_direct_GCJ=yes
15982	  else
15983  	  # We have old collect2
15984  	  hardcode_direct_GCJ=unsupported
15985  	  # It fails to find uninstalled libraries when the uninstalled
15986  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15987  	  # to unsupported forces relinking
15988  	  hardcode_minus_L_GCJ=yes
15989  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990  	  hardcode_libdir_separator_GCJ=
15991	  fi
15992	esac
15993	shared_flag='-shared'
15994	if test "$aix_use_runtimelinking" = yes; then
15995	  shared_flag="$shared_flag "'${wl}-G'
15996	fi
15997      else
15998	# not using gcc
15999	if test "$host_cpu" = ia64; then
16000  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16001  	# chokes on -Wl,-G. The following line is correct:
16002	  shared_flag='-G'
16003	else
16004  	if test "$aix_use_runtimelinking" = yes; then
16005	    shared_flag='${wl}-G'
16006	  else
16007	    shared_flag='${wl}-bM:SRE'
16008  	fi
16009	fi
16010      fi
16011
16012      # It seems that -bexpall does not export symbols beginning with
16013      # underscore (_), so it is better to generate a list of symbols to export.
16014      always_export_symbols_GCJ=yes
16015      if test "$aix_use_runtimelinking" = yes; then
16016	# Warning - without using the other runtime loading flags (-brtl),
16017	# -berok will link without error, but may produce a broken library.
16018	allow_undefined_flag_GCJ='-berok'
16019       # Determine the default libpath from the value encoded in an empty executable.
16020       cat >conftest.$ac_ext <<_ACEOF
16021/* confdefs.h.  */
16022_ACEOF
16023cat confdefs.h >>conftest.$ac_ext
16024cat >>conftest.$ac_ext <<_ACEOF
16025/* end confdefs.h.  */
16026
16027int
16028main ()
16029{
16030
16031  ;
16032  return 0;
16033}
16034_ACEOF
16035rm -f conftest.$ac_objext conftest$ac_exeext
16036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16037  (eval $ac_link) 2>conftest.er1
16038  ac_status=$?
16039  grep -v '^ *+' conftest.er1 >conftest.err
16040  rm -f conftest.er1
16041  cat conftest.err >&5
16042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043  (exit $ac_status); } &&
16044	 { ac_try='test -z "$ac_c_werror_flag"
16045			 || test ! -s conftest.err'
16046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047  (eval $ac_try) 2>&5
16048  ac_status=$?
16049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050  (exit $ac_status); }; } &&
16051	 { ac_try='test -s conftest$ac_exeext'
16052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053  (eval $ac_try) 2>&5
16054  ac_status=$?
16055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056  (exit $ac_status); }; }; then
16057
16058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16059}'`
16060# Check for a 64-bit object if we didn't find anything.
16061if 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; }
16062}'`; fi
16063else
16064  echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
16067fi
16068rm -f conftest.err conftest.$ac_objext \
16069      conftest$ac_exeext conftest.$ac_ext
16070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16071
16072       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16073	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16074       else
16075	if test "$host_cpu" = ia64; then
16076	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16077	  allow_undefined_flag_GCJ="-z nodefs"
16078	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16079	else
16080	 # Determine the default libpath from the value encoded in an empty executable.
16081	 cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h.  */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h.  */
16087
16088int
16089main ()
16090{
16091
16092  ;
16093  return 0;
16094}
16095_ACEOF
16096rm -f conftest.$ac_objext conftest$ac_exeext
16097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098  (eval $ac_link) 2>conftest.er1
16099  ac_status=$?
16100  grep -v '^ *+' conftest.er1 >conftest.err
16101  rm -f conftest.er1
16102  cat conftest.err >&5
16103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104  (exit $ac_status); } &&
16105	 { ac_try='test -z "$ac_c_werror_flag"
16106			 || test ! -s conftest.err'
16107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108  (eval $ac_try) 2>&5
16109  ac_status=$?
16110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111  (exit $ac_status); }; } &&
16112	 { ac_try='test -s conftest$ac_exeext'
16113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114  (eval $ac_try) 2>&5
16115  ac_status=$?
16116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117  (exit $ac_status); }; }; then
16118
16119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16120}'`
16121# Check for a 64-bit object if we didn't find anything.
16122if 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; }
16123}'`; fi
16124else
16125  echo "$as_me: failed program was:" >&5
16126sed 's/^/| /' conftest.$ac_ext >&5
16127
16128fi
16129rm -f conftest.err conftest.$ac_objext \
16130      conftest$ac_exeext conftest.$ac_ext
16131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16132
16133	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16134	  # Warning - without using the other run time loading flags,
16135	  # -berok will link without error, but may produce a broken library.
16136	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16137	  allow_undefined_flag_GCJ=' ${wl}-berok'
16138	  # -bexpall does not export symbols beginning with underscore (_)
16139	  always_export_symbols_GCJ=yes
16140	  # Exported symbols can be pulled into shared objects from archives
16141	  whole_archive_flag_spec_GCJ=' '
16142	  archive_cmds_need_lc_GCJ=yes
16143	  # This is similar to how AIX traditionally builds its shared libraries.
16144	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16145	fi
16146      fi
16147      ;;
16148
16149    amigaos*)
16150      archive_cmds_GCJ='$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)'
16151      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16152      hardcode_minus_L_GCJ=yes
16153      # see comment about different semantics on the GNU ld section
16154      ld_shlibs_GCJ=no
16155      ;;
16156
16157    bsdi[45]*)
16158      export_dynamic_flag_spec_GCJ=-rdynamic
16159      ;;
16160
16161    cygwin* | mingw* | pw32*)
16162      # When not using gcc, we currently assume that we are using
16163      # Microsoft Visual C++.
16164      # hardcode_libdir_flag_spec is actually meaningless, as there is
16165      # no search path for DLLs.
16166      hardcode_libdir_flag_spec_GCJ=' '
16167      allow_undefined_flag_GCJ=unsupported
16168      # Tell ltmain to make .lib files, not .a files.
16169      libext=lib
16170      # Tell ltmain to make .dll files, not .so files.
16171      shrext_cmds=".dll"
16172      # FIXME: Setting linknames here is a bad hack.
16173      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16174      # The linker will automatically build a .lib file if we build a DLL.
16175      old_archive_From_new_cmds_GCJ='true'
16176      # FIXME: Should let the user specify the lib program.
16177      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16178      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16179      enable_shared_with_static_runtimes_GCJ=yes
16180      ;;
16181
16182    darwin* | rhapsody*)
16183      case $host_os in
16184        rhapsody* | darwin1.[012])
16185         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16186         ;;
16187       *) # Darwin 1.3 on
16188         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16189           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16190         else
16191           case ${MACOSX_DEPLOYMENT_TARGET} in
16192             10.[012])
16193               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16194               ;;
16195             10.*)
16196               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16197               ;;
16198           esac
16199         fi
16200         ;;
16201      esac
16202      archive_cmds_need_lc_GCJ=no
16203      hardcode_direct_GCJ=no
16204      hardcode_automatic_GCJ=yes
16205      hardcode_shlibpath_var_GCJ=unsupported
16206      whole_archive_flag_spec_GCJ=''
16207      link_all_deplibs_GCJ=yes
16208    if test "$GCC" = yes ; then
16209    	output_verbose_link_cmd='echo'
16210        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16211      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16212      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16213      archive_expsym_cmds_GCJ='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}'
16214      module_expsym_cmds_GCJ='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}'
16215    else
16216      case $cc_basename in
16217        xlc*)
16218         output_verbose_link_cmd='echo'
16219         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16220         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16221          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16222         archive_expsym_cmds_GCJ='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}'
16223          module_expsym_cmds_GCJ='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}'
16224          ;;
16225       *)
16226         ld_shlibs_GCJ=no
16227          ;;
16228      esac
16229    fi
16230      ;;
16231
16232    dgux*)
16233      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16234      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16235      hardcode_shlibpath_var_GCJ=no
16236      ;;
16237
16238    freebsd1*)
16239      ld_shlibs_GCJ=no
16240      ;;
16241
16242    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16243    # support.  Future versions do this automatically, but an explicit c++rt0.o
16244    # does not break anything, and helps significantly (at the cost of a little
16245    # extra space).
16246    freebsd2.2*)
16247      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16248      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16249      hardcode_direct_GCJ=yes
16250      hardcode_shlibpath_var_GCJ=no
16251      ;;
16252
16253    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16254    freebsd2*)
16255      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16256      hardcode_direct_GCJ=yes
16257      hardcode_minus_L_GCJ=yes
16258      hardcode_shlibpath_var_GCJ=no
16259      ;;
16260
16261    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16262    freebsd* | kfreebsd*-gnu | dragonfly*)
16263      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16264      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16265      hardcode_direct_GCJ=yes
16266      hardcode_shlibpath_var_GCJ=no
16267      ;;
16268
16269    hpux9*)
16270      if test "$GCC" = yes; then
16271	archive_cmds_GCJ='$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'
16272      else
16273	archive_cmds_GCJ='$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'
16274      fi
16275      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16276      hardcode_libdir_separator_GCJ=:
16277      hardcode_direct_GCJ=yes
16278
16279      # hardcode_minus_L: Not really in the search PATH,
16280      # but as the default location of the library.
16281      hardcode_minus_L_GCJ=yes
16282      export_dynamic_flag_spec_GCJ='${wl}-E'
16283      ;;
16284
16285    hpux10* | hpux11*)
16286      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16287	case $host_cpu in
16288	hppa*64*|ia64*)
16289	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16290	  ;;
16291	*)
16292	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16293	  ;;
16294	esac
16295      else
16296	case $host_cpu in
16297	hppa*64*|ia64*)
16298	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16299	  ;;
16300	*)
16301	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16302	  ;;
16303	esac
16304      fi
16305      if test "$with_gnu_ld" = no; then
16306	case $host_cpu in
16307	hppa*64*)
16308	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16309	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16310	  hardcode_libdir_separator_GCJ=:
16311	  hardcode_direct_GCJ=no
16312	  hardcode_shlibpath_var_GCJ=no
16313	  ;;
16314	ia64*)
16315	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316	  hardcode_direct_GCJ=no
16317	  hardcode_shlibpath_var_GCJ=no
16318
16319	  # hardcode_minus_L: Not really in the search PATH,
16320	  # but as the default location of the library.
16321	  hardcode_minus_L_GCJ=yes
16322	  ;;
16323	*)
16324	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16325	  hardcode_libdir_separator_GCJ=:
16326	  hardcode_direct_GCJ=yes
16327	  export_dynamic_flag_spec_GCJ='${wl}-E'
16328
16329	  # hardcode_minus_L: Not really in the search PATH,
16330	  # but as the default location of the library.
16331	  hardcode_minus_L_GCJ=yes
16332	  ;;
16333	esac
16334      fi
16335      ;;
16336
16337    irix5* | irix6* | nonstopux*)
16338      if test "$GCC" = yes; then
16339	archive_cmds_GCJ='$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'
16340      else
16341	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16342	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16343      fi
16344      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16345      hardcode_libdir_separator_GCJ=:
16346      link_all_deplibs_GCJ=yes
16347      ;;
16348
16349    netbsd*)
16350      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16351	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16352      else
16353	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16354      fi
16355      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16356      hardcode_direct_GCJ=yes
16357      hardcode_shlibpath_var_GCJ=no
16358      ;;
16359
16360    newsos6)
16361      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362      hardcode_direct_GCJ=yes
16363      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16364      hardcode_libdir_separator_GCJ=:
16365      hardcode_shlibpath_var_GCJ=no
16366      ;;
16367
16368    openbsd*)
16369      hardcode_direct_GCJ=yes
16370      hardcode_shlibpath_var_GCJ=no
16371      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16372	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16373	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16374	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16375	export_dynamic_flag_spec_GCJ='${wl}-E'
16376      else
16377       case $host_os in
16378	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16379	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16380	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16381	   ;;
16382	 *)
16383	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16384	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16385	   ;;
16386       esac
16387      fi
16388      ;;
16389
16390    os2*)
16391      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16392      hardcode_minus_L_GCJ=yes
16393      allow_undefined_flag_GCJ=unsupported
16394      archive_cmds_GCJ='$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'
16395      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16396      ;;
16397
16398    osf3*)
16399      if test "$GCC" = yes; then
16400	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16401	archive_cmds_GCJ='$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'
16402      else
16403	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16404	archive_cmds_GCJ='$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'
16405      fi
16406      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16407      hardcode_libdir_separator_GCJ=:
16408      ;;
16409
16410    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16411      if test "$GCC" = yes; then
16412	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16413	archive_cmds_GCJ='$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'
16414	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16415      else
16416	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16417	archive_cmds_GCJ='$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'
16418	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16419	$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'
16420
16421	# Both c and cxx compiler support -rpath directly
16422	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16423      fi
16424      hardcode_libdir_separator_GCJ=:
16425      ;;
16426
16427    sco3.2v5*)
16428      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16429      hardcode_shlibpath_var_GCJ=no
16430      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16431      runpath_var=LD_RUN_PATH
16432      hardcode_runpath_var=yes
16433      ;;
16434
16435    solaris*)
16436      no_undefined_flag_GCJ=' -z text'
16437      if test "$GCC" = yes; then
16438	wlarc='${wl}'
16439	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16442      else
16443	wlarc=''
16444	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16446  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16447      fi
16448      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16449      hardcode_shlibpath_var_GCJ=no
16450      case $host_os in
16451      solaris2.[0-5] | solaris2.[0-5].*) ;;
16452      *)
16453 	# The compiler driver will combine linker options so we
16454 	# cannot just pass the convience library names through
16455 	# without $wl, iff we do not link with $LD.
16456 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16457 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16458 	case $wlarc in
16459 	'')
16460 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16461 	*)
16462 	  whole_archive_flag_spec_GCJ='${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' ;;
16463 	esac ;;
16464      esac
16465      link_all_deplibs_GCJ=yes
16466      ;;
16467
16468    sunos4*)
16469      if test "x$host_vendor" = xsequent; then
16470	# Use $CC to link under sequent, because it throws in some extra .o
16471	# files that make .init and .fini sections work.
16472	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16473      else
16474	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16475      fi
16476      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16477      hardcode_direct_GCJ=yes
16478      hardcode_minus_L_GCJ=yes
16479      hardcode_shlibpath_var_GCJ=no
16480      ;;
16481
16482    sysv4)
16483      case $host_vendor in
16484	sni)
16485	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486	  hardcode_direct_GCJ=yes # is this really true???
16487	;;
16488	siemens)
16489	  ## LD is ld it makes a PLAMLIB
16490	  ## CC just makes a GrossModule.
16491	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16492	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16493	  hardcode_direct_GCJ=no
16494        ;;
16495	motorola)
16496	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16497	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16498	;;
16499      esac
16500      runpath_var='LD_RUN_PATH'
16501      hardcode_shlibpath_var_GCJ=no
16502      ;;
16503
16504    sysv4.3*)
16505      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16506      hardcode_shlibpath_var_GCJ=no
16507      export_dynamic_flag_spec_GCJ='-Bexport'
16508      ;;
16509
16510    sysv4*MP*)
16511      if test -d /usr/nec; then
16512	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513	hardcode_shlibpath_var_GCJ=no
16514	runpath_var=LD_RUN_PATH
16515	hardcode_runpath_var=yes
16516	ld_shlibs_GCJ=yes
16517      fi
16518      ;;
16519
16520    sysv4.2uw2*)
16521      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16522      hardcode_direct_GCJ=yes
16523      hardcode_minus_L_GCJ=no
16524      hardcode_shlibpath_var_GCJ=no
16525      hardcode_runpath_var=yes
16526      runpath_var=LD_RUN_PATH
16527      ;;
16528
16529   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16530      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16531      if test "$GCC" = yes; then
16532	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533      else
16534	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16535      fi
16536      runpath_var='LD_RUN_PATH'
16537      hardcode_shlibpath_var_GCJ=no
16538      ;;
16539
16540    sysv5*)
16541      no_undefined_flag_GCJ=' -z text'
16542      # $CC -shared without GNU ld will not create a library from C++
16543      # object files and a static libstdc++, better avoid it by now
16544      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16545      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16546  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16547      hardcode_libdir_flag_spec_GCJ=
16548      hardcode_shlibpath_var_GCJ=no
16549      runpath_var='LD_RUN_PATH'
16550      ;;
16551
16552    uts4*)
16553      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16555      hardcode_shlibpath_var_GCJ=no
16556      ;;
16557
16558    *)
16559      ld_shlibs_GCJ=no
16560      ;;
16561    esac
16562  fi
16563
16564echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16565echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16566test "$ld_shlibs_GCJ" = no && can_build_shared=no
16567
16568variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16569if test "$GCC" = yes; then
16570  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16571fi
16572
16573#
16574# Do we need to explicitly link libc?
16575#
16576case "x$archive_cmds_need_lc_GCJ" in
16577x|xyes)
16578  # Assume -lc should be added
16579  archive_cmds_need_lc_GCJ=yes
16580
16581  if test "$enable_shared" = yes && test "$GCC" = yes; then
16582    case $archive_cmds_GCJ in
16583    *'~'*)
16584      # FIXME: we may have to deal with multi-command sequences.
16585      ;;
16586    '$CC '*)
16587      # Test whether the compiler implicitly links with -lc since on some
16588      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16589      # to ld, don't add -lc before -lgcc.
16590      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16591echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16592      $rm conftest*
16593      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16594
16595      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16596  (eval $ac_compile) 2>&5
16597  ac_status=$?
16598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599  (exit $ac_status); } 2>conftest.err; then
16600        soname=conftest
16601        lib=conftest
16602        libobjs=conftest.$ac_objext
16603        deplibs=
16604        wl=$lt_prog_compiler_wl_GCJ
16605        compiler_flags=-v
16606        linker_flags=-v
16607        verstring=
16608        output_objdir=.
16609        libname=conftest
16610        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16611        allow_undefined_flag_GCJ=
16612        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16613  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16614  ac_status=$?
16615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616  (exit $ac_status); }
16617        then
16618	  archive_cmds_need_lc_GCJ=no
16619        else
16620	  archive_cmds_need_lc_GCJ=yes
16621        fi
16622        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16623      else
16624        cat conftest.err 1>&5
16625      fi
16626      $rm conftest*
16627      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16628echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16629      ;;
16630    esac
16631  fi
16632  ;;
16633esac
16634
16635echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16636echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16637library_names_spec=
16638libname_spec='lib$name'
16639soname_spec=
16640shrext_cmds=".so"
16641postinstall_cmds=
16642postuninstall_cmds=
16643finish_cmds=
16644finish_eval=
16645shlibpath_var=
16646shlibpath_overrides_runpath=unknown
16647version_type=none
16648dynamic_linker="$host_os ld.so"
16649sys_lib_dlsearch_path_spec="/lib /usr/lib"
16650if test "$GCC" = yes; then
16651  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16652  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16653    # if the path contains ";" then we assume it to be the separator
16654    # otherwise default to the standard path separator (i.e. ":") - it is
16655    # assumed that no part of a normal pathname contains ";" but that should
16656    # okay in the real world where ";" in dirpaths is itself problematic.
16657    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16658  else
16659    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16660  fi
16661else
16662  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16663fi
16664need_lib_prefix=unknown
16665hardcode_into_libs=no
16666
16667# when you set need_version to no, make sure it does not cause -set_version
16668# flags to be left without arguments
16669need_version=unknown
16670
16671case $host_os in
16672aix3*)
16673  version_type=linux
16674  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16675  shlibpath_var=LIBPATH
16676
16677  # AIX 3 has no versioning support, so we append a major version to the name.
16678  soname_spec='${libname}${release}${shared_ext}$major'
16679  ;;
16680
16681aix4* | aix5*)
16682  version_type=linux
16683  need_lib_prefix=no
16684  need_version=no
16685  hardcode_into_libs=yes
16686  if test "$host_cpu" = ia64; then
16687    # AIX 5 supports IA64
16688    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16689    shlibpath_var=LD_LIBRARY_PATH
16690  else
16691    # With GCC up to 2.95.x, collect2 would create an import file
16692    # for dependence libraries.  The import file would start with
16693    # the line `#! .'.  This would cause the generated library to
16694    # depend on `.', always an invalid library.  This was fixed in
16695    # development snapshots of GCC prior to 3.0.
16696    case $host_os in
16697      aix4 | aix4.[01] | aix4.[01].*)
16698      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16699	   echo ' yes '
16700	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16701	:
16702      else
16703	can_build_shared=no
16704      fi
16705      ;;
16706    esac
16707    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16708    # soname into executable. Probably we can add versioning support to
16709    # collect2, so additional links can be useful in future.
16710    if test "$aix_use_runtimelinking" = yes; then
16711      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16712      # instead of lib<name>.a to let people know that these are not
16713      # typical AIX shared libraries.
16714      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715    else
16716      # We preserve .a as extension for shared libraries through AIX4.2
16717      # and later when we are not doing run time linking.
16718      library_names_spec='${libname}${release}.a $libname.a'
16719      soname_spec='${libname}${release}${shared_ext}$major'
16720    fi
16721    shlibpath_var=LIBPATH
16722  fi
16723  ;;
16724
16725amigaos*)
16726  library_names_spec='$libname.ixlibrary $libname.a'
16727  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16728  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'
16729  ;;
16730
16731beos*)
16732  library_names_spec='${libname}${shared_ext}'
16733  dynamic_linker="$host_os ld.so"
16734  shlibpath_var=LIBRARY_PATH
16735  ;;
16736
16737bsdi[45]*)
16738  version_type=linux
16739  need_version=no
16740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16741  soname_spec='${libname}${release}${shared_ext}$major'
16742  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16743  shlibpath_var=LD_LIBRARY_PATH
16744  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16745  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16746  # the default ld.so.conf also contains /usr/contrib/lib and
16747  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16748  # libtool to hard-code these into programs
16749  ;;
16750
16751cygwin* | mingw* | pw32*)
16752  version_type=windows
16753  shrext_cmds=".dll"
16754  need_version=no
16755  need_lib_prefix=no
16756
16757  case $GCC,$host_os in
16758  yes,cygwin* | yes,mingw* | yes,pw32*)
16759    library_names_spec='$libname.dll.a'
16760    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16761    postinstall_cmds='base_file=`basename \${file}`~
16762      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16763      dldir=$destdir/`dirname \$dlpath`~
16764      test -d \$dldir || mkdir -p \$dldir~
16765      $install_prog $dir/$dlname \$dldir/$dlname~
16766      chmod a+x \$dldir/$dlname'
16767    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16768      dlpath=$dir/\$dldll~
16769       $rm \$dlpath'
16770    shlibpath_overrides_runpath=yes
16771
16772    case $host_os in
16773    cygwin*)
16774      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16775      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16777      ;;
16778    mingw*)
16779      # MinGW DLLs use traditional 'lib' prefix
16780      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16781      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16782      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16783        # It is most probably a Windows format PATH printed by
16784        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16785        # path with ; separators, and with drive letters. We can handle the
16786        # drive letters (cygwin fileutils understands them), so leave them,
16787        # especially as we might pass files found there to a mingw objdump,
16788        # which wouldn't understand a cygwinified path. Ahh.
16789        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16790      else
16791        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16792      fi
16793      ;;
16794    pw32*)
16795      # pw32 DLLs use 'pw' prefix rather than 'lib'
16796      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16797      ;;
16798    esac
16799    ;;
16800
16801  *)
16802    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16803    ;;
16804  esac
16805  dynamic_linker='Win32 ld.exe'
16806  # FIXME: first we should search . and the directory the executable is in
16807  shlibpath_var=PATH
16808  ;;
16809
16810darwin* | rhapsody*)
16811  dynamic_linker="$host_os dyld"
16812  version_type=darwin
16813  need_lib_prefix=no
16814  need_version=no
16815  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16816  soname_spec='${libname}${release}${major}$shared_ext'
16817  shlibpath_overrides_runpath=yes
16818  shlibpath_var=DYLD_LIBRARY_PATH
16819  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16820  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16821  if test "$GCC" = yes; then
16822    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"`
16823  else
16824    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16825  fi
16826  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16827  ;;
16828
16829dgux*)
16830  version_type=linux
16831  need_lib_prefix=no
16832  need_version=no
16833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16834  soname_spec='${libname}${release}${shared_ext}$major'
16835  shlibpath_var=LD_LIBRARY_PATH
16836  ;;
16837
16838freebsd1*)
16839  dynamic_linker=no
16840  ;;
16841
16842kfreebsd*-gnu)
16843  version_type=linux
16844  need_lib_prefix=no
16845  need_version=no
16846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16847  soname_spec='${libname}${release}${shared_ext}$major'
16848  shlibpath_var=LD_LIBRARY_PATH
16849  shlibpath_overrides_runpath=no
16850  hardcode_into_libs=yes
16851  dynamic_linker='GNU ld.so'
16852  ;;
16853
16854freebsd* | dragonfly*)
16855  # DragonFly does not have aout.  When/if they implement a new
16856  # versioning mechanism, adjust this.
16857  if test -x /usr/bin/objformat; then
16858    objformat=`/usr/bin/objformat`
16859  else
16860    case $host_os in
16861    freebsd[123]*) objformat=aout ;;
16862    *) objformat=elf ;;
16863    esac
16864  fi
16865  version_type=freebsd-$objformat
16866  case $version_type in
16867    freebsd-elf*)
16868      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16869      need_version=no
16870      need_lib_prefix=no
16871      ;;
16872    freebsd-*)
16873      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16874      need_version=yes
16875      ;;
16876  esac
16877  shlibpath_var=LD_LIBRARY_PATH
16878  case $host_os in
16879  freebsd2*)
16880    shlibpath_overrides_runpath=yes
16881    ;;
16882  freebsd3.[01]* | freebsdelf3.[01]*)
16883    shlibpath_overrides_runpath=yes
16884    hardcode_into_libs=yes
16885    ;;
16886  *) # from 3.2 on
16887    shlibpath_overrides_runpath=no
16888    hardcode_into_libs=yes
16889    ;;
16890  esac
16891  ;;
16892
16893gnu*)
16894  version_type=linux
16895  need_lib_prefix=no
16896  need_version=no
16897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16898  soname_spec='${libname}${release}${shared_ext}$major'
16899  shlibpath_var=LD_LIBRARY_PATH
16900  hardcode_into_libs=yes
16901  ;;
16902
16903hpux9* | hpux10* | hpux11*)
16904  # Give a soname corresponding to the major version so that dld.sl refuses to
16905  # link against other versions.
16906  version_type=sunos
16907  need_lib_prefix=no
16908  need_version=no
16909  case $host_cpu in
16910  ia64*)
16911    shrext_cmds='.so'
16912    hardcode_into_libs=yes
16913    dynamic_linker="$host_os dld.so"
16914    shlibpath_var=LD_LIBRARY_PATH
16915    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917    soname_spec='${libname}${release}${shared_ext}$major'
16918    if test "X$HPUX_IA64_MODE" = X32; then
16919      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16920    else
16921      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16922    fi
16923    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16924    ;;
16925   hppa*64*)
16926     shrext_cmds='.sl'
16927     hardcode_into_libs=yes
16928     dynamic_linker="$host_os dld.sl"
16929     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16930     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932     soname_spec='${libname}${release}${shared_ext}$major'
16933     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16934     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16935     ;;
16936   *)
16937    shrext_cmds='.sl'
16938    dynamic_linker="$host_os dld.sl"
16939    shlibpath_var=SHLIB_PATH
16940    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942    soname_spec='${libname}${release}${shared_ext}$major'
16943    ;;
16944  esac
16945  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16946  postinstall_cmds='chmod 555 $lib'
16947  ;;
16948
16949irix5* | irix6* | nonstopux*)
16950  case $host_os in
16951    nonstopux*) version_type=nonstopux ;;
16952    *)
16953	if test "$lt_cv_prog_gnu_ld" = yes; then
16954		version_type=linux
16955	else
16956		version_type=irix
16957	fi ;;
16958  esac
16959  need_lib_prefix=no
16960  need_version=no
16961  soname_spec='${libname}${release}${shared_ext}$major'
16962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16963  case $host_os in
16964  irix5* | nonstopux*)
16965    libsuff= shlibsuff=
16966    ;;
16967  *)
16968    case $LD in # libtool.m4 will add one of these switches to LD
16969    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16970      libsuff= shlibsuff= libmagic=32-bit;;
16971    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16972      libsuff=32 shlibsuff=N32 libmagic=N32;;
16973    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16974      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16975    *) libsuff= shlibsuff= libmagic=never-match;;
16976    esac
16977    ;;
16978  esac
16979  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16980  shlibpath_overrides_runpath=no
16981  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16982  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16983  hardcode_into_libs=yes
16984  ;;
16985
16986# No shared lib support for Linux oldld, aout, or coff.
16987linux*oldld* | linux*aout* | linux*coff*)
16988  dynamic_linker=no
16989  ;;
16990
16991# This must be Linux ELF.
16992linux*)
16993  version_type=linux
16994  need_lib_prefix=no
16995  need_version=no
16996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16997  soname_spec='${libname}${release}${shared_ext}$major'
16998  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16999  shlibpath_var=LD_LIBRARY_PATH
17000  shlibpath_overrides_runpath=no
17001  # This implies no fast_install, which is unacceptable.
17002  # Some rework will be needed to allow for fast_install
17003  # before this can be enabled.
17004  hardcode_into_libs=yes
17005
17006  # Append ld.so.conf contents to the search path
17007  if test -f /etc/ld.so.conf; then
17008    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' ' '`
17009    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17010  fi
17011
17012  # We used to test for /lib/ld.so.1 and disable shared libraries on
17013  # powerpc, because MkLinux only supported shared libraries with the
17014  # GNU dynamic linker.  Since this was broken with cross compilers,
17015  # most powerpc-linux boxes support dynamic linking these days and
17016  # people can always --disable-shared, the test was removed, and we
17017  # assume the GNU/Linux dynamic linker is in use.
17018  dynamic_linker='GNU/Linux ld.so'
17019  ;;
17020
17021knetbsd*-gnu)
17022  version_type=linux
17023  need_lib_prefix=no
17024  need_version=no
17025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17026  soname_spec='${libname}${release}${shared_ext}$major'
17027  shlibpath_var=LD_LIBRARY_PATH
17028  shlibpath_overrides_runpath=no
17029  hardcode_into_libs=yes
17030  dynamic_linker='GNU ld.so'
17031  ;;
17032
17033netbsd*)
17034  version_type=sunos
17035  need_lib_prefix=no
17036  need_version=no
17037  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17038    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17039    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17040    dynamic_linker='NetBSD (a.out) ld.so'
17041  else
17042    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17043    soname_spec='${libname}${release}${shared_ext}$major'
17044    dynamic_linker='NetBSD ld.elf_so'
17045  fi
17046  shlibpath_var=LD_LIBRARY_PATH
17047  shlibpath_overrides_runpath=yes
17048  hardcode_into_libs=yes
17049  ;;
17050
17051newsos6)
17052  version_type=linux
17053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17054  shlibpath_var=LD_LIBRARY_PATH
17055  shlibpath_overrides_runpath=yes
17056  ;;
17057
17058nto-qnx*)
17059  version_type=linux
17060  need_lib_prefix=no
17061  need_version=no
17062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063  soname_spec='${libname}${release}${shared_ext}$major'
17064  shlibpath_var=LD_LIBRARY_PATH
17065  shlibpath_overrides_runpath=yes
17066  ;;
17067
17068openbsd*)
17069  version_type=sunos
17070  need_lib_prefix=no
17071  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17072  case $host_os in
17073    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17074    *)                         need_version=no  ;;
17075  esac
17076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17077  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17078  shlibpath_var=LD_LIBRARY_PATH
17079  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17080    case $host_os in
17081      openbsd2.[89] | openbsd2.[89].*)
17082	shlibpath_overrides_runpath=no
17083	;;
17084      *)
17085	shlibpath_overrides_runpath=yes
17086	;;
17087      esac
17088  else
17089    shlibpath_overrides_runpath=yes
17090  fi
17091  ;;
17092
17093os2*)
17094  libname_spec='$name'
17095  shrext_cmds=".dll"
17096  need_lib_prefix=no
17097  library_names_spec='$libname${shared_ext} $libname.a'
17098  dynamic_linker='OS/2 ld.exe'
17099  shlibpath_var=LIBPATH
17100  ;;
17101
17102osf3* | osf4* | osf5*)
17103  version_type=osf
17104  need_lib_prefix=no
17105  need_version=no
17106  soname_spec='${libname}${release}${shared_ext}$major'
17107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108  shlibpath_var=LD_LIBRARY_PATH
17109  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17110  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17111  ;;
17112
17113sco3.2v5*)
17114  version_type=osf
17115  soname_spec='${libname}${release}${shared_ext}$major'
17116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117  shlibpath_var=LD_LIBRARY_PATH
17118  ;;
17119
17120solaris*)
17121  version_type=linux
17122  need_lib_prefix=no
17123  need_version=no
17124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125  soname_spec='${libname}${release}${shared_ext}$major'
17126  shlibpath_var=LD_LIBRARY_PATH
17127  shlibpath_overrides_runpath=yes
17128  hardcode_into_libs=yes
17129  # ldd complains unless libraries are executable
17130  postinstall_cmds='chmod +x $lib'
17131  ;;
17132
17133sunos4*)
17134  version_type=sunos
17135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17136  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17137  shlibpath_var=LD_LIBRARY_PATH
17138  shlibpath_overrides_runpath=yes
17139  if test "$with_gnu_ld" = yes; then
17140    need_lib_prefix=no
17141  fi
17142  need_version=yes
17143  ;;
17144
17145sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17146  version_type=linux
17147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148  soname_spec='${libname}${release}${shared_ext}$major'
17149  shlibpath_var=LD_LIBRARY_PATH
17150  case $host_vendor in
17151    sni)
17152      shlibpath_overrides_runpath=no
17153      need_lib_prefix=no
17154      export_dynamic_flag_spec='${wl}-Blargedynsym'
17155      runpath_var=LD_RUN_PATH
17156      ;;
17157    siemens)
17158      need_lib_prefix=no
17159      ;;
17160    motorola)
17161      need_lib_prefix=no
17162      need_version=no
17163      shlibpath_overrides_runpath=no
17164      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17165      ;;
17166  esac
17167  ;;
17168
17169sysv4*MP*)
17170  if test -d /usr/nec ;then
17171    version_type=linux
17172    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17173    soname_spec='$libname${shared_ext}.$major'
17174    shlibpath_var=LD_LIBRARY_PATH
17175  fi
17176  ;;
17177
17178uts4*)
17179  version_type=linux
17180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17181  soname_spec='${libname}${release}${shared_ext}$major'
17182  shlibpath_var=LD_LIBRARY_PATH
17183  ;;
17184
17185*)
17186  dynamic_linker=no
17187  ;;
17188esac
17189echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17190echo "${ECHO_T}$dynamic_linker" >&6
17191test "$dynamic_linker" = no && can_build_shared=no
17192
17193echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17194echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17195hardcode_action_GCJ=
17196if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17197   test -n "$runpath_var_GCJ" || \
17198   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17199
17200  # We can hardcode non-existant directories.
17201  if test "$hardcode_direct_GCJ" != no &&
17202     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17203     # have to relink, otherwise we might link with an installed library
17204     # when we should be linking with a yet-to-be-installed one
17205     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17206     test "$hardcode_minus_L_GCJ" != no; then
17207    # Linking always hardcodes the temporary library directory.
17208    hardcode_action_GCJ=relink
17209  else
17210    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17211    hardcode_action_GCJ=immediate
17212  fi
17213else
17214  # We cannot hardcode anything, or else we can only hardcode existing
17215  # directories.
17216  hardcode_action_GCJ=unsupported
17217fi
17218echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17219echo "${ECHO_T}$hardcode_action_GCJ" >&6
17220
17221if test "$hardcode_action_GCJ" = relink; then
17222  # Fast installation is not supported
17223  enable_fast_install=no
17224elif test "$shlibpath_overrides_runpath" = yes ||
17225     test "$enable_shared" = no; then
17226  # Fast installation is not necessary
17227  enable_fast_install=needless
17228fi
17229
17230striplib=
17231old_striplib=
17232echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17233echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17234if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17235  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17236  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17237  echo "$as_me:$LINENO: result: yes" >&5
17238echo "${ECHO_T}yes" >&6
17239else
17240# FIXME - insert some real tests, host_os isn't really good enough
17241  case $host_os in
17242   darwin*)
17243       if test -n "$STRIP" ; then
17244         striplib="$STRIP -x"
17245         echo "$as_me:$LINENO: result: yes" >&5
17246echo "${ECHO_T}yes" >&6
17247       else
17248  echo "$as_me:$LINENO: result: no" >&5
17249echo "${ECHO_T}no" >&6
17250fi
17251       ;;
17252   *)
17253  echo "$as_me:$LINENO: result: no" >&5
17254echo "${ECHO_T}no" >&6
17255    ;;
17256  esac
17257fi
17258
17259if test "x$enable_dlopen" != xyes; then
17260  enable_dlopen=unknown
17261  enable_dlopen_self=unknown
17262  enable_dlopen_self_static=unknown
17263else
17264  lt_cv_dlopen=no
17265  lt_cv_dlopen_libs=
17266
17267  case $host_os in
17268  beos*)
17269    lt_cv_dlopen="load_add_on"
17270    lt_cv_dlopen_libs=
17271    lt_cv_dlopen_self=yes
17272    ;;
17273
17274  mingw* | pw32*)
17275    lt_cv_dlopen="LoadLibrary"
17276    lt_cv_dlopen_libs=
17277   ;;
17278
17279  cygwin*)
17280    lt_cv_dlopen="dlopen"
17281    lt_cv_dlopen_libs=
17282   ;;
17283
17284  darwin*)
17285  # if libdl is installed we need to link against it
17286    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17287echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17288if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17289  echo $ECHO_N "(cached) $ECHO_C" >&6
17290else
17291  ac_check_lib_save_LIBS=$LIBS
17292LIBS="-ldl  $LIBS"
17293cat >conftest.$ac_ext <<_ACEOF
17294/* confdefs.h.  */
17295_ACEOF
17296cat confdefs.h >>conftest.$ac_ext
17297cat >>conftest.$ac_ext <<_ACEOF
17298/* end confdefs.h.  */
17299
17300/* Override any gcc2 internal prototype to avoid an error.  */
17301#ifdef __cplusplus
17302extern "C"
17303#endif
17304/* We use char because int might match the return type of a gcc2
17305   builtin and then its argument prototype would still apply.  */
17306char dlopen ();
17307int
17308main ()
17309{
17310dlopen ();
17311  ;
17312  return 0;
17313}
17314_ACEOF
17315rm -f conftest.$ac_objext conftest$ac_exeext
17316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317  (eval $ac_link) 2>conftest.er1
17318  ac_status=$?
17319  grep -v '^ *+' conftest.er1 >conftest.err
17320  rm -f conftest.er1
17321  cat conftest.err >&5
17322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323  (exit $ac_status); } &&
17324	 { ac_try='test -z "$ac_c_werror_flag"
17325			 || test ! -s conftest.err'
17326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327  (eval $ac_try) 2>&5
17328  ac_status=$?
17329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330  (exit $ac_status); }; } &&
17331	 { ac_try='test -s conftest$ac_exeext'
17332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333  (eval $ac_try) 2>&5
17334  ac_status=$?
17335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336  (exit $ac_status); }; }; then
17337  ac_cv_lib_dl_dlopen=yes
17338else
17339  echo "$as_me: failed program was:" >&5
17340sed 's/^/| /' conftest.$ac_ext >&5
17341
17342ac_cv_lib_dl_dlopen=no
17343fi
17344rm -f conftest.err conftest.$ac_objext \
17345      conftest$ac_exeext conftest.$ac_ext
17346LIBS=$ac_check_lib_save_LIBS
17347fi
17348echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17349echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17350if test $ac_cv_lib_dl_dlopen = yes; then
17351  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17352else
17353
17354    lt_cv_dlopen="dyld"
17355    lt_cv_dlopen_libs=
17356    lt_cv_dlopen_self=yes
17357
17358fi
17359
17360   ;;
17361
17362  *)
17363    echo "$as_me:$LINENO: checking for shl_load" >&5
17364echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17365if test "${ac_cv_func_shl_load+set}" = set; then
17366  echo $ECHO_N "(cached) $ECHO_C" >&6
17367else
17368  cat >conftest.$ac_ext <<_ACEOF
17369/* confdefs.h.  */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h.  */
17374/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17375   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17376#define shl_load innocuous_shl_load
17377
17378/* System header to define __stub macros and hopefully few prototypes,
17379    which can conflict with char shl_load (); below.
17380    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381    <limits.h> exists even on freestanding compilers.  */
17382
17383#ifdef __STDC__
17384# include <limits.h>
17385#else
17386# include <assert.h>
17387#endif
17388
17389#undef shl_load
17390
17391/* Override any gcc2 internal prototype to avoid an error.  */
17392#ifdef __cplusplus
17393extern "C"
17394{
17395#endif
17396/* We use char because int might match the return type of a gcc2
17397   builtin and then its argument prototype would still apply.  */
17398char shl_load ();
17399/* The GNU C library defines this for functions which it implements
17400    to always fail with ENOSYS.  Some functions are actually named
17401    something starting with __ and the normal name is an alias.  */
17402#if defined (__stub_shl_load) || defined (__stub___shl_load)
17403choke me
17404#else
17405char (*f) () = shl_load;
17406#endif
17407#ifdef __cplusplus
17408}
17409#endif
17410
17411int
17412main ()
17413{
17414return f != shl_load;
17415  ;
17416  return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext conftest$ac_exeext
17420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17421  (eval $ac_link) 2>conftest.er1
17422  ac_status=$?
17423  grep -v '^ *+' conftest.er1 >conftest.err
17424  rm -f conftest.er1
17425  cat conftest.err >&5
17426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427  (exit $ac_status); } &&
17428	 { ac_try='test -z "$ac_c_werror_flag"
17429			 || test ! -s conftest.err'
17430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431  (eval $ac_try) 2>&5
17432  ac_status=$?
17433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434  (exit $ac_status); }; } &&
17435	 { ac_try='test -s conftest$ac_exeext'
17436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437  (eval $ac_try) 2>&5
17438  ac_status=$?
17439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440  (exit $ac_status); }; }; then
17441  ac_cv_func_shl_load=yes
17442else
17443  echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446ac_cv_func_shl_load=no
17447fi
17448rm -f conftest.err conftest.$ac_objext \
17449      conftest$ac_exeext conftest.$ac_ext
17450fi
17451echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17452echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17453if test $ac_cv_func_shl_load = yes; then
17454  lt_cv_dlopen="shl_load"
17455else
17456  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17457echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17458if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17459  echo $ECHO_N "(cached) $ECHO_C" >&6
17460else
17461  ac_check_lib_save_LIBS=$LIBS
17462LIBS="-ldld  $LIBS"
17463cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h.  */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h.  */
17469
17470/* Override any gcc2 internal prototype to avoid an error.  */
17471#ifdef __cplusplus
17472extern "C"
17473#endif
17474/* We use char because int might match the return type of a gcc2
17475   builtin and then its argument prototype would still apply.  */
17476char shl_load ();
17477int
17478main ()
17479{
17480shl_load ();
17481  ;
17482  return 0;
17483}
17484_ACEOF
17485rm -f conftest.$ac_objext conftest$ac_exeext
17486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487  (eval $ac_link) 2>conftest.er1
17488  ac_status=$?
17489  grep -v '^ *+' conftest.er1 >conftest.err
17490  rm -f conftest.er1
17491  cat conftest.err >&5
17492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493  (exit $ac_status); } &&
17494	 { ac_try='test -z "$ac_c_werror_flag"
17495			 || test ! -s conftest.err'
17496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497  (eval $ac_try) 2>&5
17498  ac_status=$?
17499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500  (exit $ac_status); }; } &&
17501	 { ac_try='test -s conftest$ac_exeext'
17502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503  (eval $ac_try) 2>&5
17504  ac_status=$?
17505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506  (exit $ac_status); }; }; then
17507  ac_cv_lib_dld_shl_load=yes
17508else
17509  echo "$as_me: failed program was:" >&5
17510sed 's/^/| /' conftest.$ac_ext >&5
17511
17512ac_cv_lib_dld_shl_load=no
17513fi
17514rm -f conftest.err conftest.$ac_objext \
17515      conftest$ac_exeext conftest.$ac_ext
17516LIBS=$ac_check_lib_save_LIBS
17517fi
17518echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17519echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17520if test $ac_cv_lib_dld_shl_load = yes; then
17521  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17522else
17523  echo "$as_me:$LINENO: checking for dlopen" >&5
17524echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17525if test "${ac_cv_func_dlopen+set}" = set; then
17526  echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528  cat >conftest.$ac_ext <<_ACEOF
17529/* confdefs.h.  */
17530_ACEOF
17531cat confdefs.h >>conftest.$ac_ext
17532cat >>conftest.$ac_ext <<_ACEOF
17533/* end confdefs.h.  */
17534/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17535   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17536#define dlopen innocuous_dlopen
17537
17538/* System header to define __stub macros and hopefully few prototypes,
17539    which can conflict with char dlopen (); below.
17540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17541    <limits.h> exists even on freestanding compilers.  */
17542
17543#ifdef __STDC__
17544# include <limits.h>
17545#else
17546# include <assert.h>
17547#endif
17548
17549#undef dlopen
17550
17551/* Override any gcc2 internal prototype to avoid an error.  */
17552#ifdef __cplusplus
17553extern "C"
17554{
17555#endif
17556/* We use char because int might match the return type of a gcc2
17557   builtin and then its argument prototype would still apply.  */
17558char dlopen ();
17559/* The GNU C library defines this for functions which it implements
17560    to always fail with ENOSYS.  Some functions are actually named
17561    something starting with __ and the normal name is an alias.  */
17562#if defined (__stub_dlopen) || defined (__stub___dlopen)
17563choke me
17564#else
17565char (*f) () = dlopen;
17566#endif
17567#ifdef __cplusplus
17568}
17569#endif
17570
17571int
17572main ()
17573{
17574return f != dlopen;
17575  ;
17576  return 0;
17577}
17578_ACEOF
17579rm -f conftest.$ac_objext conftest$ac_exeext
17580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17581  (eval $ac_link) 2>conftest.er1
17582  ac_status=$?
17583  grep -v '^ *+' conftest.er1 >conftest.err
17584  rm -f conftest.er1
17585  cat conftest.err >&5
17586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587  (exit $ac_status); } &&
17588	 { ac_try='test -z "$ac_c_werror_flag"
17589			 || test ! -s conftest.err'
17590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591  (eval $ac_try) 2>&5
17592  ac_status=$?
17593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594  (exit $ac_status); }; } &&
17595	 { ac_try='test -s conftest$ac_exeext'
17596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597  (eval $ac_try) 2>&5
17598  ac_status=$?
17599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600  (exit $ac_status); }; }; then
17601  ac_cv_func_dlopen=yes
17602else
17603  echo "$as_me: failed program was:" >&5
17604sed 's/^/| /' conftest.$ac_ext >&5
17605
17606ac_cv_func_dlopen=no
17607fi
17608rm -f conftest.err conftest.$ac_objext \
17609      conftest$ac_exeext conftest.$ac_ext
17610fi
17611echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17612echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17613if test $ac_cv_func_dlopen = yes; then
17614  lt_cv_dlopen="dlopen"
17615else
17616  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17617echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17618if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17619  echo $ECHO_N "(cached) $ECHO_C" >&6
17620else
17621  ac_check_lib_save_LIBS=$LIBS
17622LIBS="-ldl  $LIBS"
17623cat >conftest.$ac_ext <<_ACEOF
17624/* confdefs.h.  */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
17628/* end confdefs.h.  */
17629
17630/* Override any gcc2 internal prototype to avoid an error.  */
17631#ifdef __cplusplus
17632extern "C"
17633#endif
17634/* We use char because int might match the return type of a gcc2
17635   builtin and then its argument prototype would still apply.  */
17636char dlopen ();
17637int
17638main ()
17639{
17640dlopen ();
17641  ;
17642  return 0;
17643}
17644_ACEOF
17645rm -f conftest.$ac_objext conftest$ac_exeext
17646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647  (eval $ac_link) 2>conftest.er1
17648  ac_status=$?
17649  grep -v '^ *+' conftest.er1 >conftest.err
17650  rm -f conftest.er1
17651  cat conftest.err >&5
17652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653  (exit $ac_status); } &&
17654	 { ac_try='test -z "$ac_c_werror_flag"
17655			 || test ! -s conftest.err'
17656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657  (eval $ac_try) 2>&5
17658  ac_status=$?
17659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660  (exit $ac_status); }; } &&
17661	 { ac_try='test -s conftest$ac_exeext'
17662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663  (eval $ac_try) 2>&5
17664  ac_status=$?
17665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666  (exit $ac_status); }; }; then
17667  ac_cv_lib_dl_dlopen=yes
17668else
17669  echo "$as_me: failed program was:" >&5
17670sed 's/^/| /' conftest.$ac_ext >&5
17671
17672ac_cv_lib_dl_dlopen=no
17673fi
17674rm -f conftest.err conftest.$ac_objext \
17675      conftest$ac_exeext conftest.$ac_ext
17676LIBS=$ac_check_lib_save_LIBS
17677fi
17678echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17679echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17680if test $ac_cv_lib_dl_dlopen = yes; then
17681  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17682else
17683  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17684echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17685if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17686  echo $ECHO_N "(cached) $ECHO_C" >&6
17687else
17688  ac_check_lib_save_LIBS=$LIBS
17689LIBS="-lsvld  $LIBS"
17690cat >conftest.$ac_ext <<_ACEOF
17691/* confdefs.h.  */
17692_ACEOF
17693cat confdefs.h >>conftest.$ac_ext
17694cat >>conftest.$ac_ext <<_ACEOF
17695/* end confdefs.h.  */
17696
17697/* Override any gcc2 internal prototype to avoid an error.  */
17698#ifdef __cplusplus
17699extern "C"
17700#endif
17701/* We use char because int might match the return type of a gcc2
17702   builtin and then its argument prototype would still apply.  */
17703char dlopen ();
17704int
17705main ()
17706{
17707dlopen ();
17708  ;
17709  return 0;
17710}
17711_ACEOF
17712rm -f conftest.$ac_objext conftest$ac_exeext
17713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714  (eval $ac_link) 2>conftest.er1
17715  ac_status=$?
17716  grep -v '^ *+' conftest.er1 >conftest.err
17717  rm -f conftest.er1
17718  cat conftest.err >&5
17719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720  (exit $ac_status); } &&
17721	 { ac_try='test -z "$ac_c_werror_flag"
17722			 || test ! -s conftest.err'
17723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724  (eval $ac_try) 2>&5
17725  ac_status=$?
17726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727  (exit $ac_status); }; } &&
17728	 { ac_try='test -s conftest$ac_exeext'
17729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730  (eval $ac_try) 2>&5
17731  ac_status=$?
17732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733  (exit $ac_status); }; }; then
17734  ac_cv_lib_svld_dlopen=yes
17735else
17736  echo "$as_me: failed program was:" >&5
17737sed 's/^/| /' conftest.$ac_ext >&5
17738
17739ac_cv_lib_svld_dlopen=no
17740fi
17741rm -f conftest.err conftest.$ac_objext \
17742      conftest$ac_exeext conftest.$ac_ext
17743LIBS=$ac_check_lib_save_LIBS
17744fi
17745echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17746echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17747if test $ac_cv_lib_svld_dlopen = yes; then
17748  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17749else
17750  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17751echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17752if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17753  echo $ECHO_N "(cached) $ECHO_C" >&6
17754else
17755  ac_check_lib_save_LIBS=$LIBS
17756LIBS="-ldld  $LIBS"
17757cat >conftest.$ac_ext <<_ACEOF
17758/* confdefs.h.  */
17759_ACEOF
17760cat confdefs.h >>conftest.$ac_ext
17761cat >>conftest.$ac_ext <<_ACEOF
17762/* end confdefs.h.  */
17763
17764/* Override any gcc2 internal prototype to avoid an error.  */
17765#ifdef __cplusplus
17766extern "C"
17767#endif
17768/* We use char because int might match the return type of a gcc2
17769   builtin and then its argument prototype would still apply.  */
17770char dld_link ();
17771int
17772main ()
17773{
17774dld_link ();
17775  ;
17776  return 0;
17777}
17778_ACEOF
17779rm -f conftest.$ac_objext conftest$ac_exeext
17780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17781  (eval $ac_link) 2>conftest.er1
17782  ac_status=$?
17783  grep -v '^ *+' conftest.er1 >conftest.err
17784  rm -f conftest.er1
17785  cat conftest.err >&5
17786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787  (exit $ac_status); } &&
17788	 { ac_try='test -z "$ac_c_werror_flag"
17789			 || test ! -s conftest.err'
17790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791  (eval $ac_try) 2>&5
17792  ac_status=$?
17793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794  (exit $ac_status); }; } &&
17795	 { ac_try='test -s conftest$ac_exeext'
17796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797  (eval $ac_try) 2>&5
17798  ac_status=$?
17799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800  (exit $ac_status); }; }; then
17801  ac_cv_lib_dld_dld_link=yes
17802else
17803  echo "$as_me: failed program was:" >&5
17804sed 's/^/| /' conftest.$ac_ext >&5
17805
17806ac_cv_lib_dld_dld_link=no
17807fi
17808rm -f conftest.err conftest.$ac_objext \
17809      conftest$ac_exeext conftest.$ac_ext
17810LIBS=$ac_check_lib_save_LIBS
17811fi
17812echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17813echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17814if test $ac_cv_lib_dld_dld_link = yes; then
17815  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17816fi
17817
17818
17819fi
17820
17821
17822fi
17823
17824
17825fi
17826
17827
17828fi
17829
17830
17831fi
17832
17833    ;;
17834  esac
17835
17836  if test "x$lt_cv_dlopen" != xno; then
17837    enable_dlopen=yes
17838  else
17839    enable_dlopen=no
17840  fi
17841
17842  case $lt_cv_dlopen in
17843  dlopen)
17844    save_CPPFLAGS="$CPPFLAGS"
17845    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17846
17847    save_LDFLAGS="$LDFLAGS"
17848    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17849
17850    save_LIBS="$LIBS"
17851    LIBS="$lt_cv_dlopen_libs $LIBS"
17852
17853    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17854echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17855if test "${lt_cv_dlopen_self+set}" = set; then
17856  echo $ECHO_N "(cached) $ECHO_C" >&6
17857else
17858  	  if test "$cross_compiling" = yes; then :
17859  lt_cv_dlopen_self=cross
17860else
17861  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17862  lt_status=$lt_dlunknown
17863  cat > conftest.$ac_ext <<EOF
17864#line 17864 "configure"
17865#include "confdefs.h"
17866
17867#if HAVE_DLFCN_H
17868#include <dlfcn.h>
17869#endif
17870
17871#include <stdio.h>
17872
17873#ifdef RTLD_GLOBAL
17874#  define LT_DLGLOBAL		RTLD_GLOBAL
17875#else
17876#  ifdef DL_GLOBAL
17877#    define LT_DLGLOBAL		DL_GLOBAL
17878#  else
17879#    define LT_DLGLOBAL		0
17880#  endif
17881#endif
17882
17883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17884   find out it does not work in some platform. */
17885#ifndef LT_DLLAZY_OR_NOW
17886#  ifdef RTLD_LAZY
17887#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17888#  else
17889#    ifdef DL_LAZY
17890#      define LT_DLLAZY_OR_NOW		DL_LAZY
17891#    else
17892#      ifdef RTLD_NOW
17893#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17894#      else
17895#        ifdef DL_NOW
17896#          define LT_DLLAZY_OR_NOW	DL_NOW
17897#        else
17898#          define LT_DLLAZY_OR_NOW	0
17899#        endif
17900#      endif
17901#    endif
17902#  endif
17903#endif
17904
17905#ifdef __cplusplus
17906extern "C" void exit (int);
17907#endif
17908
17909void fnord() { int i=42;}
17910int main ()
17911{
17912  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17913  int status = $lt_dlunknown;
17914
17915  if (self)
17916    {
17917      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17918      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17919      /* dlclose (self); */
17920    }
17921
17922    exit (status);
17923}
17924EOF
17925  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17926  (eval $ac_link) 2>&5
17927  ac_status=$?
17928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17930    (./conftest; exit; ) >&5 2>/dev/null
17931    lt_status=$?
17932    case x$lt_status in
17933      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17934      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17935      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17936    esac
17937  else :
17938    # compilation failed
17939    lt_cv_dlopen_self=no
17940  fi
17941fi
17942rm -fr conftest*
17943
17944
17945fi
17946echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17947echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17948
17949    if test "x$lt_cv_dlopen_self" = xyes; then
17950      LDFLAGS="$LDFLAGS $link_static_flag"
17951      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17952echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17953if test "${lt_cv_dlopen_self_static+set}" = set; then
17954  echo $ECHO_N "(cached) $ECHO_C" >&6
17955else
17956  	  if test "$cross_compiling" = yes; then :
17957  lt_cv_dlopen_self_static=cross
17958else
17959  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960  lt_status=$lt_dlunknown
17961  cat > conftest.$ac_ext <<EOF
17962#line 17962 "configure"
17963#include "confdefs.h"
17964
17965#if HAVE_DLFCN_H
17966#include <dlfcn.h>
17967#endif
17968
17969#include <stdio.h>
17970
17971#ifdef RTLD_GLOBAL
17972#  define LT_DLGLOBAL		RTLD_GLOBAL
17973#else
17974#  ifdef DL_GLOBAL
17975#    define LT_DLGLOBAL		DL_GLOBAL
17976#  else
17977#    define LT_DLGLOBAL		0
17978#  endif
17979#endif
17980
17981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982   find out it does not work in some platform. */
17983#ifndef LT_DLLAZY_OR_NOW
17984#  ifdef RTLD_LAZY
17985#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17986#  else
17987#    ifdef DL_LAZY
17988#      define LT_DLLAZY_OR_NOW		DL_LAZY
17989#    else
17990#      ifdef RTLD_NOW
17991#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17992#      else
17993#        ifdef DL_NOW
17994#          define LT_DLLAZY_OR_NOW	DL_NOW
17995#        else
17996#          define LT_DLLAZY_OR_NOW	0
17997#        endif
17998#      endif
17999#    endif
18000#  endif
18001#endif
18002
18003#ifdef __cplusplus
18004extern "C" void exit (int);
18005#endif
18006
18007void fnord() { int i=42;}
18008int main ()
18009{
18010  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18011  int status = $lt_dlunknown;
18012
18013  if (self)
18014    {
18015      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18016      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18017      /* dlclose (self); */
18018    }
18019
18020    exit (status);
18021}
18022EOF
18023  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024  (eval $ac_link) 2>&5
18025  ac_status=$?
18026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18028    (./conftest; exit; ) >&5 2>/dev/null
18029    lt_status=$?
18030    case x$lt_status in
18031      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18032      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18033      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18034    esac
18035  else :
18036    # compilation failed
18037    lt_cv_dlopen_self_static=no
18038  fi
18039fi
18040rm -fr conftest*
18041
18042
18043fi
18044echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18045echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18046    fi
18047
18048    CPPFLAGS="$save_CPPFLAGS"
18049    LDFLAGS="$save_LDFLAGS"
18050    LIBS="$save_LIBS"
18051    ;;
18052  esac
18053
18054  case $lt_cv_dlopen_self in
18055  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18056  *) enable_dlopen_self=unknown ;;
18057  esac
18058
18059  case $lt_cv_dlopen_self_static in
18060  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18061  *) enable_dlopen_self_static=unknown ;;
18062  esac
18063fi
18064
18065
18066# The else clause should only fire when bootstrapping the
18067# libtool distribution, otherwise you forgot to ship ltmain.sh
18068# with your package, and you will get complaints that there are
18069# no rules to generate ltmain.sh.
18070if test -f "$ltmain"; then
18071  # See if we are running on zsh, and set the options which allow our commands through
18072  # without removal of \ escapes.
18073  if test -n "${ZSH_VERSION+set}" ; then
18074    setopt NO_GLOB_SUBST
18075  fi
18076  # Now quote all the things that may contain metacharacters while being
18077  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18078  # variables and quote the copies for generation of the libtool script.
18079  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18080    SED SHELL STRIP \
18081    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18082    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18083    deplibs_check_method reload_flag reload_cmds need_locks \
18084    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18085    lt_cv_sys_global_symbol_to_c_name_address \
18086    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18087    old_postinstall_cmds old_postuninstall_cmds \
18088    compiler_GCJ \
18089    CC_GCJ \
18090    LD_GCJ \
18091    lt_prog_compiler_wl_GCJ \
18092    lt_prog_compiler_pic_GCJ \
18093    lt_prog_compiler_static_GCJ \
18094    lt_prog_compiler_no_builtin_flag_GCJ \
18095    export_dynamic_flag_spec_GCJ \
18096    thread_safe_flag_spec_GCJ \
18097    whole_archive_flag_spec_GCJ \
18098    enable_shared_with_static_runtimes_GCJ \
18099    old_archive_cmds_GCJ \
18100    old_archive_from_new_cmds_GCJ \
18101    predep_objects_GCJ \
18102    postdep_objects_GCJ \
18103    predeps_GCJ \
18104    postdeps_GCJ \
18105    compiler_lib_search_path_GCJ \
18106    archive_cmds_GCJ \
18107    archive_expsym_cmds_GCJ \
18108    postinstall_cmds_GCJ \
18109    postuninstall_cmds_GCJ \
18110    old_archive_from_expsyms_cmds_GCJ \
18111    allow_undefined_flag_GCJ \
18112    no_undefined_flag_GCJ \
18113    export_symbols_cmds_GCJ \
18114    hardcode_libdir_flag_spec_GCJ \
18115    hardcode_libdir_flag_spec_ld_GCJ \
18116    hardcode_libdir_separator_GCJ \
18117    hardcode_automatic_GCJ \
18118    module_cmds_GCJ \
18119    module_expsym_cmds_GCJ \
18120    lt_cv_prog_compiler_c_o_GCJ \
18121    exclude_expsyms_GCJ \
18122    include_expsyms_GCJ; do
18123
18124    case $var in
18125    old_archive_cmds_GCJ | \
18126    old_archive_from_new_cmds_GCJ | \
18127    archive_cmds_GCJ | \
18128    archive_expsym_cmds_GCJ | \
18129    module_cmds_GCJ | \
18130    module_expsym_cmds_GCJ | \
18131    old_archive_from_expsyms_cmds_GCJ | \
18132    export_symbols_cmds_GCJ | \
18133    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18134    postinstall_cmds | postuninstall_cmds | \
18135    old_postinstall_cmds | old_postuninstall_cmds | \
18136    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18137      # Double-quote double-evaled strings.
18138      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18139      ;;
18140    *)
18141      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18142      ;;
18143    esac
18144  done
18145
18146  case $lt_echo in
18147  *'\$0 --fallback-echo"')
18148    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18149    ;;
18150  esac
18151
18152cfgfile="$ofile"
18153
18154  cat <<__EOF__ >> "$cfgfile"
18155# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18156
18157# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18158
18159# Shell to use when invoking shell scripts.
18160SHELL=$lt_SHELL
18161
18162# Whether or not to build shared libraries.
18163build_libtool_libs=$enable_shared
18164
18165# Whether or not to build static libraries.
18166build_old_libs=$enable_static
18167
18168# Whether or not to add -lc for building shared libraries.
18169build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18170
18171# Whether or not to disallow shared libs when runtime libs are static
18172allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18173
18174# Whether or not to optimize for fast installation.
18175fast_install=$enable_fast_install
18176
18177# The host system.
18178host_alias=$host_alias
18179host=$host
18180host_os=$host_os
18181
18182# The build system.
18183build_alias=$build_alias
18184build=$build
18185build_os=$build_os
18186
18187# An echo program that does not interpret backslashes.
18188echo=$lt_echo
18189
18190# The archiver.
18191AR=$lt_AR
18192AR_FLAGS=$lt_AR_FLAGS
18193
18194# A C compiler.
18195LTCC=$lt_LTCC
18196
18197# A language-specific compiler.
18198CC=$lt_compiler_GCJ
18199
18200# Is the compiler the GNU C compiler?
18201with_gcc=$GCC_GCJ
18202
18203# An ERE matcher.
18204EGREP=$lt_EGREP
18205
18206# The linker used to build libraries.
18207LD=$lt_LD_GCJ
18208
18209# Whether we need hard or soft links.
18210LN_S=$lt_LN_S
18211
18212# A BSD-compatible nm program.
18213NM=$lt_NM
18214
18215# A symbol stripping program
18216STRIP=$lt_STRIP
18217
18218# Used to examine libraries when file_magic_cmd begins "file"
18219MAGIC_CMD=$MAGIC_CMD
18220
18221# Used on cygwin: DLL creation program.
18222DLLTOOL="$DLLTOOL"
18223
18224# Used on cygwin: object dumper.
18225OBJDUMP="$OBJDUMP"
18226
18227# Used on cygwin: assembler.
18228AS="$AS"
18229
18230# The name of the directory that contains temporary libtool files.
18231objdir=$objdir
18232
18233# How to create reloadable object files.
18234reload_flag=$lt_reload_flag
18235reload_cmds=$lt_reload_cmds
18236
18237# How to pass a linker flag through the compiler.
18238wl=$lt_lt_prog_compiler_wl_GCJ
18239
18240# Object file suffix (normally "o").
18241objext="$ac_objext"
18242
18243# Old archive suffix (normally "a").
18244libext="$libext"
18245
18246# Shared library suffix (normally ".so").
18247shrext_cmds='$shrext_cmds'
18248
18249# Executable file suffix (normally "").
18250exeext="$exeext"
18251
18252# Additional compiler flags for building library objects.
18253pic_flag=$lt_lt_prog_compiler_pic_GCJ
18254pic_mode=$pic_mode
18255
18256# What is the maximum length of a command?
18257max_cmd_len=$lt_cv_sys_max_cmd_len
18258
18259# Does compiler simultaneously support -c and -o options?
18260compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18261
18262# Must we lock files when doing compilation?
18263need_locks=$lt_need_locks
18264
18265# Do we need the lib prefix for modules?
18266need_lib_prefix=$need_lib_prefix
18267
18268# Do we need a version for libraries?
18269need_version=$need_version
18270
18271# Whether dlopen is supported.
18272dlopen_support=$enable_dlopen
18273
18274# Whether dlopen of programs is supported.
18275dlopen_self=$enable_dlopen_self
18276
18277# Whether dlopen of statically linked programs is supported.
18278dlopen_self_static=$enable_dlopen_self_static
18279
18280# Compiler flag to prevent dynamic linking.
18281link_static_flag=$lt_lt_prog_compiler_static_GCJ
18282
18283# Compiler flag to turn off builtin functions.
18284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18285
18286# Compiler flag to allow reflexive dlopens.
18287export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18288
18289# Compiler flag to generate shared objects directly from archives.
18290whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18291
18292# Compiler flag to generate thread-safe objects.
18293thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18294
18295# Library versioning type.
18296version_type=$version_type
18297
18298# Format of library name prefix.
18299libname_spec=$lt_libname_spec
18300
18301# List of archive names.  First name is the real one, the rest are links.
18302# The last name is the one that the linker finds with -lNAME.
18303library_names_spec=$lt_library_names_spec
18304
18305# The coded name of the library, if different from the real name.
18306soname_spec=$lt_soname_spec
18307
18308# Commands used to build and install an old-style archive.
18309RANLIB=$lt_RANLIB
18310old_archive_cmds=$lt_old_archive_cmds_GCJ
18311old_postinstall_cmds=$lt_old_postinstall_cmds
18312old_postuninstall_cmds=$lt_old_postuninstall_cmds
18313
18314# Create an old-style archive from a shared archive.
18315old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18316
18317# Create a temporary old-style archive to link instead of a shared archive.
18318old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18319
18320# Commands used to build and install a shared archive.
18321archive_cmds=$lt_archive_cmds_GCJ
18322archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18323postinstall_cmds=$lt_postinstall_cmds
18324postuninstall_cmds=$lt_postuninstall_cmds
18325
18326# Commands used to build a loadable module (assumed same as above if empty)
18327module_cmds=$lt_module_cmds_GCJ
18328module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18329
18330# Commands to strip libraries.
18331old_striplib=$lt_old_striplib
18332striplib=$lt_striplib
18333
18334# Dependencies to place before the objects being linked to create a
18335# shared library.
18336predep_objects=$lt_predep_objects_GCJ
18337
18338# Dependencies to place after the objects being linked to create a
18339# shared library.
18340postdep_objects=$lt_postdep_objects_GCJ
18341
18342# Dependencies to place before the objects being linked to create a
18343# shared library.
18344predeps=$lt_predeps_GCJ
18345
18346# Dependencies to place after the objects being linked to create a
18347# shared library.
18348postdeps=$lt_postdeps_GCJ
18349
18350# The library search path used internally by the compiler when linking
18351# a shared library.
18352compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18353
18354# Method to check whether dependent libraries are shared objects.
18355deplibs_check_method=$lt_deplibs_check_method
18356
18357# Command to use when deplibs_check_method == file_magic.
18358file_magic_cmd=$lt_file_magic_cmd
18359
18360# Flag that allows shared libraries with undefined symbols to be built.
18361allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18362
18363# Flag that forces no undefined symbols.
18364no_undefined_flag=$lt_no_undefined_flag_GCJ
18365
18366# Commands used to finish a libtool library installation in a directory.
18367finish_cmds=$lt_finish_cmds
18368
18369# Same as above, but a single script fragment to be evaled but not shown.
18370finish_eval=$lt_finish_eval
18371
18372# Take the output of nm and produce a listing of raw symbols and C names.
18373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18374
18375# Transform the output of nm in a proper C declaration
18376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18377
18378# Transform the output of nm in a C name address pair
18379global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18380
18381# This is the shared library runtime path variable.
18382runpath_var=$runpath_var
18383
18384# This is the shared library path variable.
18385shlibpath_var=$shlibpath_var
18386
18387# Is shlibpath searched before the hard-coded library search path?
18388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18389
18390# How to hardcode a shared library path into an executable.
18391hardcode_action=$hardcode_action_GCJ
18392
18393# Whether we should hardcode library paths into libraries.
18394hardcode_into_libs=$hardcode_into_libs
18395
18396# Flag to hardcode \$libdir into a binary during linking.
18397# This must work even if \$libdir does not exist.
18398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18399
18400# If ld is used when linking, flag to hardcode \$libdir into
18401# a binary during linking. This must work even if \$libdir does
18402# not exist.
18403hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18404
18405# Whether we need a single -rpath flag with a separated argument.
18406hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18407
18408# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18409# resulting binary.
18410hardcode_direct=$hardcode_direct_GCJ
18411
18412# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18413# resulting binary.
18414hardcode_minus_L=$hardcode_minus_L_GCJ
18415
18416# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18417# the resulting binary.
18418hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18419
18420# Set to yes if building a shared library automatically hardcodes DIR into the library
18421# and all subsequent libraries and executables linked against it.
18422hardcode_automatic=$hardcode_automatic_GCJ
18423
18424# Variables whose values should be saved in libtool wrapper scripts and
18425# restored at relink time.
18426variables_saved_for_relink="$variables_saved_for_relink"
18427
18428# Whether libtool must link a program against all its dependency libraries.
18429link_all_deplibs=$link_all_deplibs_GCJ
18430
18431# Compile-time system search path for libraries
18432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18433
18434# Run-time system search path for libraries
18435sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18436
18437# Fix the shell variable \$srcfile for the compiler.
18438fix_srcfile_path="$fix_srcfile_path_GCJ"
18439
18440# Set to yes if exported symbols are required.
18441always_export_symbols=$always_export_symbols_GCJ
18442
18443# The commands to list exported symbols.
18444export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18445
18446# The commands to extract the exported symbol list from a shared archive.
18447extract_expsyms_cmds=$lt_extract_expsyms_cmds
18448
18449# Symbols that should not be listed in the preloaded symbols.
18450exclude_expsyms=$lt_exclude_expsyms_GCJ
18451
18452# Symbols that must always be exported.
18453include_expsyms=$lt_include_expsyms_GCJ
18454
18455# ### END LIBTOOL TAG CONFIG: $tagname
18456
18457__EOF__
18458
18459
18460else
18461  # If there is no Makefile yet, we rely on a make rule to execute
18462  # `config.status --recheck' to rerun these tests and create the
18463  # libtool script then.
18464  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18465  if test -f "$ltmain_in"; then
18466    test -f Makefile && make "$ltmain"
18467  fi
18468fi
18469
18470
18471ac_ext=c
18472ac_cpp='$CPP $CPPFLAGS'
18473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475ac_compiler_gnu=$ac_cv_c_compiler_gnu
18476
18477CC="$lt_save_CC"
18478
18479	else
18480	  tagname=""
18481	fi
18482	;;
18483
18484      RC)
18485
18486
18487
18488# Source file extension for RC test sources.
18489ac_ext=rc
18490
18491# Object file extension for compiled RC test sources.
18492objext=o
18493objext_RC=$objext
18494
18495# Code to be used in simple compile tests
18496lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18497
18498# Code to be used in simple link tests
18499lt_simple_link_test_code="$lt_simple_compile_test_code"
18500
18501# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18502
18503# If no C compiler was specified, use CC.
18504LTCC=${LTCC-"$CC"}
18505
18506# Allow CC to be a program name with arguments.
18507compiler=$CC
18508
18509
18510# save warnings/boilerplate of simple test code
18511ac_outfile=conftest.$ac_objext
18512printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18514_lt_compiler_boilerplate=`cat conftest.err`
18515$rm conftest*
18516
18517ac_outfile=conftest.$ac_objext
18518printf "$lt_simple_link_test_code" >conftest.$ac_ext
18519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18520_lt_linker_boilerplate=`cat conftest.err`
18521$rm conftest*
18522
18523
18524# Allow CC to be a program name with arguments.
18525lt_save_CC="$CC"
18526CC=${RC-"windres"}
18527compiler=$CC
18528compiler_RC=$CC
18529for cc_temp in $compiler""; do
18530  case $cc_temp in
18531    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18532    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18533    \-*) ;;
18534    *) break;;
18535  esac
18536done
18537cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18538
18539lt_cv_prog_compiler_c_o_RC=yes
18540
18541# The else clause should only fire when bootstrapping the
18542# libtool distribution, otherwise you forgot to ship ltmain.sh
18543# with your package, and you will get complaints that there are
18544# no rules to generate ltmain.sh.
18545if test -f "$ltmain"; then
18546  # See if we are running on zsh, and set the options which allow our commands through
18547  # without removal of \ escapes.
18548  if test -n "${ZSH_VERSION+set}" ; then
18549    setopt NO_GLOB_SUBST
18550  fi
18551  # Now quote all the things that may contain metacharacters while being
18552  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18553  # variables and quote the copies for generation of the libtool script.
18554  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18555    SED SHELL STRIP \
18556    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18557    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18558    deplibs_check_method reload_flag reload_cmds need_locks \
18559    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18560    lt_cv_sys_global_symbol_to_c_name_address \
18561    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18562    old_postinstall_cmds old_postuninstall_cmds \
18563    compiler_RC \
18564    CC_RC \
18565    LD_RC \
18566    lt_prog_compiler_wl_RC \
18567    lt_prog_compiler_pic_RC \
18568    lt_prog_compiler_static_RC \
18569    lt_prog_compiler_no_builtin_flag_RC \
18570    export_dynamic_flag_spec_RC \
18571    thread_safe_flag_spec_RC \
18572    whole_archive_flag_spec_RC \
18573    enable_shared_with_static_runtimes_RC \
18574    old_archive_cmds_RC \
18575    old_archive_from_new_cmds_RC \
18576    predep_objects_RC \
18577    postdep_objects_RC \
18578    predeps_RC \
18579    postdeps_RC \
18580    compiler_lib_search_path_RC \
18581    archive_cmds_RC \
18582    archive_expsym_cmds_RC \
18583    postinstall_cmds_RC \
18584    postuninstall_cmds_RC \
18585    old_archive_from_expsyms_cmds_RC \
18586    allow_undefined_flag_RC \
18587    no_undefined_flag_RC \
18588    export_symbols_cmds_RC \
18589    hardcode_libdir_flag_spec_RC \
18590    hardcode_libdir_flag_spec_ld_RC \
18591    hardcode_libdir_separator_RC \
18592    hardcode_automatic_RC \
18593    module_cmds_RC \
18594    module_expsym_cmds_RC \
18595    lt_cv_prog_compiler_c_o_RC \
18596    exclude_expsyms_RC \
18597    include_expsyms_RC; do
18598
18599    case $var in
18600    old_archive_cmds_RC | \
18601    old_archive_from_new_cmds_RC | \
18602    archive_cmds_RC | \
18603    archive_expsym_cmds_RC | \
18604    module_cmds_RC | \
18605    module_expsym_cmds_RC | \
18606    old_archive_from_expsyms_cmds_RC | \
18607    export_symbols_cmds_RC | \
18608    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18609    postinstall_cmds | postuninstall_cmds | \
18610    old_postinstall_cmds | old_postuninstall_cmds | \
18611    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18612      # Double-quote double-evaled strings.
18613      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18614      ;;
18615    *)
18616      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18617      ;;
18618    esac
18619  done
18620
18621  case $lt_echo in
18622  *'\$0 --fallback-echo"')
18623    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18624    ;;
18625  esac
18626
18627cfgfile="$ofile"
18628
18629  cat <<__EOF__ >> "$cfgfile"
18630# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18631
18632# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18633
18634# Shell to use when invoking shell scripts.
18635SHELL=$lt_SHELL
18636
18637# Whether or not to build shared libraries.
18638build_libtool_libs=$enable_shared
18639
18640# Whether or not to build static libraries.
18641build_old_libs=$enable_static
18642
18643# Whether or not to add -lc for building shared libraries.
18644build_libtool_need_lc=$archive_cmds_need_lc_RC
18645
18646# Whether or not to disallow shared libs when runtime libs are static
18647allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18648
18649# Whether or not to optimize for fast installation.
18650fast_install=$enable_fast_install
18651
18652# The host system.
18653host_alias=$host_alias
18654host=$host
18655host_os=$host_os
18656
18657# The build system.
18658build_alias=$build_alias
18659build=$build
18660build_os=$build_os
18661
18662# An echo program that does not interpret backslashes.
18663echo=$lt_echo
18664
18665# The archiver.
18666AR=$lt_AR
18667AR_FLAGS=$lt_AR_FLAGS
18668
18669# A C compiler.
18670LTCC=$lt_LTCC
18671
18672# A language-specific compiler.
18673CC=$lt_compiler_RC
18674
18675# Is the compiler the GNU C compiler?
18676with_gcc=$GCC_RC
18677
18678# An ERE matcher.
18679EGREP=$lt_EGREP
18680
18681# The linker used to build libraries.
18682LD=$lt_LD_RC
18683
18684# Whether we need hard or soft links.
18685LN_S=$lt_LN_S
18686
18687# A BSD-compatible nm program.
18688NM=$lt_NM
18689
18690# A symbol stripping program
18691STRIP=$lt_STRIP
18692
18693# Used to examine libraries when file_magic_cmd begins "file"
18694MAGIC_CMD=$MAGIC_CMD
18695
18696# Used on cygwin: DLL creation program.
18697DLLTOOL="$DLLTOOL"
18698
18699# Used on cygwin: object dumper.
18700OBJDUMP="$OBJDUMP"
18701
18702# Used on cygwin: assembler.
18703AS="$AS"
18704
18705# The name of the directory that contains temporary libtool files.
18706objdir=$objdir
18707
18708# How to create reloadable object files.
18709reload_flag=$lt_reload_flag
18710reload_cmds=$lt_reload_cmds
18711
18712# How to pass a linker flag through the compiler.
18713wl=$lt_lt_prog_compiler_wl_RC
18714
18715# Object file suffix (normally "o").
18716objext="$ac_objext"
18717
18718# Old archive suffix (normally "a").
18719libext="$libext"
18720
18721# Shared library suffix (normally ".so").
18722shrext_cmds='$shrext_cmds'
18723
18724# Executable file suffix (normally "").
18725exeext="$exeext"
18726
18727# Additional compiler flags for building library objects.
18728pic_flag=$lt_lt_prog_compiler_pic_RC
18729pic_mode=$pic_mode
18730
18731# What is the maximum length of a command?
18732max_cmd_len=$lt_cv_sys_max_cmd_len
18733
18734# Does compiler simultaneously support -c and -o options?
18735compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18736
18737# Must we lock files when doing compilation?
18738need_locks=$lt_need_locks
18739
18740# Do we need the lib prefix for modules?
18741need_lib_prefix=$need_lib_prefix
18742
18743# Do we need a version for libraries?
18744need_version=$need_version
18745
18746# Whether dlopen is supported.
18747dlopen_support=$enable_dlopen
18748
18749# Whether dlopen of programs is supported.
18750dlopen_self=$enable_dlopen_self
18751
18752# Whether dlopen of statically linked programs is supported.
18753dlopen_self_static=$enable_dlopen_self_static
18754
18755# Compiler flag to prevent dynamic linking.
18756link_static_flag=$lt_lt_prog_compiler_static_RC
18757
18758# Compiler flag to turn off builtin functions.
18759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18760
18761# Compiler flag to allow reflexive dlopens.
18762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18763
18764# Compiler flag to generate shared objects directly from archives.
18765whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18766
18767# Compiler flag to generate thread-safe objects.
18768thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18769
18770# Library versioning type.
18771version_type=$version_type
18772
18773# Format of library name prefix.
18774libname_spec=$lt_libname_spec
18775
18776# List of archive names.  First name is the real one, the rest are links.
18777# The last name is the one that the linker finds with -lNAME.
18778library_names_spec=$lt_library_names_spec
18779
18780# The coded name of the library, if different from the real name.
18781soname_spec=$lt_soname_spec
18782
18783# Commands used to build and install an old-style archive.
18784RANLIB=$lt_RANLIB
18785old_archive_cmds=$lt_old_archive_cmds_RC
18786old_postinstall_cmds=$lt_old_postinstall_cmds
18787old_postuninstall_cmds=$lt_old_postuninstall_cmds
18788
18789# Create an old-style archive from a shared archive.
18790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18791
18792# Create a temporary old-style archive to link instead of a shared archive.
18793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18794
18795# Commands used to build and install a shared archive.
18796archive_cmds=$lt_archive_cmds_RC
18797archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18798postinstall_cmds=$lt_postinstall_cmds
18799postuninstall_cmds=$lt_postuninstall_cmds
18800
18801# Commands used to build a loadable module (assumed same as above if empty)
18802module_cmds=$lt_module_cmds_RC
18803module_expsym_cmds=$lt_module_expsym_cmds_RC
18804
18805# Commands to strip libraries.
18806old_striplib=$lt_old_striplib
18807striplib=$lt_striplib
18808
18809# Dependencies to place before the objects being linked to create a
18810# shared library.
18811predep_objects=$lt_predep_objects_RC
18812
18813# Dependencies to place after the objects being linked to create a
18814# shared library.
18815postdep_objects=$lt_postdep_objects_RC
18816
18817# Dependencies to place before the objects being linked to create a
18818# shared library.
18819predeps=$lt_predeps_RC
18820
18821# Dependencies to place after the objects being linked to create a
18822# shared library.
18823postdeps=$lt_postdeps_RC
18824
18825# The library search path used internally by the compiler when linking
18826# a shared library.
18827compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18828
18829# Method to check whether dependent libraries are shared objects.
18830deplibs_check_method=$lt_deplibs_check_method
18831
18832# Command to use when deplibs_check_method == file_magic.
18833file_magic_cmd=$lt_file_magic_cmd
18834
18835# Flag that allows shared libraries with undefined symbols to be built.
18836allow_undefined_flag=$lt_allow_undefined_flag_RC
18837
18838# Flag that forces no undefined symbols.
18839no_undefined_flag=$lt_no_undefined_flag_RC
18840
18841# Commands used to finish a libtool library installation in a directory.
18842finish_cmds=$lt_finish_cmds
18843
18844# Same as above, but a single script fragment to be evaled but not shown.
18845finish_eval=$lt_finish_eval
18846
18847# Take the output of nm and produce a listing of raw symbols and C names.
18848global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18849
18850# Transform the output of nm in a proper C declaration
18851global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18852
18853# Transform the output of nm in a C name address pair
18854global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18855
18856# This is the shared library runtime path variable.
18857runpath_var=$runpath_var
18858
18859# This is the shared library path variable.
18860shlibpath_var=$shlibpath_var
18861
18862# Is shlibpath searched before the hard-coded library search path?
18863shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18864
18865# How to hardcode a shared library path into an executable.
18866hardcode_action=$hardcode_action_RC
18867
18868# Whether we should hardcode library paths into libraries.
18869hardcode_into_libs=$hardcode_into_libs
18870
18871# Flag to hardcode \$libdir into a binary during linking.
18872# This must work even if \$libdir does not exist.
18873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18874
18875# If ld is used when linking, flag to hardcode \$libdir into
18876# a binary during linking. This must work even if \$libdir does
18877# not exist.
18878hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18879
18880# Whether we need a single -rpath flag with a separated argument.
18881hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18882
18883# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18884# resulting binary.
18885hardcode_direct=$hardcode_direct_RC
18886
18887# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18888# resulting binary.
18889hardcode_minus_L=$hardcode_minus_L_RC
18890
18891# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18892# the resulting binary.
18893hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18894
18895# Set to yes if building a shared library automatically hardcodes DIR into the library
18896# and all subsequent libraries and executables linked against it.
18897hardcode_automatic=$hardcode_automatic_RC
18898
18899# Variables whose values should be saved in libtool wrapper scripts and
18900# restored at relink time.
18901variables_saved_for_relink="$variables_saved_for_relink"
18902
18903# Whether libtool must link a program against all its dependency libraries.
18904link_all_deplibs=$link_all_deplibs_RC
18905
18906# Compile-time system search path for libraries
18907sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18908
18909# Run-time system search path for libraries
18910sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18911
18912# Fix the shell variable \$srcfile for the compiler.
18913fix_srcfile_path="$fix_srcfile_path_RC"
18914
18915# Set to yes if exported symbols are required.
18916always_export_symbols=$always_export_symbols_RC
18917
18918# The commands to list exported symbols.
18919export_symbols_cmds=$lt_export_symbols_cmds_RC
18920
18921# The commands to extract the exported symbol list from a shared archive.
18922extract_expsyms_cmds=$lt_extract_expsyms_cmds
18923
18924# Symbols that should not be listed in the preloaded symbols.
18925exclude_expsyms=$lt_exclude_expsyms_RC
18926
18927# Symbols that must always be exported.
18928include_expsyms=$lt_include_expsyms_RC
18929
18930# ### END LIBTOOL TAG CONFIG: $tagname
18931
18932__EOF__
18933
18934
18935else
18936  # If there is no Makefile yet, we rely on a make rule to execute
18937  # `config.status --recheck' to rerun these tests and create the
18938  # libtool script then.
18939  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18940  if test -f "$ltmain_in"; then
18941    test -f Makefile && make "$ltmain"
18942  fi
18943fi
18944
18945
18946ac_ext=c
18947ac_cpp='$CPP $CPPFLAGS'
18948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950ac_compiler_gnu=$ac_cv_c_compiler_gnu
18951
18952CC="$lt_save_CC"
18953
18954	;;
18955
18956      *)
18957	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18958echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18959   { (exit 1); exit 1; }; }
18960	;;
18961      esac
18962
18963      # Append the new tag name to the list of available tags.
18964      if test -n "$tagname" ; then
18965      available_tags="$available_tags $tagname"
18966    fi
18967    fi
18968  done
18969  IFS="$lt_save_ifs"
18970
18971  # Now substitute the updated list of available tags.
18972  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18973    mv "${ofile}T" "$ofile"
18974    chmod +x "$ofile"
18975  else
18976    rm -f "${ofile}T"
18977    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18978echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18979   { (exit 1); exit 1; }; }
18980  fi
18981fi
18982
18983
18984
18985# This can be used to rebuild libtool when needed
18986LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18987
18988# Always use our own libtool.
18989LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18990
18991# Prevent multiple expansion
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013am__api_version="1.9"
19014echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19015echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19016# Just in case
19017sleep 1
19018echo timestamp > conftest.file
19019# Do `set' in a subshell so we don't clobber the current shell's
19020# arguments.  Must try -L first in case configure is actually a
19021# symlink; some systems play weird games with the mod time of symlinks
19022# (eg FreeBSD returns the mod time of the symlink's containing
19023# directory).
19024if (
19025   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19026   if test "$*" = "X"; then
19027      # -L didn't work.
19028      set X `ls -t $srcdir/configure conftest.file`
19029   fi
19030   rm -f conftest.file
19031   if test "$*" != "X $srcdir/configure conftest.file" \
19032      && test "$*" != "X conftest.file $srcdir/configure"; then
19033
19034      # If neither matched, then we have a broken ls.  This can happen
19035      # if, for instance, CONFIG_SHELL is bash and it inherits a
19036      # broken ls alias from the environment.  This has actually
19037      # happened.  Such a system could not be considered "sane".
19038      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19039alias in your environment" >&5
19040echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19041alias in your environment" >&2;}
19042   { (exit 1); exit 1; }; }
19043   fi
19044
19045   test "$2" = conftest.file
19046   )
19047then
19048   # Ok.
19049   :
19050else
19051   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19052Check your system clock" >&5
19053echo "$as_me: error: newly created file is older than distributed files!
19054Check your system clock" >&2;}
19055   { (exit 1); exit 1; }; }
19056fi
19057echo "$as_me:$LINENO: result: yes" >&5
19058echo "${ECHO_T}yes" >&6
19059test "$program_prefix" != NONE &&
19060  program_transform_name="s,^,$program_prefix,;$program_transform_name"
19061# Use a double $ so make ignores it.
19062test "$program_suffix" != NONE &&
19063  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
19064# Double any \ or $.  echo might interpret backslashes.
19065# By default was `s,x,x', remove it if useless.
19066cat <<\_ACEOF >conftest.sed
19067s/[\\$]/&&/g;s/;s,x,x,$//
19068_ACEOF
19069program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
19070rm conftest.sed
19071
19072# expand $ac_aux_dir to an absolute path
19073am_aux_dir=`cd $ac_aux_dir && pwd`
19074
19075test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19076# Use eval to expand $SHELL
19077if eval "$MISSING --run true"; then
19078  am_missing_run="$MISSING --run "
19079else
19080  am_missing_run=
19081  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19082echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19083fi
19084
19085if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
19086  # We used to keeping the `.' as first argument, in order to
19087  # allow $(mkdir_p) to be used without argument.  As in
19088  #   $(mkdir_p) $(somedir)
19089  # where $(somedir) is conditionally defined.  However this is wrong
19090  # for two reasons:
19091  #  1. if the package is installed by a user who cannot write `.'
19092  #     make install will fail,
19093  #  2. the above comment should most certainly read
19094  #     $(mkdir_p) $(DESTDIR)$(somedir)
19095  #     so it does not work when $(somedir) is undefined and
19096  #     $(DESTDIR) is not.
19097  #  To support the latter case, we have to write
19098  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
19099  #  so the `.' trick is pointless.
19100  mkdir_p='mkdir -p --'
19101else
19102  # On NextStep and OpenStep, the `mkdir' command does not
19103  # recognize any option.  It will interpret all options as
19104  # directories to create, and then abort because `.' already
19105  # exists.
19106  for d in ./-p ./--version;
19107  do
19108    test -d $d && rmdir $d
19109  done
19110  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
19111  if test -f "$ac_aux_dir/mkinstalldirs"; then
19112    mkdir_p='$(mkinstalldirs)'
19113  else
19114    mkdir_p='$(install_sh) -d'
19115  fi
19116fi
19117
19118for ac_prog in gawk mawk nawk awk
19119do
19120  # Extract the first word of "$ac_prog", so it can be a program name with args.
19121set dummy $ac_prog; ac_word=$2
19122echo "$as_me:$LINENO: checking for $ac_word" >&5
19123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19124if test "${ac_cv_prog_AWK+set}" = set; then
19125  echo $ECHO_N "(cached) $ECHO_C" >&6
19126else
19127  if test -n "$AWK"; then
19128  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19129else
19130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19131for as_dir in $PATH
19132do
19133  IFS=$as_save_IFS
19134  test -z "$as_dir" && as_dir=.
19135  for ac_exec_ext in '' $ac_executable_extensions; do
19136  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19137    ac_cv_prog_AWK="$ac_prog"
19138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19139    break 2
19140  fi
19141done
19142done
19143
19144fi
19145fi
19146AWK=$ac_cv_prog_AWK
19147if test -n "$AWK"; then
19148  echo "$as_me:$LINENO: result: $AWK" >&5
19149echo "${ECHO_T}$AWK" >&6
19150else
19151  echo "$as_me:$LINENO: result: no" >&5
19152echo "${ECHO_T}no" >&6
19153fi
19154
19155  test -n "$AWK" && break
19156done
19157
19158echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19159echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19160set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19161if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19162  echo $ECHO_N "(cached) $ECHO_C" >&6
19163else
19164  cat >conftest.make <<\_ACEOF
19165all:
19166	@echo 'ac_maketemp="$(MAKE)"'
19167_ACEOF
19168# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19169eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19170if test -n "$ac_maketemp"; then
19171  eval ac_cv_prog_make_${ac_make}_set=yes
19172else
19173  eval ac_cv_prog_make_${ac_make}_set=no
19174fi
19175rm -f conftest.make
19176fi
19177if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19178  echo "$as_me:$LINENO: result: yes" >&5
19179echo "${ECHO_T}yes" >&6
19180  SET_MAKE=
19181else
19182  echo "$as_me:$LINENO: result: no" >&5
19183echo "${ECHO_T}no" >&6
19184  SET_MAKE="MAKE=${MAKE-make}"
19185fi
19186
19187rm -rf .tst 2>/dev/null
19188mkdir .tst 2>/dev/null
19189if test -d .tst; then
19190  am__leading_dot=.
19191else
19192  am__leading_dot=_
19193fi
19194rmdir .tst 2>/dev/null
19195
19196DEPDIR="${am__leading_dot}deps"
19197
19198          ac_config_commands="$ac_config_commands depfiles"
19199
19200
19201am_make=${MAKE-make}
19202cat > confinc << 'END'
19203am__doit:
19204	@echo done
19205.PHONY: am__doit
19206END
19207# If we don't find an include directive, just comment out the code.
19208echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19209echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
19210am__include="#"
19211am__quote=
19212_am_result=none
19213# First try GNU make style include.
19214echo "include confinc" > confmf
19215# We grep out `Entering directory' and `Leaving directory'
19216# messages which can occur if `w' ends up in MAKEFLAGS.
19217# In particular we don't look at `^make:' because GNU make might
19218# be invoked under some other name (usually "gmake"), in which
19219# case it prints its new name instead of `make'.
19220if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19221   am__include=include
19222   am__quote=
19223   _am_result=GNU
19224fi
19225# Now try BSD make style include.
19226if test "$am__include" = "#"; then
19227   echo '.include "confinc"' > confmf
19228   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19229      am__include=.include
19230      am__quote="\""
19231      _am_result=BSD
19232   fi
19233fi
19234
19235
19236echo "$as_me:$LINENO: result: $_am_result" >&5
19237echo "${ECHO_T}$_am_result" >&6
19238rm -f confinc confmf
19239
19240# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
19241if test "${enable_dependency_tracking+set}" = set; then
19242  enableval="$enable_dependency_tracking"
19243
19244fi;
19245if test "x$enable_dependency_tracking" != xno; then
19246  am_depcomp="$ac_aux_dir/depcomp"
19247  AMDEPBACKSLASH='\'
19248fi
19249
19250
19251if test "x$enable_dependency_tracking" != xno; then
19252  AMDEP_TRUE=
19253  AMDEP_FALSE='#'
19254else
19255  AMDEP_TRUE='#'
19256  AMDEP_FALSE=
19257fi
19258
19259
19260
19261# test to see if srcdir already configured
19262if test "`cd $srcdir && pwd`" != "`pwd`" &&
19263   test -f $srcdir/config.status; then
19264  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19265echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19266   { (exit 1); exit 1; }; }
19267fi
19268
19269# test whether we have cygpath
19270if test -z "$CYGPATH_W"; then
19271  if (cygpath --version) >/dev/null 2>/dev/null; then
19272    CYGPATH_W='cygpath -w'
19273  else
19274    CYGPATH_W=echo
19275  fi
19276fi
19277
19278
19279# Define the identity of the package.
19280 PACKAGE=OpenBSM
19281 VERSION=1.0alpha14
19282
19283
19284cat >>confdefs.h <<_ACEOF
19285#define PACKAGE "$PACKAGE"
19286_ACEOF
19287
19288
19289cat >>confdefs.h <<_ACEOF
19290#define VERSION "$VERSION"
19291_ACEOF
19292
19293# Some tools Automake needs.
19294
19295ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19296
19297
19298AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19299
19300
19301AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19302
19303
19304AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19305
19306
19307MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19308
19309install_sh=${install_sh-"$am_aux_dir/install-sh"}
19310
19311# Installed binaries are usually stripped using `strip' when the user
19312# run `make install-strip'.  However `strip' might not be the right
19313# tool to use in cross-compilation environments, therefore Automake
19314# will honor the `STRIP' environment variable to overrule this program.
19315if test "$cross_compiling" != no; then
19316  if test -n "$ac_tool_prefix"; then
19317  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19318set dummy ${ac_tool_prefix}strip; ac_word=$2
19319echo "$as_me:$LINENO: checking for $ac_word" >&5
19320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19321if test "${ac_cv_prog_STRIP+set}" = set; then
19322  echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324  if test -n "$STRIP"; then
19325  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19326else
19327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328for as_dir in $PATH
19329do
19330  IFS=$as_save_IFS
19331  test -z "$as_dir" && as_dir=.
19332  for ac_exec_ext in '' $ac_executable_extensions; do
19333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19334    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19336    break 2
19337  fi
19338done
19339done
19340
19341fi
19342fi
19343STRIP=$ac_cv_prog_STRIP
19344if test -n "$STRIP"; then
19345  echo "$as_me:$LINENO: result: $STRIP" >&5
19346echo "${ECHO_T}$STRIP" >&6
19347else
19348  echo "$as_me:$LINENO: result: no" >&5
19349echo "${ECHO_T}no" >&6
19350fi
19351
19352fi
19353if test -z "$ac_cv_prog_STRIP"; then
19354  ac_ct_STRIP=$STRIP
19355  # Extract the first word of "strip", so it can be a program name with args.
19356set dummy strip; ac_word=$2
19357echo "$as_me:$LINENO: checking for $ac_word" >&5
19358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19359if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19360  echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362  if test -n "$ac_ct_STRIP"; then
19363  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19364else
19365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19366for as_dir in $PATH
19367do
19368  IFS=$as_save_IFS
19369  test -z "$as_dir" && as_dir=.
19370  for ac_exec_ext in '' $ac_executable_extensions; do
19371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19372    ac_cv_prog_ac_ct_STRIP="strip"
19373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19374    break 2
19375  fi
19376done
19377done
19378
19379  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
19380fi
19381fi
19382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19383if test -n "$ac_ct_STRIP"; then
19384  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19385echo "${ECHO_T}$ac_ct_STRIP" >&6
19386else
19387  echo "$as_me:$LINENO: result: no" >&5
19388echo "${ECHO_T}no" >&6
19389fi
19390
19391  STRIP=$ac_ct_STRIP
19392else
19393  STRIP="$ac_cv_prog_STRIP"
19394fi
19395
19396fi
19397INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
19398
19399# We need awk for the "check" target.  The system "awk" is bad on
19400# some platforms.
19401# Always define AMTAR for backward compatibility.
19402
19403AMTAR=${AMTAR-"${am_missing_run}tar"}
19404
19405am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19406
19407
19408
19409
19410depcc="$CC"   am_compiler_list=
19411
19412echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19413echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19414if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19415  echo $ECHO_N "(cached) $ECHO_C" >&6
19416else
19417  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19418  # We make a subdir and do the tests there.  Otherwise we can end up
19419  # making bogus files that we don't know about and never remove.  For
19420  # instance it was reported that on HP-UX the gcc test will end up
19421  # making a dummy file named `D' -- because `-MD' means `put the output
19422  # in D'.
19423  mkdir conftest.dir
19424  # Copy depcomp to subdir because otherwise we won't find it if we're
19425  # using a relative directory.
19426  cp "$am_depcomp" conftest.dir
19427  cd conftest.dir
19428  # We will build objects and dependencies in a subdirectory because
19429  # it helps to detect inapplicable dependency modes.  For instance
19430  # both Tru64's cc and ICC support -MD to output dependencies as a
19431  # side effect of compilation, but ICC will put the dependencies in
19432  # the current directory while Tru64 will put them in the object
19433  # directory.
19434  mkdir sub
19435
19436  am_cv_CC_dependencies_compiler_type=none
19437  if test "$am_compiler_list" = ""; then
19438     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19439  fi
19440  for depmode in $am_compiler_list; do
19441    # Setup a source with many dependencies, because some compilers
19442    # like to wrap large dependency lists on column 80 (with \), and
19443    # we should not choose a depcomp mode which is confused by this.
19444    #
19445    # We need to recreate these files for each test, as the compiler may
19446    # overwrite some of them when testing with obscure command lines.
19447    # This happens at least with the AIX C compiler.
19448    : > sub/conftest.c
19449    for i in 1 2 3 4 5 6; do
19450      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19451      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19452      # Solaris 8's {/usr,}/bin/sh.
19453      touch sub/conftst$i.h
19454    done
19455    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19456
19457    case $depmode in
19458    nosideeffect)
19459      # after this tag, mechanisms are not by side-effect, so they'll
19460      # only be used when explicitly requested
19461      if test "x$enable_dependency_tracking" = xyes; then
19462	continue
19463      else
19464	break
19465      fi
19466      ;;
19467    none) break ;;
19468    esac
19469    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19470    # mode.  It turns out that the SunPro C++ compiler does not properly
19471    # handle `-M -o', and we need to detect this.
19472    if depmode=$depmode \
19473       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19474       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19475       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19476         >/dev/null 2>conftest.err &&
19477       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19478       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19479       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19480      # icc doesn't choke on unknown options, it will just issue warnings
19481      # or remarks (even with -Werror).  So we grep stderr for any message
19482      # that says an option was ignored or not supported.
19483      # When given -MP, icc 7.0 and 7.1 complain thusly:
19484      #   icc: Command line warning: ignoring option '-M'; no argument required
19485      # The diagnosis changed in icc 8.0:
19486      #   icc: Command line remark: option '-MP' not supported
19487      if (grep 'ignoring option' conftest.err ||
19488          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19489        am_cv_CC_dependencies_compiler_type=$depmode
19490        break
19491      fi
19492    fi
19493  done
19494
19495  cd ..
19496  rm -rf conftest.dir
19497else
19498  am_cv_CC_dependencies_compiler_type=none
19499fi
19500
19501fi
19502echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19503echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19504CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19505
19506
19507
19508if
19509  test "x$enable_dependency_tracking" != xno \
19510  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19511  am__fastdepCC_TRUE=
19512  am__fastdepCC_FALSE='#'
19513else
19514  am__fastdepCC_TRUE='#'
19515  am__fastdepCC_FALSE=
19516fi
19517
19518
19519depcc="$CXX"  am_compiler_list=
19520
19521echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19522echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19523if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19524  echo $ECHO_N "(cached) $ECHO_C" >&6
19525else
19526  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19527  # We make a subdir and do the tests there.  Otherwise we can end up
19528  # making bogus files that we don't know about and never remove.  For
19529  # instance it was reported that on HP-UX the gcc test will end up
19530  # making a dummy file named `D' -- because `-MD' means `put the output
19531  # in D'.
19532  mkdir conftest.dir
19533  # Copy depcomp to subdir because otherwise we won't find it if we're
19534  # using a relative directory.
19535  cp "$am_depcomp" conftest.dir
19536  cd conftest.dir
19537  # We will build objects and dependencies in a subdirectory because
19538  # it helps to detect inapplicable dependency modes.  For instance
19539  # both Tru64's cc and ICC support -MD to output dependencies as a
19540  # side effect of compilation, but ICC will put the dependencies in
19541  # the current directory while Tru64 will put them in the object
19542  # directory.
19543  mkdir sub
19544
19545  am_cv_CXX_dependencies_compiler_type=none
19546  if test "$am_compiler_list" = ""; then
19547     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19548  fi
19549  for depmode in $am_compiler_list; do
19550    # Setup a source with many dependencies, because some compilers
19551    # like to wrap large dependency lists on column 80 (with \), and
19552    # we should not choose a depcomp mode which is confused by this.
19553    #
19554    # We need to recreate these files for each test, as the compiler may
19555    # overwrite some of them when testing with obscure command lines.
19556    # This happens at least with the AIX C compiler.
19557    : > sub/conftest.c
19558    for i in 1 2 3 4 5 6; do
19559      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19560      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19561      # Solaris 8's {/usr,}/bin/sh.
19562      touch sub/conftst$i.h
19563    done
19564    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19565
19566    case $depmode in
19567    nosideeffect)
19568      # after this tag, mechanisms are not by side-effect, so they'll
19569      # only be used when explicitly requested
19570      if test "x$enable_dependency_tracking" = xyes; then
19571	continue
19572      else
19573	break
19574      fi
19575      ;;
19576    none) break ;;
19577    esac
19578    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19579    # mode.  It turns out that the SunPro C++ compiler does not properly
19580    # handle `-M -o', and we need to detect this.
19581    if depmode=$depmode \
19582       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19583       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19584       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19585         >/dev/null 2>conftest.err &&
19586       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19587       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19588       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19589      # icc doesn't choke on unknown options, it will just issue warnings
19590      # or remarks (even with -Werror).  So we grep stderr for any message
19591      # that says an option was ignored or not supported.
19592      # When given -MP, icc 7.0 and 7.1 complain thusly:
19593      #   icc: Command line warning: ignoring option '-M'; no argument required
19594      # The diagnosis changed in icc 8.0:
19595      #   icc: Command line remark: option '-MP' not supported
19596      if (grep 'ignoring option' conftest.err ||
19597          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19598        am_cv_CXX_dependencies_compiler_type=$depmode
19599        break
19600      fi
19601    fi
19602  done
19603
19604  cd ..
19605  rm -rf conftest.dir
19606else
19607  am_cv_CXX_dependencies_compiler_type=none
19608fi
19609
19610fi
19611echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19612echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19613CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19614
19615
19616
19617if
19618  test "x$enable_dependency_tracking" != xno \
19619  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19620  am__fastdepCXX_TRUE=
19621  am__fastdepCXX_FALSE='#'
19622else
19623  am__fastdepCXX_TRUE='#'
19624  am__fastdepCXX_FALSE=
19625fi
19626
19627
19628
19629
19630echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19631echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6
19632if test "${ac_cv_search_dlsym+set}" = set; then
19633  echo $ECHO_N "(cached) $ECHO_C" >&6
19634else
19635  ac_func_search_save_LIBS=$LIBS
19636ac_cv_search_dlsym=no
19637cat >conftest.$ac_ext <<_ACEOF
19638/* confdefs.h.  */
19639_ACEOF
19640cat confdefs.h >>conftest.$ac_ext
19641cat >>conftest.$ac_ext <<_ACEOF
19642/* end confdefs.h.  */
19643
19644/* Override any gcc2 internal prototype to avoid an error.  */
19645#ifdef __cplusplus
19646extern "C"
19647#endif
19648/* We use char because int might match the return type of a gcc2
19649   builtin and then its argument prototype would still apply.  */
19650char dlsym ();
19651int
19652main ()
19653{
19654dlsym ();
19655  ;
19656  return 0;
19657}
19658_ACEOF
19659rm -f conftest.$ac_objext conftest$ac_exeext
19660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19661  (eval $ac_link) 2>conftest.er1
19662  ac_status=$?
19663  grep -v '^ *+' conftest.er1 >conftest.err
19664  rm -f conftest.er1
19665  cat conftest.err >&5
19666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667  (exit $ac_status); } &&
19668	 { ac_try='test -z "$ac_c_werror_flag"
19669			 || test ! -s conftest.err'
19670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671  (eval $ac_try) 2>&5
19672  ac_status=$?
19673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674  (exit $ac_status); }; } &&
19675	 { ac_try='test -s conftest$ac_exeext'
19676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677  (eval $ac_try) 2>&5
19678  ac_status=$?
19679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); }; }; then
19681  ac_cv_search_dlsym="none required"
19682else
19683  echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686fi
19687rm -f conftest.err conftest.$ac_objext \
19688      conftest$ac_exeext conftest.$ac_ext
19689if test "$ac_cv_search_dlsym" = no; then
19690  for ac_lib in dl; do
19691    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19692    cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h.  */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
19697/* end confdefs.h.  */
19698
19699/* Override any gcc2 internal prototype to avoid an error.  */
19700#ifdef __cplusplus
19701extern "C"
19702#endif
19703/* We use char because int might match the return type of a gcc2
19704   builtin and then its argument prototype would still apply.  */
19705char dlsym ();
19706int
19707main ()
19708{
19709dlsym ();
19710  ;
19711  return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext conftest$ac_exeext
19715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716  (eval $ac_link) 2>conftest.er1
19717  ac_status=$?
19718  grep -v '^ *+' conftest.er1 >conftest.err
19719  rm -f conftest.er1
19720  cat conftest.err >&5
19721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722  (exit $ac_status); } &&
19723	 { ac_try='test -z "$ac_c_werror_flag"
19724			 || test ! -s conftest.err'
19725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726  (eval $ac_try) 2>&5
19727  ac_status=$?
19728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729  (exit $ac_status); }; } &&
19730	 { ac_try='test -s conftest$ac_exeext'
19731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732  (eval $ac_try) 2>&5
19733  ac_status=$?
19734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735  (exit $ac_status); }; }; then
19736  ac_cv_search_dlsym="-l$ac_lib"
19737break
19738else
19739  echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742fi
19743rm -f conftest.err conftest.$ac_objext \
19744      conftest$ac_exeext conftest.$ac_ext
19745  done
19746fi
19747LIBS=$ac_func_search_save_LIBS
19748fi
19749echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19750echo "${ECHO_T}$ac_cv_search_dlsym" >&6
19751if test "$ac_cv_search_dlsym" != no; then
19752  test "$ac_cv_search_dlsym" = "none required" || LIBS="$ac_cv_search_dlsym $LIBS"
19753
19754fi
19755
19756echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19757echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
19758if test "${ac_cv_search_clock_gettime+set}" = set; then
19759  echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761  ac_func_search_save_LIBS=$LIBS
19762ac_cv_search_clock_gettime=no
19763cat >conftest.$ac_ext <<_ACEOF
19764/* confdefs.h.  */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h.  */
19769
19770/* Override any gcc2 internal prototype to avoid an error.  */
19771#ifdef __cplusplus
19772extern "C"
19773#endif
19774/* We use char because int might match the return type of a gcc2
19775   builtin and then its argument prototype would still apply.  */
19776char clock_gettime ();
19777int
19778main ()
19779{
19780clock_gettime ();
19781  ;
19782  return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext conftest$ac_exeext
19786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19787  (eval $ac_link) 2>conftest.er1
19788  ac_status=$?
19789  grep -v '^ *+' conftest.er1 >conftest.err
19790  rm -f conftest.er1
19791  cat conftest.err >&5
19792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793  (exit $ac_status); } &&
19794	 { ac_try='test -z "$ac_c_werror_flag"
19795			 || test ! -s conftest.err'
19796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797  (eval $ac_try) 2>&5
19798  ac_status=$?
19799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800  (exit $ac_status); }; } &&
19801	 { ac_try='test -s conftest$ac_exeext'
19802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803  (eval $ac_try) 2>&5
19804  ac_status=$?
19805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806  (exit $ac_status); }; }; then
19807  ac_cv_search_clock_gettime="none required"
19808else
19809  echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812fi
19813rm -f conftest.err conftest.$ac_objext \
19814      conftest$ac_exeext conftest.$ac_ext
19815if test "$ac_cv_search_clock_gettime" = no; then
19816  for ac_lib in rt; do
19817    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19818    cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h.  */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h.  */
19824
19825/* Override any gcc2 internal prototype to avoid an error.  */
19826#ifdef __cplusplus
19827extern "C"
19828#endif
19829/* We use char because int might match the return type of a gcc2
19830   builtin and then its argument prototype would still apply.  */
19831char clock_gettime ();
19832int
19833main ()
19834{
19835clock_gettime ();
19836  ;
19837  return 0;
19838}
19839_ACEOF
19840rm -f conftest.$ac_objext conftest$ac_exeext
19841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842  (eval $ac_link) 2>conftest.er1
19843  ac_status=$?
19844  grep -v '^ *+' conftest.er1 >conftest.err
19845  rm -f conftest.er1
19846  cat conftest.err >&5
19847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848  (exit $ac_status); } &&
19849	 { ac_try='test -z "$ac_c_werror_flag"
19850			 || test ! -s conftest.err'
19851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852  (eval $ac_try) 2>&5
19853  ac_status=$?
19854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855  (exit $ac_status); }; } &&
19856	 { ac_try='test -s conftest$ac_exeext'
19857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858  (eval $ac_try) 2>&5
19859  ac_status=$?
19860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861  (exit $ac_status); }; }; then
19862  ac_cv_search_clock_gettime="-l$ac_lib"
19863break
19864else
19865  echo "$as_me: failed program was:" >&5
19866sed 's/^/| /' conftest.$ac_ext >&5
19867
19868fi
19869rm -f conftest.err conftest.$ac_objext \
19870      conftest$ac_exeext conftest.$ac_ext
19871  done
19872fi
19873LIBS=$ac_func_search_save_LIBS
19874fi
19875echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19876echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
19877if test "$ac_cv_search_clock_gettime" != no; then
19878  test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
19879
19880fi
19881
19882
19883# Checks for header files.
19884echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19885echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19886if test "${ac_cv_header_stdc+set}" = set; then
19887  echo $ECHO_N "(cached) $ECHO_C" >&6
19888else
19889  cat >conftest.$ac_ext <<_ACEOF
19890/* confdefs.h.  */
19891_ACEOF
19892cat confdefs.h >>conftest.$ac_ext
19893cat >>conftest.$ac_ext <<_ACEOF
19894/* end confdefs.h.  */
19895#include <stdlib.h>
19896#include <stdarg.h>
19897#include <string.h>
19898#include <float.h>
19899
19900int
19901main ()
19902{
19903
19904  ;
19905  return 0;
19906}
19907_ACEOF
19908rm -f conftest.$ac_objext
19909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19910  (eval $ac_compile) 2>conftest.er1
19911  ac_status=$?
19912  grep -v '^ *+' conftest.er1 >conftest.err
19913  rm -f conftest.er1
19914  cat conftest.err >&5
19915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916  (exit $ac_status); } &&
19917	 { ac_try='test -z "$ac_c_werror_flag"
19918			 || test ! -s conftest.err'
19919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920  (eval $ac_try) 2>&5
19921  ac_status=$?
19922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923  (exit $ac_status); }; } &&
19924	 { ac_try='test -s conftest.$ac_objext'
19925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926  (eval $ac_try) 2>&5
19927  ac_status=$?
19928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929  (exit $ac_status); }; }; then
19930  ac_cv_header_stdc=yes
19931else
19932  echo "$as_me: failed program was:" >&5
19933sed 's/^/| /' conftest.$ac_ext >&5
19934
19935ac_cv_header_stdc=no
19936fi
19937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19938
19939if test $ac_cv_header_stdc = yes; then
19940  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19941  cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h.  */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h.  */
19947#include <string.h>
19948
19949_ACEOF
19950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19951  $EGREP "memchr" >/dev/null 2>&1; then
19952  :
19953else
19954  ac_cv_header_stdc=no
19955fi
19956rm -f conftest*
19957
19958fi
19959
19960if test $ac_cv_header_stdc = yes; then
19961  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19962  cat >conftest.$ac_ext <<_ACEOF
19963/* confdefs.h.  */
19964_ACEOF
19965cat confdefs.h >>conftest.$ac_ext
19966cat >>conftest.$ac_ext <<_ACEOF
19967/* end confdefs.h.  */
19968#include <stdlib.h>
19969
19970_ACEOF
19971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19972  $EGREP "free" >/dev/null 2>&1; then
19973  :
19974else
19975  ac_cv_header_stdc=no
19976fi
19977rm -f conftest*
19978
19979fi
19980
19981if test $ac_cv_header_stdc = yes; then
19982  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19983  if test "$cross_compiling" = yes; then
19984  :
19985else
19986  cat >conftest.$ac_ext <<_ACEOF
19987/* confdefs.h.  */
19988_ACEOF
19989cat confdefs.h >>conftest.$ac_ext
19990cat >>conftest.$ac_ext <<_ACEOF
19991/* end confdefs.h.  */
19992#include <ctype.h>
19993#if ((' ' & 0x0FF) == 0x020)
19994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19996#else
19997# define ISLOWER(c) \
19998		   (('a' <= (c) && (c) <= 'i') \
19999		     || ('j' <= (c) && (c) <= 'r') \
20000		     || ('s' <= (c) && (c) <= 'z'))
20001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20002#endif
20003
20004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20005int
20006main ()
20007{
20008  int i;
20009  for (i = 0; i < 256; i++)
20010    if (XOR (islower (i), ISLOWER (i))
20011	|| toupper (i) != TOUPPER (i))
20012      exit(2);
20013  exit (0);
20014}
20015_ACEOF
20016rm -f conftest$ac_exeext
20017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20018  (eval $ac_link) 2>&5
20019  ac_status=$?
20020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023  (eval $ac_try) 2>&5
20024  ac_status=$?
20025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026  (exit $ac_status); }; }; then
20027  :
20028else
20029  echo "$as_me: program exited with status $ac_status" >&5
20030echo "$as_me: failed program was:" >&5
20031sed 's/^/| /' conftest.$ac_ext >&5
20032
20033( exit $ac_status )
20034ac_cv_header_stdc=no
20035fi
20036rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20037fi
20038fi
20039fi
20040echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20041echo "${ECHO_T}$ac_cv_header_stdc" >&6
20042if test $ac_cv_header_stdc = yes; then
20043
20044cat >>confdefs.h <<\_ACEOF
20045#define STDC_HEADERS 1
20046_ACEOF
20047
20048fi
20049
20050echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20051echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20052if test "${ac_cv_header_sys_wait_h+set}" = set; then
20053  echo $ECHO_N "(cached) $ECHO_C" >&6
20054else
20055  cat >conftest.$ac_ext <<_ACEOF
20056/* confdefs.h.  */
20057_ACEOF
20058cat confdefs.h >>conftest.$ac_ext
20059cat >>conftest.$ac_ext <<_ACEOF
20060/* end confdefs.h.  */
20061#include <sys/types.h>
20062#include <sys/wait.h>
20063#ifndef WEXITSTATUS
20064# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20065#endif
20066#ifndef WIFEXITED
20067# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20068#endif
20069
20070int
20071main ()
20072{
20073  int s;
20074  wait (&s);
20075  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20076  ;
20077  return 0;
20078}
20079_ACEOF
20080rm -f conftest.$ac_objext
20081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082  (eval $ac_compile) 2>conftest.er1
20083  ac_status=$?
20084  grep -v '^ *+' conftest.er1 >conftest.err
20085  rm -f conftest.er1
20086  cat conftest.err >&5
20087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088  (exit $ac_status); } &&
20089	 { ac_try='test -z "$ac_c_werror_flag"
20090			 || test ! -s conftest.err'
20091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092  (eval $ac_try) 2>&5
20093  ac_status=$?
20094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095  (exit $ac_status); }; } &&
20096	 { ac_try='test -s conftest.$ac_objext'
20097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098  (eval $ac_try) 2>&5
20099  ac_status=$?
20100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101  (exit $ac_status); }; }; then
20102  ac_cv_header_sys_wait_h=yes
20103else
20104  echo "$as_me: failed program was:" >&5
20105sed 's/^/| /' conftest.$ac_ext >&5
20106
20107ac_cv_header_sys_wait_h=no
20108fi
20109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110fi
20111echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20112echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20113if test $ac_cv_header_sys_wait_h = yes; then
20114
20115cat >>confdefs.h <<\_ACEOF
20116#define HAVE_SYS_WAIT_H 1
20117_ACEOF
20118
20119fi
20120
20121
20122
20123
20124
20125for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h
20126do
20127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20128if eval "test \"\${$as_ac_Header+set}\" = set"; then
20129  echo "$as_me:$LINENO: checking for $ac_header" >&5
20130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20131if eval "test \"\${$as_ac_Header+set}\" = set"; then
20132  echo $ECHO_N "(cached) $ECHO_C" >&6
20133fi
20134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20136else
20137  # Is the header compilable?
20138echo "$as_me:$LINENO: checking $ac_header usability" >&5
20139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20140cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h.  */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h.  */
20146$ac_includes_default
20147#include <$ac_header>
20148_ACEOF
20149rm -f conftest.$ac_objext
20150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20151  (eval $ac_compile) 2>conftest.er1
20152  ac_status=$?
20153  grep -v '^ *+' conftest.er1 >conftest.err
20154  rm -f conftest.er1
20155  cat conftest.err >&5
20156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157  (exit $ac_status); } &&
20158	 { ac_try='test -z "$ac_c_werror_flag"
20159			 || test ! -s conftest.err'
20160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161  (eval $ac_try) 2>&5
20162  ac_status=$?
20163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164  (exit $ac_status); }; } &&
20165	 { ac_try='test -s conftest.$ac_objext'
20166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167  (eval $ac_try) 2>&5
20168  ac_status=$?
20169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170  (exit $ac_status); }; }; then
20171  ac_header_compiler=yes
20172else
20173  echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176ac_header_compiler=no
20177fi
20178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20180echo "${ECHO_T}$ac_header_compiler" >&6
20181
20182# Is the header present?
20183echo "$as_me:$LINENO: checking $ac_header presence" >&5
20184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20185cat >conftest.$ac_ext <<_ACEOF
20186/* confdefs.h.  */
20187_ACEOF
20188cat confdefs.h >>conftest.$ac_ext
20189cat >>conftest.$ac_ext <<_ACEOF
20190/* end confdefs.h.  */
20191#include <$ac_header>
20192_ACEOF
20193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20194  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20195  ac_status=$?
20196  grep -v '^ *+' conftest.er1 >conftest.err
20197  rm -f conftest.er1
20198  cat conftest.err >&5
20199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200  (exit $ac_status); } >/dev/null; then
20201  if test -s conftest.err; then
20202    ac_cpp_err=$ac_c_preproc_warn_flag
20203    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20204  else
20205    ac_cpp_err=
20206  fi
20207else
20208  ac_cpp_err=yes
20209fi
20210if test -z "$ac_cpp_err"; then
20211  ac_header_preproc=yes
20212else
20213  echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216  ac_header_preproc=no
20217fi
20218rm -f conftest.err conftest.$ac_ext
20219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220echo "${ECHO_T}$ac_header_preproc" >&6
20221
20222# So?  What about this header?
20223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20224  yes:no: )
20225    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20229    ac_header_preproc=yes
20230    ;;
20231  no:yes:* )
20232    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20234    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20235echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20236    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20238    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20239echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20240    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20242    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20244    (
20245      cat <<\_ASBOX
20246## ----------------------------------------------- ##
20247## Report this to trustedbsd-audit@TrustesdBSD.org ##
20248## ----------------------------------------------- ##
20249_ASBOX
20250    ) |
20251      sed "s/^/$as_me: WARNING:     /" >&2
20252    ;;
20253esac
20254echo "$as_me:$LINENO: checking for $ac_header" >&5
20255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20256if eval "test \"\${$as_ac_Header+set}\" = set"; then
20257  echo $ECHO_N "(cached) $ECHO_C" >&6
20258else
20259  eval "$as_ac_Header=\$ac_header_preproc"
20260fi
20261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20263
20264fi
20265if test `eval echo '${'$as_ac_Header'}'` = yes; then
20266  cat >>confdefs.h <<_ACEOF
20267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20268_ACEOF
20269
20270fi
20271
20272done
20273
20274
20275# Checks for typedefs, structures, and compiler characteristics.
20276echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20277echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20278if test "${ac_cv_c_const+set}" = set; then
20279  echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281  cat >conftest.$ac_ext <<_ACEOF
20282/* confdefs.h.  */
20283_ACEOF
20284cat confdefs.h >>conftest.$ac_ext
20285cat >>conftest.$ac_ext <<_ACEOF
20286/* end confdefs.h.  */
20287
20288int
20289main ()
20290{
20291/* FIXME: Include the comments suggested by Paul. */
20292#ifndef __cplusplus
20293  /* Ultrix mips cc rejects this.  */
20294  typedef int charset[2];
20295  const charset x;
20296  /* SunOS 4.1.1 cc rejects this.  */
20297  char const *const *ccp;
20298  char **p;
20299  /* NEC SVR4.0.2 mips cc rejects this.  */
20300  struct point {int x, y;};
20301  static struct point const zero = {0,0};
20302  /* AIX XL C 1.02.0.0 rejects this.
20303     It does not let you subtract one const X* pointer from another in
20304     an arm of an if-expression whose if-part is not a constant
20305     expression */
20306  const char *g = "string";
20307  ccp = &g + (g ? g-g : 0);
20308  /* HPUX 7.0 cc rejects these. */
20309  ++ccp;
20310  p = (char**) ccp;
20311  ccp = (char const *const *) p;
20312  { /* SCO 3.2v4 cc rejects this.  */
20313    char *t;
20314    char const *s = 0 ? (char *) 0 : (char const *) 0;
20315
20316    *t++ = 0;
20317  }
20318  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20319    int x[] = {25, 17};
20320    const int *foo = &x[0];
20321    ++foo;
20322  }
20323  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20324    typedef const int *iptr;
20325    iptr p = 0;
20326    ++p;
20327  }
20328  { /* AIX XL C 1.02.0.0 rejects this saying
20329       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20330    struct s { int j; const int *ap[3]; };
20331    struct s *b; b->j = 5;
20332  }
20333  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20334    const int foo = 10;
20335  }
20336#endif
20337
20338  ;
20339  return 0;
20340}
20341_ACEOF
20342rm -f conftest.$ac_objext
20343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344  (eval $ac_compile) 2>conftest.er1
20345  ac_status=$?
20346  grep -v '^ *+' conftest.er1 >conftest.err
20347  rm -f conftest.er1
20348  cat conftest.err >&5
20349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350  (exit $ac_status); } &&
20351	 { ac_try='test -z "$ac_c_werror_flag"
20352			 || test ! -s conftest.err'
20353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354  (eval $ac_try) 2>&5
20355  ac_status=$?
20356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357  (exit $ac_status); }; } &&
20358	 { ac_try='test -s conftest.$ac_objext'
20359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360  (eval $ac_try) 2>&5
20361  ac_status=$?
20362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363  (exit $ac_status); }; }; then
20364  ac_cv_c_const=yes
20365else
20366  echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369ac_cv_c_const=no
20370fi
20371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372fi
20373echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20374echo "${ECHO_T}$ac_cv_c_const" >&6
20375if test $ac_cv_c_const = no; then
20376
20377cat >>confdefs.h <<\_ACEOF
20378#define const
20379_ACEOF
20380
20381fi
20382
20383echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20384echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
20385if test "${ac_cv_type_uid_t+set}" = set; then
20386  echo $ECHO_N "(cached) $ECHO_C" >&6
20387else
20388  cat >conftest.$ac_ext <<_ACEOF
20389/* confdefs.h.  */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h.  */
20394#include <sys/types.h>
20395
20396_ACEOF
20397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20398  $EGREP "uid_t" >/dev/null 2>&1; then
20399  ac_cv_type_uid_t=yes
20400else
20401  ac_cv_type_uid_t=no
20402fi
20403rm -f conftest*
20404
20405fi
20406echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20407echo "${ECHO_T}$ac_cv_type_uid_t" >&6
20408if test $ac_cv_type_uid_t = no; then
20409
20410cat >>confdefs.h <<\_ACEOF
20411#define uid_t int
20412_ACEOF
20413
20414
20415cat >>confdefs.h <<\_ACEOF
20416#define gid_t int
20417_ACEOF
20418
20419fi
20420
20421echo "$as_me:$LINENO: checking for pid_t" >&5
20422echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20423if test "${ac_cv_type_pid_t+set}" = set; then
20424  echo $ECHO_N "(cached) $ECHO_C" >&6
20425else
20426  cat >conftest.$ac_ext <<_ACEOF
20427/* confdefs.h.  */
20428_ACEOF
20429cat confdefs.h >>conftest.$ac_ext
20430cat >>conftest.$ac_ext <<_ACEOF
20431/* end confdefs.h.  */
20432$ac_includes_default
20433int
20434main ()
20435{
20436if ((pid_t *) 0)
20437  return 0;
20438if (sizeof (pid_t))
20439  return 0;
20440  ;
20441  return 0;
20442}
20443_ACEOF
20444rm -f conftest.$ac_objext
20445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446  (eval $ac_compile) 2>conftest.er1
20447  ac_status=$?
20448  grep -v '^ *+' conftest.er1 >conftest.err
20449  rm -f conftest.er1
20450  cat conftest.err >&5
20451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452  (exit $ac_status); } &&
20453	 { ac_try='test -z "$ac_c_werror_flag"
20454			 || test ! -s conftest.err'
20455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456  (eval $ac_try) 2>&5
20457  ac_status=$?
20458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459  (exit $ac_status); }; } &&
20460	 { ac_try='test -s conftest.$ac_objext'
20461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462  (eval $ac_try) 2>&5
20463  ac_status=$?
20464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465  (exit $ac_status); }; }; then
20466  ac_cv_type_pid_t=yes
20467else
20468  echo "$as_me: failed program was:" >&5
20469sed 's/^/| /' conftest.$ac_ext >&5
20470
20471ac_cv_type_pid_t=no
20472fi
20473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20474fi
20475echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20476echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20477if test $ac_cv_type_pid_t = yes; then
20478  :
20479else
20480
20481cat >>confdefs.h <<_ACEOF
20482#define pid_t int
20483_ACEOF
20484
20485fi
20486
20487echo "$as_me:$LINENO: checking for size_t" >&5
20488echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20489if test "${ac_cv_type_size_t+set}" = set; then
20490  echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492  cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h.  */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h.  */
20498$ac_includes_default
20499int
20500main ()
20501{
20502if ((size_t *) 0)
20503  return 0;
20504if (sizeof (size_t))
20505  return 0;
20506  ;
20507  return 0;
20508}
20509_ACEOF
20510rm -f conftest.$ac_objext
20511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512  (eval $ac_compile) 2>conftest.er1
20513  ac_status=$?
20514  grep -v '^ *+' conftest.er1 >conftest.err
20515  rm -f conftest.er1
20516  cat conftest.err >&5
20517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518  (exit $ac_status); } &&
20519	 { ac_try='test -z "$ac_c_werror_flag"
20520			 || test ! -s conftest.err'
20521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522  (eval $ac_try) 2>&5
20523  ac_status=$?
20524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525  (exit $ac_status); }; } &&
20526	 { ac_try='test -s conftest.$ac_objext'
20527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528  (eval $ac_try) 2>&5
20529  ac_status=$?
20530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531  (exit $ac_status); }; }; then
20532  ac_cv_type_size_t=yes
20533else
20534  echo "$as_me: failed program was:" >&5
20535sed 's/^/| /' conftest.$ac_ext >&5
20536
20537ac_cv_type_size_t=no
20538fi
20539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540fi
20541echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20542echo "${ECHO_T}$ac_cv_type_size_t" >&6
20543if test $ac_cv_type_size_t = yes; then
20544  :
20545else
20546
20547cat >>confdefs.h <<_ACEOF
20548#define size_t unsigned
20549_ACEOF
20550
20551fi
20552
20553echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20554echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
20555if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20556  echo $ECHO_N "(cached) $ECHO_C" >&6
20557else
20558  cat >conftest.$ac_ext <<_ACEOF
20559/* confdefs.h.  */
20560_ACEOF
20561cat confdefs.h >>conftest.$ac_ext
20562cat >>conftest.$ac_ext <<_ACEOF
20563/* end confdefs.h.  */
20564$ac_includes_default
20565int
20566main ()
20567{
20568static struct stat ac_aggr;
20569if (ac_aggr.st_rdev)
20570return 0;
20571  ;
20572  return 0;
20573}
20574_ACEOF
20575rm -f conftest.$ac_objext
20576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577  (eval $ac_compile) 2>conftest.er1
20578  ac_status=$?
20579  grep -v '^ *+' conftest.er1 >conftest.err
20580  rm -f conftest.er1
20581  cat conftest.err >&5
20582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583  (exit $ac_status); } &&
20584	 { ac_try='test -z "$ac_c_werror_flag"
20585			 || test ! -s conftest.err'
20586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587  (eval $ac_try) 2>&5
20588  ac_status=$?
20589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590  (exit $ac_status); }; } &&
20591	 { ac_try='test -s conftest.$ac_objext'
20592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593  (eval $ac_try) 2>&5
20594  ac_status=$?
20595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596  (exit $ac_status); }; }; then
20597  ac_cv_member_struct_stat_st_rdev=yes
20598else
20599  echo "$as_me: failed program was:" >&5
20600sed 's/^/| /' conftest.$ac_ext >&5
20601
20602cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h.  */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h.  */
20608$ac_includes_default
20609int
20610main ()
20611{
20612static struct stat ac_aggr;
20613if (sizeof ac_aggr.st_rdev)
20614return 0;
20615  ;
20616  return 0;
20617}
20618_ACEOF
20619rm -f conftest.$ac_objext
20620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621  (eval $ac_compile) 2>conftest.er1
20622  ac_status=$?
20623  grep -v '^ *+' conftest.er1 >conftest.err
20624  rm -f conftest.er1
20625  cat conftest.err >&5
20626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627  (exit $ac_status); } &&
20628	 { ac_try='test -z "$ac_c_werror_flag"
20629			 || test ! -s conftest.err'
20630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631  (eval $ac_try) 2>&5
20632  ac_status=$?
20633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634  (exit $ac_status); }; } &&
20635	 { ac_try='test -s conftest.$ac_objext'
20636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637  (eval $ac_try) 2>&5
20638  ac_status=$?
20639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640  (exit $ac_status); }; }; then
20641  ac_cv_member_struct_stat_st_rdev=yes
20642else
20643  echo "$as_me: failed program was:" >&5
20644sed 's/^/| /' conftest.$ac_ext >&5
20645
20646ac_cv_member_struct_stat_st_rdev=no
20647fi
20648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649fi
20650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20651fi
20652echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20653echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
20654if test $ac_cv_member_struct_stat_st_rdev = yes; then
20655
20656cat >>confdefs.h <<_ACEOF
20657#define HAVE_STRUCT_STAT_ST_RDEV 1
20658_ACEOF
20659
20660
20661fi
20662
20663
20664echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20665echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6
20666if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20667  echo $ECHO_N "(cached) $ECHO_C" >&6
20668else
20669  cat >conftest.$ac_ext <<_ACEOF
20670/* confdefs.h.  */
20671_ACEOF
20672cat confdefs.h >>conftest.$ac_ext
20673cat >>conftest.$ac_ext <<_ACEOF
20674/* end confdefs.h.  */
20675
20676#include <sys/types.h>
20677#include <sys/ipc.h>
20678
20679
20680int
20681main ()
20682{
20683static struct ipc_perm ac_aggr;
20684if (ac_aggr.__key)
20685return 0;
20686  ;
20687  return 0;
20688}
20689_ACEOF
20690rm -f conftest.$ac_objext
20691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692  (eval $ac_compile) 2>conftest.er1
20693  ac_status=$?
20694  grep -v '^ *+' conftest.er1 >conftest.err
20695  rm -f conftest.er1
20696  cat conftest.err >&5
20697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698  (exit $ac_status); } &&
20699	 { ac_try='test -z "$ac_c_werror_flag"
20700			 || test ! -s conftest.err'
20701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702  (eval $ac_try) 2>&5
20703  ac_status=$?
20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705  (exit $ac_status); }; } &&
20706	 { ac_try='test -s conftest.$ac_objext'
20707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708  (eval $ac_try) 2>&5
20709  ac_status=$?
20710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711  (exit $ac_status); }; }; then
20712  ac_cv_member_struct_ipc_perm___key=yes
20713else
20714  echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717cat >conftest.$ac_ext <<_ACEOF
20718/* confdefs.h.  */
20719_ACEOF
20720cat confdefs.h >>conftest.$ac_ext
20721cat >>conftest.$ac_ext <<_ACEOF
20722/* end confdefs.h.  */
20723
20724#include <sys/types.h>
20725#include <sys/ipc.h>
20726
20727
20728int
20729main ()
20730{
20731static struct ipc_perm ac_aggr;
20732if (sizeof ac_aggr.__key)
20733return 0;
20734  ;
20735  return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext
20739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740  (eval $ac_compile) 2>conftest.er1
20741  ac_status=$?
20742  grep -v '^ *+' conftest.er1 >conftest.err
20743  rm -f conftest.er1
20744  cat conftest.err >&5
20745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746  (exit $ac_status); } &&
20747	 { ac_try='test -z "$ac_c_werror_flag"
20748			 || test ! -s conftest.err'
20749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750  (eval $ac_try) 2>&5
20751  ac_status=$?
20752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753  (exit $ac_status); }; } &&
20754	 { ac_try='test -s conftest.$ac_objext'
20755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756  (eval $ac_try) 2>&5
20757  ac_status=$?
20758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759  (exit $ac_status); }; }; then
20760  ac_cv_member_struct_ipc_perm___key=yes
20761else
20762  echo "$as_me: failed program was:" >&5
20763sed 's/^/| /' conftest.$ac_ext >&5
20764
20765ac_cv_member_struct_ipc_perm___key=no
20766fi
20767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20768fi
20769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20770fi
20771echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20772echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6
20773if test $ac_cv_member_struct_ipc_perm___key = yes; then
20774
20775cat >>confdefs.h <<\_ACEOF
20776#define HAVE_IPC_PERM___KEY
20777_ACEOF
20778
20779fi
20780
20781
20782echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20783echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6
20784if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20785  echo $ECHO_N "(cached) $ECHO_C" >&6
20786else
20787  cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h.  */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h.  */
20793
20794#include <sys/types.h>
20795#include <sys/ipc.h>
20796
20797
20798int
20799main ()
20800{
20801static struct ipc_perm ac_aggr;
20802if (ac_aggr.__seq)
20803return 0;
20804  ;
20805  return 0;
20806}
20807_ACEOF
20808rm -f conftest.$ac_objext
20809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20810  (eval $ac_compile) 2>conftest.er1
20811  ac_status=$?
20812  grep -v '^ *+' conftest.er1 >conftest.err
20813  rm -f conftest.er1
20814  cat conftest.err >&5
20815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816  (exit $ac_status); } &&
20817	 { ac_try='test -z "$ac_c_werror_flag"
20818			 || test ! -s conftest.err'
20819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820  (eval $ac_try) 2>&5
20821  ac_status=$?
20822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823  (exit $ac_status); }; } &&
20824	 { ac_try='test -s conftest.$ac_objext'
20825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826  (eval $ac_try) 2>&5
20827  ac_status=$?
20828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829  (exit $ac_status); }; }; then
20830  ac_cv_member_struct_ipc_perm___seq=yes
20831else
20832  echo "$as_me: failed program was:" >&5
20833sed 's/^/| /' conftest.$ac_ext >&5
20834
20835cat >conftest.$ac_ext <<_ACEOF
20836/* confdefs.h.  */
20837_ACEOF
20838cat confdefs.h >>conftest.$ac_ext
20839cat >>conftest.$ac_ext <<_ACEOF
20840/* end confdefs.h.  */
20841
20842#include <sys/types.h>
20843#include <sys/ipc.h>
20844
20845
20846int
20847main ()
20848{
20849static struct ipc_perm ac_aggr;
20850if (sizeof ac_aggr.__seq)
20851return 0;
20852  ;
20853  return 0;
20854}
20855_ACEOF
20856rm -f conftest.$ac_objext
20857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858  (eval $ac_compile) 2>conftest.er1
20859  ac_status=$?
20860  grep -v '^ *+' conftest.er1 >conftest.err
20861  rm -f conftest.er1
20862  cat conftest.err >&5
20863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864  (exit $ac_status); } &&
20865	 { ac_try='test -z "$ac_c_werror_flag"
20866			 || test ! -s conftest.err'
20867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868  (eval $ac_try) 2>&5
20869  ac_status=$?
20870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871  (exit $ac_status); }; } &&
20872	 { ac_try='test -s conftest.$ac_objext'
20873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874  (eval $ac_try) 2>&5
20875  ac_status=$?
20876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877  (exit $ac_status); }; }; then
20878  ac_cv_member_struct_ipc_perm___seq=yes
20879else
20880  echo "$as_me: failed program was:" >&5
20881sed 's/^/| /' conftest.$ac_ext >&5
20882
20883ac_cv_member_struct_ipc_perm___seq=no
20884fi
20885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886fi
20887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20888fi
20889echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20890echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6
20891if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20892
20893cat >>confdefs.h <<\_ACEOF
20894#define HAVE_IPC_PERM___SEQ
20895_ACEOF
20896
20897fi
20898
20899
20900echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20901echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20902if test "${ac_cv_header_time+set}" = set; then
20903  echo $ECHO_N "(cached) $ECHO_C" >&6
20904else
20905  cat >conftest.$ac_ext <<_ACEOF
20906/* confdefs.h.  */
20907_ACEOF
20908cat confdefs.h >>conftest.$ac_ext
20909cat >>conftest.$ac_ext <<_ACEOF
20910/* end confdefs.h.  */
20911#include <sys/types.h>
20912#include <sys/time.h>
20913#include <time.h>
20914
20915int
20916main ()
20917{
20918if ((struct tm *) 0)
20919return 0;
20920  ;
20921  return 0;
20922}
20923_ACEOF
20924rm -f conftest.$ac_objext
20925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20926  (eval $ac_compile) 2>conftest.er1
20927  ac_status=$?
20928  grep -v '^ *+' conftest.er1 >conftest.err
20929  rm -f conftest.er1
20930  cat conftest.err >&5
20931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932  (exit $ac_status); } &&
20933	 { ac_try='test -z "$ac_c_werror_flag"
20934			 || test ! -s conftest.err'
20935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936  (eval $ac_try) 2>&5
20937  ac_status=$?
20938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939  (exit $ac_status); }; } &&
20940	 { ac_try='test -s conftest.$ac_objext'
20941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942  (eval $ac_try) 2>&5
20943  ac_status=$?
20944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945  (exit $ac_status); }; }; then
20946  ac_cv_header_time=yes
20947else
20948  echo "$as_me: failed program was:" >&5
20949sed 's/^/| /' conftest.$ac_ext >&5
20950
20951ac_cv_header_time=no
20952fi
20953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20954fi
20955echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20956echo "${ECHO_T}$ac_cv_header_time" >&6
20957if test $ac_cv_header_time = yes; then
20958
20959cat >>confdefs.h <<\_ACEOF
20960#define TIME_WITH_SYS_TIME 1
20961_ACEOF
20962
20963fi
20964
20965echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20966echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20967if test "${ac_cv_struct_tm+set}" = set; then
20968  echo $ECHO_N "(cached) $ECHO_C" >&6
20969else
20970  cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h.  */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h.  */
20976#include <sys/types.h>
20977#include <time.h>
20978
20979int
20980main ()
20981{
20982struct tm *tp; tp->tm_sec;
20983  ;
20984  return 0;
20985}
20986_ACEOF
20987rm -f conftest.$ac_objext
20988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20989  (eval $ac_compile) 2>conftest.er1
20990  ac_status=$?
20991  grep -v '^ *+' conftest.er1 >conftest.err
20992  rm -f conftest.er1
20993  cat conftest.err >&5
20994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995  (exit $ac_status); } &&
20996	 { ac_try='test -z "$ac_c_werror_flag"
20997			 || test ! -s conftest.err'
20998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999  (eval $ac_try) 2>&5
21000  ac_status=$?
21001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002  (exit $ac_status); }; } &&
21003	 { ac_try='test -s conftest.$ac_objext'
21004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005  (eval $ac_try) 2>&5
21006  ac_status=$?
21007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008  (exit $ac_status); }; }; then
21009  ac_cv_struct_tm=time.h
21010else
21011  echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014ac_cv_struct_tm=sys/time.h
21015fi
21016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21017fi
21018echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21019echo "${ECHO_T}$ac_cv_struct_tm" >&6
21020if test $ac_cv_struct_tm = sys/time.h; then
21021
21022cat >>confdefs.h <<\_ACEOF
21023#define TM_IN_SYS_TIME 1
21024_ACEOF
21025
21026fi
21027
21028
21029# Checks for library functions.
21030
21031for ac_header in unistd.h
21032do
21033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034if eval "test \"\${$as_ac_Header+set}\" = set"; then
21035  echo "$as_me:$LINENO: checking for $ac_header" >&5
21036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21037if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038  echo $ECHO_N "(cached) $ECHO_C" >&6
21039fi
21040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21042else
21043  # Is the header compilable?
21044echo "$as_me:$LINENO: checking $ac_header usability" >&5
21045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21046cat >conftest.$ac_ext <<_ACEOF
21047/* confdefs.h.  */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h.  */
21052$ac_includes_default
21053#include <$ac_header>
21054_ACEOF
21055rm -f conftest.$ac_objext
21056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21057  (eval $ac_compile) 2>conftest.er1
21058  ac_status=$?
21059  grep -v '^ *+' conftest.er1 >conftest.err
21060  rm -f conftest.er1
21061  cat conftest.err >&5
21062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063  (exit $ac_status); } &&
21064	 { ac_try='test -z "$ac_c_werror_flag"
21065			 || test ! -s conftest.err'
21066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067  (eval $ac_try) 2>&5
21068  ac_status=$?
21069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070  (exit $ac_status); }; } &&
21071	 { ac_try='test -s conftest.$ac_objext'
21072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073  (eval $ac_try) 2>&5
21074  ac_status=$?
21075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076  (exit $ac_status); }; }; then
21077  ac_header_compiler=yes
21078else
21079  echo "$as_me: failed program was:" >&5
21080sed 's/^/| /' conftest.$ac_ext >&5
21081
21082ac_header_compiler=no
21083fi
21084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086echo "${ECHO_T}$ac_header_compiler" >&6
21087
21088# Is the header present?
21089echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21091cat >conftest.$ac_ext <<_ACEOF
21092/* confdefs.h.  */
21093_ACEOF
21094cat confdefs.h >>conftest.$ac_ext
21095cat >>conftest.$ac_ext <<_ACEOF
21096/* end confdefs.h.  */
21097#include <$ac_header>
21098_ACEOF
21099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21101  ac_status=$?
21102  grep -v '^ *+' conftest.er1 >conftest.err
21103  rm -f conftest.er1
21104  cat conftest.err >&5
21105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106  (exit $ac_status); } >/dev/null; then
21107  if test -s conftest.err; then
21108    ac_cpp_err=$ac_c_preproc_warn_flag
21109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21110  else
21111    ac_cpp_err=
21112  fi
21113else
21114  ac_cpp_err=yes
21115fi
21116if test -z "$ac_cpp_err"; then
21117  ac_header_preproc=yes
21118else
21119  echo "$as_me: failed program was:" >&5
21120sed 's/^/| /' conftest.$ac_ext >&5
21121
21122  ac_header_preproc=no
21123fi
21124rm -f conftest.err conftest.$ac_ext
21125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126echo "${ECHO_T}$ac_header_preproc" >&6
21127
21128# So?  What about this header?
21129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21130  yes:no: )
21131    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135    ac_header_preproc=yes
21136    ;;
21137  no:yes:* )
21138    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21141echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21142    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21145echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21150    (
21151      cat <<\_ASBOX
21152## ----------------------------------------------- ##
21153## Report this to trustedbsd-audit@TrustesdBSD.org ##
21154## ----------------------------------------------- ##
21155_ASBOX
21156    ) |
21157      sed "s/^/$as_me: WARNING:     /" >&2
21158    ;;
21159esac
21160echo "$as_me:$LINENO: checking for $ac_header" >&5
21161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21162if eval "test \"\${$as_ac_Header+set}\" = set"; then
21163  echo $ECHO_N "(cached) $ECHO_C" >&6
21164else
21165  eval "$as_ac_Header=\$ac_header_preproc"
21166fi
21167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21169
21170fi
21171if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172  cat >>confdefs.h <<_ACEOF
21173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21174_ACEOF
21175
21176fi
21177
21178done
21179
21180echo "$as_me:$LINENO: checking for working chown" >&5
21181echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21182if test "${ac_cv_func_chown_works+set}" = set; then
21183  echo $ECHO_N "(cached) $ECHO_C" >&6
21184else
21185  if test "$cross_compiling" = yes; then
21186  ac_cv_func_chown_works=no
21187else
21188  cat >conftest.$ac_ext <<_ACEOF
21189/* confdefs.h.  */
21190_ACEOF
21191cat confdefs.h >>conftest.$ac_ext
21192cat >>conftest.$ac_ext <<_ACEOF
21193/* end confdefs.h.  */
21194$ac_includes_default
21195#include <fcntl.h>
21196
21197int
21198main ()
21199{
21200  char *f = "conftest.chown";
21201  struct stat before, after;
21202
21203  if (creat (f, 0600) < 0)
21204    exit (1);
21205  if (stat (f, &before) < 0)
21206    exit (1);
21207  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21208    exit (1);
21209  if (stat (f, &after) < 0)
21210    exit (1);
21211  exit ((before.st_uid == after.st_uid
21212	 && before.st_gid == after.st_gid) ? 0 : 1);
21213
21214  ;
21215  return 0;
21216}
21217_ACEOF
21218rm -f conftest$ac_exeext
21219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21220  (eval $ac_link) 2>&5
21221  ac_status=$?
21222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225  (eval $ac_try) 2>&5
21226  ac_status=$?
21227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228  (exit $ac_status); }; }; then
21229  ac_cv_func_chown_works=yes
21230else
21231  echo "$as_me: program exited with status $ac_status" >&5
21232echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235( exit $ac_status )
21236ac_cv_func_chown_works=no
21237fi
21238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21239fi
21240rm -f conftest.chown
21241
21242fi
21243echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21244echo "${ECHO_T}$ac_cv_func_chown_works" >&6
21245if test $ac_cv_func_chown_works = yes; then
21246
21247cat >>confdefs.h <<\_ACEOF
21248#define HAVE_CHOWN 1
21249_ACEOF
21250
21251fi
21252
21253
21254
21255for ac_header in unistd.h vfork.h
21256do
21257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21258if eval "test \"\${$as_ac_Header+set}\" = set"; then
21259  echo "$as_me:$LINENO: checking for $ac_header" >&5
21260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21261if eval "test \"\${$as_ac_Header+set}\" = set"; then
21262  echo $ECHO_N "(cached) $ECHO_C" >&6
21263fi
21264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21266else
21267  # Is the header compilable?
21268echo "$as_me:$LINENO: checking $ac_header usability" >&5
21269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21270cat >conftest.$ac_ext <<_ACEOF
21271/* confdefs.h.  */
21272_ACEOF
21273cat confdefs.h >>conftest.$ac_ext
21274cat >>conftest.$ac_ext <<_ACEOF
21275/* end confdefs.h.  */
21276$ac_includes_default
21277#include <$ac_header>
21278_ACEOF
21279rm -f conftest.$ac_objext
21280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21281  (eval $ac_compile) 2>conftest.er1
21282  ac_status=$?
21283  grep -v '^ *+' conftest.er1 >conftest.err
21284  rm -f conftest.er1
21285  cat conftest.err >&5
21286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287  (exit $ac_status); } &&
21288	 { ac_try='test -z "$ac_c_werror_flag"
21289			 || test ! -s conftest.err'
21290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291  (eval $ac_try) 2>&5
21292  ac_status=$?
21293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294  (exit $ac_status); }; } &&
21295	 { ac_try='test -s conftest.$ac_objext'
21296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297  (eval $ac_try) 2>&5
21298  ac_status=$?
21299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300  (exit $ac_status); }; }; then
21301  ac_header_compiler=yes
21302else
21303  echo "$as_me: failed program was:" >&5
21304sed 's/^/| /' conftest.$ac_ext >&5
21305
21306ac_header_compiler=no
21307fi
21308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21310echo "${ECHO_T}$ac_header_compiler" >&6
21311
21312# Is the header present?
21313echo "$as_me:$LINENO: checking $ac_header presence" >&5
21314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21315cat >conftest.$ac_ext <<_ACEOF
21316/* confdefs.h.  */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h.  */
21321#include <$ac_header>
21322_ACEOF
21323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21324  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21325  ac_status=$?
21326  grep -v '^ *+' conftest.er1 >conftest.err
21327  rm -f conftest.er1
21328  cat conftest.err >&5
21329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330  (exit $ac_status); } >/dev/null; then
21331  if test -s conftest.err; then
21332    ac_cpp_err=$ac_c_preproc_warn_flag
21333    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21334  else
21335    ac_cpp_err=
21336  fi
21337else
21338  ac_cpp_err=yes
21339fi
21340if test -z "$ac_cpp_err"; then
21341  ac_header_preproc=yes
21342else
21343  echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346  ac_header_preproc=no
21347fi
21348rm -f conftest.err conftest.$ac_ext
21349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21350echo "${ECHO_T}$ac_header_preproc" >&6
21351
21352# So?  What about this header?
21353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21354  yes:no: )
21355    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21359    ac_header_preproc=yes
21360    ;;
21361  no:yes:* )
21362    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21364    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21365echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21366    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21368    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21369echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21370    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21372    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21374    (
21375      cat <<\_ASBOX
21376## ----------------------------------------------- ##
21377## Report this to trustedbsd-audit@TrustesdBSD.org ##
21378## ----------------------------------------------- ##
21379_ASBOX
21380    ) |
21381      sed "s/^/$as_me: WARNING:     /" >&2
21382    ;;
21383esac
21384echo "$as_me:$LINENO: checking for $ac_header" >&5
21385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21386if eval "test \"\${$as_ac_Header+set}\" = set"; then
21387  echo $ECHO_N "(cached) $ECHO_C" >&6
21388else
21389  eval "$as_ac_Header=\$ac_header_preproc"
21390fi
21391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21393
21394fi
21395if test `eval echo '${'$as_ac_Header'}'` = yes; then
21396  cat >>confdefs.h <<_ACEOF
21397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21398_ACEOF
21399
21400fi
21401
21402done
21403
21404
21405
21406for ac_func in fork vfork
21407do
21408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21409echo "$as_me:$LINENO: checking for $ac_func" >&5
21410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21411if eval "test \"\${$as_ac_var+set}\" = set"; then
21412  echo $ECHO_N "(cached) $ECHO_C" >&6
21413else
21414  cat >conftest.$ac_ext <<_ACEOF
21415/* confdefs.h.  */
21416_ACEOF
21417cat confdefs.h >>conftest.$ac_ext
21418cat >>conftest.$ac_ext <<_ACEOF
21419/* end confdefs.h.  */
21420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21421   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21422#define $ac_func innocuous_$ac_func
21423
21424/* System header to define __stub macros and hopefully few prototypes,
21425    which can conflict with char $ac_func (); below.
21426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21427    <limits.h> exists even on freestanding compilers.  */
21428
21429#ifdef __STDC__
21430# include <limits.h>
21431#else
21432# include <assert.h>
21433#endif
21434
21435#undef $ac_func
21436
21437/* Override any gcc2 internal prototype to avoid an error.  */
21438#ifdef __cplusplus
21439extern "C"
21440{
21441#endif
21442/* We use char because int might match the return type of a gcc2
21443   builtin and then its argument prototype would still apply.  */
21444char $ac_func ();
21445/* The GNU C library defines this for functions which it implements
21446    to always fail with ENOSYS.  Some functions are actually named
21447    something starting with __ and the normal name is an alias.  */
21448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21449choke me
21450#else
21451char (*f) () = $ac_func;
21452#endif
21453#ifdef __cplusplus
21454}
21455#endif
21456
21457int
21458main ()
21459{
21460return f != $ac_func;
21461  ;
21462  return 0;
21463}
21464_ACEOF
21465rm -f conftest.$ac_objext conftest$ac_exeext
21466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21467  (eval $ac_link) 2>conftest.er1
21468  ac_status=$?
21469  grep -v '^ *+' conftest.er1 >conftest.err
21470  rm -f conftest.er1
21471  cat conftest.err >&5
21472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473  (exit $ac_status); } &&
21474	 { ac_try='test -z "$ac_c_werror_flag"
21475			 || test ! -s conftest.err'
21476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477  (eval $ac_try) 2>&5
21478  ac_status=$?
21479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480  (exit $ac_status); }; } &&
21481	 { ac_try='test -s conftest$ac_exeext'
21482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483  (eval $ac_try) 2>&5
21484  ac_status=$?
21485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486  (exit $ac_status); }; }; then
21487  eval "$as_ac_var=yes"
21488else
21489  echo "$as_me: failed program was:" >&5
21490sed 's/^/| /' conftest.$ac_ext >&5
21491
21492eval "$as_ac_var=no"
21493fi
21494rm -f conftest.err conftest.$ac_objext \
21495      conftest$ac_exeext conftest.$ac_ext
21496fi
21497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21499if test `eval echo '${'$as_ac_var'}'` = yes; then
21500  cat >>confdefs.h <<_ACEOF
21501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21502_ACEOF
21503
21504fi
21505done
21506
21507if test "x$ac_cv_func_fork" = xyes; then
21508  echo "$as_me:$LINENO: checking for working fork" >&5
21509echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21510if test "${ac_cv_func_fork_works+set}" = set; then
21511  echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513  if test "$cross_compiling" = yes; then
21514  ac_cv_func_fork_works=cross
21515else
21516  cat >conftest.$ac_ext <<_ACEOF
21517/* By Ruediger Kuhlmann. */
21518      #include <sys/types.h>
21519      #if HAVE_UNISTD_H
21520      # include <unistd.h>
21521      #endif
21522      /* Some systems only have a dummy stub for fork() */
21523      int main ()
21524      {
21525	if (fork() < 0)
21526	  exit (1);
21527	exit (0);
21528      }
21529_ACEOF
21530rm -f conftest$ac_exeext
21531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21532  (eval $ac_link) 2>&5
21533  ac_status=$?
21534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537  (eval $ac_try) 2>&5
21538  ac_status=$?
21539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540  (exit $ac_status); }; }; then
21541  ac_cv_func_fork_works=yes
21542else
21543  echo "$as_me: program exited with status $ac_status" >&5
21544echo "$as_me: failed program was:" >&5
21545sed 's/^/| /' conftest.$ac_ext >&5
21546
21547( exit $ac_status )
21548ac_cv_func_fork_works=no
21549fi
21550rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21551fi
21552fi
21553echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21554echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21555
21556else
21557  ac_cv_func_fork_works=$ac_cv_func_fork
21558fi
21559if test "x$ac_cv_func_fork_works" = xcross; then
21560  case $host in
21561    *-*-amigaos* | *-*-msdosdjgpp*)
21562      # Override, as these systems have only a dummy fork() stub
21563      ac_cv_func_fork_works=no
21564      ;;
21565    *)
21566      ac_cv_func_fork_works=yes
21567      ;;
21568  esac
21569  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21570echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21571fi
21572ac_cv_func_vfork_works=$ac_cv_func_vfork
21573if test "x$ac_cv_func_vfork" = xyes; then
21574  echo "$as_me:$LINENO: checking for working vfork" >&5
21575echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21576if test "${ac_cv_func_vfork_works+set}" = set; then
21577  echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579  if test "$cross_compiling" = yes; then
21580  ac_cv_func_vfork_works=cross
21581else
21582  cat >conftest.$ac_ext <<_ACEOF
21583/* confdefs.h.  */
21584_ACEOF
21585cat confdefs.h >>conftest.$ac_ext
21586cat >>conftest.$ac_ext <<_ACEOF
21587/* end confdefs.h.  */
21588/* Thanks to Paul Eggert for this test.  */
21589#include <stdio.h>
21590#include <stdlib.h>
21591#include <sys/types.h>
21592#include <sys/stat.h>
21593#include <sys/wait.h>
21594#if HAVE_UNISTD_H
21595# include <unistd.h>
21596#endif
21597#if HAVE_VFORK_H
21598# include <vfork.h>
21599#endif
21600/* On some sparc systems, changes by the child to local and incoming
21601   argument registers are propagated back to the parent.  The compiler
21602   is told about this with #include <vfork.h>, but some compilers
21603   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21604   static variable whose address is put into a register that is
21605   clobbered by the vfork.  */
21606static void
21607#ifdef __cplusplus
21608sparc_address_test (int arg)
21609# else
21610sparc_address_test (arg) int arg;
21611#endif
21612{
21613  static pid_t child;
21614  if (!child) {
21615    child = vfork ();
21616    if (child < 0) {
21617      perror ("vfork");
21618      _exit(2);
21619    }
21620    if (!child) {
21621      arg = getpid();
21622      write(-1, "", 0);
21623      _exit (arg);
21624    }
21625  }
21626}
21627
21628int
21629main ()
21630{
21631  pid_t parent = getpid ();
21632  pid_t child;
21633
21634  sparc_address_test (0);
21635
21636  child = vfork ();
21637
21638  if (child == 0) {
21639    /* Here is another test for sparc vfork register problems.  This
21640       test uses lots of local variables, at least as many local
21641       variables as main has allocated so far including compiler
21642       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21643       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21644       reuse the register of parent for one of the local variables,
21645       since it will think that parent can't possibly be used any more
21646       in this routine.  Assigning to the local variable will thus
21647       munge parent in the parent process.  */
21648    pid_t
21649      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21650      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21651    /* Convince the compiler that p..p7 are live; otherwise, it might
21652       use the same hardware register for all 8 local variables.  */
21653    if (p != p1 || p != p2 || p != p3 || p != p4
21654	|| p != p5 || p != p6 || p != p7)
21655      _exit(1);
21656
21657    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21658       from child file descriptors.  If the child closes a descriptor
21659       before it execs or exits, this munges the parent's descriptor
21660       as well.  Test for this by closing stdout in the child.  */
21661    _exit(close(fileno(stdout)) != 0);
21662  } else {
21663    int status;
21664    struct stat st;
21665
21666    while (wait(&status) != child)
21667      ;
21668    exit(
21669	 /* Was there some problem with vforking?  */
21670	 child < 0
21671
21672	 /* Did the child fail?  (This shouldn't happen.)  */
21673	 || status
21674
21675	 /* Did the vfork/compiler bug occur?  */
21676	 || parent != getpid()
21677
21678	 /* Did the file descriptor bug occur?  */
21679	 || fstat(fileno(stdout), &st) != 0
21680	 );
21681  }
21682}
21683_ACEOF
21684rm -f conftest$ac_exeext
21685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21686  (eval $ac_link) 2>&5
21687  ac_status=$?
21688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691  (eval $ac_try) 2>&5
21692  ac_status=$?
21693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694  (exit $ac_status); }; }; then
21695  ac_cv_func_vfork_works=yes
21696else
21697  echo "$as_me: program exited with status $ac_status" >&5
21698echo "$as_me: failed program was:" >&5
21699sed 's/^/| /' conftest.$ac_ext >&5
21700
21701( exit $ac_status )
21702ac_cv_func_vfork_works=no
21703fi
21704rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21705fi
21706fi
21707echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21708echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21709
21710fi;
21711if test "x$ac_cv_func_fork_works" = xcross; then
21712  ac_cv_func_vfork_works=$ac_cv_func_vfork
21713  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21714echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21715fi
21716
21717if test "x$ac_cv_func_vfork_works" = xyes; then
21718
21719cat >>confdefs.h <<\_ACEOF
21720#define HAVE_WORKING_VFORK 1
21721_ACEOF
21722
21723else
21724
21725cat >>confdefs.h <<\_ACEOF
21726#define vfork fork
21727_ACEOF
21728
21729fi
21730if test "x$ac_cv_func_fork_works" = xyes; then
21731
21732cat >>confdefs.h <<\_ACEOF
21733#define HAVE_WORKING_FORK 1
21734_ACEOF
21735
21736fi
21737
21738
21739for ac_header in stdlib.h
21740do
21741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742if eval "test \"\${$as_ac_Header+set}\" = set"; then
21743  echo "$as_me:$LINENO: checking for $ac_header" >&5
21744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21745if eval "test \"\${$as_ac_Header+set}\" = set"; then
21746  echo $ECHO_N "(cached) $ECHO_C" >&6
21747fi
21748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21750else
21751  # Is the header compilable?
21752echo "$as_me:$LINENO: checking $ac_header usability" >&5
21753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21754cat >conftest.$ac_ext <<_ACEOF
21755/* confdefs.h.  */
21756_ACEOF
21757cat confdefs.h >>conftest.$ac_ext
21758cat >>conftest.$ac_ext <<_ACEOF
21759/* end confdefs.h.  */
21760$ac_includes_default
21761#include <$ac_header>
21762_ACEOF
21763rm -f conftest.$ac_objext
21764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21765  (eval $ac_compile) 2>conftest.er1
21766  ac_status=$?
21767  grep -v '^ *+' conftest.er1 >conftest.err
21768  rm -f conftest.er1
21769  cat conftest.err >&5
21770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771  (exit $ac_status); } &&
21772	 { ac_try='test -z "$ac_c_werror_flag"
21773			 || test ! -s conftest.err'
21774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775  (eval $ac_try) 2>&5
21776  ac_status=$?
21777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778  (exit $ac_status); }; } &&
21779	 { ac_try='test -s conftest.$ac_objext'
21780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21781  (eval $ac_try) 2>&5
21782  ac_status=$?
21783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784  (exit $ac_status); }; }; then
21785  ac_header_compiler=yes
21786else
21787  echo "$as_me: failed program was:" >&5
21788sed 's/^/| /' conftest.$ac_ext >&5
21789
21790ac_header_compiler=no
21791fi
21792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21793echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21794echo "${ECHO_T}$ac_header_compiler" >&6
21795
21796# Is the header present?
21797echo "$as_me:$LINENO: checking $ac_header presence" >&5
21798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21799cat >conftest.$ac_ext <<_ACEOF
21800/* confdefs.h.  */
21801_ACEOF
21802cat confdefs.h >>conftest.$ac_ext
21803cat >>conftest.$ac_ext <<_ACEOF
21804/* end confdefs.h.  */
21805#include <$ac_header>
21806_ACEOF
21807if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21808  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21809  ac_status=$?
21810  grep -v '^ *+' conftest.er1 >conftest.err
21811  rm -f conftest.er1
21812  cat conftest.err >&5
21813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814  (exit $ac_status); } >/dev/null; then
21815  if test -s conftest.err; then
21816    ac_cpp_err=$ac_c_preproc_warn_flag
21817    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21818  else
21819    ac_cpp_err=
21820  fi
21821else
21822  ac_cpp_err=yes
21823fi
21824if test -z "$ac_cpp_err"; then
21825  ac_header_preproc=yes
21826else
21827  echo "$as_me: failed program was:" >&5
21828sed 's/^/| /' conftest.$ac_ext >&5
21829
21830  ac_header_preproc=no
21831fi
21832rm -f conftest.err conftest.$ac_ext
21833echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21834echo "${ECHO_T}$ac_header_preproc" >&6
21835
21836# So?  What about this header?
21837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21838  yes:no: )
21839    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21841    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21843    ac_header_preproc=yes
21844    ;;
21845  no:yes:* )
21846    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21848    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21849echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21850    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21852    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21853echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21854    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21856    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21858    (
21859      cat <<\_ASBOX
21860## ----------------------------------------------- ##
21861## Report this to trustedbsd-audit@TrustesdBSD.org ##
21862## ----------------------------------------------- ##
21863_ASBOX
21864    ) |
21865      sed "s/^/$as_me: WARNING:     /" >&2
21866    ;;
21867esac
21868echo "$as_me:$LINENO: checking for $ac_header" >&5
21869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21870if eval "test \"\${$as_ac_Header+set}\" = set"; then
21871  echo $ECHO_N "(cached) $ECHO_C" >&6
21872else
21873  eval "$as_ac_Header=\$ac_header_preproc"
21874fi
21875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21877
21878fi
21879if test `eval echo '${'$as_ac_Header'}'` = yes; then
21880  cat >>confdefs.h <<_ACEOF
21881#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21882_ACEOF
21883
21884fi
21885
21886done
21887
21888echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21889echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21890if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21891  echo $ECHO_N "(cached) $ECHO_C" >&6
21892else
21893  if test "$cross_compiling" = yes; then
21894  ac_cv_func_malloc_0_nonnull=no
21895else
21896  cat >conftest.$ac_ext <<_ACEOF
21897/* confdefs.h.  */
21898_ACEOF
21899cat confdefs.h >>conftest.$ac_ext
21900cat >>conftest.$ac_ext <<_ACEOF
21901/* end confdefs.h.  */
21902#if STDC_HEADERS || HAVE_STDLIB_H
21903# include <stdlib.h>
21904#else
21905char *malloc ();
21906#endif
21907
21908int
21909main ()
21910{
21911exit (malloc (0) ? 0 : 1);
21912  ;
21913  return 0;
21914}
21915_ACEOF
21916rm -f conftest$ac_exeext
21917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918  (eval $ac_link) 2>&5
21919  ac_status=$?
21920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923  (eval $ac_try) 2>&5
21924  ac_status=$?
21925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926  (exit $ac_status); }; }; then
21927  ac_cv_func_malloc_0_nonnull=yes
21928else
21929  echo "$as_me: program exited with status $ac_status" >&5
21930echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933( exit $ac_status )
21934ac_cv_func_malloc_0_nonnull=no
21935fi
21936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21937fi
21938fi
21939echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21940echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21941if test $ac_cv_func_malloc_0_nonnull = yes; then
21942
21943cat >>confdefs.h <<\_ACEOF
21944#define HAVE_MALLOC 1
21945_ACEOF
21946
21947else
21948  cat >>confdefs.h <<\_ACEOF
21949#define HAVE_MALLOC 0
21950_ACEOF
21951
21952   case $LIBOBJS in
21953    "malloc.$ac_objext"   | \
21954  *" malloc.$ac_objext"   | \
21955    "malloc.$ac_objext "* | \
21956  *" malloc.$ac_objext "* ) ;;
21957  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21958esac
21959
21960
21961cat >>confdefs.h <<\_ACEOF
21962#define malloc rpl_malloc
21963_ACEOF
21964
21965fi
21966
21967
21968
21969
21970
21971
21972for ac_header in stdlib.h sys/time.h unistd.h
21973do
21974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21975if eval "test \"\${$as_ac_Header+set}\" = set"; then
21976  echo "$as_me:$LINENO: checking for $ac_header" >&5
21977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21978if eval "test \"\${$as_ac_Header+set}\" = set"; then
21979  echo $ECHO_N "(cached) $ECHO_C" >&6
21980fi
21981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21983else
21984  # Is the header compilable?
21985echo "$as_me:$LINENO: checking $ac_header usability" >&5
21986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21987cat >conftest.$ac_ext <<_ACEOF
21988/* confdefs.h.  */
21989_ACEOF
21990cat confdefs.h >>conftest.$ac_ext
21991cat >>conftest.$ac_ext <<_ACEOF
21992/* end confdefs.h.  */
21993$ac_includes_default
21994#include <$ac_header>
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21998  (eval $ac_compile) 2>conftest.er1
21999  ac_status=$?
22000  grep -v '^ *+' conftest.er1 >conftest.err
22001  rm -f conftest.er1
22002  cat conftest.err >&5
22003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004  (exit $ac_status); } &&
22005	 { ac_try='test -z "$ac_c_werror_flag"
22006			 || test ! -s conftest.err'
22007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008  (eval $ac_try) 2>&5
22009  ac_status=$?
22010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011  (exit $ac_status); }; } &&
22012	 { ac_try='test -s conftest.$ac_objext'
22013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014  (eval $ac_try) 2>&5
22015  ac_status=$?
22016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017  (exit $ac_status); }; }; then
22018  ac_header_compiler=yes
22019else
22020  echo "$as_me: failed program was:" >&5
22021sed 's/^/| /' conftest.$ac_ext >&5
22022
22023ac_header_compiler=no
22024fi
22025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22027echo "${ECHO_T}$ac_header_compiler" >&6
22028
22029# Is the header present?
22030echo "$as_me:$LINENO: checking $ac_header presence" >&5
22031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22032cat >conftest.$ac_ext <<_ACEOF
22033/* confdefs.h.  */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h.  */
22038#include <$ac_header>
22039_ACEOF
22040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22041  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22042  ac_status=$?
22043  grep -v '^ *+' conftest.er1 >conftest.err
22044  rm -f conftest.er1
22045  cat conftest.err >&5
22046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047  (exit $ac_status); } >/dev/null; then
22048  if test -s conftest.err; then
22049    ac_cpp_err=$ac_c_preproc_warn_flag
22050    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22051  else
22052    ac_cpp_err=
22053  fi
22054else
22055  ac_cpp_err=yes
22056fi
22057if test -z "$ac_cpp_err"; then
22058  ac_header_preproc=yes
22059else
22060  echo "$as_me: failed program was:" >&5
22061sed 's/^/| /' conftest.$ac_ext >&5
22062
22063  ac_header_preproc=no
22064fi
22065rm -f conftest.err conftest.$ac_ext
22066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22067echo "${ECHO_T}$ac_header_preproc" >&6
22068
22069# So?  What about this header?
22070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22071  yes:no: )
22072    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22076    ac_header_preproc=yes
22077    ;;
22078  no:yes:* )
22079    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22081    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22082echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22083    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22085    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22086echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22089    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22091    (
22092      cat <<\_ASBOX
22093## ----------------------------------------------- ##
22094## Report this to trustedbsd-audit@TrustesdBSD.org ##
22095## ----------------------------------------------- ##
22096_ASBOX
22097    ) |
22098      sed "s/^/$as_me: WARNING:     /" >&2
22099    ;;
22100esac
22101echo "$as_me:$LINENO: checking for $ac_header" >&5
22102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22103if eval "test \"\${$as_ac_Header+set}\" = set"; then
22104  echo $ECHO_N "(cached) $ECHO_C" >&6
22105else
22106  eval "$as_ac_Header=\$ac_header_preproc"
22107fi
22108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22110
22111fi
22112if test `eval echo '${'$as_ac_Header'}'` = yes; then
22113  cat >>confdefs.h <<_ACEOF
22114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22115_ACEOF
22116
22117fi
22118
22119done
22120
22121
22122for ac_func in alarm
22123do
22124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22125echo "$as_me:$LINENO: checking for $ac_func" >&5
22126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22127if eval "test \"\${$as_ac_var+set}\" = set"; then
22128  echo $ECHO_N "(cached) $ECHO_C" >&6
22129else
22130  cat >conftest.$ac_ext <<_ACEOF
22131/* confdefs.h.  */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h.  */
22136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22137   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22138#define $ac_func innocuous_$ac_func
22139
22140/* System header to define __stub macros and hopefully few prototypes,
22141    which can conflict with char $ac_func (); below.
22142    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22143    <limits.h> exists even on freestanding compilers.  */
22144
22145#ifdef __STDC__
22146# include <limits.h>
22147#else
22148# include <assert.h>
22149#endif
22150
22151#undef $ac_func
22152
22153/* Override any gcc2 internal prototype to avoid an error.  */
22154#ifdef __cplusplus
22155extern "C"
22156{
22157#endif
22158/* We use char because int might match the return type of a gcc2
22159   builtin and then its argument prototype would still apply.  */
22160char $ac_func ();
22161/* The GNU C library defines this for functions which it implements
22162    to always fail with ENOSYS.  Some functions are actually named
22163    something starting with __ and the normal name is an alias.  */
22164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22165choke me
22166#else
22167char (*f) () = $ac_func;
22168#endif
22169#ifdef __cplusplus
22170}
22171#endif
22172
22173int
22174main ()
22175{
22176return f != $ac_func;
22177  ;
22178  return 0;
22179}
22180_ACEOF
22181rm -f conftest.$ac_objext conftest$ac_exeext
22182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22183  (eval $ac_link) 2>conftest.er1
22184  ac_status=$?
22185  grep -v '^ *+' conftest.er1 >conftest.err
22186  rm -f conftest.er1
22187  cat conftest.err >&5
22188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189  (exit $ac_status); } &&
22190	 { ac_try='test -z "$ac_c_werror_flag"
22191			 || test ! -s conftest.err'
22192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22193  (eval $ac_try) 2>&5
22194  ac_status=$?
22195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196  (exit $ac_status); }; } &&
22197	 { ac_try='test -s conftest$ac_exeext'
22198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22199  (eval $ac_try) 2>&5
22200  ac_status=$?
22201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202  (exit $ac_status); }; }; then
22203  eval "$as_ac_var=yes"
22204else
22205  echo "$as_me: failed program was:" >&5
22206sed 's/^/| /' conftest.$ac_ext >&5
22207
22208eval "$as_ac_var=no"
22209fi
22210rm -f conftest.err conftest.$ac_objext \
22211      conftest$ac_exeext conftest.$ac_ext
22212fi
22213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22215if test `eval echo '${'$as_ac_var'}'` = yes; then
22216  cat >>confdefs.h <<_ACEOF
22217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22218_ACEOF
22219
22220fi
22221done
22222
22223echo "$as_me:$LINENO: checking for working mktime" >&5
22224echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
22225if test "${ac_cv_func_working_mktime+set}" = set; then
22226  echo $ECHO_N "(cached) $ECHO_C" >&6
22227else
22228  if test "$cross_compiling" = yes; then
22229  ac_cv_func_working_mktime=no
22230else
22231  cat >conftest.$ac_ext <<_ACEOF
22232/* confdefs.h.  */
22233_ACEOF
22234cat confdefs.h >>conftest.$ac_ext
22235cat >>conftest.$ac_ext <<_ACEOF
22236/* end confdefs.h.  */
22237/* Test program from Paul Eggert and Tony Leneis.  */
22238#if TIME_WITH_SYS_TIME
22239# include <sys/time.h>
22240# include <time.h>
22241#else
22242# if HAVE_SYS_TIME_H
22243#  include <sys/time.h>
22244# else
22245#  include <time.h>
22246# endif
22247#endif
22248
22249#if HAVE_STDLIB_H
22250# include <stdlib.h>
22251#endif
22252
22253#if HAVE_UNISTD_H
22254# include <unistd.h>
22255#endif
22256
22257#if !HAVE_ALARM
22258# define alarm(X) /* empty */
22259#endif
22260
22261/* Work around redefinition to rpl_putenv by other config tests.  */
22262#undef putenv
22263
22264static time_t time_t_max;
22265static time_t time_t_min;
22266
22267/* Values we'll use to set the TZ environment variable.  */
22268static char *tz_strings[] = {
22269  (char *) 0, "TZ=GMT0", "TZ=JST-9",
22270  "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22271};
22272#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22273
22274/* Fail if mktime fails to convert a date in the spring-forward gap.
22275   Based on a problem report from Andreas Jaeger.  */
22276static void
22277spring_forward_gap ()
22278{
22279  /* glibc (up to about 1998-10-07) failed this test. */
22280  struct tm tm;
22281
22282  /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22283     instead of "TZ=America/Vancouver" in order to detect the bug even
22284     on systems that don't support the Olson extension, or don't have the
22285     full zoneinfo tables installed.  */
22286  putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22287
22288  tm.tm_year = 98;
22289  tm.tm_mon = 3;
22290  tm.tm_mday = 5;
22291  tm.tm_hour = 2;
22292  tm.tm_min = 0;
22293  tm.tm_sec = 0;
22294  tm.tm_isdst = -1;
22295  if (mktime (&tm) == (time_t)-1)
22296    exit (1);
22297}
22298
22299static void
22300mktime_test1 (now)
22301     time_t now;
22302{
22303  struct tm *lt;
22304  if ((lt = localtime (&now)) && mktime (lt) != now)
22305    exit (1);
22306}
22307
22308static void
22309mktime_test (now)
22310     time_t now;
22311{
22312  mktime_test1 (now);
22313  mktime_test1 ((time_t) (time_t_max - now));
22314  mktime_test1 ((time_t) (time_t_min + now));
22315}
22316
22317static void
22318irix_6_4_bug ()
22319{
22320  /* Based on code from Ariel Faigon.  */
22321  struct tm tm;
22322  tm.tm_year = 96;
22323  tm.tm_mon = 3;
22324  tm.tm_mday = 0;
22325  tm.tm_hour = 0;
22326  tm.tm_min = 0;
22327  tm.tm_sec = 0;
22328  tm.tm_isdst = -1;
22329  mktime (&tm);
22330  if (tm.tm_mon != 2 || tm.tm_mday != 31)
22331    exit (1);
22332}
22333
22334static void
22335bigtime_test (j)
22336     int j;
22337{
22338  struct tm tm;
22339  time_t now;
22340  tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22341  now = mktime (&tm);
22342  if (now != (time_t) -1)
22343    {
22344      struct tm *lt = localtime (&now);
22345      if (! (lt
22346	     && lt->tm_year == tm.tm_year
22347	     && lt->tm_mon == tm.tm_mon
22348	     && lt->tm_mday == tm.tm_mday
22349	     && lt->tm_hour == tm.tm_hour
22350	     && lt->tm_min == tm.tm_min
22351	     && lt->tm_sec == tm.tm_sec
22352	     && lt->tm_yday == tm.tm_yday
22353	     && lt->tm_wday == tm.tm_wday
22354	     && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22355		  == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22356	exit (1);
22357    }
22358}
22359
22360int
22361main ()
22362{
22363  time_t t, delta;
22364  int i, j;
22365
22366  /* This test makes some buggy mktime implementations loop.
22367     Give up after 60 seconds; a mktime slower than that
22368     isn't worth using anyway.  */
22369  alarm (60);
22370
22371  for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22372    continue;
22373  time_t_max--;
22374  if ((time_t) -1 < 0)
22375    for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22376      continue;
22377  delta = time_t_max / 997; /* a suitable prime number */
22378  for (i = 0; i < N_STRINGS; i++)
22379    {
22380      if (tz_strings[i])
22381	putenv (tz_strings[i]);
22382
22383      for (t = 0; t <= time_t_max - delta; t += delta)
22384	mktime_test (t);
22385      mktime_test ((time_t) 1);
22386      mktime_test ((time_t) (60 * 60));
22387      mktime_test ((time_t) (60 * 60 * 24));
22388
22389      for (j = 1; 0 < j; j *= 2)
22390	bigtime_test (j);
22391      bigtime_test (j - 1);
22392    }
22393  irix_6_4_bug ();
22394  spring_forward_gap ();
22395  exit (0);
22396}
22397_ACEOF
22398rm -f conftest$ac_exeext
22399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22400  (eval $ac_link) 2>&5
22401  ac_status=$?
22402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405  (eval $ac_try) 2>&5
22406  ac_status=$?
22407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408  (exit $ac_status); }; }; then
22409  ac_cv_func_working_mktime=yes
22410else
22411  echo "$as_me: program exited with status $ac_status" >&5
22412echo "$as_me: failed program was:" >&5
22413sed 's/^/| /' conftest.$ac_ext >&5
22414
22415( exit $ac_status )
22416ac_cv_func_working_mktime=no
22417fi
22418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22419fi
22420fi
22421echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22422echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
22423if test $ac_cv_func_working_mktime = no; then
22424  case $LIBOBJS in
22425    "mktime.$ac_objext"   | \
22426  *" mktime.$ac_objext"   | \
22427    "mktime.$ac_objext "* | \
22428  *" mktime.$ac_objext "* ) ;;
22429  *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
22430esac
22431
22432fi
22433
22434echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22435echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22436if test "${ac_cv_type_signal+set}" = set; then
22437  echo $ECHO_N "(cached) $ECHO_C" >&6
22438else
22439  cat >conftest.$ac_ext <<_ACEOF
22440/* confdefs.h.  */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h.  */
22445#include <sys/types.h>
22446#include <signal.h>
22447#ifdef signal
22448# undef signal
22449#endif
22450#ifdef __cplusplus
22451extern "C" void (*signal (int, void (*)(int)))(int);
22452#else
22453void (*signal ()) ();
22454#endif
22455
22456int
22457main ()
22458{
22459int i;
22460  ;
22461  return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext
22465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22466  (eval $ac_compile) 2>conftest.er1
22467  ac_status=$?
22468  grep -v '^ *+' conftest.er1 >conftest.err
22469  rm -f conftest.er1
22470  cat conftest.err >&5
22471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472  (exit $ac_status); } &&
22473	 { ac_try='test -z "$ac_c_werror_flag"
22474			 || test ! -s conftest.err'
22475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476  (eval $ac_try) 2>&5
22477  ac_status=$?
22478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479  (exit $ac_status); }; } &&
22480	 { ac_try='test -s conftest.$ac_objext'
22481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482  (eval $ac_try) 2>&5
22483  ac_status=$?
22484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485  (exit $ac_status); }; }; then
22486  ac_cv_type_signal=void
22487else
22488  echo "$as_me: failed program was:" >&5
22489sed 's/^/| /' conftest.$ac_ext >&5
22490
22491ac_cv_type_signal=int
22492fi
22493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22494fi
22495echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22496echo "${ECHO_T}$ac_cv_type_signal" >&6
22497
22498cat >>confdefs.h <<_ACEOF
22499#define RETSIGTYPE $ac_cv_type_signal
22500_ACEOF
22501
22502
22503echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22504echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
22505if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22506  echo $ECHO_N "(cached) $ECHO_C" >&6
22507else
22508  rm -f conftest.sym conftest.file
22509echo >conftest.file
22510if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22511  if test "$cross_compiling" = yes; then
22512  ac_cv_func_lstat_dereferences_slashed_symlink=no
22513else
22514  cat >conftest.$ac_ext <<_ACEOF
22515/* confdefs.h.  */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h.  */
22520$ac_includes_default
22521int
22522main ()
22523{
22524struct stat sbuf;
22525     /* Linux will dereference the symlink and fail.
22526	That is better in the sense that it means we will not
22527	have to compile and use the lstat wrapper.  */
22528     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
22529  ;
22530  return 0;
22531}
22532_ACEOF
22533rm -f conftest$ac_exeext
22534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22535  (eval $ac_link) 2>&5
22536  ac_status=$?
22537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540  (eval $ac_try) 2>&5
22541  ac_status=$?
22542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543  (exit $ac_status); }; }; then
22544  ac_cv_func_lstat_dereferences_slashed_symlink=yes
22545else
22546  echo "$as_me: program exited with status $ac_status" >&5
22547echo "$as_me: failed program was:" >&5
22548sed 's/^/| /' conftest.$ac_ext >&5
22549
22550( exit $ac_status )
22551ac_cv_func_lstat_dereferences_slashed_symlink=no
22552fi
22553rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22554fi
22555else
22556  # If the `ln -s' command failed, then we probably don't even
22557  # have an lstat function.
22558  ac_cv_func_lstat_dereferences_slashed_symlink=no
22559fi
22560rm -f conftest.sym conftest.file
22561
22562fi
22563echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22564echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
22565
22566test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22567
22568cat >>confdefs.h <<_ACEOF
22569#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22570_ACEOF
22571
22572
22573if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22574  case $LIBOBJS in
22575    "lstat.$ac_objext"   | \
22576  *" lstat.$ac_objext"   | \
22577    "lstat.$ac_objext "* | \
22578  *" lstat.$ac_objext "* ) ;;
22579  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
22580esac
22581
22582fi
22583
22584echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22585echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22586if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22587  echo $ECHO_N "(cached) $ECHO_C" >&6
22588else
22589  if test "$cross_compiling" = yes; then
22590  ac_cv_func_stat_empty_string_bug=yes
22591else
22592  cat >conftest.$ac_ext <<_ACEOF
22593/* confdefs.h.  */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h.  */
22598$ac_includes_default
22599int
22600main ()
22601{
22602struct stat sbuf;
22603  exit (stat ("", &sbuf) ? 1 : 0);
22604  ;
22605  return 0;
22606}
22607_ACEOF
22608rm -f conftest$ac_exeext
22609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22610  (eval $ac_link) 2>&5
22611  ac_status=$?
22612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615  (eval $ac_try) 2>&5
22616  ac_status=$?
22617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618  (exit $ac_status); }; }; then
22619  ac_cv_func_stat_empty_string_bug=yes
22620else
22621  echo "$as_me: program exited with status $ac_status" >&5
22622echo "$as_me: failed program was:" >&5
22623sed 's/^/| /' conftest.$ac_ext >&5
22624
22625( exit $ac_status )
22626ac_cv_func_stat_empty_string_bug=no
22627fi
22628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22629fi
22630fi
22631echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22632echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
22633if test $ac_cv_func_stat_empty_string_bug = yes; then
22634  case $LIBOBJS in
22635    "stat.$ac_objext"   | \
22636  *" stat.$ac_objext"   | \
22637    "stat.$ac_objext "* | \
22638  *" stat.$ac_objext "* ) ;;
22639  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
22640esac
22641
22642
22643cat >>confdefs.h <<_ACEOF
22644#define HAVE_STAT_EMPTY_STRING_BUG 1
22645_ACEOF
22646
22647fi
22648
22649
22650for ac_func in strftime
22651do
22652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653echo "$as_me:$LINENO: checking for $ac_func" >&5
22654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22655if eval "test \"\${$as_ac_var+set}\" = set"; then
22656  echo $ECHO_N "(cached) $ECHO_C" >&6
22657else
22658  cat >conftest.$ac_ext <<_ACEOF
22659/* confdefs.h.  */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h.  */
22664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22665   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22666#define $ac_func innocuous_$ac_func
22667
22668/* System header to define __stub macros and hopefully few prototypes,
22669    which can conflict with char $ac_func (); below.
22670    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22671    <limits.h> exists even on freestanding compilers.  */
22672
22673#ifdef __STDC__
22674# include <limits.h>
22675#else
22676# include <assert.h>
22677#endif
22678
22679#undef $ac_func
22680
22681/* Override any gcc2 internal prototype to avoid an error.  */
22682#ifdef __cplusplus
22683extern "C"
22684{
22685#endif
22686/* We use char because int might match the return type of a gcc2
22687   builtin and then its argument prototype would still apply.  */
22688char $ac_func ();
22689/* The GNU C library defines this for functions which it implements
22690    to always fail with ENOSYS.  Some functions are actually named
22691    something starting with __ and the normal name is an alias.  */
22692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22693choke me
22694#else
22695char (*f) () = $ac_func;
22696#endif
22697#ifdef __cplusplus
22698}
22699#endif
22700
22701int
22702main ()
22703{
22704return f != $ac_func;
22705  ;
22706  return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext conftest$ac_exeext
22710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711  (eval $ac_link) 2>conftest.er1
22712  ac_status=$?
22713  grep -v '^ *+' conftest.er1 >conftest.err
22714  rm -f conftest.er1
22715  cat conftest.err >&5
22716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717  (exit $ac_status); } &&
22718	 { ac_try='test -z "$ac_c_werror_flag"
22719			 || test ! -s conftest.err'
22720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721  (eval $ac_try) 2>&5
22722  ac_status=$?
22723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724  (exit $ac_status); }; } &&
22725	 { ac_try='test -s conftest$ac_exeext'
22726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727  (eval $ac_try) 2>&5
22728  ac_status=$?
22729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730  (exit $ac_status); }; }; then
22731  eval "$as_ac_var=yes"
22732else
22733  echo "$as_me: failed program was:" >&5
22734sed 's/^/| /' conftest.$ac_ext >&5
22735
22736eval "$as_ac_var=no"
22737fi
22738rm -f conftest.err conftest.$ac_objext \
22739      conftest$ac_exeext conftest.$ac_ext
22740fi
22741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22743if test `eval echo '${'$as_ac_var'}'` = yes; then
22744  cat >>confdefs.h <<_ACEOF
22745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22746_ACEOF
22747
22748else
22749  # strftime is in -lintl on SCO UNIX.
22750echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22751echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
22752if test "${ac_cv_lib_intl_strftime+set}" = set; then
22753  echo $ECHO_N "(cached) $ECHO_C" >&6
22754else
22755  ac_check_lib_save_LIBS=$LIBS
22756LIBS="-lintl  $LIBS"
22757cat >conftest.$ac_ext <<_ACEOF
22758/* confdefs.h.  */
22759_ACEOF
22760cat confdefs.h >>conftest.$ac_ext
22761cat >>conftest.$ac_ext <<_ACEOF
22762/* end confdefs.h.  */
22763
22764/* Override any gcc2 internal prototype to avoid an error.  */
22765#ifdef __cplusplus
22766extern "C"
22767#endif
22768/* We use char because int might match the return type of a gcc2
22769   builtin and then its argument prototype would still apply.  */
22770char strftime ();
22771int
22772main ()
22773{
22774strftime ();
22775  ;
22776  return 0;
22777}
22778_ACEOF
22779rm -f conftest.$ac_objext conftest$ac_exeext
22780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22781  (eval $ac_link) 2>conftest.er1
22782  ac_status=$?
22783  grep -v '^ *+' conftest.er1 >conftest.err
22784  rm -f conftest.er1
22785  cat conftest.err >&5
22786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787  (exit $ac_status); } &&
22788	 { ac_try='test -z "$ac_c_werror_flag"
22789			 || test ! -s conftest.err'
22790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791  (eval $ac_try) 2>&5
22792  ac_status=$?
22793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794  (exit $ac_status); }; } &&
22795	 { ac_try='test -s conftest$ac_exeext'
22796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797  (eval $ac_try) 2>&5
22798  ac_status=$?
22799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800  (exit $ac_status); }; }; then
22801  ac_cv_lib_intl_strftime=yes
22802else
22803  echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806ac_cv_lib_intl_strftime=no
22807fi
22808rm -f conftest.err conftest.$ac_objext \
22809      conftest$ac_exeext conftest.$ac_ext
22810LIBS=$ac_check_lib_save_LIBS
22811fi
22812echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22813echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
22814if test $ac_cv_lib_intl_strftime = yes; then
22815  cat >>confdefs.h <<\_ACEOF
22816#define HAVE_STRFTIME 1
22817_ACEOF
22818
22819LIBS="-lintl $LIBS"
22820fi
22821
22822fi
22823done
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul
22839do
22840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22841echo "$as_me:$LINENO: checking for $ac_func" >&5
22842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22843if eval "test \"\${$as_ac_var+set}\" = set"; then
22844  echo $ECHO_N "(cached) $ECHO_C" >&6
22845else
22846  cat >conftest.$ac_ext <<_ACEOF
22847/* confdefs.h.  */
22848_ACEOF
22849cat confdefs.h >>conftest.$ac_ext
22850cat >>conftest.$ac_ext <<_ACEOF
22851/* end confdefs.h.  */
22852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22854#define $ac_func innocuous_$ac_func
22855
22856/* System header to define __stub macros and hopefully few prototypes,
22857    which can conflict with char $ac_func (); below.
22858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22859    <limits.h> exists even on freestanding compilers.  */
22860
22861#ifdef __STDC__
22862# include <limits.h>
22863#else
22864# include <assert.h>
22865#endif
22866
22867#undef $ac_func
22868
22869/* Override any gcc2 internal prototype to avoid an error.  */
22870#ifdef __cplusplus
22871extern "C"
22872{
22873#endif
22874/* We use char because int might match the return type of a gcc2
22875   builtin and then its argument prototype would still apply.  */
22876char $ac_func ();
22877/* The GNU C library defines this for functions which it implements
22878    to always fail with ENOSYS.  Some functions are actually named
22879    something starting with __ and the normal name is an alias.  */
22880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22881choke me
22882#else
22883char (*f) () = $ac_func;
22884#endif
22885#ifdef __cplusplus
22886}
22887#endif
22888
22889int
22890main ()
22891{
22892return f != $ac_func;
22893  ;
22894  return 0;
22895}
22896_ACEOF
22897rm -f conftest.$ac_objext conftest$ac_exeext
22898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899  (eval $ac_link) 2>conftest.er1
22900  ac_status=$?
22901  grep -v '^ *+' conftest.er1 >conftest.err
22902  rm -f conftest.er1
22903  cat conftest.err >&5
22904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905  (exit $ac_status); } &&
22906	 { ac_try='test -z "$ac_c_werror_flag"
22907			 || test ! -s conftest.err'
22908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909  (eval $ac_try) 2>&5
22910  ac_status=$?
22911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912  (exit $ac_status); }; } &&
22913	 { ac_try='test -s conftest$ac_exeext'
22914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915  (eval $ac_try) 2>&5
22916  ac_status=$?
22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918  (exit $ac_status); }; }; then
22919  eval "$as_ac_var=yes"
22920else
22921  echo "$as_me: failed program was:" >&5
22922sed 's/^/| /' conftest.$ac_ext >&5
22923
22924eval "$as_ac_var=no"
22925fi
22926rm -f conftest.err conftest.$ac_objext \
22927      conftest$ac_exeext conftest.$ac_ext
22928fi
22929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22931if test `eval echo '${'$as_ac_var'}'` = yes; then
22932  cat >>confdefs.h <<_ACEOF
22933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22934_ACEOF
22935
22936fi
22937done
22938
22939
22940# sys/queue.h exists on most systems, but its capabilities vary a great deal.
22941# test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22942# all of them, and are necessary for OpenBSM.
22943cat >conftest.$ac_ext <<_ACEOF
22944/* confdefs.h.  */
22945_ACEOF
22946cat confdefs.h >>conftest.$ac_ext
22947cat >>conftest.$ac_ext <<_ACEOF
22948/* end confdefs.h.  */
22949
22950	#include <sys/queue.h>
22951
22952int
22953main ()
22954{
22955
22956
22957	#ifndef LIST_FIRST
22958	#error LIST_FIRST missing
22959	#endif
22960	#ifndef TAILQ_FOREACH_SAFE
22961	#error TAILQ_FOREACH_SAFE
22962	#endif
22963
22964  ;
22965  return 0;
22966}
22967_ACEOF
22968rm -f conftest.$ac_objext conftest$ac_exeext
22969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22970  (eval $ac_link) 2>conftest.er1
22971  ac_status=$?
22972  grep -v '^ *+' conftest.er1 >conftest.err
22973  rm -f conftest.er1
22974  cat conftest.err >&5
22975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976  (exit $ac_status); } &&
22977	 { ac_try='test -z "$ac_c_werror_flag"
22978			 || test ! -s conftest.err'
22979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980  (eval $ac_try) 2>&5
22981  ac_status=$?
22982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983  (exit $ac_status); }; } &&
22984	 { ac_try='test -s conftest$ac_exeext'
22985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986  (eval $ac_try) 2>&5
22987  ac_status=$?
22988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989  (exit $ac_status); }; }; then
22990
22991
22992cat >>confdefs.h <<\_ACEOF
22993#define HAVE_FULL_QUEUE_H
22994_ACEOF
22995
22996
22997else
22998  echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001fi
23002rm -f conftest.err conftest.$ac_objext \
23003      conftest$ac_exeext conftest.$ac_ext
23004
23005# Systems may not define key audit system calls, in which case libbsm cannot
23006# depend on them or it will generate link-time or run-time errors.  Test for
23007# just one.
23008cat >conftest.$ac_ext <<_ACEOF
23009/* confdefs.h.  */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h.  */
23014
23015	#include <stdlib.h>
23016
23017	extern int auditon(int, void *, int);
23018
23019int
23020main ()
23021{
23022
23023	int err;
23024
23025	err = auditon(0, NULL, 0);
23026
23027  ;
23028  return 0;
23029}
23030_ACEOF
23031rm -f conftest.$ac_objext conftest$ac_exeext
23032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23033  (eval $ac_link) 2>conftest.er1
23034  ac_status=$?
23035  grep -v '^ *+' conftest.er1 >conftest.err
23036  rm -f conftest.er1
23037  cat conftest.err >&5
23038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039  (exit $ac_status); } &&
23040	 { ac_try='test -z "$ac_c_werror_flag"
23041			 || test ! -s conftest.err'
23042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043  (eval $ac_try) 2>&5
23044  ac_status=$?
23045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046  (exit $ac_status); }; } &&
23047	 { ac_try='test -s conftest$ac_exeext'
23048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23049  (eval $ac_try) 2>&5
23050  ac_status=$?
23051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052  (exit $ac_status); }; }; then
23053
23054
23055cat >>confdefs.h <<\_ACEOF
23056#define HAVE_AUDIT_SYSCALLS
23057_ACEOF
23058
23059have_audit_syscalls=true
23060
23061else
23062  echo "$as_me: failed program was:" >&5
23063sed 's/^/| /' conftest.$ac_ext >&5
23064
23065
23066have_audit_syscalls=false
23067
23068fi
23069rm -f conftest.err conftest.$ac_objext \
23070      conftest$ac_exeext conftest.$ac_ext
23071
23072
23073if $have_audit_syscalls; then
23074  HAVE_AUDIT_SYSCALLS_TRUE=
23075  HAVE_AUDIT_SYSCALLS_FALSE='#'
23076else
23077  HAVE_AUDIT_SYSCALLS_TRUE='#'
23078  HAVE_AUDIT_SYSCALLS_FALSE=
23079fi
23080
23081
23082                                                                                                                                                      ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23083
23084
23085cat >confcache <<\_ACEOF
23086# This file is a shell script that caches the results of configure
23087# tests run on this system so they can be shared between configure
23088# scripts and configure runs, see configure's option --config-cache.
23089# It is not useful on other systems.  If it contains results you don't
23090# want to keep, you may remove or edit it.
23091#
23092# config.status only pays attention to the cache file if you give it
23093# the --recheck option to rerun configure.
23094#
23095# `ac_cv_env_foo' variables (set or unset) will be overridden when
23096# loading this file, other *unset* `ac_cv_foo' will be assigned the
23097# following values.
23098
23099_ACEOF
23100
23101# The following way of writing the cache mishandles newlines in values,
23102# but we know of no workaround that is simple, portable, and efficient.
23103# So, don't put newlines in cache variables' values.
23104# Ultrix sh set writes to stderr and can't be redirected directly,
23105# and sets the high bit in the cache file unless we assign to the vars.
23106{
23107  (set) 2>&1 |
23108    case `(ac_space=' '; set | grep ac_space) 2>&1` in
23109    *ac_space=\ *)
23110      # `set' does not quote correctly, so add quotes (double-quote
23111      # substitution turns \\\\ into \\, and sed turns \\ into \).
23112      sed -n \
23113	"s/'/'\\\\''/g;
23114	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23115      ;;
23116    *)
23117      # `set' quotes correctly as required by POSIX, so do not add quotes.
23118      sed -n \
23119	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23120      ;;
23121    esac;
23122} |
23123  sed '
23124     t clear
23125     : clear
23126     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23127     t end
23128     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23129     : end' >>confcache
23130if diff $cache_file confcache >/dev/null 2>&1; then :; else
23131  if test -w $cache_file; then
23132    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23133    cat confcache >$cache_file
23134  else
23135    echo "not updating unwritable cache $cache_file"
23136  fi
23137fi
23138rm -f confcache
23139
23140test "x$prefix" = xNONE && prefix=$ac_default_prefix
23141# Let make expand exec_prefix.
23142test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23143
23144# VPATH may cause trouble with some makes, so we remove $(srcdir),
23145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23146# trailing colons and then remove the whole line if VPATH becomes empty
23147# (actually we leave an empty line to preserve line numbers).
23148if test "x$srcdir" = x.; then
23149  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23150s/:*\$(srcdir):*/:/;
23151s/:*\${srcdir}:*/:/;
23152s/:*@srcdir@:*/:/;
23153s/^\([^=]*=[	 ]*\):*/\1/;
23154s/:*$//;
23155s/^[^=]*=[	 ]*$//;
23156}'
23157fi
23158
23159DEFS=-DHAVE_CONFIG_H
23160
23161ac_libobjs=
23162ac_ltlibobjs=
23163for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23164  # 1. Remove the extension, and $U if already installed.
23165  ac_i=`echo "$ac_i" |
23166	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23167  # 2. Add them.
23168  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23169  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23170done
23171LIBOBJS=$ac_libobjs
23172
23173LTLIBOBJS=$ac_ltlibobjs
23174
23175
23176if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23177  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23178Usually this means the macro was only invoked conditionally." >&5
23179echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23180Usually this means the macro was only invoked conditionally." >&2;}
23181   { (exit 1); exit 1; }; }
23182fi
23183if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23184  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23185Usually this means the macro was only invoked conditionally." >&5
23186echo "$as_me: error: conditional \"AMDEP\" was never defined.
23187Usually this means the macro was only invoked conditionally." >&2;}
23188   { (exit 1); exit 1; }; }
23189fi
23190if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23191  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23192Usually this means the macro was only invoked conditionally." >&5
23193echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23194Usually this means the macro was only invoked conditionally." >&2;}
23195   { (exit 1); exit 1; }; }
23196fi
23197if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23198  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23199Usually this means the macro was only invoked conditionally." >&5
23200echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23201Usually this means the macro was only invoked conditionally." >&2;}
23202   { (exit 1); exit 1; }; }
23203fi
23204if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
23205  { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23206Usually this means the macro was only invoked conditionally." >&5
23207echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23208Usually this means the macro was only invoked conditionally." >&2;}
23209   { (exit 1); exit 1; }; }
23210fi
23211
23212: ${CONFIG_STATUS=./config.status}
23213ac_clean_files_save=$ac_clean_files
23214ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23215{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23216echo "$as_me: creating $CONFIG_STATUS" >&6;}
23217cat >$CONFIG_STATUS <<_ACEOF
23218#! $SHELL
23219# Generated by $as_me.
23220# Run this file to recreate the current configuration.
23221# Compiler output produced by configure, useful for debugging
23222# configure, is in config.log if it exists.
23223
23224debug=false
23225ac_cs_recheck=false
23226ac_cs_silent=false
23227SHELL=\${CONFIG_SHELL-$SHELL}
23228_ACEOF
23229
23230cat >>$CONFIG_STATUS <<\_ACEOF
23231## --------------------- ##
23232## M4sh Initialization.  ##
23233## --------------------- ##
23234
23235# Be Bourne compatible
23236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23237  emulate sh
23238  NULLCMD=:
23239  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23240  # is contrary to our usage.  Disable this feature.
23241  alias -g '${1+"$@"}'='"$@"'
23242elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23243  set -o posix
23244fi
23245DUALCASE=1; export DUALCASE # for MKS sh
23246
23247# Support unset when possible.
23248if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23249  as_unset=unset
23250else
23251  as_unset=false
23252fi
23253
23254
23255# Work around bugs in pre-3.0 UWIN ksh.
23256$as_unset ENV MAIL MAILPATH
23257PS1='$ '
23258PS2='> '
23259PS4='+ '
23260
23261# NLS nuisances.
23262for as_var in \
23263  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23264  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23265  LC_TELEPHONE LC_TIME
23266do
23267  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23268    eval $as_var=C; export $as_var
23269  else
23270    $as_unset $as_var
23271  fi
23272done
23273
23274# Required to use basename.
23275if expr a : '\(a\)' >/dev/null 2>&1; then
23276  as_expr=expr
23277else
23278  as_expr=false
23279fi
23280
23281if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23282  as_basename=basename
23283else
23284  as_basename=false
23285fi
23286
23287
23288# Name of the executable.
23289as_me=`$as_basename "$0" ||
23290$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23291	 X"$0" : 'X\(//\)$' \| \
23292	 X"$0" : 'X\(/\)$' \| \
23293	 .     : '\(.\)' 2>/dev/null ||
23294echo X/"$0" |
23295    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23296  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
23297  	  /^X\/\(\/\).*/{ s//\1/; q; }
23298  	  s/.*/./; q'`
23299
23300
23301# PATH needs CR, and LINENO needs CR and PATH.
23302# Avoid depending upon Character Ranges.
23303as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23304as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23305as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23306as_cr_digits='0123456789'
23307as_cr_alnum=$as_cr_Letters$as_cr_digits
23308
23309# The user is always right.
23310if test "${PATH_SEPARATOR+set}" != set; then
23311  echo "#! /bin/sh" >conf$$.sh
23312  echo  "exit 0"   >>conf$$.sh
23313  chmod +x conf$$.sh
23314  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23315    PATH_SEPARATOR=';'
23316  else
23317    PATH_SEPARATOR=:
23318  fi
23319  rm -f conf$$.sh
23320fi
23321
23322
23323  as_lineno_1=$LINENO
23324  as_lineno_2=$LINENO
23325  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23326  test "x$as_lineno_1" != "x$as_lineno_2" &&
23327  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23328  # Find who we are.  Look in the path if we contain no path at all
23329  # relative or not.
23330  case $0 in
23331    *[\\/]* ) as_myself=$0 ;;
23332    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23333for as_dir in $PATH
23334do
23335  IFS=$as_save_IFS
23336  test -z "$as_dir" && as_dir=.
23337  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23338done
23339
23340       ;;
23341  esac
23342  # We did not find ourselves, most probably we were run as `sh COMMAND'
23343  # in which case we are not to be found in the path.
23344  if test "x$as_myself" = x; then
23345    as_myself=$0
23346  fi
23347  if test ! -f "$as_myself"; then
23348    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23349echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23350   { (exit 1); exit 1; }; }
23351  fi
23352  case $CONFIG_SHELL in
23353  '')
23354    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23355for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23356do
23357  IFS=$as_save_IFS
23358  test -z "$as_dir" && as_dir=.
23359  for as_base in sh bash ksh sh5; do
23360	 case $as_dir in
23361	 /*)
23362	   if ("$as_dir/$as_base" -c '
23363  as_lineno_1=$LINENO
23364  as_lineno_2=$LINENO
23365  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23366  test "x$as_lineno_1" != "x$as_lineno_2" &&
23367  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23368	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23369	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23370	     CONFIG_SHELL=$as_dir/$as_base
23371	     export CONFIG_SHELL
23372	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23373	   fi;;
23374	 esac
23375       done
23376done
23377;;
23378  esac
23379
23380  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23381  # uniformly replaced by the line number.  The first 'sed' inserts a
23382  # line-number line before each line; the second 'sed' does the real
23383  # work.  The second script uses 'N' to pair each line-number line
23384  # with the numbered line, and appends trailing '-' during
23385  # substitution so that $LINENO is not a special case at line end.
23386  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23387  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23388  sed '=' <$as_myself |
23389    sed '
23390      N
23391      s,$,-,
23392      : loop
23393      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23394      t loop
23395      s,-$,,
23396      s,^['$as_cr_digits']*\n,,
23397    ' >$as_me.lineno &&
23398  chmod +x $as_me.lineno ||
23399    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23400echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23401   { (exit 1); exit 1; }; }
23402
23403  # Don't try to exec as it changes $[0], causing all sort of problems
23404  # (the dirname of $[0] is not the place where we might find the
23405  # original and so on.  Autoconf is especially sensible to this).
23406  . ./$as_me.lineno
23407  # Exit status is that of the last command.
23408  exit
23409}
23410
23411
23412case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23413  *c*,-n*) ECHO_N= ECHO_C='
23414' ECHO_T='	' ;;
23415  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23416  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23417esac
23418
23419if expr a : '\(a\)' >/dev/null 2>&1; then
23420  as_expr=expr
23421else
23422  as_expr=false
23423fi
23424
23425rm -f conf$$ conf$$.exe conf$$.file
23426echo >conf$$.file
23427if ln -s conf$$.file conf$$ 2>/dev/null; then
23428  # We could just check for DJGPP; but this test a) works b) is more generic
23429  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23430  if test -f conf$$.exe; then
23431    # Don't use ln at all; we don't have any links
23432    as_ln_s='cp -p'
23433  else
23434    as_ln_s='ln -s'
23435  fi
23436elif ln conf$$.file conf$$ 2>/dev/null; then
23437  as_ln_s=ln
23438else
23439  as_ln_s='cp -p'
23440fi
23441rm -f conf$$ conf$$.exe conf$$.file
23442
23443if mkdir -p . 2>/dev/null; then
23444  as_mkdir_p=:
23445else
23446  test -d ./-p && rmdir ./-p
23447  as_mkdir_p=false
23448fi
23449
23450as_executable_p="test -f"
23451
23452# Sed expression to map a string onto a valid CPP name.
23453as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23454
23455# Sed expression to map a string onto a valid variable name.
23456as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23457
23458
23459# IFS
23460# We need space, tab and new line, in precisely that order.
23461as_nl='
23462'
23463IFS=" 	$as_nl"
23464
23465# CDPATH.
23466$as_unset CDPATH
23467
23468exec 6>&1
23469
23470# Open the log real soon, to keep \$[0] and so on meaningful, and to
23471# report actual input values of CONFIG_FILES etc. instead of their
23472# values after options handling.  Logging --version etc. is OK.
23473exec 5>>config.log
23474{
23475  echo
23476  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23477## Running $as_me. ##
23478_ASBOX
23479} >&5
23480cat >&5 <<_CSEOF
23481
23482This file was extended by OpenBSM $as_me 1.0alpha14, which was
23483generated by GNU Autoconf 2.59.  Invocation command line was
23484
23485  CONFIG_FILES    = $CONFIG_FILES
23486  CONFIG_HEADERS  = $CONFIG_HEADERS
23487  CONFIG_LINKS    = $CONFIG_LINKS
23488  CONFIG_COMMANDS = $CONFIG_COMMANDS
23489  $ $0 $@
23490
23491_CSEOF
23492echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23493echo >&5
23494_ACEOF
23495
23496# Files that config.status was made for.
23497if test -n "$ac_config_files"; then
23498  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23499fi
23500
23501if test -n "$ac_config_headers"; then
23502  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23503fi
23504
23505if test -n "$ac_config_links"; then
23506  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23507fi
23508
23509if test -n "$ac_config_commands"; then
23510  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23511fi
23512
23513cat >>$CONFIG_STATUS <<\_ACEOF
23514
23515ac_cs_usage="\
23516\`$as_me' instantiates files from templates according to the
23517current configuration.
23518
23519Usage: $0 [OPTIONS] [FILE]...
23520
23521  -h, --help       print this help, then exit
23522  -V, --version    print version number, then exit
23523  -q, --quiet      do not print progress messages
23524  -d, --debug      don't remove temporary files
23525      --recheck    update $as_me by reconfiguring in the same conditions
23526  --file=FILE[:TEMPLATE]
23527		   instantiate the configuration file FILE
23528  --header=FILE[:TEMPLATE]
23529		   instantiate the configuration header FILE
23530
23531Configuration files:
23532$config_files
23533
23534Configuration headers:
23535$config_headers
23536
23537Configuration commands:
23538$config_commands
23539
23540Report bugs to <bug-autoconf@gnu.org>."
23541_ACEOF
23542
23543cat >>$CONFIG_STATUS <<_ACEOF
23544ac_cs_version="\\
23545OpenBSM config.status 1.0alpha14
23546configured by $0, generated by GNU Autoconf 2.59,
23547  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23548
23549Copyright (C) 2003 Free Software Foundation, Inc.
23550This config.status script is free software; the Free Software Foundation
23551gives unlimited permission to copy, distribute and modify it."
23552srcdir=$srcdir
23553INSTALL="$INSTALL"
23554_ACEOF
23555
23556cat >>$CONFIG_STATUS <<\_ACEOF
23557# If no file are specified by the user, then we need to provide default
23558# value.  By we need to know if files were specified by the user.
23559ac_need_defaults=:
23560while test $# != 0
23561do
23562  case $1 in
23563  --*=*)
23564    ac_option=`expr "x$1" : 'x\([^=]*\)='`
23565    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23566    ac_shift=:
23567    ;;
23568  -*)
23569    ac_option=$1
23570    ac_optarg=$2
23571    ac_shift=shift
23572    ;;
23573  *) # This is not an option, so the user has probably given explicit
23574     # arguments.
23575     ac_option=$1
23576     ac_need_defaults=false;;
23577  esac
23578
23579  case $ac_option in
23580  # Handling of the options.
23581_ACEOF
23582cat >>$CONFIG_STATUS <<\_ACEOF
23583  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23584    ac_cs_recheck=: ;;
23585  --version | --vers* | -V )
23586    echo "$ac_cs_version"; exit 0 ;;
23587  --he | --h)
23588    # Conflict between --help and --header
23589    { { echo "$as_me:$LINENO: error: ambiguous option: $1
23590Try \`$0 --help' for more information." >&5
23591echo "$as_me: error: ambiguous option: $1
23592Try \`$0 --help' for more information." >&2;}
23593   { (exit 1); exit 1; }; };;
23594  --help | --hel | -h )
23595    echo "$ac_cs_usage"; exit 0 ;;
23596  --debug | --d* | -d )
23597    debug=: ;;
23598  --file | --fil | --fi | --f )
23599    $ac_shift
23600    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23601    ac_need_defaults=false;;
23602  --header | --heade | --head | --hea )
23603    $ac_shift
23604    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23605    ac_need_defaults=false;;
23606  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23607  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23608    ac_cs_silent=: ;;
23609
23610  # This is an error.
23611  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23612Try \`$0 --help' for more information." >&5
23613echo "$as_me: error: unrecognized option: $1
23614Try \`$0 --help' for more information." >&2;}
23615   { (exit 1); exit 1; }; } ;;
23616
23617  *) ac_config_targets="$ac_config_targets $1" ;;
23618
23619  esac
23620  shift
23621done
23622
23623ac_configure_extra_args=
23624
23625if $ac_cs_silent; then
23626  exec 6>/dev/null
23627  ac_configure_extra_args="$ac_configure_extra_args --silent"
23628fi
23629
23630_ACEOF
23631cat >>$CONFIG_STATUS <<_ACEOF
23632if \$ac_cs_recheck; then
23633  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23634  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23635fi
23636
23637_ACEOF
23638
23639cat >>$CONFIG_STATUS <<_ACEOF
23640#
23641# INIT-COMMANDS section.
23642#
23643
23644AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23645
23646_ACEOF
23647
23648
23649
23650cat >>$CONFIG_STATUS <<\_ACEOF
23651for ac_config_target in $ac_config_targets
23652do
23653  case "$ac_config_target" in
23654  # Handling of arguments.
23655  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23656  "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23657  "bin/audit/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23658  "bin/auditd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23659  "bin/auditfilterd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23660  "bin/auditreduce/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23661  "bin/praudit/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23662  "bsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23663  "libbsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23664  "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23665  "modules/auditfilter_noop/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23666  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23667  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23668  "test/bsm/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23669  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23670  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23671  "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23672  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23673echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23674   { (exit 1); exit 1; }; };;
23675  esac
23676done
23677
23678# If the user did not use the arguments to specify the items to instantiate,
23679# then the envvar interface is used.  Set only those that are not.
23680# We use the long form for the default assignment because of an extremely
23681# bizarre bug on SunOS 4.1.3.
23682if $ac_need_defaults; then
23683  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23684  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23685  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23686fi
23687
23688# Have a temporary directory for convenience.  Make it in the build tree
23689# simply because there is no reason to put it here, and in addition,
23690# creating and moving files from /tmp can sometimes cause problems.
23691# Create a temporary directory, and hook for its removal unless debugging.
23692$debug ||
23693{
23694  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23695  trap '{ (exit 1); exit 1; }' 1 2 13 15
23696}
23697
23698# Create a (secure) tmp directory for tmp files.
23699
23700{
23701  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23702  test -n "$tmp" && test -d "$tmp"
23703}  ||
23704{
23705  tmp=./confstat$$-$RANDOM
23706  (umask 077 && mkdir $tmp)
23707} ||
23708{
23709   echo "$me: cannot create a temporary directory in ." >&2
23710   { (exit 1); exit 1; }
23711}
23712
23713_ACEOF
23714
23715cat >>$CONFIG_STATUS <<_ACEOF
23716
23717#
23718# CONFIG_FILES section.
23719#
23720
23721# No need to generate the scripts if there are no CONFIG_FILES.
23722# This happens for instance when ./config.status config.h
23723if test -n "\$CONFIG_FILES"; then
23724  # Protect against being on the right side of a sed subst in config.status.
23725  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23726   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23727s,@SHELL@,$SHELL,;t t
23728s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23729s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23730s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23731s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23732s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23733s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23734s,@exec_prefix@,$exec_prefix,;t t
23735s,@prefix@,$prefix,;t t
23736s,@program_transform_name@,$program_transform_name,;t t
23737s,@bindir@,$bindir,;t t
23738s,@sbindir@,$sbindir,;t t
23739s,@libexecdir@,$libexecdir,;t t
23740s,@datadir@,$datadir,;t t
23741s,@sysconfdir@,$sysconfdir,;t t
23742s,@sharedstatedir@,$sharedstatedir,;t t
23743s,@localstatedir@,$localstatedir,;t t
23744s,@libdir@,$libdir,;t t
23745s,@includedir@,$includedir,;t t
23746s,@oldincludedir@,$oldincludedir,;t t
23747s,@infodir@,$infodir,;t t
23748s,@mandir@,$mandir,;t t
23749s,@build_alias@,$build_alias,;t t
23750s,@host_alias@,$host_alias,;t t
23751s,@target_alias@,$target_alias,;t t
23752s,@DEFS@,$DEFS,;t t
23753s,@ECHO_C@,$ECHO_C,;t t
23754s,@ECHO_N@,$ECHO_N,;t t
23755s,@ECHO_T@,$ECHO_T,;t t
23756s,@LIBS@,$LIBS,;t t
23757s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23758s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23759s,@MAINT@,$MAINT,;t t
23760s,@CC@,$CC,;t t
23761s,@CFLAGS@,$CFLAGS,;t t
23762s,@LDFLAGS@,$LDFLAGS,;t t
23763s,@CPPFLAGS@,$CPPFLAGS,;t t
23764s,@ac_ct_CC@,$ac_ct_CC,;t t
23765s,@EXEEXT@,$EXEEXT,;t t
23766s,@OBJEXT@,$OBJEXT,;t t
23767s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23768s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23769s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23770s,@build@,$build,;t t
23771s,@build_cpu@,$build_cpu,;t t
23772s,@build_vendor@,$build_vendor,;t t
23773s,@build_os@,$build_os,;t t
23774s,@host@,$host,;t t
23775s,@host_cpu@,$host_cpu,;t t
23776s,@host_vendor@,$host_vendor,;t t
23777s,@host_os@,$host_os,;t t
23778s,@EGREP@,$EGREP,;t t
23779s,@LN_S@,$LN_S,;t t
23780s,@ECHO@,$ECHO,;t t
23781s,@AR@,$AR,;t t
23782s,@ac_ct_AR@,$ac_ct_AR,;t t
23783s,@RANLIB@,$RANLIB,;t t
23784s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23785s,@STRIP@,$STRIP,;t t
23786s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23787s,@CPP@,$CPP,;t t
23788s,@CXX@,$CXX,;t t
23789s,@CXXFLAGS@,$CXXFLAGS,;t t
23790s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23791s,@CXXCPP@,$CXXCPP,;t t
23792s,@F77@,$F77,;t t
23793s,@FFLAGS@,$FFLAGS,;t t
23794s,@ac_ct_F77@,$ac_ct_F77,;t t
23795s,@LIBTOOL@,$LIBTOOL,;t t
23796s,@CYGPATH_W@,$CYGPATH_W,;t t
23797s,@PACKAGE@,$PACKAGE,;t t
23798s,@VERSION@,$VERSION,;t t
23799s,@ACLOCAL@,$ACLOCAL,;t t
23800s,@AUTOCONF@,$AUTOCONF,;t t
23801s,@AUTOMAKE@,$AUTOMAKE,;t t
23802s,@AUTOHEADER@,$AUTOHEADER,;t t
23803s,@MAKEINFO@,$MAKEINFO,;t t
23804s,@install_sh@,$install_sh,;t t
23805s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23806s,@mkdir_p@,$mkdir_p,;t t
23807s,@AWK@,$AWK,;t t
23808s,@SET_MAKE@,$SET_MAKE,;t t
23809s,@am__leading_dot@,$am__leading_dot,;t t
23810s,@AMTAR@,$AMTAR,;t t
23811s,@am__tar@,$am__tar,;t t
23812s,@am__untar@,$am__untar,;t t
23813s,@DEPDIR@,$DEPDIR,;t t
23814s,@am__include@,$am__include,;t t
23815s,@am__quote@,$am__quote,;t t
23816s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23817s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23818s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23819s,@CCDEPMODE@,$CCDEPMODE,;t t
23820s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23821s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23822s,@CXXDEPMODE@,$CXXDEPMODE,;t t
23823s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
23824s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
23825s,@LIBOBJS@,$LIBOBJS,;t t
23826s,@HAVE_AUDIT_SYSCALLS_TRUE@,$HAVE_AUDIT_SYSCALLS_TRUE,;t t
23827s,@HAVE_AUDIT_SYSCALLS_FALSE@,$HAVE_AUDIT_SYSCALLS_FALSE,;t t
23828s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23829CEOF
23830
23831_ACEOF
23832
23833  cat >>$CONFIG_STATUS <<\_ACEOF
23834  # Split the substitutions into bite-sized pieces for seds with
23835  # small command number limits, like on Digital OSF/1 and HP-UX.
23836  ac_max_sed_lines=48
23837  ac_sed_frag=1 # Number of current file.
23838  ac_beg=1 # First line for current file.
23839  ac_end=$ac_max_sed_lines # Line after last line for current file.
23840  ac_more_lines=:
23841  ac_sed_cmds=
23842  while $ac_more_lines; do
23843    if test $ac_beg -gt 1; then
23844      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23845    else
23846      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23847    fi
23848    if test ! -s $tmp/subs.frag; then
23849      ac_more_lines=false
23850    else
23851      # The purpose of the label and of the branching condition is to
23852      # speed up the sed processing (if there are no `@' at all, there
23853      # is no need to browse any of the substitutions).
23854      # These are the two extra sed commands mentioned above.
23855      (echo ':t
23856  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23857      if test -z "$ac_sed_cmds"; then
23858	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23859      else
23860	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23861      fi
23862      ac_sed_frag=`expr $ac_sed_frag + 1`
23863      ac_beg=$ac_end
23864      ac_end=`expr $ac_end + $ac_max_sed_lines`
23865    fi
23866  done
23867  if test -z "$ac_sed_cmds"; then
23868    ac_sed_cmds=cat
23869  fi
23870fi # test -n "$CONFIG_FILES"
23871
23872_ACEOF
23873cat >>$CONFIG_STATUS <<\_ACEOF
23874for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23875  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23876  case $ac_file in
23877  - | *:- | *:-:* ) # input from stdin
23878	cat >$tmp/stdin
23879	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23880	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23881  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23882	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23883  * )   ac_file_in=$ac_file.in ;;
23884  esac
23885
23886  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23887  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23888$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889	 X"$ac_file" : 'X\(//\)[^/]' \| \
23890	 X"$ac_file" : 'X\(//\)$' \| \
23891	 X"$ac_file" : 'X\(/\)' \| \
23892	 .     : '\(.\)' 2>/dev/null ||
23893echo X"$ac_file" |
23894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896  	  /^X\(\/\/\)$/{ s//\1/; q; }
23897  	  /^X\(\/\).*/{ s//\1/; q; }
23898  	  s/.*/./; q'`
23899  { if $as_mkdir_p; then
23900    mkdir -p "$ac_dir"
23901  else
23902    as_dir="$ac_dir"
23903    as_dirs=
23904    while test ! -d "$as_dir"; do
23905      as_dirs="$as_dir $as_dirs"
23906      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23907$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908	 X"$as_dir" : 'X\(//\)[^/]' \| \
23909	 X"$as_dir" : 'X\(//\)$' \| \
23910	 X"$as_dir" : 'X\(/\)' \| \
23911	 .     : '\(.\)' 2>/dev/null ||
23912echo X"$as_dir" |
23913    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23914  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23915  	  /^X\(\/\/\)$/{ s//\1/; q; }
23916  	  /^X\(\/\).*/{ s//\1/; q; }
23917  	  s/.*/./; q'`
23918    done
23919    test ! -n "$as_dirs" || mkdir $as_dirs
23920  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23921echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23922   { (exit 1); exit 1; }; }; }
23923
23924  ac_builddir=.
23925
23926if test "$ac_dir" != .; then
23927  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23928  # A "../" for each directory in $ac_dir_suffix.
23929  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23930else
23931  ac_dir_suffix= ac_top_builddir=
23932fi
23933
23934case $srcdir in
23935  .)  # No --srcdir option.  We are building in place.
23936    ac_srcdir=.
23937    if test -z "$ac_top_builddir"; then
23938       ac_top_srcdir=.
23939    else
23940       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23941    fi ;;
23942  [\\/]* | ?:[\\/]* )  # Absolute path.
23943    ac_srcdir=$srcdir$ac_dir_suffix;
23944    ac_top_srcdir=$srcdir ;;
23945  *) # Relative path.
23946    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23947    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23948esac
23949
23950# Do not use `cd foo && pwd` to compute absolute paths, because
23951# the directories may not exist.
23952case `pwd` in
23953.) ac_abs_builddir="$ac_dir";;
23954*)
23955  case "$ac_dir" in
23956  .) ac_abs_builddir=`pwd`;;
23957  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23958  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23959  esac;;
23960esac
23961case $ac_abs_builddir in
23962.) ac_abs_top_builddir=${ac_top_builddir}.;;
23963*)
23964  case ${ac_top_builddir}. in
23965  .) ac_abs_top_builddir=$ac_abs_builddir;;
23966  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23967  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23968  esac;;
23969esac
23970case $ac_abs_builddir in
23971.) ac_abs_srcdir=$ac_srcdir;;
23972*)
23973  case $ac_srcdir in
23974  .) ac_abs_srcdir=$ac_abs_builddir;;
23975  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23976  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23977  esac;;
23978esac
23979case $ac_abs_builddir in
23980.) ac_abs_top_srcdir=$ac_top_srcdir;;
23981*)
23982  case $ac_top_srcdir in
23983  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23984  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23985  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23986  esac;;
23987esac
23988
23989
23990  case $INSTALL in
23991  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23992  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23993  esac
23994
23995  if test x"$ac_file" != x-; then
23996    { echo "$as_me:$LINENO: creating $ac_file" >&5
23997echo "$as_me: creating $ac_file" >&6;}
23998    rm -f "$ac_file"
23999  fi
24000  # Let's still pretend it is `configure' which instantiates (i.e., don't
24001  # use $as_me), people would be surprised to read:
24002  #    /* config.h.  Generated by config.status.  */
24003  if test x"$ac_file" = x-; then
24004    configure_input=
24005  else
24006    configure_input="$ac_file.  "
24007  fi
24008  configure_input=$configure_input"Generated from `echo $ac_file_in |
24009				     sed 's,.*/,,'` by configure."
24010
24011  # First look for the input files in the build tree, otherwise in the
24012  # src tree.
24013  ac_file_inputs=`IFS=:
24014    for f in $ac_file_in; do
24015      case $f in
24016      -) echo $tmp/stdin ;;
24017      [\\/$]*)
24018	 # Absolute (can't be DOS-style, as IFS=:)
24019	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24020echo "$as_me: error: cannot find input file: $f" >&2;}
24021   { (exit 1); exit 1; }; }
24022	 echo "$f";;
24023      *) # Relative
24024	 if test -f "$f"; then
24025	   # Build tree
24026	   echo "$f"
24027	 elif test -f "$srcdir/$f"; then
24028	   # Source tree
24029	   echo "$srcdir/$f"
24030	 else
24031	   # /dev/null tree
24032	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24033echo "$as_me: error: cannot find input file: $f" >&2;}
24034   { (exit 1); exit 1; }; }
24035	 fi;;
24036      esac
24037    done` || { (exit 1); exit 1; }
24038_ACEOF
24039cat >>$CONFIG_STATUS <<_ACEOF
24040  sed "$ac_vpsub
24041$extrasub
24042_ACEOF
24043cat >>$CONFIG_STATUS <<\_ACEOF
24044:t
24045/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24046s,@configure_input@,$configure_input,;t t
24047s,@srcdir@,$ac_srcdir,;t t
24048s,@abs_srcdir@,$ac_abs_srcdir,;t t
24049s,@top_srcdir@,$ac_top_srcdir,;t t
24050s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24051s,@builddir@,$ac_builddir,;t t
24052s,@abs_builddir@,$ac_abs_builddir,;t t
24053s,@top_builddir@,$ac_top_builddir,;t t
24054s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24055s,@INSTALL@,$ac_INSTALL,;t t
24056" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24057  rm -f $tmp/stdin
24058  if test x"$ac_file" != x-; then
24059    mv $tmp/out $ac_file
24060  else
24061    cat $tmp/out
24062    rm -f $tmp/out
24063  fi
24064
24065done
24066_ACEOF
24067cat >>$CONFIG_STATUS <<\_ACEOF
24068
24069#
24070# CONFIG_HEADER section.
24071#
24072
24073# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24074# NAME is the cpp macro being defined and VALUE is the value it is being given.
24075#
24076# ac_d sets the value in "#define NAME VALUE" lines.
24077ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
24078ac_dB='[	 ].*$,\1#\2'
24079ac_dC=' '
24080ac_dD=',;t'
24081# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24082ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
24083ac_uB='$,\1#\2define\3'
24084ac_uC=' '
24085ac_uD=',;t'
24086
24087for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24088  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24089  case $ac_file in
24090  - | *:- | *:-:* ) # input from stdin
24091	cat >$tmp/stdin
24092	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24093	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24094  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24095	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24096  * )   ac_file_in=$ac_file.in ;;
24097  esac
24098
24099  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24100echo "$as_me: creating $ac_file" >&6;}
24101
24102  # First look for the input files in the build tree, otherwise in the
24103  # src tree.
24104  ac_file_inputs=`IFS=:
24105    for f in $ac_file_in; do
24106      case $f in
24107      -) echo $tmp/stdin ;;
24108      [\\/$]*)
24109	 # Absolute (can't be DOS-style, as IFS=:)
24110	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24111echo "$as_me: error: cannot find input file: $f" >&2;}
24112   { (exit 1); exit 1; }; }
24113	 # Do quote $f, to prevent DOS paths from being IFS'd.
24114	 echo "$f";;
24115      *) # Relative
24116	 if test -f "$f"; then
24117	   # Build tree
24118	   echo "$f"
24119	 elif test -f "$srcdir/$f"; then
24120	   # Source tree
24121	   echo "$srcdir/$f"
24122	 else
24123	   # /dev/null tree
24124	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24125echo "$as_me: error: cannot find input file: $f" >&2;}
24126   { (exit 1); exit 1; }; }
24127	 fi;;
24128      esac
24129    done` || { (exit 1); exit 1; }
24130  # Remove the trailing spaces.
24131  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
24132
24133_ACEOF
24134
24135# Transform confdefs.h into two sed scripts, `conftest.defines' and
24136# `conftest.undefs', that substitutes the proper values into
24137# config.h.in to produce config.h.  The first handles `#define'
24138# templates, and the second `#undef' templates.
24139# And first: Protect against being on the right side of a sed subst in
24140# config.status.  Protect against being in an unquoted here document
24141# in config.status.
24142rm -f conftest.defines conftest.undefs
24143# Using a here document instead of a string reduces the quoting nightmare.
24144# Putting comments in sed scripts is not portable.
24145#
24146# `end' is used to avoid that the second main sed command (meant for
24147# 0-ary CPP macros) applies to n-ary macro definitions.
24148# See the Autoconf documentation for `clear'.
24149cat >confdef2sed.sed <<\_ACEOF
24150s/[\\&,]/\\&/g
24151s,[\\$`],\\&,g
24152t clear
24153: clear
24154s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24155t end
24156s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24157: end
24158_ACEOF
24159# If some macros were called several times there might be several times
24160# the same #defines, which is useless.  Nevertheless, we may not want to
24161# sort them, since we want the *last* AC-DEFINE to be honored.
24162uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24163sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24164rm -f confdef2sed.sed
24165
24166# This sed command replaces #undef with comments.  This is necessary, for
24167# example, in the case of _POSIX_SOURCE, which is predefined and required
24168# on some systems where configure will not decide to define it.
24169cat >>conftest.undefs <<\_ACEOF
24170s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24171_ACEOF
24172
24173# Break up conftest.defines because some shells have a limit on the size
24174# of here documents, and old seds have small limits too (100 cmds).
24175echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24176echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24177echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24178echo '  :' >>$CONFIG_STATUS
24179rm -f conftest.tail
24180while grep . conftest.defines >/dev/null
24181do
24182  # Write a limited-size here document to $tmp/defines.sed.
24183  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24184  # Speed up: don't consider the non `#define' lines.
24185  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
24186  # Work around the forget-to-reset-the-flag bug.
24187  echo 't clr' >>$CONFIG_STATUS
24188  echo ': clr' >>$CONFIG_STATUS
24189  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24190  echo 'CEOF
24191  sed -f $tmp/defines.sed $tmp/in >$tmp/out
24192  rm -f $tmp/in
24193  mv $tmp/out $tmp/in
24194' >>$CONFIG_STATUS
24195  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24196  rm -f conftest.defines
24197  mv conftest.tail conftest.defines
24198done
24199rm -f conftest.defines
24200echo '  fi # grep' >>$CONFIG_STATUS
24201echo >>$CONFIG_STATUS
24202
24203# Break up conftest.undefs because some shells have a limit on the size
24204# of here documents, and old seds have small limits too (100 cmds).
24205echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24206rm -f conftest.tail
24207while grep . conftest.undefs >/dev/null
24208do
24209  # Write a limited-size here document to $tmp/undefs.sed.
24210  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24211  # Speed up: don't consider the non `#undef'
24212  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
24213  # Work around the forget-to-reset-the-flag bug.
24214  echo 't clr' >>$CONFIG_STATUS
24215  echo ': clr' >>$CONFIG_STATUS
24216  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24217  echo 'CEOF
24218  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24219  rm -f $tmp/in
24220  mv $tmp/out $tmp/in
24221' >>$CONFIG_STATUS
24222  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24223  rm -f conftest.undefs
24224  mv conftest.tail conftest.undefs
24225done
24226rm -f conftest.undefs
24227
24228cat >>$CONFIG_STATUS <<\_ACEOF
24229  # Let's still pretend it is `configure' which instantiates (i.e., don't
24230  # use $as_me), people would be surprised to read:
24231  #    /* config.h.  Generated by config.status.  */
24232  if test x"$ac_file" = x-; then
24233    echo "/* Generated by configure.  */" >$tmp/config.h
24234  else
24235    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24236  fi
24237  cat $tmp/in >>$tmp/config.h
24238  rm -f $tmp/in
24239  if test x"$ac_file" != x-; then
24240    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24241      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24242echo "$as_me: $ac_file is unchanged" >&6;}
24243    else
24244      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24245$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24246	 X"$ac_file" : 'X\(//\)[^/]' \| \
24247	 X"$ac_file" : 'X\(//\)$' \| \
24248	 X"$ac_file" : 'X\(/\)' \| \
24249	 .     : '\(.\)' 2>/dev/null ||
24250echo X"$ac_file" |
24251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24252  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24253  	  /^X\(\/\/\)$/{ s//\1/; q; }
24254  	  /^X\(\/\).*/{ s//\1/; q; }
24255  	  s/.*/./; q'`
24256      { if $as_mkdir_p; then
24257    mkdir -p "$ac_dir"
24258  else
24259    as_dir="$ac_dir"
24260    as_dirs=
24261    while test ! -d "$as_dir"; do
24262      as_dirs="$as_dir $as_dirs"
24263      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24264$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24265	 X"$as_dir" : 'X\(//\)[^/]' \| \
24266	 X"$as_dir" : 'X\(//\)$' \| \
24267	 X"$as_dir" : 'X\(/\)' \| \
24268	 .     : '\(.\)' 2>/dev/null ||
24269echo X"$as_dir" |
24270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24271  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24272  	  /^X\(\/\/\)$/{ s//\1/; q; }
24273  	  /^X\(\/\).*/{ s//\1/; q; }
24274  	  s/.*/./; q'`
24275    done
24276    test ! -n "$as_dirs" || mkdir $as_dirs
24277  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24278echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24279   { (exit 1); exit 1; }; }; }
24280
24281      rm -f $ac_file
24282      mv $tmp/config.h $ac_file
24283    fi
24284  else
24285    cat $tmp/config.h
24286    rm -f $tmp/config.h
24287  fi
24288# Compute $ac_file's index in $config_headers.
24289_am_stamp_count=1
24290for _am_header in $config_headers :; do
24291  case $_am_header in
24292    $ac_file | $ac_file:* )
24293      break ;;
24294    * )
24295      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24296  esac
24297done
24298echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24299$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24300	 X$ac_file : 'X\(//\)[^/]' \| \
24301	 X$ac_file : 'X\(//\)$' \| \
24302	 X$ac_file : 'X\(/\)' \| \
24303	 .     : '\(.\)' 2>/dev/null ||
24304echo X$ac_file |
24305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24306  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24307  	  /^X\(\/\/\)$/{ s//\1/; q; }
24308  	  /^X\(\/\).*/{ s//\1/; q; }
24309  	  s/.*/./; q'`/stamp-h$_am_stamp_count
24310done
24311_ACEOF
24312cat >>$CONFIG_STATUS <<\_ACEOF
24313
24314#
24315# CONFIG_COMMANDS section.
24316#
24317for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24318  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24319  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24320  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24321$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24322	 X"$ac_dest" : 'X\(//\)[^/]' \| \
24323	 X"$ac_dest" : 'X\(//\)$' \| \
24324	 X"$ac_dest" : 'X\(/\)' \| \
24325	 .     : '\(.\)' 2>/dev/null ||
24326echo X"$ac_dest" |
24327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24328  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24329  	  /^X\(\/\/\)$/{ s//\1/; q; }
24330  	  /^X\(\/\).*/{ s//\1/; q; }
24331  	  s/.*/./; q'`
24332  { if $as_mkdir_p; then
24333    mkdir -p "$ac_dir"
24334  else
24335    as_dir="$ac_dir"
24336    as_dirs=
24337    while test ! -d "$as_dir"; do
24338      as_dirs="$as_dir $as_dirs"
24339      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24341	 X"$as_dir" : 'X\(//\)[^/]' \| \
24342	 X"$as_dir" : 'X\(//\)$' \| \
24343	 X"$as_dir" : 'X\(/\)' \| \
24344	 .     : '\(.\)' 2>/dev/null ||
24345echo X"$as_dir" |
24346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24347  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24348  	  /^X\(\/\/\)$/{ s//\1/; q; }
24349  	  /^X\(\/\).*/{ s//\1/; q; }
24350  	  s/.*/./; q'`
24351    done
24352    test ! -n "$as_dirs" || mkdir $as_dirs
24353  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24355   { (exit 1); exit 1; }; }; }
24356
24357  ac_builddir=.
24358
24359if test "$ac_dir" != .; then
24360  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24361  # A "../" for each directory in $ac_dir_suffix.
24362  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24363else
24364  ac_dir_suffix= ac_top_builddir=
24365fi
24366
24367case $srcdir in
24368  .)  # No --srcdir option.  We are building in place.
24369    ac_srcdir=.
24370    if test -z "$ac_top_builddir"; then
24371       ac_top_srcdir=.
24372    else
24373       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24374    fi ;;
24375  [\\/]* | ?:[\\/]* )  # Absolute path.
24376    ac_srcdir=$srcdir$ac_dir_suffix;
24377    ac_top_srcdir=$srcdir ;;
24378  *) # Relative path.
24379    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24380    ac_top_srcdir=$ac_top_builddir$srcdir ;;
24381esac
24382
24383# Do not use `cd foo && pwd` to compute absolute paths, because
24384# the directories may not exist.
24385case `pwd` in
24386.) ac_abs_builddir="$ac_dir";;
24387*)
24388  case "$ac_dir" in
24389  .) ac_abs_builddir=`pwd`;;
24390  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24391  *) ac_abs_builddir=`pwd`/"$ac_dir";;
24392  esac;;
24393esac
24394case $ac_abs_builddir in
24395.) ac_abs_top_builddir=${ac_top_builddir}.;;
24396*)
24397  case ${ac_top_builddir}. in
24398  .) ac_abs_top_builddir=$ac_abs_builddir;;
24399  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24400  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24401  esac;;
24402esac
24403case $ac_abs_builddir in
24404.) ac_abs_srcdir=$ac_srcdir;;
24405*)
24406  case $ac_srcdir in
24407  .) ac_abs_srcdir=$ac_abs_builddir;;
24408  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24409  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24410  esac;;
24411esac
24412case $ac_abs_builddir in
24413.) ac_abs_top_srcdir=$ac_top_srcdir;;
24414*)
24415  case $ac_top_srcdir in
24416  .) ac_abs_top_srcdir=$ac_abs_builddir;;
24417  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24418  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24419  esac;;
24420esac
24421
24422
24423  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24424echo "$as_me: executing $ac_dest commands" >&6;}
24425  case $ac_dest in
24426    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24427  # Strip MF so we end up with the name of the file.
24428  mf=`echo "$mf" | sed -e 's/:.*$//'`
24429  # Check whether this is an Automake generated Makefile or not.
24430  # We used to match only the files named `Makefile.in', but
24431  # some people rename them; so instead we look at the file content.
24432  # Grep'ing the first line is not enough: some people post-process
24433  # each Makefile.in and add a new line on top of each file to say so.
24434  # So let's grep whole file.
24435  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24436    dirpart=`(dirname "$mf") 2>/dev/null ||
24437$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24438	 X"$mf" : 'X\(//\)[^/]' \| \
24439	 X"$mf" : 'X\(//\)$' \| \
24440	 X"$mf" : 'X\(/\)' \| \
24441	 .     : '\(.\)' 2>/dev/null ||
24442echo X"$mf" |
24443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24444  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24445  	  /^X\(\/\/\)$/{ s//\1/; q; }
24446  	  /^X\(\/\).*/{ s//\1/; q; }
24447  	  s/.*/./; q'`
24448  else
24449    continue
24450  fi
24451  # Extract the definition of DEPDIR, am__include, and am__quote
24452  # from the Makefile without running `make'.
24453  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24454  test -z "$DEPDIR" && continue
24455  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24456  test -z "am__include" && continue
24457  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24458  # When using ansi2knr, U may be empty or an underscore; expand it
24459  U=`sed -n 's/^U = //p' < "$mf"`
24460  # Find all dependency output files, they are included files with
24461  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24462  # simplest approach to changing $(DEPDIR) to its actual value in the
24463  # expansion.
24464  for file in `sed -n "
24465    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24466       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24467    # Make sure the directory exists.
24468    test -f "$dirpart/$file" && continue
24469    fdir=`(dirname "$file") 2>/dev/null ||
24470$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24471	 X"$file" : 'X\(//\)[^/]' \| \
24472	 X"$file" : 'X\(//\)$' \| \
24473	 X"$file" : 'X\(/\)' \| \
24474	 .     : '\(.\)' 2>/dev/null ||
24475echo X"$file" |
24476    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24477  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24478  	  /^X\(\/\/\)$/{ s//\1/; q; }
24479  	  /^X\(\/\).*/{ s//\1/; q; }
24480  	  s/.*/./; q'`
24481    { if $as_mkdir_p; then
24482    mkdir -p $dirpart/$fdir
24483  else
24484    as_dir=$dirpart/$fdir
24485    as_dirs=
24486    while test ! -d "$as_dir"; do
24487      as_dirs="$as_dir $as_dirs"
24488      as_dir=`(dirname "$as_dir") 2>/dev/null ||
24489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24490	 X"$as_dir" : 'X\(//\)[^/]' \| \
24491	 X"$as_dir" : 'X\(//\)$' \| \
24492	 X"$as_dir" : 'X\(/\)' \| \
24493	 .     : '\(.\)' 2>/dev/null ||
24494echo X"$as_dir" |
24495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24496  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24497  	  /^X\(\/\/\)$/{ s//\1/; q; }
24498  	  /^X\(\/\).*/{ s//\1/; q; }
24499  	  s/.*/./; q'`
24500    done
24501    test ! -n "$as_dirs" || mkdir $as_dirs
24502  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24503echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24504   { (exit 1); exit 1; }; }; }
24505
24506    # echo "creating $dirpart/$file"
24507    echo '# dummy' > "$dirpart/$file"
24508  done
24509done
24510 ;;
24511  esac
24512done
24513_ACEOF
24514
24515cat >>$CONFIG_STATUS <<\_ACEOF
24516
24517{ (exit 0); exit 0; }
24518_ACEOF
24519chmod +x $CONFIG_STATUS
24520ac_clean_files=$ac_clean_files_save
24521
24522
24523# configure is writing to config.log, and then calls config.status.
24524# config.status does its own redirection, appending to config.log.
24525# Unfortunately, on DOS this fails, as config.log is still kept open
24526# by configure, so config.status won't be able to write to it; its
24527# output is simply discarded.  So we exec the FD to /dev/null,
24528# effectively closing config.log, so it can be properly (re)opened and
24529# appended to by config.status.  When coming back to configure, we
24530# need to make the FD available again.
24531if test "$no_create" != yes; then
24532  ac_cs_success=:
24533  ac_config_status_args=
24534  test "$silent" = yes &&
24535    ac_config_status_args="$ac_config_status_args --quiet"
24536  exec 5>/dev/null
24537  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24538  exec 5>>config.log
24539  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24540  # would make configure fail if this is the last instruction.
24541  $ac_cs_success || { (exit 1); exit 1; }
24542fi
24543
24544