1#! /bin/sh
2# From configure.in Id: configure.in,v 1.29.2.41 2005/12/16 08:12:19 tbe Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59.
5#
6# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69	 X"$0" : 'X\(//\)$' \| \
70	 X"$0" : 'X\(/\)$' \| \
71	 .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
75  	  /^X\/\(\/\).*/{ s//\1/; q; }
76  	  s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137	 case $as_dir in
138	 /*)
139	   if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147	     CONFIG_SHELL=$as_dir/$as_base
148	     export CONFIG_SHELL
149	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150	   fi;;
151	 esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='	' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  test -d ./-p && rmdir ./-p
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" 	$as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251  # Remove one level of quotation (which was required for Make).
252  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253  ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258  # Discard the --no-reexec flag, and continue.
259  shift
260elif test "X$1" = X--fallback-echo; then
261  # Avoid inline document here, it may be left over
262  :
263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264  # Yippee, $echo works!
265  :
266else
267  # Restart under the correct shell.
268  exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272  # used as fallback echo
273  shift
274  cat <<EOF
275$*
276EOF
277  exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
290       echo_test_string=`eval $cmd` &&
291       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292    then
293      break
294    fi
295  done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300   test "X$echo_testing_string" = "X$echo_test_string"; then
301  :
302else
303  # The Solaris, AIX, and Digital Unix default echo programs unquote
304  # backslashes.  This makes it impossible to quote backslashes using
305  #   echo "$something" | sed 's/\\/\\\\/g'
306  #
307  # So, first we look for a working echo in the user's PATH.
308
309  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310  for dir in $PATH /usr/ucb; do
311    IFS="$lt_save_ifs"
312    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315       test "X$echo_testing_string" = "X$echo_test_string"; then
316      echo="$dir/echo"
317      break
318    fi
319  done
320  IFS="$lt_save_ifs"
321
322  if test "X$echo" = Xecho; then
323    # We didn't find a better echo, so look for alternatives.
324    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326       test "X$echo_testing_string" = "X$echo_test_string"; then
327      # This shell has a builtin print -r that does the trick.
328      echo='print -r'
329    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330	 test "X$CONFIG_SHELL" != X/bin/ksh; then
331      # If we have ksh, try running configure again with it.
332      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333      export ORIGINAL_CONFIG_SHELL
334      CONFIG_SHELL=/bin/ksh
335      export CONFIG_SHELL
336      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337    else
338      # Try using printf.
339      echo='printf %s\n'
340      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342	 test "X$echo_testing_string" = "X$echo_test_string"; then
343	# Cool, printf works
344	:
345      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346	   test "X$echo_testing_string" = 'X\t' &&
347	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348	   test "X$echo_testing_string" = "X$echo_test_string"; then
349	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350	export CONFIG_SHELL
351	SHELL="$CONFIG_SHELL"
352	export SHELL
353	echo="$CONFIG_SHELL $0 --fallback-echo"
354      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355	   test "X$echo_testing_string" = 'X\t' &&
356	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357	   test "X$echo_testing_string" = "X$echo_test_string"; then
358	echo="$CONFIG_SHELL $0 --fallback-echo"
359      else
360	# maybe with a smaller string...
361	prev=:
362
363	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365	  then
366	    break
367	  fi
368	  prev="$cmd"
369	done
370
371	if test "$prev" != 'sed 50q "$0"'; then
372	  echo_test_string=`eval $prev`
373	  export echo_test_string
374	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375	else
376	  # Oops.  We lost completely, so just stick with echo.
377	  echo=echo
378	fi
379      fi
380    fi
381  fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
394
395tagnames=${tagnames+${tagnames},}CXX
396
397tagnames=${tagnames+${tagnames},}F77
398
399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
410ac_config_libobj_dir=.
411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete.  It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
423PACKAGE_NAME=
424PACKAGE_TARNAME=
425PACKAGE_VERSION=
426PACKAGE_STRING=
427PACKAGE_BUGREPORT=
428
429ac_unique_file="pubtext"
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SP_LIBOSP_CUR SP_LIBOSP_REV SP_LIBOSP_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LN_S PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB SP_MESSAGE_DOMAIN LIBOBJS DTDDECL_TRUE DTDDECL_FALSE XMLTO DOCSRC PDF2PS JADE JADETEX PDFJADETEX EXTRADOCS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014System types:
1015  --build=BUILD     configure for building on BUILD [guessed]
1016  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017_ACEOF
1018fi
1019
1020if test -n "$ac_init_help"; then
1021
1022  cat <<\_ACEOF
1023
1024Optional Features:
1025  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027  --enable-maintainer-mode  enable make rules and dependencies not useful
1028			  (and sometimes confusing) to the casual installer
1029  --disable-dependency-tracking  speeds up one-time build
1030  --enable-dependency-tracking   do not reject slow dependency extractors
1031  --enable-shared[=PKGS]
1032                          build shared libraries [default=yes]
1033  --enable-static[=PKGS]
1034                          build static libraries [default=yes]
1035  --enable-fast-install[=PKGS]
1036                          optimize for fast installation [default=yes]
1037  --disable-libtool-lock  avoid locking (might break parallel builds)
1038  --disable-nls           do not use Native Language Support
1039  --disable-rpath         do not hardcode runtime library paths
1040  --enable-http           include support for http
1041  --enable-default-catalog=pathlist
1042                          provide one or more default catalog files or
1043                          sysids, e.g. /usr/local/lib/sgml/catalog
1044  --enable-default-search-path=pathlist
1045                          provide a default value for SGML_SEARCH_PATH
1046  --enable-xml-messages   include support for XML Formatted Messages
1047  --disable-dtddecl       disable support for DTDDECL catalog entries
1048  --disable-doc-build     do not build docs from source
1049  --enable-full-doc-build build all docs from source
1050
1051Optional Packages:
1052  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055  --with-pic              try to use only PIC/non-PIC objects [default=use
1056                          both]
1057  --with-tags[=TAGS]
1058                          include additional configurations [automatic]
1059  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1060  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1061  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1062  --with-included-gettext use the GNU gettext library included here
1063  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1064  --without-libintl-prefix     don't search for libintl in includedir and libdir
1065
1066Some influential environment variables:
1067  CC          C compiler command
1068  CFLAGS      C compiler flags
1069  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070              nonstandard directory <lib dir>
1071  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072              headers in a nonstandard directory <include dir>
1073  CPP         C preprocessor
1074  CXX         C++ compiler command
1075  CXXFLAGS    C++ compiler flags
1076  CXXCPP      C++ preprocessor
1077  F77         Fortran 77 compiler command
1078  FFLAGS      Fortran 77 compiler flags
1079
1080Use these variables to override the choices made by `configure' or to help
1081it to find libraries and programs with nonstandard names/locations.
1082
1083_ACEOF
1084fi
1085
1086if test "$ac_init_help" = "recursive"; then
1087  # If there are subdirs, report their specific --help.
1088  ac_popdir=`pwd`
1089  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090    test -d $ac_dir || continue
1091    ac_builddir=.
1092
1093if test "$ac_dir" != .; then
1094  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095  # A "../" for each directory in $ac_dir_suffix.
1096  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097else
1098  ac_dir_suffix= ac_top_builddir=
1099fi
1100
1101case $srcdir in
1102  .)  # No --srcdir option.  We are building in place.
1103    ac_srcdir=.
1104    if test -z "$ac_top_builddir"; then
1105       ac_top_srcdir=.
1106    else
1107       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108    fi ;;
1109  [\\/]* | ?:[\\/]* )  # Absolute path.
1110    ac_srcdir=$srcdir$ac_dir_suffix;
1111    ac_top_srcdir=$srcdir ;;
1112  *) # Relative path.
1113    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115esac
1116
1117# Do not use `cd foo && pwd` to compute absolute paths, because
1118# the directories may not exist.
1119case `pwd` in
1120.) ac_abs_builddir="$ac_dir";;
1121*)
1122  case "$ac_dir" in
1123  .) ac_abs_builddir=`pwd`;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126  esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_top_builddir=${ac_top_builddir}.;;
1130*)
1131  case ${ac_top_builddir}. in
1132  .) ac_abs_top_builddir=$ac_abs_builddir;;
1133  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135  esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_srcdir=$ac_srcdir;;
1139*)
1140  case $ac_srcdir in
1141  .) ac_abs_srcdir=$ac_abs_builddir;;
1142  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144  esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_srcdir=$ac_top_srcdir;;
1148*)
1149  case $ac_top_srcdir in
1150  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153  esac;;
1154esac
1155
1156    cd $ac_dir
1157    # Check for guested configure; otherwise get Cygnus style configure.
1158    if test -f $ac_srcdir/configure.gnu; then
1159      echo
1160      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161    elif test -f $ac_srcdir/configure; then
1162      echo
1163      $SHELL $ac_srcdir/configure  --help=recursive
1164    elif test -f $ac_srcdir/configure.ac ||
1165	   test -f $ac_srcdir/configure.in; then
1166      echo
1167      $ac_configure --help
1168    else
1169      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170    fi
1171    cd $ac_popdir
1172  done
1173fi
1174
1175test -n "$ac_init_help" && exit 0
1176if $ac_init_version; then
1177  cat <<\_ACEOF
1178
1179Copyright (C) 2003 Free Software Foundation, Inc.
1180This configure script is free software; the Free Software Foundation
1181gives unlimited permission to copy, distribute and modify it.
1182_ACEOF
1183  exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
1190It was created by $as_me, which was
1191generated by GNU Autoconf 2.59.  Invocation command line was
1192
1193  $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1210
1211/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1212/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1215/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1216/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1217/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224  IFS=$as_save_IFS
1225  test -z "$as_dir" && as_dir=.
1226  echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
1243# Strip out --silent because we don't want to record it for future runs.
1244# Also quote any args containing shell meta-characters.
1245# Make two passes to allow for proper duplicate-argument suppression.
1246ac_configure_args=
1247ac_configure_args0=
1248ac_configure_args1=
1249ac_sep=
1250ac_must_keep_next=false
1251for ac_pass in 1 2
1252do
1253  for ac_arg
1254  do
1255    case $ac_arg in
1256    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258    | -silent | --silent | --silen | --sile | --sil)
1259      continue ;;
1260    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262    esac
1263    case $ac_pass in
1264    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265    2)
1266      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267      if test $ac_must_keep_next = true; then
1268	ac_must_keep_next=false # Got value, back to normal.
1269      else
1270	case $ac_arg in
1271	  *=* | --config-cache | -C | -disable-* | --disable-* \
1272	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274	  | -with-* | --with-* | -without-* | --without-* | --x)
1275	    case "$ac_configure_args0 " in
1276	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277	    esac
1278	    ;;
1279	  -* ) ac_must_keep_next=true ;;
1280	esac
1281      fi
1282      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283      # Get rid of the leading space.
1284      ac_sep=" "
1285      ;;
1286    esac
1287  done
1288done
1289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log.  We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298  # Save into config.log some information that might help in debugging.
1299  {
1300    echo
1301
1302    cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307    echo
1308    # The following way of writing the cache mishandles newlines in values,
1309{
1310  (set) 2>&1 |
1311    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312    *ac_space=\ *)
1313      sed -n \
1314	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316      ;;
1317    *)
1318      sed -n \
1319	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320      ;;
1321    esac;
1322}
1323    echo
1324
1325    cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330    echo
1331    for ac_var in $ac_subst_vars
1332    do
1333      eval ac_val=$`echo $ac_var`
1334      echo "$ac_var='"'"'$ac_val'"'"'"
1335    done | sort
1336    echo
1337
1338    if test -n "$ac_subst_files"; then
1339      cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344      echo
1345      for ac_var in $ac_subst_files
1346      do
1347	eval ac_val=$`echo $ac_var`
1348	echo "$ac_var='"'"'$ac_val'"'"'"
1349      done | sort
1350      echo
1351    fi
1352
1353    if test -s confdefs.h; then
1354      cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359      echo
1360      sed "/^$/d" confdefs.h | sort
1361      echo
1362    fi
1363    test "$ac_signal" != 0 &&
1364      echo "$as_me: caught signal $ac_signal"
1365    echo "$as_me: exit $exit_status"
1366  } >&5
1367  rm -f core *.core &&
1368  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369    exit $exit_status
1370     ' 0
1371for ac_signal in 1 2 13 15; do
1372  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411  if test "x$prefix" != xNONE; then
1412    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413  else
1414    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415  fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418  if test -r "$ac_site_file"; then
1419    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421    sed 's/^/| /' "$ac_site_file" >&5
1422    . "$ac_site_file"
1423  fi
1424done
1425
1426if test -r "$cache_file"; then
1427  # Some versions of bash will fail to source /dev/null (special
1428  # files actually), so we avoid doing that.
1429  if test -f "$cache_file"; then
1430    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432    case $cache_file in
1433      [\\/]* | ?:[\\/]* ) . $cache_file;;
1434      *)                      . ./$cache_file;;
1435    esac
1436  fi
1437else
1438  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440  >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
1447	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449  eval ac_new_set=\$ac_env_${ac_var}_set
1450  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451  eval ac_new_val="\$ac_env_${ac_var}_value"
1452  case $ac_old_set,$ac_new_set in
1453    set,)
1454      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456      ac_cache_corrupted=: ;;
1457    ,set)
1458      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460      ac_cache_corrupted=: ;;
1461    ,);;
1462    *)
1463      if test "x$ac_old_val" != "x$ac_new_val"; then
1464	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1467echo "$as_me:   former value:  $ac_old_val" >&2;}
1468	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1469echo "$as_me:   current value: $ac_new_val" >&2;}
1470	ac_cache_corrupted=:
1471      fi;;
1472  esac
1473  # Pass precious variables to config.status.
1474  if test "$ac_new_set" = set; then
1475    case $ac_new_val in
1476    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478    *) ac_arg=$ac_var=$ac_new_val ;;
1479    esac
1480    case " $ac_configure_args " in
1481      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1482      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483    esac
1484  fi
1485done
1486if $ac_cache_corrupted; then
1487  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491   { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519am__api_version="1.9"
1520ac_aux_dir=
1521for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1522  if test -f $ac_dir/install-sh; then
1523    ac_aux_dir=$ac_dir
1524    ac_install_sh="$ac_aux_dir/install-sh -c"
1525    break
1526  elif test -f $ac_dir/install.sh; then
1527    ac_aux_dir=$ac_dir
1528    ac_install_sh="$ac_aux_dir/install.sh -c"
1529    break
1530  elif test -f $ac_dir/shtool; then
1531    ac_aux_dir=$ac_dir
1532    ac_install_sh="$ac_aux_dir/shtool install -c"
1533    break
1534  fi
1535done
1536if test -z "$ac_aux_dir"; then
1537  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539   { (exit 1); exit 1; }; }
1540fi
1541ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
1545# Find a good install program.  We prefer a C program (faster),
1546# so one script is as good as another.  But avoid the broken or
1547# incompatible versions:
1548# SysV /etc/install, /usr/sbin/install
1549# SunOS /usr/etc/install
1550# IRIX /sbin/install
1551# AIX /bin/install
1552# AmigaOS /C/install, which installs bootblocks on floppy discs
1553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1556# OS/2's system install, which has a completely different semantic
1557# ./install, which can be erroneously created by make from ./install.sh.
1558echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1559echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1560if test -z "$INSTALL"; then
1561if test "${ac_cv_path_install+set}" = set; then
1562  echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567  IFS=$as_save_IFS
1568  test -z "$as_dir" && as_dir=.
1569  # Account for people who put trailing slashes in PATH elements.
1570case $as_dir/ in
1571  ./ | .// | /cC/* | \
1572  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1573  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1574  /usr/ucb/* ) ;;
1575  *)
1576    # OSF1 and SCO ODT 3.0 have their own names for install.
1577    # Don't use installbsd from OSF since it installs stuff as root
1578    # by default.
1579    for ac_prog in ginstall scoinst install; do
1580      for ac_exec_ext in '' $ac_executable_extensions; do
1581	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1582	  if test $ac_prog = install &&
1583	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1584	    # AIX install.  It has an incompatible calling convention.
1585	    :
1586	  elif test $ac_prog = install &&
1587	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1588	    # program-specific install script used by HP pwplus--don't use.
1589	    :
1590	  else
1591	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1592	    break 3
1593	  fi
1594	fi
1595      done
1596    done
1597    ;;
1598esac
1599done
1600
1601
1602fi
1603  if test "${ac_cv_path_install+set}" = set; then
1604    INSTALL=$ac_cv_path_install
1605  else
1606    # As a last resort, use the slow shell script.  We don't cache a
1607    # path for INSTALL within a source directory, because that will
1608    # break other packages using the cache if that directory is
1609    # removed, or if the path is relative.
1610    INSTALL=$ac_install_sh
1611  fi
1612fi
1613echo "$as_me:$LINENO: result: $INSTALL" >&5
1614echo "${ECHO_T}$INSTALL" >&6
1615
1616# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1617# It thinks the first close brace ends the variable substitution.
1618test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1619
1620test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1621
1622test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1623
1624echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1625echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1626# Just in case
1627sleep 1
1628echo timestamp > conftest.file
1629# Do `set' in a subshell so we don't clobber the current shell's
1630# arguments.  Must try -L first in case configure is actually a
1631# symlink; some systems play weird games with the mod time of symlinks
1632# (eg FreeBSD returns the mod time of the symlink's containing
1633# directory).
1634if (
1635   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1636   if test "$*" = "X"; then
1637      # -L didn't work.
1638      set X `ls -t $srcdir/configure conftest.file`
1639   fi
1640   rm -f conftest.file
1641   if test "$*" != "X $srcdir/configure conftest.file" \
1642      && test "$*" != "X conftest.file $srcdir/configure"; then
1643
1644      # If neither matched, then we have a broken ls.  This can happen
1645      # if, for instance, CONFIG_SHELL is bash and it inherits a
1646      # broken ls alias from the environment.  This has actually
1647      # happened.  Such a system could not be considered "sane".
1648      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1649alias in your environment" >&5
1650echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1651alias in your environment" >&2;}
1652   { (exit 1); exit 1; }; }
1653   fi
1654
1655   test "$2" = conftest.file
1656   )
1657then
1658   # Ok.
1659   :
1660else
1661   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1662Check your system clock" >&5
1663echo "$as_me: error: newly created file is older than distributed files!
1664Check your system clock" >&2;}
1665   { (exit 1); exit 1; }; }
1666fi
1667echo "$as_me:$LINENO: result: yes" >&5
1668echo "${ECHO_T}yes" >&6
1669test "$program_prefix" != NONE &&
1670  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1671# Use a double $ so make ignores it.
1672test "$program_suffix" != NONE &&
1673  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1674# Double any \ or $.  echo might interpret backslashes.
1675# By default was `s,x,x', remove it if useless.
1676cat <<\_ACEOF >conftest.sed
1677s/[\\$]/&&/g;s/;s,x,x,$//
1678_ACEOF
1679program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1680rm conftest.sed
1681
1682# expand $ac_aux_dir to an absolute path
1683am_aux_dir=`cd $ac_aux_dir && pwd`
1684
1685test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1686# Use eval to expand $SHELL
1687if eval "$MISSING --run true"; then
1688  am_missing_run="$MISSING --run "
1689else
1690  am_missing_run=
1691  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1692echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1693fi
1694
1695if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1696  # We used to keeping the `.' as first argument, in order to
1697  # allow $(mkdir_p) to be used without argument.  As in
1698  #   $(mkdir_p) $(somedir)
1699  # where $(somedir) is conditionally defined.  However this is wrong
1700  # for two reasons:
1701  #  1. if the package is installed by a user who cannot write `.'
1702  #     make install will fail,
1703  #  2. the above comment should most certainly read
1704  #     $(mkdir_p) $(DESTDIR)$(somedir)
1705  #     so it does not work when $(somedir) is undefined and
1706  #     $(DESTDIR) is not.
1707  #  To support the latter case, we have to write
1708  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1709  #  so the `.' trick is pointless.
1710  mkdir_p='mkdir -p --'
1711else
1712  # On NextStep and OpenStep, the `mkdir' command does not
1713  # recognize any option.  It will interpret all options as
1714  # directories to create, and then abort because `.' already
1715  # exists.
1716  for d in ./-p ./--version;
1717  do
1718    test -d $d && rmdir $d
1719  done
1720  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1721  if test -f "$ac_aux_dir/mkinstalldirs"; then
1722    mkdir_p='$(mkinstalldirs)'
1723  else
1724    mkdir_p='$(install_sh) -d'
1725  fi
1726fi
1727
1728for ac_prog in gawk mawk nawk awk
1729do
1730  # Extract the first word of "$ac_prog", so it can be a program name with args.
1731set dummy $ac_prog; ac_word=$2
1732echo "$as_me:$LINENO: checking for $ac_word" >&5
1733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734if test "${ac_cv_prog_AWK+set}" = set; then
1735  echo $ECHO_N "(cached) $ECHO_C" >&6
1736else
1737  if test -n "$AWK"; then
1738  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1739else
1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741for as_dir in $PATH
1742do
1743  IFS=$as_save_IFS
1744  test -z "$as_dir" && as_dir=.
1745  for ac_exec_ext in '' $ac_executable_extensions; do
1746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747    ac_cv_prog_AWK="$ac_prog"
1748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749    break 2
1750  fi
1751done
1752done
1753
1754fi
1755fi
1756AWK=$ac_cv_prog_AWK
1757if test -n "$AWK"; then
1758  echo "$as_me:$LINENO: result: $AWK" >&5
1759echo "${ECHO_T}$AWK" >&6
1760else
1761  echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
1763fi
1764
1765  test -n "$AWK" && break
1766done
1767
1768echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1769echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1770set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1771if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1772  echo $ECHO_N "(cached) $ECHO_C" >&6
1773else
1774  cat >conftest.make <<\_ACEOF
1775all:
1776	@echo 'ac_maketemp="$(MAKE)"'
1777_ACEOF
1778# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1779eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1780if test -n "$ac_maketemp"; then
1781  eval ac_cv_prog_make_${ac_make}_set=yes
1782else
1783  eval ac_cv_prog_make_${ac_make}_set=no
1784fi
1785rm -f conftest.make
1786fi
1787if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1788  echo "$as_me:$LINENO: result: yes" >&5
1789echo "${ECHO_T}yes" >&6
1790  SET_MAKE=
1791else
1792  echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794  SET_MAKE="MAKE=${MAKE-make}"
1795fi
1796
1797rm -rf .tst 2>/dev/null
1798mkdir .tst 2>/dev/null
1799if test -d .tst; then
1800  am__leading_dot=.
1801else
1802  am__leading_dot=_
1803fi
1804rmdir .tst 2>/dev/null
1805
1806# test to see if srcdir already configured
1807if test "`cd $srcdir && pwd`" != "`pwd`" &&
1808   test -f $srcdir/config.status; then
1809  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1810echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1811   { (exit 1); exit 1; }; }
1812fi
1813
1814# test whether we have cygpath
1815if test -z "$CYGPATH_W"; then
1816  if (cygpath --version) >/dev/null 2>/dev/null; then
1817    CYGPATH_W='cygpath -w'
1818  else
1819    CYGPATH_W=echo
1820  fi
1821fi
1822
1823
1824# Define the identity of the package.
1825 PACKAGE=OpenSP
1826 VERSION=1.5.2
1827
1828
1829# Some tools Automake needs.
1830
1831ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1832
1833
1834AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1835
1836
1837AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1838
1839
1840AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1841
1842
1843MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1844
1845install_sh=${install_sh-"$am_aux_dir/install-sh"}
1846
1847# Installed binaries are usually stripped using `strip' when the user
1848# run `make install-strip'.  However `strip' might not be the right
1849# tool to use in cross-compilation environments, therefore Automake
1850# will honor the `STRIP' environment variable to overrule this program.
1851if test "$cross_compiling" != no; then
1852  if test -n "$ac_tool_prefix"; then
1853  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1854set dummy ${ac_tool_prefix}strip; ac_word=$2
1855echo "$as_me:$LINENO: checking for $ac_word" >&5
1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857if test "${ac_cv_prog_STRIP+set}" = set; then
1858  echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860  if test -n "$STRIP"; then
1861  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1862else
1863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864for as_dir in $PATH
1865do
1866  IFS=$as_save_IFS
1867  test -z "$as_dir" && as_dir=.
1868  for ac_exec_ext in '' $ac_executable_extensions; do
1869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872    break 2
1873  fi
1874done
1875done
1876
1877fi
1878fi
1879STRIP=$ac_cv_prog_STRIP
1880if test -n "$STRIP"; then
1881  echo "$as_me:$LINENO: result: $STRIP" >&5
1882echo "${ECHO_T}$STRIP" >&6
1883else
1884  echo "$as_me:$LINENO: result: no" >&5
1885echo "${ECHO_T}no" >&6
1886fi
1887
1888fi
1889if test -z "$ac_cv_prog_STRIP"; then
1890  ac_ct_STRIP=$STRIP
1891  # Extract the first word of "strip", so it can be a program name with args.
1892set dummy strip; ac_word=$2
1893echo "$as_me:$LINENO: checking for $ac_word" >&5
1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1896  echo $ECHO_N "(cached) $ECHO_C" >&6
1897else
1898  if test -n "$ac_ct_STRIP"; then
1899  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1900else
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906  for ac_exec_ext in '' $ac_executable_extensions; do
1907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908    ac_cv_prog_ac_ct_STRIP="strip"
1909    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910    break 2
1911  fi
1912done
1913done
1914
1915  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1916fi
1917fi
1918ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1919if test -n "$ac_ct_STRIP"; then
1920  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1921echo "${ECHO_T}$ac_ct_STRIP" >&6
1922else
1923  echo "$as_me:$LINENO: result: no" >&5
1924echo "${ECHO_T}no" >&6
1925fi
1926
1927  STRIP=$ac_ct_STRIP
1928else
1929  STRIP="$ac_cv_prog_STRIP"
1930fi
1931
1932fi
1933INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1934
1935# We need awk for the "check" target.  The system "awk" is bad on
1936# some platforms.
1937# Always define AMTAR for backward compatibility.
1938
1939AMTAR=${AMTAR-"${am_missing_run}tar"}
1940
1941am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1942
1943
1944
1945
1946
1947echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1948echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1949    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1950if test "${enable_maintainer_mode+set}" = set; then
1951  enableval="$enable_maintainer_mode"
1952  USE_MAINTAINER_MODE=$enableval
1953else
1954  USE_MAINTAINER_MODE=no
1955fi;
1956  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1957echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1958
1959
1960if test $USE_MAINTAINER_MODE = yes; then
1961  MAINTAINER_MODE_TRUE=
1962  MAINTAINER_MODE_FALSE='#'
1963else
1964  MAINTAINER_MODE_TRUE='#'
1965  MAINTAINER_MODE_FALSE=
1966fi
1967
1968  MAINT=$MAINTAINER_MODE_TRUE
1969
1970
1971
1972          ac_config_headers="$ac_config_headers config.h"
1973
1974echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1975echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1976# Just in case
1977sleep 1
1978echo timestamp > conftest.file
1979# Do `set' in a subshell so we don't clobber the current shell's
1980# arguments.  Must try -L first in case configure is actually a
1981# symlink; some systems play weird games with the mod time of symlinks
1982# (eg FreeBSD returns the mod time of the symlink's containing
1983# directory).
1984if (
1985   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1986   if test "$*" = "X"; then
1987      # -L didn't work.
1988      set X `ls -t $srcdir/configure conftest.file`
1989   fi
1990   rm -f conftest.file
1991   if test "$*" != "X $srcdir/configure conftest.file" \
1992      && test "$*" != "X conftest.file $srcdir/configure"; then
1993
1994      # If neither matched, then we have a broken ls.  This can happen
1995      # if, for instance, CONFIG_SHELL is bash and it inherits a
1996      # broken ls alias from the environment.  This has actually
1997      # happened.  Such a system could not be considered "sane".
1998      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1999alias in your environment" >&5
2000echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2001alias in your environment" >&2;}
2002   { (exit 1); exit 1; }; }
2003   fi
2004
2005   test "$2" = conftest.file
2006   )
2007then
2008   # Ok.
2009   :
2010else
2011   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2012Check your system clock" >&5
2013echo "$as_me: error: newly created file is older than distributed files!
2014Check your system clock" >&2;}
2015   { (exit 1); exit 1; }; }
2016fi
2017echo "$as_me:$LINENO: result: yes" >&5
2018echo "${ECHO_T}yes" >&6
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042cat >>confdefs.h <<\_ACEOF
2043#define SP_MULTI_BYTE 1
2044_ACEOF
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090cat >>confdefs.h <<_ACEOF
2091#define SP_PACKAGE "$PACKAGE"
2092_ACEOF
2093
2094
2095cat >>confdefs.h <<_ACEOF
2096#define SP_VERSION "$VERSION"
2097_ACEOF
2098
2099
2100SP_LIBOSP_CUR=5
2101
2102SP_LIBOSP_REV=0
2103
2104SP_LIBOSP_AGE=0
2105
2106
2107ac_ext=c
2108ac_cpp='$CPP $CPPFLAGS'
2109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112if test -n "$ac_tool_prefix"; then
2113  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114set dummy ${ac_tool_prefix}gcc; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_CC+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  if test -n "$CC"; then
2121  ac_cv_prog_CC="$CC" # Let the user override the test.
2122else
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126  IFS=$as_save_IFS
2127  test -z "$as_dir" && as_dir=.
2128  for ac_exec_ext in '' $ac_executable_extensions; do
2129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132    break 2
2133  fi
2134done
2135done
2136
2137fi
2138fi
2139CC=$ac_cv_prog_CC
2140if test -n "$CC"; then
2141  echo "$as_me:$LINENO: result: $CC" >&5
2142echo "${ECHO_T}$CC" >&6
2143else
2144  echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6
2146fi
2147
2148fi
2149if test -z "$ac_cv_prog_CC"; then
2150  ac_ct_CC=$CC
2151  # Extract the first word of "gcc", so it can be a program name with args.
2152set dummy gcc; ac_word=$2
2153echo "$as_me:$LINENO: checking for $ac_word" >&5
2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2156  echo $ECHO_N "(cached) $ECHO_C" >&6
2157else
2158  if test -n "$ac_ct_CC"; then
2159  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160else
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164  IFS=$as_save_IFS
2165  test -z "$as_dir" && as_dir=.
2166  for ac_exec_ext in '' $ac_executable_extensions; do
2167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168    ac_cv_prog_ac_ct_CC="gcc"
2169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170    break 2
2171  fi
2172done
2173done
2174
2175fi
2176fi
2177ac_ct_CC=$ac_cv_prog_ac_ct_CC
2178if test -n "$ac_ct_CC"; then
2179  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2180echo "${ECHO_T}$ac_ct_CC" >&6
2181else
2182  echo "$as_me:$LINENO: result: no" >&5
2183echo "${ECHO_T}no" >&6
2184fi
2185
2186  CC=$ac_ct_CC
2187else
2188  CC="$ac_cv_prog_CC"
2189fi
2190
2191if test -z "$CC"; then
2192  if test -n "$ac_tool_prefix"; then
2193  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2194set dummy ${ac_tool_prefix}cc; ac_word=$2
2195echo "$as_me:$LINENO: checking for $ac_word" >&5
2196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197if test "${ac_cv_prog_CC+set}" = set; then
2198  echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200  if test -n "$CC"; then
2201  ac_cv_prog_CC="$CC" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206  IFS=$as_save_IFS
2207  test -z "$as_dir" && as_dir=.
2208  for ac_exec_ext in '' $ac_executable_extensions; do
2209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210    ac_cv_prog_CC="${ac_tool_prefix}cc"
2211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212    break 2
2213  fi
2214done
2215done
2216
2217fi
2218fi
2219CC=$ac_cv_prog_CC
2220if test -n "$CC"; then
2221  echo "$as_me:$LINENO: result: $CC" >&5
2222echo "${ECHO_T}$CC" >&6
2223else
2224  echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6
2226fi
2227
2228fi
2229if test -z "$ac_cv_prog_CC"; then
2230  ac_ct_CC=$CC
2231  # Extract the first word of "cc", so it can be a program name with args.
2232set dummy cc; ac_word=$2
2233echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2236  echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238  if test -n "$ac_ct_CC"; then
2239  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240else
2241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244  IFS=$as_save_IFS
2245  test -z "$as_dir" && as_dir=.
2246  for ac_exec_ext in '' $ac_executable_extensions; do
2247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248    ac_cv_prog_ac_ct_CC="cc"
2249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250    break 2
2251  fi
2252done
2253done
2254
2255fi
2256fi
2257ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258if test -n "$ac_ct_CC"; then
2259  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260echo "${ECHO_T}$ac_ct_CC" >&6
2261else
2262  echo "$as_me:$LINENO: result: no" >&5
2263echo "${ECHO_T}no" >&6
2264fi
2265
2266  CC=$ac_ct_CC
2267else
2268  CC="$ac_cv_prog_CC"
2269fi
2270
2271fi
2272if test -z "$CC"; then
2273  # Extract the first word of "cc", so it can be a program name with args.
2274set dummy cc; ac_word=$2
2275echo "$as_me:$LINENO: checking for $ac_word" >&5
2276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277if test "${ac_cv_prog_CC+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  if test -n "$CC"; then
2281  ac_cv_prog_CC="$CC" # Let the user override the test.
2282else
2283  ac_prog_rejected=no
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287  IFS=$as_save_IFS
2288  test -z "$as_dir" && as_dir=.
2289  for ac_exec_ext in '' $ac_executable_extensions; do
2290  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2292       ac_prog_rejected=yes
2293       continue
2294     fi
2295    ac_cv_prog_CC="cc"
2296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297    break 2
2298  fi
2299done
2300done
2301
2302if test $ac_prog_rejected = yes; then
2303  # We found a bogon in the path, so make sure we never use it.
2304  set dummy $ac_cv_prog_CC
2305  shift
2306  if test $# != 0; then
2307    # We chose a different compiler from the bogus one.
2308    # However, it has the same basename, so the bogon will be chosen
2309    # first if we set CC to just the basename; use the full file name.
2310    shift
2311    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2312  fi
2313fi
2314fi
2315fi
2316CC=$ac_cv_prog_CC
2317if test -n "$CC"; then
2318  echo "$as_me:$LINENO: result: $CC" >&5
2319echo "${ECHO_T}$CC" >&6
2320else
2321  echo "$as_me:$LINENO: result: no" >&5
2322echo "${ECHO_T}no" >&6
2323fi
2324
2325fi
2326if test -z "$CC"; then
2327  if test -n "$ac_tool_prefix"; then
2328  for ac_prog in cl
2329  do
2330    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2332echo "$as_me:$LINENO: checking for $ac_word" >&5
2333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334if test "${ac_cv_prog_CC+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  if test -n "$CC"; then
2338  ac_cv_prog_CC="$CC" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343  IFS=$as_save_IFS
2344  test -z "$as_dir" && as_dir=.
2345  for ac_exec_ext in '' $ac_executable_extensions; do
2346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349    break 2
2350  fi
2351done
2352done
2353
2354fi
2355fi
2356CC=$ac_cv_prog_CC
2357if test -n "$CC"; then
2358  echo "$as_me:$LINENO: result: $CC" >&5
2359echo "${ECHO_T}$CC" >&6
2360else
2361  echo "$as_me:$LINENO: result: no" >&5
2362echo "${ECHO_T}no" >&6
2363fi
2364
2365    test -n "$CC" && break
2366  done
2367fi
2368if test -z "$CC"; then
2369  ac_ct_CC=$CC
2370  for ac_prog in cl
2371do
2372  # Extract the first word of "$ac_prog", so it can be a program name with args.
2373set dummy $ac_prog; ac_word=$2
2374echo "$as_me:$LINENO: checking for $ac_word" >&5
2375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  if test -n "$ac_ct_CC"; then
2380  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387  for ac_exec_ext in '' $ac_executable_extensions; do
2388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389    ac_cv_prog_ac_ct_CC="$ac_prog"
2390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394done
2395
2396fi
2397fi
2398ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399if test -n "$ac_ct_CC"; then
2400  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401echo "${ECHO_T}$ac_ct_CC" >&6
2402else
2403  echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6
2405fi
2406
2407  test -n "$ac_ct_CC" && break
2408done
2409
2410  CC=$ac_ct_CC
2411fi
2412
2413fi
2414
2415
2416test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2417See \`config.log' for more details." >&5
2418echo "$as_me: error: no acceptable C compiler found in \$PATH
2419See \`config.log' for more details." >&2;}
2420   { (exit 1); exit 1; }; }
2421
2422# Provide some information about the compiler.
2423echo "$as_me:$LINENO:" \
2424     "checking for C compiler version" >&5
2425ac_compiler=`set X $ac_compile; echo $2`
2426{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2427  (eval $ac_compiler --version </dev/null >&5) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }
2431{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2432  (eval $ac_compiler -v </dev/null >&5) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }
2436{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2437  (eval $ac_compiler -V </dev/null >&5) 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }
2441
2442cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448
2449int
2450main ()
2451{
2452
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457ac_clean_files_save=$ac_clean_files
2458ac_clean_files="$ac_clean_files a.out a.exe b.out"
2459# Try to create an executable without -o first, disregard a.out.
2460# It will help us diagnose broken compilers, and finding out an intuition
2461# of exeext.
2462echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2463echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2464ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2465if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2466  (eval $ac_link_default) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; then
2470  # Find the output, starting from the most likely.  This scheme is
2471# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2472# resort.
2473
2474# Be careful to initialize this variable, since it used to be cached.
2475# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2476ac_cv_exeext=
2477# b.out is created by i960 compilers.
2478for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2479do
2480  test -f "$ac_file" || continue
2481  case $ac_file in
2482    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2483	;;
2484    conftest.$ac_ext )
2485	# This is the source file.
2486	;;
2487    [ab].out )
2488	# We found the default executable, but exeext='' is most
2489	# certainly right.
2490	break;;
2491    *.* )
2492	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2493	# FIXME: I believe we export ac_cv_exeext for Libtool,
2494	# but it would be cool to find out if it's true.  Does anybody
2495	# maintain Libtool? --akim.
2496	export ac_cv_exeext
2497	break;;
2498    * )
2499	break;;
2500  esac
2501done
2502else
2503  echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2507See \`config.log' for more details." >&5
2508echo "$as_me: error: C compiler cannot create executables
2509See \`config.log' for more details." >&2;}
2510   { (exit 77); exit 77; }; }
2511fi
2512
2513ac_exeext=$ac_cv_exeext
2514echo "$as_me:$LINENO: result: $ac_file" >&5
2515echo "${ECHO_T}$ac_file" >&6
2516
2517# Check the compiler produces executables we can run.  If not, either
2518# the compiler is broken, or we cross compile.
2519echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2520echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2521# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2522# If not cross compiling, check that we can run a simple program.
2523if test "$cross_compiling" != yes; then
2524  if { ac_try='./$ac_file'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; }; then
2530    cross_compiling=no
2531  else
2532    if test "$cross_compiling" = maybe; then
2533	cross_compiling=yes
2534    else
2535	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2536If you meant to cross compile, use \`--host'.
2537See \`config.log' for more details." >&5
2538echo "$as_me: error: cannot run C compiled programs.
2539If you meant to cross compile, use \`--host'.
2540See \`config.log' for more details." >&2;}
2541   { (exit 1); exit 1; }; }
2542    fi
2543  fi
2544fi
2545echo "$as_me:$LINENO: result: yes" >&5
2546echo "${ECHO_T}yes" >&6
2547
2548rm -f a.out a.exe conftest$ac_cv_exeext b.out
2549ac_clean_files=$ac_clean_files_save
2550# Check the compiler produces executables we can run.  If not, either
2551# the compiler is broken, or we cross compile.
2552echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2553echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2554echo "$as_me:$LINENO: result: $cross_compiling" >&5
2555echo "${ECHO_T}$cross_compiling" >&6
2556
2557echo "$as_me:$LINENO: checking for suffix of executables" >&5
2558echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2560  (eval $ac_link) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; then
2564  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2565# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2566# work properly (i.e., refer to `conftest.exe'), while it won't with
2567# `rm'.
2568for ac_file in conftest.exe conftest conftest.*; do
2569  test -f "$ac_file" || continue
2570  case $ac_file in
2571    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2572    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2573	  export ac_cv_exeext
2574	  break;;
2575    * ) break;;
2576  esac
2577done
2578else
2579  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2580See \`config.log' for more details." >&5
2581echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2582See \`config.log' for more details." >&2;}
2583   { (exit 1); exit 1; }; }
2584fi
2585
2586rm -f conftest$ac_cv_exeext
2587echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2588echo "${ECHO_T}$ac_cv_exeext" >&6
2589
2590rm -f conftest.$ac_ext
2591EXEEXT=$ac_cv_exeext
2592ac_exeext=$EXEEXT
2593echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2595if test "${ac_cv_objext+set}" = set; then
2596  echo $ECHO_N "(cached) $ECHO_C" >&6
2597else
2598  cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h.  */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h.  */
2604
2605int
2606main ()
2607{
2608
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613rm -f conftest.o conftest.obj
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615  (eval $ac_compile) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; then
2619  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2620  case $ac_file in
2621    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2622    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2623       break;;
2624  esac
2625done
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2631See \`config.log' for more details." >&5
2632echo "$as_me: error: cannot compute suffix of object files: cannot compile
2633See \`config.log' for more details." >&2;}
2634   { (exit 1); exit 1; }; }
2635fi
2636
2637rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638fi
2639echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2640echo "${ECHO_T}$ac_cv_objext" >&6
2641OBJEXT=$ac_cv_objext
2642ac_objext=$OBJEXT
2643echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2644echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2645if test "${ac_cv_c_compiler_gnu+set}" = set; then
2646  echo $ECHO_N "(cached) $ECHO_C" >&6
2647else
2648  cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h.  */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h.  */
2654
2655int
2656main ()
2657{
2658#ifndef __GNUC__
2659       choke me
2660#endif
2661
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } &&
2675	 { ac_try='test -z "$ac_c_werror_flag"
2676			 || test ! -s conftest.err'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; } &&
2682	 { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  ac_compiler_gnu=yes
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693ac_compiler_gnu=no
2694fi
2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696ac_cv_c_compiler_gnu=$ac_compiler_gnu
2697
2698fi
2699echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2701GCC=`test $ac_compiler_gnu = yes && echo yes`
2702ac_test_CFLAGS=${CFLAGS+set}
2703ac_save_CFLAGS=$CFLAGS
2704CFLAGS="-g"
2705echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2706echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2707if test "${ac_cv_prog_cc_g+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725rm -f conftest.$ac_objext
2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727  (eval $ac_compile) 2>conftest.er1
2728  ac_status=$?
2729  grep -v '^ *+' conftest.er1 >conftest.err
2730  rm -f conftest.er1
2731  cat conftest.err >&5
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); } &&
2734	 { ac_try='test -z "$ac_c_werror_flag"
2735			 || test ! -s conftest.err'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; } &&
2741	 { ac_try='test -s conftest.$ac_objext'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747  ac_cv_prog_cc_g=yes
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752ac_cv_prog_cc_g=no
2753fi
2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755fi
2756echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2757echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2758if test "$ac_test_CFLAGS" = set; then
2759  CFLAGS=$ac_save_CFLAGS
2760elif test $ac_cv_prog_cc_g = yes; then
2761  if test "$GCC" = yes; then
2762    CFLAGS="-g -O2"
2763  else
2764    CFLAGS="-g"
2765  fi
2766else
2767  if test "$GCC" = yes; then
2768    CFLAGS="-O2"
2769  else
2770    CFLAGS=
2771  fi
2772fi
2773echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2774echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2775if test "${ac_cv_prog_cc_stdc+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  ac_cv_prog_cc_stdc=no
2779ac_save_CC=$CC
2780cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h.  */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h.  */
2786#include <stdarg.h>
2787#include <stdio.h>
2788#include <sys/types.h>
2789#include <sys/stat.h>
2790/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2791struct buf { int x; };
2792FILE * (*rcsopen) (struct buf *, struct stat *, int);
2793static char *e (p, i)
2794     char **p;
2795     int i;
2796{
2797  return p[i];
2798}
2799static char *f (char * (*g) (char **, int), char **p, ...)
2800{
2801  char *s;
2802  va_list v;
2803  va_start (v,p);
2804  s = g (p, va_arg (v,int));
2805  va_end (v);
2806  return s;
2807}
2808
2809/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2810   function prototypes and stuff, but not '\xHH' hex character constants.
2811   These don't provoke an error unfortunately, instead are silently treated
2812   as 'x'.  The following induces an error, until -std1 is added to get
2813   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2814   array size at least.  It's necessary to write '\x00'==0 to get something
2815   that's true only with -std1.  */
2816int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2817
2818int test (int i, double x);
2819struct s1 {int (*f) (int a);};
2820struct s2 {int (*f) (double a);};
2821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2822int argc;
2823char **argv;
2824int
2825main ()
2826{
2827return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832# Don't try gcc -ansi; that turns off useful extensions and
2833# breaks some systems' header files.
2834# AIX			-qlanglvl=ansi
2835# Ultrix and OSF/1	-std1
2836# HP-UX 10.20 and later	-Ae
2837# HP-UX older versions	-Aa -D_HPUX_SOURCE
2838# SVR4			-Xc -D__EXTENSIONS__
2839for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2840do
2841  CC="$ac_save_CC $ac_arg"
2842  rm -f conftest.$ac_objext
2843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844  (eval $ac_compile) 2>conftest.er1
2845  ac_status=$?
2846  grep -v '^ *+' conftest.er1 >conftest.err
2847  rm -f conftest.er1
2848  cat conftest.err >&5
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); } &&
2851	 { ac_try='test -z "$ac_c_werror_flag"
2852			 || test ! -s conftest.err'
2853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854  (eval $ac_try) 2>&5
2855  ac_status=$?
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); }; } &&
2858	 { ac_try='test -s conftest.$ac_objext'
2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860  (eval $ac_try) 2>&5
2861  ac_status=$?
2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863  (exit $ac_status); }; }; then
2864  ac_cv_prog_cc_stdc=$ac_arg
2865break
2866else
2867  echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870fi
2871rm -f conftest.err conftest.$ac_objext
2872done
2873rm -f conftest.$ac_ext conftest.$ac_objext
2874CC=$ac_save_CC
2875
2876fi
2877
2878case "x$ac_cv_prog_cc_stdc" in
2879  x|xno)
2880    echo "$as_me:$LINENO: result: none needed" >&5
2881echo "${ECHO_T}none needed" >&6 ;;
2882  *)
2883    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885    CC="$CC $ac_cv_prog_cc_stdc" ;;
2886esac
2887
2888ac_ext=c
2889ac_cpp='$CPP $CPPFLAGS'
2890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893DEPDIR="${am__leading_dot}deps"
2894
2895          ac_config_commands="$ac_config_commands depfiles"
2896
2897
2898am_make=${MAKE-make}
2899cat > confinc << 'END'
2900am__doit:
2901	@echo done
2902.PHONY: am__doit
2903END
2904# If we don't find an include directive, just comment out the code.
2905echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2906echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2907am__include="#"
2908am__quote=
2909_am_result=none
2910# First try GNU make style include.
2911echo "include confinc" > confmf
2912# We grep out `Entering directory' and `Leaving directory'
2913# messages which can occur if `w' ends up in MAKEFLAGS.
2914# In particular we don't look at `^make:' because GNU make might
2915# be invoked under some other name (usually "gmake"), in which
2916# case it prints its new name instead of `make'.
2917if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2918   am__include=include
2919   am__quote=
2920   _am_result=GNU
2921fi
2922# Now try BSD make style include.
2923if test "$am__include" = "#"; then
2924   echo '.include "confinc"' > confmf
2925   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2926      am__include=.include
2927      am__quote="\""
2928      _am_result=BSD
2929   fi
2930fi
2931
2932
2933echo "$as_me:$LINENO: result: $_am_result" >&5
2934echo "${ECHO_T}$_am_result" >&6
2935rm -f confinc confmf
2936
2937# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2938if test "${enable_dependency_tracking+set}" = set; then
2939  enableval="$enable_dependency_tracking"
2940
2941fi;
2942if test "x$enable_dependency_tracking" != xno; then
2943  am_depcomp="$ac_aux_dir/depcomp"
2944  AMDEPBACKSLASH='\'
2945fi
2946
2947
2948if test "x$enable_dependency_tracking" != xno; then
2949  AMDEP_TRUE=
2950  AMDEP_FALSE='#'
2951else
2952  AMDEP_TRUE='#'
2953  AMDEP_FALSE=
2954fi
2955
2956
2957
2958
2959depcc="$CC"   am_compiler_list=
2960
2961echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2962echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2963if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2964  echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2967  # We make a subdir and do the tests there.  Otherwise we can end up
2968  # making bogus files that we don't know about and never remove.  For
2969  # instance it was reported that on HP-UX the gcc test will end up
2970  # making a dummy file named `D' -- because `-MD' means `put the output
2971  # in D'.
2972  mkdir conftest.dir
2973  # Copy depcomp to subdir because otherwise we won't find it if we're
2974  # using a relative directory.
2975  cp "$am_depcomp" conftest.dir
2976  cd conftest.dir
2977  # We will build objects and dependencies in a subdirectory because
2978  # it helps to detect inapplicable dependency modes.  For instance
2979  # both Tru64's cc and ICC support -MD to output dependencies as a
2980  # side effect of compilation, but ICC will put the dependencies in
2981  # the current directory while Tru64 will put them in the object
2982  # directory.
2983  mkdir sub
2984
2985  am_cv_CC_dependencies_compiler_type=none
2986  if test "$am_compiler_list" = ""; then
2987     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2988  fi
2989  for depmode in $am_compiler_list; do
2990    # Setup a source with many dependencies, because some compilers
2991    # like to wrap large dependency lists on column 80 (with \), and
2992    # we should not choose a depcomp mode which is confused by this.
2993    #
2994    # We need to recreate these files for each test, as the compiler may
2995    # overwrite some of them when testing with obscure command lines.
2996    # This happens at least with the AIX C compiler.
2997    : > sub/conftest.c
2998    for i in 1 2 3 4 5 6; do
2999      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3000      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3001      # Solaris 8's {/usr,}/bin/sh.
3002      touch sub/conftst$i.h
3003    done
3004    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3005
3006    case $depmode in
3007    nosideeffect)
3008      # after this tag, mechanisms are not by side-effect, so they'll
3009      # only be used when explicitly requested
3010      if test "x$enable_dependency_tracking" = xyes; then
3011	continue
3012      else
3013	break
3014      fi
3015      ;;
3016    none) break ;;
3017    esac
3018    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3019    # mode.  It turns out that the SunPro C++ compiler does not properly
3020    # handle `-M -o', and we need to detect this.
3021    if depmode=$depmode \
3022       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3023       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3024       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3025         >/dev/null 2>conftest.err &&
3026       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3027       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3028       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3029      # icc doesn't choke on unknown options, it will just issue warnings
3030      # or remarks (even with -Werror).  So we grep stderr for any message
3031      # that says an option was ignored or not supported.
3032      # When given -MP, icc 7.0 and 7.1 complain thusly:
3033      #   icc: Command line warning: ignoring option '-M'; no argument required
3034      # The diagnosis changed in icc 8.0:
3035      #   icc: Command line remark: option '-MP' not supported
3036      if (grep 'ignoring option' conftest.err ||
3037          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3038        am_cv_CC_dependencies_compiler_type=$depmode
3039        break
3040      fi
3041    fi
3042  done
3043
3044  cd ..
3045  rm -rf conftest.dir
3046else
3047  am_cv_CC_dependencies_compiler_type=none
3048fi
3049
3050fi
3051echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3052echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3054
3055
3056
3057if
3058  test "x$enable_dependency_tracking" != xno \
3059  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3060  am__fastdepCC_TRUE=
3061  am__fastdepCC_FALSE='#'
3062else
3063  am__fastdepCC_TRUE='#'
3064  am__fastdepCC_FALSE=
3065fi
3066
3067
3068ac_ext=c
3069ac_cpp='$CPP $CPPFLAGS'
3070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3074echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3075# On Suns, sometimes $CPP names a directory.
3076if test -n "$CPP" && test -d "$CPP"; then
3077  CPP=
3078fi
3079if test -z "$CPP"; then
3080  if test "${ac_cv_prog_CPP+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083      # Double quotes because CPP needs to be expanded
3084    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3085    do
3086      ac_preproc_ok=false
3087for ac_c_preproc_warn_flag in '' yes
3088do
3089  # Use a header file that comes with gcc, so configuring glibc
3090  # with a fresh cross-compiler works.
3091  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3092  # <limits.h> exists even on freestanding compilers.
3093  # On the NeXT, cc -E runs the code through the compiler's parser,
3094  # not just through cpp. "Syntax error" is here to catch this case.
3095  cat >conftest.$ac_ext <<_ACEOF
3096/* confdefs.h.  */
3097_ACEOF
3098cat confdefs.h >>conftest.$ac_ext
3099cat >>conftest.$ac_ext <<_ACEOF
3100/* end confdefs.h.  */
3101#ifdef __STDC__
3102# include <limits.h>
3103#else
3104# include <assert.h>
3105#endif
3106		     Syntax error
3107_ACEOF
3108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110  ac_status=$?
3111  grep -v '^ *+' conftest.er1 >conftest.err
3112  rm -f conftest.er1
3113  cat conftest.err >&5
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); } >/dev/null; then
3116  if test -s conftest.err; then
3117    ac_cpp_err=$ac_c_preproc_warn_flag
3118    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119  else
3120    ac_cpp_err=
3121  fi
3122else
3123  ac_cpp_err=yes
3124fi
3125if test -z "$ac_cpp_err"; then
3126  :
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131  # Broken: fails on valid input.
3132continue
3133fi
3134rm -f conftest.err conftest.$ac_ext
3135
3136  # OK, works on sane cases.  Now check whether non-existent headers
3137  # can be detected and how.
3138  cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144#include <ac_nonexistent.h>
3145_ACEOF
3146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3147  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148  ac_status=$?
3149  grep -v '^ *+' conftest.er1 >conftest.err
3150  rm -f conftest.er1
3151  cat conftest.err >&5
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); } >/dev/null; then
3154  if test -s conftest.err; then
3155    ac_cpp_err=$ac_c_preproc_warn_flag
3156    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3157  else
3158    ac_cpp_err=
3159  fi
3160else
3161  ac_cpp_err=yes
3162fi
3163if test -z "$ac_cpp_err"; then
3164  # Broken: success on invalid input.
3165continue
3166else
3167  echo "$as_me: failed program was:" >&5
3168sed 's/^/| /' conftest.$ac_ext >&5
3169
3170  # Passes both tests.
3171ac_preproc_ok=:
3172break
3173fi
3174rm -f conftest.err conftest.$ac_ext
3175
3176done
3177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178rm -f conftest.err conftest.$ac_ext
3179if $ac_preproc_ok; then
3180  break
3181fi
3182
3183    done
3184    ac_cv_prog_CPP=$CPP
3185
3186fi
3187  CPP=$ac_cv_prog_CPP
3188else
3189  ac_cv_prog_CPP=$CPP
3190fi
3191echo "$as_me:$LINENO: result: $CPP" >&5
3192echo "${ECHO_T}$CPP" >&6
3193ac_preproc_ok=false
3194for ac_c_preproc_warn_flag in '' yes
3195do
3196  # Use a header file that comes with gcc, so configuring glibc
3197  # with a fresh cross-compiler works.
3198  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3199  # <limits.h> exists even on freestanding compilers.
3200  # On the NeXT, cc -E runs the code through the compiler's parser,
3201  # not just through cpp. "Syntax error" is here to catch this case.
3202  cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208#ifdef __STDC__
3209# include <limits.h>
3210#else
3211# include <assert.h>
3212#endif
3213		     Syntax error
3214_ACEOF
3215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3216  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3217  ac_status=$?
3218  grep -v '^ *+' conftest.er1 >conftest.err
3219  rm -f conftest.er1
3220  cat conftest.err >&5
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); } >/dev/null; then
3223  if test -s conftest.err; then
3224    ac_cpp_err=$ac_c_preproc_warn_flag
3225    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3226  else
3227    ac_cpp_err=
3228  fi
3229else
3230  ac_cpp_err=yes
3231fi
3232if test -z "$ac_cpp_err"; then
3233  :
3234else
3235  echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238  # Broken: fails on valid input.
3239continue
3240fi
3241rm -f conftest.err conftest.$ac_ext
3242
3243  # OK, works on sane cases.  Now check whether non-existent headers
3244  # can be detected and how.
3245  cat >conftest.$ac_ext <<_ACEOF
3246/* confdefs.h.  */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h.  */
3251#include <ac_nonexistent.h>
3252_ACEOF
3253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255  ac_status=$?
3256  grep -v '^ *+' conftest.er1 >conftest.err
3257  rm -f conftest.er1
3258  cat conftest.err >&5
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); } >/dev/null; then
3261  if test -s conftest.err; then
3262    ac_cpp_err=$ac_c_preproc_warn_flag
3263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264  else
3265    ac_cpp_err=
3266  fi
3267else
3268  ac_cpp_err=yes
3269fi
3270if test -z "$ac_cpp_err"; then
3271  # Broken: success on invalid input.
3272continue
3273else
3274  echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277  # Passes both tests.
3278ac_preproc_ok=:
3279break
3280fi
3281rm -f conftest.err conftest.$ac_ext
3282
3283done
3284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3285rm -f conftest.err conftest.$ac_ext
3286if $ac_preproc_ok; then
3287  :
3288else
3289  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3290See \`config.log' for more details." >&5
3291echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3292See \`config.log' for more details." >&2;}
3293   { (exit 1); exit 1; }; }
3294fi
3295
3296ac_ext=c
3297ac_cpp='$CPP $CPPFLAGS'
3298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301
3302ac_ext=cc
3303ac_cpp='$CXXCPP $CPPFLAGS'
3304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3307if test -n "$ac_tool_prefix"; then
3308  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3309  do
3310    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312echo "$as_me:$LINENO: checking for $ac_word" >&5
3313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314if test "${ac_cv_prog_CXX+set}" = set; then
3315  echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317  if test -n "$CXX"; then
3318  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3319else
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
3322do
3323  IFS=$as_save_IFS
3324  test -z "$as_dir" && as_dir=.
3325  for ac_exec_ext in '' $ac_executable_extensions; do
3326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329    break 2
3330  fi
3331done
3332done
3333
3334fi
3335fi
3336CXX=$ac_cv_prog_CXX
3337if test -n "$CXX"; then
3338  echo "$as_me:$LINENO: result: $CXX" >&5
3339echo "${ECHO_T}$CXX" >&6
3340else
3341  echo "$as_me:$LINENO: result: no" >&5
3342echo "${ECHO_T}no" >&6
3343fi
3344
3345    test -n "$CXX" && break
3346  done
3347fi
3348if test -z "$CXX"; then
3349  ac_ct_CXX=$CXX
3350  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3351do
3352  # Extract the first word of "$ac_prog", so it can be a program name with args.
3353set dummy $ac_prog; ac_word=$2
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  if test -n "$ac_ct_CXX"; then
3360  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367  for ac_exec_ext in '' $ac_executable_extensions; do
3368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_prog_ac_ct_CXX="$ac_prog"
3370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374done
3375
3376fi
3377fi
3378ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3379if test -n "$ac_ct_CXX"; then
3380  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3381echo "${ECHO_T}$ac_ct_CXX" >&6
3382else
3383  echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385fi
3386
3387  test -n "$ac_ct_CXX" && break
3388done
3389test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3390
3391  CXX=$ac_ct_CXX
3392fi
3393
3394
3395# Provide some information about the compiler.
3396echo "$as_me:$LINENO:" \
3397     "checking for C++ compiler version" >&5
3398ac_compiler=`set X $ac_compile; echo $2`
3399{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3400  (eval $ac_compiler --version </dev/null >&5) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); }
3404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3405  (eval $ac_compiler -v </dev/null >&5) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }
3409{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3410  (eval $ac_compiler -V </dev/null >&5) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }
3414
3415echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3416echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3417if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h.  */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h.  */
3426
3427int
3428main ()
3429{
3430#ifndef __GNUC__
3431       choke me
3432#endif
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext
3439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440  (eval $ac_compile) 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } &&
3447	 { ac_try='test -z "$ac_cxx_werror_flag"
3448			 || test ! -s conftest.err'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; } &&
3454	 { ac_try='test -s conftest.$ac_objext'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; }; then
3460  ac_compiler_gnu=yes
3461else
3462  echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465ac_compiler_gnu=no
3466fi
3467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3469
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3472echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3473GXX=`test $ac_compiler_gnu = yes && echo yes`
3474ac_test_CXXFLAGS=${CXXFLAGS+set}
3475ac_save_CXXFLAGS=$CXXFLAGS
3476CXXFLAGS="-g"
3477echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3478echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3479if test "${ac_cv_prog_cxx_g+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488
3489int
3490main ()
3491{
3492
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497rm -f conftest.$ac_objext
3498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499  (eval $ac_compile) 2>conftest.er1
3500  ac_status=$?
3501  grep -v '^ *+' conftest.er1 >conftest.err
3502  rm -f conftest.er1
3503  cat conftest.err >&5
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); } &&
3506	 { ac_try='test -z "$ac_cxx_werror_flag"
3507			 || test ! -s conftest.err'
3508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509  (eval $ac_try) 2>&5
3510  ac_status=$?
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); }; } &&
3513	 { ac_try='test -s conftest.$ac_objext'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; }; then
3519  ac_cv_prog_cxx_g=yes
3520else
3521  echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524ac_cv_prog_cxx_g=no
3525fi
3526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527fi
3528echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3529echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3530if test "$ac_test_CXXFLAGS" = set; then
3531  CXXFLAGS=$ac_save_CXXFLAGS
3532elif test $ac_cv_prog_cxx_g = yes; then
3533  if test "$GXX" = yes; then
3534    CXXFLAGS="-g -O2"
3535  else
3536    CXXFLAGS="-g"
3537  fi
3538else
3539  if test "$GXX" = yes; then
3540    CXXFLAGS="-O2"
3541  else
3542    CXXFLAGS=
3543  fi
3544fi
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552depcc="$CXX"  am_compiler_list=
3553
3554echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3555echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3556if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3557  echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3560  # We make a subdir and do the tests there.  Otherwise we can end up
3561  # making bogus files that we don't know about and never remove.  For
3562  # instance it was reported that on HP-UX the gcc test will end up
3563  # making a dummy file named `D' -- because `-MD' means `put the output
3564  # in D'.
3565  mkdir conftest.dir
3566  # Copy depcomp to subdir because otherwise we won't find it if we're
3567  # using a relative directory.
3568  cp "$am_depcomp" conftest.dir
3569  cd conftest.dir
3570  # We will build objects and dependencies in a subdirectory because
3571  # it helps to detect inapplicable dependency modes.  For instance
3572  # both Tru64's cc and ICC support -MD to output dependencies as a
3573  # side effect of compilation, but ICC will put the dependencies in
3574  # the current directory while Tru64 will put them in the object
3575  # directory.
3576  mkdir sub
3577
3578  am_cv_CXX_dependencies_compiler_type=none
3579  if test "$am_compiler_list" = ""; then
3580     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3581  fi
3582  for depmode in $am_compiler_list; do
3583    # Setup a source with many dependencies, because some compilers
3584    # like to wrap large dependency lists on column 80 (with \), and
3585    # we should not choose a depcomp mode which is confused by this.
3586    #
3587    # We need to recreate these files for each test, as the compiler may
3588    # overwrite some of them when testing with obscure command lines.
3589    # This happens at least with the AIX C compiler.
3590    : > sub/conftest.c
3591    for i in 1 2 3 4 5 6; do
3592      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594      # Solaris 8's {/usr,}/bin/sh.
3595      touch sub/conftst$i.h
3596    done
3597    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3598
3599    case $depmode in
3600    nosideeffect)
3601      # after this tag, mechanisms are not by side-effect, so they'll
3602      # only be used when explicitly requested
3603      if test "x$enable_dependency_tracking" = xyes; then
3604	continue
3605      else
3606	break
3607      fi
3608      ;;
3609    none) break ;;
3610    esac
3611    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3612    # mode.  It turns out that the SunPro C++ compiler does not properly
3613    # handle `-M -o', and we need to detect this.
3614    if depmode=$depmode \
3615       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3616       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3617       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3618         >/dev/null 2>conftest.err &&
3619       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3620       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3621       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3622      # icc doesn't choke on unknown options, it will just issue warnings
3623      # or remarks (even with -Werror).  So we grep stderr for any message
3624      # that says an option was ignored or not supported.
3625      # When given -MP, icc 7.0 and 7.1 complain thusly:
3626      #   icc: Command line warning: ignoring option '-M'; no argument required
3627      # The diagnosis changed in icc 8.0:
3628      #   icc: Command line remark: option '-MP' not supported
3629      if (grep 'ignoring option' conftest.err ||
3630          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3631        am_cv_CXX_dependencies_compiler_type=$depmode
3632        break
3633      fi
3634    fi
3635  done
3636
3637  cd ..
3638  rm -rf conftest.dir
3639else
3640  am_cv_CXX_dependencies_compiler_type=none
3641fi
3642
3643fi
3644echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3645echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3646CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3647
3648
3649
3650if
3651  test "x$enable_dependency_tracking" != xno \
3652  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3653  am__fastdepCXX_TRUE=
3654  am__fastdepCXX_FALSE='#'
3655else
3656  am__fastdepCXX_TRUE='#'
3657  am__fastdepCXX_FALSE=
3658fi
3659
3660
3661ac_ext=cc
3662ac_cpp='$CXXCPP $CPPFLAGS'
3663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3666echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3667echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3668if test -z "$CXXCPP"; then
3669  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3670  echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672      # Double quotes because CXXCPP needs to be expanded
3673    for CXXCPP in "$CXX -E" "/lib/cpp"
3674    do
3675      ac_preproc_ok=false
3676for ac_cxx_preproc_warn_flag in '' yes
3677do
3678  # Use a header file that comes with gcc, so configuring glibc
3679  # with a fresh cross-compiler works.
3680  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681  # <limits.h> exists even on freestanding compilers.
3682  # On the NeXT, cc -E runs the code through the compiler's parser,
3683  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
3691# include <limits.h>
3692#else
3693# include <assert.h>
3694#endif
3695		     Syntax error
3696_ACEOF
3697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } >/dev/null; then
3705  if test -s conftest.err; then
3706    ac_cpp_err=$ac_cxx_preproc_warn_flag
3707    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3708  else
3709    ac_cpp_err=
3710  fi
3711else
3712  ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
3715  :
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720  # Broken: fails on valid input.
3721continue
3722fi
3723rm -f conftest.err conftest.$ac_ext
3724
3725  # OK, works on sane cases.  Now check whether non-existent headers
3726  # can be detected and how.
3727  cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733#include <ac_nonexistent.h>
3734_ACEOF
3735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3737  ac_status=$?
3738  grep -v '^ *+' conftest.er1 >conftest.err
3739  rm -f conftest.er1
3740  cat conftest.err >&5
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); } >/dev/null; then
3743  if test -s conftest.err; then
3744    ac_cpp_err=$ac_cxx_preproc_warn_flag
3745    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3746  else
3747    ac_cpp_err=
3748  fi
3749else
3750  ac_cpp_err=yes
3751fi
3752if test -z "$ac_cpp_err"; then
3753  # Broken: success on invalid input.
3754continue
3755else
3756  echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759  # Passes both tests.
3760ac_preproc_ok=:
3761break
3762fi
3763rm -f conftest.err conftest.$ac_ext
3764
3765done
3766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3767rm -f conftest.err conftest.$ac_ext
3768if $ac_preproc_ok; then
3769  break
3770fi
3771
3772    done
3773    ac_cv_prog_CXXCPP=$CXXCPP
3774
3775fi
3776  CXXCPP=$ac_cv_prog_CXXCPP
3777else
3778  ac_cv_prog_CXXCPP=$CXXCPP
3779fi
3780echo "$as_me:$LINENO: result: $CXXCPP" >&5
3781echo "${ECHO_T}$CXXCPP" >&6
3782ac_preproc_ok=false
3783for ac_cxx_preproc_warn_flag in '' yes
3784do
3785  # Use a header file that comes with gcc, so configuring glibc
3786  # with a fresh cross-compiler works.
3787  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3788  # <limits.h> exists even on freestanding compilers.
3789  # On the NeXT, cc -E runs the code through the compiler's parser,
3790  # not just through cpp. "Syntax error" is here to catch this case.
3791  cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h.  */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h.  */
3797#ifdef __STDC__
3798# include <limits.h>
3799#else
3800# include <assert.h>
3801#endif
3802		     Syntax error
3803_ACEOF
3804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3805  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3806  ac_status=$?
3807  grep -v '^ *+' conftest.er1 >conftest.err
3808  rm -f conftest.er1
3809  cat conftest.err >&5
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); } >/dev/null; then
3812  if test -s conftest.err; then
3813    ac_cpp_err=$ac_cxx_preproc_warn_flag
3814    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3815  else
3816    ac_cpp_err=
3817  fi
3818else
3819  ac_cpp_err=yes
3820fi
3821if test -z "$ac_cpp_err"; then
3822  :
3823else
3824  echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827  # Broken: fails on valid input.
3828continue
3829fi
3830rm -f conftest.err conftest.$ac_ext
3831
3832  # OK, works on sane cases.  Now check whether non-existent headers
3833  # can be detected and how.
3834  cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h.  */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h.  */
3840#include <ac_nonexistent.h>
3841_ACEOF
3842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3844  ac_status=$?
3845  grep -v '^ *+' conftest.er1 >conftest.err
3846  rm -f conftest.er1
3847  cat conftest.err >&5
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); } >/dev/null; then
3850  if test -s conftest.err; then
3851    ac_cpp_err=$ac_cxx_preproc_warn_flag
3852    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3853  else
3854    ac_cpp_err=
3855  fi
3856else
3857  ac_cpp_err=yes
3858fi
3859if test -z "$ac_cpp_err"; then
3860  # Broken: success on invalid input.
3861continue
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866  # Passes both tests.
3867ac_preproc_ok=:
3868break
3869fi
3870rm -f conftest.err conftest.$ac_ext
3871
3872done
3873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874rm -f conftest.err conftest.$ac_ext
3875if $ac_preproc_ok; then
3876  :
3877else
3878  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3879See \`config.log' for more details." >&5
3880echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3881See \`config.log' for more details." >&2;}
3882   { (exit 1); exit 1; }; }
3883fi
3884
3885ac_ext=c
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891# Find a good install program.  We prefer a C program (faster),
3892# so one script is as good as another.  But avoid the broken or
3893# incompatible versions:
3894# SysV /etc/install, /usr/sbin/install
3895# SunOS /usr/etc/install
3896# IRIX /sbin/install
3897# AIX /bin/install
3898# AmigaOS /C/install, which installs bootblocks on floppy discs
3899# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902# OS/2's system install, which has a completely different semantic
3903# ./install, which can be erroneously created by make from ./install.sh.
3904echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3905echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3906if test -z "$INSTALL"; then
3907if test "${ac_cv_path_install+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915  # Account for people who put trailing slashes in PATH elements.
3916case $as_dir/ in
3917  ./ | .// | /cC/* | \
3918  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3919  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3920  /usr/ucb/* ) ;;
3921  *)
3922    # OSF1 and SCO ODT 3.0 have their own names for install.
3923    # Don't use installbsd from OSF since it installs stuff as root
3924    # by default.
3925    for ac_prog in ginstall scoinst install; do
3926      for ac_exec_ext in '' $ac_executable_extensions; do
3927	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3928	  if test $ac_prog = install &&
3929	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930	    # AIX install.  It has an incompatible calling convention.
3931	    :
3932	  elif test $ac_prog = install &&
3933	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934	    # program-specific install script used by HP pwplus--don't use.
3935	    :
3936	  else
3937	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3938	    break 3
3939	  fi
3940	fi
3941      done
3942    done
3943    ;;
3944esac
3945done
3946
3947
3948fi
3949  if test "${ac_cv_path_install+set}" = set; then
3950    INSTALL=$ac_cv_path_install
3951  else
3952    # As a last resort, use the slow shell script.  We don't cache a
3953    # path for INSTALL within a source directory, because that will
3954    # break other packages using the cache if that directory is
3955    # removed, or if the path is relative.
3956    INSTALL=$ac_install_sh
3957  fi
3958fi
3959echo "$as_me:$LINENO: result: $INSTALL" >&5
3960echo "${ECHO_T}$INSTALL" >&6
3961
3962# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3963# It thinks the first close brace ends the variable substitution.
3964test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3965
3966test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3967
3968test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969
3970echo "$as_me:$LINENO: checking whether ln -s works" >&5
3971echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3972LN_S=$as_ln_s
3973if test "$LN_S" = "ln -s"; then
3974  echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6
3976else
3977  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3978echo "${ECHO_T}no, using $LN_S" >&6
3979fi
3980
3981echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3982echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3983set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3984if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3985  echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987  cat >conftest.make <<\_ACEOF
3988all:
3989	@echo 'ac_maketemp="$(MAKE)"'
3990_ACEOF
3991# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3992eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3993if test -n "$ac_maketemp"; then
3994  eval ac_cv_prog_make_${ac_make}_set=yes
3995else
3996  eval ac_cv_prog_make_${ac_make}_set=no
3997fi
3998rm -f conftest.make
3999fi
4000if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4001  echo "$as_me:$LINENO: result: yes" >&5
4002echo "${ECHO_T}yes" >&6
4003  SET_MAKE=
4004else
4005  echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
4007  SET_MAKE="MAKE=${MAKE-make}"
4008fi
4009
4010for ac_prog in perl
4011do
4012  # Extract the first word of "$ac_prog", so it can be a program name with args.
4013set dummy $ac_prog; ac_word=$2
4014echo "$as_me:$LINENO: checking for $ac_word" >&5
4015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4016if test "${ac_cv_path_PERL+set}" = set; then
4017  echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019  case $PERL in
4020  [\\/]* | ?:[\\/]*)
4021  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4022  ;;
4023  *)
4024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027  IFS=$as_save_IFS
4028  test -z "$as_dir" && as_dir=.
4029  for ac_exec_ext in '' $ac_executable_extensions; do
4030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033    break 2
4034  fi
4035done
4036done
4037
4038  ;;
4039esac
4040fi
4041PERL=$ac_cv_path_PERL
4042
4043if test -n "$PERL"; then
4044  echo "$as_me:$LINENO: result: $PERL" >&5
4045echo "${ECHO_T}$PERL" >&6
4046else
4047  echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049fi
4050
4051  test -n "$PERL" && break
4052done
4053test -n "$PERL" || PERL="perl"
4054
4055# Check whether --enable-shared or --disable-shared was given.
4056if test "${enable_shared+set}" = set; then
4057  enableval="$enable_shared"
4058  p=${PACKAGE-default}
4059    case $enableval in
4060    yes) enable_shared=yes ;;
4061    no) enable_shared=no ;;
4062    *)
4063      enable_shared=no
4064      # Look at the argument we got.  We use all the common list separators.
4065      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4066      for pkg in $enableval; do
4067	IFS="$lt_save_ifs"
4068	if test "X$pkg" = "X$p"; then
4069	  enable_shared=yes
4070	fi
4071      done
4072      IFS="$lt_save_ifs"
4073      ;;
4074    esac
4075else
4076  enable_shared=yes
4077fi;
4078
4079# Check whether --enable-static or --disable-static was given.
4080if test "${enable_static+set}" = set; then
4081  enableval="$enable_static"
4082  p=${PACKAGE-default}
4083    case $enableval in
4084    yes) enable_static=yes ;;
4085    no) enable_static=no ;;
4086    *)
4087     enable_static=no
4088      # Look at the argument we got.  We use all the common list separators.
4089      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4090      for pkg in $enableval; do
4091	IFS="$lt_save_ifs"
4092	if test "X$pkg" = "X$p"; then
4093	  enable_static=yes
4094	fi
4095      done
4096      IFS="$lt_save_ifs"
4097      ;;
4098    esac
4099else
4100  enable_static=yes
4101fi;
4102
4103# Check whether --enable-fast-install or --disable-fast-install was given.
4104if test "${enable_fast_install+set}" = set; then
4105  enableval="$enable_fast_install"
4106  p=${PACKAGE-default}
4107    case $enableval in
4108    yes) enable_fast_install=yes ;;
4109    no) enable_fast_install=no ;;
4110    *)
4111      enable_fast_install=no
4112      # Look at the argument we got.  We use all the common list separators.
4113      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4114      for pkg in $enableval; do
4115	IFS="$lt_save_ifs"
4116	if test "X$pkg" = "X$p"; then
4117	  enable_fast_install=yes
4118	fi
4119      done
4120      IFS="$lt_save_ifs"
4121      ;;
4122    esac
4123else
4124  enable_fast_install=yes
4125fi;
4126
4127# Make sure we can run config.sub.
4128$ac_config_sub sun4 >/dev/null 2>&1 ||
4129  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4130echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4131   { (exit 1); exit 1; }; }
4132
4133echo "$as_me:$LINENO: checking build system type" >&5
4134echo $ECHO_N "checking build system type... $ECHO_C" >&6
4135if test "${ac_cv_build+set}" = set; then
4136  echo $ECHO_N "(cached) $ECHO_C" >&6
4137else
4138  ac_cv_build_alias=$build_alias
4139test -z "$ac_cv_build_alias" &&
4140  ac_cv_build_alias=`$ac_config_guess`
4141test -z "$ac_cv_build_alias" &&
4142  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4143echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4144   { (exit 1); exit 1; }; }
4145ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4146  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4147echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4148   { (exit 1); exit 1; }; }
4149
4150fi
4151echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4152echo "${ECHO_T}$ac_cv_build" >&6
4153build=$ac_cv_build
4154build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4155build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4156build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4157
4158
4159echo "$as_me:$LINENO: checking host system type" >&5
4160echo $ECHO_N "checking host system type... $ECHO_C" >&6
4161if test "${ac_cv_host+set}" = set; then
4162  echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164  ac_cv_host_alias=$host_alias
4165test -z "$ac_cv_host_alias" &&
4166  ac_cv_host_alias=$ac_cv_build_alias
4167ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4168  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4169echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4170   { (exit 1); exit 1; }; }
4171
4172fi
4173echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4174echo "${ECHO_T}$ac_cv_host" >&6
4175host=$ac_cv_host
4176host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4177host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4178host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4179
4180
4181echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4182echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4183if test "${lt_cv_path_SED+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  # Loop through the user's path and test for sed and gsed.
4187# Then use that list of sed's as ones to test for truncation.
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193  for lt_ac_prog in sed gsed; do
4194    for ac_exec_ext in '' $ac_executable_extensions; do
4195      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4196        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4197      fi
4198    done
4199  done
4200done
4201lt_ac_max=0
4202lt_ac_count=0
4203# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4204# along with /bin/sed that truncates output.
4205for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4206  test ! -f $lt_ac_sed && continue
4207  cat /dev/null > conftest.in
4208  lt_ac_count=0
4209  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4210  # Check for GNU sed and select it if it is found.
4211  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4212    lt_cv_path_SED=$lt_ac_sed
4213    break
4214  fi
4215  while true; do
4216    cat conftest.in conftest.in >conftest.tmp
4217    mv conftest.tmp conftest.in
4218    cp conftest.in conftest.nl
4219    echo >>conftest.nl
4220    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4221    cmp -s conftest.out conftest.nl || break
4222    # 10000 chars as input seems more than enough
4223    test $lt_ac_count -gt 10 && break
4224    lt_ac_count=`expr $lt_ac_count + 1`
4225    if test $lt_ac_count -gt $lt_ac_max; then
4226      lt_ac_max=$lt_ac_count
4227      lt_cv_path_SED=$lt_ac_sed
4228    fi
4229  done
4230done
4231
4232fi
4233
4234SED=$lt_cv_path_SED
4235echo "$as_me:$LINENO: result: $SED" >&5
4236echo "${ECHO_T}$SED" >&6
4237
4238echo "$as_me:$LINENO: checking for egrep" >&5
4239echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4240if test "${ac_cv_prog_egrep+set}" = set; then
4241  echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4244    then ac_cv_prog_egrep='grep -E'
4245    else ac_cv_prog_egrep='egrep'
4246    fi
4247fi
4248echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4249echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4250 EGREP=$ac_cv_prog_egrep
4251
4252
4253
4254# Check whether --with-gnu-ld or --without-gnu-ld was given.
4255if test "${with_gnu_ld+set}" = set; then
4256  withval="$with_gnu_ld"
4257  test "$withval" = no || with_gnu_ld=yes
4258else
4259  with_gnu_ld=no
4260fi;
4261ac_prog=ld
4262if test "$GCC" = yes; then
4263  # Check if gcc -print-prog-name=ld gives a path.
4264  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4265echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4266  case $host in
4267  *-*-mingw*)
4268    # gcc leaves a trailing carriage return which upsets mingw
4269    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4270  *)
4271    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4272  esac
4273  case $ac_prog in
4274    # Accept absolute paths.
4275    [\\/]* | ?:[\\/]*)
4276      re_direlt='/[^/][^/]*/\.\./'
4277      # Canonicalize the pathname of ld
4278      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4279      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4280	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4281      done
4282      test -z "$LD" && LD="$ac_prog"
4283      ;;
4284  "")
4285    # If it fails, then pretend we aren't using GCC.
4286    ac_prog=ld
4287    ;;
4288  *)
4289    # If it is relative, then search for the first ld in PATH.
4290    with_gnu_ld=unknown
4291    ;;
4292  esac
4293elif test "$with_gnu_ld" = yes; then
4294  echo "$as_me:$LINENO: checking for GNU ld" >&5
4295echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4296else
4297  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4298echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4299fi
4300if test "${lt_cv_path_LD+set}" = set; then
4301  echo $ECHO_N "(cached) $ECHO_C" >&6
4302else
4303  if test -z "$LD"; then
4304  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4305  for ac_dir in $PATH; do
4306    IFS="$lt_save_ifs"
4307    test -z "$ac_dir" && ac_dir=.
4308    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4309      lt_cv_path_LD="$ac_dir/$ac_prog"
4310      # Check to see if the program is GNU ld.  I'd rather use --version,
4311      # but apparently some variants of GNU ld only accept -v.
4312      # Break only if it was the GNU/non-GNU ld that we prefer.
4313      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4314      *GNU* | *'with BFD'*)
4315	test "$with_gnu_ld" != no && break
4316	;;
4317      *)
4318	test "$with_gnu_ld" != yes && break
4319	;;
4320      esac
4321    fi
4322  done
4323  IFS="$lt_save_ifs"
4324else
4325  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4326fi
4327fi
4328
4329LD="$lt_cv_path_LD"
4330if test -n "$LD"; then
4331  echo "$as_me:$LINENO: result: $LD" >&5
4332echo "${ECHO_T}$LD" >&6
4333else
4334  echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336fi
4337test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4338echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4339   { (exit 1); exit 1; }; }
4340echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4341echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4342if test "${lt_cv_prog_gnu_ld+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4346case `$LD -v 2>&1 </dev/null` in
4347*GNU* | *'with BFD'*)
4348  lt_cv_prog_gnu_ld=yes
4349  ;;
4350*)
4351  lt_cv_prog_gnu_ld=no
4352  ;;
4353esac
4354fi
4355echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4356echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4357with_gnu_ld=$lt_cv_prog_gnu_ld
4358
4359
4360echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4361echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4362if test "${lt_cv_ld_reload_flag+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  lt_cv_ld_reload_flag='-r'
4366fi
4367echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4368echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4369reload_flag=$lt_cv_ld_reload_flag
4370case $reload_flag in
4371"" | " "*) ;;
4372*) reload_flag=" $reload_flag" ;;
4373esac
4374reload_cmds='$LD$reload_flag -o $output$reload_objs'
4375case $host_os in
4376  darwin*)
4377    if test "$GCC" = yes; then
4378      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4379    else
4380      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4381    fi
4382    ;;
4383esac
4384
4385echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4386echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4387if test "${lt_cv_path_NM+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  if test -n "$NM"; then
4391  # Let the user override the test.
4392  lt_cv_path_NM="$NM"
4393else
4394  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4395  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4396    IFS="$lt_save_ifs"
4397    test -z "$ac_dir" && ac_dir=.
4398    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4399    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4400      # Check to see if the nm accepts a BSD-compat flag.
4401      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4402      #   nm: unknown option "B" ignored
4403      # Tru64's nm complains that /dev/null is an invalid object file
4404      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4405      */dev/null* | *'Invalid file or object type'*)
4406	lt_cv_path_NM="$tmp_nm -B"
4407	break
4408        ;;
4409      *)
4410	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4411	*/dev/null*)
4412	  lt_cv_path_NM="$tmp_nm -p"
4413	  break
4414	  ;;
4415	*)
4416	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4417	  continue # so that we can try to find one that supports BSD flags
4418	  ;;
4419	esac
4420      esac
4421    fi
4422  done
4423  IFS="$lt_save_ifs"
4424  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4425fi
4426fi
4427echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4428echo "${ECHO_T}$lt_cv_path_NM" >&6
4429NM="$lt_cv_path_NM"
4430
4431echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4432echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4433if test "${lt_cv_deplibs_check_method+set}" = set; then
4434  echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436  lt_cv_file_magic_cmd='$MAGIC_CMD'
4437lt_cv_file_magic_test_file=
4438lt_cv_deplibs_check_method='unknown'
4439# Need to set the preceding variable on all platforms that support
4440# interlibrary dependencies.
4441# 'none' -- dependencies not supported.
4442# `unknown' -- same as none, but documents that we really don't know.
4443# 'pass_all' -- all dependencies passed with no checks.
4444# 'test_compile' -- check by making test program.
4445# 'file_magic [[regex]]' -- check by looking for files in library path
4446# which responds to the $file_magic_cmd with a given extended regex.
4447# If you have `file' or equivalent on your system and you're not sure
4448# whether `pass_all' will *always* work, you probably want this one.
4449
4450case $host_os in
4451aix4* | aix5*)
4452  lt_cv_deplibs_check_method=pass_all
4453  ;;
4454
4455beos*)
4456  lt_cv_deplibs_check_method=pass_all
4457  ;;
4458
4459bsdi[45]*)
4460  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4461  lt_cv_file_magic_cmd='/usr/bin/file -L'
4462  lt_cv_file_magic_test_file=/shlib/libc.so
4463  ;;
4464
4465cygwin*)
4466  # func_win32_libid is a shell function defined in ltmain.sh
4467  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4468  lt_cv_file_magic_cmd='func_win32_libid'
4469  ;;
4470
4471mingw* | pw32*)
4472  # Base MSYS/MinGW do not provide the 'file' command needed by
4473  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4474  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4475  lt_cv_file_magic_cmd='$OBJDUMP -f'
4476  ;;
4477
4478darwin* | rhapsody*)
4479  lt_cv_deplibs_check_method=pass_all
4480  ;;
4481
4482freebsd* | kfreebsd*-gnu | dragonfly*)
4483  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4484    case $host_cpu in
4485    i*86 )
4486      # Not sure whether the presence of OpenBSD here was a mistake.
4487      # Let's accept both of them until this is cleared up.
4488      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4489      lt_cv_file_magic_cmd=/usr/bin/file
4490      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4491      ;;
4492    esac
4493  else
4494    lt_cv_deplibs_check_method=pass_all
4495  fi
4496  ;;
4497
4498gnu*)
4499  lt_cv_deplibs_check_method=pass_all
4500  ;;
4501
4502hpux10.20* | hpux11*)
4503  lt_cv_file_magic_cmd=/usr/bin/file
4504  case $host_cpu in
4505  ia64*)
4506    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4507    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4508    ;;
4509  hppa*64*)
4510    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]'
4511    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4512    ;;
4513  *)
4514    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4515    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4516    ;;
4517  esac
4518  ;;
4519
4520irix5* | irix6* | nonstopux*)
4521  case $LD in
4522  *-32|*"-32 ") libmagic=32-bit;;
4523  *-n32|*"-n32 ") libmagic=N32;;
4524  *-64|*"-64 ") libmagic=64-bit;;
4525  *) libmagic=never-match;;
4526  esac
4527  lt_cv_deplibs_check_method=pass_all
4528  ;;
4529
4530# This must be Linux ELF.
4531linux*)
4532  lt_cv_deplibs_check_method=pass_all
4533  ;;
4534
4535netbsd*)
4536  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4537    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4538  else
4539    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4540  fi
4541  ;;
4542
4543newos6*)
4544  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4545  lt_cv_file_magic_cmd=/usr/bin/file
4546  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4547  ;;
4548
4549nto-qnx*)
4550  lt_cv_deplibs_check_method=unknown
4551  ;;
4552
4553openbsd*)
4554  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4555    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4556  else
4557    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4558  fi
4559  ;;
4560
4561osf3* | osf4* | osf5*)
4562  lt_cv_deplibs_check_method=pass_all
4563  ;;
4564
4565sco3.2v5*)
4566  lt_cv_deplibs_check_method=pass_all
4567  ;;
4568
4569solaris*)
4570  lt_cv_deplibs_check_method=pass_all
4571  ;;
4572
4573sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4574  case $host_vendor in
4575  motorola)
4576    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]'
4577    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4578    ;;
4579  ncr)
4580    lt_cv_deplibs_check_method=pass_all
4581    ;;
4582  sequent)
4583    lt_cv_file_magic_cmd='/bin/file'
4584    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4585    ;;
4586  sni)
4587    lt_cv_file_magic_cmd='/bin/file'
4588    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4589    lt_cv_file_magic_test_file=/lib/libc.so
4590    ;;
4591  siemens)
4592    lt_cv_deplibs_check_method=pass_all
4593    ;;
4594  esac
4595  ;;
4596
4597sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4598  lt_cv_deplibs_check_method=pass_all
4599  ;;
4600esac
4601
4602fi
4603echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4604echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4605file_magic_cmd=$lt_cv_file_magic_cmd
4606deplibs_check_method=$lt_cv_deplibs_check_method
4607test -z "$deplibs_check_method" && deplibs_check_method=unknown
4608
4609
4610
4611
4612# If no C compiler was specified, use CC.
4613LTCC=${LTCC-"$CC"}
4614
4615# Allow CC to be a program name with arguments.
4616compiler=$CC
4617
4618
4619# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4620if test "${enable_libtool_lock+set}" = set; then
4621  enableval="$enable_libtool_lock"
4622
4623fi;
4624test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4625
4626# Some flags need to be propagated to the compiler or linker for good
4627# libtool support.
4628case $host in
4629ia64-*-hpux*)
4630  # Find out which ABI we are using.
4631  echo 'int i;' > conftest.$ac_ext
4632  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633  (eval $ac_compile) 2>&5
4634  ac_status=$?
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); }; then
4637    case `/usr/bin/file conftest.$ac_objext` in
4638    *ELF-32*)
4639      HPUX_IA64_MODE="32"
4640      ;;
4641    *ELF-64*)
4642      HPUX_IA64_MODE="64"
4643      ;;
4644    esac
4645  fi
4646  rm -rf conftest*
4647  ;;
4648*-*-irix6*)
4649  # Find out which ABI we are using.
4650  echo '#line 4898 "configure"' > conftest.$ac_ext
4651  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652  (eval $ac_compile) 2>&5
4653  ac_status=$?
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); }; then
4656   if test "$lt_cv_prog_gnu_ld" = yes; then
4657    case `/usr/bin/file conftest.$ac_objext` in
4658    *32-bit*)
4659      LD="${LD-ld} -melf32bsmip"
4660      ;;
4661    *N32*)
4662      LD="${LD-ld} -melf32bmipn32"
4663      ;;
4664    *64-bit*)
4665      LD="${LD-ld} -melf64bmip"
4666      ;;
4667    esac
4668   else
4669    case `/usr/bin/file conftest.$ac_objext` in
4670    *32-bit*)
4671      LD="${LD-ld} -32"
4672      ;;
4673    *N32*)
4674      LD="${LD-ld} -n32"
4675      ;;
4676    *64-bit*)
4677      LD="${LD-ld} -64"
4678      ;;
4679    esac
4680   fi
4681  fi
4682  rm -rf conftest*
4683  ;;
4684
4685x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4686  # Find out which ABI we are using.
4687  echo 'int i;' > conftest.$ac_ext
4688  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689  (eval $ac_compile) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; then
4693    case `/usr/bin/file conftest.o` in
4694    *32-bit*)
4695      case $host in
4696        x86_64-*linux*)
4697          LD="${LD-ld} -m elf_i386"
4698          ;;
4699        ppc64-*linux*|powerpc64-*linux*)
4700          LD="${LD-ld} -m elf32ppclinux"
4701          ;;
4702        s390x-*linux*)
4703          LD="${LD-ld} -m elf_s390"
4704          ;;
4705        sparc64-*linux*)
4706          LD="${LD-ld} -m elf32_sparc"
4707          ;;
4708      esac
4709      ;;
4710    *64-bit*)
4711      case $host in
4712        x86_64-*linux*)
4713          LD="${LD-ld} -m elf_x86_64"
4714          ;;
4715        ppc*-*linux*|powerpc*-*linux*)
4716          LD="${LD-ld} -m elf64ppc"
4717          ;;
4718        s390*-*linux*)
4719          LD="${LD-ld} -m elf64_s390"
4720          ;;
4721        sparc*-*linux*)
4722          LD="${LD-ld} -m elf64_sparc"
4723          ;;
4724      esac
4725      ;;
4726    esac
4727  fi
4728  rm -rf conftest*
4729  ;;
4730
4731*-*-sco3.2v5*)
4732  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4733  SAVE_CFLAGS="$CFLAGS"
4734  CFLAGS="$CFLAGS -belf"
4735  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4736echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4737if test "${lt_cv_cc_needs_belf+set}" = set; then
4738  echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740  ac_ext=c
4741ac_cpp='$CPP $CPPFLAGS'
4742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746     cat >conftest.$ac_ext <<_ACEOF
4747/* confdefs.h.  */
4748_ACEOF
4749cat confdefs.h >>conftest.$ac_ext
4750cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h.  */
4752
4753int
4754main ()
4755{
4756
4757  ;
4758  return 0;
4759}
4760_ACEOF
4761rm -f conftest.$ac_objext conftest$ac_exeext
4762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4763  (eval $ac_link) 2>conftest.er1
4764  ac_status=$?
4765  grep -v '^ *+' conftest.er1 >conftest.err
4766  rm -f conftest.er1
4767  cat conftest.err >&5
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); } &&
4770	 { ac_try='test -z "$ac_c_werror_flag"
4771			 || test ! -s conftest.err'
4772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773  (eval $ac_try) 2>&5
4774  ac_status=$?
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); }; } &&
4777	 { ac_try='test -s conftest$ac_exeext'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; }; then
4783  lt_cv_cc_needs_belf=yes
4784else
4785  echo "$as_me: failed program was:" >&5
4786sed 's/^/| /' conftest.$ac_ext >&5
4787
4788lt_cv_cc_needs_belf=no
4789fi
4790rm -f conftest.err conftest.$ac_objext \
4791      conftest$ac_exeext conftest.$ac_ext
4792     ac_ext=c
4793ac_cpp='$CPP $CPPFLAGS'
4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798fi
4799echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4800echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4801  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4802    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4803    CFLAGS="$SAVE_CFLAGS"
4804  fi
4805  ;;
4806
4807esac
4808
4809need_locks="$enable_libtool_lock"
4810
4811
4812
4813echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4815if test "${ac_cv_header_stdc+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  cat >conftest.$ac_ext <<_ACEOF
4819/* confdefs.h.  */
4820_ACEOF
4821cat confdefs.h >>conftest.$ac_ext
4822cat >>conftest.$ac_ext <<_ACEOF
4823/* end confdefs.h.  */
4824#include <stdlib.h>
4825#include <stdarg.h>
4826#include <string.h>
4827#include <float.h>
4828
4829int
4830main ()
4831{
4832
4833  ;
4834  return 0;
4835}
4836_ACEOF
4837rm -f conftest.$ac_objext
4838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839  (eval $ac_compile) 2>conftest.er1
4840  ac_status=$?
4841  grep -v '^ *+' conftest.er1 >conftest.err
4842  rm -f conftest.er1
4843  cat conftest.err >&5
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); } &&
4846	 { ac_try='test -z "$ac_c_werror_flag"
4847			 || test ! -s conftest.err'
4848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849  (eval $ac_try) 2>&5
4850  ac_status=$?
4851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852  (exit $ac_status); }; } &&
4853	 { ac_try='test -s conftest.$ac_objext'
4854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855  (eval $ac_try) 2>&5
4856  ac_status=$?
4857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858  (exit $ac_status); }; }; then
4859  ac_cv_header_stdc=yes
4860else
4861  echo "$as_me: failed program was:" >&5
4862sed 's/^/| /' conftest.$ac_ext >&5
4863
4864ac_cv_header_stdc=no
4865fi
4866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867
4868if test $ac_cv_header_stdc = yes; then
4869  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876#include <string.h>
4877
4878_ACEOF
4879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880  $EGREP "memchr" >/dev/null 2>&1; then
4881  :
4882else
4883  ac_cv_header_stdc=no
4884fi
4885rm -f conftest*
4886
4887fi
4888
4889if test $ac_cv_header_stdc = yes; then
4890  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4891  cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h.  */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h.  */
4897#include <stdlib.h>
4898
4899_ACEOF
4900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4901  $EGREP "free" >/dev/null 2>&1; then
4902  :
4903else
4904  ac_cv_header_stdc=no
4905fi
4906rm -f conftest*
4907
4908fi
4909
4910if test $ac_cv_header_stdc = yes; then
4911  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4912  if test "$cross_compiling" = yes; then
4913  :
4914else
4915  cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h.  */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h.  */
4921#include <ctype.h>
4922#if ((' ' & 0x0FF) == 0x020)
4923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4925#else
4926# define ISLOWER(c) \
4927		   (('a' <= (c) && (c) <= 'i') \
4928		     || ('j' <= (c) && (c) <= 'r') \
4929		     || ('s' <= (c) && (c) <= 'z'))
4930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4931#endif
4932
4933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4934int
4935main ()
4936{
4937  int i;
4938  for (i = 0; i < 256; i++)
4939    if (XOR (islower (i), ISLOWER (i))
4940	|| toupper (i) != TOUPPER (i))
4941      exit(2);
4942  exit (0);
4943}
4944_ACEOF
4945rm -f conftest$ac_exeext
4946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947  (eval $ac_link) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  :
4957else
4958  echo "$as_me: program exited with status $ac_status" >&5
4959echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962( exit $ac_status )
4963ac_cv_header_stdc=no
4964fi
4965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4966fi
4967fi
4968fi
4969echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4970echo "${ECHO_T}$ac_cv_header_stdc" >&6
4971if test $ac_cv_header_stdc = yes; then
4972
4973cat >>confdefs.h <<\_ACEOF
4974#define STDC_HEADERS 1
4975_ACEOF
4976
4977fi
4978
4979# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4990		  inttypes.h stdint.h unistd.h
4991do
4992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4993echo "$as_me:$LINENO: checking for $ac_header" >&5
4994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h.  */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h.  */
5004$ac_includes_default
5005
5006#include <$ac_header>
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010  (eval $ac_compile) 2>conftest.er1
5011  ac_status=$?
5012  grep -v '^ *+' conftest.er1 >conftest.err
5013  rm -f conftest.er1
5014  cat conftest.err >&5
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); } &&
5017	 { ac_try='test -z "$ac_c_werror_flag"
5018			 || test ! -s conftest.err'
5019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020  (eval $ac_try) 2>&5
5021  ac_status=$?
5022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023  (exit $ac_status); }; } &&
5024	 { ac_try='test -s conftest.$ac_objext'
5025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026  (eval $ac_try) 2>&5
5027  ac_status=$?
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); }; }; then
5030  eval "$as_ac_Header=yes"
5031else
5032  echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035eval "$as_ac_Header=no"
5036fi
5037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038fi
5039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5041if test `eval echo '${'$as_ac_Header'}'` = yes; then
5042  cat >>confdefs.h <<_ACEOF
5043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044_ACEOF
5045
5046fi
5047
5048done
5049
5050
5051
5052for ac_header in dlfcn.h
5053do
5054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055if eval "test \"\${$as_ac_Header+set}\" = set"; then
5056  echo "$as_me:$LINENO: checking for $ac_header" >&5
5057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059  echo $ECHO_N "(cached) $ECHO_C" >&6
5060fi
5061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063else
5064  # Is the header compilable?
5065echo "$as_me:$LINENO: checking $ac_header usability" >&5
5066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5067cat >conftest.$ac_ext <<_ACEOF
5068/* confdefs.h.  */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h.  */
5073$ac_includes_default
5074#include <$ac_header>
5075_ACEOF
5076rm -f conftest.$ac_objext
5077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078  (eval $ac_compile) 2>conftest.er1
5079  ac_status=$?
5080  grep -v '^ *+' conftest.er1 >conftest.err
5081  rm -f conftest.er1
5082  cat conftest.err >&5
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); } &&
5085	 { ac_try='test -z "$ac_c_werror_flag"
5086			 || test ! -s conftest.err'
5087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088  (eval $ac_try) 2>&5
5089  ac_status=$?
5090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091  (exit $ac_status); }; } &&
5092	 { ac_try='test -s conftest.$ac_objext'
5093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094  (eval $ac_try) 2>&5
5095  ac_status=$?
5096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097  (exit $ac_status); }; }; then
5098  ac_header_compiler=yes
5099else
5100  echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103ac_header_compiler=no
5104fi
5105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107echo "${ECHO_T}$ac_header_compiler" >&6
5108
5109# Is the header present?
5110echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5112cat >conftest.$ac_ext <<_ACEOF
5113/* confdefs.h.  */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h.  */
5118#include <$ac_header>
5119_ACEOF
5120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122  ac_status=$?
5123  grep -v '^ *+' conftest.er1 >conftest.err
5124  rm -f conftest.er1
5125  cat conftest.err >&5
5126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); } >/dev/null; then
5128  if test -s conftest.err; then
5129    ac_cpp_err=$ac_c_preproc_warn_flag
5130    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5131  else
5132    ac_cpp_err=
5133  fi
5134else
5135  ac_cpp_err=yes
5136fi
5137if test -z "$ac_cpp_err"; then
5138  ac_header_preproc=yes
5139else
5140  echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143  ac_header_preproc=no
5144fi
5145rm -f conftest.err conftest.$ac_ext
5146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5147echo "${ECHO_T}$ac_header_preproc" >&6
5148
5149# So?  What about this header?
5150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5151  yes:no: )
5152    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5154    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5156    ac_header_preproc=yes
5157    ;;
5158  no:yes:* )
5159    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5161    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5162echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5163    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5165    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5166echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5167    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5171    (
5172      cat <<\_ASBOX
5173## ------------------------------------------ ##
5174## Report this to the AC_PACKAGE_NAME lists.  ##
5175## ------------------------------------------ ##
5176_ASBOX
5177    ) |
5178      sed "s/^/$as_me: WARNING:     /" >&2
5179    ;;
5180esac
5181echo "$as_me:$LINENO: checking for $ac_header" >&5
5182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5183if eval "test \"\${$as_ac_Header+set}\" = set"; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  eval "$as_ac_Header=\$ac_header_preproc"
5187fi
5188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5190
5191fi
5192if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193  cat >>confdefs.h <<_ACEOF
5194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195_ACEOF
5196
5197fi
5198
5199done
5200
5201
5202
5203if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5204    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5205    (test "X$CXX" != "Xg++"))) ; then
5206  ac_ext=cc
5207ac_cpp='$CXXCPP $CPPFLAGS'
5208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5212echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5213if test -z "$CXXCPP"; then
5214  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5215  echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217      # Double quotes because CXXCPP needs to be expanded
5218    for CXXCPP in "$CXX -E" "/lib/cpp"
5219    do
5220      ac_preproc_ok=false
5221for ac_cxx_preproc_warn_flag in '' yes
5222do
5223  # Use a header file that comes with gcc, so configuring glibc
5224  # with a fresh cross-compiler works.
5225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226  # <limits.h> exists even on freestanding compilers.
5227  # On the NeXT, cc -E runs the code through the compiler's parser,
5228  # not just through cpp. "Syntax error" is here to catch this case.
5229  cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h.  */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h.  */
5235#ifdef __STDC__
5236# include <limits.h>
5237#else
5238# include <assert.h>
5239#endif
5240		     Syntax error
5241_ACEOF
5242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244  ac_status=$?
5245  grep -v '^ *+' conftest.er1 >conftest.err
5246  rm -f conftest.er1
5247  cat conftest.err >&5
5248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249  (exit $ac_status); } >/dev/null; then
5250  if test -s conftest.err; then
5251    ac_cpp_err=$ac_cxx_preproc_warn_flag
5252    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5253  else
5254    ac_cpp_err=
5255  fi
5256else
5257  ac_cpp_err=yes
5258fi
5259if test -z "$ac_cpp_err"; then
5260  :
5261else
5262  echo "$as_me: failed program was:" >&5
5263sed 's/^/| /' conftest.$ac_ext >&5
5264
5265  # Broken: fails on valid input.
5266continue
5267fi
5268rm -f conftest.err conftest.$ac_ext
5269
5270  # OK, works on sane cases.  Now check whether non-existent headers
5271  # can be detected and how.
5272  cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h.  */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h.  */
5278#include <ac_nonexistent.h>
5279_ACEOF
5280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282  ac_status=$?
5283  grep -v '^ *+' conftest.er1 >conftest.err
5284  rm -f conftest.er1
5285  cat conftest.err >&5
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); } >/dev/null; then
5288  if test -s conftest.err; then
5289    ac_cpp_err=$ac_cxx_preproc_warn_flag
5290    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5291  else
5292    ac_cpp_err=
5293  fi
5294else
5295  ac_cpp_err=yes
5296fi
5297if test -z "$ac_cpp_err"; then
5298  # Broken: success on invalid input.
5299continue
5300else
5301  echo "$as_me: failed program was:" >&5
5302sed 's/^/| /' conftest.$ac_ext >&5
5303
5304  # Passes both tests.
5305ac_preproc_ok=:
5306break
5307fi
5308rm -f conftest.err conftest.$ac_ext
5309
5310done
5311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312rm -f conftest.err conftest.$ac_ext
5313if $ac_preproc_ok; then
5314  break
5315fi
5316
5317    done
5318    ac_cv_prog_CXXCPP=$CXXCPP
5319
5320fi
5321  CXXCPP=$ac_cv_prog_CXXCPP
5322else
5323  ac_cv_prog_CXXCPP=$CXXCPP
5324fi
5325echo "$as_me:$LINENO: result: $CXXCPP" >&5
5326echo "${ECHO_T}$CXXCPP" >&6
5327ac_preproc_ok=false
5328for ac_cxx_preproc_warn_flag in '' yes
5329do
5330  # Use a header file that comes with gcc, so configuring glibc
5331  # with a fresh cross-compiler works.
5332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333  # <limits.h> exists even on freestanding compilers.
5334  # On the NeXT, cc -E runs the code through the compiler's parser,
5335  # not just through cpp. "Syntax error" is here to catch this case.
5336  cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h.  */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h.  */
5342#ifdef __STDC__
5343# include <limits.h>
5344#else
5345# include <assert.h>
5346#endif
5347		     Syntax error
5348_ACEOF
5349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351  ac_status=$?
5352  grep -v '^ *+' conftest.er1 >conftest.err
5353  rm -f conftest.er1
5354  cat conftest.err >&5
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); } >/dev/null; then
5357  if test -s conftest.err; then
5358    ac_cpp_err=$ac_cxx_preproc_warn_flag
5359    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5360  else
5361    ac_cpp_err=
5362  fi
5363else
5364  ac_cpp_err=yes
5365fi
5366if test -z "$ac_cpp_err"; then
5367  :
5368else
5369  echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372  # Broken: fails on valid input.
5373continue
5374fi
5375rm -f conftest.err conftest.$ac_ext
5376
5377  # OK, works on sane cases.  Now check whether non-existent headers
5378  # can be detected and how.
5379  cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385#include <ac_nonexistent.h>
5386_ACEOF
5387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } >/dev/null; then
5395  if test -s conftest.err; then
5396    ac_cpp_err=$ac_cxx_preproc_warn_flag
5397    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5398  else
5399    ac_cpp_err=
5400  fi
5401else
5402  ac_cpp_err=yes
5403fi
5404if test -z "$ac_cpp_err"; then
5405  # Broken: success on invalid input.
5406continue
5407else
5408  echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411  # Passes both tests.
5412ac_preproc_ok=:
5413break
5414fi
5415rm -f conftest.err conftest.$ac_ext
5416
5417done
5418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419rm -f conftest.err conftest.$ac_ext
5420if $ac_preproc_ok; then
5421  :
5422else
5423  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5424See \`config.log' for more details." >&5
5425echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5426See \`config.log' for more details." >&2;}
5427   { (exit 1); exit 1; }; }
5428fi
5429
5430ac_ext=cc
5431ac_cpp='$CXXCPP $CPPFLAGS'
5432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5435
5436fi
5437
5438
5439ac_ext=f
5440ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5441ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5443if test -n "$ac_tool_prefix"; then
5444  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5445  do
5446    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5448echo "$as_me:$LINENO: checking for $ac_word" >&5
5449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450if test "${ac_cv_prog_F77+set}" = set; then
5451  echo $ECHO_N "(cached) $ECHO_C" >&6
5452else
5453  if test -n "$F77"; then
5454  ac_cv_prog_F77="$F77" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459  IFS=$as_save_IFS
5460  test -z "$as_dir" && as_dir=.
5461  for ac_exec_ext in '' $ac_executable_extensions; do
5462  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5464    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465    break 2
5466  fi
5467done
5468done
5469
5470fi
5471fi
5472F77=$ac_cv_prog_F77
5473if test -n "$F77"; then
5474  echo "$as_me:$LINENO: result: $F77" >&5
5475echo "${ECHO_T}$F77" >&6
5476else
5477  echo "$as_me:$LINENO: result: no" >&5
5478echo "${ECHO_T}no" >&6
5479fi
5480
5481    test -n "$F77" && break
5482  done
5483fi
5484if test -z "$F77"; then
5485  ac_ct_F77=$F77
5486  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5487do
5488  # Extract the first word of "$ac_prog", so it can be a program name with args.
5489set dummy $ac_prog; ac_word=$2
5490echo "$as_me:$LINENO: checking for $ac_word" >&5
5491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5492if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5493  echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495  if test -n "$ac_ct_F77"; then
5496  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501  IFS=$as_save_IFS
5502  test -z "$as_dir" && as_dir=.
5503  for ac_exec_ext in '' $ac_executable_extensions; do
5504  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505    ac_cv_prog_ac_ct_F77="$ac_prog"
5506    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507    break 2
5508  fi
5509done
5510done
5511
5512fi
5513fi
5514ac_ct_F77=$ac_cv_prog_ac_ct_F77
5515if test -n "$ac_ct_F77"; then
5516  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5517echo "${ECHO_T}$ac_ct_F77" >&6
5518else
5519  echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6
5521fi
5522
5523  test -n "$ac_ct_F77" && break
5524done
5525
5526  F77=$ac_ct_F77
5527fi
5528
5529
5530# Provide some information about the compiler.
5531echo "$as_me:5779:" \
5532     "checking for Fortran 77 compiler version" >&5
5533ac_compiler=`set X $ac_compile; echo $2`
5534{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5535  (eval $ac_compiler --version </dev/null >&5) 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }
5539{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5540  (eval $ac_compiler -v </dev/null >&5) 2>&5
5541  ac_status=$?
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); }
5544{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5545  (eval $ac_compiler -V </dev/null >&5) 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); }
5549rm -f a.out
5550
5551# If we don't use `.F' as extension, the preprocessor is not run on the
5552# input file.  (Note that this only needs to work for GNU compilers.)
5553ac_save_ext=$ac_ext
5554ac_ext=F
5555echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5556echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5557if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5558  echo $ECHO_N "(cached) $ECHO_C" >&6
5559else
5560  cat >conftest.$ac_ext <<_ACEOF
5561      program main
5562#ifndef __GNUC__
5563       choke me
5564#endif
5565
5566      end
5567_ACEOF
5568rm -f conftest.$ac_objext
5569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5570  (eval $ac_compile) 2>conftest.er1
5571  ac_status=$?
5572  grep -v '^ *+' conftest.er1 >conftest.err
5573  rm -f conftest.er1
5574  cat conftest.err >&5
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); } &&
5577	 { ac_try='test -z "$ac_f77_werror_flag"
5578			 || test ! -s conftest.err'
5579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580  (eval $ac_try) 2>&5
5581  ac_status=$?
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); }; } &&
5584	 { ac_try='test -s conftest.$ac_objext'
5585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586  (eval $ac_try) 2>&5
5587  ac_status=$?
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); }; }; then
5590  ac_compiler_gnu=yes
5591else
5592  echo "$as_me: failed program was:" >&5
5593sed 's/^/| /' conftest.$ac_ext >&5
5594
5595ac_compiler_gnu=no
5596fi
5597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5598ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5599
5600fi
5601echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5602echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5603ac_ext=$ac_save_ext
5604ac_test_FFLAGS=${FFLAGS+set}
5605ac_save_FFLAGS=$FFLAGS
5606FFLAGS=
5607echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5608echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5609if test "${ac_cv_prog_f77_g+set}" = set; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  FFLAGS=-g
5613cat >conftest.$ac_ext <<_ACEOF
5614      program main
5615
5616      end
5617_ACEOF
5618rm -f conftest.$ac_objext
5619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620  (eval $ac_compile) 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } &&
5627	 { ac_try='test -z "$ac_f77_werror_flag"
5628			 || test ! -s conftest.err'
5629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630  (eval $ac_try) 2>&5
5631  ac_status=$?
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); }; } &&
5634	 { ac_try='test -s conftest.$ac_objext'
5635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636  (eval $ac_try) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }; }; then
5640  ac_cv_prog_f77_g=yes
5641else
5642  echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645ac_cv_prog_f77_g=no
5646fi
5647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648
5649fi
5650echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5651echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5652if test "$ac_test_FFLAGS" = set; then
5653  FFLAGS=$ac_save_FFLAGS
5654elif test $ac_cv_prog_f77_g = yes; then
5655  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5656    FFLAGS="-g -O2"
5657  else
5658    FFLAGS="-g"
5659  fi
5660else
5661  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5662    FFLAGS="-O2"
5663  else
5664    FFLAGS=
5665  fi
5666fi
5667
5668G77=`test $ac_compiler_gnu = yes && echo yes`
5669ac_ext=c
5670ac_cpp='$CPP $CPPFLAGS'
5671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674
5675
5676
5677# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5678
5679# find the maximum length of command line arguments
5680echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5681echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5682if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5683  echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
5685    i=0
5686  teststring="ABCD"
5687
5688  case $build_os in
5689  msdosdjgpp*)
5690    # On DJGPP, this test can blow up pretty badly due to problems in libc
5691    # (any single argument exceeding 2000 bytes causes a buffer overrun
5692    # during glob expansion).  Even if it were fixed, the result of this
5693    # check would be larger than it should be.
5694    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5695    ;;
5696
5697  gnu*)
5698    # Under GNU Hurd, this test is not required because there is
5699    # no limit to the length of command line arguments.
5700    # Libtool will interpret -1 as no limit whatsoever
5701    lt_cv_sys_max_cmd_len=-1;
5702    ;;
5703
5704  cygwin* | mingw*)
5705    # On Win9x/ME, this test blows up -- it succeeds, but takes
5706    # about 5 minutes as the teststring grows exponentially.
5707    # Worse, since 9x/ME are not pre-emptively multitasking,
5708    # you end up with a "frozen" computer, even though with patience
5709    # the test eventually succeeds (with a max line length of 256k).
5710    # Instead, let's just punt: use the minimum linelength reported by
5711    # all of the supported platforms: 8192 (on NT/2K/XP).
5712    lt_cv_sys_max_cmd_len=8192;
5713    ;;
5714
5715  amigaos*)
5716    # On AmigaOS with pdksh, this test takes hours, literally.
5717    # So we just punt and use a minimum line length of 8192.
5718    lt_cv_sys_max_cmd_len=8192;
5719    ;;
5720
5721  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5722    # This has been around since 386BSD, at least.  Likely further.
5723    if test -x /sbin/sysctl; then
5724      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5725    elif test -x /usr/sbin/sysctl; then
5726      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5727    else
5728      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5729    fi
5730    # And add a safety zone
5731    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5732    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5733    ;;
5734  osf*)
5735    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5736    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5737    # nice to cause kernel panics so lets avoid the loop below.
5738    # First set a reasonable default.
5739    lt_cv_sys_max_cmd_len=16384
5740    #
5741    if test -x /sbin/sysconfig; then
5742      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5743        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5744      esac
5745    fi
5746    ;;
5747  *)
5748    # If test is not a shell built-in, we'll probably end up computing a
5749    # maximum length that is only half of the actual maximum length, but
5750    # we can't tell.
5751    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5752    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5753	       = "XX$teststring") >/dev/null 2>&1 &&
5754	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5755	    lt_cv_sys_max_cmd_len=$new_result &&
5756	    test $i != 17 # 1/2 MB should be enough
5757    do
5758      i=`expr $i + 1`
5759      teststring=$teststring$teststring
5760    done
5761    teststring=
5762    # Add a significant safety factor because C++ compilers can tack on massive
5763    # amounts of additional arguments before passing them to the linker.
5764    # It appears as though 1/2 is a usable value.
5765    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5766    ;;
5767  esac
5768
5769fi
5770
5771if test -n $lt_cv_sys_max_cmd_len ; then
5772  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5773echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5774else
5775  echo "$as_me:$LINENO: result: none" >&5
5776echo "${ECHO_T}none" >&6
5777fi
5778
5779
5780
5781
5782# Check for command to grab the raw symbol name followed by C symbol from nm.
5783echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5784echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5785if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788
5789# These are sane defaults that work on at least a few old systems.
5790# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5791
5792# Character class describing NM global symbol codes.
5793symcode='[BCDEGRST]'
5794
5795# Regexp to match symbols that can be accessed directly from C.
5796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5797
5798# Transform an extracted symbol line into a proper C declaration
5799lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5800
5801# Transform an extracted symbol line into symbol name and symbol address
5802lt_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'"
5803
5804# Define system-specific variables.
5805case $host_os in
5806aix*)
5807  symcode='[BCDT]'
5808  ;;
5809cygwin* | mingw* | pw32*)
5810  symcode='[ABCDGISTW]'
5811  ;;
5812hpux*) # Its linker distinguishes data from code symbols
5813  if test "$host_cpu" = ia64; then
5814    symcode='[ABCDEGRST]'
5815  fi
5816  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5817  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'"
5818  ;;
5819linux*)
5820  if test "$host_cpu" = ia64; then
5821    symcode='[ABCDGIRSTW]'
5822    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5823    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'"
5824  fi
5825  ;;
5826irix* | nonstopux*)
5827  symcode='[BCDEGRST]'
5828  ;;
5829osf*)
5830  symcode='[BCDEGQRST]'
5831  ;;
5832solaris* | sysv5*)
5833  symcode='[BDRT]'
5834  ;;
5835sysv4)
5836  symcode='[DFNSTU]'
5837  ;;
5838esac
5839
5840# Handle CRLF in mingw tool chain
5841opt_cr=
5842case $build_os in
5843mingw*)
5844  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5845  ;;
5846esac
5847
5848# If we're using GNU nm, then use its standard symbol codes.
5849case `$NM -V 2>&1` in
5850*GNU* | *'with BFD'*)
5851  symcode='[ABCDGIRSTW]' ;;
5852esac
5853
5854# Try without a prefix undercore, then with it.
5855for ac_symprfx in "" "_"; do
5856
5857  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5858  symxfrm="\\1 $ac_symprfx\\2 \\2"
5859
5860  # Write the raw and C identifiers.
5861  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5862
5863  # Check to see that the pipe works correctly.
5864  pipe_works=no
5865
5866  rm -f conftest*
5867  cat > conftest.$ac_ext <<EOF
5868#ifdef __cplusplus
5869extern "C" {
5870#endif
5871char nm_test_var;
5872void nm_test_func(){}
5873#ifdef __cplusplus
5874}
5875#endif
5876int main(){nm_test_var='a';nm_test_func();return(0);}
5877EOF
5878
5879  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880  (eval $ac_compile) 2>&5
5881  ac_status=$?
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); }; then
5884    # Now try to grab the symbols.
5885    nlist=conftest.nm
5886    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5887  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5888  ac_status=$?
5889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890  (exit $ac_status); } && test -s "$nlist"; then
5891      # Try sorting and uniquifying the output.
5892      if sort "$nlist" | uniq > "$nlist"T; then
5893	mv -f "$nlist"T "$nlist"
5894      else
5895	rm -f "$nlist"T
5896      fi
5897
5898      # Make sure that we snagged all the symbols we need.
5899      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5900	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5901	  cat <<EOF > conftest.$ac_ext
5902#ifdef __cplusplus
5903extern "C" {
5904#endif
5905
5906EOF
5907	  # Now generate the symbol file.
5908	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5909
5910	  cat <<EOF >> conftest.$ac_ext
5911#if defined (__STDC__) && __STDC__
5912# define lt_ptr_t void *
5913#else
5914# define lt_ptr_t char *
5915# define const
5916#endif
5917
5918/* The mapping between symbol names and symbols. */
5919const struct {
5920  const char *name;
5921  lt_ptr_t address;
5922}
5923lt_preloaded_symbols[] =
5924{
5925EOF
5926	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5927	  cat <<\EOF >> conftest.$ac_ext
5928  {0, (lt_ptr_t) 0}
5929};
5930
5931#ifdef __cplusplus
5932}
5933#endif
5934EOF
5935	  # Now try linking the two files.
5936	  mv conftest.$ac_objext conftstm.$ac_objext
5937	  lt_save_LIBS="$LIBS"
5938	  lt_save_CFLAGS="$CFLAGS"
5939	  LIBS="conftstm.$ac_objext"
5940	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5941	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942  (eval $ac_link) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5946	    pipe_works=yes
5947	  fi
5948	  LIBS="$lt_save_LIBS"
5949	  CFLAGS="$lt_save_CFLAGS"
5950	else
5951	  echo "cannot find nm_test_func in $nlist" >&5
5952	fi
5953      else
5954	echo "cannot find nm_test_var in $nlist" >&5
5955      fi
5956    else
5957      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5958    fi
5959  else
5960    echo "$progname: failed program was:" >&5
5961    cat conftest.$ac_ext >&5
5962  fi
5963  rm -f conftest* conftst*
5964
5965  # Do not use the global_symbol_pipe unless it works.
5966  if test "$pipe_works" = yes; then
5967    break
5968  else
5969    lt_cv_sys_global_symbol_pipe=
5970  fi
5971done
5972
5973fi
5974
5975if test -z "$lt_cv_sys_global_symbol_pipe"; then
5976  lt_cv_sys_global_symbol_to_cdecl=
5977fi
5978if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5979  echo "$as_me:$LINENO: result: failed" >&5
5980echo "${ECHO_T}failed" >&6
5981else
5982  echo "$as_me:$LINENO: result: ok" >&5
5983echo "${ECHO_T}ok" >&6
5984fi
5985
5986echo "$as_me:$LINENO: checking for objdir" >&5
5987echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5988if test "${lt_cv_objdir+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991  rm -f .libs 2>/dev/null
5992mkdir .libs 2>/dev/null
5993if test -d .libs; then
5994  lt_cv_objdir=.libs
5995else
5996  # MS-DOS does not allow filenames that begin with a dot.
5997  lt_cv_objdir=_libs
5998fi
5999rmdir .libs 2>/dev/null
6000fi
6001echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6002echo "${ECHO_T}$lt_cv_objdir" >&6
6003objdir=$lt_cv_objdir
6004
6005
6006
6007
6008
6009case $host_os in
6010aix3*)
6011  # AIX sometimes has problems with the GCC collect2 program.  For some
6012  # reason, if we set the COLLECT_NAMES environment variable, the problems
6013  # vanish in a puff of smoke.
6014  if test "X${COLLECT_NAMES+set}" != Xset; then
6015    COLLECT_NAMES=
6016    export COLLECT_NAMES
6017  fi
6018  ;;
6019esac
6020
6021# Sed substitution that helps us do robust quoting.  It backslashifies
6022# metacharacters that are still active within double-quoted strings.
6023Xsed='sed -e 1s/^X//'
6024sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6025
6026# Same as above, but do not quote variable references.
6027double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6028
6029# Sed substitution to delay expansion of an escaped shell variable in a
6030# double_quote_subst'ed string.
6031delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6032
6033# Sed substitution to avoid accidental globbing in evaled expressions
6034no_glob_subst='s/\*/\\\*/g'
6035
6036# Constants:
6037rm="rm -f"
6038
6039# Global variables:
6040default_ofile=libtool
6041can_build_shared=yes
6042
6043# All known linkers require a `.a' archive for static linking (except MSVC,
6044# which needs '.lib').
6045libext=a
6046ltmain="$ac_aux_dir/ltmain.sh"
6047ofile="$default_ofile"
6048with_gnu_ld="$lt_cv_prog_gnu_ld"
6049
6050if test -n "$ac_tool_prefix"; then
6051  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}ar; ac_word=$2
6053echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055if test "${ac_cv_prog_AR+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  if test -n "$AR"; then
6059  ac_cv_prog_AR="$AR" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064  IFS=$as_save_IFS
6065  test -z "$as_dir" && as_dir=.
6066  for ac_exec_ext in '' $ac_executable_extensions; do
6067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068    ac_cv_prog_AR="${ac_tool_prefix}ar"
6069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070    break 2
6071  fi
6072done
6073done
6074
6075fi
6076fi
6077AR=$ac_cv_prog_AR
6078if test -n "$AR"; then
6079  echo "$as_me:$LINENO: result: $AR" >&5
6080echo "${ECHO_T}$AR" >&6
6081else
6082  echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6
6084fi
6085
6086fi
6087if test -z "$ac_cv_prog_AR"; then
6088  ac_ct_AR=$AR
6089  # Extract the first word of "ar", so it can be a program name with args.
6090set dummy ar; ac_word=$2
6091echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  if test -n "$ac_ct_AR"; then
6097  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104  for ac_exec_ext in '' $ac_executable_extensions; do
6105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106    ac_cv_prog_ac_ct_AR="ar"
6107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111done
6112
6113  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6114fi
6115fi
6116ac_ct_AR=$ac_cv_prog_ac_ct_AR
6117if test -n "$ac_ct_AR"; then
6118  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6119echo "${ECHO_T}$ac_ct_AR" >&6
6120else
6121  echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123fi
6124
6125  AR=$ac_ct_AR
6126else
6127  AR="$ac_cv_prog_AR"
6128fi
6129
6130if test -n "$ac_tool_prefix"; then
6131  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6133echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135if test "${ac_cv_prog_RANLIB+set}" = set; then
6136  echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138  if test -n "$RANLIB"; then
6139  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146  for ac_exec_ext in '' $ac_executable_extensions; do
6147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153done
6154
6155fi
6156fi
6157RANLIB=$ac_cv_prog_RANLIB
6158if test -n "$RANLIB"; then
6159  echo "$as_me:$LINENO: result: $RANLIB" >&5
6160echo "${ECHO_T}$RANLIB" >&6
6161else
6162  echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164fi
6165
6166fi
6167if test -z "$ac_cv_prog_RANLIB"; then
6168  ac_ct_RANLIB=$RANLIB
6169  # Extract the first word of "ranlib", so it can be a program name with args.
6170set dummy ranlib; ac_word=$2
6171echo "$as_me:$LINENO: checking for $ac_word" >&5
6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6174  echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
6176  if test -n "$ac_ct_RANLIB"; then
6177  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6178else
6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180for as_dir in $PATH
6181do
6182  IFS=$as_save_IFS
6183  test -z "$as_dir" && as_dir=.
6184  for ac_exec_ext in '' $ac_executable_extensions; do
6185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186    ac_cv_prog_ac_ct_RANLIB="ranlib"
6187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188    break 2
6189  fi
6190done
6191done
6192
6193  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6194fi
6195fi
6196ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6197if test -n "$ac_ct_RANLIB"; then
6198  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6199echo "${ECHO_T}$ac_ct_RANLIB" >&6
6200else
6201  echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6
6203fi
6204
6205  RANLIB=$ac_ct_RANLIB
6206else
6207  RANLIB="$ac_cv_prog_RANLIB"
6208fi
6209
6210if test -n "$ac_tool_prefix"; then
6211  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6212set dummy ${ac_tool_prefix}strip; ac_word=$2
6213echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6215if test "${ac_cv_prog_STRIP+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218  if test -n "$STRIP"; then
6219  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226  for ac_exec_ext in '' $ac_executable_extensions; do
6227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233done
6234
6235fi
6236fi
6237STRIP=$ac_cv_prog_STRIP
6238if test -n "$STRIP"; then
6239  echo "$as_me:$LINENO: result: $STRIP" >&5
6240echo "${ECHO_T}$STRIP" >&6
6241else
6242  echo "$as_me:$LINENO: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244fi
6245
6246fi
6247if test -z "$ac_cv_prog_STRIP"; then
6248  ac_ct_STRIP=$STRIP
6249  # Extract the first word of "strip", so it can be a program name with args.
6250set dummy strip; ac_word=$2
6251echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  if test -n "$ac_ct_STRIP"; then
6257  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262  IFS=$as_save_IFS
6263  test -z "$as_dir" && as_dir=.
6264  for ac_exec_ext in '' $ac_executable_extensions; do
6265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266    ac_cv_prog_ac_ct_STRIP="strip"
6267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271done
6272
6273  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6274fi
6275fi
6276ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6277if test -n "$ac_ct_STRIP"; then
6278  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6279echo "${ECHO_T}$ac_ct_STRIP" >&6
6280else
6281  echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
6283fi
6284
6285  STRIP=$ac_ct_STRIP
6286else
6287  STRIP="$ac_cv_prog_STRIP"
6288fi
6289
6290
6291old_CC="$CC"
6292old_CFLAGS="$CFLAGS"
6293
6294# Set sane defaults for various variables
6295test -z "$AR" && AR=ar
6296test -z "$AR_FLAGS" && AR_FLAGS=cru
6297test -z "$AS" && AS=as
6298test -z "$CC" && CC=cc
6299test -z "$LTCC" && LTCC=$CC
6300test -z "$DLLTOOL" && DLLTOOL=dlltool
6301test -z "$LD" && LD=ld
6302test -z "$LN_S" && LN_S="ln -s"
6303test -z "$MAGIC_CMD" && MAGIC_CMD=file
6304test -z "$NM" && NM=nm
6305test -z "$SED" && SED=sed
6306test -z "$OBJDUMP" && OBJDUMP=objdump
6307test -z "$RANLIB" && RANLIB=:
6308test -z "$STRIP" && STRIP=:
6309test -z "$ac_objext" && ac_objext=o
6310
6311# Determine commands to create old-style static archives.
6312old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6313old_postinstall_cmds='chmod 644 $oldlib'
6314old_postuninstall_cmds=
6315
6316if test -n "$RANLIB"; then
6317  case $host_os in
6318  openbsd*)
6319    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6320    ;;
6321  *)
6322    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6323    ;;
6324  esac
6325  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6326fi
6327
6328for cc_temp in $compiler""; do
6329  case $cc_temp in
6330    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6331    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6332    \-*) ;;
6333    *) break;;
6334  esac
6335done
6336cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6337
6338
6339# Only perform the check for file, if the check method requires it
6340case $deplibs_check_method in
6341file_magic*)
6342  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6343    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6344echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6345if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  case $MAGIC_CMD in
6349[\\/*] |  ?:[\\/]*)
6350  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6351  ;;
6352*)
6353  lt_save_MAGIC_CMD="$MAGIC_CMD"
6354  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6355  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6356  for ac_dir in $ac_dummy; do
6357    IFS="$lt_save_ifs"
6358    test -z "$ac_dir" && ac_dir=.
6359    if test -f $ac_dir/${ac_tool_prefix}file; then
6360      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6361      if test -n "$file_magic_test_file"; then
6362	case $deplibs_check_method in
6363	"file_magic "*)
6364	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6365	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6366	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6367	    $EGREP "$file_magic_regex" > /dev/null; then
6368	    :
6369	  else
6370	    cat <<EOF 1>&2
6371
6372*** Warning: the command libtool uses to detect shared libraries,
6373*** $file_magic_cmd, produces output that libtool cannot recognize.
6374*** The result is that libtool may fail to recognize shared libraries
6375*** as such.  This will affect the creation of libtool libraries that
6376*** depend on shared libraries, but programs linked with such libtool
6377*** libraries will work regardless of this problem.  Nevertheless, you
6378*** may want to report the problem to your system manager and/or to
6379*** bug-libtool@gnu.org
6380
6381EOF
6382	  fi ;;
6383	esac
6384      fi
6385      break
6386    fi
6387  done
6388  IFS="$lt_save_ifs"
6389  MAGIC_CMD="$lt_save_MAGIC_CMD"
6390  ;;
6391esac
6392fi
6393
6394MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6395if test -n "$MAGIC_CMD"; then
6396  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6397echo "${ECHO_T}$MAGIC_CMD" >&6
6398else
6399  echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6
6401fi
6402
6403if test -z "$lt_cv_path_MAGIC_CMD"; then
6404  if test -n "$ac_tool_prefix"; then
6405    echo "$as_me:$LINENO: checking for file" >&5
6406echo $ECHO_N "checking for file... $ECHO_C" >&6
6407if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6408  echo $ECHO_N "(cached) $ECHO_C" >&6
6409else
6410  case $MAGIC_CMD in
6411[\\/*] |  ?:[\\/]*)
6412  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6413  ;;
6414*)
6415  lt_save_MAGIC_CMD="$MAGIC_CMD"
6416  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6417  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6418  for ac_dir in $ac_dummy; do
6419    IFS="$lt_save_ifs"
6420    test -z "$ac_dir" && ac_dir=.
6421    if test -f $ac_dir/file; then
6422      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6423      if test -n "$file_magic_test_file"; then
6424	case $deplibs_check_method in
6425	"file_magic "*)
6426	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6427	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6428	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6429	    $EGREP "$file_magic_regex" > /dev/null; then
6430	    :
6431	  else
6432	    cat <<EOF 1>&2
6433
6434*** Warning: the command libtool uses to detect shared libraries,
6435*** $file_magic_cmd, produces output that libtool cannot recognize.
6436*** The result is that libtool may fail to recognize shared libraries
6437*** as such.  This will affect the creation of libtool libraries that
6438*** depend on shared libraries, but programs linked with such libtool
6439*** libraries will work regardless of this problem.  Nevertheless, you
6440*** may want to report the problem to your system manager and/or to
6441*** bug-libtool@gnu.org
6442
6443EOF
6444	  fi ;;
6445	esac
6446      fi
6447      break
6448    fi
6449  done
6450  IFS="$lt_save_ifs"
6451  MAGIC_CMD="$lt_save_MAGIC_CMD"
6452  ;;
6453esac
6454fi
6455
6456MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6457if test -n "$MAGIC_CMD"; then
6458  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6459echo "${ECHO_T}$MAGIC_CMD" >&6
6460else
6461  echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463fi
6464
6465  else
6466    MAGIC_CMD=:
6467  fi
6468fi
6469
6470  fi
6471  ;;
6472esac
6473
6474enable_dlopen=no
6475enable_win32_dll=no
6476
6477# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6478if test "${enable_libtool_lock+set}" = set; then
6479  enableval="$enable_libtool_lock"
6480
6481fi;
6482test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6483
6484
6485# Check whether --with-pic or --without-pic was given.
6486if test "${with_pic+set}" = set; then
6487  withval="$with_pic"
6488  pic_mode="$withval"
6489else
6490  pic_mode=default
6491fi;
6492test -z "$pic_mode" && pic_mode=default
6493
6494# Use C for the default configuration in the libtool script
6495tagname=
6496lt_save_CC="$CC"
6497ac_ext=c
6498ac_cpp='$CPP $CPPFLAGS'
6499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6501ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502
6503
6504# Source file extension for C test sources.
6505ac_ext=c
6506
6507# Object file extension for compiled C test sources.
6508objext=o
6509objext=$objext
6510
6511# Code to be used in simple compile tests
6512lt_simple_compile_test_code="int some_variable = 0;\n"
6513
6514# Code to be used in simple link tests
6515lt_simple_link_test_code='int main(){return(0);}\n'
6516
6517
6518# If no C compiler was specified, use CC.
6519LTCC=${LTCC-"$CC"}
6520
6521# Allow CC to be a program name with arguments.
6522compiler=$CC
6523
6524
6525# save warnings/boilerplate of simple test code
6526ac_outfile=conftest.$ac_objext
6527printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6528eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6529_lt_compiler_boilerplate=`cat conftest.err`
6530$rm conftest*
6531
6532ac_outfile=conftest.$ac_objext
6533printf "$lt_simple_link_test_code" >conftest.$ac_ext
6534eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6535_lt_linker_boilerplate=`cat conftest.err`
6536$rm conftest*
6537
6538
6539#
6540# Check for any special shared library compilation flags.
6541#
6542lt_prog_cc_shlib=
6543if test "$GCC" = no; then
6544  case $host_os in
6545  sco3.2v5*)
6546    lt_prog_cc_shlib='-belf'
6547    ;;
6548  esac
6549fi
6550if test -n "$lt_prog_cc_shlib"; then
6551  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6552echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6553  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6554  else
6555    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6556echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6557    lt_cv_prog_cc_can_build_shared=no
6558  fi
6559fi
6560
6561
6562#
6563# Check to make sure the static flag actually works.
6564#
6565echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6566echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6567if test "${lt_prog_compiler_static_works+set}" = set; then
6568  echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570  lt_prog_compiler_static_works=no
6571   save_LDFLAGS="$LDFLAGS"
6572   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6573   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6574   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6575     # The linker can only warn and ignore the option if not recognized
6576     # So say no if there are warnings
6577     if test -s conftest.err; then
6578       # Append any errors to the config.log.
6579       cat conftest.err 1>&5
6580       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6581       $SED '/^$/d' conftest.err >conftest.er2
6582       if diff conftest.exp conftest.er2 >/dev/null; then
6583         lt_prog_compiler_static_works=yes
6584       fi
6585     else
6586       lt_prog_compiler_static_works=yes
6587     fi
6588   fi
6589   $rm conftest*
6590   LDFLAGS="$save_LDFLAGS"
6591
6592fi
6593echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6594echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6595
6596if test x"$lt_prog_compiler_static_works" = xyes; then
6597    :
6598else
6599    lt_prog_compiler_static=
6600fi
6601
6602
6603
6604
6605lt_prog_compiler_no_builtin_flag=
6606
6607if test "$GCC" = yes; then
6608  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6609
6610
6611echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6612echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6613if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6614  echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616  lt_cv_prog_compiler_rtti_exceptions=no
6617  ac_outfile=conftest.$ac_objext
6618   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6619   lt_compiler_flag="-fno-rtti -fno-exceptions"
6620   # Insert the option either (1) after the last *FLAGS variable, or
6621   # (2) before a word containing "conftest.", or (3) at the end.
6622   # Note that $ac_compile itself does not contain backslashes and begins
6623   # with a dollar sign (not a hyphen), so the echo should work correctly.
6624   # The option is referenced via a variable to avoid confusing sed.
6625   lt_compile=`echo "$ac_compile" | $SED \
6626   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6627   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6628   -e 's:$: $lt_compiler_flag:'`
6629   (eval echo "\"\$as_me:6877: $lt_compile\"" >&5)
6630   (eval "$lt_compile" 2>conftest.err)
6631   ac_status=$?
6632   cat conftest.err >&5
6633   echo "$as_me:6881: \$? = $ac_status" >&5
6634   if (exit $ac_status) && test -s "$ac_outfile"; then
6635     # The compiler can only warn and ignore the option if not recognized
6636     # So say no if there are warnings other than the usual output.
6637     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6638     $SED '/^$/d' conftest.err >conftest.er2
6639     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6640       lt_cv_prog_compiler_rtti_exceptions=yes
6641     fi
6642   fi
6643   $rm conftest*
6644
6645fi
6646echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6647echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6648
6649if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6650    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6651else
6652    :
6653fi
6654
6655fi
6656
6657lt_prog_compiler_wl=
6658lt_prog_compiler_pic=
6659lt_prog_compiler_static=
6660
6661echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6662echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6663
6664  if test "$GCC" = yes; then
6665    lt_prog_compiler_wl='-Wl,'
6666    lt_prog_compiler_static='-static'
6667
6668    case $host_os in
6669      aix*)
6670      # All AIX code is PIC.
6671      if test "$host_cpu" = ia64; then
6672	# AIX 5 now supports IA64 processor
6673	lt_prog_compiler_static='-Bstatic'
6674      fi
6675      ;;
6676
6677    amigaos*)
6678      # FIXME: we need at least 68020 code to build shared libraries, but
6679      # adding the `-m68020' flag to GCC prevents building anything better,
6680      # like `-m68040'.
6681      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6682      ;;
6683
6684    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6685      # PIC is the default for these OSes.
6686      ;;
6687
6688    mingw* | pw32* | os2*)
6689      # This hack is so that the source file can tell whether it is being
6690      # built for inclusion in a dll (and should export symbols for example).
6691      lt_prog_compiler_pic='-DDLL_EXPORT'
6692      ;;
6693
6694    darwin* | rhapsody*)
6695      # PIC is the default on this platform
6696      # Common symbols not allowed in MH_DYLIB files
6697      lt_prog_compiler_pic='-fno-common'
6698      ;;
6699
6700    msdosdjgpp*)
6701      # Just because we use GCC doesn't mean we suddenly get shared libraries
6702      # on systems that don't support them.
6703      lt_prog_compiler_can_build_shared=no
6704      enable_shared=no
6705      ;;
6706
6707    sysv4*MP*)
6708      if test -d /usr/nec; then
6709	lt_prog_compiler_pic=-Kconform_pic
6710      fi
6711      ;;
6712
6713    hpux*)
6714      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6715      # not for PA HP-UX.
6716      case $host_cpu in
6717      hppa*64*|ia64*)
6718	# +Z the default
6719	;;
6720      *)
6721	lt_prog_compiler_pic='-fPIC'
6722	;;
6723      esac
6724      ;;
6725
6726    *)
6727      lt_prog_compiler_pic='-fPIC'
6728      ;;
6729    esac
6730  else
6731    # PORTME Check for flag to pass linker flags through the system compiler.
6732    case $host_os in
6733    aix*)
6734      lt_prog_compiler_wl='-Wl,'
6735      if test "$host_cpu" = ia64; then
6736	# AIX 5 now supports IA64 processor
6737	lt_prog_compiler_static='-Bstatic'
6738      else
6739	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6740      fi
6741      ;;
6742      darwin*)
6743        # PIC is the default on this platform
6744        # Common symbols not allowed in MH_DYLIB files
6745       case $cc_basename in
6746         xlc*)
6747         lt_prog_compiler_pic='-qnocommon'
6748         lt_prog_compiler_wl='-Wl,'
6749         ;;
6750       esac
6751       ;;
6752
6753    mingw* | pw32* | os2*)
6754      # This hack is so that the source file can tell whether it is being
6755      # built for inclusion in a dll (and should export symbols for example).
6756      lt_prog_compiler_pic='-DDLL_EXPORT'
6757      ;;
6758
6759    hpux9* | hpux10* | hpux11*)
6760      lt_prog_compiler_wl='-Wl,'
6761      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6762      # not for PA HP-UX.
6763      case $host_cpu in
6764      hppa*64*|ia64*)
6765	# +Z the default
6766	;;
6767      *)
6768	lt_prog_compiler_pic='+Z'
6769	;;
6770      esac
6771      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6772      lt_prog_compiler_static='${wl}-a ${wl}archive'
6773      ;;
6774
6775    irix5* | irix6* | nonstopux*)
6776      lt_prog_compiler_wl='-Wl,'
6777      # PIC (with -KPIC) is the default.
6778      lt_prog_compiler_static='-non_shared'
6779      ;;
6780
6781    newsos6)
6782      lt_prog_compiler_pic='-KPIC'
6783      lt_prog_compiler_static='-Bstatic'
6784      ;;
6785
6786    linux*)
6787      case $cc_basename in
6788      icc* | ecc*)
6789	lt_prog_compiler_wl='-Wl,'
6790	lt_prog_compiler_pic='-KPIC'
6791	lt_prog_compiler_static='-static'
6792        ;;
6793      pgcc* | pgf77* | pgf90* | pgf95*)
6794        # Portland Group compilers (*not* the Pentium gcc compiler,
6795	# which looks to be a dead project)
6796	lt_prog_compiler_wl='-Wl,'
6797	lt_prog_compiler_pic='-fpic'
6798	lt_prog_compiler_static='-Bstatic'
6799        ;;
6800      ccc*)
6801        lt_prog_compiler_wl='-Wl,'
6802        # All Alpha code is PIC.
6803        lt_prog_compiler_static='-non_shared'
6804        ;;
6805      esac
6806      ;;
6807
6808    osf3* | osf4* | osf5*)
6809      lt_prog_compiler_wl='-Wl,'
6810      # All OSF/1 code is PIC.
6811      lt_prog_compiler_static='-non_shared'
6812      ;;
6813
6814    sco3.2v5*)
6815      lt_prog_compiler_pic='-Kpic'
6816      lt_prog_compiler_static='-dn'
6817      ;;
6818
6819    solaris*)
6820      lt_prog_compiler_pic='-KPIC'
6821      lt_prog_compiler_static='-Bstatic'
6822      case $cc_basename in
6823      f77* | f90* | f95*)
6824	lt_prog_compiler_wl='-Qoption ld ';;
6825      *)
6826	lt_prog_compiler_wl='-Wl,';;
6827      esac
6828      ;;
6829
6830    sunos4*)
6831      lt_prog_compiler_wl='-Qoption ld '
6832      lt_prog_compiler_pic='-PIC'
6833      lt_prog_compiler_static='-Bstatic'
6834      ;;
6835
6836    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6837      lt_prog_compiler_wl='-Wl,'
6838      lt_prog_compiler_pic='-KPIC'
6839      lt_prog_compiler_static='-Bstatic'
6840      ;;
6841
6842    sysv4*MP*)
6843      if test -d /usr/nec ;then
6844	lt_prog_compiler_pic='-Kconform_pic'
6845	lt_prog_compiler_static='-Bstatic'
6846      fi
6847      ;;
6848
6849    unicos*)
6850      lt_prog_compiler_wl='-Wl,'
6851      lt_prog_compiler_can_build_shared=no
6852      ;;
6853
6854    uts4*)
6855      lt_prog_compiler_pic='-pic'
6856      lt_prog_compiler_static='-Bstatic'
6857      ;;
6858
6859    *)
6860      lt_prog_compiler_can_build_shared=no
6861      ;;
6862    esac
6863  fi
6864
6865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6866echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6867
6868#
6869# Check to make sure the PIC flag actually works.
6870#
6871if test -n "$lt_prog_compiler_pic"; then
6872
6873echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6874echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6875if test "${lt_prog_compiler_pic_works+set}" = set; then
6876  echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878  lt_prog_compiler_pic_works=no
6879  ac_outfile=conftest.$ac_objext
6880   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6881   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6882   # Insert the option either (1) after the last *FLAGS variable, or
6883   # (2) before a word containing "conftest.", or (3) at the end.
6884   # Note that $ac_compile itself does not contain backslashes and begins
6885   # with a dollar sign (not a hyphen), so the echo should work correctly.
6886   # The option is referenced via a variable to avoid confusing sed.
6887   lt_compile=`echo "$ac_compile" | $SED \
6888   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6889   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6890   -e 's:$: $lt_compiler_flag:'`
6891   (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
6892   (eval "$lt_compile" 2>conftest.err)
6893   ac_status=$?
6894   cat conftest.err >&5
6895   echo "$as_me:7143: \$? = $ac_status" >&5
6896   if (exit $ac_status) && test -s "$ac_outfile"; then
6897     # The compiler can only warn and ignore the option if not recognized
6898     # So say no if there are warnings other than the usual output.
6899     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6900     $SED '/^$/d' conftest.err >conftest.er2
6901     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6902       lt_prog_compiler_pic_works=yes
6903     fi
6904   fi
6905   $rm conftest*
6906
6907fi
6908echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6909echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6910
6911if test x"$lt_prog_compiler_pic_works" = xyes; then
6912    case $lt_prog_compiler_pic in
6913     "" | " "*) ;;
6914     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6915     esac
6916else
6917    lt_prog_compiler_pic=
6918     lt_prog_compiler_can_build_shared=no
6919fi
6920
6921fi
6922case $host_os in
6923  # For platforms which do not support PIC, -DPIC is meaningless:
6924  *djgpp*)
6925    lt_prog_compiler_pic=
6926    ;;
6927  *)
6928    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6929    ;;
6930esac
6931
6932echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6933echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6934if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6935  echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937  lt_cv_prog_compiler_c_o=no
6938   $rm -r conftest 2>/dev/null
6939   mkdir conftest
6940   cd conftest
6941   mkdir out
6942   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6943
6944   lt_compiler_flag="-o out/conftest2.$ac_objext"
6945   # Insert the option either (1) after the last *FLAGS variable, or
6946   # (2) before a word containing "conftest.", or (3) at the end.
6947   # Note that $ac_compile itself does not contain backslashes and begins
6948   # with a dollar sign (not a hyphen), so the echo should work correctly.
6949   lt_compile=`echo "$ac_compile" | $SED \
6950   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6951   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6952   -e 's:$: $lt_compiler_flag:'`
6953   (eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
6954   (eval "$lt_compile" 2>out/conftest.err)
6955   ac_status=$?
6956   cat out/conftest.err >&5
6957   echo "$as_me:7205: \$? = $ac_status" >&5
6958   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6959   then
6960     # The compiler can only warn and ignore the option if not recognized
6961     # So say no if there are warnings
6962     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6963     $SED '/^$/d' out/conftest.err >out/conftest.er2
6964     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6965       lt_cv_prog_compiler_c_o=yes
6966     fi
6967   fi
6968   chmod u+w . 2>&5
6969   $rm conftest*
6970   # SGI C++ compiler will create directory out/ii_files/ for
6971   # template instantiation
6972   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6973   $rm out/* && rmdir out
6974   cd ..
6975   rmdir conftest
6976   $rm conftest*
6977
6978fi
6979echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6980echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6981
6982
6983hard_links="nottested"
6984if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6985  # do not overwrite the value of need_locks provided by the user
6986  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6987echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6988  hard_links=yes
6989  $rm conftest*
6990  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6991  touch conftest.a
6992  ln conftest.a conftest.b 2>&5 || hard_links=no
6993  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6994  echo "$as_me:$LINENO: result: $hard_links" >&5
6995echo "${ECHO_T}$hard_links" >&6
6996  if test "$hard_links" = no; then
6997    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6998echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6999    need_locks=warn
7000  fi
7001else
7002  need_locks=no
7003fi
7004
7005echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7006echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7007
7008  runpath_var=
7009  allow_undefined_flag=
7010  enable_shared_with_static_runtimes=no
7011  archive_cmds=
7012  archive_expsym_cmds=
7013  old_archive_From_new_cmds=
7014  old_archive_from_expsyms_cmds=
7015  export_dynamic_flag_spec=
7016  whole_archive_flag_spec=
7017  thread_safe_flag_spec=
7018  hardcode_libdir_flag_spec=
7019  hardcode_libdir_flag_spec_ld=
7020  hardcode_libdir_separator=
7021  hardcode_direct=no
7022  hardcode_minus_L=no
7023  hardcode_shlibpath_var=unsupported
7024  link_all_deplibs=unknown
7025  hardcode_automatic=no
7026  module_cmds=
7027  module_expsym_cmds=
7028  always_export_symbols=no
7029  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7030  # include_expsyms should be a list of space-separated symbols to be *always*
7031  # included in the symbol list
7032  include_expsyms=
7033  # exclude_expsyms can be an extended regexp of symbols to exclude
7034  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7035  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7036  # as well as any symbol that contains `d'.
7037  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7038  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7039  # platforms (ab)use it in PIC code, but their linkers get confused if
7040  # the symbol is explicitly referenced.  Since portable code cannot
7041  # rely on this symbol name, it's probably fine to never include it in
7042  # preloaded symbol tables.
7043  extract_expsyms_cmds=
7044  # Just being paranoid about ensuring that cc_basename is set.
7045  for cc_temp in $compiler""; do
7046  case $cc_temp in
7047    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7048    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7049    \-*) ;;
7050    *) break;;
7051  esac
7052done
7053cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7054
7055  case $host_os in
7056  cygwin* | mingw* | pw32*)
7057    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7058    # When not using gcc, we currently assume that we are using
7059    # Microsoft Visual C++.
7060    if test "$GCC" != yes; then
7061      with_gnu_ld=no
7062    fi
7063    ;;
7064  openbsd*)
7065    with_gnu_ld=no
7066    ;;
7067  esac
7068
7069  ld_shlibs=yes
7070  if test "$with_gnu_ld" = yes; then
7071    # If archive_cmds runs LD, not CC, wlarc should be empty
7072    wlarc='${wl}'
7073
7074    # Set some defaults for GNU ld with shared library support. These
7075    # are reset later if shared libraries are not supported. Putting them
7076    # here allows them to be overridden if necessary.
7077    runpath_var=LD_RUN_PATH
7078    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7079    export_dynamic_flag_spec='${wl}--export-dynamic'
7080    # ancient GNU ld didn't support --whole-archive et. al.
7081    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7082	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7083      else
7084  	whole_archive_flag_spec=
7085    fi
7086    supports_anon_versioning=no
7087    case `$LD -v 2>/dev/null` in
7088      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7089      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7090      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7091      *\ 2.11.*) ;; # other 2.11 versions
7092      *) supports_anon_versioning=yes ;;
7093    esac
7094
7095    # See if GNU ld supports shared libraries.
7096    case $host_os in
7097    aix3* | aix4* | aix5*)
7098      # On AIX/PPC, the GNU linker is very broken
7099      if test "$host_cpu" != ia64; then
7100	ld_shlibs=no
7101	cat <<EOF 1>&2
7102
7103*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7104*** to be unable to reliably create shared libraries on AIX.
7105*** Therefore, libtool is disabling shared libraries support.  If you
7106*** really care for shared libraries, you may want to modify your PATH
7107*** so that a non-GNU linker is found, and then restart.
7108
7109EOF
7110      fi
7111      ;;
7112
7113    amigaos*)
7114      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)'
7115      hardcode_libdir_flag_spec='-L$libdir'
7116      hardcode_minus_L=yes
7117
7118      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7119      # that the semantics of dynamic libraries on AmigaOS, at least up
7120      # to version 4, is to share data among multiple programs linked
7121      # with the same dynamic library.  Since this doesn't match the
7122      # behavior of shared libraries on other platforms, we can't use
7123      # them.
7124      ld_shlibs=no
7125      ;;
7126
7127    beos*)
7128      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7129	allow_undefined_flag=unsupported
7130	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7131	# support --undefined.  This deserves some investigation.  FIXME
7132	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7133      else
7134	ld_shlibs=no
7135      fi
7136      ;;
7137
7138    cygwin* | mingw* | pw32*)
7139      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7140      # as there is no search path for DLLs.
7141      hardcode_libdir_flag_spec='-L$libdir'
7142      allow_undefined_flag=unsupported
7143      always_export_symbols=no
7144      enable_shared_with_static_runtimes=yes
7145      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7146
7147      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7148        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7149	# If the export-symbols file already is a .def file (1st line
7150	# is EXPORTS), use it as is; otherwise, prepend...
7151	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7152	  cp $export_symbols $output_objdir/$soname.def;
7153	else
7154	  echo EXPORTS > $output_objdir/$soname.def;
7155	  cat $export_symbols >> $output_objdir/$soname.def;
7156	fi~
7157	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7158      else
7159	ld_shlibs=no
7160      fi
7161      ;;
7162
7163    linux*)
7164      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7165	tmp_addflag=
7166	case $cc_basename,$host_cpu in
7167	pgcc*)				# Portland Group C compiler
7168	  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'
7169	  tmp_addflag=' $pic_flag'
7170	  ;;
7171	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7172	  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'
7173	  tmp_addflag=' $pic_flag -Mnomain' ;;
7174	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7175	  tmp_addflag=' -i_dynamic' ;;
7176	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7177	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7178	ifc* | ifort*)			# Intel Fortran compiler
7179	  tmp_addflag=' -nofor_main' ;;
7180	esac
7181	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7182
7183	if test $supports_anon_versioning = yes; then
7184	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7185  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7186  $echo "local: *; };" >> $output_objdir/$libname.ver~
7187	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7188	fi
7189      else
7190	ld_shlibs=no
7191      fi
7192      ;;
7193
7194    netbsd*)
7195      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7196	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7197	wlarc=
7198      else
7199	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7200	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7201      fi
7202      ;;
7203
7204    solaris* | sysv5*)
7205      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7206	ld_shlibs=no
7207	cat <<EOF 1>&2
7208
7209*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7210*** create shared libraries on Solaris systems.  Therefore, libtool
7211*** is disabling shared libraries support.  We urge you to upgrade GNU
7212*** binutils to release 2.9.1 or newer.  Another option is to modify
7213*** your PATH or compiler configuration so that the native linker is
7214*** used, and then restart.
7215
7216EOF
7217      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7218	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7220      else
7221	ld_shlibs=no
7222      fi
7223      ;;
7224
7225    sunos4*)
7226      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7227      wlarc=
7228      hardcode_direct=yes
7229      hardcode_shlibpath_var=no
7230      ;;
7231
7232    *)
7233      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7234	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7235	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7236      else
7237	ld_shlibs=no
7238      fi
7239      ;;
7240    esac
7241
7242    if test "$ld_shlibs" = no; then
7243      runpath_var=
7244      hardcode_libdir_flag_spec=
7245      export_dynamic_flag_spec=
7246      whole_archive_flag_spec=
7247    fi
7248  else
7249    # PORTME fill in a description of your system's linker (not GNU ld)
7250    case $host_os in
7251    aix3*)
7252      allow_undefined_flag=unsupported
7253      always_export_symbols=yes
7254      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'
7255      # Note: this linker hardcodes the directories in LIBPATH if there
7256      # are no directories specified by -L.
7257      hardcode_minus_L=yes
7258      if test "$GCC" = yes && test -z "$link_static_flag"; then
7259	# Neither direct hardcoding nor static linking is supported with a
7260	# broken collect2.
7261	hardcode_direct=unsupported
7262      fi
7263      ;;
7264
7265    aix4* | aix5*)
7266      if test "$host_cpu" = ia64; then
7267	# On IA64, the linker does run time linking by default, so we don't
7268	# have to do anything special.
7269	aix_use_runtimelinking=no
7270	exp_sym_flag='-Bexport'
7271	no_entry_flag=""
7272      else
7273	# If we're using GNU nm, then we don't want the "-C" option.
7274	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7275	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7276	  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'
7277	else
7278	  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'
7279	fi
7280	aix_use_runtimelinking=no
7281
7282	# Test if we are trying to use run time linking or normal
7283	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7284	# need to do runtime linking.
7285	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7286	  for ld_flag in $LDFLAGS; do
7287  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7288  	    aix_use_runtimelinking=yes
7289  	    break
7290  	  fi
7291	  done
7292	esac
7293
7294	exp_sym_flag='-bexport'
7295	no_entry_flag='-bnoentry'
7296      fi
7297
7298      # When large executables or shared objects are built, AIX ld can
7299      # have problems creating the table of contents.  If linking a library
7300      # or program results in "error TOC overflow" add -mminimal-toc to
7301      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7302      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7303
7304      archive_cmds=''
7305      hardcode_direct=yes
7306      hardcode_libdir_separator=':'
7307      link_all_deplibs=yes
7308
7309      if test "$GCC" = yes; then
7310	case $host_os in aix4.[012]|aix4.[012].*)
7311	# We only want to do this on AIX 4.2 and lower, the check
7312	# below for broken collect2 doesn't work under 4.3+
7313	  collect2name=`${CC} -print-prog-name=collect2`
7314	  if test -f "$collect2name" && \
7315  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7316	  then
7317  	  # We have reworked collect2
7318  	  hardcode_direct=yes
7319	  else
7320  	  # We have old collect2
7321  	  hardcode_direct=unsupported
7322  	  # It fails to find uninstalled libraries when the uninstalled
7323  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7324  	  # to unsupported forces relinking
7325  	  hardcode_minus_L=yes
7326  	  hardcode_libdir_flag_spec='-L$libdir'
7327  	  hardcode_libdir_separator=
7328	  fi
7329	esac
7330	shared_flag='-shared'
7331	if test "$aix_use_runtimelinking" = yes; then
7332	  shared_flag="$shared_flag "'${wl}-G'
7333	fi
7334      else
7335	# not using gcc
7336	if test "$host_cpu" = ia64; then
7337  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7338  	# chokes on -Wl,-G. The following line is correct:
7339	  shared_flag='-G'
7340	else
7341  	if test "$aix_use_runtimelinking" = yes; then
7342	    shared_flag='${wl}-G'
7343	  else
7344	    shared_flag='${wl}-bM:SRE'
7345  	fi
7346	fi
7347      fi
7348
7349      # It seems that -bexpall does not export symbols beginning with
7350      # underscore (_), so it is better to generate a list of symbols to export.
7351      always_export_symbols=yes
7352      if test "$aix_use_runtimelinking" = yes; then
7353	# Warning - without using the other runtime loading flags (-brtl),
7354	# -berok will link without error, but may produce a broken library.
7355	allow_undefined_flag='-berok'
7356       # Determine the default libpath from the value encoded in an empty executable.
7357       cat >conftest.$ac_ext <<_ACEOF
7358/* confdefs.h.  */
7359_ACEOF
7360cat confdefs.h >>conftest.$ac_ext
7361cat >>conftest.$ac_ext <<_ACEOF
7362/* end confdefs.h.  */
7363
7364int
7365main ()
7366{
7367
7368  ;
7369  return 0;
7370}
7371_ACEOF
7372rm -f conftest.$ac_objext conftest$ac_exeext
7373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374  (eval $ac_link) 2>conftest.er1
7375  ac_status=$?
7376  grep -v '^ *+' conftest.er1 >conftest.err
7377  rm -f conftest.er1
7378  cat conftest.err >&5
7379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380  (exit $ac_status); } &&
7381	 { ac_try='test -z "$ac_c_werror_flag"
7382			 || test ! -s conftest.err'
7383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384  (eval $ac_try) 2>&5
7385  ac_status=$?
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); }; } &&
7388	 { ac_try='test -s conftest$ac_exeext'
7389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390  (eval $ac_try) 2>&5
7391  ac_status=$?
7392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393  (exit $ac_status); }; }; then
7394
7395aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7396}'`
7397# Check for a 64-bit object if we didn't find anything.
7398if 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; }
7399}'`; fi
7400else
7401  echo "$as_me: failed program was:" >&5
7402sed 's/^/| /' conftest.$ac_ext >&5
7403
7404fi
7405rm -f conftest.err conftest.$ac_objext \
7406      conftest$ac_exeext conftest.$ac_ext
7407if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7408
7409       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7410	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"
7411       else
7412	if test "$host_cpu" = ia64; then
7413	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7414	  allow_undefined_flag="-z nodefs"
7415	  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"
7416	else
7417	 # Determine the default libpath from the value encoded in an empty executable.
7418	 cat >conftest.$ac_ext <<_ACEOF
7419/* confdefs.h.  */
7420_ACEOF
7421cat confdefs.h >>conftest.$ac_ext
7422cat >>conftest.$ac_ext <<_ACEOF
7423/* end confdefs.h.  */
7424
7425int
7426main ()
7427{
7428
7429  ;
7430  return 0;
7431}
7432_ACEOF
7433rm -f conftest.$ac_objext conftest$ac_exeext
7434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435  (eval $ac_link) 2>conftest.er1
7436  ac_status=$?
7437  grep -v '^ *+' conftest.er1 >conftest.err
7438  rm -f conftest.er1
7439  cat conftest.err >&5
7440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441  (exit $ac_status); } &&
7442	 { ac_try='test -z "$ac_c_werror_flag"
7443			 || test ! -s conftest.err'
7444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445  (eval $ac_try) 2>&5
7446  ac_status=$?
7447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448  (exit $ac_status); }; } &&
7449	 { ac_try='test -s conftest$ac_exeext'
7450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451  (eval $ac_try) 2>&5
7452  ac_status=$?
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); }; }; then
7455
7456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7457}'`
7458# Check for a 64-bit object if we didn't find anything.
7459if 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; }
7460}'`; fi
7461else
7462  echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
7465fi
7466rm -f conftest.err conftest.$ac_objext \
7467      conftest$ac_exeext conftest.$ac_ext
7468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7469
7470	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7471	  # Warning - without using the other run time loading flags,
7472	  # -berok will link without error, but may produce a broken library.
7473	  no_undefined_flag=' ${wl}-bernotok'
7474	  allow_undefined_flag=' ${wl}-berok'
7475	  # -bexpall does not export symbols beginning with underscore (_)
7476	  always_export_symbols=yes
7477	  # Exported symbols can be pulled into shared objects from archives
7478	  whole_archive_flag_spec=' '
7479	  archive_cmds_need_lc=yes
7480	  # This is similar to how AIX traditionally builds its shared libraries.
7481	  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'
7482	fi
7483      fi
7484      ;;
7485
7486    amigaos*)
7487      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)'
7488      hardcode_libdir_flag_spec='-L$libdir'
7489      hardcode_minus_L=yes
7490      # see comment about different semantics on the GNU ld section
7491      ld_shlibs=no
7492      ;;
7493
7494    bsdi[45]*)
7495      export_dynamic_flag_spec=-rdynamic
7496      ;;
7497
7498    cygwin* | mingw* | pw32*)
7499      # When not using gcc, we currently assume that we are using
7500      # Microsoft Visual C++.
7501      # hardcode_libdir_flag_spec is actually meaningless, as there is
7502      # no search path for DLLs.
7503      hardcode_libdir_flag_spec=' '
7504      allow_undefined_flag=unsupported
7505      # Tell ltmain to make .lib files, not .a files.
7506      libext=lib
7507      # Tell ltmain to make .dll files, not .so files.
7508      shrext_cmds=".dll"
7509      # FIXME: Setting linknames here is a bad hack.
7510      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7511      # The linker will automatically build a .lib file if we build a DLL.
7512      old_archive_From_new_cmds='true'
7513      # FIXME: Should let the user specify the lib program.
7514      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7515      fix_srcfile_path='`cygpath -w "$srcfile"`'
7516      enable_shared_with_static_runtimes=yes
7517      ;;
7518
7519    darwin* | rhapsody*)
7520      case $host_os in
7521        rhapsody* | darwin1.[012])
7522         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7523         ;;
7524       *) # Darwin 1.3 on
7525         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7526           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7527         else
7528           case ${MACOSX_DEPLOYMENT_TARGET} in
7529             10.[012])
7530               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7531               ;;
7532             10.*)
7533               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7534               ;;
7535           esac
7536         fi
7537         ;;
7538      esac
7539      archive_cmds_need_lc=no
7540      hardcode_direct=no
7541      hardcode_automatic=yes
7542      hardcode_shlibpath_var=unsupported
7543      whole_archive_flag_spec=''
7544      link_all_deplibs=yes
7545    if test "$GCC" = yes ; then
7546    	output_verbose_link_cmd='echo'
7547        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7548      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7549      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7550      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}'
7551      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}'
7552    else
7553      case $cc_basename in
7554        xlc*)
7555         output_verbose_link_cmd='echo'
7556         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7557         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7558          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7559         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}'
7560          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}'
7561          ;;
7562       *)
7563         ld_shlibs=no
7564          ;;
7565      esac
7566    fi
7567      ;;
7568
7569    dgux*)
7570      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7571      hardcode_libdir_flag_spec='-L$libdir'
7572      hardcode_shlibpath_var=no
7573      ;;
7574
7575    freebsd1*)
7576      ld_shlibs=no
7577      ;;
7578
7579    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7580    # support.  Future versions do this automatically, but an explicit c++rt0.o
7581    # does not break anything, and helps significantly (at the cost of a little
7582    # extra space).
7583    freebsd2.2*)
7584      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7585      hardcode_libdir_flag_spec='-R$libdir'
7586      hardcode_direct=yes
7587      hardcode_shlibpath_var=no
7588      ;;
7589
7590    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7591    freebsd2*)
7592      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7593      hardcode_direct=yes
7594      hardcode_minus_L=yes
7595      hardcode_shlibpath_var=no
7596      ;;
7597
7598    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7599    freebsd* | kfreebsd*-gnu | dragonfly*)
7600      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7601      hardcode_libdir_flag_spec='-R$libdir'
7602      hardcode_direct=yes
7603      hardcode_shlibpath_var=no
7604      ;;
7605
7606    hpux9*)
7607      if test "$GCC" = yes; then
7608	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'
7609      else
7610	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'
7611      fi
7612      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7613      hardcode_libdir_separator=:
7614      hardcode_direct=yes
7615
7616      # hardcode_minus_L: Not really in the search PATH,
7617      # but as the default location of the library.
7618      hardcode_minus_L=yes
7619      export_dynamic_flag_spec='${wl}-E'
7620      ;;
7621
7622    hpux10* | hpux11*)
7623      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7624	case $host_cpu in
7625	hppa*64*|ia64*)
7626	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7627	  ;;
7628	*)
7629	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7630	  ;;
7631	esac
7632      else
7633	case $host_cpu in
7634	hppa*64*|ia64*)
7635	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7636	  ;;
7637	*)
7638	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7639	  ;;
7640	esac
7641      fi
7642      if test "$with_gnu_ld" = no; then
7643	case $host_cpu in
7644	hppa*64*)
7645	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7646	  hardcode_libdir_flag_spec_ld='+b $libdir'
7647	  hardcode_libdir_separator=:
7648	  hardcode_direct=no
7649	  hardcode_shlibpath_var=no
7650	  ;;
7651	ia64*)
7652	  hardcode_libdir_flag_spec='-L$libdir'
7653	  hardcode_direct=no
7654	  hardcode_shlibpath_var=no
7655
7656	  # hardcode_minus_L: Not really in the search PATH,
7657	  # but as the default location of the library.
7658	  hardcode_minus_L=yes
7659	  ;;
7660	*)
7661	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7662	  hardcode_libdir_separator=:
7663	  hardcode_direct=yes
7664	  export_dynamic_flag_spec='${wl}-E'
7665
7666	  # hardcode_minus_L: Not really in the search PATH,
7667	  # but as the default location of the library.
7668	  hardcode_minus_L=yes
7669	  ;;
7670	esac
7671      fi
7672      ;;
7673
7674    irix5* | irix6* | nonstopux*)
7675      if test "$GCC" = yes; then
7676	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'
7677      else
7678	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'
7679	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7680      fi
7681      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7682      hardcode_libdir_separator=:
7683      link_all_deplibs=yes
7684      ;;
7685
7686    netbsd*)
7687      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7688	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7689      else
7690	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7691      fi
7692      hardcode_libdir_flag_spec='-R$libdir'
7693      hardcode_direct=yes
7694      hardcode_shlibpath_var=no
7695      ;;
7696
7697    newsos6)
7698      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7699      hardcode_direct=yes
7700      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7701      hardcode_libdir_separator=:
7702      hardcode_shlibpath_var=no
7703      ;;
7704
7705    openbsd*)
7706      hardcode_direct=yes
7707      hardcode_shlibpath_var=no
7708      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7709	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7710	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7711	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7712	export_dynamic_flag_spec='${wl}-E'
7713      else
7714       case $host_os in
7715	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7716	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7717	   hardcode_libdir_flag_spec='-R$libdir'
7718	   ;;
7719	 *)
7720	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7721	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7722	   ;;
7723       esac
7724      fi
7725      ;;
7726
7727    os2*)
7728      hardcode_libdir_flag_spec='-L$libdir'
7729      hardcode_minus_L=yes
7730      allow_undefined_flag=unsupported
7731      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'
7732      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7733      ;;
7734
7735    osf3*)
7736      if test "$GCC" = yes; then
7737	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7738	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'
7739      else
7740	allow_undefined_flag=' -expect_unresolved \*'
7741	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'
7742      fi
7743      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7744      hardcode_libdir_separator=:
7745      ;;
7746
7747    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7748      if test "$GCC" = yes; then
7749	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7750	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'
7751	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7752      else
7753	allow_undefined_flag=' -expect_unresolved \*'
7754	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'
7755	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7756	$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'
7757
7758	# Both c and cxx compiler support -rpath directly
7759	hardcode_libdir_flag_spec='-rpath $libdir'
7760      fi
7761      hardcode_libdir_separator=:
7762      ;;
7763
7764    sco3.2v5*)
7765      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766      hardcode_shlibpath_var=no
7767      export_dynamic_flag_spec='${wl}-Bexport'
7768      runpath_var=LD_RUN_PATH
7769      hardcode_runpath_var=yes
7770      ;;
7771
7772    solaris*)
7773      no_undefined_flag=' -z text'
7774      if test "$GCC" = yes; then
7775	wlarc='${wl}'
7776	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7777	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7778	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7779      else
7780	wlarc=''
7781	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7782	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7783  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7784      fi
7785      hardcode_libdir_flag_spec='-R$libdir'
7786      hardcode_shlibpath_var=no
7787      case $host_os in
7788      solaris2.[0-5] | solaris2.[0-5].*) ;;
7789      *)
7790 	# The compiler driver will combine linker options so we
7791 	# cannot just pass the convience library names through
7792 	# without $wl, iff we do not link with $LD.
7793 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7794 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7795 	case $wlarc in
7796 	'')
7797 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7798 	*)
7799 	  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' ;;
7800 	esac ;;
7801      esac
7802      link_all_deplibs=yes
7803      ;;
7804
7805    sunos4*)
7806      if test "x$host_vendor" = xsequent; then
7807	# Use $CC to link under sequent, because it throws in some extra .o
7808	# files that make .init and .fini sections work.
7809	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7810      else
7811	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7812      fi
7813      hardcode_libdir_flag_spec='-L$libdir'
7814      hardcode_direct=yes
7815      hardcode_minus_L=yes
7816      hardcode_shlibpath_var=no
7817      ;;
7818
7819    sysv4)
7820      case $host_vendor in
7821	sni)
7822	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823	  hardcode_direct=yes # is this really true???
7824	;;
7825	siemens)
7826	  ## LD is ld it makes a PLAMLIB
7827	  ## CC just makes a GrossModule.
7828	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7829	  reload_cmds='$CC -r -o $output$reload_objs'
7830	  hardcode_direct=no
7831        ;;
7832	motorola)
7833	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7834	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7835	;;
7836      esac
7837      runpath_var='LD_RUN_PATH'
7838      hardcode_shlibpath_var=no
7839      ;;
7840
7841    sysv4.3*)
7842      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7843      hardcode_shlibpath_var=no
7844      export_dynamic_flag_spec='-Bexport'
7845      ;;
7846
7847    sysv4*MP*)
7848      if test -d /usr/nec; then
7849	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7850	hardcode_shlibpath_var=no
7851	runpath_var=LD_RUN_PATH
7852	hardcode_runpath_var=yes
7853	ld_shlibs=yes
7854      fi
7855      ;;
7856
7857    sysv4.2uw2*)
7858      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7859      hardcode_direct=yes
7860      hardcode_minus_L=no
7861      hardcode_shlibpath_var=no
7862      hardcode_runpath_var=yes
7863      runpath_var=LD_RUN_PATH
7864      ;;
7865
7866   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7867      no_undefined_flag='${wl}-z ${wl}text'
7868      if test "$GCC" = yes; then
7869	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7870      else
7871	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7872      fi
7873      runpath_var='LD_RUN_PATH'
7874      hardcode_shlibpath_var=no
7875      ;;
7876
7877    sysv5*)
7878      no_undefined_flag=' -z text'
7879      # $CC -shared without GNU ld will not create a library from C++
7880      # object files and a static libstdc++, better avoid it by now
7881      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7882      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7883  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7884      hardcode_libdir_flag_spec=
7885      hardcode_shlibpath_var=no
7886      runpath_var='LD_RUN_PATH'
7887      ;;
7888
7889    uts4*)
7890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891      hardcode_libdir_flag_spec='-L$libdir'
7892      hardcode_shlibpath_var=no
7893      ;;
7894
7895    *)
7896      ld_shlibs=no
7897      ;;
7898    esac
7899  fi
7900
7901echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7902echo "${ECHO_T}$ld_shlibs" >&6
7903test "$ld_shlibs" = no && can_build_shared=no
7904
7905variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7906if test "$GCC" = yes; then
7907  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7908fi
7909
7910#
7911# Do we need to explicitly link libc?
7912#
7913case "x$archive_cmds_need_lc" in
7914x|xyes)
7915  # Assume -lc should be added
7916  archive_cmds_need_lc=yes
7917
7918  if test "$enable_shared" = yes && test "$GCC" = yes; then
7919    case $archive_cmds in
7920    *'~'*)
7921      # FIXME: we may have to deal with multi-command sequences.
7922      ;;
7923    '$CC '*)
7924      # Test whether the compiler implicitly links with -lc since on some
7925      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7926      # to ld, don't add -lc before -lgcc.
7927      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7928echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7929      $rm conftest*
7930      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7931
7932      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933  (eval $ac_compile) 2>&5
7934  ac_status=$?
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } 2>conftest.err; then
7937        soname=conftest
7938        lib=conftest
7939        libobjs=conftest.$ac_objext
7940        deplibs=
7941        wl=$lt_prog_compiler_wl
7942        compiler_flags=-v
7943        linker_flags=-v
7944        verstring=
7945        output_objdir=.
7946        libname=conftest
7947        lt_save_allow_undefined_flag=$allow_undefined_flag
7948        allow_undefined_flag=
7949        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7950  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7951  ac_status=$?
7952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953  (exit $ac_status); }
7954        then
7955	  archive_cmds_need_lc=no
7956        else
7957	  archive_cmds_need_lc=yes
7958        fi
7959        allow_undefined_flag=$lt_save_allow_undefined_flag
7960      else
7961        cat conftest.err 1>&5
7962      fi
7963      $rm conftest*
7964      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7965echo "${ECHO_T}$archive_cmds_need_lc" >&6
7966      ;;
7967    esac
7968  fi
7969  ;;
7970esac
7971
7972echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7974library_names_spec=
7975libname_spec='lib$name'
7976soname_spec=
7977shrext_cmds=".so"
7978postinstall_cmds=
7979postuninstall_cmds=
7980finish_cmds=
7981finish_eval=
7982shlibpath_var=
7983shlibpath_overrides_runpath=unknown
7984version_type=none
7985dynamic_linker="$host_os ld.so"
7986sys_lib_dlsearch_path_spec="/lib /usr/lib"
7987if test "$GCC" = yes; then
7988  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7989  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7990    # if the path contains ";" then we assume it to be the separator
7991    # otherwise default to the standard path separator (i.e. ":") - it is
7992    # assumed that no part of a normal pathname contains ";" but that should
7993    # okay in the real world where ";" in dirpaths is itself problematic.
7994    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7995  else
7996    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7997  fi
7998else
7999  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8000fi
8001need_lib_prefix=unknown
8002hardcode_into_libs=no
8003
8004# when you set need_version to no, make sure it does not cause -set_version
8005# flags to be left without arguments
8006need_version=unknown
8007
8008case $host_os in
8009aix3*)
8010  version_type=linux
8011  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8012  shlibpath_var=LIBPATH
8013
8014  # AIX 3 has no versioning support, so we append a major version to the name.
8015  soname_spec='${libname}${release}${shared_ext}$major'
8016  ;;
8017
8018aix4* | aix5*)
8019  version_type=linux
8020  need_lib_prefix=no
8021  need_version=no
8022  hardcode_into_libs=yes
8023  if test "$host_cpu" = ia64; then
8024    # AIX 5 supports IA64
8025    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8026    shlibpath_var=LD_LIBRARY_PATH
8027  else
8028    # With GCC up to 2.95.x, collect2 would create an import file
8029    # for dependence libraries.  The import file would start with
8030    # the line `#! .'.  This would cause the generated library to
8031    # depend on `.', always an invalid library.  This was fixed in
8032    # development snapshots of GCC prior to 3.0.
8033    case $host_os in
8034      aix4 | aix4.[01] | aix4.[01].*)
8035      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8036	   echo ' yes '
8037	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8038	:
8039      else
8040	can_build_shared=no
8041      fi
8042      ;;
8043    esac
8044    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8045    # soname into executable. Probably we can add versioning support to
8046    # collect2, so additional links can be useful in future.
8047    if test "$aix_use_runtimelinking" = yes; then
8048      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8049      # instead of lib<name>.a to let people know that these are not
8050      # typical AIX shared libraries.
8051      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8052    else
8053      # We preserve .a as extension for shared libraries through AIX4.2
8054      # and later when we are not doing run time linking.
8055      library_names_spec='${libname}${release}.a $libname.a'
8056      soname_spec='${libname}${release}${shared_ext}$major'
8057    fi
8058    shlibpath_var=LIBPATH
8059  fi
8060  ;;
8061
8062amigaos*)
8063  library_names_spec='$libname.ixlibrary $libname.a'
8064  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8065  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'
8066  ;;
8067
8068beos*)
8069  library_names_spec='${libname}${shared_ext}'
8070  dynamic_linker="$host_os ld.so"
8071  shlibpath_var=LIBRARY_PATH
8072  ;;
8073
8074bsdi[45]*)
8075  version_type=linux
8076  need_version=no
8077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078  soname_spec='${libname}${release}${shared_ext}$major'
8079  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8080  shlibpath_var=LD_LIBRARY_PATH
8081  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8082  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8083  # the default ld.so.conf also contains /usr/contrib/lib and
8084  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8085  # libtool to hard-code these into programs
8086  ;;
8087
8088cygwin* | mingw* | pw32*)
8089  version_type=windows
8090  shrext_cmds=".dll"
8091  need_version=no
8092  need_lib_prefix=no
8093
8094  case $GCC,$host_os in
8095  yes,cygwin* | yes,mingw* | yes,pw32*)
8096    library_names_spec='$libname.dll.a'
8097    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8098    postinstall_cmds='base_file=`basename \${file}`~
8099      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8100      dldir=$destdir/`dirname \$dlpath`~
8101      test -d \$dldir || mkdir -p \$dldir~
8102      $install_prog $dir/$dlname \$dldir/$dlname~
8103      chmod a+x \$dldir/$dlname'
8104    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8105      dlpath=$dir/\$dldll~
8106       $rm \$dlpath'
8107    shlibpath_overrides_runpath=yes
8108
8109    case $host_os in
8110    cygwin*)
8111      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8112      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8113      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8114      ;;
8115    mingw*)
8116      # MinGW DLLs use traditional 'lib' prefix
8117      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8118      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8119      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8120        # It is most probably a Windows format PATH printed by
8121        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8122        # path with ; separators, and with drive letters. We can handle the
8123        # drive letters (cygwin fileutils understands them), so leave them,
8124        # especially as we might pass files found there to a mingw objdump,
8125        # which wouldn't understand a cygwinified path. Ahh.
8126        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8127      else
8128        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8129      fi
8130      ;;
8131    pw32*)
8132      # pw32 DLLs use 'pw' prefix rather than 'lib'
8133      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8134      ;;
8135    esac
8136    ;;
8137
8138  *)
8139    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8140    ;;
8141  esac
8142  dynamic_linker='Win32 ld.exe'
8143  # FIXME: first we should search . and the directory the executable is in
8144  shlibpath_var=PATH
8145  ;;
8146
8147darwin* | rhapsody*)
8148  dynamic_linker="$host_os dyld"
8149  version_type=darwin
8150  need_lib_prefix=no
8151  need_version=no
8152  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8153  soname_spec='${libname}${release}${major}$shared_ext'
8154  shlibpath_overrides_runpath=yes
8155  shlibpath_var=DYLD_LIBRARY_PATH
8156  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8157  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8158  if test "$GCC" = yes; then
8159    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"`
8160  else
8161    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8162  fi
8163  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8164  ;;
8165
8166dgux*)
8167  version_type=linux
8168  need_lib_prefix=no
8169  need_version=no
8170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8171  soname_spec='${libname}${release}${shared_ext}$major'
8172  shlibpath_var=LD_LIBRARY_PATH
8173  ;;
8174
8175freebsd1*)
8176  dynamic_linker=no
8177  ;;
8178
8179kfreebsd*-gnu)
8180  version_type=linux
8181  need_lib_prefix=no
8182  need_version=no
8183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8184  soname_spec='${libname}${release}${shared_ext}$major'
8185  shlibpath_var=LD_LIBRARY_PATH
8186  shlibpath_overrides_runpath=no
8187  hardcode_into_libs=yes
8188  dynamic_linker='GNU ld.so'
8189  ;;
8190
8191freebsd* | dragonfly*)
8192  # DragonFly does not have aout.  When/if they implement a new
8193  # versioning mechanism, adjust this.
8194  if test -x /usr/bin/objformat; then
8195    objformat=`/usr/bin/objformat`
8196  else
8197    case $host_os in
8198    freebsd[123]*) objformat=aout ;;
8199    *) objformat=elf ;;
8200    esac
8201  fi
8202  version_type=freebsd-$objformat
8203  case $version_type in
8204    freebsd-elf*)
8205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8206      need_version=no
8207      need_lib_prefix=no
8208      ;;
8209    freebsd-*)
8210      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8211      need_version=yes
8212      ;;
8213  esac
8214  shlibpath_var=LD_LIBRARY_PATH
8215  case $host_os in
8216  freebsd2*)
8217    shlibpath_overrides_runpath=yes
8218    ;;
8219  freebsd3.[01]* | freebsdelf3.[01]*)
8220    shlibpath_overrides_runpath=yes
8221    hardcode_into_libs=yes
8222    ;;
8223  *) # from 3.2 on
8224    shlibpath_overrides_runpath=no
8225    hardcode_into_libs=yes
8226    ;;
8227  esac
8228  ;;
8229
8230gnu*)
8231  version_type=linux
8232  need_lib_prefix=no
8233  need_version=no
8234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8235  soname_spec='${libname}${release}${shared_ext}$major'
8236  shlibpath_var=LD_LIBRARY_PATH
8237  hardcode_into_libs=yes
8238  ;;
8239
8240hpux9* | hpux10* | hpux11*)
8241  # Give a soname corresponding to the major version so that dld.sl refuses to
8242  # link against other versions.
8243  version_type=sunos
8244  need_lib_prefix=no
8245  need_version=no
8246  case $host_cpu in
8247  ia64*)
8248    shrext_cmds='.so'
8249    hardcode_into_libs=yes
8250    dynamic_linker="$host_os dld.so"
8251    shlibpath_var=LD_LIBRARY_PATH
8252    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8254    soname_spec='${libname}${release}${shared_ext}$major'
8255    if test "X$HPUX_IA64_MODE" = X32; then
8256      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8257    else
8258      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8259    fi
8260    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8261    ;;
8262   hppa*64*)
8263     shrext_cmds='.sl'
8264     hardcode_into_libs=yes
8265     dynamic_linker="$host_os dld.sl"
8266     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8267     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8269     soname_spec='${libname}${release}${shared_ext}$major'
8270     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8271     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8272     ;;
8273   *)
8274    shrext_cmds='.sl'
8275    dynamic_linker="$host_os dld.sl"
8276    shlibpath_var=SHLIB_PATH
8277    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8279    soname_spec='${libname}${release}${shared_ext}$major'
8280    ;;
8281  esac
8282  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8283  postinstall_cmds='chmod 555 $lib'
8284  ;;
8285
8286irix5* | irix6* | nonstopux*)
8287  case $host_os in
8288    nonstopux*) version_type=nonstopux ;;
8289    *)
8290	if test "$lt_cv_prog_gnu_ld" = yes; then
8291		version_type=linux
8292	else
8293		version_type=irix
8294	fi ;;
8295  esac
8296  need_lib_prefix=no
8297  need_version=no
8298  soname_spec='${libname}${release}${shared_ext}$major'
8299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8300  case $host_os in
8301  irix5* | nonstopux*)
8302    libsuff= shlibsuff=
8303    ;;
8304  *)
8305    case $LD in # libtool.m4 will add one of these switches to LD
8306    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8307      libsuff= shlibsuff= libmagic=32-bit;;
8308    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8309      libsuff=32 shlibsuff=N32 libmagic=N32;;
8310    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8311      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8312    *) libsuff= shlibsuff= libmagic=never-match;;
8313    esac
8314    ;;
8315  esac
8316  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8317  shlibpath_overrides_runpath=no
8318  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8319  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8320  hardcode_into_libs=yes
8321  ;;
8322
8323# No shared lib support for Linux oldld, aout, or coff.
8324linux*oldld* | linux*aout* | linux*coff*)
8325  dynamic_linker=no
8326  ;;
8327
8328# This must be Linux ELF.
8329linux*)
8330  version_type=linux
8331  need_lib_prefix=no
8332  need_version=no
8333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334  soname_spec='${libname}${release}${shared_ext}$major'
8335  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8336  shlibpath_var=LD_LIBRARY_PATH
8337  shlibpath_overrides_runpath=no
8338  # This implies no fast_install, which is unacceptable.
8339  # Some rework will be needed to allow for fast_install
8340  # before this can be enabled.
8341  hardcode_into_libs=yes
8342
8343  # find out which ABI we are using
8344  libsuff=
8345  case "$host_cpu" in
8346  x86_64*|s390x*|powerpc64*)
8347    echo '#line 8595 "configure"' > conftest.$ac_ext
8348    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349  (eval $ac_compile) 2>&5
8350  ac_status=$?
8351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352  (exit $ac_status); }; then
8353      case `/usr/bin/file conftest.$ac_objext` in
8354      *64-bit*)
8355        libsuff=64
8356        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8357        ;;
8358      esac
8359    fi
8360    rm -rf conftest*
8361    ;;
8362  esac
8363
8364  # Append ld.so.conf contents to the search path
8365  if test -f /etc/ld.so.conf; then
8366    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' ' '`
8367    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8368  fi
8369
8370  # We used to test for /lib/ld.so.1 and disable shared libraries on
8371  # powerpc, because MkLinux only supported shared libraries with the
8372  # GNU dynamic linker.  Since this was broken with cross compilers,
8373  # most powerpc-linux boxes support dynamic linking these days and
8374  # people can always --disable-shared, the test was removed, and we
8375  # assume the GNU/Linux dynamic linker is in use.
8376  dynamic_linker='GNU/Linux ld.so'
8377  ;;
8378
8379knetbsd*-gnu)
8380  version_type=linux
8381  need_lib_prefix=no
8382  need_version=no
8383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8384  soname_spec='${libname}${release}${shared_ext}$major'
8385  shlibpath_var=LD_LIBRARY_PATH
8386  shlibpath_overrides_runpath=no
8387  hardcode_into_libs=yes
8388  dynamic_linker='GNU ld.so'
8389  ;;
8390
8391netbsd*)
8392  version_type=sunos
8393  need_lib_prefix=no
8394  need_version=no
8395  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8396    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8397    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8398    dynamic_linker='NetBSD (a.out) ld.so'
8399  else
8400    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8401    soname_spec='${libname}${release}${shared_ext}$major'
8402    dynamic_linker='NetBSD ld.elf_so'
8403  fi
8404  shlibpath_var=LD_LIBRARY_PATH
8405  shlibpath_overrides_runpath=yes
8406  hardcode_into_libs=yes
8407  ;;
8408
8409newsos6)
8410  version_type=linux
8411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8412  shlibpath_var=LD_LIBRARY_PATH
8413  shlibpath_overrides_runpath=yes
8414  ;;
8415
8416nto-qnx*)
8417  version_type=linux
8418  need_lib_prefix=no
8419  need_version=no
8420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8421  soname_spec='${libname}${release}${shared_ext}$major'
8422  shlibpath_var=LD_LIBRARY_PATH
8423  shlibpath_overrides_runpath=yes
8424  ;;
8425
8426openbsd*)
8427  version_type=sunos
8428  need_lib_prefix=no
8429  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8430  case $host_os in
8431    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8432    *)                         need_version=no  ;;
8433  esac
8434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8435  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8436  shlibpath_var=LD_LIBRARY_PATH
8437  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8438    case $host_os in
8439      openbsd2.[89] | openbsd2.[89].*)
8440	shlibpath_overrides_runpath=no
8441	;;
8442      *)
8443	shlibpath_overrides_runpath=yes
8444	;;
8445      esac
8446  else
8447    shlibpath_overrides_runpath=yes
8448  fi
8449  ;;
8450
8451os2*)
8452  libname_spec='$name'
8453  shrext_cmds=".dll"
8454  need_lib_prefix=no
8455  library_names_spec='$libname${shared_ext} $libname.a'
8456  dynamic_linker='OS/2 ld.exe'
8457  shlibpath_var=LIBPATH
8458  ;;
8459
8460osf3* | osf4* | osf5*)
8461  version_type=osf
8462  need_lib_prefix=no
8463  need_version=no
8464  soname_spec='${libname}${release}${shared_ext}$major'
8465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466  shlibpath_var=LD_LIBRARY_PATH
8467  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8468  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8469  ;;
8470
8471sco3.2v5*)
8472  version_type=osf
8473  soname_spec='${libname}${release}${shared_ext}$major'
8474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8475  shlibpath_var=LD_LIBRARY_PATH
8476  ;;
8477
8478solaris*)
8479  version_type=linux
8480  need_lib_prefix=no
8481  need_version=no
8482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8483  soname_spec='${libname}${release}${shared_ext}$major'
8484  shlibpath_var=LD_LIBRARY_PATH
8485  shlibpath_overrides_runpath=yes
8486  hardcode_into_libs=yes
8487  # ldd complains unless libraries are executable
8488  postinstall_cmds='chmod +x $lib'
8489  ;;
8490
8491sunos4*)
8492  version_type=sunos
8493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8494  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8495  shlibpath_var=LD_LIBRARY_PATH
8496  shlibpath_overrides_runpath=yes
8497  if test "$with_gnu_ld" = yes; then
8498    need_lib_prefix=no
8499  fi
8500  need_version=yes
8501  ;;
8502
8503sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8504  version_type=linux
8505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8506  soname_spec='${libname}${release}${shared_ext}$major'
8507  shlibpath_var=LD_LIBRARY_PATH
8508  case $host_vendor in
8509    sni)
8510      shlibpath_overrides_runpath=no
8511      need_lib_prefix=no
8512      export_dynamic_flag_spec='${wl}-Blargedynsym'
8513      runpath_var=LD_RUN_PATH
8514      ;;
8515    siemens)
8516      need_lib_prefix=no
8517      ;;
8518    motorola)
8519      need_lib_prefix=no
8520      need_version=no
8521      shlibpath_overrides_runpath=no
8522      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8523      ;;
8524  esac
8525  ;;
8526
8527sysv4*MP*)
8528  if test -d /usr/nec ;then
8529    version_type=linux
8530    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8531    soname_spec='$libname${shared_ext}.$major'
8532    shlibpath_var=LD_LIBRARY_PATH
8533  fi
8534  ;;
8535
8536uts4*)
8537  version_type=linux
8538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8539  soname_spec='${libname}${release}${shared_ext}$major'
8540  shlibpath_var=LD_LIBRARY_PATH
8541  ;;
8542
8543*)
8544  dynamic_linker=no
8545  ;;
8546esac
8547echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8548echo "${ECHO_T}$dynamic_linker" >&6
8549test "$dynamic_linker" = no && can_build_shared=no
8550
8551echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8552echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8553hardcode_action=
8554if test -n "$hardcode_libdir_flag_spec" || \
8555   test -n "$runpath_var" || \
8556   test "X$hardcode_automatic" = "Xyes" ; then
8557
8558  # We can hardcode non-existant directories.
8559  if test "$hardcode_direct" != no &&
8560     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8561     # have to relink, otherwise we might link with an installed library
8562     # when we should be linking with a yet-to-be-installed one
8563     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8564     test "$hardcode_minus_L" != no; then
8565    # Linking always hardcodes the temporary library directory.
8566    hardcode_action=relink
8567  else
8568    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8569    hardcode_action=immediate
8570  fi
8571else
8572  # We cannot hardcode anything, or else we can only hardcode existing
8573  # directories.
8574  hardcode_action=unsupported
8575fi
8576echo "$as_me:$LINENO: result: $hardcode_action" >&5
8577echo "${ECHO_T}$hardcode_action" >&6
8578
8579if test "$hardcode_action" = relink; then
8580  # Fast installation is not supported
8581  enable_fast_install=no
8582elif test "$shlibpath_overrides_runpath" = yes ||
8583     test "$enable_shared" = no; then
8584  # Fast installation is not necessary
8585  enable_fast_install=needless
8586fi
8587
8588striplib=
8589old_striplib=
8590echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8591echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8592if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8593  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8594  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8595  echo "$as_me:$LINENO: result: yes" >&5
8596echo "${ECHO_T}yes" >&6
8597else
8598# FIXME - insert some real tests, host_os isn't really good enough
8599  case $host_os in
8600   darwin*)
8601       if test -n "$STRIP" ; then
8602         striplib="$STRIP -x"
8603         echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605       else
8606  echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608fi
8609       ;;
8610   *)
8611  echo "$as_me:$LINENO: result: no" >&5
8612echo "${ECHO_T}no" >&6
8613    ;;
8614  esac
8615fi
8616
8617if test "x$enable_dlopen" != xyes; then
8618  enable_dlopen=unknown
8619  enable_dlopen_self=unknown
8620  enable_dlopen_self_static=unknown
8621else
8622  lt_cv_dlopen=no
8623  lt_cv_dlopen_libs=
8624
8625  case $host_os in
8626  beos*)
8627    lt_cv_dlopen="load_add_on"
8628    lt_cv_dlopen_libs=
8629    lt_cv_dlopen_self=yes
8630    ;;
8631
8632  mingw* | pw32*)
8633    lt_cv_dlopen="LoadLibrary"
8634    lt_cv_dlopen_libs=
8635   ;;
8636
8637  cygwin*)
8638    lt_cv_dlopen="dlopen"
8639    lt_cv_dlopen_libs=
8640   ;;
8641
8642  darwin*)
8643  # if libdl is installed we need to link against it
8644    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8645echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8646if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8647  echo $ECHO_N "(cached) $ECHO_C" >&6
8648else
8649  ac_check_lib_save_LIBS=$LIBS
8650LIBS="-ldl  $LIBS"
8651cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h.  */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h.  */
8657
8658/* Override any gcc2 internal prototype to avoid an error.  */
8659#ifdef __cplusplus
8660extern "C"
8661#endif
8662/* We use char because int might match the return type of a gcc2
8663   builtin and then its argument prototype would still apply.  */
8664char dlopen ();
8665int
8666main ()
8667{
8668dlopen ();
8669  ;
8670  return 0;
8671}
8672_ACEOF
8673rm -f conftest.$ac_objext conftest$ac_exeext
8674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675  (eval $ac_link) 2>conftest.er1
8676  ac_status=$?
8677  grep -v '^ *+' conftest.er1 >conftest.err
8678  rm -f conftest.er1
8679  cat conftest.err >&5
8680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681  (exit $ac_status); } &&
8682	 { ac_try='test -z "$ac_c_werror_flag"
8683			 || test ! -s conftest.err'
8684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685  (eval $ac_try) 2>&5
8686  ac_status=$?
8687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688  (exit $ac_status); }; } &&
8689	 { ac_try='test -s conftest$ac_exeext'
8690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691  (eval $ac_try) 2>&5
8692  ac_status=$?
8693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694  (exit $ac_status); }; }; then
8695  ac_cv_lib_dl_dlopen=yes
8696else
8697  echo "$as_me: failed program was:" >&5
8698sed 's/^/| /' conftest.$ac_ext >&5
8699
8700ac_cv_lib_dl_dlopen=no
8701fi
8702rm -f conftest.err conftest.$ac_objext \
8703      conftest$ac_exeext conftest.$ac_ext
8704LIBS=$ac_check_lib_save_LIBS
8705fi
8706echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8707echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8708if test $ac_cv_lib_dl_dlopen = yes; then
8709  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8710else
8711
8712    lt_cv_dlopen="dyld"
8713    lt_cv_dlopen_libs=
8714    lt_cv_dlopen_self=yes
8715
8716fi
8717
8718   ;;
8719
8720  *)
8721    echo "$as_me:$LINENO: checking for shl_load" >&5
8722echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8723if test "${ac_cv_func_shl_load+set}" = set; then
8724  echo $ECHO_N "(cached) $ECHO_C" >&6
8725else
8726  cat >conftest.$ac_ext <<_ACEOF
8727/* confdefs.h.  */
8728_ACEOF
8729cat confdefs.h >>conftest.$ac_ext
8730cat >>conftest.$ac_ext <<_ACEOF
8731/* end confdefs.h.  */
8732/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8733   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8734#define shl_load innocuous_shl_load
8735
8736/* System header to define __stub macros and hopefully few prototypes,
8737    which can conflict with char shl_load (); below.
8738    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8739    <limits.h> exists even on freestanding compilers.  */
8740
8741#ifdef __STDC__
8742# include <limits.h>
8743#else
8744# include <assert.h>
8745#endif
8746
8747#undef shl_load
8748
8749/* Override any gcc2 internal prototype to avoid an error.  */
8750#ifdef __cplusplus
8751extern "C"
8752{
8753#endif
8754/* We use char because int might match the return type of a gcc2
8755   builtin and then its argument prototype would still apply.  */
8756char shl_load ();
8757/* The GNU C library defines this for functions which it implements
8758    to always fail with ENOSYS.  Some functions are actually named
8759    something starting with __ and the normal name is an alias.  */
8760#if defined (__stub_shl_load) || defined (__stub___shl_load)
8761choke me
8762#else
8763char (*f) () = shl_load;
8764#endif
8765#ifdef __cplusplus
8766}
8767#endif
8768
8769int
8770main ()
8771{
8772return f != shl_load;
8773  ;
8774  return 0;
8775}
8776_ACEOF
8777rm -f conftest.$ac_objext conftest$ac_exeext
8778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779  (eval $ac_link) 2>conftest.er1
8780  ac_status=$?
8781  grep -v '^ *+' conftest.er1 >conftest.err
8782  rm -f conftest.er1
8783  cat conftest.err >&5
8784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785  (exit $ac_status); } &&
8786	 { ac_try='test -z "$ac_c_werror_flag"
8787			 || test ! -s conftest.err'
8788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789  (eval $ac_try) 2>&5
8790  ac_status=$?
8791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792  (exit $ac_status); }; } &&
8793	 { ac_try='test -s conftest$ac_exeext'
8794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795  (eval $ac_try) 2>&5
8796  ac_status=$?
8797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798  (exit $ac_status); }; }; then
8799  ac_cv_func_shl_load=yes
8800else
8801  echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804ac_cv_func_shl_load=no
8805fi
8806rm -f conftest.err conftest.$ac_objext \
8807      conftest$ac_exeext conftest.$ac_ext
8808fi
8809echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8810echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8811if test $ac_cv_func_shl_load = yes; then
8812  lt_cv_dlopen="shl_load"
8813else
8814  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8815echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8816if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8817  echo $ECHO_N "(cached) $ECHO_C" >&6
8818else
8819  ac_check_lib_save_LIBS=$LIBS
8820LIBS="-ldld  $LIBS"
8821cat >conftest.$ac_ext <<_ACEOF
8822/* confdefs.h.  */
8823_ACEOF
8824cat confdefs.h >>conftest.$ac_ext
8825cat >>conftest.$ac_ext <<_ACEOF
8826/* end confdefs.h.  */
8827
8828/* Override any gcc2 internal prototype to avoid an error.  */
8829#ifdef __cplusplus
8830extern "C"
8831#endif
8832/* We use char because int might match the return type of a gcc2
8833   builtin and then its argument prototype would still apply.  */
8834char shl_load ();
8835int
8836main ()
8837{
8838shl_load ();
8839  ;
8840  return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext conftest$ac_exeext
8844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845  (eval $ac_link) 2>conftest.er1
8846  ac_status=$?
8847  grep -v '^ *+' conftest.er1 >conftest.err
8848  rm -f conftest.er1
8849  cat conftest.err >&5
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); } &&
8852	 { ac_try='test -z "$ac_c_werror_flag"
8853			 || test ! -s conftest.err'
8854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855  (eval $ac_try) 2>&5
8856  ac_status=$?
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); }; } &&
8859	 { ac_try='test -s conftest$ac_exeext'
8860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861  (eval $ac_try) 2>&5
8862  ac_status=$?
8863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864  (exit $ac_status); }; }; then
8865  ac_cv_lib_dld_shl_load=yes
8866else
8867  echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870ac_cv_lib_dld_shl_load=no
8871fi
8872rm -f conftest.err conftest.$ac_objext \
8873      conftest$ac_exeext conftest.$ac_ext
8874LIBS=$ac_check_lib_save_LIBS
8875fi
8876echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8877echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8878if test $ac_cv_lib_dld_shl_load = yes; then
8879  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8880else
8881  echo "$as_me:$LINENO: checking for dlopen" >&5
8882echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8883if test "${ac_cv_func_dlopen+set}" = set; then
8884  echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886  cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h.  */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h.  */
8892/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8893   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8894#define dlopen innocuous_dlopen
8895
8896/* System header to define __stub macros and hopefully few prototypes,
8897    which can conflict with char dlopen (); below.
8898    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899    <limits.h> exists even on freestanding compilers.  */
8900
8901#ifdef __STDC__
8902# include <limits.h>
8903#else
8904# include <assert.h>
8905#endif
8906
8907#undef dlopen
8908
8909/* Override any gcc2 internal prototype to avoid an error.  */
8910#ifdef __cplusplus
8911extern "C"
8912{
8913#endif
8914/* We use char because int might match the return type of a gcc2
8915   builtin and then its argument prototype would still apply.  */
8916char dlopen ();
8917/* The GNU C library defines this for functions which it implements
8918    to always fail with ENOSYS.  Some functions are actually named
8919    something starting with __ and the normal name is an alias.  */
8920#if defined (__stub_dlopen) || defined (__stub___dlopen)
8921choke me
8922#else
8923char (*f) () = dlopen;
8924#endif
8925#ifdef __cplusplus
8926}
8927#endif
8928
8929int
8930main ()
8931{
8932return f != dlopen;
8933  ;
8934  return 0;
8935}
8936_ACEOF
8937rm -f conftest.$ac_objext conftest$ac_exeext
8938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939  (eval $ac_link) 2>conftest.er1
8940  ac_status=$?
8941  grep -v '^ *+' conftest.er1 >conftest.err
8942  rm -f conftest.er1
8943  cat conftest.err >&5
8944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945  (exit $ac_status); } &&
8946	 { ac_try='test -z "$ac_c_werror_flag"
8947			 || test ! -s conftest.err'
8948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949  (eval $ac_try) 2>&5
8950  ac_status=$?
8951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952  (exit $ac_status); }; } &&
8953	 { ac_try='test -s conftest$ac_exeext'
8954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955  (eval $ac_try) 2>&5
8956  ac_status=$?
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); }; }; then
8959  ac_cv_func_dlopen=yes
8960else
8961  echo "$as_me: failed program was:" >&5
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
8964ac_cv_func_dlopen=no
8965fi
8966rm -f conftest.err conftest.$ac_objext \
8967      conftest$ac_exeext conftest.$ac_ext
8968fi
8969echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8970echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8971if test $ac_cv_func_dlopen = yes; then
8972  lt_cv_dlopen="dlopen"
8973else
8974  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8975echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8976if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8977  echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979  ac_check_lib_save_LIBS=$LIBS
8980LIBS="-ldl  $LIBS"
8981cat >conftest.$ac_ext <<_ACEOF
8982/* confdefs.h.  */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h.  */
8987
8988/* Override any gcc2 internal prototype to avoid an error.  */
8989#ifdef __cplusplus
8990extern "C"
8991#endif
8992/* We use char because int might match the return type of a gcc2
8993   builtin and then its argument prototype would still apply.  */
8994char dlopen ();
8995int
8996main ()
8997{
8998dlopen ();
8999  ;
9000  return 0;
9001}
9002_ACEOF
9003rm -f conftest.$ac_objext conftest$ac_exeext
9004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005  (eval $ac_link) 2>conftest.er1
9006  ac_status=$?
9007  grep -v '^ *+' conftest.er1 >conftest.err
9008  rm -f conftest.er1
9009  cat conftest.err >&5
9010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011  (exit $ac_status); } &&
9012	 { ac_try='test -z "$ac_c_werror_flag"
9013			 || test ! -s conftest.err'
9014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015  (eval $ac_try) 2>&5
9016  ac_status=$?
9017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018  (exit $ac_status); }; } &&
9019	 { ac_try='test -s conftest$ac_exeext'
9020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021  (eval $ac_try) 2>&5
9022  ac_status=$?
9023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024  (exit $ac_status); }; }; then
9025  ac_cv_lib_dl_dlopen=yes
9026else
9027  echo "$as_me: failed program was:" >&5
9028sed 's/^/| /' conftest.$ac_ext >&5
9029
9030ac_cv_lib_dl_dlopen=no
9031fi
9032rm -f conftest.err conftest.$ac_objext \
9033      conftest$ac_exeext conftest.$ac_ext
9034LIBS=$ac_check_lib_save_LIBS
9035fi
9036echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9037echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9038if test $ac_cv_lib_dl_dlopen = yes; then
9039  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9040else
9041  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9042echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9043if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9044  echo $ECHO_N "(cached) $ECHO_C" >&6
9045else
9046  ac_check_lib_save_LIBS=$LIBS
9047LIBS="-lsvld  $LIBS"
9048cat >conftest.$ac_ext <<_ACEOF
9049/* confdefs.h.  */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h.  */
9054
9055/* Override any gcc2 internal prototype to avoid an error.  */
9056#ifdef __cplusplus
9057extern "C"
9058#endif
9059/* We use char because int might match the return type of a gcc2
9060   builtin and then its argument prototype would still apply.  */
9061char dlopen ();
9062int
9063main ()
9064{
9065dlopen ();
9066  ;
9067  return 0;
9068}
9069_ACEOF
9070rm -f conftest.$ac_objext conftest$ac_exeext
9071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9072  (eval $ac_link) 2>conftest.er1
9073  ac_status=$?
9074  grep -v '^ *+' conftest.er1 >conftest.err
9075  rm -f conftest.er1
9076  cat conftest.err >&5
9077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078  (exit $ac_status); } &&
9079	 { ac_try='test -z "$ac_c_werror_flag"
9080			 || test ! -s conftest.err'
9081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082  (eval $ac_try) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); }; } &&
9086	 { ac_try='test -s conftest$ac_exeext'
9087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088  (eval $ac_try) 2>&5
9089  ac_status=$?
9090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091  (exit $ac_status); }; }; then
9092  ac_cv_lib_svld_dlopen=yes
9093else
9094  echo "$as_me: failed program was:" >&5
9095sed 's/^/| /' conftest.$ac_ext >&5
9096
9097ac_cv_lib_svld_dlopen=no
9098fi
9099rm -f conftest.err conftest.$ac_objext \
9100      conftest$ac_exeext conftest.$ac_ext
9101LIBS=$ac_check_lib_save_LIBS
9102fi
9103echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9104echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9105if test $ac_cv_lib_svld_dlopen = yes; then
9106  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9107else
9108  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9109echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9110if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9111  echo $ECHO_N "(cached) $ECHO_C" >&6
9112else
9113  ac_check_lib_save_LIBS=$LIBS
9114LIBS="-ldld  $LIBS"
9115cat >conftest.$ac_ext <<_ACEOF
9116/* confdefs.h.  */
9117_ACEOF
9118cat confdefs.h >>conftest.$ac_ext
9119cat >>conftest.$ac_ext <<_ACEOF
9120/* end confdefs.h.  */
9121
9122/* Override any gcc2 internal prototype to avoid an error.  */
9123#ifdef __cplusplus
9124extern "C"
9125#endif
9126/* We use char because int might match the return type of a gcc2
9127   builtin and then its argument prototype would still apply.  */
9128char dld_link ();
9129int
9130main ()
9131{
9132dld_link ();
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137rm -f conftest.$ac_objext conftest$ac_exeext
9138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139  (eval $ac_link) 2>conftest.er1
9140  ac_status=$?
9141  grep -v '^ *+' conftest.er1 >conftest.err
9142  rm -f conftest.er1
9143  cat conftest.err >&5
9144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145  (exit $ac_status); } &&
9146	 { ac_try='test -z "$ac_c_werror_flag"
9147			 || test ! -s conftest.err'
9148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149  (eval $ac_try) 2>&5
9150  ac_status=$?
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); }; } &&
9153	 { ac_try='test -s conftest$ac_exeext'
9154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155  (eval $ac_try) 2>&5
9156  ac_status=$?
9157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158  (exit $ac_status); }; }; then
9159  ac_cv_lib_dld_dld_link=yes
9160else
9161  echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164ac_cv_lib_dld_dld_link=no
9165fi
9166rm -f conftest.err conftest.$ac_objext \
9167      conftest$ac_exeext conftest.$ac_ext
9168LIBS=$ac_check_lib_save_LIBS
9169fi
9170echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9171echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9172if test $ac_cv_lib_dld_dld_link = yes; then
9173  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9174fi
9175
9176
9177fi
9178
9179
9180fi
9181
9182
9183fi
9184
9185
9186fi
9187
9188
9189fi
9190
9191    ;;
9192  esac
9193
9194  if test "x$lt_cv_dlopen" != xno; then
9195    enable_dlopen=yes
9196  else
9197    enable_dlopen=no
9198  fi
9199
9200  case $lt_cv_dlopen in
9201  dlopen)
9202    save_CPPFLAGS="$CPPFLAGS"
9203    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9204
9205    save_LDFLAGS="$LDFLAGS"
9206    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9207
9208    save_LIBS="$LIBS"
9209    LIBS="$lt_cv_dlopen_libs $LIBS"
9210
9211    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9212echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9213if test "${lt_cv_dlopen_self+set}" = set; then
9214  echo $ECHO_N "(cached) $ECHO_C" >&6
9215else
9216  	  if test "$cross_compiling" = yes; then :
9217  lt_cv_dlopen_self=cross
9218else
9219  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9220  lt_status=$lt_dlunknown
9221  cat > conftest.$ac_ext <<EOF
9222#line 9470 "configure"
9223#include "confdefs.h"
9224
9225#if HAVE_DLFCN_H
9226#include <dlfcn.h>
9227#endif
9228
9229#include <stdio.h>
9230
9231#ifdef RTLD_GLOBAL
9232#  define LT_DLGLOBAL		RTLD_GLOBAL
9233#else
9234#  ifdef DL_GLOBAL
9235#    define LT_DLGLOBAL		DL_GLOBAL
9236#  else
9237#    define LT_DLGLOBAL		0
9238#  endif
9239#endif
9240
9241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9242   find out it does not work in some platform. */
9243#ifndef LT_DLLAZY_OR_NOW
9244#  ifdef RTLD_LAZY
9245#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9246#  else
9247#    ifdef DL_LAZY
9248#      define LT_DLLAZY_OR_NOW		DL_LAZY
9249#    else
9250#      ifdef RTLD_NOW
9251#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9252#      else
9253#        ifdef DL_NOW
9254#          define LT_DLLAZY_OR_NOW	DL_NOW
9255#        else
9256#          define LT_DLLAZY_OR_NOW	0
9257#        endif
9258#      endif
9259#    endif
9260#  endif
9261#endif
9262
9263#ifdef __cplusplus
9264extern "C" void exit (int);
9265#endif
9266
9267void fnord() { int i=42;}
9268int main ()
9269{
9270  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9271  int status = $lt_dlunknown;
9272
9273  if (self)
9274    {
9275      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9276      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9277      /* dlclose (self); */
9278    }
9279
9280    exit (status);
9281}
9282EOF
9283  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9284  (eval $ac_link) 2>&5
9285  ac_status=$?
9286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9288    (./conftest; exit; ) >&5 2>/dev/null
9289    lt_status=$?
9290    case x$lt_status in
9291      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9292      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9293      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9294    esac
9295  else :
9296    # compilation failed
9297    lt_cv_dlopen_self=no
9298  fi
9299fi
9300rm -fr conftest*
9301
9302
9303fi
9304echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9305echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9306
9307    if test "x$lt_cv_dlopen_self" = xyes; then
9308      LDFLAGS="$LDFLAGS $link_static_flag"
9309      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9310echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9311if test "${lt_cv_dlopen_self_static+set}" = set; then
9312  echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314  	  if test "$cross_compiling" = yes; then :
9315  lt_cv_dlopen_self_static=cross
9316else
9317  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9318  lt_status=$lt_dlunknown
9319  cat > conftest.$ac_ext <<EOF
9320#line 9568 "configure"
9321#include "confdefs.h"
9322
9323#if HAVE_DLFCN_H
9324#include <dlfcn.h>
9325#endif
9326
9327#include <stdio.h>
9328
9329#ifdef RTLD_GLOBAL
9330#  define LT_DLGLOBAL		RTLD_GLOBAL
9331#else
9332#  ifdef DL_GLOBAL
9333#    define LT_DLGLOBAL		DL_GLOBAL
9334#  else
9335#    define LT_DLGLOBAL		0
9336#  endif
9337#endif
9338
9339/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9340   find out it does not work in some platform. */
9341#ifndef LT_DLLAZY_OR_NOW
9342#  ifdef RTLD_LAZY
9343#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9344#  else
9345#    ifdef DL_LAZY
9346#      define LT_DLLAZY_OR_NOW		DL_LAZY
9347#    else
9348#      ifdef RTLD_NOW
9349#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9350#      else
9351#        ifdef DL_NOW
9352#          define LT_DLLAZY_OR_NOW	DL_NOW
9353#        else
9354#          define LT_DLLAZY_OR_NOW	0
9355#        endif
9356#      endif
9357#    endif
9358#  endif
9359#endif
9360
9361#ifdef __cplusplus
9362extern "C" void exit (int);
9363#endif
9364
9365void fnord() { int i=42;}
9366int main ()
9367{
9368  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9369  int status = $lt_dlunknown;
9370
9371  if (self)
9372    {
9373      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9374      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9375      /* dlclose (self); */
9376    }
9377
9378    exit (status);
9379}
9380EOF
9381  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382  (eval $ac_link) 2>&5
9383  ac_status=$?
9384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9386    (./conftest; exit; ) >&5 2>/dev/null
9387    lt_status=$?
9388    case x$lt_status in
9389      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9390      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9391      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9392    esac
9393  else :
9394    # compilation failed
9395    lt_cv_dlopen_self_static=no
9396  fi
9397fi
9398rm -fr conftest*
9399
9400
9401fi
9402echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9403echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9404    fi
9405
9406    CPPFLAGS="$save_CPPFLAGS"
9407    LDFLAGS="$save_LDFLAGS"
9408    LIBS="$save_LIBS"
9409    ;;
9410  esac
9411
9412  case $lt_cv_dlopen_self in
9413  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9414  *) enable_dlopen_self=unknown ;;
9415  esac
9416
9417  case $lt_cv_dlopen_self_static in
9418  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9419  *) enable_dlopen_self_static=unknown ;;
9420  esac
9421fi
9422
9423
9424# Report which librarie types wil actually be built
9425echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9426echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9427echo "$as_me:$LINENO: result: $can_build_shared" >&5
9428echo "${ECHO_T}$can_build_shared" >&6
9429
9430echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9431echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9432test "$can_build_shared" = "no" && enable_shared=no
9433
9434# On AIX, shared libraries and static libraries use the same namespace, and
9435# are all built from PIC.
9436case $host_os in
9437aix3*)
9438  test "$enable_shared" = yes && enable_static=no
9439  if test -n "$RANLIB"; then
9440    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9441    postinstall_cmds='$RANLIB $lib'
9442  fi
9443  ;;
9444
9445aix4* | aix5*)
9446  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9447    test "$enable_shared" = yes && enable_static=no
9448  fi
9449    ;;
9450esac
9451echo "$as_me:$LINENO: result: $enable_shared" >&5
9452echo "${ECHO_T}$enable_shared" >&6
9453
9454echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9455echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9456# Make sure either enable_shared or enable_static is yes.
9457test "$enable_shared" = yes || enable_static=yes
9458echo "$as_me:$LINENO: result: $enable_static" >&5
9459echo "${ECHO_T}$enable_static" >&6
9460
9461# The else clause should only fire when bootstrapping the
9462# libtool distribution, otherwise you forgot to ship ltmain.sh
9463# with your package, and you will get complaints that there are
9464# no rules to generate ltmain.sh.
9465if test -f "$ltmain"; then
9466  # See if we are running on zsh, and set the options which allow our commands through
9467  # without removal of \ escapes.
9468  if test -n "${ZSH_VERSION+set}" ; then
9469    setopt NO_GLOB_SUBST
9470  fi
9471  # Now quote all the things that may contain metacharacters while being
9472  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9473  # variables and quote the copies for generation of the libtool script.
9474  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9475    SED SHELL STRIP \
9476    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9477    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9478    deplibs_check_method reload_flag reload_cmds need_locks \
9479    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9480    lt_cv_sys_global_symbol_to_c_name_address \
9481    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9482    old_postinstall_cmds old_postuninstall_cmds \
9483    compiler \
9484    CC \
9485    LD \
9486    lt_prog_compiler_wl \
9487    lt_prog_compiler_pic \
9488    lt_prog_compiler_static \
9489    lt_prog_compiler_no_builtin_flag \
9490    export_dynamic_flag_spec \
9491    thread_safe_flag_spec \
9492    whole_archive_flag_spec \
9493    enable_shared_with_static_runtimes \
9494    old_archive_cmds \
9495    old_archive_from_new_cmds \
9496    predep_objects \
9497    postdep_objects \
9498    predeps \
9499    postdeps \
9500    compiler_lib_search_path \
9501    archive_cmds \
9502    archive_expsym_cmds \
9503    postinstall_cmds \
9504    postuninstall_cmds \
9505    old_archive_from_expsyms_cmds \
9506    allow_undefined_flag \
9507    no_undefined_flag \
9508    export_symbols_cmds \
9509    hardcode_libdir_flag_spec \
9510    hardcode_libdir_flag_spec_ld \
9511    hardcode_libdir_separator \
9512    hardcode_automatic \
9513    module_cmds \
9514    module_expsym_cmds \
9515    lt_cv_prog_compiler_c_o \
9516    exclude_expsyms \
9517    include_expsyms; do
9518
9519    case $var in
9520    old_archive_cmds | \
9521    old_archive_from_new_cmds | \
9522    archive_cmds | \
9523    archive_expsym_cmds | \
9524    module_cmds | \
9525    module_expsym_cmds | \
9526    old_archive_from_expsyms_cmds | \
9527    export_symbols_cmds | \
9528    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9529    postinstall_cmds | postuninstall_cmds | \
9530    old_postinstall_cmds | old_postuninstall_cmds | \
9531    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9532      # Double-quote double-evaled strings.
9533      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9534      ;;
9535    *)
9536      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9537      ;;
9538    esac
9539  done
9540
9541  case $lt_echo in
9542  *'\$0 --fallback-echo"')
9543    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9544    ;;
9545  esac
9546
9547cfgfile="${ofile}T"
9548  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9549  $rm -f "$cfgfile"
9550  { echo "$as_me:$LINENO: creating $ofile" >&5
9551echo "$as_me: creating $ofile" >&6;}
9552
9553  cat <<__EOF__ >> "$cfgfile"
9554#! $SHELL
9555
9556# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9557# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9558# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9559#
9560# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9561# Free Software Foundation, Inc.
9562#
9563# This file is part of GNU Libtool:
9564# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9565#
9566# This program is free software; you can redistribute it and/or modify
9567# it under the terms of the GNU General Public License as published by
9568# the Free Software Foundation; either version 2 of the License, or
9569# (at your option) any later version.
9570#
9571# This program is distributed in the hope that it will be useful, but
9572# WITHOUT ANY WARRANTY; without even the implied warranty of
9573# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9574# General Public License for more details.
9575#
9576# You should have received a copy of the GNU General Public License
9577# along with this program; if not, write to the Free Software
9578# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9579#
9580# As a special exception to the GNU General Public License, if you
9581# distribute this file as part of a program that contains a
9582# configuration script generated by Autoconf, you may include it under
9583# the same distribution terms that you use for the rest of that program.
9584
9585# A sed program that does not truncate output.
9586SED=$lt_SED
9587
9588# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9589Xsed="$SED -e 1s/^X//"
9590
9591# The HP-UX ksh and POSIX shell print the target directory to stdout
9592# if CDPATH is set.
9593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9594
9595# The names of the tagged configurations supported by this script.
9596available_tags=
9597
9598# ### BEGIN LIBTOOL CONFIG
9599
9600# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9601
9602# Shell to use when invoking shell scripts.
9603SHELL=$lt_SHELL
9604
9605# Whether or not to build shared libraries.
9606build_libtool_libs=$enable_shared
9607
9608# Whether or not to build static libraries.
9609build_old_libs=$enable_static
9610
9611# Whether or not to add -lc for building shared libraries.
9612build_libtool_need_lc=$archive_cmds_need_lc
9613
9614# Whether or not to disallow shared libs when runtime libs are static
9615allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9616
9617# Whether or not to optimize for fast installation.
9618fast_install=$enable_fast_install
9619
9620# The host system.
9621host_alias=$host_alias
9622host=$host
9623host_os=$host_os
9624
9625# The build system.
9626build_alias=$build_alias
9627build=$build
9628build_os=$build_os
9629
9630# An echo program that does not interpret backslashes.
9631echo=$lt_echo
9632
9633# The archiver.
9634AR=$lt_AR
9635AR_FLAGS=$lt_AR_FLAGS
9636
9637# A C compiler.
9638LTCC=$lt_LTCC
9639
9640# A language-specific compiler.
9641CC=$lt_compiler
9642
9643# Is the compiler the GNU C compiler?
9644with_gcc=$GCC
9645
9646# An ERE matcher.
9647EGREP=$lt_EGREP
9648
9649# The linker used to build libraries.
9650LD=$lt_LD
9651
9652# Whether we need hard or soft links.
9653LN_S=$lt_LN_S
9654
9655# A BSD-compatible nm program.
9656NM=$lt_NM
9657
9658# A symbol stripping program
9659STRIP=$lt_STRIP
9660
9661# Used to examine libraries when file_magic_cmd begins "file"
9662MAGIC_CMD=$MAGIC_CMD
9663
9664# Used on cygwin: DLL creation program.
9665DLLTOOL="$DLLTOOL"
9666
9667# Used on cygwin: object dumper.
9668OBJDUMP="$OBJDUMP"
9669
9670# Used on cygwin: assembler.
9671AS="$AS"
9672
9673# The name of the directory that contains temporary libtool files.
9674objdir=$objdir
9675
9676# How to create reloadable object files.
9677reload_flag=$lt_reload_flag
9678reload_cmds=$lt_reload_cmds
9679
9680# How to pass a linker flag through the compiler.
9681wl=$lt_lt_prog_compiler_wl
9682
9683# Object file suffix (normally "o").
9684objext="$ac_objext"
9685
9686# Old archive suffix (normally "a").
9687libext="$libext"
9688
9689# Shared library suffix (normally ".so").
9690shrext_cmds='$shrext_cmds'
9691
9692# Executable file suffix (normally "").
9693exeext="$exeext"
9694
9695# Additional compiler flags for building library objects.
9696pic_flag=$lt_lt_prog_compiler_pic
9697pic_mode=$pic_mode
9698
9699# What is the maximum length of a command?
9700max_cmd_len=$lt_cv_sys_max_cmd_len
9701
9702# Does compiler simultaneously support -c and -o options?
9703compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9704
9705# Must we lock files when doing compilation?
9706need_locks=$lt_need_locks
9707
9708# Do we need the lib prefix for modules?
9709need_lib_prefix=$need_lib_prefix
9710
9711# Do we need a version for libraries?
9712need_version=$need_version
9713
9714# Whether dlopen is supported.
9715dlopen_support=$enable_dlopen
9716
9717# Whether dlopen of programs is supported.
9718dlopen_self=$enable_dlopen_self
9719
9720# Whether dlopen of statically linked programs is supported.
9721dlopen_self_static=$enable_dlopen_self_static
9722
9723# Compiler flag to prevent dynamic linking.
9724link_static_flag=$lt_lt_prog_compiler_static
9725
9726# Compiler flag to turn off builtin functions.
9727no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9728
9729# Compiler flag to allow reflexive dlopens.
9730export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9731
9732# Compiler flag to generate shared objects directly from archives.
9733whole_archive_flag_spec=$lt_whole_archive_flag_spec
9734
9735# Compiler flag to generate thread-safe objects.
9736thread_safe_flag_spec=$lt_thread_safe_flag_spec
9737
9738# Library versioning type.
9739version_type=$version_type
9740
9741# Format of library name prefix.
9742libname_spec=$lt_libname_spec
9743
9744# List of archive names.  First name is the real one, the rest are links.
9745# The last name is the one that the linker finds with -lNAME.
9746library_names_spec=$lt_library_names_spec
9747
9748# The coded name of the library, if different from the real name.
9749soname_spec=$lt_soname_spec
9750
9751# Commands used to build and install an old-style archive.
9752RANLIB=$lt_RANLIB
9753old_archive_cmds=$lt_old_archive_cmds
9754old_postinstall_cmds=$lt_old_postinstall_cmds
9755old_postuninstall_cmds=$lt_old_postuninstall_cmds
9756
9757# Create an old-style archive from a shared archive.
9758old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9759
9760# Create a temporary old-style archive to link instead of a shared archive.
9761old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9762
9763# Commands used to build and install a shared archive.
9764archive_cmds=$lt_archive_cmds
9765archive_expsym_cmds=$lt_archive_expsym_cmds
9766postinstall_cmds=$lt_postinstall_cmds
9767postuninstall_cmds=$lt_postuninstall_cmds
9768
9769# Commands used to build a loadable module (assumed same as above if empty)
9770module_cmds=$lt_module_cmds
9771module_expsym_cmds=$lt_module_expsym_cmds
9772
9773# Commands to strip libraries.
9774old_striplib=$lt_old_striplib
9775striplib=$lt_striplib
9776
9777# Dependencies to place before the objects being linked to create a
9778# shared library.
9779predep_objects=$lt_predep_objects
9780
9781# Dependencies to place after the objects being linked to create a
9782# shared library.
9783postdep_objects=$lt_postdep_objects
9784
9785# Dependencies to place before the objects being linked to create a
9786# shared library.
9787predeps=$lt_predeps
9788
9789# Dependencies to place after the objects being linked to create a
9790# shared library.
9791postdeps=$lt_postdeps
9792
9793# The library search path used internally by the compiler when linking
9794# a shared library.
9795compiler_lib_search_path=$lt_compiler_lib_search_path
9796
9797# Method to check whether dependent libraries are shared objects.
9798deplibs_check_method=$lt_deplibs_check_method
9799
9800# Command to use when deplibs_check_method == file_magic.
9801file_magic_cmd=$lt_file_magic_cmd
9802
9803# Flag that allows shared libraries with undefined symbols to be built.
9804allow_undefined_flag=$lt_allow_undefined_flag
9805
9806# Flag that forces no undefined symbols.
9807no_undefined_flag=$lt_no_undefined_flag
9808
9809# Commands used to finish a libtool library installation in a directory.
9810finish_cmds=$lt_finish_cmds
9811
9812# Same as above, but a single script fragment to be evaled but not shown.
9813finish_eval=$lt_finish_eval
9814
9815# Take the output of nm and produce a listing of raw symbols and C names.
9816global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9817
9818# Transform the output of nm in a proper C declaration
9819global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9820
9821# Transform the output of nm in a C name address pair
9822global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9823
9824# This is the shared library runtime path variable.
9825runpath_var=$runpath_var
9826
9827# This is the shared library path variable.
9828shlibpath_var=$shlibpath_var
9829
9830# Is shlibpath searched before the hard-coded library search path?
9831shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9832
9833# How to hardcode a shared library path into an executable.
9834hardcode_action=$hardcode_action
9835
9836# Whether we should hardcode library paths into libraries.
9837hardcode_into_libs=$hardcode_into_libs
9838
9839# Flag to hardcode \$libdir into a binary during linking.
9840# This must work even if \$libdir does not exist.
9841hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9842
9843# If ld is used when linking, flag to hardcode \$libdir into
9844# a binary during linking. This must work even if \$libdir does
9845# not exist.
9846hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9847
9848# Whether we need a single -rpath flag with a separated argument.
9849hardcode_libdir_separator=$lt_hardcode_libdir_separator
9850
9851# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9852# resulting binary.
9853hardcode_direct=$hardcode_direct
9854
9855# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9856# resulting binary.
9857hardcode_minus_L=$hardcode_minus_L
9858
9859# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9860# the resulting binary.
9861hardcode_shlibpath_var=$hardcode_shlibpath_var
9862
9863# Set to yes if building a shared library automatically hardcodes DIR into the library
9864# and all subsequent libraries and executables linked against it.
9865hardcode_automatic=$hardcode_automatic
9866
9867# Variables whose values should be saved in libtool wrapper scripts and
9868# restored at relink time.
9869variables_saved_for_relink="$variables_saved_for_relink"
9870
9871# Whether libtool must link a program against all its dependency libraries.
9872link_all_deplibs=$link_all_deplibs
9873
9874# Compile-time system search path for libraries
9875sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9876
9877# Run-time system search path for libraries
9878sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9879
9880# Fix the shell variable \$srcfile for the compiler.
9881fix_srcfile_path="$fix_srcfile_path"
9882
9883# Set to yes if exported symbols are required.
9884always_export_symbols=$always_export_symbols
9885
9886# The commands to list exported symbols.
9887export_symbols_cmds=$lt_export_symbols_cmds
9888
9889# The commands to extract the exported symbol list from a shared archive.
9890extract_expsyms_cmds=$lt_extract_expsyms_cmds
9891
9892# Symbols that should not be listed in the preloaded symbols.
9893exclude_expsyms=$lt_exclude_expsyms
9894
9895# Symbols that must always be exported.
9896include_expsyms=$lt_include_expsyms
9897
9898# ### END LIBTOOL CONFIG
9899
9900__EOF__
9901
9902
9903  case $host_os in
9904  aix3*)
9905    cat <<\EOF >> "$cfgfile"
9906
9907# AIX sometimes has problems with the GCC collect2 program.  For some
9908# reason, if we set the COLLECT_NAMES environment variable, the problems
9909# vanish in a puff of smoke.
9910if test "X${COLLECT_NAMES+set}" != Xset; then
9911  COLLECT_NAMES=
9912  export COLLECT_NAMES
9913fi
9914EOF
9915    ;;
9916  esac
9917
9918  # We use sed instead of cat because bash on DJGPP gets confused if
9919  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9920  # text mode, it properly converts lines to CR/LF.  This bash problem
9921  # is reportedly fixed, but why not run on old versions too?
9922  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9923
9924  mv -f "$cfgfile" "$ofile" || \
9925    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9926  chmod +x "$ofile"
9927
9928else
9929  # If there is no Makefile yet, we rely on a make rule to execute
9930  # `config.status --recheck' to rerun these tests and create the
9931  # libtool script then.
9932  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9933  if test -f "$ltmain_in"; then
9934    test -f Makefile && make "$ltmain"
9935  fi
9936fi
9937
9938
9939ac_ext=c
9940ac_cpp='$CPP $CPPFLAGS'
9941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9943ac_compiler_gnu=$ac_cv_c_compiler_gnu
9944
9945CC="$lt_save_CC"
9946
9947
9948# Check whether --with-tags or --without-tags was given.
9949if test "${with_tags+set}" = set; then
9950  withval="$with_tags"
9951  tagnames="$withval"
9952fi;
9953
9954if test -f "$ltmain" && test -n "$tagnames"; then
9955  if test ! -f "${ofile}"; then
9956    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9957echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9958  fi
9959
9960  if test -z "$LTCC"; then
9961    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9962    if test -z "$LTCC"; then
9963      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9964echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9965    else
9966      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9967echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9968    fi
9969  fi
9970
9971  # Extract list of available tagged configurations in $ofile.
9972  # Note that this assumes the entire list is on one line.
9973  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9974
9975  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9976  for tagname in $tagnames; do
9977    IFS="$lt_save_ifs"
9978    # Check whether tagname contains only valid characters
9979    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9980    "") ;;
9981    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9982echo "$as_me: error: invalid tag name: $tagname" >&2;}
9983   { (exit 1); exit 1; }; }
9984	;;
9985    esac
9986
9987    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9988    then
9989      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9990echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9991   { (exit 1); exit 1; }; }
9992    fi
9993
9994    # Update the list of available tags.
9995    if test -n "$tagname"; then
9996      echo appending configuration tag \"$tagname\" to $ofile
9997
9998      case $tagname in
9999      CXX)
10000	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10001	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10002	    (test "X$CXX" != "Xg++"))) ; then
10003	  ac_ext=cc
10004ac_cpp='$CXXCPP $CPPFLAGS'
10005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10008
10009
10010
10011
10012archive_cmds_need_lc_CXX=no
10013allow_undefined_flag_CXX=
10014always_export_symbols_CXX=no
10015archive_expsym_cmds_CXX=
10016export_dynamic_flag_spec_CXX=
10017hardcode_direct_CXX=no
10018hardcode_libdir_flag_spec_CXX=
10019hardcode_libdir_flag_spec_ld_CXX=
10020hardcode_libdir_separator_CXX=
10021hardcode_minus_L_CXX=no
10022hardcode_automatic_CXX=no
10023module_cmds_CXX=
10024module_expsym_cmds_CXX=
10025link_all_deplibs_CXX=unknown
10026old_archive_cmds_CXX=$old_archive_cmds
10027no_undefined_flag_CXX=
10028whole_archive_flag_spec_CXX=
10029enable_shared_with_static_runtimes_CXX=no
10030
10031# Dependencies to place before and after the object being linked:
10032predep_objects_CXX=
10033postdep_objects_CXX=
10034predeps_CXX=
10035postdeps_CXX=
10036compiler_lib_search_path_CXX=
10037
10038# Source file extension for C++ test sources.
10039ac_ext=cpp
10040
10041# Object file extension for compiled C++ test sources.
10042objext=o
10043objext_CXX=$objext
10044
10045# Code to be used in simple compile tests
10046lt_simple_compile_test_code="int some_variable = 0;\n"
10047
10048# Code to be used in simple link tests
10049lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10050
10051# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10052
10053# If no C compiler was specified, use CC.
10054LTCC=${LTCC-"$CC"}
10055
10056# Allow CC to be a program name with arguments.
10057compiler=$CC
10058
10059
10060# save warnings/boilerplate of simple test code
10061ac_outfile=conftest.$ac_objext
10062printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10063eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10064_lt_compiler_boilerplate=`cat conftest.err`
10065$rm conftest*
10066
10067ac_outfile=conftest.$ac_objext
10068printf "$lt_simple_link_test_code" >conftest.$ac_ext
10069eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10070_lt_linker_boilerplate=`cat conftest.err`
10071$rm conftest*
10072
10073
10074# Allow CC to be a program name with arguments.
10075lt_save_CC=$CC
10076lt_save_LD=$LD
10077lt_save_GCC=$GCC
10078GCC=$GXX
10079lt_save_with_gnu_ld=$with_gnu_ld
10080lt_save_path_LD=$lt_cv_path_LD
10081if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10082  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10083else
10084  unset lt_cv_prog_gnu_ld
10085fi
10086if test -n "${lt_cv_path_LDCXX+set}"; then
10087  lt_cv_path_LD=$lt_cv_path_LDCXX
10088else
10089  unset lt_cv_path_LD
10090fi
10091test -z "${LDCXX+set}" || LD=$LDCXX
10092CC=${CXX-"c++"}
10093compiler=$CC
10094compiler_CXX=$CC
10095for cc_temp in $compiler""; do
10096  case $cc_temp in
10097    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10098    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10099    \-*) ;;
10100    *) break;;
10101  esac
10102done
10103cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10104
10105
10106# We don't want -fno-exception wen compiling C++ code, so set the
10107# no_builtin_flag separately
10108if test "$GXX" = yes; then
10109  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10110else
10111  lt_prog_compiler_no_builtin_flag_CXX=
10112fi
10113
10114if test "$GXX" = yes; then
10115  # Set up default GNU C++ configuration
10116
10117
10118# Check whether --with-gnu-ld or --without-gnu-ld was given.
10119if test "${with_gnu_ld+set}" = set; then
10120  withval="$with_gnu_ld"
10121  test "$withval" = no || with_gnu_ld=yes
10122else
10123  with_gnu_ld=no
10124fi;
10125ac_prog=ld
10126if test "$GCC" = yes; then
10127  # Check if gcc -print-prog-name=ld gives a path.
10128  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10129echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10130  case $host in
10131  *-*-mingw*)
10132    # gcc leaves a trailing carriage return which upsets mingw
10133    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10134  *)
10135    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10136  esac
10137  case $ac_prog in
10138    # Accept absolute paths.
10139    [\\/]* | ?:[\\/]*)
10140      re_direlt='/[^/][^/]*/\.\./'
10141      # Canonicalize the pathname of ld
10142      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10143      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10144	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10145      done
10146      test -z "$LD" && LD="$ac_prog"
10147      ;;
10148  "")
10149    # If it fails, then pretend we aren't using GCC.
10150    ac_prog=ld
10151    ;;
10152  *)
10153    # If it is relative, then search for the first ld in PATH.
10154    with_gnu_ld=unknown
10155    ;;
10156  esac
10157elif test "$with_gnu_ld" = yes; then
10158  echo "$as_me:$LINENO: checking for GNU ld" >&5
10159echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10160else
10161  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10162echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10163fi
10164if test "${lt_cv_path_LD+set}" = set; then
10165  echo $ECHO_N "(cached) $ECHO_C" >&6
10166else
10167  if test -z "$LD"; then
10168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10169  for ac_dir in $PATH; do
10170    IFS="$lt_save_ifs"
10171    test -z "$ac_dir" && ac_dir=.
10172    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10173      lt_cv_path_LD="$ac_dir/$ac_prog"
10174      # Check to see if the program is GNU ld.  I'd rather use --version,
10175      # but apparently some variants of GNU ld only accept -v.
10176      # Break only if it was the GNU/non-GNU ld that we prefer.
10177      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10178      *GNU* | *'with BFD'*)
10179	test "$with_gnu_ld" != no && break
10180	;;
10181      *)
10182	test "$with_gnu_ld" != yes && break
10183	;;
10184      esac
10185    fi
10186  done
10187  IFS="$lt_save_ifs"
10188else
10189  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10190fi
10191fi
10192
10193LD="$lt_cv_path_LD"
10194if test -n "$LD"; then
10195  echo "$as_me:$LINENO: result: $LD" >&5
10196echo "${ECHO_T}$LD" >&6
10197else
10198  echo "$as_me:$LINENO: result: no" >&5
10199echo "${ECHO_T}no" >&6
10200fi
10201test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10202echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10203   { (exit 1); exit 1; }; }
10204echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10205echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10206if test "${lt_cv_prog_gnu_ld+set}" = set; then
10207  echo $ECHO_N "(cached) $ECHO_C" >&6
10208else
10209  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10210case `$LD -v 2>&1 </dev/null` in
10211*GNU* | *'with BFD'*)
10212  lt_cv_prog_gnu_ld=yes
10213  ;;
10214*)
10215  lt_cv_prog_gnu_ld=no
10216  ;;
10217esac
10218fi
10219echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10220echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10221with_gnu_ld=$lt_cv_prog_gnu_ld
10222
10223
10224
10225  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10226  # archiving commands below assume that GNU ld is being used.
10227  if test "$with_gnu_ld" = yes; then
10228    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10229    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'
10230
10231    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10232    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10233
10234    # If archive_cmds runs LD, not CC, wlarc should be empty
10235    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10236    #     investigate it a little bit more. (MM)
10237    wlarc='${wl}'
10238
10239    # ancient GNU ld didn't support --whole-archive et. al.
10240    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10241	grep 'no-whole-archive' > /dev/null; then
10242      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10243    else
10244      whole_archive_flag_spec_CXX=
10245    fi
10246  else
10247    with_gnu_ld=no
10248    wlarc=
10249
10250    # A generic and very simple default shared library creation
10251    # command for GNU C++ for the case where it uses the native
10252    # linker, instead of GNU ld.  If possible, this setting should
10253    # overridden to take advantage of the native linker features on
10254    # the platform it is being used on.
10255    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10256  fi
10257
10258  # Commands to make compiler produce verbose output that lists
10259  # what "hidden" libraries, object files and flags are used when
10260  # linking a shared library.
10261  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10262
10263else
10264  GXX=no
10265  with_gnu_ld=no
10266  wlarc=
10267fi
10268
10269# PORTME: fill in a description of your system's C++ link characteristics
10270echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10271echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10272ld_shlibs_CXX=yes
10273case $host_os in
10274  aix3*)
10275    # FIXME: insert proper C++ library support
10276    ld_shlibs_CXX=no
10277    ;;
10278  aix4* | aix5*)
10279    if test "$host_cpu" = ia64; then
10280      # On IA64, the linker does run time linking by default, so we don't
10281      # have to do anything special.
10282      aix_use_runtimelinking=no
10283      exp_sym_flag='-Bexport'
10284      no_entry_flag=""
10285    else
10286      aix_use_runtimelinking=no
10287
10288      # Test if we are trying to use run time linking or normal
10289      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10290      # need to do runtime linking.
10291      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10292	for ld_flag in $LDFLAGS; do
10293	  case $ld_flag in
10294	  *-brtl*)
10295	    aix_use_runtimelinking=yes
10296	    break
10297	    ;;
10298	  esac
10299	done
10300      esac
10301
10302      exp_sym_flag='-bexport'
10303      no_entry_flag='-bnoentry'
10304    fi
10305
10306    # When large executables or shared objects are built, AIX ld can
10307    # have problems creating the table of contents.  If linking a library
10308    # or program results in "error TOC overflow" add -mminimal-toc to
10309    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10310    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10311
10312    archive_cmds_CXX=''
10313    hardcode_direct_CXX=yes
10314    hardcode_libdir_separator_CXX=':'
10315    link_all_deplibs_CXX=yes
10316
10317    if test "$GXX" = yes; then
10318      case $host_os in aix4.[012]|aix4.[012].*)
10319      # We only want to do this on AIX 4.2 and lower, the check
10320      # below for broken collect2 doesn't work under 4.3+
10321	collect2name=`${CC} -print-prog-name=collect2`
10322	if test -f "$collect2name" && \
10323	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10324	then
10325	  # We have reworked collect2
10326	  hardcode_direct_CXX=yes
10327	else
10328	  # We have old collect2
10329	  hardcode_direct_CXX=unsupported
10330	  # It fails to find uninstalled libraries when the uninstalled
10331	  # path is not listed in the libpath.  Setting hardcode_minus_L
10332	  # to unsupported forces relinking
10333	  hardcode_minus_L_CXX=yes
10334	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10335	  hardcode_libdir_separator_CXX=
10336	fi
10337      esac
10338      shared_flag='-shared'
10339      if test "$aix_use_runtimelinking" = yes; then
10340	shared_flag="$shared_flag "'${wl}-G'
10341      fi
10342    else
10343      # not using gcc
10344      if test "$host_cpu" = ia64; then
10345	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10346	# chokes on -Wl,-G. The following line is correct:
10347	shared_flag='-G'
10348      else
10349	if test "$aix_use_runtimelinking" = yes; then
10350	  shared_flag='${wl}-G'
10351	else
10352	  shared_flag='${wl}-bM:SRE'
10353	fi
10354      fi
10355    fi
10356
10357    # It seems that -bexpall does not export symbols beginning with
10358    # underscore (_), so it is better to generate a list of symbols to export.
10359    always_export_symbols_CXX=yes
10360    if test "$aix_use_runtimelinking" = yes; then
10361      # Warning - without using the other runtime loading flags (-brtl),
10362      # -berok will link without error, but may produce a broken library.
10363      allow_undefined_flag_CXX='-berok'
10364      # Determine the default libpath from the value encoded in an empty executable.
10365      cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h.  */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h.  */
10371
10372int
10373main ()
10374{
10375
10376  ;
10377  return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382  (eval $ac_link) 2>conftest.er1
10383  ac_status=$?
10384  grep -v '^ *+' conftest.er1 >conftest.err
10385  rm -f conftest.er1
10386  cat conftest.err >&5
10387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388  (exit $ac_status); } &&
10389	 { ac_try='test -z "$ac_cxx_werror_flag"
10390			 || test ! -s conftest.err'
10391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392  (eval $ac_try) 2>&5
10393  ac_status=$?
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); }; } &&
10396	 { ac_try='test -s conftest$ac_exeext'
10397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398  (eval $ac_try) 2>&5
10399  ac_status=$?
10400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); }; }; then
10402
10403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10404}'`
10405# Check for a 64-bit object if we didn't find anything.
10406if 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; }
10407}'`; fi
10408else
10409  echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
10411
10412fi
10413rm -f conftest.err conftest.$ac_objext \
10414      conftest$ac_exeext conftest.$ac_ext
10415if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10416
10417      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10418
10419      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"
10420     else
10421      if test "$host_cpu" = ia64; then
10422	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10423	allow_undefined_flag_CXX="-z nodefs"
10424	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"
10425      else
10426	# Determine the default libpath from the value encoded in an empty executable.
10427	cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h.  */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h.  */
10433
10434int
10435main ()
10436{
10437
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442rm -f conftest.$ac_objext conftest$ac_exeext
10443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444  (eval $ac_link) 2>conftest.er1
10445  ac_status=$?
10446  grep -v '^ *+' conftest.er1 >conftest.err
10447  rm -f conftest.er1
10448  cat conftest.err >&5
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); } &&
10451	 { ac_try='test -z "$ac_cxx_werror_flag"
10452			 || test ! -s conftest.err'
10453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454  (eval $ac_try) 2>&5
10455  ac_status=$?
10456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); }; } &&
10458	 { ac_try='test -s conftest$ac_exeext'
10459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460  (eval $ac_try) 2>&5
10461  ac_status=$?
10462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463  (exit $ac_status); }; }; then
10464
10465aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10466}'`
10467# Check for a 64-bit object if we didn't find anything.
10468if 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; }
10469}'`; fi
10470else
10471  echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474fi
10475rm -f conftest.err conftest.$ac_objext \
10476      conftest$ac_exeext conftest.$ac_ext
10477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10478
10479	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10480	# Warning - without using the other run time loading flags,
10481	# -berok will link without error, but may produce a broken library.
10482	no_undefined_flag_CXX=' ${wl}-bernotok'
10483	allow_undefined_flag_CXX=' ${wl}-berok'
10484	# -bexpall does not export symbols beginning with underscore (_)
10485	always_export_symbols_CXX=yes
10486	# Exported symbols can be pulled into shared objects from archives
10487	whole_archive_flag_spec_CXX=' '
10488	archive_cmds_need_lc_CXX=yes
10489	# This is similar to how AIX traditionally builds its shared libraries.
10490	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'
10491      fi
10492    fi
10493    ;;
10494  chorus*)
10495    case $cc_basename in
10496      *)
10497	# FIXME: insert proper C++ library support
10498	ld_shlibs_CXX=no
10499	;;
10500    esac
10501    ;;
10502
10503
10504  cygwin* | mingw* | pw32*)
10505    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10506    # as there is no search path for DLLs.
10507    hardcode_libdir_flag_spec_CXX='-L$libdir'
10508    allow_undefined_flag_CXX=unsupported
10509    always_export_symbols_CXX=no
10510    enable_shared_with_static_runtimes_CXX=yes
10511
10512    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10513      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'
10514      # If the export-symbols file already is a .def file (1st line
10515      # is EXPORTS), use it as is; otherwise, prepend...
10516      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10517	cp $export_symbols $output_objdir/$soname.def;
10518      else
10519	echo EXPORTS > $output_objdir/$soname.def;
10520	cat $export_symbols >> $output_objdir/$soname.def;
10521      fi~
10522      $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'
10523    else
10524      ld_shlibs_CXX=no
10525    fi
10526  ;;
10527      darwin* | rhapsody*)
10528        case $host_os in
10529        rhapsody* | darwin1.[012])
10530         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10531         ;;
10532       *) # Darwin 1.3 on
10533         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10534           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10535         else
10536           case ${MACOSX_DEPLOYMENT_TARGET} in
10537             10.[012])
10538               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10539               ;;
10540             10.*)
10541               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10542               ;;
10543           esac
10544         fi
10545         ;;
10546        esac
10547      archive_cmds_need_lc_CXX=no
10548      hardcode_direct_CXX=no
10549      hardcode_automatic_CXX=yes
10550      hardcode_shlibpath_var_CXX=unsupported
10551      whole_archive_flag_spec_CXX=''
10552      link_all_deplibs_CXX=yes
10553
10554    if test "$GXX" = yes ; then
10555      lt_int_apple_cc_single_mod=no
10556      output_verbose_link_cmd='echo'
10557      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10558       lt_int_apple_cc_single_mod=yes
10559      fi
10560      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10561       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10562      else
10563          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'
10564        fi
10565        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10566        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10567          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10568            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}'
10569          else
10570            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}'
10571          fi
10572            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}'
10573      else
10574      case $cc_basename in
10575        xlc*)
10576         output_verbose_link_cmd='echo'
10577          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'
10578          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10579          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10580          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}'
10581          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}'
10582          ;;
10583       *)
10584         ld_shlibs_CXX=no
10585          ;;
10586      esac
10587      fi
10588        ;;
10589
10590  dgux*)
10591    case $cc_basename in
10592      ec++*)
10593	# FIXME: insert proper C++ library support
10594	ld_shlibs_CXX=no
10595	;;
10596      ghcx*)
10597	# Green Hills C++ Compiler
10598	# FIXME: insert proper C++ library support
10599	ld_shlibs_CXX=no
10600	;;
10601      *)
10602	# FIXME: insert proper C++ library support
10603	ld_shlibs_CXX=no
10604	;;
10605    esac
10606    ;;
10607  freebsd[12]*)
10608    # C++ shared libraries reported to be fairly broken before switch to ELF
10609    ld_shlibs_CXX=no
10610    ;;
10611  freebsd-elf*)
10612    archive_cmds_need_lc_CXX=no
10613    ;;
10614  freebsd* | kfreebsd*-gnu | dragonfly*)
10615    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10616    # conventions
10617    ld_shlibs_CXX=yes
10618    ;;
10619  gnu*)
10620    ;;
10621  hpux9*)
10622    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10623    hardcode_libdir_separator_CXX=:
10624    export_dynamic_flag_spec_CXX='${wl}-E'
10625    hardcode_direct_CXX=yes
10626    hardcode_minus_L_CXX=yes # Not in the search PATH,
10627				# but as the default
10628				# location of the library.
10629
10630    case $cc_basename in
10631    CC*)
10632      # FIXME: insert proper C++ library support
10633      ld_shlibs_CXX=no
10634      ;;
10635    aCC*)
10636      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'
10637      # Commands to make compiler produce verbose output that lists
10638      # what "hidden" libraries, object files and flags are used when
10639      # linking a shared library.
10640      #
10641      # There doesn't appear to be a way to prevent this compiler from
10642      # explicitly linking system object files so we need to strip them
10643      # from the output so that they don't get included in the library
10644      # dependencies.
10645      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'
10646      ;;
10647    *)
10648      if test "$GXX" = yes; then
10649        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'
10650      else
10651        # FIXME: insert proper C++ library support
10652        ld_shlibs_CXX=no
10653      fi
10654      ;;
10655    esac
10656    ;;
10657  hpux10*|hpux11*)
10658    if test $with_gnu_ld = no; then
10659      case $host_cpu in
10660      hppa*64*)
10661	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10662	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10663	hardcode_libdir_separator_CXX=:
10664        ;;
10665      ia64*)
10666	hardcode_libdir_flag_spec_CXX='-L$libdir'
10667        ;;
10668      *)
10669	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10670	hardcode_libdir_separator_CXX=:
10671	export_dynamic_flag_spec_CXX='${wl}-E'
10672        ;;
10673      esac
10674    fi
10675    case $host_cpu in
10676    hppa*64*)
10677      hardcode_direct_CXX=no
10678      hardcode_shlibpath_var_CXX=no
10679      ;;
10680    ia64*)
10681      hardcode_direct_CXX=no
10682      hardcode_shlibpath_var_CXX=no
10683      hardcode_minus_L_CXX=yes # Not in the search PATH,
10684					      # but as the default
10685					      # location of the library.
10686      ;;
10687    *)
10688      hardcode_direct_CXX=yes
10689      hardcode_minus_L_CXX=yes # Not in the search PATH,
10690					      # but as the default
10691					      # location of the library.
10692      ;;
10693    esac
10694
10695    case $cc_basename in
10696      CC*)
10697	# FIXME: insert proper C++ library support
10698	ld_shlibs_CXX=no
10699	;;
10700      aCC*)
10701	case $host_cpu in
10702	hppa*64*|ia64*)
10703	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10704	  ;;
10705	*)
10706	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10707	  ;;
10708	esac
10709	# Commands to make compiler produce verbose output that lists
10710	# what "hidden" libraries, object files and flags are used when
10711	# linking a shared library.
10712	#
10713	# There doesn't appear to be a way to prevent this compiler from
10714	# explicitly linking system object files so we need to strip them
10715	# from the output so that they don't get included in the library
10716	# dependencies.
10717	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'
10718	;;
10719      *)
10720	if test "$GXX" = yes; then
10721	  if test $with_gnu_ld = no; then
10722	    case $host_cpu in
10723	    ia64*|hppa*64*)
10724	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10725	      ;;
10726	    *)
10727	      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'
10728	      ;;
10729	    esac
10730	  fi
10731	else
10732	  # FIXME: insert proper C++ library support
10733	  ld_shlibs_CXX=no
10734	fi
10735	;;
10736    esac
10737    ;;
10738  irix5* | irix6*)
10739    case $cc_basename in
10740      CC*)
10741	# SGI C++
10742	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'
10743
10744	# Archives containing C++ object files must be created using
10745	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10746	# necessary to make sure instantiated templates are included
10747	# in the archive.
10748	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10749	;;
10750      *)
10751	if test "$GXX" = yes; then
10752	  if test "$with_gnu_ld" = no; then
10753	    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'
10754	  else
10755	    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'
10756	  fi
10757	fi
10758	link_all_deplibs_CXX=yes
10759	;;
10760    esac
10761    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10762    hardcode_libdir_separator_CXX=:
10763    ;;
10764  linux*)
10765    case $cc_basename in
10766      KCC*)
10767	# Kuck and Associates, Inc. (KAI) C++ Compiler
10768
10769	# KCC will only create a shared library if the output file
10770	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10771	# to its proper name (with version) after linking.
10772	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'
10773	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'
10774	# Commands to make compiler produce verbose output that lists
10775	# what "hidden" libraries, object files and flags are used when
10776	# linking a shared library.
10777	#
10778	# There doesn't appear to be a way to prevent this compiler from
10779	# explicitly linking system object files so we need to strip them
10780	# from the output so that they don't get included in the library
10781	# dependencies.
10782	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'
10783
10784	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10785	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10786
10787	# Archives containing C++ object files must be created using
10788	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10789	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10790	;;
10791      icpc*)
10792	# Intel C++
10793	with_gnu_ld=yes
10794	# version 8.0 and above of icpc choke on multiply defined symbols
10795	# if we add $predep_objects and $postdep_objects, however 7.1 and
10796	# earlier do not add the objects themselves.
10797	case `$CC -V 2>&1` in
10798	*"Version 7."*)
10799  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10800  	  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'
10801	  ;;
10802	*)  # Version 8.0 or newer
10803	  tmp_idyn=
10804	  case $host_cpu in
10805	    ia64*) tmp_idyn=' -i_dynamic';;
10806	  esac
10807  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10808	  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'
10809	  ;;
10810	esac
10811	archive_cmds_need_lc_CXX=no
10812	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10813	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10814	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10815	;;
10816      pgCC*)
10817        # Portland Group C++ compiler
10818	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10819  	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'
10820
10821	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10822	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10823	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'
10824        ;;
10825      cxx*)
10826	# Compaq C++
10827	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10828	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'
10829
10830	runpath_var=LD_RUN_PATH
10831	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10832	hardcode_libdir_separator_CXX=:
10833
10834	# Commands to make compiler produce verbose output that lists
10835	# what "hidden" libraries, object files and flags are used when
10836	# linking a shared library.
10837	#
10838	# There doesn't appear to be a way to prevent this compiler from
10839	# explicitly linking system object files so we need to strip them
10840	# from the output so that they don't get included in the library
10841	# dependencies.
10842	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'
10843	;;
10844    esac
10845    ;;
10846  lynxos*)
10847    # FIXME: insert proper C++ library support
10848    ld_shlibs_CXX=no
10849    ;;
10850  m88k*)
10851    # FIXME: insert proper C++ library support
10852    ld_shlibs_CXX=no
10853    ;;
10854  mvs*)
10855    case $cc_basename in
10856      cxx*)
10857	# FIXME: insert proper C++ library support
10858	ld_shlibs_CXX=no
10859	;;
10860      *)
10861	# FIXME: insert proper C++ library support
10862	ld_shlibs_CXX=no
10863	;;
10864    esac
10865    ;;
10866  netbsd*)
10867    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10868      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10869      wlarc=
10870      hardcode_libdir_flag_spec_CXX='-R$libdir'
10871      hardcode_direct_CXX=yes
10872      hardcode_shlibpath_var_CXX=no
10873    fi
10874    # Workaround some broken pre-1.5 toolchains
10875    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10876    ;;
10877  openbsd2*)
10878    # C++ shared libraries are fairly broken
10879    ld_shlibs_CXX=no
10880    ;;
10881  openbsd*)
10882    hardcode_direct_CXX=yes
10883    hardcode_shlibpath_var_CXX=no
10884    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10885    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10886    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10887      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10888      export_dynamic_flag_spec_CXX='${wl}-E'
10889      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10890    fi
10891    output_verbose_link_cmd='echo'
10892    ;;
10893  osf3*)
10894    case $cc_basename in
10895      KCC*)
10896	# Kuck and Associates, Inc. (KAI) C++ Compiler
10897
10898	# KCC will only create a shared library if the output file
10899	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10900	# to its proper name (with version) after linking.
10901	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'
10902
10903	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10904	hardcode_libdir_separator_CXX=:
10905
10906	# Archives containing C++ object files must be created using
10907	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10908	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10909
10910	;;
10911      RCC*)
10912	# Rational C++ 2.4.1
10913	# FIXME: insert proper C++ library support
10914	ld_shlibs_CXX=no
10915	;;
10916      cxx*)
10917	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10918	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'
10919
10920	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10921	hardcode_libdir_separator_CXX=:
10922
10923	# Commands to make compiler produce verbose output that lists
10924	# what "hidden" libraries, object files and flags are used when
10925	# linking a shared library.
10926	#
10927	# There doesn't appear to be a way to prevent this compiler from
10928	# explicitly linking system object files so we need to strip them
10929	# from the output so that they don't get included in the library
10930	# dependencies.
10931	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'
10932	;;
10933      *)
10934	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10935	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10936	  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'
10937
10938	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10939	  hardcode_libdir_separator_CXX=:
10940
10941	  # Commands to make compiler produce verbose output that lists
10942	  # what "hidden" libraries, object files and flags are used when
10943	  # linking a shared library.
10944	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10945
10946	else
10947	  # FIXME: insert proper C++ library support
10948	  ld_shlibs_CXX=no
10949	fi
10950	;;
10951    esac
10952    ;;
10953  osf4* | osf5*)
10954    case $cc_basename in
10955      KCC*)
10956	# Kuck and Associates, Inc. (KAI) C++ Compiler
10957
10958	# KCC will only create a shared library if the output file
10959	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10960	# to its proper name (with version) after linking.
10961	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'
10962
10963	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10964	hardcode_libdir_separator_CXX=:
10965
10966	# Archives containing C++ object files must be created using
10967	# the KAI C++ compiler.
10968	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10969	;;
10970      RCC*)
10971	# Rational C++ 2.4.1
10972	# FIXME: insert proper C++ library support
10973	ld_shlibs_CXX=no
10974	;;
10975      cxx*)
10976	allow_undefined_flag_CXX=' -expect_unresolved \*'
10977	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'
10978	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10979	  echo "-hidden">> $lib.exp~
10980	  $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~
10981	  $rm $lib.exp'
10982
10983	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10984	hardcode_libdir_separator_CXX=:
10985
10986	# Commands to make compiler produce verbose output that lists
10987	# what "hidden" libraries, object files and flags are used when
10988	# linking a shared library.
10989	#
10990	# There doesn't appear to be a way to prevent this compiler from
10991	# explicitly linking system object files so we need to strip them
10992	# from the output so that they don't get included in the library
10993	# dependencies.
10994	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'
10995	;;
10996      *)
10997	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10998	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10999	 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'
11000
11001	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11002	  hardcode_libdir_separator_CXX=:
11003
11004	  # Commands to make compiler produce verbose output that lists
11005	  # what "hidden" libraries, object files and flags are used when
11006	  # linking a shared library.
11007	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11008
11009	else
11010	  # FIXME: insert proper C++ library support
11011	  ld_shlibs_CXX=no
11012	fi
11013	;;
11014    esac
11015    ;;
11016  psos*)
11017    # FIXME: insert proper C++ library support
11018    ld_shlibs_CXX=no
11019    ;;
11020  sco*)
11021    archive_cmds_need_lc_CXX=no
11022    case $cc_basename in
11023      CC*)
11024	# FIXME: insert proper C++ library support
11025	ld_shlibs_CXX=no
11026	;;
11027      *)
11028	# FIXME: insert proper C++ library support
11029	ld_shlibs_CXX=no
11030	;;
11031    esac
11032    ;;
11033  sunos4*)
11034    case $cc_basename in
11035      CC*)
11036	# Sun C++ 4.x
11037	# FIXME: insert proper C++ library support
11038	ld_shlibs_CXX=no
11039	;;
11040      lcc*)
11041	# Lucid
11042	# FIXME: insert proper C++ library support
11043	ld_shlibs_CXX=no
11044	;;
11045      *)
11046	# FIXME: insert proper C++ library support
11047	ld_shlibs_CXX=no
11048	;;
11049    esac
11050    ;;
11051  solaris*)
11052    case $cc_basename in
11053      CC*)
11054	# Sun C++ 4.2, 5.x and Centerline C++
11055        archive_cmds_need_lc_CXX=yes
11056	no_undefined_flag_CXX=' -zdefs'
11057	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11058	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11059	$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'
11060
11061	hardcode_libdir_flag_spec_CXX='-R$libdir'
11062	hardcode_shlibpath_var_CXX=no
11063	case $host_os in
11064	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11065	  *)
11066	    # The C++ compiler is used as linker so we must use $wl
11067	    # flag to pass the commands to the underlying system
11068	    # linker. We must also pass each convience library through
11069	    # to the system linker between allextract/defaultextract.
11070	    # The C++ compiler will combine linker options so we
11071	    # cannot just pass the convience library names through
11072	    # without $wl.
11073	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11074	    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'
11075	    ;;
11076	esac
11077	link_all_deplibs_CXX=yes
11078
11079	output_verbose_link_cmd='echo'
11080
11081	# Archives containing C++ object files must be created using
11082	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11083	# necessary to make sure instantiated templates are included
11084	# in the archive.
11085	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11086	;;
11087      gcx*)
11088	# Green Hills C++ Compiler
11089	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11090
11091	# The C++ compiler must be used to create the archive.
11092	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11093	;;
11094      *)
11095	# GNU C++ compiler with Solaris linker
11096	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11097	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11098	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11099	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11100	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11101		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11102
11103	    # Commands to make compiler produce verbose output that lists
11104	    # what "hidden" libraries, object files and flags are used when
11105	    # linking a shared library.
11106	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11107	  else
11108	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11109	    # platform.
11110	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11111	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11112		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11113
11114	    # Commands to make compiler produce verbose output that lists
11115	    # what "hidden" libraries, object files and flags are used when
11116	    # linking a shared library.
11117	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11118	  fi
11119
11120	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11121	fi
11122	;;
11123    esac
11124    ;;
11125  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11126    archive_cmds_need_lc_CXX=no
11127    ;;
11128  tandem*)
11129    case $cc_basename in
11130      NCC*)
11131	# NonStop-UX NCC 3.20
11132	# FIXME: insert proper C++ library support
11133	ld_shlibs_CXX=no
11134	;;
11135      *)
11136	# FIXME: insert proper C++ library support
11137	ld_shlibs_CXX=no
11138	;;
11139    esac
11140    ;;
11141  vxworks*)
11142    # FIXME: insert proper C++ library support
11143    ld_shlibs_CXX=no
11144    ;;
11145  *)
11146    # FIXME: insert proper C++ library support
11147    ld_shlibs_CXX=no
11148    ;;
11149esac
11150echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11151echo "${ECHO_T}$ld_shlibs_CXX" >&6
11152test "$ld_shlibs_CXX" = no && can_build_shared=no
11153
11154GCC_CXX="$GXX"
11155LD_CXX="$LD"
11156
11157
11158cat > conftest.$ac_ext <<EOF
11159class Foo
11160{
11161public:
11162  Foo (void) { a = 0; }
11163private:
11164  int a;
11165};
11166EOF
11167
11168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11169  (eval $ac_compile) 2>&5
11170  ac_status=$?
11171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172  (exit $ac_status); }; then
11173  # Parse the compiler output and extract the necessary
11174  # objects, libraries and library flags.
11175
11176  # Sentinel used to keep track of whether or not we are before
11177  # the conftest object file.
11178  pre_test_object_deps_done=no
11179
11180  # The `*' in the case matches for architectures that use `case' in
11181  # $output_verbose_cmd can trigger glob expansion during the loop
11182  # eval without this substitution.
11183  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11184
11185  for p in `eval $output_verbose_link_cmd`; do
11186    case $p in
11187
11188    -L* | -R* | -l*)
11189       # Some compilers place space between "-{L,R}" and the path.
11190       # Remove the space.
11191       if test $p = "-L" \
11192	  || test $p = "-R"; then
11193	 prev=$p
11194	 continue
11195       else
11196	 prev=
11197       fi
11198
11199       if test "$pre_test_object_deps_done" = no; then
11200	 case $p in
11201	 -L* | -R*)
11202	   # Internal compiler library paths should come after those
11203	   # provided the user.  The postdeps already come after the
11204	   # user supplied libs so there is no need to process them.
11205	   if test -z "$compiler_lib_search_path_CXX"; then
11206	     compiler_lib_search_path_CXX="${prev}${p}"
11207	   else
11208	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11209	   fi
11210	   ;;
11211	 # The "-l" case would never come before the object being
11212	 # linked, so don't bother handling this case.
11213	 esac
11214       else
11215	 if test -z "$postdeps_CXX"; then
11216	   postdeps_CXX="${prev}${p}"
11217	 else
11218	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11219	 fi
11220       fi
11221       ;;
11222
11223    *.$objext)
11224       # This assumes that the test object file only shows up
11225       # once in the compiler output.
11226       if test "$p" = "conftest.$objext"; then
11227	 pre_test_object_deps_done=yes
11228	 continue
11229       fi
11230
11231       if test "$pre_test_object_deps_done" = no; then
11232	 if test -z "$predep_objects_CXX"; then
11233	   predep_objects_CXX="$p"
11234	 else
11235	   predep_objects_CXX="$predep_objects_CXX $p"
11236	 fi
11237       else
11238	 if test -z "$postdep_objects_CXX"; then
11239	   postdep_objects_CXX="$p"
11240	 else
11241	   postdep_objects_CXX="$postdep_objects_CXX $p"
11242	 fi
11243       fi
11244       ;;
11245
11246    *) ;; # Ignore the rest.
11247
11248    esac
11249  done
11250
11251  # Clean up.
11252  rm -f a.out a.exe
11253else
11254  echo "libtool.m4: error: problem compiling CXX test program"
11255fi
11256
11257$rm -f confest.$objext
11258
11259# PORTME: override above test on systems where it is broken
11260case $host_os in
11261solaris*)
11262  case $cc_basename in
11263  CC*)
11264    # Adding this requires a known-good setup of shared libraries for
11265    # Sun compiler versions before 5.6, else PIC objects from an old
11266    # archive will be linked into the output, leading to subtle bugs.
11267    postdeps_CXX='-lCstd -lCrun'
11268    ;;
11269  esac
11270esac
11271
11272
11273case " $postdeps_CXX " in
11274*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11275esac
11276
11277lt_prog_compiler_wl_CXX=
11278lt_prog_compiler_pic_CXX=
11279lt_prog_compiler_static_CXX=
11280
11281echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11282echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11283
11284  # C++ specific cases for pic, static, wl, etc.
11285  if test "$GXX" = yes; then
11286    lt_prog_compiler_wl_CXX='-Wl,'
11287    lt_prog_compiler_static_CXX='-static'
11288
11289    case $host_os in
11290    aix*)
11291      # All AIX code is PIC.
11292      if test "$host_cpu" = ia64; then
11293	# AIX 5 now supports IA64 processor
11294	lt_prog_compiler_static_CXX='-Bstatic'
11295      fi
11296      ;;
11297    amigaos*)
11298      # FIXME: we need at least 68020 code to build shared libraries, but
11299      # adding the `-m68020' flag to GCC prevents building anything better,
11300      # like `-m68040'.
11301      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11302      ;;
11303    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11304      # PIC is the default for these OSes.
11305      ;;
11306    mingw* | os2* | pw32*)
11307      # This hack is so that the source file can tell whether it is being
11308      # built for inclusion in a dll (and should export symbols for example).
11309      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11310      ;;
11311    darwin* | rhapsody*)
11312      # PIC is the default on this platform
11313      # Common symbols not allowed in MH_DYLIB files
11314      lt_prog_compiler_pic_CXX='-fno-common'
11315      ;;
11316    *djgpp*)
11317      # DJGPP does not support shared libraries at all
11318      lt_prog_compiler_pic_CXX=
11319      ;;
11320    sysv4*MP*)
11321      if test -d /usr/nec; then
11322	lt_prog_compiler_pic_CXX=-Kconform_pic
11323      fi
11324      ;;
11325    hpux*)
11326      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11327      # not for PA HP-UX.
11328      case $host_cpu in
11329      hppa*64*|ia64*)
11330	;;
11331      *)
11332	lt_prog_compiler_pic_CXX='-fPIC'
11333	;;
11334      esac
11335      ;;
11336    *)
11337      lt_prog_compiler_pic_CXX='-fPIC'
11338      ;;
11339    esac
11340  else
11341    case $host_os in
11342      aix4* | aix5*)
11343	# All AIX code is PIC.
11344	if test "$host_cpu" = ia64; then
11345	  # AIX 5 now supports IA64 processor
11346	  lt_prog_compiler_static_CXX='-Bstatic'
11347	else
11348	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11349	fi
11350	;;
11351      chorus*)
11352	case $cc_basename in
11353	cxch68*)
11354	  # Green Hills C++ Compiler
11355	  # _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"
11356	  ;;
11357	esac
11358	;;
11359       darwin*)
11360         # PIC is the default on this platform
11361         # Common symbols not allowed in MH_DYLIB files
11362         case $cc_basename in
11363           xlc*)
11364           lt_prog_compiler_pic_CXX='-qnocommon'
11365           lt_prog_compiler_wl_CXX='-Wl,'
11366           ;;
11367         esac
11368       ;;
11369      dgux*)
11370	case $cc_basename in
11371	  ec++*)
11372	    lt_prog_compiler_pic_CXX='-KPIC'
11373	    ;;
11374	  ghcx*)
11375	    # Green Hills C++ Compiler
11376	    lt_prog_compiler_pic_CXX='-pic'
11377	    ;;
11378	  *)
11379	    ;;
11380	esac
11381	;;
11382      freebsd* | kfreebsd*-gnu | dragonfly*)
11383	# FreeBSD uses GNU C++
11384	;;
11385      hpux9* | hpux10* | hpux11*)
11386	case $cc_basename in
11387	  CC*)
11388	    lt_prog_compiler_wl_CXX='-Wl,'
11389	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11390	    if test "$host_cpu" != ia64; then
11391	      lt_prog_compiler_pic_CXX='+Z'
11392	    fi
11393	    ;;
11394	  aCC*)
11395	    lt_prog_compiler_wl_CXX='-Wl,'
11396	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11397	    case $host_cpu in
11398	    hppa*64*|ia64*)
11399	      # +Z the default
11400	      ;;
11401	    *)
11402	      lt_prog_compiler_pic_CXX='+Z'
11403	      ;;
11404	    esac
11405	    ;;
11406	  *)
11407	    ;;
11408	esac
11409	;;
11410      irix5* | irix6* | nonstopux*)
11411	case $cc_basename in
11412	  CC*)
11413	    lt_prog_compiler_wl_CXX='-Wl,'
11414	    lt_prog_compiler_static_CXX='-non_shared'
11415	    # CC pic flag -KPIC is the default.
11416	    ;;
11417	  *)
11418	    ;;
11419	esac
11420	;;
11421      linux*)
11422	case $cc_basename in
11423	  KCC*)
11424	    # KAI C++ Compiler
11425	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11426	    lt_prog_compiler_pic_CXX='-fPIC'
11427	    ;;
11428	  icpc* | ecpc*)
11429	    # Intel C++
11430	    lt_prog_compiler_wl_CXX='-Wl,'
11431	    lt_prog_compiler_pic_CXX='-KPIC'
11432	    lt_prog_compiler_static_CXX='-static'
11433	    ;;
11434	  pgCC*)
11435	    # Portland Group C++ compiler.
11436	    lt_prog_compiler_wl_CXX='-Wl,'
11437	    lt_prog_compiler_pic_CXX='-fpic'
11438	    lt_prog_compiler_static_CXX='-Bstatic'
11439	    ;;
11440	  cxx*)
11441	    # Compaq C++
11442	    # Make sure the PIC flag is empty.  It appears that all Alpha
11443	    # Linux and Compaq Tru64 Unix objects are PIC.
11444	    lt_prog_compiler_pic_CXX=
11445	    lt_prog_compiler_static_CXX='-non_shared'
11446	    ;;
11447	  *)
11448	    ;;
11449	esac
11450	;;
11451      lynxos*)
11452	;;
11453      m88k*)
11454	;;
11455      mvs*)
11456	case $cc_basename in
11457	  cxx*)
11458	    lt_prog_compiler_pic_CXX='-W c,exportall'
11459	    ;;
11460	  *)
11461	    ;;
11462	esac
11463	;;
11464      netbsd*)
11465	;;
11466      osf3* | osf4* | osf5*)
11467	case $cc_basename in
11468	  KCC*)
11469	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11470	    ;;
11471	  RCC*)
11472	    # Rational C++ 2.4.1
11473	    lt_prog_compiler_pic_CXX='-pic'
11474	    ;;
11475	  cxx*)
11476	    # Digital/Compaq C++
11477	    lt_prog_compiler_wl_CXX='-Wl,'
11478	    # Make sure the PIC flag is empty.  It appears that all Alpha
11479	    # Linux and Compaq Tru64 Unix objects are PIC.
11480	    lt_prog_compiler_pic_CXX=
11481	    lt_prog_compiler_static_CXX='-non_shared'
11482	    ;;
11483	  *)
11484	    ;;
11485	esac
11486	;;
11487      psos*)
11488	;;
11489      sco*)
11490	case $cc_basename in
11491	  CC*)
11492	    lt_prog_compiler_pic_CXX='-fPIC'
11493	    ;;
11494	  *)
11495	    ;;
11496	esac
11497	;;
11498      solaris*)
11499	case $cc_basename in
11500	  CC*)
11501	    # Sun C++ 4.2, 5.x and Centerline C++
11502	    lt_prog_compiler_pic_CXX='-KPIC'
11503	    lt_prog_compiler_static_CXX='-Bstatic'
11504	    lt_prog_compiler_wl_CXX='-Qoption ld '
11505	    ;;
11506	  gcx*)
11507	    # Green Hills C++ Compiler
11508	    lt_prog_compiler_pic_CXX='-PIC'
11509	    ;;
11510	  *)
11511	    ;;
11512	esac
11513	;;
11514      sunos4*)
11515	case $cc_basename in
11516	  CC*)
11517	    # Sun C++ 4.x
11518	    lt_prog_compiler_pic_CXX='-pic'
11519	    lt_prog_compiler_static_CXX='-Bstatic'
11520	    ;;
11521	  lcc*)
11522	    # Lucid
11523	    lt_prog_compiler_pic_CXX='-pic'
11524	    ;;
11525	  *)
11526	    ;;
11527	esac
11528	;;
11529      tandem*)
11530	case $cc_basename in
11531	  NCC*)
11532	    # NonStop-UX NCC 3.20
11533	    lt_prog_compiler_pic_CXX='-KPIC'
11534	    ;;
11535	  *)
11536	    ;;
11537	esac
11538	;;
11539      unixware*)
11540	;;
11541      vxworks*)
11542	;;
11543      *)
11544	lt_prog_compiler_can_build_shared_CXX=no
11545	;;
11546    esac
11547  fi
11548
11549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11550echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11551
11552#
11553# Check to make sure the PIC flag actually works.
11554#
11555if test -n "$lt_prog_compiler_pic_CXX"; then
11556
11557echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11558echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11559if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11560  echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562  lt_prog_compiler_pic_works_CXX=no
11563  ac_outfile=conftest.$ac_objext
11564   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11565   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11566   # Insert the option either (1) after the last *FLAGS variable, or
11567   # (2) before a word containing "conftest.", or (3) at the end.
11568   # Note that $ac_compile itself does not contain backslashes and begins
11569   # with a dollar sign (not a hyphen), so the echo should work correctly.
11570   # The option is referenced via a variable to avoid confusing sed.
11571   lt_compile=`echo "$ac_compile" | $SED \
11572   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11573   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11574   -e 's:$: $lt_compiler_flag:'`
11575   (eval echo "\"\$as_me:11823: $lt_compile\"" >&5)
11576   (eval "$lt_compile" 2>conftest.err)
11577   ac_status=$?
11578   cat conftest.err >&5
11579   echo "$as_me:11827: \$? = $ac_status" >&5
11580   if (exit $ac_status) && test -s "$ac_outfile"; then
11581     # The compiler can only warn and ignore the option if not recognized
11582     # So say no if there are warnings other than the usual output.
11583     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11584     $SED '/^$/d' conftest.err >conftest.er2
11585     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11586       lt_prog_compiler_pic_works_CXX=yes
11587     fi
11588   fi
11589   $rm conftest*
11590
11591fi
11592echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11593echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11594
11595if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11596    case $lt_prog_compiler_pic_CXX in
11597     "" | " "*) ;;
11598     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11599     esac
11600else
11601    lt_prog_compiler_pic_CXX=
11602     lt_prog_compiler_can_build_shared_CXX=no
11603fi
11604
11605fi
11606case $host_os in
11607  # For platforms which do not support PIC, -DPIC is meaningless:
11608  *djgpp*)
11609    lt_prog_compiler_pic_CXX=
11610    ;;
11611  *)
11612    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11613    ;;
11614esac
11615
11616echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11617echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11618if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11619  echo $ECHO_N "(cached) $ECHO_C" >&6
11620else
11621  lt_cv_prog_compiler_c_o_CXX=no
11622   $rm -r conftest 2>/dev/null
11623   mkdir conftest
11624   cd conftest
11625   mkdir out
11626   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11627
11628   lt_compiler_flag="-o out/conftest2.$ac_objext"
11629   # Insert the option either (1) after the last *FLAGS variable, or
11630   # (2) before a word containing "conftest.", or (3) at the end.
11631   # Note that $ac_compile itself does not contain backslashes and begins
11632   # with a dollar sign (not a hyphen), so the echo should work correctly.
11633   lt_compile=`echo "$ac_compile" | $SED \
11634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11636   -e 's:$: $lt_compiler_flag:'`
11637   (eval echo "\"\$as_me:11885: $lt_compile\"" >&5)
11638   (eval "$lt_compile" 2>out/conftest.err)
11639   ac_status=$?
11640   cat out/conftest.err >&5
11641   echo "$as_me:11889: \$? = $ac_status" >&5
11642   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11643   then
11644     # The compiler can only warn and ignore the option if not recognized
11645     # So say no if there are warnings
11646     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11647     $SED '/^$/d' out/conftest.err >out/conftest.er2
11648     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11649       lt_cv_prog_compiler_c_o_CXX=yes
11650     fi
11651   fi
11652   chmod u+w . 2>&5
11653   $rm conftest*
11654   # SGI C++ compiler will create directory out/ii_files/ for
11655   # template instantiation
11656   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11657   $rm out/* && rmdir out
11658   cd ..
11659   rmdir conftest
11660   $rm conftest*
11661
11662fi
11663echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11664echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11665
11666
11667hard_links="nottested"
11668if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11669  # do not overwrite the value of need_locks provided by the user
11670  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11671echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11672  hard_links=yes
11673  $rm conftest*
11674  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11675  touch conftest.a
11676  ln conftest.a conftest.b 2>&5 || hard_links=no
11677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11678  echo "$as_me:$LINENO: result: $hard_links" >&5
11679echo "${ECHO_T}$hard_links" >&6
11680  if test "$hard_links" = no; then
11681    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11682echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11683    need_locks=warn
11684  fi
11685else
11686  need_locks=no
11687fi
11688
11689echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11690echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11691
11692  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11693  case $host_os in
11694  aix4* | aix5*)
11695    # If we're using GNU nm, then we don't want the "-C" option.
11696    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11697    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11698      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'
11699    else
11700      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'
11701    fi
11702    ;;
11703  pw32*)
11704    export_symbols_cmds_CXX="$ltdll_cmds"
11705  ;;
11706  cygwin* | mingw*)
11707    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'
11708  ;;
11709  *)
11710    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11711  ;;
11712  esac
11713
11714echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11715echo "${ECHO_T}$ld_shlibs_CXX" >&6
11716test "$ld_shlibs_CXX" = no && can_build_shared=no
11717
11718variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11719if test "$GCC" = yes; then
11720  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11721fi
11722
11723#
11724# Do we need to explicitly link libc?
11725#
11726case "x$archive_cmds_need_lc_CXX" in
11727x|xyes)
11728  # Assume -lc should be added
11729  archive_cmds_need_lc_CXX=yes
11730
11731  if test "$enable_shared" = yes && test "$GCC" = yes; then
11732    case $archive_cmds_CXX in
11733    *'~'*)
11734      # FIXME: we may have to deal with multi-command sequences.
11735      ;;
11736    '$CC '*)
11737      # Test whether the compiler implicitly links with -lc since on some
11738      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11739      # to ld, don't add -lc before -lgcc.
11740      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11741echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11742      $rm conftest*
11743      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11744
11745      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746  (eval $ac_compile) 2>&5
11747  ac_status=$?
11748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749  (exit $ac_status); } 2>conftest.err; then
11750        soname=conftest
11751        lib=conftest
11752        libobjs=conftest.$ac_objext
11753        deplibs=
11754        wl=$lt_prog_compiler_wl_CXX
11755        compiler_flags=-v
11756        linker_flags=-v
11757        verstring=
11758        output_objdir=.
11759        libname=conftest
11760        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11761        allow_undefined_flag_CXX=
11762        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11763  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11764  ac_status=$?
11765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766  (exit $ac_status); }
11767        then
11768	  archive_cmds_need_lc_CXX=no
11769        else
11770	  archive_cmds_need_lc_CXX=yes
11771        fi
11772        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11773      else
11774        cat conftest.err 1>&5
11775      fi
11776      $rm conftest*
11777      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11778echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11779      ;;
11780    esac
11781  fi
11782  ;;
11783esac
11784
11785echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11786echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11787library_names_spec=
11788libname_spec='lib$name'
11789soname_spec=
11790shrext_cmds=".so"
11791postinstall_cmds=
11792postuninstall_cmds=
11793finish_cmds=
11794finish_eval=
11795shlibpath_var=
11796shlibpath_overrides_runpath=unknown
11797version_type=none
11798dynamic_linker="$host_os ld.so"
11799sys_lib_dlsearch_path_spec="/lib /usr/lib"
11800if test "$GCC" = yes; then
11801  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11802  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11803    # if the path contains ";" then we assume it to be the separator
11804    # otherwise default to the standard path separator (i.e. ":") - it is
11805    # assumed that no part of a normal pathname contains ";" but that should
11806    # okay in the real world where ";" in dirpaths is itself problematic.
11807    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11808  else
11809    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11810  fi
11811else
11812  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11813fi
11814need_lib_prefix=unknown
11815hardcode_into_libs=no
11816
11817# when you set need_version to no, make sure it does not cause -set_version
11818# flags to be left without arguments
11819need_version=unknown
11820
11821case $host_os in
11822aix3*)
11823  version_type=linux
11824  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11825  shlibpath_var=LIBPATH
11826
11827  # AIX 3 has no versioning support, so we append a major version to the name.
11828  soname_spec='${libname}${release}${shared_ext}$major'
11829  ;;
11830
11831aix4* | aix5*)
11832  version_type=linux
11833  need_lib_prefix=no
11834  need_version=no
11835  hardcode_into_libs=yes
11836  if test "$host_cpu" = ia64; then
11837    # AIX 5 supports IA64
11838    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11839    shlibpath_var=LD_LIBRARY_PATH
11840  else
11841    # With GCC up to 2.95.x, collect2 would create an import file
11842    # for dependence libraries.  The import file would start with
11843    # the line `#! .'.  This would cause the generated library to
11844    # depend on `.', always an invalid library.  This was fixed in
11845    # development snapshots of GCC prior to 3.0.
11846    case $host_os in
11847      aix4 | aix4.[01] | aix4.[01].*)
11848      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11849	   echo ' yes '
11850	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11851	:
11852      else
11853	can_build_shared=no
11854      fi
11855      ;;
11856    esac
11857    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11858    # soname into executable. Probably we can add versioning support to
11859    # collect2, so additional links can be useful in future.
11860    if test "$aix_use_runtimelinking" = yes; then
11861      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11862      # instead of lib<name>.a to let people know that these are not
11863      # typical AIX shared libraries.
11864      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865    else
11866      # We preserve .a as extension for shared libraries through AIX4.2
11867      # and later when we are not doing run time linking.
11868      library_names_spec='${libname}${release}.a $libname.a'
11869      soname_spec='${libname}${release}${shared_ext}$major'
11870    fi
11871    shlibpath_var=LIBPATH
11872  fi
11873  ;;
11874
11875amigaos*)
11876  library_names_spec='$libname.ixlibrary $libname.a'
11877  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11878  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'
11879  ;;
11880
11881beos*)
11882  library_names_spec='${libname}${shared_ext}'
11883  dynamic_linker="$host_os ld.so"
11884  shlibpath_var=LIBRARY_PATH
11885  ;;
11886
11887bsdi[45]*)
11888  version_type=linux
11889  need_version=no
11890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891  soname_spec='${libname}${release}${shared_ext}$major'
11892  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11893  shlibpath_var=LD_LIBRARY_PATH
11894  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11895  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11896  # the default ld.so.conf also contains /usr/contrib/lib and
11897  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11898  # libtool to hard-code these into programs
11899  ;;
11900
11901cygwin* | mingw* | pw32*)
11902  version_type=windows
11903  shrext_cmds=".dll"
11904  need_version=no
11905  need_lib_prefix=no
11906
11907  case $GCC,$host_os in
11908  yes,cygwin* | yes,mingw* | yes,pw32*)
11909    library_names_spec='$libname.dll.a'
11910    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11911    postinstall_cmds='base_file=`basename \${file}`~
11912      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11913      dldir=$destdir/`dirname \$dlpath`~
11914      test -d \$dldir || mkdir -p \$dldir~
11915      $install_prog $dir/$dlname \$dldir/$dlname~
11916      chmod a+x \$dldir/$dlname'
11917    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11918      dlpath=$dir/\$dldll~
11919       $rm \$dlpath'
11920    shlibpath_overrides_runpath=yes
11921
11922    case $host_os in
11923    cygwin*)
11924      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11925      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11927      ;;
11928    mingw*)
11929      # MinGW DLLs use traditional 'lib' prefix
11930      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11931      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11932      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11933        # It is most probably a Windows format PATH printed by
11934        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11935        # path with ; separators, and with drive letters. We can handle the
11936        # drive letters (cygwin fileutils understands them), so leave them,
11937        # especially as we might pass files found there to a mingw objdump,
11938        # which wouldn't understand a cygwinified path. Ahh.
11939        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940      else
11941        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11942      fi
11943      ;;
11944    pw32*)
11945      # pw32 DLLs use 'pw' prefix rather than 'lib'
11946      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11947      ;;
11948    esac
11949    ;;
11950
11951  *)
11952    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11953    ;;
11954  esac
11955  dynamic_linker='Win32 ld.exe'
11956  # FIXME: first we should search . and the directory the executable is in
11957  shlibpath_var=PATH
11958  ;;
11959
11960darwin* | rhapsody*)
11961  dynamic_linker="$host_os dyld"
11962  version_type=darwin
11963  need_lib_prefix=no
11964  need_version=no
11965  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11966  soname_spec='${libname}${release}${major}$shared_ext'
11967  shlibpath_overrides_runpath=yes
11968  shlibpath_var=DYLD_LIBRARY_PATH
11969  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11970  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11971  if test "$GCC" = yes; then
11972    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"`
11973  else
11974    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11975  fi
11976  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11977  ;;
11978
11979dgux*)
11980  version_type=linux
11981  need_lib_prefix=no
11982  need_version=no
11983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11984  soname_spec='${libname}${release}${shared_ext}$major'
11985  shlibpath_var=LD_LIBRARY_PATH
11986  ;;
11987
11988freebsd1*)
11989  dynamic_linker=no
11990  ;;
11991
11992kfreebsd*-gnu)
11993  version_type=linux
11994  need_lib_prefix=no
11995  need_version=no
11996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11997  soname_spec='${libname}${release}${shared_ext}$major'
11998  shlibpath_var=LD_LIBRARY_PATH
11999  shlibpath_overrides_runpath=no
12000  hardcode_into_libs=yes
12001  dynamic_linker='GNU ld.so'
12002  ;;
12003
12004freebsd* | dragonfly*)
12005  # DragonFly does not have aout.  When/if they implement a new
12006  # versioning mechanism, adjust this.
12007  if test -x /usr/bin/objformat; then
12008    objformat=`/usr/bin/objformat`
12009  else
12010    case $host_os in
12011    freebsd[123]*) objformat=aout ;;
12012    *) objformat=elf ;;
12013    esac
12014  fi
12015  version_type=freebsd-$objformat
12016  case $version_type in
12017    freebsd-elf*)
12018      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12019      need_version=no
12020      need_lib_prefix=no
12021      ;;
12022    freebsd-*)
12023      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12024      need_version=yes
12025      ;;
12026  esac
12027  shlibpath_var=LD_LIBRARY_PATH
12028  case $host_os in
12029  freebsd2*)
12030    shlibpath_overrides_runpath=yes
12031    ;;
12032  freebsd3.[01]* | freebsdelf3.[01]*)
12033    shlibpath_overrides_runpath=yes
12034    hardcode_into_libs=yes
12035    ;;
12036  *) # from 3.2 on
12037    shlibpath_overrides_runpath=no
12038    hardcode_into_libs=yes
12039    ;;
12040  esac
12041  ;;
12042
12043gnu*)
12044  version_type=linux
12045  need_lib_prefix=no
12046  need_version=no
12047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12048  soname_spec='${libname}${release}${shared_ext}$major'
12049  shlibpath_var=LD_LIBRARY_PATH
12050  hardcode_into_libs=yes
12051  ;;
12052
12053hpux9* | hpux10* | hpux11*)
12054  # Give a soname corresponding to the major version so that dld.sl refuses to
12055  # link against other versions.
12056  version_type=sunos
12057  need_lib_prefix=no
12058  need_version=no
12059  case $host_cpu in
12060  ia64*)
12061    shrext_cmds='.so'
12062    hardcode_into_libs=yes
12063    dynamic_linker="$host_os dld.so"
12064    shlibpath_var=LD_LIBRARY_PATH
12065    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12066    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067    soname_spec='${libname}${release}${shared_ext}$major'
12068    if test "X$HPUX_IA64_MODE" = X32; then
12069      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12070    else
12071      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12072    fi
12073    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12074    ;;
12075   hppa*64*)
12076     shrext_cmds='.sl'
12077     hardcode_into_libs=yes
12078     dynamic_linker="$host_os dld.sl"
12079     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082     soname_spec='${libname}${release}${shared_ext}$major'
12083     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12084     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12085     ;;
12086   *)
12087    shrext_cmds='.sl'
12088    dynamic_linker="$host_os dld.sl"
12089    shlibpath_var=SHLIB_PATH
12090    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12091    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092    soname_spec='${libname}${release}${shared_ext}$major'
12093    ;;
12094  esac
12095  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12096  postinstall_cmds='chmod 555 $lib'
12097  ;;
12098
12099irix5* | irix6* | nonstopux*)
12100  case $host_os in
12101    nonstopux*) version_type=nonstopux ;;
12102    *)
12103	if test "$lt_cv_prog_gnu_ld" = yes; then
12104		version_type=linux
12105	else
12106		version_type=irix
12107	fi ;;
12108  esac
12109  need_lib_prefix=no
12110  need_version=no
12111  soname_spec='${libname}${release}${shared_ext}$major'
12112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12113  case $host_os in
12114  irix5* | nonstopux*)
12115    libsuff= shlibsuff=
12116    ;;
12117  *)
12118    case $LD in # libtool.m4 will add one of these switches to LD
12119    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12120      libsuff= shlibsuff= libmagic=32-bit;;
12121    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12122      libsuff=32 shlibsuff=N32 libmagic=N32;;
12123    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12124      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12125    *) libsuff= shlibsuff= libmagic=never-match;;
12126    esac
12127    ;;
12128  esac
12129  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12130  shlibpath_overrides_runpath=no
12131  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12132  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12133  hardcode_into_libs=yes
12134  ;;
12135
12136# No shared lib support for Linux oldld, aout, or coff.
12137linux*oldld* | linux*aout* | linux*coff*)
12138  dynamic_linker=no
12139  ;;
12140
12141# This must be Linux ELF.
12142linux*)
12143  version_type=linux
12144  need_lib_prefix=no
12145  need_version=no
12146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12147  soname_spec='${libname}${release}${shared_ext}$major'
12148  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12149  shlibpath_var=LD_LIBRARY_PATH
12150  shlibpath_overrides_runpath=no
12151  # This implies no fast_install, which is unacceptable.
12152  # Some rework will be needed to allow for fast_install
12153  # before this can be enabled.
12154  hardcode_into_libs=yes
12155
12156  # find out which ABI we are using
12157  libsuff=
12158  case "$host_cpu" in
12159  x86_64*|s390x*|powerpc64*)
12160    echo '#line 12408 "configure"' > conftest.$ac_ext
12161    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162  (eval $ac_compile) 2>&5
12163  ac_status=$?
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); }; then
12166      case `/usr/bin/file conftest.$ac_objext` in
12167      *64-bit*)
12168        libsuff=64
12169        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12170        ;;
12171      esac
12172    fi
12173    rm -rf conftest*
12174    ;;
12175  esac
12176
12177  # Append ld.so.conf contents to the search path
12178  if test -f /etc/ld.so.conf; then
12179    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' ' '`
12180    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12181  fi
12182
12183  # We used to test for /lib/ld.so.1 and disable shared libraries on
12184  # powerpc, because MkLinux only supported shared libraries with the
12185  # GNU dynamic linker.  Since this was broken with cross compilers,
12186  # most powerpc-linux boxes support dynamic linking these days and
12187  # people can always --disable-shared, the test was removed, and we
12188  # assume the GNU/Linux dynamic linker is in use.
12189  dynamic_linker='GNU/Linux ld.so'
12190  ;;
12191
12192knetbsd*-gnu)
12193  version_type=linux
12194  need_lib_prefix=no
12195  need_version=no
12196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12197  soname_spec='${libname}${release}${shared_ext}$major'
12198  shlibpath_var=LD_LIBRARY_PATH
12199  shlibpath_overrides_runpath=no
12200  hardcode_into_libs=yes
12201  dynamic_linker='GNU ld.so'
12202  ;;
12203
12204netbsd*)
12205  version_type=sunos
12206  need_lib_prefix=no
12207  need_version=no
12208  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12209    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12210    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211    dynamic_linker='NetBSD (a.out) ld.so'
12212  else
12213    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214    soname_spec='${libname}${release}${shared_ext}$major'
12215    dynamic_linker='NetBSD ld.elf_so'
12216  fi
12217  shlibpath_var=LD_LIBRARY_PATH
12218  shlibpath_overrides_runpath=yes
12219  hardcode_into_libs=yes
12220  ;;
12221
12222newsos6)
12223  version_type=linux
12224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12225  shlibpath_var=LD_LIBRARY_PATH
12226  shlibpath_overrides_runpath=yes
12227  ;;
12228
12229nto-qnx*)
12230  version_type=linux
12231  need_lib_prefix=no
12232  need_version=no
12233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234  soname_spec='${libname}${release}${shared_ext}$major'
12235  shlibpath_var=LD_LIBRARY_PATH
12236  shlibpath_overrides_runpath=yes
12237  ;;
12238
12239openbsd*)
12240  version_type=sunos
12241  need_lib_prefix=no
12242  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12243  case $host_os in
12244    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12245    *)                         need_version=no  ;;
12246  esac
12247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12248  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12249  shlibpath_var=LD_LIBRARY_PATH
12250  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12251    case $host_os in
12252      openbsd2.[89] | openbsd2.[89].*)
12253	shlibpath_overrides_runpath=no
12254	;;
12255      *)
12256	shlibpath_overrides_runpath=yes
12257	;;
12258      esac
12259  else
12260    shlibpath_overrides_runpath=yes
12261  fi
12262  ;;
12263
12264os2*)
12265  libname_spec='$name'
12266  shrext_cmds=".dll"
12267  need_lib_prefix=no
12268  library_names_spec='$libname${shared_ext} $libname.a'
12269  dynamic_linker='OS/2 ld.exe'
12270  shlibpath_var=LIBPATH
12271  ;;
12272
12273osf3* | osf4* | osf5*)
12274  version_type=osf
12275  need_lib_prefix=no
12276  need_version=no
12277  soname_spec='${libname}${release}${shared_ext}$major'
12278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12279  shlibpath_var=LD_LIBRARY_PATH
12280  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12281  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12282  ;;
12283
12284sco3.2v5*)
12285  version_type=osf
12286  soname_spec='${libname}${release}${shared_ext}$major'
12287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288  shlibpath_var=LD_LIBRARY_PATH
12289  ;;
12290
12291solaris*)
12292  version_type=linux
12293  need_lib_prefix=no
12294  need_version=no
12295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12296  soname_spec='${libname}${release}${shared_ext}$major'
12297  shlibpath_var=LD_LIBRARY_PATH
12298  shlibpath_overrides_runpath=yes
12299  hardcode_into_libs=yes
12300  # ldd complains unless libraries are executable
12301  postinstall_cmds='chmod +x $lib'
12302  ;;
12303
12304sunos4*)
12305  version_type=sunos
12306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12307  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12308  shlibpath_var=LD_LIBRARY_PATH
12309  shlibpath_overrides_runpath=yes
12310  if test "$with_gnu_ld" = yes; then
12311    need_lib_prefix=no
12312  fi
12313  need_version=yes
12314  ;;
12315
12316sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12317  version_type=linux
12318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319  soname_spec='${libname}${release}${shared_ext}$major'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  case $host_vendor in
12322    sni)
12323      shlibpath_overrides_runpath=no
12324      need_lib_prefix=no
12325      export_dynamic_flag_spec='${wl}-Blargedynsym'
12326      runpath_var=LD_RUN_PATH
12327      ;;
12328    siemens)
12329      need_lib_prefix=no
12330      ;;
12331    motorola)
12332      need_lib_prefix=no
12333      need_version=no
12334      shlibpath_overrides_runpath=no
12335      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12336      ;;
12337  esac
12338  ;;
12339
12340sysv4*MP*)
12341  if test -d /usr/nec ;then
12342    version_type=linux
12343    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12344    soname_spec='$libname${shared_ext}.$major'
12345    shlibpath_var=LD_LIBRARY_PATH
12346  fi
12347  ;;
12348
12349uts4*)
12350  version_type=linux
12351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352  soname_spec='${libname}${release}${shared_ext}$major'
12353  shlibpath_var=LD_LIBRARY_PATH
12354  ;;
12355
12356*)
12357  dynamic_linker=no
12358  ;;
12359esac
12360echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12361echo "${ECHO_T}$dynamic_linker" >&6
12362test "$dynamic_linker" = no && can_build_shared=no
12363
12364echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12365echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12366hardcode_action_CXX=
12367if test -n "$hardcode_libdir_flag_spec_CXX" || \
12368   test -n "$runpath_var_CXX" || \
12369   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12370
12371  # We can hardcode non-existant directories.
12372  if test "$hardcode_direct_CXX" != no &&
12373     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12374     # have to relink, otherwise we might link with an installed library
12375     # when we should be linking with a yet-to-be-installed one
12376     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12377     test "$hardcode_minus_L_CXX" != no; then
12378    # Linking always hardcodes the temporary library directory.
12379    hardcode_action_CXX=relink
12380  else
12381    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12382    hardcode_action_CXX=immediate
12383  fi
12384else
12385  # We cannot hardcode anything, or else we can only hardcode existing
12386  # directories.
12387  hardcode_action_CXX=unsupported
12388fi
12389echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12390echo "${ECHO_T}$hardcode_action_CXX" >&6
12391
12392if test "$hardcode_action_CXX" = relink; then
12393  # Fast installation is not supported
12394  enable_fast_install=no
12395elif test "$shlibpath_overrides_runpath" = yes ||
12396     test "$enable_shared" = no; then
12397  # Fast installation is not necessary
12398  enable_fast_install=needless
12399fi
12400
12401striplib=
12402old_striplib=
12403echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12404echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12405if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12406  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12407  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12408  echo "$as_me:$LINENO: result: yes" >&5
12409echo "${ECHO_T}yes" >&6
12410else
12411# FIXME - insert some real tests, host_os isn't really good enough
12412  case $host_os in
12413   darwin*)
12414       if test -n "$STRIP" ; then
12415         striplib="$STRIP -x"
12416         echo "$as_me:$LINENO: result: yes" >&5
12417echo "${ECHO_T}yes" >&6
12418       else
12419  echo "$as_me:$LINENO: result: no" >&5
12420echo "${ECHO_T}no" >&6
12421fi
12422       ;;
12423   *)
12424  echo "$as_me:$LINENO: result: no" >&5
12425echo "${ECHO_T}no" >&6
12426    ;;
12427  esac
12428fi
12429
12430if test "x$enable_dlopen" != xyes; then
12431  enable_dlopen=unknown
12432  enable_dlopen_self=unknown
12433  enable_dlopen_self_static=unknown
12434else
12435  lt_cv_dlopen=no
12436  lt_cv_dlopen_libs=
12437
12438  case $host_os in
12439  beos*)
12440    lt_cv_dlopen="load_add_on"
12441    lt_cv_dlopen_libs=
12442    lt_cv_dlopen_self=yes
12443    ;;
12444
12445  mingw* | pw32*)
12446    lt_cv_dlopen="LoadLibrary"
12447    lt_cv_dlopen_libs=
12448   ;;
12449
12450  cygwin*)
12451    lt_cv_dlopen="dlopen"
12452    lt_cv_dlopen_libs=
12453   ;;
12454
12455  darwin*)
12456  # if libdl is installed we need to link against it
12457    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12458echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12459if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12460  echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
12462  ac_check_lib_save_LIBS=$LIBS
12463LIBS="-ldl  $LIBS"
12464cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h.  */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h.  */
12470
12471/* Override any gcc2 internal prototype to avoid an error.  */
12472#ifdef __cplusplus
12473extern "C"
12474#endif
12475/* We use char because int might match the return type of a gcc2
12476   builtin and then its argument prototype would still apply.  */
12477char dlopen ();
12478int
12479main ()
12480{
12481dlopen ();
12482  ;
12483  return 0;
12484}
12485_ACEOF
12486rm -f conftest.$ac_objext conftest$ac_exeext
12487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12488  (eval $ac_link) 2>conftest.er1
12489  ac_status=$?
12490  grep -v '^ *+' conftest.er1 >conftest.err
12491  rm -f conftest.er1
12492  cat conftest.err >&5
12493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494  (exit $ac_status); } &&
12495	 { ac_try='test -z "$ac_cxx_werror_flag"
12496			 || test ! -s conftest.err'
12497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498  (eval $ac_try) 2>&5
12499  ac_status=$?
12500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501  (exit $ac_status); }; } &&
12502	 { ac_try='test -s conftest$ac_exeext'
12503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504  (eval $ac_try) 2>&5
12505  ac_status=$?
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); }; }; then
12508  ac_cv_lib_dl_dlopen=yes
12509else
12510  echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513ac_cv_lib_dl_dlopen=no
12514fi
12515rm -f conftest.err conftest.$ac_objext \
12516      conftest$ac_exeext conftest.$ac_ext
12517LIBS=$ac_check_lib_save_LIBS
12518fi
12519echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12520echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12521if test $ac_cv_lib_dl_dlopen = yes; then
12522  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12523else
12524
12525    lt_cv_dlopen="dyld"
12526    lt_cv_dlopen_libs=
12527    lt_cv_dlopen_self=yes
12528
12529fi
12530
12531   ;;
12532
12533  *)
12534    echo "$as_me:$LINENO: checking for shl_load" >&5
12535echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12536if test "${ac_cv_func_shl_load+set}" = set; then
12537  echo $ECHO_N "(cached) $ECHO_C" >&6
12538else
12539  cat >conftest.$ac_ext <<_ACEOF
12540/* confdefs.h.  */
12541_ACEOF
12542cat confdefs.h >>conftest.$ac_ext
12543cat >>conftest.$ac_ext <<_ACEOF
12544/* end confdefs.h.  */
12545/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12546   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12547#define shl_load innocuous_shl_load
12548
12549/* System header to define __stub macros and hopefully few prototypes,
12550    which can conflict with char shl_load (); below.
12551    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12552    <limits.h> exists even on freestanding compilers.  */
12553
12554#ifdef __STDC__
12555# include <limits.h>
12556#else
12557# include <assert.h>
12558#endif
12559
12560#undef shl_load
12561
12562/* Override any gcc2 internal prototype to avoid an error.  */
12563#ifdef __cplusplus
12564extern "C"
12565{
12566#endif
12567/* We use char because int might match the return type of a gcc2
12568   builtin and then its argument prototype would still apply.  */
12569char shl_load ();
12570/* The GNU C library defines this for functions which it implements
12571    to always fail with ENOSYS.  Some functions are actually named
12572    something starting with __ and the normal name is an alias.  */
12573#if defined (__stub_shl_load) || defined (__stub___shl_load)
12574choke me
12575#else
12576char (*f) () = shl_load;
12577#endif
12578#ifdef __cplusplus
12579}
12580#endif
12581
12582int
12583main ()
12584{
12585return f != shl_load;
12586  ;
12587  return 0;
12588}
12589_ACEOF
12590rm -f conftest.$ac_objext conftest$ac_exeext
12591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12592  (eval $ac_link) 2>conftest.er1
12593  ac_status=$?
12594  grep -v '^ *+' conftest.er1 >conftest.err
12595  rm -f conftest.er1
12596  cat conftest.err >&5
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); } &&
12599	 { ac_try='test -z "$ac_cxx_werror_flag"
12600			 || test ! -s conftest.err'
12601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602  (eval $ac_try) 2>&5
12603  ac_status=$?
12604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605  (exit $ac_status); }; } &&
12606	 { ac_try='test -s conftest$ac_exeext'
12607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608  (eval $ac_try) 2>&5
12609  ac_status=$?
12610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611  (exit $ac_status); }; }; then
12612  ac_cv_func_shl_load=yes
12613else
12614  echo "$as_me: failed program was:" >&5
12615sed 's/^/| /' conftest.$ac_ext >&5
12616
12617ac_cv_func_shl_load=no
12618fi
12619rm -f conftest.err conftest.$ac_objext \
12620      conftest$ac_exeext conftest.$ac_ext
12621fi
12622echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12623echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12624if test $ac_cv_func_shl_load = yes; then
12625  lt_cv_dlopen="shl_load"
12626else
12627  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12628echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12629if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12630  echo $ECHO_N "(cached) $ECHO_C" >&6
12631else
12632  ac_check_lib_save_LIBS=$LIBS
12633LIBS="-ldld  $LIBS"
12634cat >conftest.$ac_ext <<_ACEOF
12635/* confdefs.h.  */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h.  */
12640
12641/* Override any gcc2 internal prototype to avoid an error.  */
12642#ifdef __cplusplus
12643extern "C"
12644#endif
12645/* We use char because int might match the return type of a gcc2
12646   builtin and then its argument prototype would still apply.  */
12647char shl_load ();
12648int
12649main ()
12650{
12651shl_load ();
12652  ;
12653  return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12658  (eval $ac_link) 2>conftest.er1
12659  ac_status=$?
12660  grep -v '^ *+' conftest.er1 >conftest.err
12661  rm -f conftest.er1
12662  cat conftest.err >&5
12663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664  (exit $ac_status); } &&
12665	 { ac_try='test -z "$ac_cxx_werror_flag"
12666			 || test ! -s conftest.err'
12667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668  (eval $ac_try) 2>&5
12669  ac_status=$?
12670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671  (exit $ac_status); }; } &&
12672	 { ac_try='test -s conftest$ac_exeext'
12673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674  (eval $ac_try) 2>&5
12675  ac_status=$?
12676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677  (exit $ac_status); }; }; then
12678  ac_cv_lib_dld_shl_load=yes
12679else
12680  echo "$as_me: failed program was:" >&5
12681sed 's/^/| /' conftest.$ac_ext >&5
12682
12683ac_cv_lib_dld_shl_load=no
12684fi
12685rm -f conftest.err conftest.$ac_objext \
12686      conftest$ac_exeext conftest.$ac_ext
12687LIBS=$ac_check_lib_save_LIBS
12688fi
12689echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12690echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12691if test $ac_cv_lib_dld_shl_load = yes; then
12692  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12693else
12694  echo "$as_me:$LINENO: checking for dlopen" >&5
12695echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12696if test "${ac_cv_func_dlopen+set}" = set; then
12697  echo $ECHO_N "(cached) $ECHO_C" >&6
12698else
12699  cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h.  */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h.  */
12705/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12706   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12707#define dlopen innocuous_dlopen
12708
12709/* System header to define __stub macros and hopefully few prototypes,
12710    which can conflict with char dlopen (); below.
12711    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12712    <limits.h> exists even on freestanding compilers.  */
12713
12714#ifdef __STDC__
12715# include <limits.h>
12716#else
12717# include <assert.h>
12718#endif
12719
12720#undef dlopen
12721
12722/* Override any gcc2 internal prototype to avoid an error.  */
12723#ifdef __cplusplus
12724extern "C"
12725{
12726#endif
12727/* We use char because int might match the return type of a gcc2
12728   builtin and then its argument prototype would still apply.  */
12729char dlopen ();
12730/* The GNU C library defines this for functions which it implements
12731    to always fail with ENOSYS.  Some functions are actually named
12732    something starting with __ and the normal name is an alias.  */
12733#if defined (__stub_dlopen) || defined (__stub___dlopen)
12734choke me
12735#else
12736char (*f) () = dlopen;
12737#endif
12738#ifdef __cplusplus
12739}
12740#endif
12741
12742int
12743main ()
12744{
12745return f != dlopen;
12746  ;
12747  return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext conftest$ac_exeext
12751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752  (eval $ac_link) 2>conftest.er1
12753  ac_status=$?
12754  grep -v '^ *+' conftest.er1 >conftest.err
12755  rm -f conftest.er1
12756  cat conftest.err >&5
12757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758  (exit $ac_status); } &&
12759	 { ac_try='test -z "$ac_cxx_werror_flag"
12760			 || test ! -s conftest.err'
12761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762  (eval $ac_try) 2>&5
12763  ac_status=$?
12764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765  (exit $ac_status); }; } &&
12766	 { ac_try='test -s conftest$ac_exeext'
12767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768  (eval $ac_try) 2>&5
12769  ac_status=$?
12770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); }; }; then
12772  ac_cv_func_dlopen=yes
12773else
12774  echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777ac_cv_func_dlopen=no
12778fi
12779rm -f conftest.err conftest.$ac_objext \
12780      conftest$ac_exeext conftest.$ac_ext
12781fi
12782echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12783echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12784if test $ac_cv_func_dlopen = yes; then
12785  lt_cv_dlopen="dlopen"
12786else
12787  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12788echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12789if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12790  echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792  ac_check_lib_save_LIBS=$LIBS
12793LIBS="-ldl  $LIBS"
12794cat >conftest.$ac_ext <<_ACEOF
12795/* confdefs.h.  */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h.  */
12800
12801/* Override any gcc2 internal prototype to avoid an error.  */
12802#ifdef __cplusplus
12803extern "C"
12804#endif
12805/* We use char because int might match the return type of a gcc2
12806   builtin and then its argument prototype would still apply.  */
12807char dlopen ();
12808int
12809main ()
12810{
12811dlopen ();
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext conftest$ac_exeext
12817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818  (eval $ac_link) 2>conftest.er1
12819  ac_status=$?
12820  grep -v '^ *+' conftest.er1 >conftest.err
12821  rm -f conftest.er1
12822  cat conftest.err >&5
12823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824  (exit $ac_status); } &&
12825	 { ac_try='test -z "$ac_cxx_werror_flag"
12826			 || test ! -s conftest.err'
12827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828  (eval $ac_try) 2>&5
12829  ac_status=$?
12830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831  (exit $ac_status); }; } &&
12832	 { ac_try='test -s conftest$ac_exeext'
12833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834  (eval $ac_try) 2>&5
12835  ac_status=$?
12836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837  (exit $ac_status); }; }; then
12838  ac_cv_lib_dl_dlopen=yes
12839else
12840  echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843ac_cv_lib_dl_dlopen=no
12844fi
12845rm -f conftest.err conftest.$ac_objext \
12846      conftest$ac_exeext conftest.$ac_ext
12847LIBS=$ac_check_lib_save_LIBS
12848fi
12849echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12850echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12851if test $ac_cv_lib_dl_dlopen = yes; then
12852  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12853else
12854  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12855echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12856if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12857  echo $ECHO_N "(cached) $ECHO_C" >&6
12858else
12859  ac_check_lib_save_LIBS=$LIBS
12860LIBS="-lsvld  $LIBS"
12861cat >conftest.$ac_ext <<_ACEOF
12862/* confdefs.h.  */
12863_ACEOF
12864cat confdefs.h >>conftest.$ac_ext
12865cat >>conftest.$ac_ext <<_ACEOF
12866/* end confdefs.h.  */
12867
12868/* Override any gcc2 internal prototype to avoid an error.  */
12869#ifdef __cplusplus
12870extern "C"
12871#endif
12872/* We use char because int might match the return type of a gcc2
12873   builtin and then its argument prototype would still apply.  */
12874char dlopen ();
12875int
12876main ()
12877{
12878dlopen ();
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12885  (eval $ac_link) 2>conftest.er1
12886  ac_status=$?
12887  grep -v '^ *+' conftest.er1 >conftest.err
12888  rm -f conftest.er1
12889  cat conftest.err >&5
12890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891  (exit $ac_status); } &&
12892	 { ac_try='test -z "$ac_cxx_werror_flag"
12893			 || test ! -s conftest.err'
12894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895  (eval $ac_try) 2>&5
12896  ac_status=$?
12897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898  (exit $ac_status); }; } &&
12899	 { ac_try='test -s conftest$ac_exeext'
12900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901  (eval $ac_try) 2>&5
12902  ac_status=$?
12903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904  (exit $ac_status); }; }; then
12905  ac_cv_lib_svld_dlopen=yes
12906else
12907  echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910ac_cv_lib_svld_dlopen=no
12911fi
12912rm -f conftest.err conftest.$ac_objext \
12913      conftest$ac_exeext conftest.$ac_ext
12914LIBS=$ac_check_lib_save_LIBS
12915fi
12916echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12917echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12918if test $ac_cv_lib_svld_dlopen = yes; then
12919  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12920else
12921  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12922echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12923if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12924  echo $ECHO_N "(cached) $ECHO_C" >&6
12925else
12926  ac_check_lib_save_LIBS=$LIBS
12927LIBS="-ldld  $LIBS"
12928cat >conftest.$ac_ext <<_ACEOF
12929/* confdefs.h.  */
12930_ACEOF
12931cat confdefs.h >>conftest.$ac_ext
12932cat >>conftest.$ac_ext <<_ACEOF
12933/* end confdefs.h.  */
12934
12935/* Override any gcc2 internal prototype to avoid an error.  */
12936#ifdef __cplusplus
12937extern "C"
12938#endif
12939/* We use char because int might match the return type of a gcc2
12940   builtin and then its argument prototype would still apply.  */
12941char dld_link ();
12942int
12943main ()
12944{
12945dld_link ();
12946  ;
12947  return 0;
12948}
12949_ACEOF
12950rm -f conftest.$ac_objext conftest$ac_exeext
12951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952  (eval $ac_link) 2>conftest.er1
12953  ac_status=$?
12954  grep -v '^ *+' conftest.er1 >conftest.err
12955  rm -f conftest.er1
12956  cat conftest.err >&5
12957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958  (exit $ac_status); } &&
12959	 { ac_try='test -z "$ac_cxx_werror_flag"
12960			 || test ! -s conftest.err'
12961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962  (eval $ac_try) 2>&5
12963  ac_status=$?
12964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965  (exit $ac_status); }; } &&
12966	 { ac_try='test -s conftest$ac_exeext'
12967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968  (eval $ac_try) 2>&5
12969  ac_status=$?
12970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971  (exit $ac_status); }; }; then
12972  ac_cv_lib_dld_dld_link=yes
12973else
12974  echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977ac_cv_lib_dld_dld_link=no
12978fi
12979rm -f conftest.err conftest.$ac_objext \
12980      conftest$ac_exeext conftest.$ac_ext
12981LIBS=$ac_check_lib_save_LIBS
12982fi
12983echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12984echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12985if test $ac_cv_lib_dld_dld_link = yes; then
12986  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12987fi
12988
12989
12990fi
12991
12992
12993fi
12994
12995
12996fi
12997
12998
12999fi
13000
13001
13002fi
13003
13004    ;;
13005  esac
13006
13007  if test "x$lt_cv_dlopen" != xno; then
13008    enable_dlopen=yes
13009  else
13010    enable_dlopen=no
13011  fi
13012
13013  case $lt_cv_dlopen in
13014  dlopen)
13015    save_CPPFLAGS="$CPPFLAGS"
13016    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13017
13018    save_LDFLAGS="$LDFLAGS"
13019    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13020
13021    save_LIBS="$LIBS"
13022    LIBS="$lt_cv_dlopen_libs $LIBS"
13023
13024    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13025echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13026if test "${lt_cv_dlopen_self+set}" = set; then
13027  echo $ECHO_N "(cached) $ECHO_C" >&6
13028else
13029  	  if test "$cross_compiling" = yes; then :
13030  lt_cv_dlopen_self=cross
13031else
13032  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13033  lt_status=$lt_dlunknown
13034  cat > conftest.$ac_ext <<EOF
13035#line 13283 "configure"
13036#include "confdefs.h"
13037
13038#if HAVE_DLFCN_H
13039#include <dlfcn.h>
13040#endif
13041
13042#include <stdio.h>
13043
13044#ifdef RTLD_GLOBAL
13045#  define LT_DLGLOBAL		RTLD_GLOBAL
13046#else
13047#  ifdef DL_GLOBAL
13048#    define LT_DLGLOBAL		DL_GLOBAL
13049#  else
13050#    define LT_DLGLOBAL		0
13051#  endif
13052#endif
13053
13054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13055   find out it does not work in some platform. */
13056#ifndef LT_DLLAZY_OR_NOW
13057#  ifdef RTLD_LAZY
13058#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13059#  else
13060#    ifdef DL_LAZY
13061#      define LT_DLLAZY_OR_NOW		DL_LAZY
13062#    else
13063#      ifdef RTLD_NOW
13064#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13065#      else
13066#        ifdef DL_NOW
13067#          define LT_DLLAZY_OR_NOW	DL_NOW
13068#        else
13069#          define LT_DLLAZY_OR_NOW	0
13070#        endif
13071#      endif
13072#    endif
13073#  endif
13074#endif
13075
13076#ifdef __cplusplus
13077extern "C" void exit (int);
13078#endif
13079
13080void fnord() { int i=42;}
13081int main ()
13082{
13083  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13084  int status = $lt_dlunknown;
13085
13086  if (self)
13087    {
13088      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13089      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13090      /* dlclose (self); */
13091    }
13092
13093    exit (status);
13094}
13095EOF
13096  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097  (eval $ac_link) 2>&5
13098  ac_status=$?
13099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13101    (./conftest; exit; ) >&5 2>/dev/null
13102    lt_status=$?
13103    case x$lt_status in
13104      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13105      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13106      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13107    esac
13108  else :
13109    # compilation failed
13110    lt_cv_dlopen_self=no
13111  fi
13112fi
13113rm -fr conftest*
13114
13115
13116fi
13117echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13118echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13119
13120    if test "x$lt_cv_dlopen_self" = xyes; then
13121      LDFLAGS="$LDFLAGS $link_static_flag"
13122      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13123echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13124if test "${lt_cv_dlopen_self_static+set}" = set; then
13125  echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127  	  if test "$cross_compiling" = yes; then :
13128  lt_cv_dlopen_self_static=cross
13129else
13130  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13131  lt_status=$lt_dlunknown
13132  cat > conftest.$ac_ext <<EOF
13133#line 13381 "configure"
13134#include "confdefs.h"
13135
13136#if HAVE_DLFCN_H
13137#include <dlfcn.h>
13138#endif
13139
13140#include <stdio.h>
13141
13142#ifdef RTLD_GLOBAL
13143#  define LT_DLGLOBAL		RTLD_GLOBAL
13144#else
13145#  ifdef DL_GLOBAL
13146#    define LT_DLGLOBAL		DL_GLOBAL
13147#  else
13148#    define LT_DLGLOBAL		0
13149#  endif
13150#endif
13151
13152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13153   find out it does not work in some platform. */
13154#ifndef LT_DLLAZY_OR_NOW
13155#  ifdef RTLD_LAZY
13156#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13157#  else
13158#    ifdef DL_LAZY
13159#      define LT_DLLAZY_OR_NOW		DL_LAZY
13160#    else
13161#      ifdef RTLD_NOW
13162#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13163#      else
13164#        ifdef DL_NOW
13165#          define LT_DLLAZY_OR_NOW	DL_NOW
13166#        else
13167#          define LT_DLLAZY_OR_NOW	0
13168#        endif
13169#      endif
13170#    endif
13171#  endif
13172#endif
13173
13174#ifdef __cplusplus
13175extern "C" void exit (int);
13176#endif
13177
13178void fnord() { int i=42;}
13179int main ()
13180{
13181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13182  int status = $lt_dlunknown;
13183
13184  if (self)
13185    {
13186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13187      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13188      /* dlclose (self); */
13189    }
13190
13191    exit (status);
13192}
13193EOF
13194  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195  (eval $ac_link) 2>&5
13196  ac_status=$?
13197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13199    (./conftest; exit; ) >&5 2>/dev/null
13200    lt_status=$?
13201    case x$lt_status in
13202      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13203      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13204      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13205    esac
13206  else :
13207    # compilation failed
13208    lt_cv_dlopen_self_static=no
13209  fi
13210fi
13211rm -fr conftest*
13212
13213
13214fi
13215echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13216echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13217    fi
13218
13219    CPPFLAGS="$save_CPPFLAGS"
13220    LDFLAGS="$save_LDFLAGS"
13221    LIBS="$save_LIBS"
13222    ;;
13223  esac
13224
13225  case $lt_cv_dlopen_self in
13226  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13227  *) enable_dlopen_self=unknown ;;
13228  esac
13229
13230  case $lt_cv_dlopen_self_static in
13231  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13232  *) enable_dlopen_self_static=unknown ;;
13233  esac
13234fi
13235
13236
13237# The else clause should only fire when bootstrapping the
13238# libtool distribution, otherwise you forgot to ship ltmain.sh
13239# with your package, and you will get complaints that there are
13240# no rules to generate ltmain.sh.
13241if test -f "$ltmain"; then
13242  # See if we are running on zsh, and set the options which allow our commands through
13243  # without removal of \ escapes.
13244  if test -n "${ZSH_VERSION+set}" ; then
13245    setopt NO_GLOB_SUBST
13246  fi
13247  # Now quote all the things that may contain metacharacters while being
13248  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13249  # variables and quote the copies for generation of the libtool script.
13250  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13251    SED SHELL STRIP \
13252    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13253    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13254    deplibs_check_method reload_flag reload_cmds need_locks \
13255    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13256    lt_cv_sys_global_symbol_to_c_name_address \
13257    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13258    old_postinstall_cmds old_postuninstall_cmds \
13259    compiler_CXX \
13260    CC_CXX \
13261    LD_CXX \
13262    lt_prog_compiler_wl_CXX \
13263    lt_prog_compiler_pic_CXX \
13264    lt_prog_compiler_static_CXX \
13265    lt_prog_compiler_no_builtin_flag_CXX \
13266    export_dynamic_flag_spec_CXX \
13267    thread_safe_flag_spec_CXX \
13268    whole_archive_flag_spec_CXX \
13269    enable_shared_with_static_runtimes_CXX \
13270    old_archive_cmds_CXX \
13271    old_archive_from_new_cmds_CXX \
13272    predep_objects_CXX \
13273    postdep_objects_CXX \
13274    predeps_CXX \
13275    postdeps_CXX \
13276    compiler_lib_search_path_CXX \
13277    archive_cmds_CXX \
13278    archive_expsym_cmds_CXX \
13279    postinstall_cmds_CXX \
13280    postuninstall_cmds_CXX \
13281    old_archive_from_expsyms_cmds_CXX \
13282    allow_undefined_flag_CXX \
13283    no_undefined_flag_CXX \
13284    export_symbols_cmds_CXX \
13285    hardcode_libdir_flag_spec_CXX \
13286    hardcode_libdir_flag_spec_ld_CXX \
13287    hardcode_libdir_separator_CXX \
13288    hardcode_automatic_CXX \
13289    module_cmds_CXX \
13290    module_expsym_cmds_CXX \
13291    lt_cv_prog_compiler_c_o_CXX \
13292    exclude_expsyms_CXX \
13293    include_expsyms_CXX; do
13294
13295    case $var in
13296    old_archive_cmds_CXX | \
13297    old_archive_from_new_cmds_CXX | \
13298    archive_cmds_CXX | \
13299    archive_expsym_cmds_CXX | \
13300    module_cmds_CXX | \
13301    module_expsym_cmds_CXX | \
13302    old_archive_from_expsyms_cmds_CXX | \
13303    export_symbols_cmds_CXX | \
13304    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13305    postinstall_cmds | postuninstall_cmds | \
13306    old_postinstall_cmds | old_postuninstall_cmds | \
13307    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13308      # Double-quote double-evaled strings.
13309      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13310      ;;
13311    *)
13312      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13313      ;;
13314    esac
13315  done
13316
13317  case $lt_echo in
13318  *'\$0 --fallback-echo"')
13319    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13320    ;;
13321  esac
13322
13323cfgfile="$ofile"
13324
13325  cat <<__EOF__ >> "$cfgfile"
13326# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13327
13328# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13329
13330# Shell to use when invoking shell scripts.
13331SHELL=$lt_SHELL
13332
13333# Whether or not to build shared libraries.
13334build_libtool_libs=$enable_shared
13335
13336# Whether or not to build static libraries.
13337build_old_libs=$enable_static
13338
13339# Whether or not to add -lc for building shared libraries.
13340build_libtool_need_lc=$archive_cmds_need_lc_CXX
13341
13342# Whether or not to disallow shared libs when runtime libs are static
13343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13344
13345# Whether or not to optimize for fast installation.
13346fast_install=$enable_fast_install
13347
13348# The host system.
13349host_alias=$host_alias
13350host=$host
13351host_os=$host_os
13352
13353# The build system.
13354build_alias=$build_alias
13355build=$build
13356build_os=$build_os
13357
13358# An echo program that does not interpret backslashes.
13359echo=$lt_echo
13360
13361# The archiver.
13362AR=$lt_AR
13363AR_FLAGS=$lt_AR_FLAGS
13364
13365# A C compiler.
13366LTCC=$lt_LTCC
13367
13368# A language-specific compiler.
13369CC=$lt_compiler_CXX
13370
13371# Is the compiler the GNU C compiler?
13372with_gcc=$GCC_CXX
13373
13374# An ERE matcher.
13375EGREP=$lt_EGREP
13376
13377# The linker used to build libraries.
13378LD=$lt_LD_CXX
13379
13380# Whether we need hard or soft links.
13381LN_S=$lt_LN_S
13382
13383# A BSD-compatible nm program.
13384NM=$lt_NM
13385
13386# A symbol stripping program
13387STRIP=$lt_STRIP
13388
13389# Used to examine libraries when file_magic_cmd begins "file"
13390MAGIC_CMD=$MAGIC_CMD
13391
13392# Used on cygwin: DLL creation program.
13393DLLTOOL="$DLLTOOL"
13394
13395# Used on cygwin: object dumper.
13396OBJDUMP="$OBJDUMP"
13397
13398# Used on cygwin: assembler.
13399AS="$AS"
13400
13401# The name of the directory that contains temporary libtool files.
13402objdir=$objdir
13403
13404# How to create reloadable object files.
13405reload_flag=$lt_reload_flag
13406reload_cmds=$lt_reload_cmds
13407
13408# How to pass a linker flag through the compiler.
13409wl=$lt_lt_prog_compiler_wl_CXX
13410
13411# Object file suffix (normally "o").
13412objext="$ac_objext"
13413
13414# Old archive suffix (normally "a").
13415libext="$libext"
13416
13417# Shared library suffix (normally ".so").
13418shrext_cmds='$shrext_cmds'
13419
13420# Executable file suffix (normally "").
13421exeext="$exeext"
13422
13423# Additional compiler flags for building library objects.
13424pic_flag=$lt_lt_prog_compiler_pic_CXX
13425pic_mode=$pic_mode
13426
13427# What is the maximum length of a command?
13428max_cmd_len=$lt_cv_sys_max_cmd_len
13429
13430# Does compiler simultaneously support -c and -o options?
13431compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13432
13433# Must we lock files when doing compilation?
13434need_locks=$lt_need_locks
13435
13436# Do we need the lib prefix for modules?
13437need_lib_prefix=$need_lib_prefix
13438
13439# Do we need a version for libraries?
13440need_version=$need_version
13441
13442# Whether dlopen is supported.
13443dlopen_support=$enable_dlopen
13444
13445# Whether dlopen of programs is supported.
13446dlopen_self=$enable_dlopen_self
13447
13448# Whether dlopen of statically linked programs is supported.
13449dlopen_self_static=$enable_dlopen_self_static
13450
13451# Compiler flag to prevent dynamic linking.
13452link_static_flag=$lt_lt_prog_compiler_static_CXX
13453
13454# Compiler flag to turn off builtin functions.
13455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13456
13457# Compiler flag to allow reflexive dlopens.
13458export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13459
13460# Compiler flag to generate shared objects directly from archives.
13461whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13462
13463# Compiler flag to generate thread-safe objects.
13464thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13465
13466# Library versioning type.
13467version_type=$version_type
13468
13469# Format of library name prefix.
13470libname_spec=$lt_libname_spec
13471
13472# List of archive names.  First name is the real one, the rest are links.
13473# The last name is the one that the linker finds with -lNAME.
13474library_names_spec=$lt_library_names_spec
13475
13476# The coded name of the library, if different from the real name.
13477soname_spec=$lt_soname_spec
13478
13479# Commands used to build and install an old-style archive.
13480RANLIB=$lt_RANLIB
13481old_archive_cmds=$lt_old_archive_cmds_CXX
13482old_postinstall_cmds=$lt_old_postinstall_cmds
13483old_postuninstall_cmds=$lt_old_postuninstall_cmds
13484
13485# Create an old-style archive from a shared archive.
13486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13487
13488# Create a temporary old-style archive to link instead of a shared archive.
13489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13490
13491# Commands used to build and install a shared archive.
13492archive_cmds=$lt_archive_cmds_CXX
13493archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13494postinstall_cmds=$lt_postinstall_cmds
13495postuninstall_cmds=$lt_postuninstall_cmds
13496
13497# Commands used to build a loadable module (assumed same as above if empty)
13498module_cmds=$lt_module_cmds_CXX
13499module_expsym_cmds=$lt_module_expsym_cmds_CXX
13500
13501# Commands to strip libraries.
13502old_striplib=$lt_old_striplib
13503striplib=$lt_striplib
13504
13505# Dependencies to place before the objects being linked to create a
13506# shared library.
13507predep_objects=$lt_predep_objects_CXX
13508
13509# Dependencies to place after the objects being linked to create a
13510# shared library.
13511postdep_objects=$lt_postdep_objects_CXX
13512
13513# Dependencies to place before the objects being linked to create a
13514# shared library.
13515predeps=$lt_predeps_CXX
13516
13517# Dependencies to place after the objects being linked to create a
13518# shared library.
13519postdeps=$lt_postdeps_CXX
13520
13521# The library search path used internally by the compiler when linking
13522# a shared library.
13523compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13524
13525# Method to check whether dependent libraries are shared objects.
13526deplibs_check_method=$lt_deplibs_check_method
13527
13528# Command to use when deplibs_check_method == file_magic.
13529file_magic_cmd=$lt_file_magic_cmd
13530
13531# Flag that allows shared libraries with undefined symbols to be built.
13532allow_undefined_flag=$lt_allow_undefined_flag_CXX
13533
13534# Flag that forces no undefined symbols.
13535no_undefined_flag=$lt_no_undefined_flag_CXX
13536
13537# Commands used to finish a libtool library installation in a directory.
13538finish_cmds=$lt_finish_cmds
13539
13540# Same as above, but a single script fragment to be evaled but not shown.
13541finish_eval=$lt_finish_eval
13542
13543# Take the output of nm and produce a listing of raw symbols and C names.
13544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13545
13546# Transform the output of nm in a proper C declaration
13547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13548
13549# Transform the output of nm in a C name address pair
13550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13551
13552# This is the shared library runtime path variable.
13553runpath_var=$runpath_var
13554
13555# This is the shared library path variable.
13556shlibpath_var=$shlibpath_var
13557
13558# Is shlibpath searched before the hard-coded library search path?
13559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13560
13561# How to hardcode a shared library path into an executable.
13562hardcode_action=$hardcode_action_CXX
13563
13564# Whether we should hardcode library paths into libraries.
13565hardcode_into_libs=$hardcode_into_libs
13566
13567# Flag to hardcode \$libdir into a binary during linking.
13568# This must work even if \$libdir does not exist.
13569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13570
13571# If ld is used when linking, flag to hardcode \$libdir into
13572# a binary during linking. This must work even if \$libdir does
13573# not exist.
13574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13575
13576# Whether we need a single -rpath flag with a separated argument.
13577hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13578
13579# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13580# resulting binary.
13581hardcode_direct=$hardcode_direct_CXX
13582
13583# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13584# resulting binary.
13585hardcode_minus_L=$hardcode_minus_L_CXX
13586
13587# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13588# the resulting binary.
13589hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13590
13591# Set to yes if building a shared library automatically hardcodes DIR into the library
13592# and all subsequent libraries and executables linked against it.
13593hardcode_automatic=$hardcode_automatic_CXX
13594
13595# Variables whose values should be saved in libtool wrapper scripts and
13596# restored at relink time.
13597variables_saved_for_relink="$variables_saved_for_relink"
13598
13599# Whether libtool must link a program against all its dependency libraries.
13600link_all_deplibs=$link_all_deplibs_CXX
13601
13602# Compile-time system search path for libraries
13603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13604
13605# Run-time system search path for libraries
13606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13607
13608# Fix the shell variable \$srcfile for the compiler.
13609fix_srcfile_path="$fix_srcfile_path_CXX"
13610
13611# Set to yes if exported symbols are required.
13612always_export_symbols=$always_export_symbols_CXX
13613
13614# The commands to list exported symbols.
13615export_symbols_cmds=$lt_export_symbols_cmds_CXX
13616
13617# The commands to extract the exported symbol list from a shared archive.
13618extract_expsyms_cmds=$lt_extract_expsyms_cmds
13619
13620# Symbols that should not be listed in the preloaded symbols.
13621exclude_expsyms=$lt_exclude_expsyms_CXX
13622
13623# Symbols that must always be exported.
13624include_expsyms=$lt_include_expsyms_CXX
13625
13626# ### END LIBTOOL TAG CONFIG: $tagname
13627
13628__EOF__
13629
13630
13631else
13632  # If there is no Makefile yet, we rely on a make rule to execute
13633  # `config.status --recheck' to rerun these tests and create the
13634  # libtool script then.
13635  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13636  if test -f "$ltmain_in"; then
13637    test -f Makefile && make "$ltmain"
13638  fi
13639fi
13640
13641
13642ac_ext=c
13643ac_cpp='$CPP $CPPFLAGS'
13644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13646ac_compiler_gnu=$ac_cv_c_compiler_gnu
13647
13648CC=$lt_save_CC
13649LDCXX=$LD
13650LD=$lt_save_LD
13651GCC=$lt_save_GCC
13652with_gnu_ldcxx=$with_gnu_ld
13653with_gnu_ld=$lt_save_with_gnu_ld
13654lt_cv_path_LDCXX=$lt_cv_path_LD
13655lt_cv_path_LD=$lt_save_path_LD
13656lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13657lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13658
13659	else
13660	  tagname=""
13661	fi
13662	;;
13663
13664      F77)
13665	if test -n "$F77" && test "X$F77" != "Xno"; then
13666
13667ac_ext=f
13668ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13669ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13670ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13671
13672
13673archive_cmds_need_lc_F77=no
13674allow_undefined_flag_F77=
13675always_export_symbols_F77=no
13676archive_expsym_cmds_F77=
13677export_dynamic_flag_spec_F77=
13678hardcode_direct_F77=no
13679hardcode_libdir_flag_spec_F77=
13680hardcode_libdir_flag_spec_ld_F77=
13681hardcode_libdir_separator_F77=
13682hardcode_minus_L_F77=no
13683hardcode_automatic_F77=no
13684module_cmds_F77=
13685module_expsym_cmds_F77=
13686link_all_deplibs_F77=unknown
13687old_archive_cmds_F77=$old_archive_cmds
13688no_undefined_flag_F77=
13689whole_archive_flag_spec_F77=
13690enable_shared_with_static_runtimes_F77=no
13691
13692# Source file extension for f77 test sources.
13693ac_ext=f
13694
13695# Object file extension for compiled f77 test sources.
13696objext=o
13697objext_F77=$objext
13698
13699# Code to be used in simple compile tests
13700lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13701
13702# Code to be used in simple link tests
13703lt_simple_link_test_code="      program t\n      end\n"
13704
13705# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13706
13707# If no C compiler was specified, use CC.
13708LTCC=${LTCC-"$CC"}
13709
13710# Allow CC to be a program name with arguments.
13711compiler=$CC
13712
13713
13714# save warnings/boilerplate of simple test code
13715ac_outfile=conftest.$ac_objext
13716printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13717eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13718_lt_compiler_boilerplate=`cat conftest.err`
13719$rm conftest*
13720
13721ac_outfile=conftest.$ac_objext
13722printf "$lt_simple_link_test_code" >conftest.$ac_ext
13723eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13724_lt_linker_boilerplate=`cat conftest.err`
13725$rm conftest*
13726
13727
13728# Allow CC to be a program name with arguments.
13729lt_save_CC="$CC"
13730CC=${F77-"f77"}
13731compiler=$CC
13732compiler_F77=$CC
13733for cc_temp in $compiler""; do
13734  case $cc_temp in
13735    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13736    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13737    \-*) ;;
13738    *) break;;
13739  esac
13740done
13741cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13742
13743
13744echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13745echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13746echo "$as_me:$LINENO: result: $can_build_shared" >&5
13747echo "${ECHO_T}$can_build_shared" >&6
13748
13749echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13750echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13751test "$can_build_shared" = "no" && enable_shared=no
13752
13753# On AIX, shared libraries and static libraries use the same namespace, and
13754# are all built from PIC.
13755case $host_os in
13756aix3*)
13757  test "$enable_shared" = yes && enable_static=no
13758  if test -n "$RANLIB"; then
13759    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13760    postinstall_cmds='$RANLIB $lib'
13761  fi
13762  ;;
13763aix4* | aix5*)
13764  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13765    test "$enable_shared" = yes && enable_static=no
13766  fi
13767  ;;
13768esac
13769echo "$as_me:$LINENO: result: $enable_shared" >&5
13770echo "${ECHO_T}$enable_shared" >&6
13771
13772echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13773echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13774# Make sure either enable_shared or enable_static is yes.
13775test "$enable_shared" = yes || enable_static=yes
13776echo "$as_me:$LINENO: result: $enable_static" >&5
13777echo "${ECHO_T}$enable_static" >&6
13778
13779test "$ld_shlibs_F77" = no && can_build_shared=no
13780
13781GCC_F77="$G77"
13782LD_F77="$LD"
13783
13784lt_prog_compiler_wl_F77=
13785lt_prog_compiler_pic_F77=
13786lt_prog_compiler_static_F77=
13787
13788echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13789echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13790
13791  if test "$GCC" = yes; then
13792    lt_prog_compiler_wl_F77='-Wl,'
13793    lt_prog_compiler_static_F77='-static'
13794
13795    case $host_os in
13796      aix*)
13797      # All AIX code is PIC.
13798      if test "$host_cpu" = ia64; then
13799	# AIX 5 now supports IA64 processor
13800	lt_prog_compiler_static_F77='-Bstatic'
13801      fi
13802      ;;
13803
13804    amigaos*)
13805      # FIXME: we need at least 68020 code to build shared libraries, but
13806      # adding the `-m68020' flag to GCC prevents building anything better,
13807      # like `-m68040'.
13808      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13809      ;;
13810
13811    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13812      # PIC is the default for these OSes.
13813      ;;
13814
13815    mingw* | pw32* | os2*)
13816      # This hack is so that the source file can tell whether it is being
13817      # built for inclusion in a dll (and should export symbols for example).
13818      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13819      ;;
13820
13821    darwin* | rhapsody*)
13822      # PIC is the default on this platform
13823      # Common symbols not allowed in MH_DYLIB files
13824      lt_prog_compiler_pic_F77='-fno-common'
13825      ;;
13826
13827    msdosdjgpp*)
13828      # Just because we use GCC doesn't mean we suddenly get shared libraries
13829      # on systems that don't support them.
13830      lt_prog_compiler_can_build_shared_F77=no
13831      enable_shared=no
13832      ;;
13833
13834    sysv4*MP*)
13835      if test -d /usr/nec; then
13836	lt_prog_compiler_pic_F77=-Kconform_pic
13837      fi
13838      ;;
13839
13840    hpux*)
13841      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13842      # not for PA HP-UX.
13843      case $host_cpu in
13844      hppa*64*|ia64*)
13845	# +Z the default
13846	;;
13847      *)
13848	lt_prog_compiler_pic_F77='-fPIC'
13849	;;
13850      esac
13851      ;;
13852
13853    *)
13854      lt_prog_compiler_pic_F77='-fPIC'
13855      ;;
13856    esac
13857  else
13858    # PORTME Check for flag to pass linker flags through the system compiler.
13859    case $host_os in
13860    aix*)
13861      lt_prog_compiler_wl_F77='-Wl,'
13862      if test "$host_cpu" = ia64; then
13863	# AIX 5 now supports IA64 processor
13864	lt_prog_compiler_static_F77='-Bstatic'
13865      else
13866	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13867      fi
13868      ;;
13869      darwin*)
13870        # PIC is the default on this platform
13871        # Common symbols not allowed in MH_DYLIB files
13872       case $cc_basename in
13873         xlc*)
13874         lt_prog_compiler_pic_F77='-qnocommon'
13875         lt_prog_compiler_wl_F77='-Wl,'
13876         ;;
13877       esac
13878       ;;
13879
13880    mingw* | pw32* | os2*)
13881      # This hack is so that the source file can tell whether it is being
13882      # built for inclusion in a dll (and should export symbols for example).
13883      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13884      ;;
13885
13886    hpux9* | hpux10* | hpux11*)
13887      lt_prog_compiler_wl_F77='-Wl,'
13888      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13889      # not for PA HP-UX.
13890      case $host_cpu in
13891      hppa*64*|ia64*)
13892	# +Z the default
13893	;;
13894      *)
13895	lt_prog_compiler_pic_F77='+Z'
13896	;;
13897      esac
13898      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13899      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13900      ;;
13901
13902    irix5* | irix6* | nonstopux*)
13903      lt_prog_compiler_wl_F77='-Wl,'
13904      # PIC (with -KPIC) is the default.
13905      lt_prog_compiler_static_F77='-non_shared'
13906      ;;
13907
13908    newsos6)
13909      lt_prog_compiler_pic_F77='-KPIC'
13910      lt_prog_compiler_static_F77='-Bstatic'
13911      ;;
13912
13913    linux*)
13914      case $cc_basename in
13915      icc* | ecc*)
13916	lt_prog_compiler_wl_F77='-Wl,'
13917	lt_prog_compiler_pic_F77='-KPIC'
13918	lt_prog_compiler_static_F77='-static'
13919        ;;
13920      pgcc* | pgf77* | pgf90* | pgf95*)
13921        # Portland Group compilers (*not* the Pentium gcc compiler,
13922	# which looks to be a dead project)
13923	lt_prog_compiler_wl_F77='-Wl,'
13924	lt_prog_compiler_pic_F77='-fpic'
13925	lt_prog_compiler_static_F77='-Bstatic'
13926        ;;
13927      ccc*)
13928        lt_prog_compiler_wl_F77='-Wl,'
13929        # All Alpha code is PIC.
13930        lt_prog_compiler_static_F77='-non_shared'
13931        ;;
13932      esac
13933      ;;
13934
13935    osf3* | osf4* | osf5*)
13936      lt_prog_compiler_wl_F77='-Wl,'
13937      # All OSF/1 code is PIC.
13938      lt_prog_compiler_static_F77='-non_shared'
13939      ;;
13940
13941    sco3.2v5*)
13942      lt_prog_compiler_pic_F77='-Kpic'
13943      lt_prog_compiler_static_F77='-dn'
13944      ;;
13945
13946    solaris*)
13947      lt_prog_compiler_pic_F77='-KPIC'
13948      lt_prog_compiler_static_F77='-Bstatic'
13949      case $cc_basename in
13950      f77* | f90* | f95*)
13951	lt_prog_compiler_wl_F77='-Qoption ld ';;
13952      *)
13953	lt_prog_compiler_wl_F77='-Wl,';;
13954      esac
13955      ;;
13956
13957    sunos4*)
13958      lt_prog_compiler_wl_F77='-Qoption ld '
13959      lt_prog_compiler_pic_F77='-PIC'
13960      lt_prog_compiler_static_F77='-Bstatic'
13961      ;;
13962
13963    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13964      lt_prog_compiler_wl_F77='-Wl,'
13965      lt_prog_compiler_pic_F77='-KPIC'
13966      lt_prog_compiler_static_F77='-Bstatic'
13967      ;;
13968
13969    sysv4*MP*)
13970      if test -d /usr/nec ;then
13971	lt_prog_compiler_pic_F77='-Kconform_pic'
13972	lt_prog_compiler_static_F77='-Bstatic'
13973      fi
13974      ;;
13975
13976    unicos*)
13977      lt_prog_compiler_wl_F77='-Wl,'
13978      lt_prog_compiler_can_build_shared_F77=no
13979      ;;
13980
13981    uts4*)
13982      lt_prog_compiler_pic_F77='-pic'
13983      lt_prog_compiler_static_F77='-Bstatic'
13984      ;;
13985
13986    *)
13987      lt_prog_compiler_can_build_shared_F77=no
13988      ;;
13989    esac
13990  fi
13991
13992echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13993echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13994
13995#
13996# Check to make sure the PIC flag actually works.
13997#
13998if test -n "$lt_prog_compiler_pic_F77"; then
13999
14000echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14001echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14002if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14003  echo $ECHO_N "(cached) $ECHO_C" >&6
14004else
14005  lt_prog_compiler_pic_works_F77=no
14006  ac_outfile=conftest.$ac_objext
14007   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14008   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14009   # Insert the option either (1) after the last *FLAGS variable, or
14010   # (2) before a word containing "conftest.", or (3) at the end.
14011   # Note that $ac_compile itself does not contain backslashes and begins
14012   # with a dollar sign (not a hyphen), so the echo should work correctly.
14013   # The option is referenced via a variable to avoid confusing sed.
14014   lt_compile=`echo "$ac_compile" | $SED \
14015   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14016   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14017   -e 's:$: $lt_compiler_flag:'`
14018   (eval echo "\"\$as_me:14266: $lt_compile\"" >&5)
14019   (eval "$lt_compile" 2>conftest.err)
14020   ac_status=$?
14021   cat conftest.err >&5
14022   echo "$as_me:14270: \$? = $ac_status" >&5
14023   if (exit $ac_status) && test -s "$ac_outfile"; then
14024     # The compiler can only warn and ignore the option if not recognized
14025     # So say no if there are warnings other than the usual output.
14026     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14027     $SED '/^$/d' conftest.err >conftest.er2
14028     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14029       lt_prog_compiler_pic_works_F77=yes
14030     fi
14031   fi
14032   $rm conftest*
14033
14034fi
14035echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14036echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14037
14038if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14039    case $lt_prog_compiler_pic_F77 in
14040     "" | " "*) ;;
14041     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14042     esac
14043else
14044    lt_prog_compiler_pic_F77=
14045     lt_prog_compiler_can_build_shared_F77=no
14046fi
14047
14048fi
14049case $host_os in
14050  # For platforms which do not support PIC, -DPIC is meaningless:
14051  *djgpp*)
14052    lt_prog_compiler_pic_F77=
14053    ;;
14054  *)
14055    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14056    ;;
14057esac
14058
14059echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14060echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14061if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14062  echo $ECHO_N "(cached) $ECHO_C" >&6
14063else
14064  lt_cv_prog_compiler_c_o_F77=no
14065   $rm -r conftest 2>/dev/null
14066   mkdir conftest
14067   cd conftest
14068   mkdir out
14069   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14070
14071   lt_compiler_flag="-o out/conftest2.$ac_objext"
14072   # Insert the option either (1) after the last *FLAGS variable, or
14073   # (2) before a word containing "conftest.", or (3) at the end.
14074   # Note that $ac_compile itself does not contain backslashes and begins
14075   # with a dollar sign (not a hyphen), so the echo should work correctly.
14076   lt_compile=`echo "$ac_compile" | $SED \
14077   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14078   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14079   -e 's:$: $lt_compiler_flag:'`
14080   (eval echo "\"\$as_me:14328: $lt_compile\"" >&5)
14081   (eval "$lt_compile" 2>out/conftest.err)
14082   ac_status=$?
14083   cat out/conftest.err >&5
14084   echo "$as_me:14332: \$? = $ac_status" >&5
14085   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14086   then
14087     # The compiler can only warn and ignore the option if not recognized
14088     # So say no if there are warnings
14089     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14090     $SED '/^$/d' out/conftest.err >out/conftest.er2
14091     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14092       lt_cv_prog_compiler_c_o_F77=yes
14093     fi
14094   fi
14095   chmod u+w . 2>&5
14096   $rm conftest*
14097   # SGI C++ compiler will create directory out/ii_files/ for
14098   # template instantiation
14099   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14100   $rm out/* && rmdir out
14101   cd ..
14102   rmdir conftest
14103   $rm conftest*
14104
14105fi
14106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14107echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14108
14109
14110hard_links="nottested"
14111if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14112  # do not overwrite the value of need_locks provided by the user
14113  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14114echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14115  hard_links=yes
14116  $rm conftest*
14117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14118  touch conftest.a
14119  ln conftest.a conftest.b 2>&5 || hard_links=no
14120  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14121  echo "$as_me:$LINENO: result: $hard_links" >&5
14122echo "${ECHO_T}$hard_links" >&6
14123  if test "$hard_links" = no; then
14124    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14125echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14126    need_locks=warn
14127  fi
14128else
14129  need_locks=no
14130fi
14131
14132echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14133echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14134
14135  runpath_var=
14136  allow_undefined_flag_F77=
14137  enable_shared_with_static_runtimes_F77=no
14138  archive_cmds_F77=
14139  archive_expsym_cmds_F77=
14140  old_archive_From_new_cmds_F77=
14141  old_archive_from_expsyms_cmds_F77=
14142  export_dynamic_flag_spec_F77=
14143  whole_archive_flag_spec_F77=
14144  thread_safe_flag_spec_F77=
14145  hardcode_libdir_flag_spec_F77=
14146  hardcode_libdir_flag_spec_ld_F77=
14147  hardcode_libdir_separator_F77=
14148  hardcode_direct_F77=no
14149  hardcode_minus_L_F77=no
14150  hardcode_shlibpath_var_F77=unsupported
14151  link_all_deplibs_F77=unknown
14152  hardcode_automatic_F77=no
14153  module_cmds_F77=
14154  module_expsym_cmds_F77=
14155  always_export_symbols_F77=no
14156  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14157  # include_expsyms should be a list of space-separated symbols to be *always*
14158  # included in the symbol list
14159  include_expsyms_F77=
14160  # exclude_expsyms can be an extended regexp of symbols to exclude
14161  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14162  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14163  # as well as any symbol that contains `d'.
14164  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14165  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14166  # platforms (ab)use it in PIC code, but their linkers get confused if
14167  # the symbol is explicitly referenced.  Since portable code cannot
14168  # rely on this symbol name, it's probably fine to never include it in
14169  # preloaded symbol tables.
14170  extract_expsyms_cmds=
14171  # Just being paranoid about ensuring that cc_basename is set.
14172  for cc_temp in $compiler""; do
14173  case $cc_temp in
14174    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14175    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14176    \-*) ;;
14177    *) break;;
14178  esac
14179done
14180cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14181
14182  case $host_os in
14183  cygwin* | mingw* | pw32*)
14184    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14185    # When not using gcc, we currently assume that we are using
14186    # Microsoft Visual C++.
14187    if test "$GCC" != yes; then
14188      with_gnu_ld=no
14189    fi
14190    ;;
14191  openbsd*)
14192    with_gnu_ld=no
14193    ;;
14194  esac
14195
14196  ld_shlibs_F77=yes
14197  if test "$with_gnu_ld" = yes; then
14198    # If archive_cmds runs LD, not CC, wlarc should be empty
14199    wlarc='${wl}'
14200
14201    # Set some defaults for GNU ld with shared library support. These
14202    # are reset later if shared libraries are not supported. Putting them
14203    # here allows them to be overridden if necessary.
14204    runpath_var=LD_RUN_PATH
14205    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14206    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14207    # ancient GNU ld didn't support --whole-archive et. al.
14208    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14209	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14210      else
14211  	whole_archive_flag_spec_F77=
14212    fi
14213    supports_anon_versioning=no
14214    case `$LD -v 2>/dev/null` in
14215      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14216      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14217      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14218      *\ 2.11.*) ;; # other 2.11 versions
14219      *) supports_anon_versioning=yes ;;
14220    esac
14221
14222    # See if GNU ld supports shared libraries.
14223    case $host_os in
14224    aix3* | aix4* | aix5*)
14225      # On AIX/PPC, the GNU linker is very broken
14226      if test "$host_cpu" != ia64; then
14227	ld_shlibs_F77=no
14228	cat <<EOF 1>&2
14229
14230*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14231*** to be unable to reliably create shared libraries on AIX.
14232*** Therefore, libtool is disabling shared libraries support.  If you
14233*** really care for shared libraries, you may want to modify your PATH
14234*** so that a non-GNU linker is found, and then restart.
14235
14236EOF
14237      fi
14238      ;;
14239
14240    amigaos*)
14241      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)'
14242      hardcode_libdir_flag_spec_F77='-L$libdir'
14243      hardcode_minus_L_F77=yes
14244
14245      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14246      # that the semantics of dynamic libraries on AmigaOS, at least up
14247      # to version 4, is to share data among multiple programs linked
14248      # with the same dynamic library.  Since this doesn't match the
14249      # behavior of shared libraries on other platforms, we can't use
14250      # them.
14251      ld_shlibs_F77=no
14252      ;;
14253
14254    beos*)
14255      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256	allow_undefined_flag_F77=unsupported
14257	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14258	# support --undefined.  This deserves some investigation.  FIXME
14259	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14260      else
14261	ld_shlibs_F77=no
14262      fi
14263      ;;
14264
14265    cygwin* | mingw* | pw32*)
14266      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14267      # as there is no search path for DLLs.
14268      hardcode_libdir_flag_spec_F77='-L$libdir'
14269      allow_undefined_flag_F77=unsupported
14270      always_export_symbols_F77=no
14271      enable_shared_with_static_runtimes_F77=yes
14272      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14273
14274      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14275        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14276	# If the export-symbols file already is a .def file (1st line
14277	# is EXPORTS), use it as is; otherwise, prepend...
14278	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14279	  cp $export_symbols $output_objdir/$soname.def;
14280	else
14281	  echo EXPORTS > $output_objdir/$soname.def;
14282	  cat $export_symbols >> $output_objdir/$soname.def;
14283	fi~
14284	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14285      else
14286	ld_shlibs_F77=no
14287      fi
14288      ;;
14289
14290    linux*)
14291      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14292	tmp_addflag=
14293	case $cc_basename,$host_cpu in
14294	pgcc*)				# Portland Group C compiler
14295	  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'
14296	  tmp_addflag=' $pic_flag'
14297	  ;;
14298	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14299	  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'
14300	  tmp_addflag=' $pic_flag -Mnomain' ;;
14301	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14302	  tmp_addflag=' -i_dynamic' ;;
14303	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14304	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14305	ifc* | ifort*)			# Intel Fortran compiler
14306	  tmp_addflag=' -nofor_main' ;;
14307	esac
14308	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14309
14310	if test $supports_anon_versioning = yes; then
14311	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14312  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14313  $echo "local: *; };" >> $output_objdir/$libname.ver~
14314	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14315	fi
14316      else
14317	ld_shlibs_F77=no
14318      fi
14319      ;;
14320
14321    netbsd*)
14322      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14323	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14324	wlarc=
14325      else
14326	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14327	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14328      fi
14329      ;;
14330
14331    solaris* | sysv5*)
14332      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14333	ld_shlibs_F77=no
14334	cat <<EOF 1>&2
14335
14336*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14337*** create shared libraries on Solaris systems.  Therefore, libtool
14338*** is disabling shared libraries support.  We urge you to upgrade GNU
14339*** binutils to release 2.9.1 or newer.  Another option is to modify
14340*** your PATH or compiler configuration so that the native linker is
14341*** used, and then restart.
14342
14343EOF
14344      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14345	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14346	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14347      else
14348	ld_shlibs_F77=no
14349      fi
14350      ;;
14351
14352    sunos4*)
14353      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14354      wlarc=
14355      hardcode_direct_F77=yes
14356      hardcode_shlibpath_var_F77=no
14357      ;;
14358
14359    *)
14360      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14361	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14362	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14363      else
14364	ld_shlibs_F77=no
14365      fi
14366      ;;
14367    esac
14368
14369    if test "$ld_shlibs_F77" = no; then
14370      runpath_var=
14371      hardcode_libdir_flag_spec_F77=
14372      export_dynamic_flag_spec_F77=
14373      whole_archive_flag_spec_F77=
14374    fi
14375  else
14376    # PORTME fill in a description of your system's linker (not GNU ld)
14377    case $host_os in
14378    aix3*)
14379      allow_undefined_flag_F77=unsupported
14380      always_export_symbols_F77=yes
14381      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'
14382      # Note: this linker hardcodes the directories in LIBPATH if there
14383      # are no directories specified by -L.
14384      hardcode_minus_L_F77=yes
14385      if test "$GCC" = yes && test -z "$link_static_flag"; then
14386	# Neither direct hardcoding nor static linking is supported with a
14387	# broken collect2.
14388	hardcode_direct_F77=unsupported
14389      fi
14390      ;;
14391
14392    aix4* | aix5*)
14393      if test "$host_cpu" = ia64; then
14394	# On IA64, the linker does run time linking by default, so we don't
14395	# have to do anything special.
14396	aix_use_runtimelinking=no
14397	exp_sym_flag='-Bexport'
14398	no_entry_flag=""
14399      else
14400	# If we're using GNU nm, then we don't want the "-C" option.
14401	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14402	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14403	  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'
14404	else
14405	  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'
14406	fi
14407	aix_use_runtimelinking=no
14408
14409	# Test if we are trying to use run time linking or normal
14410	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14411	# need to do runtime linking.
14412	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14413	  for ld_flag in $LDFLAGS; do
14414  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14415  	    aix_use_runtimelinking=yes
14416  	    break
14417  	  fi
14418	  done
14419	esac
14420
14421	exp_sym_flag='-bexport'
14422	no_entry_flag='-bnoentry'
14423      fi
14424
14425      # When large executables or shared objects are built, AIX ld can
14426      # have problems creating the table of contents.  If linking a library
14427      # or program results in "error TOC overflow" add -mminimal-toc to
14428      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14429      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14430
14431      archive_cmds_F77=''
14432      hardcode_direct_F77=yes
14433      hardcode_libdir_separator_F77=':'
14434      link_all_deplibs_F77=yes
14435
14436      if test "$GCC" = yes; then
14437	case $host_os in aix4.[012]|aix4.[012].*)
14438	# We only want to do this on AIX 4.2 and lower, the check
14439	# below for broken collect2 doesn't work under 4.3+
14440	  collect2name=`${CC} -print-prog-name=collect2`
14441	  if test -f "$collect2name" && \
14442  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14443	  then
14444  	  # We have reworked collect2
14445  	  hardcode_direct_F77=yes
14446	  else
14447  	  # We have old collect2
14448  	  hardcode_direct_F77=unsupported
14449  	  # It fails to find uninstalled libraries when the uninstalled
14450  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14451  	  # to unsupported forces relinking
14452  	  hardcode_minus_L_F77=yes
14453  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14454  	  hardcode_libdir_separator_F77=
14455	  fi
14456	esac
14457	shared_flag='-shared'
14458	if test "$aix_use_runtimelinking" = yes; then
14459	  shared_flag="$shared_flag "'${wl}-G'
14460	fi
14461      else
14462	# not using gcc
14463	if test "$host_cpu" = ia64; then
14464  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14465  	# chokes on -Wl,-G. The following line is correct:
14466	  shared_flag='-G'
14467	else
14468  	if test "$aix_use_runtimelinking" = yes; then
14469	    shared_flag='${wl}-G'
14470	  else
14471	    shared_flag='${wl}-bM:SRE'
14472  	fi
14473	fi
14474      fi
14475
14476      # It seems that -bexpall does not export symbols beginning with
14477      # underscore (_), so it is better to generate a list of symbols to export.
14478      always_export_symbols_F77=yes
14479      if test "$aix_use_runtimelinking" = yes; then
14480	# Warning - without using the other runtime loading flags (-brtl),
14481	# -berok will link without error, but may produce a broken library.
14482	allow_undefined_flag_F77='-berok'
14483       # Determine the default libpath from the value encoded in an empty executable.
14484       cat >conftest.$ac_ext <<_ACEOF
14485      program main
14486
14487      end
14488_ACEOF
14489rm -f conftest.$ac_objext conftest$ac_exeext
14490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14491  (eval $ac_link) 2>conftest.er1
14492  ac_status=$?
14493  grep -v '^ *+' conftest.er1 >conftest.err
14494  rm -f conftest.er1
14495  cat conftest.err >&5
14496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497  (exit $ac_status); } &&
14498	 { ac_try='test -z "$ac_f77_werror_flag"
14499			 || test ! -s conftest.err'
14500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501  (eval $ac_try) 2>&5
14502  ac_status=$?
14503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504  (exit $ac_status); }; } &&
14505	 { ac_try='test -s conftest$ac_exeext'
14506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507  (eval $ac_try) 2>&5
14508  ac_status=$?
14509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510  (exit $ac_status); }; }; then
14511
14512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14513}'`
14514# Check for a 64-bit object if we didn't find anything.
14515if 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; }
14516}'`; fi
14517else
14518  echo "$as_me: failed program was:" >&5
14519sed 's/^/| /' conftest.$ac_ext >&5
14520
14521fi
14522rm -f conftest.err conftest.$ac_objext \
14523      conftest$ac_exeext conftest.$ac_ext
14524if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14525
14526       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14527	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"
14528       else
14529	if test "$host_cpu" = ia64; then
14530	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14531	  allow_undefined_flag_F77="-z nodefs"
14532	  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"
14533	else
14534	 # Determine the default libpath from the value encoded in an empty executable.
14535	 cat >conftest.$ac_ext <<_ACEOF
14536      program main
14537
14538      end
14539_ACEOF
14540rm -f conftest.$ac_objext conftest$ac_exeext
14541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542  (eval $ac_link) 2>conftest.er1
14543  ac_status=$?
14544  grep -v '^ *+' conftest.er1 >conftest.err
14545  rm -f conftest.er1
14546  cat conftest.err >&5
14547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548  (exit $ac_status); } &&
14549	 { ac_try='test -z "$ac_f77_werror_flag"
14550			 || test ! -s conftest.err'
14551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552  (eval $ac_try) 2>&5
14553  ac_status=$?
14554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555  (exit $ac_status); }; } &&
14556	 { ac_try='test -s conftest$ac_exeext'
14557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558  (eval $ac_try) 2>&5
14559  ac_status=$?
14560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561  (exit $ac_status); }; }; then
14562
14563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14564}'`
14565# Check for a 64-bit object if we didn't find anything.
14566if 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; }
14567}'`; fi
14568else
14569  echo "$as_me: failed program was:" >&5
14570sed 's/^/| /' conftest.$ac_ext >&5
14571
14572fi
14573rm -f conftest.err conftest.$ac_objext \
14574      conftest$ac_exeext conftest.$ac_ext
14575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14576
14577	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14578	  # Warning - without using the other run time loading flags,
14579	  # -berok will link without error, but may produce a broken library.
14580	  no_undefined_flag_F77=' ${wl}-bernotok'
14581	  allow_undefined_flag_F77=' ${wl}-berok'
14582	  # -bexpall does not export symbols beginning with underscore (_)
14583	  always_export_symbols_F77=yes
14584	  # Exported symbols can be pulled into shared objects from archives
14585	  whole_archive_flag_spec_F77=' '
14586	  archive_cmds_need_lc_F77=yes
14587	  # This is similar to how AIX traditionally builds its shared libraries.
14588	  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'
14589	fi
14590      fi
14591      ;;
14592
14593    amigaos*)
14594      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)'
14595      hardcode_libdir_flag_spec_F77='-L$libdir'
14596      hardcode_minus_L_F77=yes
14597      # see comment about different semantics on the GNU ld section
14598      ld_shlibs_F77=no
14599      ;;
14600
14601    bsdi[45]*)
14602      export_dynamic_flag_spec_F77=-rdynamic
14603      ;;
14604
14605    cygwin* | mingw* | pw32*)
14606      # When not using gcc, we currently assume that we are using
14607      # Microsoft Visual C++.
14608      # hardcode_libdir_flag_spec is actually meaningless, as there is
14609      # no search path for DLLs.
14610      hardcode_libdir_flag_spec_F77=' '
14611      allow_undefined_flag_F77=unsupported
14612      # Tell ltmain to make .lib files, not .a files.
14613      libext=lib
14614      # Tell ltmain to make .dll files, not .so files.
14615      shrext_cmds=".dll"
14616      # FIXME: Setting linknames here is a bad hack.
14617      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14618      # The linker will automatically build a .lib file if we build a DLL.
14619      old_archive_From_new_cmds_F77='true'
14620      # FIXME: Should let the user specify the lib program.
14621      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14622      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14623      enable_shared_with_static_runtimes_F77=yes
14624      ;;
14625
14626    darwin* | rhapsody*)
14627      case $host_os in
14628        rhapsody* | darwin1.[012])
14629         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14630         ;;
14631       *) # Darwin 1.3 on
14632         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14633           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14634         else
14635           case ${MACOSX_DEPLOYMENT_TARGET} in
14636             10.[012])
14637               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14638               ;;
14639             10.*)
14640               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14641               ;;
14642           esac
14643         fi
14644         ;;
14645      esac
14646      archive_cmds_need_lc_F77=no
14647      hardcode_direct_F77=no
14648      hardcode_automatic_F77=yes
14649      hardcode_shlibpath_var_F77=unsupported
14650      whole_archive_flag_spec_F77=''
14651      link_all_deplibs_F77=yes
14652    if test "$GCC" = yes ; then
14653    	output_verbose_link_cmd='echo'
14654        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14655      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14656      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14657      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}'
14658      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}'
14659    else
14660      case $cc_basename in
14661        xlc*)
14662         output_verbose_link_cmd='echo'
14663         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14664         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14665          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14666         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}'
14667          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}'
14668          ;;
14669       *)
14670         ld_shlibs_F77=no
14671          ;;
14672      esac
14673    fi
14674      ;;
14675
14676    dgux*)
14677      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14678      hardcode_libdir_flag_spec_F77='-L$libdir'
14679      hardcode_shlibpath_var_F77=no
14680      ;;
14681
14682    freebsd1*)
14683      ld_shlibs_F77=no
14684      ;;
14685
14686    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14687    # support.  Future versions do this automatically, but an explicit c++rt0.o
14688    # does not break anything, and helps significantly (at the cost of a little
14689    # extra space).
14690    freebsd2.2*)
14691      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14692      hardcode_libdir_flag_spec_F77='-R$libdir'
14693      hardcode_direct_F77=yes
14694      hardcode_shlibpath_var_F77=no
14695      ;;
14696
14697    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14698    freebsd2*)
14699      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14700      hardcode_direct_F77=yes
14701      hardcode_minus_L_F77=yes
14702      hardcode_shlibpath_var_F77=no
14703      ;;
14704
14705    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14706    freebsd* | kfreebsd*-gnu | dragonfly*)
14707      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14708      hardcode_libdir_flag_spec_F77='-R$libdir'
14709      hardcode_direct_F77=yes
14710      hardcode_shlibpath_var_F77=no
14711      ;;
14712
14713    hpux9*)
14714      if test "$GCC" = yes; then
14715	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'
14716      else
14717	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'
14718      fi
14719      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14720      hardcode_libdir_separator_F77=:
14721      hardcode_direct_F77=yes
14722
14723      # hardcode_minus_L: Not really in the search PATH,
14724      # but as the default location of the library.
14725      hardcode_minus_L_F77=yes
14726      export_dynamic_flag_spec_F77='${wl}-E'
14727      ;;
14728
14729    hpux10* | hpux11*)
14730      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14731	case $host_cpu in
14732	hppa*64*|ia64*)
14733	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14734	  ;;
14735	*)
14736	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14737	  ;;
14738	esac
14739      else
14740	case $host_cpu in
14741	hppa*64*|ia64*)
14742	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14743	  ;;
14744	*)
14745	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14746	  ;;
14747	esac
14748      fi
14749      if test "$with_gnu_ld" = no; then
14750	case $host_cpu in
14751	hppa*64*)
14752	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14753	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14754	  hardcode_libdir_separator_F77=:
14755	  hardcode_direct_F77=no
14756	  hardcode_shlibpath_var_F77=no
14757	  ;;
14758	ia64*)
14759	  hardcode_libdir_flag_spec_F77='-L$libdir'
14760	  hardcode_direct_F77=no
14761	  hardcode_shlibpath_var_F77=no
14762
14763	  # hardcode_minus_L: Not really in the search PATH,
14764	  # but as the default location of the library.
14765	  hardcode_minus_L_F77=yes
14766	  ;;
14767	*)
14768	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14769	  hardcode_libdir_separator_F77=:
14770	  hardcode_direct_F77=yes
14771	  export_dynamic_flag_spec_F77='${wl}-E'
14772
14773	  # hardcode_minus_L: Not really in the search PATH,
14774	  # but as the default location of the library.
14775	  hardcode_minus_L_F77=yes
14776	  ;;
14777	esac
14778      fi
14779      ;;
14780
14781    irix5* | irix6* | nonstopux*)
14782      if test "$GCC" = yes; then
14783	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'
14784      else
14785	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'
14786	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14787      fi
14788      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14789      hardcode_libdir_separator_F77=:
14790      link_all_deplibs_F77=yes
14791      ;;
14792
14793    netbsd*)
14794      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14795	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14796      else
14797	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14798      fi
14799      hardcode_libdir_flag_spec_F77='-R$libdir'
14800      hardcode_direct_F77=yes
14801      hardcode_shlibpath_var_F77=no
14802      ;;
14803
14804    newsos6)
14805      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14806      hardcode_direct_F77=yes
14807      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14808      hardcode_libdir_separator_F77=:
14809      hardcode_shlibpath_var_F77=no
14810      ;;
14811
14812    openbsd*)
14813      hardcode_direct_F77=yes
14814      hardcode_shlibpath_var_F77=no
14815      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14816	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14817	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14818	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14819	export_dynamic_flag_spec_F77='${wl}-E'
14820      else
14821       case $host_os in
14822	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14823	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14824	   hardcode_libdir_flag_spec_F77='-R$libdir'
14825	   ;;
14826	 *)
14827	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14828	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14829	   ;;
14830       esac
14831      fi
14832      ;;
14833
14834    os2*)
14835      hardcode_libdir_flag_spec_F77='-L$libdir'
14836      hardcode_minus_L_F77=yes
14837      allow_undefined_flag_F77=unsupported
14838      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'
14839      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14840      ;;
14841
14842    osf3*)
14843      if test "$GCC" = yes; then
14844	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14845	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'
14846      else
14847	allow_undefined_flag_F77=' -expect_unresolved \*'
14848	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'
14849      fi
14850      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14851      hardcode_libdir_separator_F77=:
14852      ;;
14853
14854    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14855      if test "$GCC" = yes; then
14856	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14857	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'
14858	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14859      else
14860	allow_undefined_flag_F77=' -expect_unresolved \*'
14861	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'
14862	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~
14863	$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'
14864
14865	# Both c and cxx compiler support -rpath directly
14866	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14867      fi
14868      hardcode_libdir_separator_F77=:
14869      ;;
14870
14871    sco3.2v5*)
14872      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873      hardcode_shlibpath_var_F77=no
14874      export_dynamic_flag_spec_F77='${wl}-Bexport'
14875      runpath_var=LD_RUN_PATH
14876      hardcode_runpath_var=yes
14877      ;;
14878
14879    solaris*)
14880      no_undefined_flag_F77=' -z text'
14881      if test "$GCC" = yes; then
14882	wlarc='${wl}'
14883	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14884	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14885	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14886      else
14887	wlarc=''
14888	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14889	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14890  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14891      fi
14892      hardcode_libdir_flag_spec_F77='-R$libdir'
14893      hardcode_shlibpath_var_F77=no
14894      case $host_os in
14895      solaris2.[0-5] | solaris2.[0-5].*) ;;
14896      *)
14897 	# The compiler driver will combine linker options so we
14898 	# cannot just pass the convience library names through
14899 	# without $wl, iff we do not link with $LD.
14900 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14901 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14902 	case $wlarc in
14903 	'')
14904 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14905 	*)
14906 	  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' ;;
14907 	esac ;;
14908      esac
14909      link_all_deplibs_F77=yes
14910      ;;
14911
14912    sunos4*)
14913      if test "x$host_vendor" = xsequent; then
14914	# Use $CC to link under sequent, because it throws in some extra .o
14915	# files that make .init and .fini sections work.
14916	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14917      else
14918	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14919      fi
14920      hardcode_libdir_flag_spec_F77='-L$libdir'
14921      hardcode_direct_F77=yes
14922      hardcode_minus_L_F77=yes
14923      hardcode_shlibpath_var_F77=no
14924      ;;
14925
14926    sysv4)
14927      case $host_vendor in
14928	sni)
14929	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14930	  hardcode_direct_F77=yes # is this really true???
14931	;;
14932	siemens)
14933	  ## LD is ld it makes a PLAMLIB
14934	  ## CC just makes a GrossModule.
14935	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14936	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14937	  hardcode_direct_F77=no
14938        ;;
14939	motorola)
14940	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14941	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14942	;;
14943      esac
14944      runpath_var='LD_RUN_PATH'
14945      hardcode_shlibpath_var_F77=no
14946      ;;
14947
14948    sysv4.3*)
14949      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14950      hardcode_shlibpath_var_F77=no
14951      export_dynamic_flag_spec_F77='-Bexport'
14952      ;;
14953
14954    sysv4*MP*)
14955      if test -d /usr/nec; then
14956	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957	hardcode_shlibpath_var_F77=no
14958	runpath_var=LD_RUN_PATH
14959	hardcode_runpath_var=yes
14960	ld_shlibs_F77=yes
14961      fi
14962      ;;
14963
14964    sysv4.2uw2*)
14965      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14966      hardcode_direct_F77=yes
14967      hardcode_minus_L_F77=no
14968      hardcode_shlibpath_var_F77=no
14969      hardcode_runpath_var=yes
14970      runpath_var=LD_RUN_PATH
14971      ;;
14972
14973   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14974      no_undefined_flag_F77='${wl}-z ${wl}text'
14975      if test "$GCC" = yes; then
14976	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14977      else
14978	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14979      fi
14980      runpath_var='LD_RUN_PATH'
14981      hardcode_shlibpath_var_F77=no
14982      ;;
14983
14984    sysv5*)
14985      no_undefined_flag_F77=' -z text'
14986      # $CC -shared without GNU ld will not create a library from C++
14987      # object files and a static libstdc++, better avoid it by now
14988      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14989      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14990  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14991      hardcode_libdir_flag_spec_F77=
14992      hardcode_shlibpath_var_F77=no
14993      runpath_var='LD_RUN_PATH'
14994      ;;
14995
14996    uts4*)
14997      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14998      hardcode_libdir_flag_spec_F77='-L$libdir'
14999      hardcode_shlibpath_var_F77=no
15000      ;;
15001
15002    *)
15003      ld_shlibs_F77=no
15004      ;;
15005    esac
15006  fi
15007
15008echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15009echo "${ECHO_T}$ld_shlibs_F77" >&6
15010test "$ld_shlibs_F77" = no && can_build_shared=no
15011
15012variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15013if test "$GCC" = yes; then
15014  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15015fi
15016
15017#
15018# Do we need to explicitly link libc?
15019#
15020case "x$archive_cmds_need_lc_F77" in
15021x|xyes)
15022  # Assume -lc should be added
15023  archive_cmds_need_lc_F77=yes
15024
15025  if test "$enable_shared" = yes && test "$GCC" = yes; then
15026    case $archive_cmds_F77 in
15027    *'~'*)
15028      # FIXME: we may have to deal with multi-command sequences.
15029      ;;
15030    '$CC '*)
15031      # Test whether the compiler implicitly links with -lc since on some
15032      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15033      # to ld, don't add -lc before -lgcc.
15034      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15035echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15036      $rm conftest*
15037      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15038
15039      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15040  (eval $ac_compile) 2>&5
15041  ac_status=$?
15042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043  (exit $ac_status); } 2>conftest.err; then
15044        soname=conftest
15045        lib=conftest
15046        libobjs=conftest.$ac_objext
15047        deplibs=
15048        wl=$lt_prog_compiler_wl_F77
15049        compiler_flags=-v
15050        linker_flags=-v
15051        verstring=
15052        output_objdir=.
15053        libname=conftest
15054        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15055        allow_undefined_flag_F77=
15056        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15057  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15058  ac_status=$?
15059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060  (exit $ac_status); }
15061        then
15062	  archive_cmds_need_lc_F77=no
15063        else
15064	  archive_cmds_need_lc_F77=yes
15065        fi
15066        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15067      else
15068        cat conftest.err 1>&5
15069      fi
15070      $rm conftest*
15071      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15072echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15073      ;;
15074    esac
15075  fi
15076  ;;
15077esac
15078
15079echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15080echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15081library_names_spec=
15082libname_spec='lib$name'
15083soname_spec=
15084shrext_cmds=".so"
15085postinstall_cmds=
15086postuninstall_cmds=
15087finish_cmds=
15088finish_eval=
15089shlibpath_var=
15090shlibpath_overrides_runpath=unknown
15091version_type=none
15092dynamic_linker="$host_os ld.so"
15093sys_lib_dlsearch_path_spec="/lib /usr/lib"
15094if test "$GCC" = yes; then
15095  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15096  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15097    # if the path contains ";" then we assume it to be the separator
15098    # otherwise default to the standard path separator (i.e. ":") - it is
15099    # assumed that no part of a normal pathname contains ";" but that should
15100    # okay in the real world where ";" in dirpaths is itself problematic.
15101    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15102  else
15103    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15104  fi
15105else
15106  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15107fi
15108need_lib_prefix=unknown
15109hardcode_into_libs=no
15110
15111# when you set need_version to no, make sure it does not cause -set_version
15112# flags to be left without arguments
15113need_version=unknown
15114
15115case $host_os in
15116aix3*)
15117  version_type=linux
15118  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15119  shlibpath_var=LIBPATH
15120
15121  # AIX 3 has no versioning support, so we append a major version to the name.
15122  soname_spec='${libname}${release}${shared_ext}$major'
15123  ;;
15124
15125aix4* | aix5*)
15126  version_type=linux
15127  need_lib_prefix=no
15128  need_version=no
15129  hardcode_into_libs=yes
15130  if test "$host_cpu" = ia64; then
15131    # AIX 5 supports IA64
15132    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15133    shlibpath_var=LD_LIBRARY_PATH
15134  else
15135    # With GCC up to 2.95.x, collect2 would create an import file
15136    # for dependence libraries.  The import file would start with
15137    # the line `#! .'.  This would cause the generated library to
15138    # depend on `.', always an invalid library.  This was fixed in
15139    # development snapshots of GCC prior to 3.0.
15140    case $host_os in
15141      aix4 | aix4.[01] | aix4.[01].*)
15142      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15143	   echo ' yes '
15144	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15145	:
15146      else
15147	can_build_shared=no
15148      fi
15149      ;;
15150    esac
15151    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15152    # soname into executable. Probably we can add versioning support to
15153    # collect2, so additional links can be useful in future.
15154    if test "$aix_use_runtimelinking" = yes; then
15155      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15156      # instead of lib<name>.a to let people know that these are not
15157      # typical AIX shared libraries.
15158      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15159    else
15160      # We preserve .a as extension for shared libraries through AIX4.2
15161      # and later when we are not doing run time linking.
15162      library_names_spec='${libname}${release}.a $libname.a'
15163      soname_spec='${libname}${release}${shared_ext}$major'
15164    fi
15165    shlibpath_var=LIBPATH
15166  fi
15167  ;;
15168
15169amigaos*)
15170  library_names_spec='$libname.ixlibrary $libname.a'
15171  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15172  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'
15173  ;;
15174
15175beos*)
15176  library_names_spec='${libname}${shared_ext}'
15177  dynamic_linker="$host_os ld.so"
15178  shlibpath_var=LIBRARY_PATH
15179  ;;
15180
15181bsdi[45]*)
15182  version_type=linux
15183  need_version=no
15184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185  soname_spec='${libname}${release}${shared_ext}$major'
15186  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15187  shlibpath_var=LD_LIBRARY_PATH
15188  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15189  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15190  # the default ld.so.conf also contains /usr/contrib/lib and
15191  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15192  # libtool to hard-code these into programs
15193  ;;
15194
15195cygwin* | mingw* | pw32*)
15196  version_type=windows
15197  shrext_cmds=".dll"
15198  need_version=no
15199  need_lib_prefix=no
15200
15201  case $GCC,$host_os in
15202  yes,cygwin* | yes,mingw* | yes,pw32*)
15203    library_names_spec='$libname.dll.a'
15204    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15205    postinstall_cmds='base_file=`basename \${file}`~
15206      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15207      dldir=$destdir/`dirname \$dlpath`~
15208      test -d \$dldir || mkdir -p \$dldir~
15209      $install_prog $dir/$dlname \$dldir/$dlname~
15210      chmod a+x \$dldir/$dlname'
15211    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15212      dlpath=$dir/\$dldll~
15213       $rm \$dlpath'
15214    shlibpath_overrides_runpath=yes
15215
15216    case $host_os in
15217    cygwin*)
15218      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15219      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15220      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15221      ;;
15222    mingw*)
15223      # MinGW DLLs use traditional 'lib' prefix
15224      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15225      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15226      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15227        # It is most probably a Windows format PATH printed by
15228        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15229        # path with ; separators, and with drive letters. We can handle the
15230        # drive letters (cygwin fileutils understands them), so leave them,
15231        # especially as we might pass files found there to a mingw objdump,
15232        # which wouldn't understand a cygwinified path. Ahh.
15233        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15234      else
15235        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15236      fi
15237      ;;
15238    pw32*)
15239      # pw32 DLLs use 'pw' prefix rather than 'lib'
15240      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15241      ;;
15242    esac
15243    ;;
15244
15245  *)
15246    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15247    ;;
15248  esac
15249  dynamic_linker='Win32 ld.exe'
15250  # FIXME: first we should search . and the directory the executable is in
15251  shlibpath_var=PATH
15252  ;;
15253
15254darwin* | rhapsody*)
15255  dynamic_linker="$host_os dyld"
15256  version_type=darwin
15257  need_lib_prefix=no
15258  need_version=no
15259  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15260  soname_spec='${libname}${release}${major}$shared_ext'
15261  shlibpath_overrides_runpath=yes
15262  shlibpath_var=DYLD_LIBRARY_PATH
15263  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15264  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15265  if test "$GCC" = yes; then
15266    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"`
15267  else
15268    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15269  fi
15270  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15271  ;;
15272
15273dgux*)
15274  version_type=linux
15275  need_lib_prefix=no
15276  need_version=no
15277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15278  soname_spec='${libname}${release}${shared_ext}$major'
15279  shlibpath_var=LD_LIBRARY_PATH
15280  ;;
15281
15282freebsd1*)
15283  dynamic_linker=no
15284  ;;
15285
15286kfreebsd*-gnu)
15287  version_type=linux
15288  need_lib_prefix=no
15289  need_version=no
15290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15291  soname_spec='${libname}${release}${shared_ext}$major'
15292  shlibpath_var=LD_LIBRARY_PATH
15293  shlibpath_overrides_runpath=no
15294  hardcode_into_libs=yes
15295  dynamic_linker='GNU ld.so'
15296  ;;
15297
15298freebsd* | dragonfly*)
15299  # DragonFly does not have aout.  When/if they implement a new
15300  # versioning mechanism, adjust this.
15301  if test -x /usr/bin/objformat; then
15302    objformat=`/usr/bin/objformat`
15303  else
15304    case $host_os in
15305    freebsd[123]*) objformat=aout ;;
15306    *) objformat=elf ;;
15307    esac
15308  fi
15309  version_type=freebsd-$objformat
15310  case $version_type in
15311    freebsd-elf*)
15312      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15313      need_version=no
15314      need_lib_prefix=no
15315      ;;
15316    freebsd-*)
15317      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15318      need_version=yes
15319      ;;
15320  esac
15321  shlibpath_var=LD_LIBRARY_PATH
15322  case $host_os in
15323  freebsd2*)
15324    shlibpath_overrides_runpath=yes
15325    ;;
15326  freebsd3.[01]* | freebsdelf3.[01]*)
15327    shlibpath_overrides_runpath=yes
15328    hardcode_into_libs=yes
15329    ;;
15330  *) # from 3.2 on
15331    shlibpath_overrides_runpath=no
15332    hardcode_into_libs=yes
15333    ;;
15334  esac
15335  ;;
15336
15337gnu*)
15338  version_type=linux
15339  need_lib_prefix=no
15340  need_version=no
15341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15342  soname_spec='${libname}${release}${shared_ext}$major'
15343  shlibpath_var=LD_LIBRARY_PATH
15344  hardcode_into_libs=yes
15345  ;;
15346
15347hpux9* | hpux10* | hpux11*)
15348  # Give a soname corresponding to the major version so that dld.sl refuses to
15349  # link against other versions.
15350  version_type=sunos
15351  need_lib_prefix=no
15352  need_version=no
15353  case $host_cpu in
15354  ia64*)
15355    shrext_cmds='.so'
15356    hardcode_into_libs=yes
15357    dynamic_linker="$host_os dld.so"
15358    shlibpath_var=LD_LIBRARY_PATH
15359    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15360    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361    soname_spec='${libname}${release}${shared_ext}$major'
15362    if test "X$HPUX_IA64_MODE" = X32; then
15363      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15364    else
15365      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15366    fi
15367    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15368    ;;
15369   hppa*64*)
15370     shrext_cmds='.sl'
15371     hardcode_into_libs=yes
15372     dynamic_linker="$host_os dld.sl"
15373     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15374     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376     soname_spec='${libname}${release}${shared_ext}$major'
15377     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15379     ;;
15380   *)
15381    shrext_cmds='.sl'
15382    dynamic_linker="$host_os dld.sl"
15383    shlibpath_var=SHLIB_PATH
15384    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15385    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386    soname_spec='${libname}${release}${shared_ext}$major'
15387    ;;
15388  esac
15389  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15390  postinstall_cmds='chmod 555 $lib'
15391  ;;
15392
15393irix5* | irix6* | nonstopux*)
15394  case $host_os in
15395    nonstopux*) version_type=nonstopux ;;
15396    *)
15397	if test "$lt_cv_prog_gnu_ld" = yes; then
15398		version_type=linux
15399	else
15400		version_type=irix
15401	fi ;;
15402  esac
15403  need_lib_prefix=no
15404  need_version=no
15405  soname_spec='${libname}${release}${shared_ext}$major'
15406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15407  case $host_os in
15408  irix5* | nonstopux*)
15409    libsuff= shlibsuff=
15410    ;;
15411  *)
15412    case $LD in # libtool.m4 will add one of these switches to LD
15413    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15414      libsuff= shlibsuff= libmagic=32-bit;;
15415    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15416      libsuff=32 shlibsuff=N32 libmagic=N32;;
15417    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15418      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15419    *) libsuff= shlibsuff= libmagic=never-match;;
15420    esac
15421    ;;
15422  esac
15423  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15424  shlibpath_overrides_runpath=no
15425  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15426  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15427  hardcode_into_libs=yes
15428  ;;
15429
15430# No shared lib support for Linux oldld, aout, or coff.
15431linux*oldld* | linux*aout* | linux*coff*)
15432  dynamic_linker=no
15433  ;;
15434
15435# This must be Linux ELF.
15436linux*)
15437  version_type=linux
15438  need_lib_prefix=no
15439  need_version=no
15440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441  soname_spec='${libname}${release}${shared_ext}$major'
15442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15443  shlibpath_var=LD_LIBRARY_PATH
15444  shlibpath_overrides_runpath=no
15445  # This implies no fast_install, which is unacceptable.
15446  # Some rework will be needed to allow for fast_install
15447  # before this can be enabled.
15448  hardcode_into_libs=yes
15449
15450  # find out which ABI we are using
15451  libsuff=
15452  case "$host_cpu" in
15453  x86_64*|s390x*|powerpc64*)
15454    echo '#line 15702 "configure"' > conftest.$ac_ext
15455    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456  (eval $ac_compile) 2>&5
15457  ac_status=$?
15458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459  (exit $ac_status); }; then
15460      case `/usr/bin/file conftest.$ac_objext` in
15461      *64-bit*)
15462        libsuff=64
15463        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15464        ;;
15465      esac
15466    fi
15467    rm -rf conftest*
15468    ;;
15469  esac
15470
15471  # Append ld.so.conf contents to the search path
15472  if test -f /etc/ld.so.conf; then
15473    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' ' '`
15474    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15475  fi
15476
15477  # We used to test for /lib/ld.so.1 and disable shared libraries on
15478  # powerpc, because MkLinux only supported shared libraries with the
15479  # GNU dynamic linker.  Since this was broken with cross compilers,
15480  # most powerpc-linux boxes support dynamic linking these days and
15481  # people can always --disable-shared, the test was removed, and we
15482  # assume the GNU/Linux dynamic linker is in use.
15483  dynamic_linker='GNU/Linux ld.so'
15484  ;;
15485
15486knetbsd*-gnu)
15487  version_type=linux
15488  need_lib_prefix=no
15489  need_version=no
15490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15491  soname_spec='${libname}${release}${shared_ext}$major'
15492  shlibpath_var=LD_LIBRARY_PATH
15493  shlibpath_overrides_runpath=no
15494  hardcode_into_libs=yes
15495  dynamic_linker='GNU ld.so'
15496  ;;
15497
15498netbsd*)
15499  version_type=sunos
15500  need_lib_prefix=no
15501  need_version=no
15502  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15504    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15505    dynamic_linker='NetBSD (a.out) ld.so'
15506  else
15507    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15508    soname_spec='${libname}${release}${shared_ext}$major'
15509    dynamic_linker='NetBSD ld.elf_so'
15510  fi
15511  shlibpath_var=LD_LIBRARY_PATH
15512  shlibpath_overrides_runpath=yes
15513  hardcode_into_libs=yes
15514  ;;
15515
15516newsos6)
15517  version_type=linux
15518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15519  shlibpath_var=LD_LIBRARY_PATH
15520  shlibpath_overrides_runpath=yes
15521  ;;
15522
15523nto-qnx*)
15524  version_type=linux
15525  need_lib_prefix=no
15526  need_version=no
15527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15528  soname_spec='${libname}${release}${shared_ext}$major'
15529  shlibpath_var=LD_LIBRARY_PATH
15530  shlibpath_overrides_runpath=yes
15531  ;;
15532
15533openbsd*)
15534  version_type=sunos
15535  need_lib_prefix=no
15536  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15537  case $host_os in
15538    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15539    *)                         need_version=no  ;;
15540  esac
15541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15543  shlibpath_var=LD_LIBRARY_PATH
15544  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15545    case $host_os in
15546      openbsd2.[89] | openbsd2.[89].*)
15547	shlibpath_overrides_runpath=no
15548	;;
15549      *)
15550	shlibpath_overrides_runpath=yes
15551	;;
15552      esac
15553  else
15554    shlibpath_overrides_runpath=yes
15555  fi
15556  ;;
15557
15558os2*)
15559  libname_spec='$name'
15560  shrext_cmds=".dll"
15561  need_lib_prefix=no
15562  library_names_spec='$libname${shared_ext} $libname.a'
15563  dynamic_linker='OS/2 ld.exe'
15564  shlibpath_var=LIBPATH
15565  ;;
15566
15567osf3* | osf4* | osf5*)
15568  version_type=osf
15569  need_lib_prefix=no
15570  need_version=no
15571  soname_spec='${libname}${release}${shared_ext}$major'
15572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573  shlibpath_var=LD_LIBRARY_PATH
15574  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15575  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15576  ;;
15577
15578sco3.2v5*)
15579  version_type=osf
15580  soname_spec='${libname}${release}${shared_ext}$major'
15581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582  shlibpath_var=LD_LIBRARY_PATH
15583  ;;
15584
15585solaris*)
15586  version_type=linux
15587  need_lib_prefix=no
15588  need_version=no
15589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590  soname_spec='${libname}${release}${shared_ext}$major'
15591  shlibpath_var=LD_LIBRARY_PATH
15592  shlibpath_overrides_runpath=yes
15593  hardcode_into_libs=yes
15594  # ldd complains unless libraries are executable
15595  postinstall_cmds='chmod +x $lib'
15596  ;;
15597
15598sunos4*)
15599  version_type=sunos
15600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15601  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15602  shlibpath_var=LD_LIBRARY_PATH
15603  shlibpath_overrides_runpath=yes
15604  if test "$with_gnu_ld" = yes; then
15605    need_lib_prefix=no
15606  fi
15607  need_version=yes
15608  ;;
15609
15610sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15611  version_type=linux
15612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613  soname_spec='${libname}${release}${shared_ext}$major'
15614  shlibpath_var=LD_LIBRARY_PATH
15615  case $host_vendor in
15616    sni)
15617      shlibpath_overrides_runpath=no
15618      need_lib_prefix=no
15619      export_dynamic_flag_spec='${wl}-Blargedynsym'
15620      runpath_var=LD_RUN_PATH
15621      ;;
15622    siemens)
15623      need_lib_prefix=no
15624      ;;
15625    motorola)
15626      need_lib_prefix=no
15627      need_version=no
15628      shlibpath_overrides_runpath=no
15629      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15630      ;;
15631  esac
15632  ;;
15633
15634sysv4*MP*)
15635  if test -d /usr/nec ;then
15636    version_type=linux
15637    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15638    soname_spec='$libname${shared_ext}.$major'
15639    shlibpath_var=LD_LIBRARY_PATH
15640  fi
15641  ;;
15642
15643uts4*)
15644  version_type=linux
15645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646  soname_spec='${libname}${release}${shared_ext}$major'
15647  shlibpath_var=LD_LIBRARY_PATH
15648  ;;
15649
15650*)
15651  dynamic_linker=no
15652  ;;
15653esac
15654echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15655echo "${ECHO_T}$dynamic_linker" >&6
15656test "$dynamic_linker" = no && can_build_shared=no
15657
15658echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15659echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15660hardcode_action_F77=
15661if test -n "$hardcode_libdir_flag_spec_F77" || \
15662   test -n "$runpath_var_F77" || \
15663   test "X$hardcode_automatic_F77" = "Xyes" ; then
15664
15665  # We can hardcode non-existant directories.
15666  if test "$hardcode_direct_F77" != no &&
15667     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15668     # have to relink, otherwise we might link with an installed library
15669     # when we should be linking with a yet-to-be-installed one
15670     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15671     test "$hardcode_minus_L_F77" != no; then
15672    # Linking always hardcodes the temporary library directory.
15673    hardcode_action_F77=relink
15674  else
15675    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15676    hardcode_action_F77=immediate
15677  fi
15678else
15679  # We cannot hardcode anything, or else we can only hardcode existing
15680  # directories.
15681  hardcode_action_F77=unsupported
15682fi
15683echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15684echo "${ECHO_T}$hardcode_action_F77" >&6
15685
15686if test "$hardcode_action_F77" = relink; then
15687  # Fast installation is not supported
15688  enable_fast_install=no
15689elif test "$shlibpath_overrides_runpath" = yes ||
15690     test "$enable_shared" = no; then
15691  # Fast installation is not necessary
15692  enable_fast_install=needless
15693fi
15694
15695striplib=
15696old_striplib=
15697echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15698echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15699if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15700  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15701  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15702  echo "$as_me:$LINENO: result: yes" >&5
15703echo "${ECHO_T}yes" >&6
15704else
15705# FIXME - insert some real tests, host_os isn't really good enough
15706  case $host_os in
15707   darwin*)
15708       if test -n "$STRIP" ; then
15709         striplib="$STRIP -x"
15710         echo "$as_me:$LINENO: result: yes" >&5
15711echo "${ECHO_T}yes" >&6
15712       else
15713  echo "$as_me:$LINENO: result: no" >&5
15714echo "${ECHO_T}no" >&6
15715fi
15716       ;;
15717   *)
15718  echo "$as_me:$LINENO: result: no" >&5
15719echo "${ECHO_T}no" >&6
15720    ;;
15721  esac
15722fi
15723
15724
15725
15726# The else clause should only fire when bootstrapping the
15727# libtool distribution, otherwise you forgot to ship ltmain.sh
15728# with your package, and you will get complaints that there are
15729# no rules to generate ltmain.sh.
15730if test -f "$ltmain"; then
15731  # See if we are running on zsh, and set the options which allow our commands through
15732  # without removal of \ escapes.
15733  if test -n "${ZSH_VERSION+set}" ; then
15734    setopt NO_GLOB_SUBST
15735  fi
15736  # Now quote all the things that may contain metacharacters while being
15737  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15738  # variables and quote the copies for generation of the libtool script.
15739  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15740    SED SHELL STRIP \
15741    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15742    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15743    deplibs_check_method reload_flag reload_cmds need_locks \
15744    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15745    lt_cv_sys_global_symbol_to_c_name_address \
15746    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15747    old_postinstall_cmds old_postuninstall_cmds \
15748    compiler_F77 \
15749    CC_F77 \
15750    LD_F77 \
15751    lt_prog_compiler_wl_F77 \
15752    lt_prog_compiler_pic_F77 \
15753    lt_prog_compiler_static_F77 \
15754    lt_prog_compiler_no_builtin_flag_F77 \
15755    export_dynamic_flag_spec_F77 \
15756    thread_safe_flag_spec_F77 \
15757    whole_archive_flag_spec_F77 \
15758    enable_shared_with_static_runtimes_F77 \
15759    old_archive_cmds_F77 \
15760    old_archive_from_new_cmds_F77 \
15761    predep_objects_F77 \
15762    postdep_objects_F77 \
15763    predeps_F77 \
15764    postdeps_F77 \
15765    compiler_lib_search_path_F77 \
15766    archive_cmds_F77 \
15767    archive_expsym_cmds_F77 \
15768    postinstall_cmds_F77 \
15769    postuninstall_cmds_F77 \
15770    old_archive_from_expsyms_cmds_F77 \
15771    allow_undefined_flag_F77 \
15772    no_undefined_flag_F77 \
15773    export_symbols_cmds_F77 \
15774    hardcode_libdir_flag_spec_F77 \
15775    hardcode_libdir_flag_spec_ld_F77 \
15776    hardcode_libdir_separator_F77 \
15777    hardcode_automatic_F77 \
15778    module_cmds_F77 \
15779    module_expsym_cmds_F77 \
15780    lt_cv_prog_compiler_c_o_F77 \
15781    exclude_expsyms_F77 \
15782    include_expsyms_F77; do
15783
15784    case $var in
15785    old_archive_cmds_F77 | \
15786    old_archive_from_new_cmds_F77 | \
15787    archive_cmds_F77 | \
15788    archive_expsym_cmds_F77 | \
15789    module_cmds_F77 | \
15790    module_expsym_cmds_F77 | \
15791    old_archive_from_expsyms_cmds_F77 | \
15792    export_symbols_cmds_F77 | \
15793    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15794    postinstall_cmds | postuninstall_cmds | \
15795    old_postinstall_cmds | old_postuninstall_cmds | \
15796    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15797      # Double-quote double-evaled strings.
15798      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15799      ;;
15800    *)
15801      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15802      ;;
15803    esac
15804  done
15805
15806  case $lt_echo in
15807  *'\$0 --fallback-echo"')
15808    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15809    ;;
15810  esac
15811
15812cfgfile="$ofile"
15813
15814  cat <<__EOF__ >> "$cfgfile"
15815# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15816
15817# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15818
15819# Shell to use when invoking shell scripts.
15820SHELL=$lt_SHELL
15821
15822# Whether or not to build shared libraries.
15823build_libtool_libs=$enable_shared
15824
15825# Whether or not to build static libraries.
15826build_old_libs=$enable_static
15827
15828# Whether or not to add -lc for building shared libraries.
15829build_libtool_need_lc=$archive_cmds_need_lc_F77
15830
15831# Whether or not to disallow shared libs when runtime libs are static
15832allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15833
15834# Whether or not to optimize for fast installation.
15835fast_install=$enable_fast_install
15836
15837# The host system.
15838host_alias=$host_alias
15839host=$host
15840host_os=$host_os
15841
15842# The build system.
15843build_alias=$build_alias
15844build=$build
15845build_os=$build_os
15846
15847# An echo program that does not interpret backslashes.
15848echo=$lt_echo
15849
15850# The archiver.
15851AR=$lt_AR
15852AR_FLAGS=$lt_AR_FLAGS
15853
15854# A C compiler.
15855LTCC=$lt_LTCC
15856
15857# A language-specific compiler.
15858CC=$lt_compiler_F77
15859
15860# Is the compiler the GNU C compiler?
15861with_gcc=$GCC_F77
15862
15863# An ERE matcher.
15864EGREP=$lt_EGREP
15865
15866# The linker used to build libraries.
15867LD=$lt_LD_F77
15868
15869# Whether we need hard or soft links.
15870LN_S=$lt_LN_S
15871
15872# A BSD-compatible nm program.
15873NM=$lt_NM
15874
15875# A symbol stripping program
15876STRIP=$lt_STRIP
15877
15878# Used to examine libraries when file_magic_cmd begins "file"
15879MAGIC_CMD=$MAGIC_CMD
15880
15881# Used on cygwin: DLL creation program.
15882DLLTOOL="$DLLTOOL"
15883
15884# Used on cygwin: object dumper.
15885OBJDUMP="$OBJDUMP"
15886
15887# Used on cygwin: assembler.
15888AS="$AS"
15889
15890# The name of the directory that contains temporary libtool files.
15891objdir=$objdir
15892
15893# How to create reloadable object files.
15894reload_flag=$lt_reload_flag
15895reload_cmds=$lt_reload_cmds
15896
15897# How to pass a linker flag through the compiler.
15898wl=$lt_lt_prog_compiler_wl_F77
15899
15900# Object file suffix (normally "o").
15901objext="$ac_objext"
15902
15903# Old archive suffix (normally "a").
15904libext="$libext"
15905
15906# Shared library suffix (normally ".so").
15907shrext_cmds='$shrext_cmds'
15908
15909# Executable file suffix (normally "").
15910exeext="$exeext"
15911
15912# Additional compiler flags for building library objects.
15913pic_flag=$lt_lt_prog_compiler_pic_F77
15914pic_mode=$pic_mode
15915
15916# What is the maximum length of a command?
15917max_cmd_len=$lt_cv_sys_max_cmd_len
15918
15919# Does compiler simultaneously support -c and -o options?
15920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15921
15922# Must we lock files when doing compilation?
15923need_locks=$lt_need_locks
15924
15925# Do we need the lib prefix for modules?
15926need_lib_prefix=$need_lib_prefix
15927
15928# Do we need a version for libraries?
15929need_version=$need_version
15930
15931# Whether dlopen is supported.
15932dlopen_support=$enable_dlopen
15933
15934# Whether dlopen of programs is supported.
15935dlopen_self=$enable_dlopen_self
15936
15937# Whether dlopen of statically linked programs is supported.
15938dlopen_self_static=$enable_dlopen_self_static
15939
15940# Compiler flag to prevent dynamic linking.
15941link_static_flag=$lt_lt_prog_compiler_static_F77
15942
15943# Compiler flag to turn off builtin functions.
15944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15945
15946# Compiler flag to allow reflexive dlopens.
15947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15948
15949# Compiler flag to generate shared objects directly from archives.
15950whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15951
15952# Compiler flag to generate thread-safe objects.
15953thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15954
15955# Library versioning type.
15956version_type=$version_type
15957
15958# Format of library name prefix.
15959libname_spec=$lt_libname_spec
15960
15961# List of archive names.  First name is the real one, the rest are links.
15962# The last name is the one that the linker finds with -lNAME.
15963library_names_spec=$lt_library_names_spec
15964
15965# The coded name of the library, if different from the real name.
15966soname_spec=$lt_soname_spec
15967
15968# Commands used to build and install an old-style archive.
15969RANLIB=$lt_RANLIB
15970old_archive_cmds=$lt_old_archive_cmds_F77
15971old_postinstall_cmds=$lt_old_postinstall_cmds
15972old_postuninstall_cmds=$lt_old_postuninstall_cmds
15973
15974# Create an old-style archive from a shared archive.
15975old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15976
15977# Create a temporary old-style archive to link instead of a shared archive.
15978old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15979
15980# Commands used to build and install a shared archive.
15981archive_cmds=$lt_archive_cmds_F77
15982archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15983postinstall_cmds=$lt_postinstall_cmds
15984postuninstall_cmds=$lt_postuninstall_cmds
15985
15986# Commands used to build a loadable module (assumed same as above if empty)
15987module_cmds=$lt_module_cmds_F77
15988module_expsym_cmds=$lt_module_expsym_cmds_F77
15989
15990# Commands to strip libraries.
15991old_striplib=$lt_old_striplib
15992striplib=$lt_striplib
15993
15994# Dependencies to place before the objects being linked to create a
15995# shared library.
15996predep_objects=$lt_predep_objects_F77
15997
15998# Dependencies to place after the objects being linked to create a
15999# shared library.
16000postdep_objects=$lt_postdep_objects_F77
16001
16002# Dependencies to place before the objects being linked to create a
16003# shared library.
16004predeps=$lt_predeps_F77
16005
16006# Dependencies to place after the objects being linked to create a
16007# shared library.
16008postdeps=$lt_postdeps_F77
16009
16010# The library search path used internally by the compiler when linking
16011# a shared library.
16012compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16013
16014# Method to check whether dependent libraries are shared objects.
16015deplibs_check_method=$lt_deplibs_check_method
16016
16017# Command to use when deplibs_check_method == file_magic.
16018file_magic_cmd=$lt_file_magic_cmd
16019
16020# Flag that allows shared libraries with undefined symbols to be built.
16021allow_undefined_flag=$lt_allow_undefined_flag_F77
16022
16023# Flag that forces no undefined symbols.
16024no_undefined_flag=$lt_no_undefined_flag_F77
16025
16026# Commands used to finish a libtool library installation in a directory.
16027finish_cmds=$lt_finish_cmds
16028
16029# Same as above, but a single script fragment to be evaled but not shown.
16030finish_eval=$lt_finish_eval
16031
16032# Take the output of nm and produce a listing of raw symbols and C names.
16033global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16034
16035# Transform the output of nm in a proper C declaration
16036global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16037
16038# Transform the output of nm in a C name address pair
16039global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16040
16041# This is the shared library runtime path variable.
16042runpath_var=$runpath_var
16043
16044# This is the shared library path variable.
16045shlibpath_var=$shlibpath_var
16046
16047# Is shlibpath searched before the hard-coded library search path?
16048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16049
16050# How to hardcode a shared library path into an executable.
16051hardcode_action=$hardcode_action_F77
16052
16053# Whether we should hardcode library paths into libraries.
16054hardcode_into_libs=$hardcode_into_libs
16055
16056# Flag to hardcode \$libdir into a binary during linking.
16057# This must work even if \$libdir does not exist.
16058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16059
16060# If ld is used when linking, flag to hardcode \$libdir into
16061# a binary during linking. This must work even if \$libdir does
16062# not exist.
16063hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16064
16065# Whether we need a single -rpath flag with a separated argument.
16066hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16067
16068# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16069# resulting binary.
16070hardcode_direct=$hardcode_direct_F77
16071
16072# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16073# resulting binary.
16074hardcode_minus_L=$hardcode_minus_L_F77
16075
16076# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16077# the resulting binary.
16078hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16079
16080# Set to yes if building a shared library automatically hardcodes DIR into the library
16081# and all subsequent libraries and executables linked against it.
16082hardcode_automatic=$hardcode_automatic_F77
16083
16084# Variables whose values should be saved in libtool wrapper scripts and
16085# restored at relink time.
16086variables_saved_for_relink="$variables_saved_for_relink"
16087
16088# Whether libtool must link a program against all its dependency libraries.
16089link_all_deplibs=$link_all_deplibs_F77
16090
16091# Compile-time system search path for libraries
16092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16093
16094# Run-time system search path for libraries
16095sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16096
16097# Fix the shell variable \$srcfile for the compiler.
16098fix_srcfile_path="$fix_srcfile_path_F77"
16099
16100# Set to yes if exported symbols are required.
16101always_export_symbols=$always_export_symbols_F77
16102
16103# The commands to list exported symbols.
16104export_symbols_cmds=$lt_export_symbols_cmds_F77
16105
16106# The commands to extract the exported symbol list from a shared archive.
16107extract_expsyms_cmds=$lt_extract_expsyms_cmds
16108
16109# Symbols that should not be listed in the preloaded symbols.
16110exclude_expsyms=$lt_exclude_expsyms_F77
16111
16112# Symbols that must always be exported.
16113include_expsyms=$lt_include_expsyms_F77
16114
16115# ### END LIBTOOL TAG CONFIG: $tagname
16116
16117__EOF__
16118
16119
16120else
16121  # If there is no Makefile yet, we rely on a make rule to execute
16122  # `config.status --recheck' to rerun these tests and create the
16123  # libtool script then.
16124  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16125  if test -f "$ltmain_in"; then
16126    test -f Makefile && make "$ltmain"
16127  fi
16128fi
16129
16130
16131ac_ext=c
16132ac_cpp='$CPP $CPPFLAGS'
16133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135ac_compiler_gnu=$ac_cv_c_compiler_gnu
16136
16137CC="$lt_save_CC"
16138
16139	else
16140	  tagname=""
16141	fi
16142	;;
16143
16144      GCJ)
16145	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16146
16147
16148
16149# Source file extension for Java test sources.
16150ac_ext=java
16151
16152# Object file extension for compiled Java test sources.
16153objext=o
16154objext_GCJ=$objext
16155
16156# Code to be used in simple compile tests
16157lt_simple_compile_test_code="class foo {}\n"
16158
16159# Code to be used in simple link tests
16160lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16161
16162# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16163
16164# If no C compiler was specified, use CC.
16165LTCC=${LTCC-"$CC"}
16166
16167# Allow CC to be a program name with arguments.
16168compiler=$CC
16169
16170
16171# save warnings/boilerplate of simple test code
16172ac_outfile=conftest.$ac_objext
16173printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16174eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16175_lt_compiler_boilerplate=`cat conftest.err`
16176$rm conftest*
16177
16178ac_outfile=conftest.$ac_objext
16179printf "$lt_simple_link_test_code" >conftest.$ac_ext
16180eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16181_lt_linker_boilerplate=`cat conftest.err`
16182$rm conftest*
16183
16184
16185# Allow CC to be a program name with arguments.
16186lt_save_CC="$CC"
16187CC=${GCJ-"gcj"}
16188compiler=$CC
16189compiler_GCJ=$CC
16190for cc_temp in $compiler""; do
16191  case $cc_temp in
16192    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16193    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16194    \-*) ;;
16195    *) break;;
16196  esac
16197done
16198cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16199
16200
16201# GCJ did not exist at the time GCC didn't implicitly link libc in.
16202archive_cmds_need_lc_GCJ=no
16203
16204old_archive_cmds_GCJ=$old_archive_cmds
16205
16206
16207lt_prog_compiler_no_builtin_flag_GCJ=
16208
16209if test "$GCC" = yes; then
16210  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16211
16212
16213echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16214echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16215if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16216  echo $ECHO_N "(cached) $ECHO_C" >&6
16217else
16218  lt_cv_prog_compiler_rtti_exceptions=no
16219  ac_outfile=conftest.$ac_objext
16220   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16221   lt_compiler_flag="-fno-rtti -fno-exceptions"
16222   # Insert the option either (1) after the last *FLAGS variable, or
16223   # (2) before a word containing "conftest.", or (3) at the end.
16224   # Note that $ac_compile itself does not contain backslashes and begins
16225   # with a dollar sign (not a hyphen), so the echo should work correctly.
16226   # The option is referenced via a variable to avoid confusing sed.
16227   lt_compile=`echo "$ac_compile" | $SED \
16228   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16229   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16230   -e 's:$: $lt_compiler_flag:'`
16231   (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16232   (eval "$lt_compile" 2>conftest.err)
16233   ac_status=$?
16234   cat conftest.err >&5
16235   echo "$as_me:16483: \$? = $ac_status" >&5
16236   if (exit $ac_status) && test -s "$ac_outfile"; then
16237     # The compiler can only warn and ignore the option if not recognized
16238     # So say no if there are warnings other than the usual output.
16239     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16240     $SED '/^$/d' conftest.err >conftest.er2
16241     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16242       lt_cv_prog_compiler_rtti_exceptions=yes
16243     fi
16244   fi
16245   $rm conftest*
16246
16247fi
16248echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16249echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16250
16251if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16252    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16253else
16254    :
16255fi
16256
16257fi
16258
16259lt_prog_compiler_wl_GCJ=
16260lt_prog_compiler_pic_GCJ=
16261lt_prog_compiler_static_GCJ=
16262
16263echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16264echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16265
16266  if test "$GCC" = yes; then
16267    lt_prog_compiler_wl_GCJ='-Wl,'
16268    lt_prog_compiler_static_GCJ='-static'
16269
16270    case $host_os in
16271      aix*)
16272      # All AIX code is PIC.
16273      if test "$host_cpu" = ia64; then
16274	# AIX 5 now supports IA64 processor
16275	lt_prog_compiler_static_GCJ='-Bstatic'
16276      fi
16277      ;;
16278
16279    amigaos*)
16280      # FIXME: we need at least 68020 code to build shared libraries, but
16281      # adding the `-m68020' flag to GCC prevents building anything better,
16282      # like `-m68040'.
16283      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16284      ;;
16285
16286    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16287      # PIC is the default for these OSes.
16288      ;;
16289
16290    mingw* | pw32* | os2*)
16291      # This hack is so that the source file can tell whether it is being
16292      # built for inclusion in a dll (and should export symbols for example).
16293      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16294      ;;
16295
16296    darwin* | rhapsody*)
16297      # PIC is the default on this platform
16298      # Common symbols not allowed in MH_DYLIB files
16299      lt_prog_compiler_pic_GCJ='-fno-common'
16300      ;;
16301
16302    msdosdjgpp*)
16303      # Just because we use GCC doesn't mean we suddenly get shared libraries
16304      # on systems that don't support them.
16305      lt_prog_compiler_can_build_shared_GCJ=no
16306      enable_shared=no
16307      ;;
16308
16309    sysv4*MP*)
16310      if test -d /usr/nec; then
16311	lt_prog_compiler_pic_GCJ=-Kconform_pic
16312      fi
16313      ;;
16314
16315    hpux*)
16316      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16317      # not for PA HP-UX.
16318      case $host_cpu in
16319      hppa*64*|ia64*)
16320	# +Z the default
16321	;;
16322      *)
16323	lt_prog_compiler_pic_GCJ='-fPIC'
16324	;;
16325      esac
16326      ;;
16327
16328    *)
16329      lt_prog_compiler_pic_GCJ='-fPIC'
16330      ;;
16331    esac
16332  else
16333    # PORTME Check for flag to pass linker flags through the system compiler.
16334    case $host_os in
16335    aix*)
16336      lt_prog_compiler_wl_GCJ='-Wl,'
16337      if test "$host_cpu" = ia64; then
16338	# AIX 5 now supports IA64 processor
16339	lt_prog_compiler_static_GCJ='-Bstatic'
16340      else
16341	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16342      fi
16343      ;;
16344      darwin*)
16345        # PIC is the default on this platform
16346        # Common symbols not allowed in MH_DYLIB files
16347       case $cc_basename in
16348         xlc*)
16349         lt_prog_compiler_pic_GCJ='-qnocommon'
16350         lt_prog_compiler_wl_GCJ='-Wl,'
16351         ;;
16352       esac
16353       ;;
16354
16355    mingw* | pw32* | os2*)
16356      # This hack is so that the source file can tell whether it is being
16357      # built for inclusion in a dll (and should export symbols for example).
16358      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16359      ;;
16360
16361    hpux9* | hpux10* | hpux11*)
16362      lt_prog_compiler_wl_GCJ='-Wl,'
16363      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16364      # not for PA HP-UX.
16365      case $host_cpu in
16366      hppa*64*|ia64*)
16367	# +Z the default
16368	;;
16369      *)
16370	lt_prog_compiler_pic_GCJ='+Z'
16371	;;
16372      esac
16373      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16374      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16375      ;;
16376
16377    irix5* | irix6* | nonstopux*)
16378      lt_prog_compiler_wl_GCJ='-Wl,'
16379      # PIC (with -KPIC) is the default.
16380      lt_prog_compiler_static_GCJ='-non_shared'
16381      ;;
16382
16383    newsos6)
16384      lt_prog_compiler_pic_GCJ='-KPIC'
16385      lt_prog_compiler_static_GCJ='-Bstatic'
16386      ;;
16387
16388    linux*)
16389      case $cc_basename in
16390      icc* | ecc*)
16391	lt_prog_compiler_wl_GCJ='-Wl,'
16392	lt_prog_compiler_pic_GCJ='-KPIC'
16393	lt_prog_compiler_static_GCJ='-static'
16394        ;;
16395      pgcc* | pgf77* | pgf90* | pgf95*)
16396        # Portland Group compilers (*not* the Pentium gcc compiler,
16397	# which looks to be a dead project)
16398	lt_prog_compiler_wl_GCJ='-Wl,'
16399	lt_prog_compiler_pic_GCJ='-fpic'
16400	lt_prog_compiler_static_GCJ='-Bstatic'
16401        ;;
16402      ccc*)
16403        lt_prog_compiler_wl_GCJ='-Wl,'
16404        # All Alpha code is PIC.
16405        lt_prog_compiler_static_GCJ='-non_shared'
16406        ;;
16407      esac
16408      ;;
16409
16410    osf3* | osf4* | osf5*)
16411      lt_prog_compiler_wl_GCJ='-Wl,'
16412      # All OSF/1 code is PIC.
16413      lt_prog_compiler_static_GCJ='-non_shared'
16414      ;;
16415
16416    sco3.2v5*)
16417      lt_prog_compiler_pic_GCJ='-Kpic'
16418      lt_prog_compiler_static_GCJ='-dn'
16419      ;;
16420
16421    solaris*)
16422      lt_prog_compiler_pic_GCJ='-KPIC'
16423      lt_prog_compiler_static_GCJ='-Bstatic'
16424      case $cc_basename in
16425      f77* | f90* | f95*)
16426	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16427      *)
16428	lt_prog_compiler_wl_GCJ='-Wl,';;
16429      esac
16430      ;;
16431
16432    sunos4*)
16433      lt_prog_compiler_wl_GCJ='-Qoption ld '
16434      lt_prog_compiler_pic_GCJ='-PIC'
16435      lt_prog_compiler_static_GCJ='-Bstatic'
16436      ;;
16437
16438    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16439      lt_prog_compiler_wl_GCJ='-Wl,'
16440      lt_prog_compiler_pic_GCJ='-KPIC'
16441      lt_prog_compiler_static_GCJ='-Bstatic'
16442      ;;
16443
16444    sysv4*MP*)
16445      if test -d /usr/nec ;then
16446	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16447	lt_prog_compiler_static_GCJ='-Bstatic'
16448      fi
16449      ;;
16450
16451    unicos*)
16452      lt_prog_compiler_wl_GCJ='-Wl,'
16453      lt_prog_compiler_can_build_shared_GCJ=no
16454      ;;
16455
16456    uts4*)
16457      lt_prog_compiler_pic_GCJ='-pic'
16458      lt_prog_compiler_static_GCJ='-Bstatic'
16459      ;;
16460
16461    *)
16462      lt_prog_compiler_can_build_shared_GCJ=no
16463      ;;
16464    esac
16465  fi
16466
16467echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16468echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16469
16470#
16471# Check to make sure the PIC flag actually works.
16472#
16473if test -n "$lt_prog_compiler_pic_GCJ"; then
16474
16475echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16476echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16477if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16478  echo $ECHO_N "(cached) $ECHO_C" >&6
16479else
16480  lt_prog_compiler_pic_works_GCJ=no
16481  ac_outfile=conftest.$ac_objext
16482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16483   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16484   # Insert the option either (1) after the last *FLAGS variable, or
16485   # (2) before a word containing "conftest.", or (3) at the end.
16486   # Note that $ac_compile itself does not contain backslashes and begins
16487   # with a dollar sign (not a hyphen), so the echo should work correctly.
16488   # The option is referenced via a variable to avoid confusing sed.
16489   lt_compile=`echo "$ac_compile" | $SED \
16490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16492   -e 's:$: $lt_compiler_flag:'`
16493   (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
16494   (eval "$lt_compile" 2>conftest.err)
16495   ac_status=$?
16496   cat conftest.err >&5
16497   echo "$as_me:16745: \$? = $ac_status" >&5
16498   if (exit $ac_status) && test -s "$ac_outfile"; then
16499     # The compiler can only warn and ignore the option if not recognized
16500     # So say no if there are warnings other than the usual output.
16501     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16502     $SED '/^$/d' conftest.err >conftest.er2
16503     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16504       lt_prog_compiler_pic_works_GCJ=yes
16505     fi
16506   fi
16507   $rm conftest*
16508
16509fi
16510echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16511echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16512
16513if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16514    case $lt_prog_compiler_pic_GCJ in
16515     "" | " "*) ;;
16516     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16517     esac
16518else
16519    lt_prog_compiler_pic_GCJ=
16520     lt_prog_compiler_can_build_shared_GCJ=no
16521fi
16522
16523fi
16524case $host_os in
16525  # For platforms which do not support PIC, -DPIC is meaningless:
16526  *djgpp*)
16527    lt_prog_compiler_pic_GCJ=
16528    ;;
16529  *)
16530    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16531    ;;
16532esac
16533
16534echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16535echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16536if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16537  echo $ECHO_N "(cached) $ECHO_C" >&6
16538else
16539  lt_cv_prog_compiler_c_o_GCJ=no
16540   $rm -r conftest 2>/dev/null
16541   mkdir conftest
16542   cd conftest
16543   mkdir out
16544   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16545
16546   lt_compiler_flag="-o out/conftest2.$ac_objext"
16547   # Insert the option either (1) after the last *FLAGS variable, or
16548   # (2) before a word containing "conftest.", or (3) at the end.
16549   # Note that $ac_compile itself does not contain backslashes and begins
16550   # with a dollar sign (not a hyphen), so the echo should work correctly.
16551   lt_compile=`echo "$ac_compile" | $SED \
16552   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16553   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16554   -e 's:$: $lt_compiler_flag:'`
16555   (eval echo "\"\$as_me:16803: $lt_compile\"" >&5)
16556   (eval "$lt_compile" 2>out/conftest.err)
16557   ac_status=$?
16558   cat out/conftest.err >&5
16559   echo "$as_me:16807: \$? = $ac_status" >&5
16560   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16561   then
16562     # The compiler can only warn and ignore the option if not recognized
16563     # So say no if there are warnings
16564     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16565     $SED '/^$/d' out/conftest.err >out/conftest.er2
16566     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16567       lt_cv_prog_compiler_c_o_GCJ=yes
16568     fi
16569   fi
16570   chmod u+w . 2>&5
16571   $rm conftest*
16572   # SGI C++ compiler will create directory out/ii_files/ for
16573   # template instantiation
16574   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16575   $rm out/* && rmdir out
16576   cd ..
16577   rmdir conftest
16578   $rm conftest*
16579
16580fi
16581echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16582echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16583
16584
16585hard_links="nottested"
16586if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16587  # do not overwrite the value of need_locks provided by the user
16588  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16589echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16590  hard_links=yes
16591  $rm conftest*
16592  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16593  touch conftest.a
16594  ln conftest.a conftest.b 2>&5 || hard_links=no
16595  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16596  echo "$as_me:$LINENO: result: $hard_links" >&5
16597echo "${ECHO_T}$hard_links" >&6
16598  if test "$hard_links" = no; then
16599    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16600echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16601    need_locks=warn
16602  fi
16603else
16604  need_locks=no
16605fi
16606
16607echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16608echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16609
16610  runpath_var=
16611  allow_undefined_flag_GCJ=
16612  enable_shared_with_static_runtimes_GCJ=no
16613  archive_cmds_GCJ=
16614  archive_expsym_cmds_GCJ=
16615  old_archive_From_new_cmds_GCJ=
16616  old_archive_from_expsyms_cmds_GCJ=
16617  export_dynamic_flag_spec_GCJ=
16618  whole_archive_flag_spec_GCJ=
16619  thread_safe_flag_spec_GCJ=
16620  hardcode_libdir_flag_spec_GCJ=
16621  hardcode_libdir_flag_spec_ld_GCJ=
16622  hardcode_libdir_separator_GCJ=
16623  hardcode_direct_GCJ=no
16624  hardcode_minus_L_GCJ=no
16625  hardcode_shlibpath_var_GCJ=unsupported
16626  link_all_deplibs_GCJ=unknown
16627  hardcode_automatic_GCJ=no
16628  module_cmds_GCJ=
16629  module_expsym_cmds_GCJ=
16630  always_export_symbols_GCJ=no
16631  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16632  # include_expsyms should be a list of space-separated symbols to be *always*
16633  # included in the symbol list
16634  include_expsyms_GCJ=
16635  # exclude_expsyms can be an extended regexp of symbols to exclude
16636  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16637  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16638  # as well as any symbol that contains `d'.
16639  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16640  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16641  # platforms (ab)use it in PIC code, but their linkers get confused if
16642  # the symbol is explicitly referenced.  Since portable code cannot
16643  # rely on this symbol name, it's probably fine to never include it in
16644  # preloaded symbol tables.
16645  extract_expsyms_cmds=
16646  # Just being paranoid about ensuring that cc_basename is set.
16647  for cc_temp in $compiler""; do
16648  case $cc_temp in
16649    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16650    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16651    \-*) ;;
16652    *) break;;
16653  esac
16654done
16655cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16656
16657  case $host_os in
16658  cygwin* | mingw* | pw32*)
16659    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16660    # When not using gcc, we currently assume that we are using
16661    # Microsoft Visual C++.
16662    if test "$GCC" != yes; then
16663      with_gnu_ld=no
16664    fi
16665    ;;
16666  openbsd*)
16667    with_gnu_ld=no
16668    ;;
16669  esac
16670
16671  ld_shlibs_GCJ=yes
16672  if test "$with_gnu_ld" = yes; then
16673    # If archive_cmds runs LD, not CC, wlarc should be empty
16674    wlarc='${wl}'
16675
16676    # Set some defaults for GNU ld with shared library support. These
16677    # are reset later if shared libraries are not supported. Putting them
16678    # here allows them to be overridden if necessary.
16679    runpath_var=LD_RUN_PATH
16680    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16681    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16682    # ancient GNU ld didn't support --whole-archive et. al.
16683    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16684	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16685      else
16686  	whole_archive_flag_spec_GCJ=
16687    fi
16688    supports_anon_versioning=no
16689    case `$LD -v 2>/dev/null` in
16690      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16691      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16692      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16693      *\ 2.11.*) ;; # other 2.11 versions
16694      *) supports_anon_versioning=yes ;;
16695    esac
16696
16697    # See if GNU ld supports shared libraries.
16698    case $host_os in
16699    aix3* | aix4* | aix5*)
16700      # On AIX/PPC, the GNU linker is very broken
16701      if test "$host_cpu" != ia64; then
16702	ld_shlibs_GCJ=no
16703	cat <<EOF 1>&2
16704
16705*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16706*** to be unable to reliably create shared libraries on AIX.
16707*** Therefore, libtool is disabling shared libraries support.  If you
16708*** really care for shared libraries, you may want to modify your PATH
16709*** so that a non-GNU linker is found, and then restart.
16710
16711EOF
16712      fi
16713      ;;
16714
16715    amigaos*)
16716      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)'
16717      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16718      hardcode_minus_L_GCJ=yes
16719
16720      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16721      # that the semantics of dynamic libraries on AmigaOS, at least up
16722      # to version 4, is to share data among multiple programs linked
16723      # with the same dynamic library.  Since this doesn't match the
16724      # behavior of shared libraries on other platforms, we can't use
16725      # them.
16726      ld_shlibs_GCJ=no
16727      ;;
16728
16729    beos*)
16730      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16731	allow_undefined_flag_GCJ=unsupported
16732	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16733	# support --undefined.  This deserves some investigation.  FIXME
16734	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16735      else
16736	ld_shlibs_GCJ=no
16737      fi
16738      ;;
16739
16740    cygwin* | mingw* | pw32*)
16741      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16742      # as there is no search path for DLLs.
16743      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16744      allow_undefined_flag_GCJ=unsupported
16745      always_export_symbols_GCJ=no
16746      enable_shared_with_static_runtimes_GCJ=yes
16747      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16748
16749      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16750        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16751	# If the export-symbols file already is a .def file (1st line
16752	# is EXPORTS), use it as is; otherwise, prepend...
16753	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16754	  cp $export_symbols $output_objdir/$soname.def;
16755	else
16756	  echo EXPORTS > $output_objdir/$soname.def;
16757	  cat $export_symbols >> $output_objdir/$soname.def;
16758	fi~
16759	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16760      else
16761	ld_shlibs_GCJ=no
16762      fi
16763      ;;
16764
16765    linux*)
16766      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16767	tmp_addflag=
16768	case $cc_basename,$host_cpu in
16769	pgcc*)				# Portland Group C compiler
16770	  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'
16771	  tmp_addflag=' $pic_flag'
16772	  ;;
16773	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16774	  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'
16775	  tmp_addflag=' $pic_flag -Mnomain' ;;
16776	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16777	  tmp_addflag=' -i_dynamic' ;;
16778	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16779	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16780	ifc* | ifort*)			# Intel Fortran compiler
16781	  tmp_addflag=' -nofor_main' ;;
16782	esac
16783	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16784
16785	if test $supports_anon_versioning = yes; then
16786	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16787  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16788  $echo "local: *; };" >> $output_objdir/$libname.ver~
16789	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16790	fi
16791      else
16792	ld_shlibs_GCJ=no
16793      fi
16794      ;;
16795
16796    netbsd*)
16797      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16798	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16799	wlarc=
16800      else
16801	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16803      fi
16804      ;;
16805
16806    solaris* | sysv5*)
16807      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16808	ld_shlibs_GCJ=no
16809	cat <<EOF 1>&2
16810
16811*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16812*** create shared libraries on Solaris systems.  Therefore, libtool
16813*** is disabling shared libraries support.  We urge you to upgrade GNU
16814*** binutils to release 2.9.1 or newer.  Another option is to modify
16815*** your PATH or compiler configuration so that the native linker is
16816*** used, and then restart.
16817
16818EOF
16819      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16820	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16821	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16822      else
16823	ld_shlibs_GCJ=no
16824      fi
16825      ;;
16826
16827    sunos4*)
16828      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16829      wlarc=
16830      hardcode_direct_GCJ=yes
16831      hardcode_shlibpath_var_GCJ=no
16832      ;;
16833
16834    *)
16835      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16836	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16837	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16838      else
16839	ld_shlibs_GCJ=no
16840      fi
16841      ;;
16842    esac
16843
16844    if test "$ld_shlibs_GCJ" = no; then
16845      runpath_var=
16846      hardcode_libdir_flag_spec_GCJ=
16847      export_dynamic_flag_spec_GCJ=
16848      whole_archive_flag_spec_GCJ=
16849    fi
16850  else
16851    # PORTME fill in a description of your system's linker (not GNU ld)
16852    case $host_os in
16853    aix3*)
16854      allow_undefined_flag_GCJ=unsupported
16855      always_export_symbols_GCJ=yes
16856      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'
16857      # Note: this linker hardcodes the directories in LIBPATH if there
16858      # are no directories specified by -L.
16859      hardcode_minus_L_GCJ=yes
16860      if test "$GCC" = yes && test -z "$link_static_flag"; then
16861	# Neither direct hardcoding nor static linking is supported with a
16862	# broken collect2.
16863	hardcode_direct_GCJ=unsupported
16864      fi
16865      ;;
16866
16867    aix4* | aix5*)
16868      if test "$host_cpu" = ia64; then
16869	# On IA64, the linker does run time linking by default, so we don't
16870	# have to do anything special.
16871	aix_use_runtimelinking=no
16872	exp_sym_flag='-Bexport'
16873	no_entry_flag=""
16874      else
16875	# If we're using GNU nm, then we don't want the "-C" option.
16876	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16877	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16878	  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'
16879	else
16880	  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'
16881	fi
16882	aix_use_runtimelinking=no
16883
16884	# Test if we are trying to use run time linking or normal
16885	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16886	# need to do runtime linking.
16887	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16888	  for ld_flag in $LDFLAGS; do
16889  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16890  	    aix_use_runtimelinking=yes
16891  	    break
16892  	  fi
16893	  done
16894	esac
16895
16896	exp_sym_flag='-bexport'
16897	no_entry_flag='-bnoentry'
16898      fi
16899
16900      # When large executables or shared objects are built, AIX ld can
16901      # have problems creating the table of contents.  If linking a library
16902      # or program results in "error TOC overflow" add -mminimal-toc to
16903      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16904      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16905
16906      archive_cmds_GCJ=''
16907      hardcode_direct_GCJ=yes
16908      hardcode_libdir_separator_GCJ=':'
16909      link_all_deplibs_GCJ=yes
16910
16911      if test "$GCC" = yes; then
16912	case $host_os in aix4.[012]|aix4.[012].*)
16913	# We only want to do this on AIX 4.2 and lower, the check
16914	# below for broken collect2 doesn't work under 4.3+
16915	  collect2name=`${CC} -print-prog-name=collect2`
16916	  if test -f "$collect2name" && \
16917  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16918	  then
16919  	  # We have reworked collect2
16920  	  hardcode_direct_GCJ=yes
16921	  else
16922  	  # We have old collect2
16923  	  hardcode_direct_GCJ=unsupported
16924  	  # It fails to find uninstalled libraries when the uninstalled
16925  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16926  	  # to unsupported forces relinking
16927  	  hardcode_minus_L_GCJ=yes
16928  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16929  	  hardcode_libdir_separator_GCJ=
16930	  fi
16931	esac
16932	shared_flag='-shared'
16933	if test "$aix_use_runtimelinking" = yes; then
16934	  shared_flag="$shared_flag "'${wl}-G'
16935	fi
16936      else
16937	# not using gcc
16938	if test "$host_cpu" = ia64; then
16939  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16940  	# chokes on -Wl,-G. The following line is correct:
16941	  shared_flag='-G'
16942	else
16943  	if test "$aix_use_runtimelinking" = yes; then
16944	    shared_flag='${wl}-G'
16945	  else
16946	    shared_flag='${wl}-bM:SRE'
16947  	fi
16948	fi
16949      fi
16950
16951      # It seems that -bexpall does not export symbols beginning with
16952      # underscore (_), so it is better to generate a list of symbols to export.
16953      always_export_symbols_GCJ=yes
16954      if test "$aix_use_runtimelinking" = yes; then
16955	# Warning - without using the other runtime loading flags (-brtl),
16956	# -berok will link without error, but may produce a broken library.
16957	allow_undefined_flag_GCJ='-berok'
16958       # Determine the default libpath from the value encoded in an empty executable.
16959       cat >conftest.$ac_ext <<_ACEOF
16960/* confdefs.h.  */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h.  */
16965
16966int
16967main ()
16968{
16969
16970  ;
16971  return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext conftest$ac_exeext
16975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16976  (eval $ac_link) 2>conftest.er1
16977  ac_status=$?
16978  grep -v '^ *+' conftest.er1 >conftest.err
16979  rm -f conftest.er1
16980  cat conftest.err >&5
16981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982  (exit $ac_status); } &&
16983	 { ac_try='test -z "$ac_c_werror_flag"
16984			 || test ! -s conftest.err'
16985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986  (eval $ac_try) 2>&5
16987  ac_status=$?
16988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989  (exit $ac_status); }; } &&
16990	 { ac_try='test -s conftest$ac_exeext'
16991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992  (eval $ac_try) 2>&5
16993  ac_status=$?
16994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995  (exit $ac_status); }; }; then
16996
16997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16998}'`
16999# Check for a 64-bit object if we didn't find anything.
17000if 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; }
17001}'`; fi
17002else
17003  echo "$as_me: failed program was:" >&5
17004sed 's/^/| /' conftest.$ac_ext >&5
17005
17006fi
17007rm -f conftest.err conftest.$ac_objext \
17008      conftest$ac_exeext conftest.$ac_ext
17009if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17010
17011       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17012	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"
17013       else
17014	if test "$host_cpu" = ia64; then
17015	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17016	  allow_undefined_flag_GCJ="-z nodefs"
17017	  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"
17018	else
17019	 # Determine the default libpath from the value encoded in an empty executable.
17020	 cat >conftest.$ac_ext <<_ACEOF
17021/* confdefs.h.  */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h.  */
17026
17027int
17028main ()
17029{
17030
17031  ;
17032  return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext conftest$ac_exeext
17036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17037  (eval $ac_link) 2>conftest.er1
17038  ac_status=$?
17039  grep -v '^ *+' conftest.er1 >conftest.err
17040  rm -f conftest.er1
17041  cat conftest.err >&5
17042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043  (exit $ac_status); } &&
17044	 { ac_try='test -z "$ac_c_werror_flag"
17045			 || test ! -s conftest.err'
17046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047  (eval $ac_try) 2>&5
17048  ac_status=$?
17049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050  (exit $ac_status); }; } &&
17051	 { ac_try='test -s conftest$ac_exeext'
17052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053  (eval $ac_try) 2>&5
17054  ac_status=$?
17055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056  (exit $ac_status); }; }; then
17057
17058aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17059}'`
17060# Check for a 64-bit object if we didn't find anything.
17061if 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; }
17062}'`; fi
17063else
17064  echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067fi
17068rm -f conftest.err conftest.$ac_objext \
17069      conftest$ac_exeext conftest.$ac_ext
17070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17071
17072	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17073	  # Warning - without using the other run time loading flags,
17074	  # -berok will link without error, but may produce a broken library.
17075	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17076	  allow_undefined_flag_GCJ=' ${wl}-berok'
17077	  # -bexpall does not export symbols beginning with underscore (_)
17078	  always_export_symbols_GCJ=yes
17079	  # Exported symbols can be pulled into shared objects from archives
17080	  whole_archive_flag_spec_GCJ=' '
17081	  archive_cmds_need_lc_GCJ=yes
17082	  # This is similar to how AIX traditionally builds its shared libraries.
17083	  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'
17084	fi
17085      fi
17086      ;;
17087
17088    amigaos*)
17089      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)'
17090      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17091      hardcode_minus_L_GCJ=yes
17092      # see comment about different semantics on the GNU ld section
17093      ld_shlibs_GCJ=no
17094      ;;
17095
17096    bsdi[45]*)
17097      export_dynamic_flag_spec_GCJ=-rdynamic
17098      ;;
17099
17100    cygwin* | mingw* | pw32*)
17101      # When not using gcc, we currently assume that we are using
17102      # Microsoft Visual C++.
17103      # hardcode_libdir_flag_spec is actually meaningless, as there is
17104      # no search path for DLLs.
17105      hardcode_libdir_flag_spec_GCJ=' '
17106      allow_undefined_flag_GCJ=unsupported
17107      # Tell ltmain to make .lib files, not .a files.
17108      libext=lib
17109      # Tell ltmain to make .dll files, not .so files.
17110      shrext_cmds=".dll"
17111      # FIXME: Setting linknames here is a bad hack.
17112      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17113      # The linker will automatically build a .lib file if we build a DLL.
17114      old_archive_From_new_cmds_GCJ='true'
17115      # FIXME: Should let the user specify the lib program.
17116      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17117      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17118      enable_shared_with_static_runtimes_GCJ=yes
17119      ;;
17120
17121    darwin* | rhapsody*)
17122      case $host_os in
17123        rhapsody* | darwin1.[012])
17124         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17125         ;;
17126       *) # Darwin 1.3 on
17127         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17128           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17129         else
17130           case ${MACOSX_DEPLOYMENT_TARGET} in
17131             10.[012])
17132               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17133               ;;
17134             10.*)
17135               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17136               ;;
17137           esac
17138         fi
17139         ;;
17140      esac
17141      archive_cmds_need_lc_GCJ=no
17142      hardcode_direct_GCJ=no
17143      hardcode_automatic_GCJ=yes
17144      hardcode_shlibpath_var_GCJ=unsupported
17145      whole_archive_flag_spec_GCJ=''
17146      link_all_deplibs_GCJ=yes
17147    if test "$GCC" = yes ; then
17148    	output_verbose_link_cmd='echo'
17149        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17150      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17151      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17152      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}'
17153      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}'
17154    else
17155      case $cc_basename in
17156        xlc*)
17157         output_verbose_link_cmd='echo'
17158         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17159         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17160          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17161         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}'
17162          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}'
17163          ;;
17164       *)
17165         ld_shlibs_GCJ=no
17166          ;;
17167      esac
17168    fi
17169      ;;
17170
17171    dgux*)
17172      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17173      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17174      hardcode_shlibpath_var_GCJ=no
17175      ;;
17176
17177    freebsd1*)
17178      ld_shlibs_GCJ=no
17179      ;;
17180
17181    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17182    # support.  Future versions do this automatically, but an explicit c++rt0.o
17183    # does not break anything, and helps significantly (at the cost of a little
17184    # extra space).
17185    freebsd2.2*)
17186      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17187      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17188      hardcode_direct_GCJ=yes
17189      hardcode_shlibpath_var_GCJ=no
17190      ;;
17191
17192    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17193    freebsd2*)
17194      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17195      hardcode_direct_GCJ=yes
17196      hardcode_minus_L_GCJ=yes
17197      hardcode_shlibpath_var_GCJ=no
17198      ;;
17199
17200    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17201    freebsd* | kfreebsd*-gnu | dragonfly*)
17202      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17203      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17204      hardcode_direct_GCJ=yes
17205      hardcode_shlibpath_var_GCJ=no
17206      ;;
17207
17208    hpux9*)
17209      if test "$GCC" = yes; then
17210	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'
17211      else
17212	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'
17213      fi
17214      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17215      hardcode_libdir_separator_GCJ=:
17216      hardcode_direct_GCJ=yes
17217
17218      # hardcode_minus_L: Not really in the search PATH,
17219      # but as the default location of the library.
17220      hardcode_minus_L_GCJ=yes
17221      export_dynamic_flag_spec_GCJ='${wl}-E'
17222      ;;
17223
17224    hpux10* | hpux11*)
17225      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17226	case $host_cpu in
17227	hppa*64*|ia64*)
17228	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17229	  ;;
17230	*)
17231	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17232	  ;;
17233	esac
17234      else
17235	case $host_cpu in
17236	hppa*64*|ia64*)
17237	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17238	  ;;
17239	*)
17240	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17241	  ;;
17242	esac
17243      fi
17244      if test "$with_gnu_ld" = no; then
17245	case $host_cpu in
17246	hppa*64*)
17247	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17248	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17249	  hardcode_libdir_separator_GCJ=:
17250	  hardcode_direct_GCJ=no
17251	  hardcode_shlibpath_var_GCJ=no
17252	  ;;
17253	ia64*)
17254	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17255	  hardcode_direct_GCJ=no
17256	  hardcode_shlibpath_var_GCJ=no
17257
17258	  # hardcode_minus_L: Not really in the search PATH,
17259	  # but as the default location of the library.
17260	  hardcode_minus_L_GCJ=yes
17261	  ;;
17262	*)
17263	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17264	  hardcode_libdir_separator_GCJ=:
17265	  hardcode_direct_GCJ=yes
17266	  export_dynamic_flag_spec_GCJ='${wl}-E'
17267
17268	  # hardcode_minus_L: Not really in the search PATH,
17269	  # but as the default location of the library.
17270	  hardcode_minus_L_GCJ=yes
17271	  ;;
17272	esac
17273      fi
17274      ;;
17275
17276    irix5* | irix6* | nonstopux*)
17277      if test "$GCC" = yes; then
17278	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'
17279      else
17280	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'
17281	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17282      fi
17283      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17284      hardcode_libdir_separator_GCJ=:
17285      link_all_deplibs_GCJ=yes
17286      ;;
17287
17288    netbsd*)
17289      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17290	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17291      else
17292	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17293      fi
17294      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17295      hardcode_direct_GCJ=yes
17296      hardcode_shlibpath_var_GCJ=no
17297      ;;
17298
17299    newsos6)
17300      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17301      hardcode_direct_GCJ=yes
17302      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17303      hardcode_libdir_separator_GCJ=:
17304      hardcode_shlibpath_var_GCJ=no
17305      ;;
17306
17307    openbsd*)
17308      hardcode_direct_GCJ=yes
17309      hardcode_shlibpath_var_GCJ=no
17310      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17311	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17312	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17313	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17314	export_dynamic_flag_spec_GCJ='${wl}-E'
17315      else
17316       case $host_os in
17317	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17318	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17319	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17320	   ;;
17321	 *)
17322	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17323	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17324	   ;;
17325       esac
17326      fi
17327      ;;
17328
17329    os2*)
17330      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17331      hardcode_minus_L_GCJ=yes
17332      allow_undefined_flag_GCJ=unsupported
17333      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'
17334      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17335      ;;
17336
17337    osf3*)
17338      if test "$GCC" = yes; then
17339	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17340	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'
17341      else
17342	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17343	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'
17344      fi
17345      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17346      hardcode_libdir_separator_GCJ=:
17347      ;;
17348
17349    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17350      if test "$GCC" = yes; then
17351	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17352	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'
17353	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17354      else
17355	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17356	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'
17357	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~
17358	$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'
17359
17360	# Both c and cxx compiler support -rpath directly
17361	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17362      fi
17363      hardcode_libdir_separator_GCJ=:
17364      ;;
17365
17366    sco3.2v5*)
17367      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17368      hardcode_shlibpath_var_GCJ=no
17369      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17370      runpath_var=LD_RUN_PATH
17371      hardcode_runpath_var=yes
17372      ;;
17373
17374    solaris*)
17375      no_undefined_flag_GCJ=' -z text'
17376      if test "$GCC" = yes; then
17377	wlarc='${wl}'
17378	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17379	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17380	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17381      else
17382	wlarc=''
17383	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17384	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17385  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17386      fi
17387      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17388      hardcode_shlibpath_var_GCJ=no
17389      case $host_os in
17390      solaris2.[0-5] | solaris2.[0-5].*) ;;
17391      *)
17392 	# The compiler driver will combine linker options so we
17393 	# cannot just pass the convience library names through
17394 	# without $wl, iff we do not link with $LD.
17395 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17396 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17397 	case $wlarc in
17398 	'')
17399 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17400 	*)
17401 	  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' ;;
17402 	esac ;;
17403      esac
17404      link_all_deplibs_GCJ=yes
17405      ;;
17406
17407    sunos4*)
17408      if test "x$host_vendor" = xsequent; then
17409	# Use $CC to link under sequent, because it throws in some extra .o
17410	# files that make .init and .fini sections work.
17411	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17412      else
17413	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17414      fi
17415      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17416      hardcode_direct_GCJ=yes
17417      hardcode_minus_L_GCJ=yes
17418      hardcode_shlibpath_var_GCJ=no
17419      ;;
17420
17421    sysv4)
17422      case $host_vendor in
17423	sni)
17424	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17425	  hardcode_direct_GCJ=yes # is this really true???
17426	;;
17427	siemens)
17428	  ## LD is ld it makes a PLAMLIB
17429	  ## CC just makes a GrossModule.
17430	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17431	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17432	  hardcode_direct_GCJ=no
17433        ;;
17434	motorola)
17435	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17436	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17437	;;
17438      esac
17439      runpath_var='LD_RUN_PATH'
17440      hardcode_shlibpath_var_GCJ=no
17441      ;;
17442
17443    sysv4.3*)
17444      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445      hardcode_shlibpath_var_GCJ=no
17446      export_dynamic_flag_spec_GCJ='-Bexport'
17447      ;;
17448
17449    sysv4*MP*)
17450      if test -d /usr/nec; then
17451	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452	hardcode_shlibpath_var_GCJ=no
17453	runpath_var=LD_RUN_PATH
17454	hardcode_runpath_var=yes
17455	ld_shlibs_GCJ=yes
17456      fi
17457      ;;
17458
17459    sysv4.2uw2*)
17460      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17461      hardcode_direct_GCJ=yes
17462      hardcode_minus_L_GCJ=no
17463      hardcode_shlibpath_var_GCJ=no
17464      hardcode_runpath_var=yes
17465      runpath_var=LD_RUN_PATH
17466      ;;
17467
17468   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17469      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17470      if test "$GCC" = yes; then
17471	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472      else
17473	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17474      fi
17475      runpath_var='LD_RUN_PATH'
17476      hardcode_shlibpath_var_GCJ=no
17477      ;;
17478
17479    sysv5*)
17480      no_undefined_flag_GCJ=' -z text'
17481      # $CC -shared without GNU ld will not create a library from C++
17482      # object files and a static libstdc++, better avoid it by now
17483      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17484      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17485  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17486      hardcode_libdir_flag_spec_GCJ=
17487      hardcode_shlibpath_var_GCJ=no
17488      runpath_var='LD_RUN_PATH'
17489      ;;
17490
17491    uts4*)
17492      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17493      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17494      hardcode_shlibpath_var_GCJ=no
17495      ;;
17496
17497    *)
17498      ld_shlibs_GCJ=no
17499      ;;
17500    esac
17501  fi
17502
17503echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17504echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17505test "$ld_shlibs_GCJ" = no && can_build_shared=no
17506
17507variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17508if test "$GCC" = yes; then
17509  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17510fi
17511
17512#
17513# Do we need to explicitly link libc?
17514#
17515case "x$archive_cmds_need_lc_GCJ" in
17516x|xyes)
17517  # Assume -lc should be added
17518  archive_cmds_need_lc_GCJ=yes
17519
17520  if test "$enable_shared" = yes && test "$GCC" = yes; then
17521    case $archive_cmds_GCJ in
17522    *'~'*)
17523      # FIXME: we may have to deal with multi-command sequences.
17524      ;;
17525    '$CC '*)
17526      # Test whether the compiler implicitly links with -lc since on some
17527      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17528      # to ld, don't add -lc before -lgcc.
17529      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17530echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17531      $rm conftest*
17532      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17533
17534      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17535  (eval $ac_compile) 2>&5
17536  ac_status=$?
17537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538  (exit $ac_status); } 2>conftest.err; then
17539        soname=conftest
17540        lib=conftest
17541        libobjs=conftest.$ac_objext
17542        deplibs=
17543        wl=$lt_prog_compiler_wl_GCJ
17544        compiler_flags=-v
17545        linker_flags=-v
17546        verstring=
17547        output_objdir=.
17548        libname=conftest
17549        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17550        allow_undefined_flag_GCJ=
17551        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17552  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17553  ac_status=$?
17554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555  (exit $ac_status); }
17556        then
17557	  archive_cmds_need_lc_GCJ=no
17558        else
17559	  archive_cmds_need_lc_GCJ=yes
17560        fi
17561        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17562      else
17563        cat conftest.err 1>&5
17564      fi
17565      $rm conftest*
17566      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17567echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17568      ;;
17569    esac
17570  fi
17571  ;;
17572esac
17573
17574echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17575echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17576library_names_spec=
17577libname_spec='lib$name'
17578soname_spec=
17579shrext_cmds=".so"
17580postinstall_cmds=
17581postuninstall_cmds=
17582finish_cmds=
17583finish_eval=
17584shlibpath_var=
17585shlibpath_overrides_runpath=unknown
17586version_type=none
17587dynamic_linker="$host_os ld.so"
17588sys_lib_dlsearch_path_spec="/lib /usr/lib"
17589if test "$GCC" = yes; then
17590  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17591  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17592    # if the path contains ";" then we assume it to be the separator
17593    # otherwise default to the standard path separator (i.e. ":") - it is
17594    # assumed that no part of a normal pathname contains ";" but that should
17595    # okay in the real world where ";" in dirpaths is itself problematic.
17596    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17597  else
17598    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17599  fi
17600else
17601  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17602fi
17603need_lib_prefix=unknown
17604hardcode_into_libs=no
17605
17606# when you set need_version to no, make sure it does not cause -set_version
17607# flags to be left without arguments
17608need_version=unknown
17609
17610case $host_os in
17611aix3*)
17612  version_type=linux
17613  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17614  shlibpath_var=LIBPATH
17615
17616  # AIX 3 has no versioning support, so we append a major version to the name.
17617  soname_spec='${libname}${release}${shared_ext}$major'
17618  ;;
17619
17620aix4* | aix5*)
17621  version_type=linux
17622  need_lib_prefix=no
17623  need_version=no
17624  hardcode_into_libs=yes
17625  if test "$host_cpu" = ia64; then
17626    # AIX 5 supports IA64
17627    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17628    shlibpath_var=LD_LIBRARY_PATH
17629  else
17630    # With GCC up to 2.95.x, collect2 would create an import file
17631    # for dependence libraries.  The import file would start with
17632    # the line `#! .'.  This would cause the generated library to
17633    # depend on `.', always an invalid library.  This was fixed in
17634    # development snapshots of GCC prior to 3.0.
17635    case $host_os in
17636      aix4 | aix4.[01] | aix4.[01].*)
17637      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17638	   echo ' yes '
17639	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17640	:
17641      else
17642	can_build_shared=no
17643      fi
17644      ;;
17645    esac
17646    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17647    # soname into executable. Probably we can add versioning support to
17648    # collect2, so additional links can be useful in future.
17649    if test "$aix_use_runtimelinking" = yes; then
17650      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17651      # instead of lib<name>.a to let people know that these are not
17652      # typical AIX shared libraries.
17653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17654    else
17655      # We preserve .a as extension for shared libraries through AIX4.2
17656      # and later when we are not doing run time linking.
17657      library_names_spec='${libname}${release}.a $libname.a'
17658      soname_spec='${libname}${release}${shared_ext}$major'
17659    fi
17660    shlibpath_var=LIBPATH
17661  fi
17662  ;;
17663
17664amigaos*)
17665  library_names_spec='$libname.ixlibrary $libname.a'
17666  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17667  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'
17668  ;;
17669
17670beos*)
17671  library_names_spec='${libname}${shared_ext}'
17672  dynamic_linker="$host_os ld.so"
17673  shlibpath_var=LIBRARY_PATH
17674  ;;
17675
17676bsdi[45]*)
17677  version_type=linux
17678  need_version=no
17679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680  soname_spec='${libname}${release}${shared_ext}$major'
17681  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17682  shlibpath_var=LD_LIBRARY_PATH
17683  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17684  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17685  # the default ld.so.conf also contains /usr/contrib/lib and
17686  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17687  # libtool to hard-code these into programs
17688  ;;
17689
17690cygwin* | mingw* | pw32*)
17691  version_type=windows
17692  shrext_cmds=".dll"
17693  need_version=no
17694  need_lib_prefix=no
17695
17696  case $GCC,$host_os in
17697  yes,cygwin* | yes,mingw* | yes,pw32*)
17698    library_names_spec='$libname.dll.a'
17699    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17700    postinstall_cmds='base_file=`basename \${file}`~
17701      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17702      dldir=$destdir/`dirname \$dlpath`~
17703      test -d \$dldir || mkdir -p \$dldir~
17704      $install_prog $dir/$dlname \$dldir/$dlname~
17705      chmod a+x \$dldir/$dlname'
17706    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17707      dlpath=$dir/\$dldll~
17708       $rm \$dlpath'
17709    shlibpath_overrides_runpath=yes
17710
17711    case $host_os in
17712    cygwin*)
17713      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17714      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17715      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17716      ;;
17717    mingw*)
17718      # MinGW DLLs use traditional 'lib' prefix
17719      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17720      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17721      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17722        # It is most probably a Windows format PATH printed by
17723        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17724        # path with ; separators, and with drive letters. We can handle the
17725        # drive letters (cygwin fileutils understands them), so leave them,
17726        # especially as we might pass files found there to a mingw objdump,
17727        # which wouldn't understand a cygwinified path. Ahh.
17728        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17729      else
17730        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17731      fi
17732      ;;
17733    pw32*)
17734      # pw32 DLLs use 'pw' prefix rather than 'lib'
17735      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17736      ;;
17737    esac
17738    ;;
17739
17740  *)
17741    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17742    ;;
17743  esac
17744  dynamic_linker='Win32 ld.exe'
17745  # FIXME: first we should search . and the directory the executable is in
17746  shlibpath_var=PATH
17747  ;;
17748
17749darwin* | rhapsody*)
17750  dynamic_linker="$host_os dyld"
17751  version_type=darwin
17752  need_lib_prefix=no
17753  need_version=no
17754  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17755  soname_spec='${libname}${release}${major}$shared_ext'
17756  shlibpath_overrides_runpath=yes
17757  shlibpath_var=DYLD_LIBRARY_PATH
17758  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17759  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17760  if test "$GCC" = yes; then
17761    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"`
17762  else
17763    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17764  fi
17765  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17766  ;;
17767
17768dgux*)
17769  version_type=linux
17770  need_lib_prefix=no
17771  need_version=no
17772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17773  soname_spec='${libname}${release}${shared_ext}$major'
17774  shlibpath_var=LD_LIBRARY_PATH
17775  ;;
17776
17777freebsd1*)
17778  dynamic_linker=no
17779  ;;
17780
17781kfreebsd*-gnu)
17782  version_type=linux
17783  need_lib_prefix=no
17784  need_version=no
17785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17786  soname_spec='${libname}${release}${shared_ext}$major'
17787  shlibpath_var=LD_LIBRARY_PATH
17788  shlibpath_overrides_runpath=no
17789  hardcode_into_libs=yes
17790  dynamic_linker='GNU ld.so'
17791  ;;
17792
17793freebsd* | dragonfly*)
17794  # DragonFly does not have aout.  When/if they implement a new
17795  # versioning mechanism, adjust this.
17796  if test -x /usr/bin/objformat; then
17797    objformat=`/usr/bin/objformat`
17798  else
17799    case $host_os in
17800    freebsd[123]*) objformat=aout ;;
17801    *) objformat=elf ;;
17802    esac
17803  fi
17804  version_type=freebsd-$objformat
17805  case $version_type in
17806    freebsd-elf*)
17807      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17808      need_version=no
17809      need_lib_prefix=no
17810      ;;
17811    freebsd-*)
17812      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17813      need_version=yes
17814      ;;
17815  esac
17816  shlibpath_var=LD_LIBRARY_PATH
17817  case $host_os in
17818  freebsd2*)
17819    shlibpath_overrides_runpath=yes
17820    ;;
17821  freebsd3.[01]* | freebsdelf3.[01]*)
17822    shlibpath_overrides_runpath=yes
17823    hardcode_into_libs=yes
17824    ;;
17825  *) # from 3.2 on
17826    shlibpath_overrides_runpath=no
17827    hardcode_into_libs=yes
17828    ;;
17829  esac
17830  ;;
17831
17832gnu*)
17833  version_type=linux
17834  need_lib_prefix=no
17835  need_version=no
17836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17837  soname_spec='${libname}${release}${shared_ext}$major'
17838  shlibpath_var=LD_LIBRARY_PATH
17839  hardcode_into_libs=yes
17840  ;;
17841
17842hpux9* | hpux10* | hpux11*)
17843  # Give a soname corresponding to the major version so that dld.sl refuses to
17844  # link against other versions.
17845  version_type=sunos
17846  need_lib_prefix=no
17847  need_version=no
17848  case $host_cpu in
17849  ia64*)
17850    shrext_cmds='.so'
17851    hardcode_into_libs=yes
17852    dynamic_linker="$host_os dld.so"
17853    shlibpath_var=LD_LIBRARY_PATH
17854    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856    soname_spec='${libname}${release}${shared_ext}$major'
17857    if test "X$HPUX_IA64_MODE" = X32; then
17858      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17859    else
17860      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17861    fi
17862    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17863    ;;
17864   hppa*64*)
17865     shrext_cmds='.sl'
17866     hardcode_into_libs=yes
17867     dynamic_linker="$host_os dld.sl"
17868     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871     soname_spec='${libname}${release}${shared_ext}$major'
17872     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17874     ;;
17875   *)
17876    shrext_cmds='.sl'
17877    dynamic_linker="$host_os dld.sl"
17878    shlibpath_var=SHLIB_PATH
17879    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881    soname_spec='${libname}${release}${shared_ext}$major'
17882    ;;
17883  esac
17884  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17885  postinstall_cmds='chmod 555 $lib'
17886  ;;
17887
17888irix5* | irix6* | nonstopux*)
17889  case $host_os in
17890    nonstopux*) version_type=nonstopux ;;
17891    *)
17892	if test "$lt_cv_prog_gnu_ld" = yes; then
17893		version_type=linux
17894	else
17895		version_type=irix
17896	fi ;;
17897  esac
17898  need_lib_prefix=no
17899  need_version=no
17900  soname_spec='${libname}${release}${shared_ext}$major'
17901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17902  case $host_os in
17903  irix5* | nonstopux*)
17904    libsuff= shlibsuff=
17905    ;;
17906  *)
17907    case $LD in # libtool.m4 will add one of these switches to LD
17908    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17909      libsuff= shlibsuff= libmagic=32-bit;;
17910    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17911      libsuff=32 shlibsuff=N32 libmagic=N32;;
17912    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17913      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17914    *) libsuff= shlibsuff= libmagic=never-match;;
17915    esac
17916    ;;
17917  esac
17918  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17919  shlibpath_overrides_runpath=no
17920  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17921  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17922  hardcode_into_libs=yes
17923  ;;
17924
17925# No shared lib support for Linux oldld, aout, or coff.
17926linux*oldld* | linux*aout* | linux*coff*)
17927  dynamic_linker=no
17928  ;;
17929
17930# This must be Linux ELF.
17931linux*)
17932  version_type=linux
17933  need_lib_prefix=no
17934  need_version=no
17935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936  soname_spec='${libname}${release}${shared_ext}$major'
17937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17938  shlibpath_var=LD_LIBRARY_PATH
17939  shlibpath_overrides_runpath=no
17940  # This implies no fast_install, which is unacceptable.
17941  # Some rework will be needed to allow for fast_install
17942  # before this can be enabled.
17943  hardcode_into_libs=yes
17944
17945  # find out which ABI we are using
17946  libsuff=
17947  case "$host_cpu" in
17948  x86_64*|s390x*|powerpc64*)
17949    echo '#line 18197 "configure"' > conftest.$ac_ext
17950    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17951  (eval $ac_compile) 2>&5
17952  ac_status=$?
17953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954  (exit $ac_status); }; then
17955      case `/usr/bin/file conftest.$ac_objext` in
17956      *64-bit*)
17957        libsuff=64
17958        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17959        ;;
17960      esac
17961    fi
17962    rm -rf conftest*
17963    ;;
17964  esac
17965
17966  # Append ld.so.conf contents to the search path
17967  if test -f /etc/ld.so.conf; then
17968    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' ' '`
17969    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17970  fi
17971
17972  # We used to test for /lib/ld.so.1 and disable shared libraries on
17973  # powerpc, because MkLinux only supported shared libraries with the
17974  # GNU dynamic linker.  Since this was broken with cross compilers,
17975  # most powerpc-linux boxes support dynamic linking these days and
17976  # people can always --disable-shared, the test was removed, and we
17977  # assume the GNU/Linux dynamic linker is in use.
17978  dynamic_linker='GNU/Linux ld.so'
17979  ;;
17980
17981knetbsd*-gnu)
17982  version_type=linux
17983  need_lib_prefix=no
17984  need_version=no
17985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17986  soname_spec='${libname}${release}${shared_ext}$major'
17987  shlibpath_var=LD_LIBRARY_PATH
17988  shlibpath_overrides_runpath=no
17989  hardcode_into_libs=yes
17990  dynamic_linker='GNU ld.so'
17991  ;;
17992
17993netbsd*)
17994  version_type=sunos
17995  need_lib_prefix=no
17996  need_version=no
17997  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17998    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17999    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18000    dynamic_linker='NetBSD (a.out) ld.so'
18001  else
18002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18003    soname_spec='${libname}${release}${shared_ext}$major'
18004    dynamic_linker='NetBSD ld.elf_so'
18005  fi
18006  shlibpath_var=LD_LIBRARY_PATH
18007  shlibpath_overrides_runpath=yes
18008  hardcode_into_libs=yes
18009  ;;
18010
18011newsos6)
18012  version_type=linux
18013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18014  shlibpath_var=LD_LIBRARY_PATH
18015  shlibpath_overrides_runpath=yes
18016  ;;
18017
18018nto-qnx*)
18019  version_type=linux
18020  need_lib_prefix=no
18021  need_version=no
18022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023  soname_spec='${libname}${release}${shared_ext}$major'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  shlibpath_overrides_runpath=yes
18026  ;;
18027
18028openbsd*)
18029  version_type=sunos
18030  need_lib_prefix=no
18031  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18032  case $host_os in
18033    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18034    *)                         need_version=no  ;;
18035  esac
18036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18037  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18038  shlibpath_var=LD_LIBRARY_PATH
18039  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18040    case $host_os in
18041      openbsd2.[89] | openbsd2.[89].*)
18042	shlibpath_overrides_runpath=no
18043	;;
18044      *)
18045	shlibpath_overrides_runpath=yes
18046	;;
18047      esac
18048  else
18049    shlibpath_overrides_runpath=yes
18050  fi
18051  ;;
18052
18053os2*)
18054  libname_spec='$name'
18055  shrext_cmds=".dll"
18056  need_lib_prefix=no
18057  library_names_spec='$libname${shared_ext} $libname.a'
18058  dynamic_linker='OS/2 ld.exe'
18059  shlibpath_var=LIBPATH
18060  ;;
18061
18062osf3* | osf4* | osf5*)
18063  version_type=osf
18064  need_lib_prefix=no
18065  need_version=no
18066  soname_spec='${libname}${release}${shared_ext}$major'
18067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18068  shlibpath_var=LD_LIBRARY_PATH
18069  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18070  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18071  ;;
18072
18073sco3.2v5*)
18074  version_type=osf
18075  soname_spec='${libname}${release}${shared_ext}$major'
18076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077  shlibpath_var=LD_LIBRARY_PATH
18078  ;;
18079
18080solaris*)
18081  version_type=linux
18082  need_lib_prefix=no
18083  need_version=no
18084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085  soname_spec='${libname}${release}${shared_ext}$major'
18086  shlibpath_var=LD_LIBRARY_PATH
18087  shlibpath_overrides_runpath=yes
18088  hardcode_into_libs=yes
18089  # ldd complains unless libraries are executable
18090  postinstall_cmds='chmod +x $lib'
18091  ;;
18092
18093sunos4*)
18094  version_type=sunos
18095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18096  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18097  shlibpath_var=LD_LIBRARY_PATH
18098  shlibpath_overrides_runpath=yes
18099  if test "$with_gnu_ld" = yes; then
18100    need_lib_prefix=no
18101  fi
18102  need_version=yes
18103  ;;
18104
18105sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18106  version_type=linux
18107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18108  soname_spec='${libname}${release}${shared_ext}$major'
18109  shlibpath_var=LD_LIBRARY_PATH
18110  case $host_vendor in
18111    sni)
18112      shlibpath_overrides_runpath=no
18113      need_lib_prefix=no
18114      export_dynamic_flag_spec='${wl}-Blargedynsym'
18115      runpath_var=LD_RUN_PATH
18116      ;;
18117    siemens)
18118      need_lib_prefix=no
18119      ;;
18120    motorola)
18121      need_lib_prefix=no
18122      need_version=no
18123      shlibpath_overrides_runpath=no
18124      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18125      ;;
18126  esac
18127  ;;
18128
18129sysv4*MP*)
18130  if test -d /usr/nec ;then
18131    version_type=linux
18132    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18133    soname_spec='$libname${shared_ext}.$major'
18134    shlibpath_var=LD_LIBRARY_PATH
18135  fi
18136  ;;
18137
18138uts4*)
18139  version_type=linux
18140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141  soname_spec='${libname}${release}${shared_ext}$major'
18142  shlibpath_var=LD_LIBRARY_PATH
18143  ;;
18144
18145*)
18146  dynamic_linker=no
18147  ;;
18148esac
18149echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18150echo "${ECHO_T}$dynamic_linker" >&6
18151test "$dynamic_linker" = no && can_build_shared=no
18152
18153echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18154echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18155hardcode_action_GCJ=
18156if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18157   test -n "$runpath_var_GCJ" || \
18158   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18159
18160  # We can hardcode non-existant directories.
18161  if test "$hardcode_direct_GCJ" != no &&
18162     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18163     # have to relink, otherwise we might link with an installed library
18164     # when we should be linking with a yet-to-be-installed one
18165     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18166     test "$hardcode_minus_L_GCJ" != no; then
18167    # Linking always hardcodes the temporary library directory.
18168    hardcode_action_GCJ=relink
18169  else
18170    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18171    hardcode_action_GCJ=immediate
18172  fi
18173else
18174  # We cannot hardcode anything, or else we can only hardcode existing
18175  # directories.
18176  hardcode_action_GCJ=unsupported
18177fi
18178echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18179echo "${ECHO_T}$hardcode_action_GCJ" >&6
18180
18181if test "$hardcode_action_GCJ" = relink; then
18182  # Fast installation is not supported
18183  enable_fast_install=no
18184elif test "$shlibpath_overrides_runpath" = yes ||
18185     test "$enable_shared" = no; then
18186  # Fast installation is not necessary
18187  enable_fast_install=needless
18188fi
18189
18190striplib=
18191old_striplib=
18192echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18193echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18194if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18195  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18196  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18197  echo "$as_me:$LINENO: result: yes" >&5
18198echo "${ECHO_T}yes" >&6
18199else
18200# FIXME - insert some real tests, host_os isn't really good enough
18201  case $host_os in
18202   darwin*)
18203       if test -n "$STRIP" ; then
18204         striplib="$STRIP -x"
18205         echo "$as_me:$LINENO: result: yes" >&5
18206echo "${ECHO_T}yes" >&6
18207       else
18208  echo "$as_me:$LINENO: result: no" >&5
18209echo "${ECHO_T}no" >&6
18210fi
18211       ;;
18212   *)
18213  echo "$as_me:$LINENO: result: no" >&5
18214echo "${ECHO_T}no" >&6
18215    ;;
18216  esac
18217fi
18218
18219if test "x$enable_dlopen" != xyes; then
18220  enable_dlopen=unknown
18221  enable_dlopen_self=unknown
18222  enable_dlopen_self_static=unknown
18223else
18224  lt_cv_dlopen=no
18225  lt_cv_dlopen_libs=
18226
18227  case $host_os in
18228  beos*)
18229    lt_cv_dlopen="load_add_on"
18230    lt_cv_dlopen_libs=
18231    lt_cv_dlopen_self=yes
18232    ;;
18233
18234  mingw* | pw32*)
18235    lt_cv_dlopen="LoadLibrary"
18236    lt_cv_dlopen_libs=
18237   ;;
18238
18239  cygwin*)
18240    lt_cv_dlopen="dlopen"
18241    lt_cv_dlopen_libs=
18242   ;;
18243
18244  darwin*)
18245  # if libdl is installed we need to link against it
18246    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18247echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18248if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18249  echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251  ac_check_lib_save_LIBS=$LIBS
18252LIBS="-ldl  $LIBS"
18253cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h.  */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h.  */
18259
18260/* Override any gcc2 internal prototype to avoid an error.  */
18261#ifdef __cplusplus
18262extern "C"
18263#endif
18264/* We use char because int might match the return type of a gcc2
18265   builtin and then its argument prototype would still apply.  */
18266char dlopen ();
18267int
18268main ()
18269{
18270dlopen ();
18271  ;
18272  return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext conftest$ac_exeext
18276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277  (eval $ac_link) 2>conftest.er1
18278  ac_status=$?
18279  grep -v '^ *+' conftest.er1 >conftest.err
18280  rm -f conftest.er1
18281  cat conftest.err >&5
18282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283  (exit $ac_status); } &&
18284	 { ac_try='test -z "$ac_c_werror_flag"
18285			 || test ! -s conftest.err'
18286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287  (eval $ac_try) 2>&5
18288  ac_status=$?
18289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290  (exit $ac_status); }; } &&
18291	 { ac_try='test -s conftest$ac_exeext'
18292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293  (eval $ac_try) 2>&5
18294  ac_status=$?
18295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296  (exit $ac_status); }; }; then
18297  ac_cv_lib_dl_dlopen=yes
18298else
18299  echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302ac_cv_lib_dl_dlopen=no
18303fi
18304rm -f conftest.err conftest.$ac_objext \
18305      conftest$ac_exeext conftest.$ac_ext
18306LIBS=$ac_check_lib_save_LIBS
18307fi
18308echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18309echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18310if test $ac_cv_lib_dl_dlopen = yes; then
18311  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18312else
18313
18314    lt_cv_dlopen="dyld"
18315    lt_cv_dlopen_libs=
18316    lt_cv_dlopen_self=yes
18317
18318fi
18319
18320   ;;
18321
18322  *)
18323    echo "$as_me:$LINENO: checking for shl_load" >&5
18324echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18325if test "${ac_cv_func_shl_load+set}" = set; then
18326  echo $ECHO_N "(cached) $ECHO_C" >&6
18327else
18328  cat >conftest.$ac_ext <<_ACEOF
18329/* confdefs.h.  */
18330_ACEOF
18331cat confdefs.h >>conftest.$ac_ext
18332cat >>conftest.$ac_ext <<_ACEOF
18333/* end confdefs.h.  */
18334/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18336#define shl_load innocuous_shl_load
18337
18338/* System header to define __stub macros and hopefully few prototypes,
18339    which can conflict with char shl_load (); below.
18340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18341    <limits.h> exists even on freestanding compilers.  */
18342
18343#ifdef __STDC__
18344# include <limits.h>
18345#else
18346# include <assert.h>
18347#endif
18348
18349#undef shl_load
18350
18351/* Override any gcc2 internal prototype to avoid an error.  */
18352#ifdef __cplusplus
18353extern "C"
18354{
18355#endif
18356/* We use char because int might match the return type of a gcc2
18357   builtin and then its argument prototype would still apply.  */
18358char shl_load ();
18359/* The GNU C library defines this for functions which it implements
18360    to always fail with ENOSYS.  Some functions are actually named
18361    something starting with __ and the normal name is an alias.  */
18362#if defined (__stub_shl_load) || defined (__stub___shl_load)
18363choke me
18364#else
18365char (*f) () = shl_load;
18366#endif
18367#ifdef __cplusplus
18368}
18369#endif
18370
18371int
18372main ()
18373{
18374return f != shl_load;
18375  ;
18376  return 0;
18377}
18378_ACEOF
18379rm -f conftest.$ac_objext conftest$ac_exeext
18380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18381  (eval $ac_link) 2>conftest.er1
18382  ac_status=$?
18383  grep -v '^ *+' conftest.er1 >conftest.err
18384  rm -f conftest.er1
18385  cat conftest.err >&5
18386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387  (exit $ac_status); } &&
18388	 { ac_try='test -z "$ac_c_werror_flag"
18389			 || test ! -s conftest.err'
18390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391  (eval $ac_try) 2>&5
18392  ac_status=$?
18393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394  (exit $ac_status); }; } &&
18395	 { ac_try='test -s conftest$ac_exeext'
18396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397  (eval $ac_try) 2>&5
18398  ac_status=$?
18399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400  (exit $ac_status); }; }; then
18401  ac_cv_func_shl_load=yes
18402else
18403  echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406ac_cv_func_shl_load=no
18407fi
18408rm -f conftest.err conftest.$ac_objext \
18409      conftest$ac_exeext conftest.$ac_ext
18410fi
18411echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18412echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18413if test $ac_cv_func_shl_load = yes; then
18414  lt_cv_dlopen="shl_load"
18415else
18416  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18417echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18418if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18419  echo $ECHO_N "(cached) $ECHO_C" >&6
18420else
18421  ac_check_lib_save_LIBS=$LIBS
18422LIBS="-ldld  $LIBS"
18423cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h.  */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h.  */
18429
18430/* Override any gcc2 internal prototype to avoid an error.  */
18431#ifdef __cplusplus
18432extern "C"
18433#endif
18434/* We use char because int might match the return type of a gcc2
18435   builtin and then its argument prototype would still apply.  */
18436char shl_load ();
18437int
18438main ()
18439{
18440shl_load ();
18441  ;
18442  return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext conftest$ac_exeext
18446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18447  (eval $ac_link) 2>conftest.er1
18448  ac_status=$?
18449  grep -v '^ *+' conftest.er1 >conftest.err
18450  rm -f conftest.er1
18451  cat conftest.err >&5
18452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453  (exit $ac_status); } &&
18454	 { ac_try='test -z "$ac_c_werror_flag"
18455			 || test ! -s conftest.err'
18456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457  (eval $ac_try) 2>&5
18458  ac_status=$?
18459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460  (exit $ac_status); }; } &&
18461	 { ac_try='test -s conftest$ac_exeext'
18462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463  (eval $ac_try) 2>&5
18464  ac_status=$?
18465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466  (exit $ac_status); }; }; then
18467  ac_cv_lib_dld_shl_load=yes
18468else
18469  echo "$as_me: failed program was:" >&5
18470sed 's/^/| /' conftest.$ac_ext >&5
18471
18472ac_cv_lib_dld_shl_load=no
18473fi
18474rm -f conftest.err conftest.$ac_objext \
18475      conftest$ac_exeext conftest.$ac_ext
18476LIBS=$ac_check_lib_save_LIBS
18477fi
18478echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18479echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18480if test $ac_cv_lib_dld_shl_load = yes; then
18481  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18482else
18483  echo "$as_me:$LINENO: checking for dlopen" >&5
18484echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18485if test "${ac_cv_func_dlopen+set}" = set; then
18486  echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488  cat >conftest.$ac_ext <<_ACEOF
18489/* confdefs.h.  */
18490_ACEOF
18491cat confdefs.h >>conftest.$ac_ext
18492cat >>conftest.$ac_ext <<_ACEOF
18493/* end confdefs.h.  */
18494/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18495   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18496#define dlopen innocuous_dlopen
18497
18498/* System header to define __stub macros and hopefully few prototypes,
18499    which can conflict with char dlopen (); below.
18500    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501    <limits.h> exists even on freestanding compilers.  */
18502
18503#ifdef __STDC__
18504# include <limits.h>
18505#else
18506# include <assert.h>
18507#endif
18508
18509#undef dlopen
18510
18511/* Override any gcc2 internal prototype to avoid an error.  */
18512#ifdef __cplusplus
18513extern "C"
18514{
18515#endif
18516/* We use char because int might match the return type of a gcc2
18517   builtin and then its argument prototype would still apply.  */
18518char dlopen ();
18519/* The GNU C library defines this for functions which it implements
18520    to always fail with ENOSYS.  Some functions are actually named
18521    something starting with __ and the normal name is an alias.  */
18522#if defined (__stub_dlopen) || defined (__stub___dlopen)
18523choke me
18524#else
18525char (*f) () = dlopen;
18526#endif
18527#ifdef __cplusplus
18528}
18529#endif
18530
18531int
18532main ()
18533{
18534return f != dlopen;
18535  ;
18536  return 0;
18537}
18538_ACEOF
18539rm -f conftest.$ac_objext conftest$ac_exeext
18540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541  (eval $ac_link) 2>conftest.er1
18542  ac_status=$?
18543  grep -v '^ *+' conftest.er1 >conftest.err
18544  rm -f conftest.er1
18545  cat conftest.err >&5
18546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547  (exit $ac_status); } &&
18548	 { ac_try='test -z "$ac_c_werror_flag"
18549			 || test ! -s conftest.err'
18550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551  (eval $ac_try) 2>&5
18552  ac_status=$?
18553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554  (exit $ac_status); }; } &&
18555	 { ac_try='test -s conftest$ac_exeext'
18556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557  (eval $ac_try) 2>&5
18558  ac_status=$?
18559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560  (exit $ac_status); }; }; then
18561  ac_cv_func_dlopen=yes
18562else
18563  echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566ac_cv_func_dlopen=no
18567fi
18568rm -f conftest.err conftest.$ac_objext \
18569      conftest$ac_exeext conftest.$ac_ext
18570fi
18571echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18572echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18573if test $ac_cv_func_dlopen = yes; then
18574  lt_cv_dlopen="dlopen"
18575else
18576  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18577echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18578if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18579  echo $ECHO_N "(cached) $ECHO_C" >&6
18580else
18581  ac_check_lib_save_LIBS=$LIBS
18582LIBS="-ldl  $LIBS"
18583cat >conftest.$ac_ext <<_ACEOF
18584/* confdefs.h.  */
18585_ACEOF
18586cat confdefs.h >>conftest.$ac_ext
18587cat >>conftest.$ac_ext <<_ACEOF
18588/* end confdefs.h.  */
18589
18590/* Override any gcc2 internal prototype to avoid an error.  */
18591#ifdef __cplusplus
18592extern "C"
18593#endif
18594/* We use char because int might match the return type of a gcc2
18595   builtin and then its argument prototype would still apply.  */
18596char dlopen ();
18597int
18598main ()
18599{
18600dlopen ();
18601  ;
18602  return 0;
18603}
18604_ACEOF
18605rm -f conftest.$ac_objext conftest$ac_exeext
18606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18607  (eval $ac_link) 2>conftest.er1
18608  ac_status=$?
18609  grep -v '^ *+' conftest.er1 >conftest.err
18610  rm -f conftest.er1
18611  cat conftest.err >&5
18612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613  (exit $ac_status); } &&
18614	 { ac_try='test -z "$ac_c_werror_flag"
18615			 || test ! -s conftest.err'
18616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617  (eval $ac_try) 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); }; } &&
18621	 { ac_try='test -s conftest$ac_exeext'
18622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623  (eval $ac_try) 2>&5
18624  ac_status=$?
18625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626  (exit $ac_status); }; }; then
18627  ac_cv_lib_dl_dlopen=yes
18628else
18629  echo "$as_me: failed program was:" >&5
18630sed 's/^/| /' conftest.$ac_ext >&5
18631
18632ac_cv_lib_dl_dlopen=no
18633fi
18634rm -f conftest.err conftest.$ac_objext \
18635      conftest$ac_exeext conftest.$ac_ext
18636LIBS=$ac_check_lib_save_LIBS
18637fi
18638echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18639echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18640if test $ac_cv_lib_dl_dlopen = yes; then
18641  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18642else
18643  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18644echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18645if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18646  echo $ECHO_N "(cached) $ECHO_C" >&6
18647else
18648  ac_check_lib_save_LIBS=$LIBS
18649LIBS="-lsvld  $LIBS"
18650cat >conftest.$ac_ext <<_ACEOF
18651/* confdefs.h.  */
18652_ACEOF
18653cat confdefs.h >>conftest.$ac_ext
18654cat >>conftest.$ac_ext <<_ACEOF
18655/* end confdefs.h.  */
18656
18657/* Override any gcc2 internal prototype to avoid an error.  */
18658#ifdef __cplusplus
18659extern "C"
18660#endif
18661/* We use char because int might match the return type of a gcc2
18662   builtin and then its argument prototype would still apply.  */
18663char dlopen ();
18664int
18665main ()
18666{
18667dlopen ();
18668  ;
18669  return 0;
18670}
18671_ACEOF
18672rm -f conftest.$ac_objext conftest$ac_exeext
18673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18674  (eval $ac_link) 2>conftest.er1
18675  ac_status=$?
18676  grep -v '^ *+' conftest.er1 >conftest.err
18677  rm -f conftest.er1
18678  cat conftest.err >&5
18679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680  (exit $ac_status); } &&
18681	 { ac_try='test -z "$ac_c_werror_flag"
18682			 || test ! -s conftest.err'
18683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684  (eval $ac_try) 2>&5
18685  ac_status=$?
18686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687  (exit $ac_status); }; } &&
18688	 { ac_try='test -s conftest$ac_exeext'
18689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690  (eval $ac_try) 2>&5
18691  ac_status=$?
18692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693  (exit $ac_status); }; }; then
18694  ac_cv_lib_svld_dlopen=yes
18695else
18696  echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699ac_cv_lib_svld_dlopen=no
18700fi
18701rm -f conftest.err conftest.$ac_objext \
18702      conftest$ac_exeext conftest.$ac_ext
18703LIBS=$ac_check_lib_save_LIBS
18704fi
18705echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18706echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18707if test $ac_cv_lib_svld_dlopen = yes; then
18708  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18709else
18710  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18711echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18712if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18713  echo $ECHO_N "(cached) $ECHO_C" >&6
18714else
18715  ac_check_lib_save_LIBS=$LIBS
18716LIBS="-ldld  $LIBS"
18717cat >conftest.$ac_ext <<_ACEOF
18718/* confdefs.h.  */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h.  */
18723
18724/* Override any gcc2 internal prototype to avoid an error.  */
18725#ifdef __cplusplus
18726extern "C"
18727#endif
18728/* We use char because int might match the return type of a gcc2
18729   builtin and then its argument prototype would still apply.  */
18730char dld_link ();
18731int
18732main ()
18733{
18734dld_link ();
18735  ;
18736  return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext conftest$ac_exeext
18740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18741  (eval $ac_link) 2>conftest.er1
18742  ac_status=$?
18743  grep -v '^ *+' conftest.er1 >conftest.err
18744  rm -f conftest.er1
18745  cat conftest.err >&5
18746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747  (exit $ac_status); } &&
18748	 { ac_try='test -z "$ac_c_werror_flag"
18749			 || test ! -s conftest.err'
18750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751  (eval $ac_try) 2>&5
18752  ac_status=$?
18753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754  (exit $ac_status); }; } &&
18755	 { ac_try='test -s conftest$ac_exeext'
18756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757  (eval $ac_try) 2>&5
18758  ac_status=$?
18759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760  (exit $ac_status); }; }; then
18761  ac_cv_lib_dld_dld_link=yes
18762else
18763  echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766ac_cv_lib_dld_dld_link=no
18767fi
18768rm -f conftest.err conftest.$ac_objext \
18769      conftest$ac_exeext conftest.$ac_ext
18770LIBS=$ac_check_lib_save_LIBS
18771fi
18772echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18773echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18774if test $ac_cv_lib_dld_dld_link = yes; then
18775  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18776fi
18777
18778
18779fi
18780
18781
18782fi
18783
18784
18785fi
18786
18787
18788fi
18789
18790
18791fi
18792
18793    ;;
18794  esac
18795
18796  if test "x$lt_cv_dlopen" != xno; then
18797    enable_dlopen=yes
18798  else
18799    enable_dlopen=no
18800  fi
18801
18802  case $lt_cv_dlopen in
18803  dlopen)
18804    save_CPPFLAGS="$CPPFLAGS"
18805    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18806
18807    save_LDFLAGS="$LDFLAGS"
18808    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18809
18810    save_LIBS="$LIBS"
18811    LIBS="$lt_cv_dlopen_libs $LIBS"
18812
18813    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18814echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18815if test "${lt_cv_dlopen_self+set}" = set; then
18816  echo $ECHO_N "(cached) $ECHO_C" >&6
18817else
18818  	  if test "$cross_compiling" = yes; then :
18819  lt_cv_dlopen_self=cross
18820else
18821  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18822  lt_status=$lt_dlunknown
18823  cat > conftest.$ac_ext <<EOF
18824#line 19072 "configure"
18825#include "confdefs.h"
18826
18827#if HAVE_DLFCN_H
18828#include <dlfcn.h>
18829#endif
18830
18831#include <stdio.h>
18832
18833#ifdef RTLD_GLOBAL
18834#  define LT_DLGLOBAL		RTLD_GLOBAL
18835#else
18836#  ifdef DL_GLOBAL
18837#    define LT_DLGLOBAL		DL_GLOBAL
18838#  else
18839#    define LT_DLGLOBAL		0
18840#  endif
18841#endif
18842
18843/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18844   find out it does not work in some platform. */
18845#ifndef LT_DLLAZY_OR_NOW
18846#  ifdef RTLD_LAZY
18847#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18848#  else
18849#    ifdef DL_LAZY
18850#      define LT_DLLAZY_OR_NOW		DL_LAZY
18851#    else
18852#      ifdef RTLD_NOW
18853#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18854#      else
18855#        ifdef DL_NOW
18856#          define LT_DLLAZY_OR_NOW	DL_NOW
18857#        else
18858#          define LT_DLLAZY_OR_NOW	0
18859#        endif
18860#      endif
18861#    endif
18862#  endif
18863#endif
18864
18865#ifdef __cplusplus
18866extern "C" void exit (int);
18867#endif
18868
18869void fnord() { int i=42;}
18870int main ()
18871{
18872  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18873  int status = $lt_dlunknown;
18874
18875  if (self)
18876    {
18877      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18878      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18879      /* dlclose (self); */
18880    }
18881
18882    exit (status);
18883}
18884EOF
18885  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18886  (eval $ac_link) 2>&5
18887  ac_status=$?
18888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18890    (./conftest; exit; ) >&5 2>/dev/null
18891    lt_status=$?
18892    case x$lt_status in
18893      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18894      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18895      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18896    esac
18897  else :
18898    # compilation failed
18899    lt_cv_dlopen_self=no
18900  fi
18901fi
18902rm -fr conftest*
18903
18904
18905fi
18906echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18907echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18908
18909    if test "x$lt_cv_dlopen_self" = xyes; then
18910      LDFLAGS="$LDFLAGS $link_static_flag"
18911      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18912echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18913if test "${lt_cv_dlopen_self_static+set}" = set; then
18914  echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916  	  if test "$cross_compiling" = yes; then :
18917  lt_cv_dlopen_self_static=cross
18918else
18919  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18920  lt_status=$lt_dlunknown
18921  cat > conftest.$ac_ext <<EOF
18922#line 19170 "configure"
18923#include "confdefs.h"
18924
18925#if HAVE_DLFCN_H
18926#include <dlfcn.h>
18927#endif
18928
18929#include <stdio.h>
18930
18931#ifdef RTLD_GLOBAL
18932#  define LT_DLGLOBAL		RTLD_GLOBAL
18933#else
18934#  ifdef DL_GLOBAL
18935#    define LT_DLGLOBAL		DL_GLOBAL
18936#  else
18937#    define LT_DLGLOBAL		0
18938#  endif
18939#endif
18940
18941/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18942   find out it does not work in some platform. */
18943#ifndef LT_DLLAZY_OR_NOW
18944#  ifdef RTLD_LAZY
18945#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18946#  else
18947#    ifdef DL_LAZY
18948#      define LT_DLLAZY_OR_NOW		DL_LAZY
18949#    else
18950#      ifdef RTLD_NOW
18951#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18952#      else
18953#        ifdef DL_NOW
18954#          define LT_DLLAZY_OR_NOW	DL_NOW
18955#        else
18956#          define LT_DLLAZY_OR_NOW	0
18957#        endif
18958#      endif
18959#    endif
18960#  endif
18961#endif
18962
18963#ifdef __cplusplus
18964extern "C" void exit (int);
18965#endif
18966
18967void fnord() { int i=42;}
18968int main ()
18969{
18970  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18971  int status = $lt_dlunknown;
18972
18973  if (self)
18974    {
18975      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18976      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18977      /* dlclose (self); */
18978    }
18979
18980    exit (status);
18981}
18982EOF
18983  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18984  (eval $ac_link) 2>&5
18985  ac_status=$?
18986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18988    (./conftest; exit; ) >&5 2>/dev/null
18989    lt_status=$?
18990    case x$lt_status in
18991      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18992      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18993      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18994    esac
18995  else :
18996    # compilation failed
18997    lt_cv_dlopen_self_static=no
18998  fi
18999fi
19000rm -fr conftest*
19001
19002
19003fi
19004echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19005echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19006    fi
19007
19008    CPPFLAGS="$save_CPPFLAGS"
19009    LDFLAGS="$save_LDFLAGS"
19010    LIBS="$save_LIBS"
19011    ;;
19012  esac
19013
19014  case $lt_cv_dlopen_self in
19015  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19016  *) enable_dlopen_self=unknown ;;
19017  esac
19018
19019  case $lt_cv_dlopen_self_static in
19020  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19021  *) enable_dlopen_self_static=unknown ;;
19022  esac
19023fi
19024
19025
19026# The else clause should only fire when bootstrapping the
19027# libtool distribution, otherwise you forgot to ship ltmain.sh
19028# with your package, and you will get complaints that there are
19029# no rules to generate ltmain.sh.
19030if test -f "$ltmain"; then
19031  # See if we are running on zsh, and set the options which allow our commands through
19032  # without removal of \ escapes.
19033  if test -n "${ZSH_VERSION+set}" ; then
19034    setopt NO_GLOB_SUBST
19035  fi
19036  # Now quote all the things that may contain metacharacters while being
19037  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19038  # variables and quote the copies for generation of the libtool script.
19039  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19040    SED SHELL STRIP \
19041    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19042    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19043    deplibs_check_method reload_flag reload_cmds need_locks \
19044    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19045    lt_cv_sys_global_symbol_to_c_name_address \
19046    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19047    old_postinstall_cmds old_postuninstall_cmds \
19048    compiler_GCJ \
19049    CC_GCJ \
19050    LD_GCJ \
19051    lt_prog_compiler_wl_GCJ \
19052    lt_prog_compiler_pic_GCJ \
19053    lt_prog_compiler_static_GCJ \
19054    lt_prog_compiler_no_builtin_flag_GCJ \
19055    export_dynamic_flag_spec_GCJ \
19056    thread_safe_flag_spec_GCJ \
19057    whole_archive_flag_spec_GCJ \
19058    enable_shared_with_static_runtimes_GCJ \
19059    old_archive_cmds_GCJ \
19060    old_archive_from_new_cmds_GCJ \
19061    predep_objects_GCJ \
19062    postdep_objects_GCJ \
19063    predeps_GCJ \
19064    postdeps_GCJ \
19065    compiler_lib_search_path_GCJ \
19066    archive_cmds_GCJ \
19067    archive_expsym_cmds_GCJ \
19068    postinstall_cmds_GCJ \
19069    postuninstall_cmds_GCJ \
19070    old_archive_from_expsyms_cmds_GCJ \
19071    allow_undefined_flag_GCJ \
19072    no_undefined_flag_GCJ \
19073    export_symbols_cmds_GCJ \
19074    hardcode_libdir_flag_spec_GCJ \
19075    hardcode_libdir_flag_spec_ld_GCJ \
19076    hardcode_libdir_separator_GCJ \
19077    hardcode_automatic_GCJ \
19078    module_cmds_GCJ \
19079    module_expsym_cmds_GCJ \
19080    lt_cv_prog_compiler_c_o_GCJ \
19081    exclude_expsyms_GCJ \
19082    include_expsyms_GCJ; do
19083
19084    case $var in
19085    old_archive_cmds_GCJ | \
19086    old_archive_from_new_cmds_GCJ | \
19087    archive_cmds_GCJ | \
19088    archive_expsym_cmds_GCJ | \
19089    module_cmds_GCJ | \
19090    module_expsym_cmds_GCJ | \
19091    old_archive_from_expsyms_cmds_GCJ | \
19092    export_symbols_cmds_GCJ | \
19093    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19094    postinstall_cmds | postuninstall_cmds | \
19095    old_postinstall_cmds | old_postuninstall_cmds | \
19096    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19097      # Double-quote double-evaled strings.
19098      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19099      ;;
19100    *)
19101      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19102      ;;
19103    esac
19104  done
19105
19106  case $lt_echo in
19107  *'\$0 --fallback-echo"')
19108    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19109    ;;
19110  esac
19111
19112cfgfile="$ofile"
19113
19114  cat <<__EOF__ >> "$cfgfile"
19115# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19116
19117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19118
19119# Shell to use when invoking shell scripts.
19120SHELL=$lt_SHELL
19121
19122# Whether or not to build shared libraries.
19123build_libtool_libs=$enable_shared
19124
19125# Whether or not to build static libraries.
19126build_old_libs=$enable_static
19127
19128# Whether or not to add -lc for building shared libraries.
19129build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19130
19131# Whether or not to disallow shared libs when runtime libs are static
19132allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19133
19134# Whether or not to optimize for fast installation.
19135fast_install=$enable_fast_install
19136
19137# The host system.
19138host_alias=$host_alias
19139host=$host
19140host_os=$host_os
19141
19142# The build system.
19143build_alias=$build_alias
19144build=$build
19145build_os=$build_os
19146
19147# An echo program that does not interpret backslashes.
19148echo=$lt_echo
19149
19150# The archiver.
19151AR=$lt_AR
19152AR_FLAGS=$lt_AR_FLAGS
19153
19154# A C compiler.
19155LTCC=$lt_LTCC
19156
19157# A language-specific compiler.
19158CC=$lt_compiler_GCJ
19159
19160# Is the compiler the GNU C compiler?
19161with_gcc=$GCC_GCJ
19162
19163# An ERE matcher.
19164EGREP=$lt_EGREP
19165
19166# The linker used to build libraries.
19167LD=$lt_LD_GCJ
19168
19169# Whether we need hard or soft links.
19170LN_S=$lt_LN_S
19171
19172# A BSD-compatible nm program.
19173NM=$lt_NM
19174
19175# A symbol stripping program
19176STRIP=$lt_STRIP
19177
19178# Used to examine libraries when file_magic_cmd begins "file"
19179MAGIC_CMD=$MAGIC_CMD
19180
19181# Used on cygwin: DLL creation program.
19182DLLTOOL="$DLLTOOL"
19183
19184# Used on cygwin: object dumper.
19185OBJDUMP="$OBJDUMP"
19186
19187# Used on cygwin: assembler.
19188AS="$AS"
19189
19190# The name of the directory that contains temporary libtool files.
19191objdir=$objdir
19192
19193# How to create reloadable object files.
19194reload_flag=$lt_reload_flag
19195reload_cmds=$lt_reload_cmds
19196
19197# How to pass a linker flag through the compiler.
19198wl=$lt_lt_prog_compiler_wl_GCJ
19199
19200# Object file suffix (normally "o").
19201objext="$ac_objext"
19202
19203# Old archive suffix (normally "a").
19204libext="$libext"
19205
19206# Shared library suffix (normally ".so").
19207shrext_cmds='$shrext_cmds'
19208
19209# Executable file suffix (normally "").
19210exeext="$exeext"
19211
19212# Additional compiler flags for building library objects.
19213pic_flag=$lt_lt_prog_compiler_pic_GCJ
19214pic_mode=$pic_mode
19215
19216# What is the maximum length of a command?
19217max_cmd_len=$lt_cv_sys_max_cmd_len
19218
19219# Does compiler simultaneously support -c and -o options?
19220compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19221
19222# Must we lock files when doing compilation?
19223need_locks=$lt_need_locks
19224
19225# Do we need the lib prefix for modules?
19226need_lib_prefix=$need_lib_prefix
19227
19228# Do we need a version for libraries?
19229need_version=$need_version
19230
19231# Whether dlopen is supported.
19232dlopen_support=$enable_dlopen
19233
19234# Whether dlopen of programs is supported.
19235dlopen_self=$enable_dlopen_self
19236
19237# Whether dlopen of statically linked programs is supported.
19238dlopen_self_static=$enable_dlopen_self_static
19239
19240# Compiler flag to prevent dynamic linking.
19241link_static_flag=$lt_lt_prog_compiler_static_GCJ
19242
19243# Compiler flag to turn off builtin functions.
19244no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19245
19246# Compiler flag to allow reflexive dlopens.
19247export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19248
19249# Compiler flag to generate shared objects directly from archives.
19250whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19251
19252# Compiler flag to generate thread-safe objects.
19253thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19254
19255# Library versioning type.
19256version_type=$version_type
19257
19258# Format of library name prefix.
19259libname_spec=$lt_libname_spec
19260
19261# List of archive names.  First name is the real one, the rest are links.
19262# The last name is the one that the linker finds with -lNAME.
19263library_names_spec=$lt_library_names_spec
19264
19265# The coded name of the library, if different from the real name.
19266soname_spec=$lt_soname_spec
19267
19268# Commands used to build and install an old-style archive.
19269RANLIB=$lt_RANLIB
19270old_archive_cmds=$lt_old_archive_cmds_GCJ
19271old_postinstall_cmds=$lt_old_postinstall_cmds
19272old_postuninstall_cmds=$lt_old_postuninstall_cmds
19273
19274# Create an old-style archive from a shared archive.
19275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19276
19277# Create a temporary old-style archive to link instead of a shared archive.
19278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19279
19280# Commands used to build and install a shared archive.
19281archive_cmds=$lt_archive_cmds_GCJ
19282archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19283postinstall_cmds=$lt_postinstall_cmds
19284postuninstall_cmds=$lt_postuninstall_cmds
19285
19286# Commands used to build a loadable module (assumed same as above if empty)
19287module_cmds=$lt_module_cmds_GCJ
19288module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19289
19290# Commands to strip libraries.
19291old_striplib=$lt_old_striplib
19292striplib=$lt_striplib
19293
19294# Dependencies to place before the objects being linked to create a
19295# shared library.
19296predep_objects=$lt_predep_objects_GCJ
19297
19298# Dependencies to place after the objects being linked to create a
19299# shared library.
19300postdep_objects=$lt_postdep_objects_GCJ
19301
19302# Dependencies to place before the objects being linked to create a
19303# shared library.
19304predeps=$lt_predeps_GCJ
19305
19306# Dependencies to place after the objects being linked to create a
19307# shared library.
19308postdeps=$lt_postdeps_GCJ
19309
19310# The library search path used internally by the compiler when linking
19311# a shared library.
19312compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19313
19314# Method to check whether dependent libraries are shared objects.
19315deplibs_check_method=$lt_deplibs_check_method
19316
19317# Command to use when deplibs_check_method == file_magic.
19318file_magic_cmd=$lt_file_magic_cmd
19319
19320# Flag that allows shared libraries with undefined symbols to be built.
19321allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19322
19323# Flag that forces no undefined symbols.
19324no_undefined_flag=$lt_no_undefined_flag_GCJ
19325
19326# Commands used to finish a libtool library installation in a directory.
19327finish_cmds=$lt_finish_cmds
19328
19329# Same as above, but a single script fragment to be evaled but not shown.
19330finish_eval=$lt_finish_eval
19331
19332# Take the output of nm and produce a listing of raw symbols and C names.
19333global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19334
19335# Transform the output of nm in a proper C declaration
19336global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19337
19338# Transform the output of nm in a C name address pair
19339global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19340
19341# This is the shared library runtime path variable.
19342runpath_var=$runpath_var
19343
19344# This is the shared library path variable.
19345shlibpath_var=$shlibpath_var
19346
19347# Is shlibpath searched before the hard-coded library search path?
19348shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19349
19350# How to hardcode a shared library path into an executable.
19351hardcode_action=$hardcode_action_GCJ
19352
19353# Whether we should hardcode library paths into libraries.
19354hardcode_into_libs=$hardcode_into_libs
19355
19356# Flag to hardcode \$libdir into a binary during linking.
19357# This must work even if \$libdir does not exist.
19358hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19359
19360# If ld is used when linking, flag to hardcode \$libdir into
19361# a binary during linking. This must work even if \$libdir does
19362# not exist.
19363hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19364
19365# Whether we need a single -rpath flag with a separated argument.
19366hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19367
19368# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19369# resulting binary.
19370hardcode_direct=$hardcode_direct_GCJ
19371
19372# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19373# resulting binary.
19374hardcode_minus_L=$hardcode_minus_L_GCJ
19375
19376# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19377# the resulting binary.
19378hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19379
19380# Set to yes if building a shared library automatically hardcodes DIR into the library
19381# and all subsequent libraries and executables linked against it.
19382hardcode_automatic=$hardcode_automatic_GCJ
19383
19384# Variables whose values should be saved in libtool wrapper scripts and
19385# restored at relink time.
19386variables_saved_for_relink="$variables_saved_for_relink"
19387
19388# Whether libtool must link a program against all its dependency libraries.
19389link_all_deplibs=$link_all_deplibs_GCJ
19390
19391# Compile-time system search path for libraries
19392sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19393
19394# Run-time system search path for libraries
19395sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19396
19397# Fix the shell variable \$srcfile for the compiler.
19398fix_srcfile_path="$fix_srcfile_path_GCJ"
19399
19400# Set to yes if exported symbols are required.
19401always_export_symbols=$always_export_symbols_GCJ
19402
19403# The commands to list exported symbols.
19404export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19405
19406# The commands to extract the exported symbol list from a shared archive.
19407extract_expsyms_cmds=$lt_extract_expsyms_cmds
19408
19409# Symbols that should not be listed in the preloaded symbols.
19410exclude_expsyms=$lt_exclude_expsyms_GCJ
19411
19412# Symbols that must always be exported.
19413include_expsyms=$lt_include_expsyms_GCJ
19414
19415# ### END LIBTOOL TAG CONFIG: $tagname
19416
19417__EOF__
19418
19419
19420else
19421  # If there is no Makefile yet, we rely on a make rule to execute
19422  # `config.status --recheck' to rerun these tests and create the
19423  # libtool script then.
19424  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19425  if test -f "$ltmain_in"; then
19426    test -f Makefile && make "$ltmain"
19427  fi
19428fi
19429
19430
19431ac_ext=c
19432ac_cpp='$CPP $CPPFLAGS'
19433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435ac_compiler_gnu=$ac_cv_c_compiler_gnu
19436
19437CC="$lt_save_CC"
19438
19439	else
19440	  tagname=""
19441	fi
19442	;;
19443
19444      RC)
19445
19446
19447
19448# Source file extension for RC test sources.
19449ac_ext=rc
19450
19451# Object file extension for compiled RC test sources.
19452objext=o
19453objext_RC=$objext
19454
19455# Code to be used in simple compile tests
19456lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19457
19458# Code to be used in simple link tests
19459lt_simple_link_test_code="$lt_simple_compile_test_code"
19460
19461# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19462
19463# If no C compiler was specified, use CC.
19464LTCC=${LTCC-"$CC"}
19465
19466# Allow CC to be a program name with arguments.
19467compiler=$CC
19468
19469
19470# save warnings/boilerplate of simple test code
19471ac_outfile=conftest.$ac_objext
19472printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19473eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19474_lt_compiler_boilerplate=`cat conftest.err`
19475$rm conftest*
19476
19477ac_outfile=conftest.$ac_objext
19478printf "$lt_simple_link_test_code" >conftest.$ac_ext
19479eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19480_lt_linker_boilerplate=`cat conftest.err`
19481$rm conftest*
19482
19483
19484# Allow CC to be a program name with arguments.
19485lt_save_CC="$CC"
19486CC=${RC-"windres"}
19487compiler=$CC
19488compiler_RC=$CC
19489for cc_temp in $compiler""; do
19490  case $cc_temp in
19491    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19492    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19493    \-*) ;;
19494    *) break;;
19495  esac
19496done
19497cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19498
19499lt_cv_prog_compiler_c_o_RC=yes
19500
19501# The else clause should only fire when bootstrapping the
19502# libtool distribution, otherwise you forgot to ship ltmain.sh
19503# with your package, and you will get complaints that there are
19504# no rules to generate ltmain.sh.
19505if test -f "$ltmain"; then
19506  # See if we are running on zsh, and set the options which allow our commands through
19507  # without removal of \ escapes.
19508  if test -n "${ZSH_VERSION+set}" ; then
19509    setopt NO_GLOB_SUBST
19510  fi
19511  # Now quote all the things that may contain metacharacters while being
19512  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19513  # variables and quote the copies for generation of the libtool script.
19514  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19515    SED SHELL STRIP \
19516    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19517    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19518    deplibs_check_method reload_flag reload_cmds need_locks \
19519    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19520    lt_cv_sys_global_symbol_to_c_name_address \
19521    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19522    old_postinstall_cmds old_postuninstall_cmds \
19523    compiler_RC \
19524    CC_RC \
19525    LD_RC \
19526    lt_prog_compiler_wl_RC \
19527    lt_prog_compiler_pic_RC \
19528    lt_prog_compiler_static_RC \
19529    lt_prog_compiler_no_builtin_flag_RC \
19530    export_dynamic_flag_spec_RC \
19531    thread_safe_flag_spec_RC \
19532    whole_archive_flag_spec_RC \
19533    enable_shared_with_static_runtimes_RC \
19534    old_archive_cmds_RC \
19535    old_archive_from_new_cmds_RC \
19536    predep_objects_RC \
19537    postdep_objects_RC \
19538    predeps_RC \
19539    postdeps_RC \
19540    compiler_lib_search_path_RC \
19541    archive_cmds_RC \
19542    archive_expsym_cmds_RC \
19543    postinstall_cmds_RC \
19544    postuninstall_cmds_RC \
19545    old_archive_from_expsyms_cmds_RC \
19546    allow_undefined_flag_RC \
19547    no_undefined_flag_RC \
19548    export_symbols_cmds_RC \
19549    hardcode_libdir_flag_spec_RC \
19550    hardcode_libdir_flag_spec_ld_RC \
19551    hardcode_libdir_separator_RC \
19552    hardcode_automatic_RC \
19553    module_cmds_RC \
19554    module_expsym_cmds_RC \
19555    lt_cv_prog_compiler_c_o_RC \
19556    exclude_expsyms_RC \
19557    include_expsyms_RC; do
19558
19559    case $var in
19560    old_archive_cmds_RC | \
19561    old_archive_from_new_cmds_RC | \
19562    archive_cmds_RC | \
19563    archive_expsym_cmds_RC | \
19564    module_cmds_RC | \
19565    module_expsym_cmds_RC | \
19566    old_archive_from_expsyms_cmds_RC | \
19567    export_symbols_cmds_RC | \
19568    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19569    postinstall_cmds | postuninstall_cmds | \
19570    old_postinstall_cmds | old_postuninstall_cmds | \
19571    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19572      # Double-quote double-evaled strings.
19573      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19574      ;;
19575    *)
19576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19577      ;;
19578    esac
19579  done
19580
19581  case $lt_echo in
19582  *'\$0 --fallback-echo"')
19583    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19584    ;;
19585  esac
19586
19587cfgfile="$ofile"
19588
19589  cat <<__EOF__ >> "$cfgfile"
19590# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19591
19592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19593
19594# Shell to use when invoking shell scripts.
19595SHELL=$lt_SHELL
19596
19597# Whether or not to build shared libraries.
19598build_libtool_libs=$enable_shared
19599
19600# Whether or not to build static libraries.
19601build_old_libs=$enable_static
19602
19603# Whether or not to add -lc for building shared libraries.
19604build_libtool_need_lc=$archive_cmds_need_lc_RC
19605
19606# Whether or not to disallow shared libs when runtime libs are static
19607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19608
19609# Whether or not to optimize for fast installation.
19610fast_install=$enable_fast_install
19611
19612# The host system.
19613host_alias=$host_alias
19614host=$host
19615host_os=$host_os
19616
19617# The build system.
19618build_alias=$build_alias
19619build=$build
19620build_os=$build_os
19621
19622# An echo program that does not interpret backslashes.
19623echo=$lt_echo
19624
19625# The archiver.
19626AR=$lt_AR
19627AR_FLAGS=$lt_AR_FLAGS
19628
19629# A C compiler.
19630LTCC=$lt_LTCC
19631
19632# A language-specific compiler.
19633CC=$lt_compiler_RC
19634
19635# Is the compiler the GNU C compiler?
19636with_gcc=$GCC_RC
19637
19638# An ERE matcher.
19639EGREP=$lt_EGREP
19640
19641# The linker used to build libraries.
19642LD=$lt_LD_RC
19643
19644# Whether we need hard or soft links.
19645LN_S=$lt_LN_S
19646
19647# A BSD-compatible nm program.
19648NM=$lt_NM
19649
19650# A symbol stripping program
19651STRIP=$lt_STRIP
19652
19653# Used to examine libraries when file_magic_cmd begins "file"
19654MAGIC_CMD=$MAGIC_CMD
19655
19656# Used on cygwin: DLL creation program.
19657DLLTOOL="$DLLTOOL"
19658
19659# Used on cygwin: object dumper.
19660OBJDUMP="$OBJDUMP"
19661
19662# Used on cygwin: assembler.
19663AS="$AS"
19664
19665# The name of the directory that contains temporary libtool files.
19666objdir=$objdir
19667
19668# How to create reloadable object files.
19669reload_flag=$lt_reload_flag
19670reload_cmds=$lt_reload_cmds
19671
19672# How to pass a linker flag through the compiler.
19673wl=$lt_lt_prog_compiler_wl_RC
19674
19675# Object file suffix (normally "o").
19676objext="$ac_objext"
19677
19678# Old archive suffix (normally "a").
19679libext="$libext"
19680
19681# Shared library suffix (normally ".so").
19682shrext_cmds='$shrext_cmds'
19683
19684# Executable file suffix (normally "").
19685exeext="$exeext"
19686
19687# Additional compiler flags for building library objects.
19688pic_flag=$lt_lt_prog_compiler_pic_RC
19689pic_mode=$pic_mode
19690
19691# What is the maximum length of a command?
19692max_cmd_len=$lt_cv_sys_max_cmd_len
19693
19694# Does compiler simultaneously support -c and -o options?
19695compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19696
19697# Must we lock files when doing compilation?
19698need_locks=$lt_need_locks
19699
19700# Do we need the lib prefix for modules?
19701need_lib_prefix=$need_lib_prefix
19702
19703# Do we need a version for libraries?
19704need_version=$need_version
19705
19706# Whether dlopen is supported.
19707dlopen_support=$enable_dlopen
19708
19709# Whether dlopen of programs is supported.
19710dlopen_self=$enable_dlopen_self
19711
19712# Whether dlopen of statically linked programs is supported.
19713dlopen_self_static=$enable_dlopen_self_static
19714
19715# Compiler flag to prevent dynamic linking.
19716link_static_flag=$lt_lt_prog_compiler_static_RC
19717
19718# Compiler flag to turn off builtin functions.
19719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19720
19721# Compiler flag to allow reflexive dlopens.
19722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19723
19724# Compiler flag to generate shared objects directly from archives.
19725whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19726
19727# Compiler flag to generate thread-safe objects.
19728thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19729
19730# Library versioning type.
19731version_type=$version_type
19732
19733# Format of library name prefix.
19734libname_spec=$lt_libname_spec
19735
19736# List of archive names.  First name is the real one, the rest are links.
19737# The last name is the one that the linker finds with -lNAME.
19738library_names_spec=$lt_library_names_spec
19739
19740# The coded name of the library, if different from the real name.
19741soname_spec=$lt_soname_spec
19742
19743# Commands used to build and install an old-style archive.
19744RANLIB=$lt_RANLIB
19745old_archive_cmds=$lt_old_archive_cmds_RC
19746old_postinstall_cmds=$lt_old_postinstall_cmds
19747old_postuninstall_cmds=$lt_old_postuninstall_cmds
19748
19749# Create an old-style archive from a shared archive.
19750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19751
19752# Create a temporary old-style archive to link instead of a shared archive.
19753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19754
19755# Commands used to build and install a shared archive.
19756archive_cmds=$lt_archive_cmds_RC
19757archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19758postinstall_cmds=$lt_postinstall_cmds
19759postuninstall_cmds=$lt_postuninstall_cmds
19760
19761# Commands used to build a loadable module (assumed same as above if empty)
19762module_cmds=$lt_module_cmds_RC
19763module_expsym_cmds=$lt_module_expsym_cmds_RC
19764
19765# Commands to strip libraries.
19766old_striplib=$lt_old_striplib
19767striplib=$lt_striplib
19768
19769# Dependencies to place before the objects being linked to create a
19770# shared library.
19771predep_objects=$lt_predep_objects_RC
19772
19773# Dependencies to place after the objects being linked to create a
19774# shared library.
19775postdep_objects=$lt_postdep_objects_RC
19776
19777# Dependencies to place before the objects being linked to create a
19778# shared library.
19779predeps=$lt_predeps_RC
19780
19781# Dependencies to place after the objects being linked to create a
19782# shared library.
19783postdeps=$lt_postdeps_RC
19784
19785# The library search path used internally by the compiler when linking
19786# a shared library.
19787compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19788
19789# Method to check whether dependent libraries are shared objects.
19790deplibs_check_method=$lt_deplibs_check_method
19791
19792# Command to use when deplibs_check_method == file_magic.
19793file_magic_cmd=$lt_file_magic_cmd
19794
19795# Flag that allows shared libraries with undefined symbols to be built.
19796allow_undefined_flag=$lt_allow_undefined_flag_RC
19797
19798# Flag that forces no undefined symbols.
19799no_undefined_flag=$lt_no_undefined_flag_RC
19800
19801# Commands used to finish a libtool library installation in a directory.
19802finish_cmds=$lt_finish_cmds
19803
19804# Same as above, but a single script fragment to be evaled but not shown.
19805finish_eval=$lt_finish_eval
19806
19807# Take the output of nm and produce a listing of raw symbols and C names.
19808global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19809
19810# Transform the output of nm in a proper C declaration
19811global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19812
19813# Transform the output of nm in a C name address pair
19814global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19815
19816# This is the shared library runtime path variable.
19817runpath_var=$runpath_var
19818
19819# This is the shared library path variable.
19820shlibpath_var=$shlibpath_var
19821
19822# Is shlibpath searched before the hard-coded library search path?
19823shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19824
19825# How to hardcode a shared library path into an executable.
19826hardcode_action=$hardcode_action_RC
19827
19828# Whether we should hardcode library paths into libraries.
19829hardcode_into_libs=$hardcode_into_libs
19830
19831# Flag to hardcode \$libdir into a binary during linking.
19832# This must work even if \$libdir does not exist.
19833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19834
19835# If ld is used when linking, flag to hardcode \$libdir into
19836# a binary during linking. This must work even if \$libdir does
19837# not exist.
19838hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19839
19840# Whether we need a single -rpath flag with a separated argument.
19841hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19842
19843# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19844# resulting binary.
19845hardcode_direct=$hardcode_direct_RC
19846
19847# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19848# resulting binary.
19849hardcode_minus_L=$hardcode_minus_L_RC
19850
19851# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19852# the resulting binary.
19853hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19854
19855# Set to yes if building a shared library automatically hardcodes DIR into the library
19856# and all subsequent libraries and executables linked against it.
19857hardcode_automatic=$hardcode_automatic_RC
19858
19859# Variables whose values should be saved in libtool wrapper scripts and
19860# restored at relink time.
19861variables_saved_for_relink="$variables_saved_for_relink"
19862
19863# Whether libtool must link a program against all its dependency libraries.
19864link_all_deplibs=$link_all_deplibs_RC
19865
19866# Compile-time system search path for libraries
19867sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19868
19869# Run-time system search path for libraries
19870sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19871
19872# Fix the shell variable \$srcfile for the compiler.
19873fix_srcfile_path="$fix_srcfile_path_RC"
19874
19875# Set to yes if exported symbols are required.
19876always_export_symbols=$always_export_symbols_RC
19877
19878# The commands to list exported symbols.
19879export_symbols_cmds=$lt_export_symbols_cmds_RC
19880
19881# The commands to extract the exported symbol list from a shared archive.
19882extract_expsyms_cmds=$lt_extract_expsyms_cmds
19883
19884# Symbols that should not be listed in the preloaded symbols.
19885exclude_expsyms=$lt_exclude_expsyms_RC
19886
19887# Symbols that must always be exported.
19888include_expsyms=$lt_include_expsyms_RC
19889
19890# ### END LIBTOOL TAG CONFIG: $tagname
19891
19892__EOF__
19893
19894
19895else
19896  # If there is no Makefile yet, we rely on a make rule to execute
19897  # `config.status --recheck' to rerun these tests and create the
19898  # libtool script then.
19899  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19900  if test -f "$ltmain_in"; then
19901    test -f Makefile && make "$ltmain"
19902  fi
19903fi
19904
19905
19906ac_ext=c
19907ac_cpp='$CPP $CPPFLAGS'
19908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19910ac_compiler_gnu=$ac_cv_c_compiler_gnu
19911
19912CC="$lt_save_CC"
19913
19914	;;
19915
19916      *)
19917	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19918echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19919   { (exit 1); exit 1; }; }
19920	;;
19921      esac
19922
19923      # Append the new tag name to the list of available tags.
19924      if test -n "$tagname" ; then
19925      available_tags="$available_tags $tagname"
19926    fi
19927    fi
19928  done
19929  IFS="$lt_save_ifs"
19930
19931  # Now substitute the updated list of available tags.
19932  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19933    mv "${ofile}T" "$ofile"
19934    chmod +x "$ofile"
19935  else
19936    rm -f "${ofile}T"
19937    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19938echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19939   { (exit 1); exit 1; }; }
19940  fi
19941fi
19942
19943
19944
19945# This can be used to rebuild libtool when needed
19946LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19947
19948# Always use our own libtool.
19949LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19950
19951# Prevent multiple expansion
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19974echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19975if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19976  echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978  ac_check_lib_save_LIBS=$LIBS
19979LIBS="-lpthread  $LIBS"
19980cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h.  */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h.  */
19986
19987/* Override any gcc2 internal prototype to avoid an error.  */
19988#ifdef __cplusplus
19989extern "C"
19990#endif
19991/* We use char because int might match the return type of a gcc2
19992   builtin and then its argument prototype would still apply.  */
19993char pthread_create ();
19994int
19995main ()
19996{
19997pthread_create ();
19998  ;
19999  return 0;
20000}
20001_ACEOF
20002rm -f conftest.$ac_objext conftest$ac_exeext
20003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20004  (eval $ac_link) 2>conftest.er1
20005  ac_status=$?
20006  grep -v '^ *+' conftest.er1 >conftest.err
20007  rm -f conftest.er1
20008  cat conftest.err >&5
20009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010  (exit $ac_status); } &&
20011	 { ac_try='test -z "$ac_c_werror_flag"
20012			 || test ! -s conftest.err'
20013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014  (eval $ac_try) 2>&5
20015  ac_status=$?
20016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017  (exit $ac_status); }; } &&
20018	 { ac_try='test -s conftest$ac_exeext'
20019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020  (eval $ac_try) 2>&5
20021  ac_status=$?
20022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023  (exit $ac_status); }; }; then
20024  ac_cv_lib_pthread_pthread_create=yes
20025else
20026  echo "$as_me: failed program was:" >&5
20027sed 's/^/| /' conftest.$ac_ext >&5
20028
20029ac_cv_lib_pthread_pthread_create=no
20030fi
20031rm -f conftest.err conftest.$ac_objext \
20032      conftest$ac_exeext conftest.$ac_ext
20033LIBS=$ac_check_lib_save_LIBS
20034fi
20035echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20036echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20037if test $ac_cv_lib_pthread_pthread_create = yes; then
20038  cat >>confdefs.h <<_ACEOF
20039#define HAVE_LIBPTHREAD 1
20040_ACEOF
20041
20042  LIBS="-lpthread $LIBS"
20043
20044else
20045
20046echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
20047echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
20048if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
20049  echo $ECHO_N "(cached) $ECHO_C" >&6
20050else
20051  ac_check_lib_save_LIBS=$LIBS
20052LIBS="-lthreads  $LIBS"
20053cat >conftest.$ac_ext <<_ACEOF
20054/* confdefs.h.  */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h.  */
20059
20060/* Override any gcc2 internal prototype to avoid an error.  */
20061#ifdef __cplusplus
20062extern "C"
20063#endif
20064/* We use char because int might match the return type of a gcc2
20065   builtin and then its argument prototype would still apply.  */
20066char cthread_fork ();
20067int
20068main ()
20069{
20070cthread_fork ();
20071  ;
20072  return 0;
20073}
20074_ACEOF
20075rm -f conftest.$ac_objext conftest$ac_exeext
20076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20077  (eval $ac_link) 2>conftest.er1
20078  ac_status=$?
20079  grep -v '^ *+' conftest.er1 >conftest.err
20080  rm -f conftest.er1
20081  cat conftest.err >&5
20082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083  (exit $ac_status); } &&
20084	 { ac_try='test -z "$ac_c_werror_flag"
20085			 || test ! -s conftest.err'
20086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087  (eval $ac_try) 2>&5
20088  ac_status=$?
20089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090  (exit $ac_status); }; } &&
20091	 { ac_try='test -s conftest$ac_exeext'
20092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093  (eval $ac_try) 2>&5
20094  ac_status=$?
20095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096  (exit $ac_status); }; }; then
20097  ac_cv_lib_threads_cthread_fork=yes
20098else
20099  echo "$as_me: failed program was:" >&5
20100sed 's/^/| /' conftest.$ac_ext >&5
20101
20102ac_cv_lib_threads_cthread_fork=no
20103fi
20104rm -f conftest.err conftest.$ac_objext \
20105      conftest$ac_exeext conftest.$ac_ext
20106LIBS=$ac_check_lib_save_LIBS
20107fi
20108echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
20109echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
20110if test $ac_cv_lib_threads_cthread_fork = yes; then
20111  cat >>confdefs.h <<_ACEOF
20112#define HAVE_LIBTHREADS 1
20113_ACEOF
20114
20115  LIBS="-lthreads $LIBS"
20116
20117fi
20118
20119fi
20120
20121
20122
20123
20124        MKINSTALLDIRS=
20125  if test -n "$ac_aux_dir"; then
20126    case "$ac_aux_dir" in
20127      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
20128      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
20129    esac
20130  fi
20131  if test -z "$MKINSTALLDIRS"; then
20132    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
20133  fi
20134
20135
20136
20137  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20138echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
20139    # Check whether --enable-nls or --disable-nls was given.
20140if test "${enable_nls+set}" = set; then
20141  enableval="$enable_nls"
20142  USE_NLS=$enableval
20143else
20144  USE_NLS=yes
20145fi;
20146  echo "$as_me:$LINENO: result: $USE_NLS" >&5
20147echo "${ECHO_T}$USE_NLS" >&6
20148
20149
20150
20151
20152
20153
20154# Prepare PATH_SEPARATOR.
20155# The user is always right.
20156if test "${PATH_SEPARATOR+set}" != set; then
20157  echo "#! /bin/sh" >conf$$.sh
20158  echo  "exit 0"   >>conf$$.sh
20159  chmod +x conf$$.sh
20160  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20161    PATH_SEPARATOR=';'
20162  else
20163    PATH_SEPARATOR=:
20164  fi
20165  rm -f conf$$.sh
20166fi
20167
20168# Find out how to test for executable files. Don't use a zero-byte file,
20169# as systems may use methods other than mode bits to determine executability.
20170cat >conf$$.file <<_ASEOF
20171#! /bin/sh
20172exit 0
20173_ASEOF
20174chmod +x conf$$.file
20175if test -x conf$$.file >/dev/null 2>&1; then
20176  ac_executable_p="test -x"
20177else
20178  ac_executable_p="test -f"
20179fi
20180rm -f conf$$.file
20181
20182# Extract the first word of "msgfmt", so it can be a program name with args.
20183set dummy msgfmt; ac_word=$2
20184echo "$as_me:$LINENO: checking for $ac_word" >&5
20185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20186if test "${ac_cv_path_MSGFMT+set}" = set; then
20187  echo $ECHO_N "(cached) $ECHO_C" >&6
20188else
20189  case "$MSGFMT" in
20190  [\\/]* | ?:[\\/]*)
20191    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20192    ;;
20193  *)
20194    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20195    for ac_dir in $PATH; do
20196      IFS="$ac_save_IFS"
20197      test -z "$ac_dir" && ac_dir=.
20198      for ac_exec_ext in '' $ac_executable_extensions; do
20199        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20200          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20201          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20202     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20203            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20204            break 2
20205          fi
20206        fi
20207      done
20208    done
20209    IFS="$ac_save_IFS"
20210  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20211    ;;
20212esac
20213fi
20214MSGFMT="$ac_cv_path_MSGFMT"
20215if test "$MSGFMT" != ":"; then
20216  echo "$as_me:$LINENO: result: $MSGFMT" >&5
20217echo "${ECHO_T}$MSGFMT" >&6
20218else
20219  echo "$as_me:$LINENO: result: no" >&5
20220echo "${ECHO_T}no" >&6
20221fi
20222
20223  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20224set dummy gmsgfmt; ac_word=$2
20225echo "$as_me:$LINENO: checking for $ac_word" >&5
20226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20227if test "${ac_cv_path_GMSGFMT+set}" = set; then
20228  echo $ECHO_N "(cached) $ECHO_C" >&6
20229else
20230  case $GMSGFMT in
20231  [\\/]* | ?:[\\/]*)
20232  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20233  ;;
20234  *)
20235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20236for as_dir in $PATH
20237do
20238  IFS=$as_save_IFS
20239  test -z "$as_dir" && as_dir=.
20240  for ac_exec_ext in '' $ac_executable_extensions; do
20241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20242    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20244    break 2
20245  fi
20246done
20247done
20248
20249  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20250  ;;
20251esac
20252fi
20253GMSGFMT=$ac_cv_path_GMSGFMT
20254
20255if test -n "$GMSGFMT"; then
20256  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20257echo "${ECHO_T}$GMSGFMT" >&6
20258else
20259  echo "$as_me:$LINENO: result: no" >&5
20260echo "${ECHO_T}no" >&6
20261fi
20262
20263
20264
20265# Prepare PATH_SEPARATOR.
20266# The user is always right.
20267if test "${PATH_SEPARATOR+set}" != set; then
20268  echo "#! /bin/sh" >conf$$.sh
20269  echo  "exit 0"   >>conf$$.sh
20270  chmod +x conf$$.sh
20271  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20272    PATH_SEPARATOR=';'
20273  else
20274    PATH_SEPARATOR=:
20275  fi
20276  rm -f conf$$.sh
20277fi
20278
20279# Find out how to test for executable files. Don't use a zero-byte file,
20280# as systems may use methods other than mode bits to determine executability.
20281cat >conf$$.file <<_ASEOF
20282#! /bin/sh
20283exit 0
20284_ASEOF
20285chmod +x conf$$.file
20286if test -x conf$$.file >/dev/null 2>&1; then
20287  ac_executable_p="test -x"
20288else
20289  ac_executable_p="test -f"
20290fi
20291rm -f conf$$.file
20292
20293# Extract the first word of "xgettext", so it can be a program name with args.
20294set dummy xgettext; ac_word=$2
20295echo "$as_me:$LINENO: checking for $ac_word" >&5
20296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20297if test "${ac_cv_path_XGETTEXT+set}" = set; then
20298  echo $ECHO_N "(cached) $ECHO_C" >&6
20299else
20300  case "$XGETTEXT" in
20301  [\\/]* | ?:[\\/]*)
20302    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20303    ;;
20304  *)
20305    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20306    for ac_dir in $PATH; do
20307      IFS="$ac_save_IFS"
20308      test -z "$ac_dir" && ac_dir=.
20309      for ac_exec_ext in '' $ac_executable_extensions; do
20310        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20311          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20312          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20313     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20314            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20315            break 2
20316          fi
20317        fi
20318      done
20319    done
20320    IFS="$ac_save_IFS"
20321  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20322    ;;
20323esac
20324fi
20325XGETTEXT="$ac_cv_path_XGETTEXT"
20326if test "$XGETTEXT" != ":"; then
20327  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20328echo "${ECHO_T}$XGETTEXT" >&6
20329else
20330  echo "$as_me:$LINENO: result: no" >&5
20331echo "${ECHO_T}no" >&6
20332fi
20333
20334    rm -f messages.po
20335
20336
20337# Prepare PATH_SEPARATOR.
20338# The user is always right.
20339if test "${PATH_SEPARATOR+set}" != set; then
20340  echo "#! /bin/sh" >conf$$.sh
20341  echo  "exit 0"   >>conf$$.sh
20342  chmod +x conf$$.sh
20343  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20344    PATH_SEPARATOR=';'
20345  else
20346    PATH_SEPARATOR=:
20347  fi
20348  rm -f conf$$.sh
20349fi
20350
20351# Find out how to test for executable files. Don't use a zero-byte file,
20352# as systems may use methods other than mode bits to determine executability.
20353cat >conf$$.file <<_ASEOF
20354#! /bin/sh
20355exit 0
20356_ASEOF
20357chmod +x conf$$.file
20358if test -x conf$$.file >/dev/null 2>&1; then
20359  ac_executable_p="test -x"
20360else
20361  ac_executable_p="test -f"
20362fi
20363rm -f conf$$.file
20364
20365# Extract the first word of "msgmerge", so it can be a program name with args.
20366set dummy msgmerge; ac_word=$2
20367echo "$as_me:$LINENO: checking for $ac_word" >&5
20368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20369if test "${ac_cv_path_MSGMERGE+set}" = set; then
20370  echo $ECHO_N "(cached) $ECHO_C" >&6
20371else
20372  case "$MSGMERGE" in
20373  [\\/]* | ?:[\\/]*)
20374    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20375    ;;
20376  *)
20377    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20378    for ac_dir in $PATH; do
20379      IFS="$ac_save_IFS"
20380      test -z "$ac_dir" && ac_dir=.
20381      for ac_exec_ext in '' $ac_executable_extensions; do
20382        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20383          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20384          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20385            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20386            break 2
20387          fi
20388        fi
20389      done
20390    done
20391    IFS="$ac_save_IFS"
20392  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20393    ;;
20394esac
20395fi
20396MSGMERGE="$ac_cv_path_MSGMERGE"
20397if test "$MSGMERGE" != ":"; then
20398  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20399echo "${ECHO_T}$MSGMERGE" >&6
20400else
20401  echo "$as_me:$LINENO: result: no" >&5
20402echo "${ECHO_T}no" >&6
20403fi
20404
20405
20406      if test "$GMSGFMT" != ":"; then
20407            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
20408       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20409      : ;
20410    else
20411      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
20412      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
20413echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
20414      GMSGFMT=":"
20415    fi
20416  fi
20417
20418      if test "$XGETTEXT" != ":"; then
20419            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
20420       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20421      : ;
20422    else
20423      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
20424echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
20425      XGETTEXT=":"
20426    fi
20427        rm -f messages.po
20428  fi
20429
20430            ac_config_commands="$ac_config_commands default-1"
20431
20432
20433
20434    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
20435echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
20436if test "${ac_cv_gnu_library_2+set}" = set; then
20437  echo $ECHO_N "(cached) $ECHO_C" >&6
20438else
20439  cat >conftest.$ac_ext <<_ACEOF
20440/* confdefs.h.  */
20441_ACEOF
20442cat confdefs.h >>conftest.$ac_ext
20443cat >>conftest.$ac_ext <<_ACEOF
20444/* end confdefs.h.  */
20445
20446#include <features.h>
20447#ifdef __GNU_LIBRARY__
20448 #if (__GLIBC__ >= 2)
20449  Lucky GNU user
20450 #endif
20451#endif
20452
20453_ACEOF
20454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20455  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20456  ac_cv_gnu_library_2=yes
20457else
20458  ac_cv_gnu_library_2=no
20459fi
20460rm -f conftest*
20461
20462
20463
20464fi
20465echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
20466echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
20467
20468    GLIBC2="$ac_cv_gnu_library_2"
20469
20470
20471if test -n "$ac_tool_prefix"; then
20472  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20473set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20474echo "$as_me:$LINENO: checking for $ac_word" >&5
20475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20476if test "${ac_cv_prog_RANLIB+set}" = set; then
20477  echo $ECHO_N "(cached) $ECHO_C" >&6
20478else
20479  if test -n "$RANLIB"; then
20480  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20481else
20482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20483for as_dir in $PATH
20484do
20485  IFS=$as_save_IFS
20486  test -z "$as_dir" && as_dir=.
20487  for ac_exec_ext in '' $ac_executable_extensions; do
20488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20489    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20491    break 2
20492  fi
20493done
20494done
20495
20496fi
20497fi
20498RANLIB=$ac_cv_prog_RANLIB
20499if test -n "$RANLIB"; then
20500  echo "$as_me:$LINENO: result: $RANLIB" >&5
20501echo "${ECHO_T}$RANLIB" >&6
20502else
20503  echo "$as_me:$LINENO: result: no" >&5
20504echo "${ECHO_T}no" >&6
20505fi
20506
20507fi
20508if test -z "$ac_cv_prog_RANLIB"; then
20509  ac_ct_RANLIB=$RANLIB
20510  # Extract the first word of "ranlib", so it can be a program name with args.
20511set dummy ranlib; ac_word=$2
20512echo "$as_me:$LINENO: checking for $ac_word" >&5
20513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20514if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20515  echo $ECHO_N "(cached) $ECHO_C" >&6
20516else
20517  if test -n "$ac_ct_RANLIB"; then
20518  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20519else
20520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20521for as_dir in $PATH
20522do
20523  IFS=$as_save_IFS
20524  test -z "$as_dir" && as_dir=.
20525  for ac_exec_ext in '' $ac_executable_extensions; do
20526  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20527    ac_cv_prog_ac_ct_RANLIB="ranlib"
20528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20529    break 2
20530  fi
20531done
20532done
20533
20534  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20535fi
20536fi
20537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20538if test -n "$ac_ct_RANLIB"; then
20539  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20540echo "${ECHO_T}$ac_ct_RANLIB" >&6
20541else
20542  echo "$as_me:$LINENO: result: no" >&5
20543echo "${ECHO_T}no" >&6
20544fi
20545
20546  RANLIB=$ac_ct_RANLIB
20547else
20548  RANLIB="$ac_cv_prog_RANLIB"
20549fi
20550
20551echo "$as_me:$LINENO: checking for library containing strerror" >&5
20552echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
20553if test "${ac_cv_search_strerror+set}" = set; then
20554  echo $ECHO_N "(cached) $ECHO_C" >&6
20555else
20556  ac_func_search_save_LIBS=$LIBS
20557ac_cv_search_strerror=no
20558cat >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
20565/* Override any gcc2 internal prototype to avoid an error.  */
20566#ifdef __cplusplus
20567extern "C"
20568#endif
20569/* We use char because int might match the return type of a gcc2
20570   builtin and then its argument prototype would still apply.  */
20571char strerror ();
20572int
20573main ()
20574{
20575strerror ();
20576  ;
20577  return 0;
20578}
20579_ACEOF
20580rm -f conftest.$ac_objext conftest$ac_exeext
20581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20582  (eval $ac_link) 2>conftest.er1
20583  ac_status=$?
20584  grep -v '^ *+' conftest.er1 >conftest.err
20585  rm -f conftest.er1
20586  cat conftest.err >&5
20587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588  (exit $ac_status); } &&
20589	 { ac_try='test -z "$ac_c_werror_flag"
20590			 || test ! -s conftest.err'
20591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592  (eval $ac_try) 2>&5
20593  ac_status=$?
20594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595  (exit $ac_status); }; } &&
20596	 { ac_try='test -s conftest$ac_exeext'
20597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598  (eval $ac_try) 2>&5
20599  ac_status=$?
20600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601  (exit $ac_status); }; }; then
20602  ac_cv_search_strerror="none required"
20603else
20604  echo "$as_me: failed program was:" >&5
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
20607fi
20608rm -f conftest.err conftest.$ac_objext \
20609      conftest$ac_exeext conftest.$ac_ext
20610if test "$ac_cv_search_strerror" = no; then
20611  for ac_lib in cposix; do
20612    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20613    cat >conftest.$ac_ext <<_ACEOF
20614/* confdefs.h.  */
20615_ACEOF
20616cat confdefs.h >>conftest.$ac_ext
20617cat >>conftest.$ac_ext <<_ACEOF
20618/* end confdefs.h.  */
20619
20620/* Override any gcc2 internal prototype to avoid an error.  */
20621#ifdef __cplusplus
20622extern "C"
20623#endif
20624/* We use char because int might match the return type of a gcc2
20625   builtin and then its argument prototype would still apply.  */
20626char strerror ();
20627int
20628main ()
20629{
20630strerror ();
20631  ;
20632  return 0;
20633}
20634_ACEOF
20635rm -f conftest.$ac_objext conftest$ac_exeext
20636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20637  (eval $ac_link) 2>conftest.er1
20638  ac_status=$?
20639  grep -v '^ *+' conftest.er1 >conftest.err
20640  rm -f conftest.er1
20641  cat conftest.err >&5
20642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643  (exit $ac_status); } &&
20644	 { ac_try='test -z "$ac_c_werror_flag"
20645			 || test ! -s conftest.err'
20646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647  (eval $ac_try) 2>&5
20648  ac_status=$?
20649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650  (exit $ac_status); }; } &&
20651	 { ac_try='test -s conftest$ac_exeext'
20652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653  (eval $ac_try) 2>&5
20654  ac_status=$?
20655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656  (exit $ac_status); }; }; then
20657  ac_cv_search_strerror="-l$ac_lib"
20658break
20659else
20660  echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663fi
20664rm -f conftest.err conftest.$ac_objext \
20665      conftest$ac_exeext conftest.$ac_ext
20666  done
20667fi
20668LIBS=$ac_func_search_save_LIBS
20669fi
20670echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20671echo "${ECHO_T}$ac_cv_search_strerror" >&6
20672if test "$ac_cv_search_strerror" != no; then
20673  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
20674
20675fi
20676
20677echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20678echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20679if test "${ac_cv_c_const+set}" = set; then
20680  echo $ECHO_N "(cached) $ECHO_C" >&6
20681else
20682  cat >conftest.$ac_ext <<_ACEOF
20683/* confdefs.h.  */
20684_ACEOF
20685cat confdefs.h >>conftest.$ac_ext
20686cat >>conftest.$ac_ext <<_ACEOF
20687/* end confdefs.h.  */
20688
20689int
20690main ()
20691{
20692/* FIXME: Include the comments suggested by Paul. */
20693#ifndef __cplusplus
20694  /* Ultrix mips cc rejects this.  */
20695  typedef int charset[2];
20696  const charset x;
20697  /* SunOS 4.1.1 cc rejects this.  */
20698  char const *const *ccp;
20699  char **p;
20700  /* NEC SVR4.0.2 mips cc rejects this.  */
20701  struct point {int x, y;};
20702  static struct point const zero = {0,0};
20703  /* AIX XL C 1.02.0.0 rejects this.
20704     It does not let you subtract one const X* pointer from another in
20705     an arm of an if-expression whose if-part is not a constant
20706     expression */
20707  const char *g = "string";
20708  ccp = &g + (g ? g-g : 0);
20709  /* HPUX 7.0 cc rejects these. */
20710  ++ccp;
20711  p = (char**) ccp;
20712  ccp = (char const *const *) p;
20713  { /* SCO 3.2v4 cc rejects this.  */
20714    char *t;
20715    char const *s = 0 ? (char *) 0 : (char const *) 0;
20716
20717    *t++ = 0;
20718  }
20719  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20720    int x[] = {25, 17};
20721    const int *foo = &x[0];
20722    ++foo;
20723  }
20724  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20725    typedef const int *iptr;
20726    iptr p = 0;
20727    ++p;
20728  }
20729  { /* AIX XL C 1.02.0.0 rejects this saying
20730       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20731    struct s { int j; const int *ap[3]; };
20732    struct s *b; b->j = 5;
20733  }
20734  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20735    const int foo = 10;
20736  }
20737#endif
20738
20739  ;
20740  return 0;
20741}
20742_ACEOF
20743rm -f conftest.$ac_objext
20744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745  (eval $ac_compile) 2>conftest.er1
20746  ac_status=$?
20747  grep -v '^ *+' conftest.er1 >conftest.err
20748  rm -f conftest.er1
20749  cat conftest.err >&5
20750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751  (exit $ac_status); } &&
20752	 { ac_try='test -z "$ac_c_werror_flag"
20753			 || test ! -s conftest.err'
20754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755  (eval $ac_try) 2>&5
20756  ac_status=$?
20757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758  (exit $ac_status); }; } &&
20759	 { ac_try='test -s conftest.$ac_objext'
20760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761  (eval $ac_try) 2>&5
20762  ac_status=$?
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); }; }; then
20765  ac_cv_c_const=yes
20766else
20767  echo "$as_me: failed program was:" >&5
20768sed 's/^/| /' conftest.$ac_ext >&5
20769
20770ac_cv_c_const=no
20771fi
20772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20773fi
20774echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20775echo "${ECHO_T}$ac_cv_c_const" >&6
20776if test $ac_cv_c_const = no; then
20777
20778cat >>confdefs.h <<\_ACEOF
20779#define const
20780_ACEOF
20781
20782fi
20783
20784
20785  echo "$as_me:$LINENO: checking for signed" >&5
20786echo $ECHO_N "checking for signed... $ECHO_C" >&6
20787if test "${bh_cv_c_signed+set}" = set; then
20788  echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790  cat >conftest.$ac_ext <<_ACEOF
20791/* confdefs.h.  */
20792_ACEOF
20793cat confdefs.h >>conftest.$ac_ext
20794cat >>conftest.$ac_ext <<_ACEOF
20795/* end confdefs.h.  */
20796
20797int
20798main ()
20799{
20800signed char x;
20801  ;
20802  return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext
20806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807  (eval $ac_compile) 2>conftest.er1
20808  ac_status=$?
20809  grep -v '^ *+' conftest.er1 >conftest.err
20810  rm -f conftest.er1
20811  cat conftest.err >&5
20812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813  (exit $ac_status); } &&
20814	 { ac_try='test -z "$ac_c_werror_flag"
20815			 || test ! -s conftest.err'
20816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817  (eval $ac_try) 2>&5
20818  ac_status=$?
20819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820  (exit $ac_status); }; } &&
20821	 { ac_try='test -s conftest.$ac_objext'
20822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823  (eval $ac_try) 2>&5
20824  ac_status=$?
20825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826  (exit $ac_status); }; }; then
20827  bh_cv_c_signed=yes
20828else
20829  echo "$as_me: failed program was:" >&5
20830sed 's/^/| /' conftest.$ac_ext >&5
20831
20832bh_cv_c_signed=no
20833fi
20834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20835fi
20836echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
20837echo "${ECHO_T}$bh_cv_c_signed" >&6
20838  if test $bh_cv_c_signed = no; then
20839
20840cat >>confdefs.h <<\_ACEOF
20841#define signed
20842_ACEOF
20843
20844  fi
20845
20846echo "$as_me:$LINENO: checking for inline" >&5
20847echo $ECHO_N "checking for inline... $ECHO_C" >&6
20848if test "${ac_cv_c_inline+set}" = set; then
20849  echo $ECHO_N "(cached) $ECHO_C" >&6
20850else
20851  ac_cv_c_inline=no
20852for ac_kw in inline __inline__ __inline; do
20853  cat >conftest.$ac_ext <<_ACEOF
20854/* confdefs.h.  */
20855_ACEOF
20856cat confdefs.h >>conftest.$ac_ext
20857cat >>conftest.$ac_ext <<_ACEOF
20858/* end confdefs.h.  */
20859#ifndef __cplusplus
20860typedef int foo_t;
20861static $ac_kw foo_t static_foo () {return 0; }
20862$ac_kw foo_t foo () {return 0; }
20863#endif
20864
20865_ACEOF
20866rm -f conftest.$ac_objext
20867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20868  (eval $ac_compile) 2>conftest.er1
20869  ac_status=$?
20870  grep -v '^ *+' conftest.er1 >conftest.err
20871  rm -f conftest.er1
20872  cat conftest.err >&5
20873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874  (exit $ac_status); } &&
20875	 { ac_try='test -z "$ac_c_werror_flag"
20876			 || test ! -s conftest.err'
20877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878  (eval $ac_try) 2>&5
20879  ac_status=$?
20880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881  (exit $ac_status); }; } &&
20882	 { ac_try='test -s conftest.$ac_objext'
20883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884  (eval $ac_try) 2>&5
20885  ac_status=$?
20886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887  (exit $ac_status); }; }; then
20888  ac_cv_c_inline=$ac_kw; break
20889else
20890  echo "$as_me: failed program was:" >&5
20891sed 's/^/| /' conftest.$ac_ext >&5
20892
20893fi
20894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20895done
20896
20897fi
20898echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20899echo "${ECHO_T}$ac_cv_c_inline" >&6
20900
20901
20902case $ac_cv_c_inline in
20903  inline | yes) ;;
20904  *)
20905    case $ac_cv_c_inline in
20906      no) ac_val=;;
20907      *) ac_val=$ac_cv_c_inline;;
20908    esac
20909    cat >>confdefs.h <<_ACEOF
20910#ifndef __cplusplus
20911#define inline $ac_val
20912#endif
20913_ACEOF
20914    ;;
20915esac
20916
20917echo "$as_me:$LINENO: checking for off_t" >&5
20918echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20919if test "${ac_cv_type_off_t+set}" = set; then
20920  echo $ECHO_N "(cached) $ECHO_C" >&6
20921else
20922  cat >conftest.$ac_ext <<_ACEOF
20923/* confdefs.h.  */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h.  */
20928$ac_includes_default
20929int
20930main ()
20931{
20932if ((off_t *) 0)
20933  return 0;
20934if (sizeof (off_t))
20935  return 0;
20936  ;
20937  return 0;
20938}
20939_ACEOF
20940rm -f conftest.$ac_objext
20941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20942  (eval $ac_compile) 2>conftest.er1
20943  ac_status=$?
20944  grep -v '^ *+' conftest.er1 >conftest.err
20945  rm -f conftest.er1
20946  cat conftest.err >&5
20947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948  (exit $ac_status); } &&
20949	 { ac_try='test -z "$ac_c_werror_flag"
20950			 || test ! -s conftest.err'
20951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952  (eval $ac_try) 2>&5
20953  ac_status=$?
20954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955  (exit $ac_status); }; } &&
20956	 { ac_try='test -s conftest.$ac_objext'
20957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958  (eval $ac_try) 2>&5
20959  ac_status=$?
20960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961  (exit $ac_status); }; }; then
20962  ac_cv_type_off_t=yes
20963else
20964  echo "$as_me: failed program was:" >&5
20965sed 's/^/| /' conftest.$ac_ext >&5
20966
20967ac_cv_type_off_t=no
20968fi
20969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20970fi
20971echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20972echo "${ECHO_T}$ac_cv_type_off_t" >&6
20973if test $ac_cv_type_off_t = yes; then
20974  :
20975else
20976
20977cat >>confdefs.h <<_ACEOF
20978#define off_t long
20979_ACEOF
20980
20981fi
20982
20983echo "$as_me:$LINENO: checking for size_t" >&5
20984echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20985if test "${ac_cv_type_size_t+set}" = set; then
20986  echo $ECHO_N "(cached) $ECHO_C" >&6
20987else
20988  cat >conftest.$ac_ext <<_ACEOF
20989/* confdefs.h.  */
20990_ACEOF
20991cat confdefs.h >>conftest.$ac_ext
20992cat >>conftest.$ac_ext <<_ACEOF
20993/* end confdefs.h.  */
20994$ac_includes_default
20995int
20996main ()
20997{
20998if ((size_t *) 0)
20999  return 0;
21000if (sizeof (size_t))
21001  return 0;
21002  ;
21003  return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext
21007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008  (eval $ac_compile) 2>conftest.er1
21009  ac_status=$?
21010  grep -v '^ *+' conftest.er1 >conftest.err
21011  rm -f conftest.er1
21012  cat conftest.err >&5
21013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014  (exit $ac_status); } &&
21015	 { ac_try='test -z "$ac_c_werror_flag"
21016			 || test ! -s conftest.err'
21017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018  (eval $ac_try) 2>&5
21019  ac_status=$?
21020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021  (exit $ac_status); }; } &&
21022	 { ac_try='test -s conftest.$ac_objext'
21023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024  (eval $ac_try) 2>&5
21025  ac_status=$?
21026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027  (exit $ac_status); }; }; then
21028  ac_cv_type_size_t=yes
21029else
21030  echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033ac_cv_type_size_t=no
21034fi
21035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21036fi
21037echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21038echo "${ECHO_T}$ac_cv_type_size_t" >&6
21039if test $ac_cv_type_size_t = yes; then
21040  :
21041else
21042
21043cat >>confdefs.h <<_ACEOF
21044#define size_t unsigned
21045_ACEOF
21046
21047fi
21048
21049
21050  echo "$as_me:$LINENO: checking for long long" >&5
21051echo $ECHO_N "checking for long long... $ECHO_C" >&6
21052if test "${ac_cv_type_long_long+set}" = set; then
21053  echo $ECHO_N "(cached) $ECHO_C" >&6
21054else
21055  cat >conftest.$ac_ext <<_ACEOF
21056/* confdefs.h.  */
21057_ACEOF
21058cat confdefs.h >>conftest.$ac_ext
21059cat >>conftest.$ac_ext <<_ACEOF
21060/* end confdefs.h.  */
21061long long ll = 1LL; int i = 63;
21062int
21063main ()
21064{
21065long long llmax = (long long) -1;
21066     return ll << i | ll >> i | llmax / ll | llmax % ll;
21067  ;
21068  return 0;
21069}
21070_ACEOF
21071rm -f conftest.$ac_objext conftest$ac_exeext
21072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21073  (eval $ac_link) 2>conftest.er1
21074  ac_status=$?
21075  grep -v '^ *+' conftest.er1 >conftest.err
21076  rm -f conftest.er1
21077  cat conftest.err >&5
21078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079  (exit $ac_status); } &&
21080	 { ac_try='test -z "$ac_c_werror_flag"
21081			 || test ! -s conftest.err'
21082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083  (eval $ac_try) 2>&5
21084  ac_status=$?
21085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086  (exit $ac_status); }; } &&
21087	 { ac_try='test -s conftest$ac_exeext'
21088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089  (eval $ac_try) 2>&5
21090  ac_status=$?
21091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092  (exit $ac_status); }; }; then
21093  ac_cv_type_long_long=yes
21094else
21095  echo "$as_me: failed program was:" >&5
21096sed 's/^/| /' conftest.$ac_ext >&5
21097
21098ac_cv_type_long_long=no
21099fi
21100rm -f conftest.err conftest.$ac_objext \
21101      conftest$ac_exeext conftest.$ac_ext
21102fi
21103echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21104echo "${ECHO_T}$ac_cv_type_long_long" >&6
21105  if test $ac_cv_type_long_long = yes; then
21106
21107cat >>confdefs.h <<\_ACEOF
21108#define HAVE_LONG_LONG 1
21109_ACEOF
21110
21111  fi
21112
21113
21114  echo "$as_me:$LINENO: checking for long double" >&5
21115echo $ECHO_N "checking for long double... $ECHO_C" >&6
21116if test "${gt_cv_c_long_double+set}" = set; then
21117  echo $ECHO_N "(cached) $ECHO_C" >&6
21118else
21119  if test "$GCC" = yes; then
21120       gt_cv_c_long_double=yes
21121     else
21122       cat >conftest.$ac_ext <<_ACEOF
21123/* confdefs.h.  */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
21127/* end confdefs.h.  */
21128
21129         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
21130         long double foo = 0.0;
21131         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
21132         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
21133
21134int
21135main ()
21136{
21137
21138  ;
21139  return 0;
21140}
21141_ACEOF
21142rm -f conftest.$ac_objext
21143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21144  (eval $ac_compile) 2>conftest.er1
21145  ac_status=$?
21146  grep -v '^ *+' conftest.er1 >conftest.err
21147  rm -f conftest.er1
21148  cat conftest.err >&5
21149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150  (exit $ac_status); } &&
21151	 { ac_try='test -z "$ac_c_werror_flag"
21152			 || test ! -s conftest.err'
21153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154  (eval $ac_try) 2>&5
21155  ac_status=$?
21156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157  (exit $ac_status); }; } &&
21158	 { ac_try='test -s conftest.$ac_objext'
21159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160  (eval $ac_try) 2>&5
21161  ac_status=$?
21162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163  (exit $ac_status); }; }; then
21164  gt_cv_c_long_double=yes
21165else
21166  echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169gt_cv_c_long_double=no
21170fi
21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172     fi
21173fi
21174echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
21175echo "${ECHO_T}$gt_cv_c_long_double" >&6
21176  if test $gt_cv_c_long_double = yes; then
21177
21178cat >>confdefs.h <<\_ACEOF
21179#define HAVE_LONG_DOUBLE 1
21180_ACEOF
21181
21182  fi
21183
21184
21185  echo "$as_me:$LINENO: checking for wchar_t" >&5
21186echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21187if test "${gt_cv_c_wchar_t+set}" = set; then
21188  echo $ECHO_N "(cached) $ECHO_C" >&6
21189else
21190  cat >conftest.$ac_ext <<_ACEOF
21191/* confdefs.h.  */
21192_ACEOF
21193cat confdefs.h >>conftest.$ac_ext
21194cat >>conftest.$ac_ext <<_ACEOF
21195/* end confdefs.h.  */
21196#include <stddef.h>
21197       wchar_t foo = (wchar_t)'\0';
21198int
21199main ()
21200{
21201
21202  ;
21203  return 0;
21204}
21205_ACEOF
21206rm -f conftest.$ac_objext
21207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21208  (eval $ac_compile) 2>conftest.er1
21209  ac_status=$?
21210  grep -v '^ *+' conftest.er1 >conftest.err
21211  rm -f conftest.er1
21212  cat conftest.err >&5
21213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214  (exit $ac_status); } &&
21215	 { ac_try='test -z "$ac_c_werror_flag"
21216			 || test ! -s conftest.err'
21217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218  (eval $ac_try) 2>&5
21219  ac_status=$?
21220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221  (exit $ac_status); }; } &&
21222	 { ac_try='test -s conftest.$ac_objext'
21223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224  (eval $ac_try) 2>&5
21225  ac_status=$?
21226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227  (exit $ac_status); }; }; then
21228  gt_cv_c_wchar_t=yes
21229else
21230  echo "$as_me: failed program was:" >&5
21231sed 's/^/| /' conftest.$ac_ext >&5
21232
21233gt_cv_c_wchar_t=no
21234fi
21235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21236fi
21237echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
21238echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
21239  if test $gt_cv_c_wchar_t = yes; then
21240
21241cat >>confdefs.h <<\_ACEOF
21242#define HAVE_WCHAR_T 1
21243_ACEOF
21244
21245  fi
21246
21247
21248  echo "$as_me:$LINENO: checking for wint_t" >&5
21249echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
21250if test "${gt_cv_c_wint_t+set}" = set; then
21251  echo $ECHO_N "(cached) $ECHO_C" >&6
21252else
21253  cat >conftest.$ac_ext <<_ACEOF
21254/* confdefs.h.  */
21255_ACEOF
21256cat confdefs.h >>conftest.$ac_ext
21257cat >>conftest.$ac_ext <<_ACEOF
21258/* end confdefs.h.  */
21259#include <wchar.h>
21260       wint_t foo = (wchar_t)'\0';
21261int
21262main ()
21263{
21264
21265  ;
21266  return 0;
21267}
21268_ACEOF
21269rm -f conftest.$ac_objext
21270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21271  (eval $ac_compile) 2>conftest.er1
21272  ac_status=$?
21273  grep -v '^ *+' conftest.er1 >conftest.err
21274  rm -f conftest.er1
21275  cat conftest.err >&5
21276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277  (exit $ac_status); } &&
21278	 { ac_try='test -z "$ac_c_werror_flag"
21279			 || test ! -s conftest.err'
21280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281  (eval $ac_try) 2>&5
21282  ac_status=$?
21283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284  (exit $ac_status); }; } &&
21285	 { ac_try='test -s conftest.$ac_objext'
21286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287  (eval $ac_try) 2>&5
21288  ac_status=$?
21289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290  (exit $ac_status); }; }; then
21291  gt_cv_c_wint_t=yes
21292else
21293  echo "$as_me: failed program was:" >&5
21294sed 's/^/| /' conftest.$ac_ext >&5
21295
21296gt_cv_c_wint_t=no
21297fi
21298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21299fi
21300echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
21301echo "${ECHO_T}$gt_cv_c_wint_t" >&6
21302  if test $gt_cv_c_wint_t = yes; then
21303
21304cat >>confdefs.h <<\_ACEOF
21305#define HAVE_WINT_T 1
21306_ACEOF
21307
21308  fi
21309
21310
21311  echo "$as_me:$LINENO: checking for inttypes.h" >&5
21312echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
21313if test "${gl_cv_header_inttypes_h+set}" = set; then
21314  echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316  cat >conftest.$ac_ext <<_ACEOF
21317/* confdefs.h.  */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h.  */
21322#include <sys/types.h>
21323#include <inttypes.h>
21324int
21325main ()
21326{
21327uintmax_t i = (uintmax_t) -1;
21328  ;
21329  return 0;
21330}
21331_ACEOF
21332rm -f conftest.$ac_objext
21333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21334  (eval $ac_compile) 2>conftest.er1
21335  ac_status=$?
21336  grep -v '^ *+' conftest.er1 >conftest.err
21337  rm -f conftest.er1
21338  cat conftest.err >&5
21339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340  (exit $ac_status); } &&
21341	 { ac_try='test -z "$ac_c_werror_flag"
21342			 || test ! -s conftest.err'
21343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344  (eval $ac_try) 2>&5
21345  ac_status=$?
21346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347  (exit $ac_status); }; } &&
21348	 { ac_try='test -s conftest.$ac_objext'
21349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350  (eval $ac_try) 2>&5
21351  ac_status=$?
21352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353  (exit $ac_status); }; }; then
21354  gl_cv_header_inttypes_h=yes
21355else
21356  echo "$as_me: failed program was:" >&5
21357sed 's/^/| /' conftest.$ac_ext >&5
21358
21359gl_cv_header_inttypes_h=no
21360fi
21361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21362fi
21363echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
21364echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
21365  if test $gl_cv_header_inttypes_h = yes; then
21366
21367cat >>confdefs.h <<_ACEOF
21368#define HAVE_INTTYPES_H_WITH_UINTMAX 1
21369_ACEOF
21370
21371  fi
21372
21373
21374  echo "$as_me:$LINENO: checking for stdint.h" >&5
21375echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
21376if test "${gl_cv_header_stdint_h+set}" = set; then
21377  echo $ECHO_N "(cached) $ECHO_C" >&6
21378else
21379  cat >conftest.$ac_ext <<_ACEOF
21380/* confdefs.h.  */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h.  */
21385#include <sys/types.h>
21386#include <stdint.h>
21387int
21388main ()
21389{
21390uintmax_t i = (uintmax_t) -1;
21391  ;
21392  return 0;
21393}
21394_ACEOF
21395rm -f conftest.$ac_objext
21396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21397  (eval $ac_compile) 2>conftest.er1
21398  ac_status=$?
21399  grep -v '^ *+' conftest.er1 >conftest.err
21400  rm -f conftest.er1
21401  cat conftest.err >&5
21402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403  (exit $ac_status); } &&
21404	 { ac_try='test -z "$ac_c_werror_flag"
21405			 || test ! -s conftest.err'
21406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407  (eval $ac_try) 2>&5
21408  ac_status=$?
21409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410  (exit $ac_status); }; } &&
21411	 { ac_try='test -s conftest.$ac_objext'
21412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413  (eval $ac_try) 2>&5
21414  ac_status=$?
21415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416  (exit $ac_status); }; }; then
21417  gl_cv_header_stdint_h=yes
21418else
21419  echo "$as_me: failed program was:" >&5
21420sed 's/^/| /' conftest.$ac_ext >&5
21421
21422gl_cv_header_stdint_h=no
21423fi
21424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21425fi
21426echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
21427echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
21428  if test $gl_cv_header_stdint_h = yes; then
21429
21430cat >>confdefs.h <<_ACEOF
21431#define HAVE_STDINT_H_WITH_UINTMAX 1
21432_ACEOF
21433
21434  fi
21435
21436
21437
21438
21439  echo "$as_me:$LINENO: checking for intmax_t" >&5
21440echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
21441if test "${gt_cv_c_intmax_t+set}" = set; then
21442  echo $ECHO_N "(cached) $ECHO_C" >&6
21443else
21444  cat >conftest.$ac_ext <<_ACEOF
21445/* confdefs.h.  */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h.  */
21450
21451#include <stddef.h>
21452#include <stdlib.h>
21453#if HAVE_STDINT_H_WITH_UINTMAX
21454#include <stdint.h>
21455#endif
21456#if HAVE_INTTYPES_H_WITH_UINTMAX
21457#include <inttypes.h>
21458#endif
21459
21460int
21461main ()
21462{
21463intmax_t x = -1;
21464  ;
21465  return 0;
21466}
21467_ACEOF
21468rm -f conftest.$ac_objext
21469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21470  (eval $ac_compile) 2>conftest.er1
21471  ac_status=$?
21472  grep -v '^ *+' conftest.er1 >conftest.err
21473  rm -f conftest.er1
21474  cat conftest.err >&5
21475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476  (exit $ac_status); } &&
21477	 { ac_try='test -z "$ac_c_werror_flag"
21478			 || test ! -s conftest.err'
21479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480  (eval $ac_try) 2>&5
21481  ac_status=$?
21482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483  (exit $ac_status); }; } &&
21484	 { ac_try='test -s conftest.$ac_objext'
21485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486  (eval $ac_try) 2>&5
21487  ac_status=$?
21488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489  (exit $ac_status); }; }; then
21490  gt_cv_c_intmax_t=yes
21491else
21492  echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495gt_cv_c_intmax_t=no
21496fi
21497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21498fi
21499echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
21500echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
21501  if test $gt_cv_c_intmax_t = yes; then
21502
21503cat >>confdefs.h <<\_ACEOF
21504#define HAVE_INTMAX_T 1
21505_ACEOF
21506
21507  fi
21508
21509
21510
21511  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
21512echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
21513if test "${gt_cv_func_printf_posix+set}" = set; then
21514  echo $ECHO_N "(cached) $ECHO_C" >&6
21515else
21516
21517      if test "$cross_compiling" = yes; then
21518
21519        cat >conftest.$ac_ext <<_ACEOF
21520/* confdefs.h.  */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h.  */
21525
21526#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
21527  notposix
21528#endif
21529
21530_ACEOF
21531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21532  $EGREP "notposix" >/dev/null 2>&1; then
21533  gt_cv_func_printf_posix="guessing no"
21534else
21535  gt_cv_func_printf_posix="guessing yes"
21536fi
21537rm -f conftest*
21538
21539
21540else
21541  cat >conftest.$ac_ext <<_ACEOF
21542/* confdefs.h.  */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h.  */
21547
21548#include <stdio.h>
21549#include <string.h>
21550/* The string "%2$d %1$d", with dollar characters protected from the shell's
21551   dollar expansion (possibly an autoconf bug).  */
21552static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
21553static char buf[100];
21554int main ()
21555{
21556  sprintf (buf, format, 33, 55);
21557  return (strcmp (buf, "55 33") != 0);
21558}
21559_ACEOF
21560rm -f conftest$ac_exeext
21561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21562  (eval $ac_link) 2>&5
21563  ac_status=$?
21564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567  (eval $ac_try) 2>&5
21568  ac_status=$?
21569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570  (exit $ac_status); }; }; then
21571  gt_cv_func_printf_posix=yes
21572else
21573  echo "$as_me: program exited with status $ac_status" >&5
21574echo "$as_me: failed program was:" >&5
21575sed 's/^/| /' conftest.$ac_ext >&5
21576
21577( exit $ac_status )
21578gt_cv_func_printf_posix=no
21579fi
21580rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21581fi
21582
21583fi
21584echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
21585echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
21586  case $gt_cv_func_printf_posix in
21587    *yes)
21588
21589cat >>confdefs.h <<\_ACEOF
21590#define HAVE_POSIX_PRINTF 1
21591_ACEOF
21592
21593      ;;
21594  esac
21595
21596# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21597# for constant arguments.  Useless!
21598echo "$as_me:$LINENO: checking for working alloca.h" >&5
21599echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21600if test "${ac_cv_working_alloca_h+set}" = set; then
21601  echo $ECHO_N "(cached) $ECHO_C" >&6
21602else
21603  cat >conftest.$ac_ext <<_ACEOF
21604/* confdefs.h.  */
21605_ACEOF
21606cat confdefs.h >>conftest.$ac_ext
21607cat >>conftest.$ac_ext <<_ACEOF
21608/* end confdefs.h.  */
21609#include <alloca.h>
21610int
21611main ()
21612{
21613char *p = (char *) alloca (2 * sizeof (int));
21614  ;
21615  return 0;
21616}
21617_ACEOF
21618rm -f conftest.$ac_objext conftest$ac_exeext
21619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21620  (eval $ac_link) 2>conftest.er1
21621  ac_status=$?
21622  grep -v '^ *+' conftest.er1 >conftest.err
21623  rm -f conftest.er1
21624  cat conftest.err >&5
21625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626  (exit $ac_status); } &&
21627	 { ac_try='test -z "$ac_c_werror_flag"
21628			 || test ! -s conftest.err'
21629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630  (eval $ac_try) 2>&5
21631  ac_status=$?
21632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633  (exit $ac_status); }; } &&
21634	 { ac_try='test -s conftest$ac_exeext'
21635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636  (eval $ac_try) 2>&5
21637  ac_status=$?
21638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639  (exit $ac_status); }; }; then
21640  ac_cv_working_alloca_h=yes
21641else
21642  echo "$as_me: failed program was:" >&5
21643sed 's/^/| /' conftest.$ac_ext >&5
21644
21645ac_cv_working_alloca_h=no
21646fi
21647rm -f conftest.err conftest.$ac_objext \
21648      conftest$ac_exeext conftest.$ac_ext
21649fi
21650echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21651echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21652if test $ac_cv_working_alloca_h = yes; then
21653
21654cat >>confdefs.h <<\_ACEOF
21655#define HAVE_ALLOCA_H 1
21656_ACEOF
21657
21658fi
21659
21660echo "$as_me:$LINENO: checking for alloca" >&5
21661echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21662if test "${ac_cv_func_alloca_works+set}" = set; then
21663  echo $ECHO_N "(cached) $ECHO_C" >&6
21664else
21665  cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h.  */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h.  */
21671#ifdef __GNUC__
21672# define alloca __builtin_alloca
21673#else
21674# ifdef _MSC_VER
21675#  include <malloc.h>
21676#  define alloca _alloca
21677# else
21678#  if HAVE_ALLOCA_H
21679#   include <alloca.h>
21680#  else
21681#   ifdef _AIX
21682 #pragma alloca
21683#   else
21684#    ifndef alloca /* predefined by HP cc +Olibcalls */
21685char *alloca ();
21686#    endif
21687#   endif
21688#  endif
21689# endif
21690#endif
21691
21692int
21693main ()
21694{
21695char *p = (char *) alloca (1);
21696  ;
21697  return 0;
21698}
21699_ACEOF
21700rm -f conftest.$ac_objext conftest$ac_exeext
21701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21702  (eval $ac_link) 2>conftest.er1
21703  ac_status=$?
21704  grep -v '^ *+' conftest.er1 >conftest.err
21705  rm -f conftest.er1
21706  cat conftest.err >&5
21707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708  (exit $ac_status); } &&
21709	 { ac_try='test -z "$ac_c_werror_flag"
21710			 || test ! -s conftest.err'
21711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21712  (eval $ac_try) 2>&5
21713  ac_status=$?
21714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715  (exit $ac_status); }; } &&
21716	 { ac_try='test -s conftest$ac_exeext'
21717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718  (eval $ac_try) 2>&5
21719  ac_status=$?
21720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721  (exit $ac_status); }; }; then
21722  ac_cv_func_alloca_works=yes
21723else
21724  echo "$as_me: failed program was:" >&5
21725sed 's/^/| /' conftest.$ac_ext >&5
21726
21727ac_cv_func_alloca_works=no
21728fi
21729rm -f conftest.err conftest.$ac_objext \
21730      conftest$ac_exeext conftest.$ac_ext
21731fi
21732echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21733echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21734
21735if test $ac_cv_func_alloca_works = yes; then
21736
21737cat >>confdefs.h <<\_ACEOF
21738#define HAVE_ALLOCA 1
21739_ACEOF
21740
21741else
21742  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21743# that cause trouble.  Some versions do not even contain alloca or
21744# contain a buggy version.  If you still want to use their alloca,
21745# use ar to extract alloca.o from them instead of compiling alloca.c.
21746
21747ALLOCA=alloca.$ac_objext
21748
21749cat >>confdefs.h <<\_ACEOF
21750#define C_ALLOCA 1
21751_ACEOF
21752
21753
21754echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21755echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21756if test "${ac_cv_os_cray+set}" = set; then
21757  echo $ECHO_N "(cached) $ECHO_C" >&6
21758else
21759  cat >conftest.$ac_ext <<_ACEOF
21760/* confdefs.h.  */
21761_ACEOF
21762cat confdefs.h >>conftest.$ac_ext
21763cat >>conftest.$ac_ext <<_ACEOF
21764/* end confdefs.h.  */
21765#if defined(CRAY) && ! defined(CRAY2)
21766webecray
21767#else
21768wenotbecray
21769#endif
21770
21771_ACEOF
21772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21773  $EGREP "webecray" >/dev/null 2>&1; then
21774  ac_cv_os_cray=yes
21775else
21776  ac_cv_os_cray=no
21777fi
21778rm -f conftest*
21779
21780fi
21781echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21782echo "${ECHO_T}$ac_cv_os_cray" >&6
21783if test $ac_cv_os_cray = yes; then
21784  for ac_func in _getb67 GETB67 getb67; do
21785    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21786echo "$as_me:$LINENO: checking for $ac_func" >&5
21787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21788if eval "test \"\${$as_ac_var+set}\" = set"; then
21789  echo $ECHO_N "(cached) $ECHO_C" >&6
21790else
21791  cat >conftest.$ac_ext <<_ACEOF
21792/* confdefs.h.  */
21793_ACEOF
21794cat confdefs.h >>conftest.$ac_ext
21795cat >>conftest.$ac_ext <<_ACEOF
21796/* end confdefs.h.  */
21797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21799#define $ac_func innocuous_$ac_func
21800
21801/* System header to define __stub macros and hopefully few prototypes,
21802    which can conflict with char $ac_func (); below.
21803    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21804    <limits.h> exists even on freestanding compilers.  */
21805
21806#ifdef __STDC__
21807# include <limits.h>
21808#else
21809# include <assert.h>
21810#endif
21811
21812#undef $ac_func
21813
21814/* Override any gcc2 internal prototype to avoid an error.  */
21815#ifdef __cplusplus
21816extern "C"
21817{
21818#endif
21819/* We use char because int might match the return type of a gcc2
21820   builtin and then its argument prototype would still apply.  */
21821char $ac_func ();
21822/* The GNU C library defines this for functions which it implements
21823    to always fail with ENOSYS.  Some functions are actually named
21824    something starting with __ and the normal name is an alias.  */
21825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21826choke me
21827#else
21828char (*f) () = $ac_func;
21829#endif
21830#ifdef __cplusplus
21831}
21832#endif
21833
21834int
21835main ()
21836{
21837return f != $ac_func;
21838  ;
21839  return 0;
21840}
21841_ACEOF
21842rm -f conftest.$ac_objext conftest$ac_exeext
21843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21844  (eval $ac_link) 2>conftest.er1
21845  ac_status=$?
21846  grep -v '^ *+' conftest.er1 >conftest.err
21847  rm -f conftest.er1
21848  cat conftest.err >&5
21849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850  (exit $ac_status); } &&
21851	 { ac_try='test -z "$ac_c_werror_flag"
21852			 || test ! -s conftest.err'
21853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21854  (eval $ac_try) 2>&5
21855  ac_status=$?
21856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857  (exit $ac_status); }; } &&
21858	 { ac_try='test -s conftest$ac_exeext'
21859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860  (eval $ac_try) 2>&5
21861  ac_status=$?
21862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863  (exit $ac_status); }; }; then
21864  eval "$as_ac_var=yes"
21865else
21866  echo "$as_me: failed program was:" >&5
21867sed 's/^/| /' conftest.$ac_ext >&5
21868
21869eval "$as_ac_var=no"
21870fi
21871rm -f conftest.err conftest.$ac_objext \
21872      conftest$ac_exeext conftest.$ac_ext
21873fi
21874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21876if test `eval echo '${'$as_ac_var'}'` = yes; then
21877
21878cat >>confdefs.h <<_ACEOF
21879#define CRAY_STACKSEG_END $ac_func
21880_ACEOF
21881
21882    break
21883fi
21884
21885  done
21886fi
21887
21888echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21889echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21890if test "${ac_cv_c_stack_direction+set}" = set; then
21891  echo $ECHO_N "(cached) $ECHO_C" >&6
21892else
21893  if test "$cross_compiling" = yes; then
21894  ac_cv_c_stack_direction=0
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.  */
21902int
21903find_stack_direction ()
21904{
21905  static char *addr = 0;
21906  auto char dummy;
21907  if (addr == 0)
21908    {
21909      addr = &dummy;
21910      return find_stack_direction ();
21911    }
21912  else
21913    return (&dummy > addr) ? 1 : -1;
21914}
21915
21916int
21917main ()
21918{
21919  exit (find_stack_direction () < 0);
21920}
21921_ACEOF
21922rm -f conftest$ac_exeext
21923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924  (eval $ac_link) 2>&5
21925  ac_status=$?
21926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929  (eval $ac_try) 2>&5
21930  ac_status=$?
21931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932  (exit $ac_status); }; }; then
21933  ac_cv_c_stack_direction=1
21934else
21935  echo "$as_me: program exited with status $ac_status" >&5
21936echo "$as_me: failed program was:" >&5
21937sed 's/^/| /' conftest.$ac_ext >&5
21938
21939( exit $ac_status )
21940ac_cv_c_stack_direction=-1
21941fi
21942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21943fi
21944fi
21945echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21946echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21947
21948cat >>confdefs.h <<_ACEOF
21949#define STACK_DIRECTION $ac_cv_c_stack_direction
21950_ACEOF
21951
21952
21953fi
21954
21955
21956
21957for ac_header in stdlib.h unistd.h
21958do
21959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21960if eval "test \"\${$as_ac_Header+set}\" = set"; then
21961  echo "$as_me:$LINENO: checking for $ac_header" >&5
21962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21963if eval "test \"\${$as_ac_Header+set}\" = set"; then
21964  echo $ECHO_N "(cached) $ECHO_C" >&6
21965fi
21966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21968else
21969  # Is the header compilable?
21970echo "$as_me:$LINENO: checking $ac_header usability" >&5
21971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21972cat >conftest.$ac_ext <<_ACEOF
21973/* confdefs.h.  */
21974_ACEOF
21975cat confdefs.h >>conftest.$ac_ext
21976cat >>conftest.$ac_ext <<_ACEOF
21977/* end confdefs.h.  */
21978$ac_includes_default
21979#include <$ac_header>
21980_ACEOF
21981rm -f conftest.$ac_objext
21982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21983  (eval $ac_compile) 2>conftest.er1
21984  ac_status=$?
21985  grep -v '^ *+' conftest.er1 >conftest.err
21986  rm -f conftest.er1
21987  cat conftest.err >&5
21988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989  (exit $ac_status); } &&
21990	 { ac_try='test -z "$ac_c_werror_flag"
21991			 || test ! -s conftest.err'
21992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993  (eval $ac_try) 2>&5
21994  ac_status=$?
21995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996  (exit $ac_status); }; } &&
21997	 { ac_try='test -s conftest.$ac_objext'
21998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999  (eval $ac_try) 2>&5
22000  ac_status=$?
22001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002  (exit $ac_status); }; }; then
22003  ac_header_compiler=yes
22004else
22005  echo "$as_me: failed program was:" >&5
22006sed 's/^/| /' conftest.$ac_ext >&5
22007
22008ac_header_compiler=no
22009fi
22010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22012echo "${ECHO_T}$ac_header_compiler" >&6
22013
22014# Is the header present?
22015echo "$as_me:$LINENO: checking $ac_header presence" >&5
22016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22017cat >conftest.$ac_ext <<_ACEOF
22018/* confdefs.h.  */
22019_ACEOF
22020cat confdefs.h >>conftest.$ac_ext
22021cat >>conftest.$ac_ext <<_ACEOF
22022/* end confdefs.h.  */
22023#include <$ac_header>
22024_ACEOF
22025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22027  ac_status=$?
22028  grep -v '^ *+' conftest.er1 >conftest.err
22029  rm -f conftest.er1
22030  cat conftest.err >&5
22031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032  (exit $ac_status); } >/dev/null; then
22033  if test -s conftest.err; then
22034    ac_cpp_err=$ac_c_preproc_warn_flag
22035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22036  else
22037    ac_cpp_err=
22038  fi
22039else
22040  ac_cpp_err=yes
22041fi
22042if test -z "$ac_cpp_err"; then
22043  ac_header_preproc=yes
22044else
22045  echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
22048  ac_header_preproc=no
22049fi
22050rm -f conftest.err conftest.$ac_ext
22051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22052echo "${ECHO_T}$ac_header_preproc" >&6
22053
22054# So?  What about this header?
22055case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22056  yes:no: )
22057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22060echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22061    ac_header_preproc=yes
22062    ;;
22063  no:yes:* )
22064    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22065echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22066    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22067echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22068    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22069echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22070    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22071echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22073echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22074    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22075echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22076    (
22077      cat <<\_ASBOX
22078## ------------------------------------------ ##
22079## Report this to the AC_PACKAGE_NAME lists.  ##
22080## ------------------------------------------ ##
22081_ASBOX
22082    ) |
22083      sed "s/^/$as_me: WARNING:     /" >&2
22084    ;;
22085esac
22086echo "$as_me:$LINENO: checking for $ac_header" >&5
22087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22088if eval "test \"\${$as_ac_Header+set}\" = set"; then
22089  echo $ECHO_N "(cached) $ECHO_C" >&6
22090else
22091  eval "$as_ac_Header=\$ac_header_preproc"
22092fi
22093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22094echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22095
22096fi
22097if test `eval echo '${'$as_ac_Header'}'` = yes; then
22098  cat >>confdefs.h <<_ACEOF
22099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22100_ACEOF
22101
22102fi
22103
22104done
22105
22106
22107for ac_func in getpagesize
22108do
22109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22110echo "$as_me:$LINENO: checking for $ac_func" >&5
22111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22112if eval "test \"\${$as_ac_var+set}\" = set"; then
22113  echo $ECHO_N "(cached) $ECHO_C" >&6
22114else
22115  cat >conftest.$ac_ext <<_ACEOF
22116/* confdefs.h.  */
22117_ACEOF
22118cat confdefs.h >>conftest.$ac_ext
22119cat >>conftest.$ac_ext <<_ACEOF
22120/* end confdefs.h.  */
22121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22122   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22123#define $ac_func innocuous_$ac_func
22124
22125/* System header to define __stub macros and hopefully few prototypes,
22126    which can conflict with char $ac_func (); below.
22127    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22128    <limits.h> exists even on freestanding compilers.  */
22129
22130#ifdef __STDC__
22131# include <limits.h>
22132#else
22133# include <assert.h>
22134#endif
22135
22136#undef $ac_func
22137
22138/* Override any gcc2 internal prototype to avoid an error.  */
22139#ifdef __cplusplus
22140extern "C"
22141{
22142#endif
22143/* We use char because int might match the return type of a gcc2
22144   builtin and then its argument prototype would still apply.  */
22145char $ac_func ();
22146/* The GNU C library defines this for functions which it implements
22147    to always fail with ENOSYS.  Some functions are actually named
22148    something starting with __ and the normal name is an alias.  */
22149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22150choke me
22151#else
22152char (*f) () = $ac_func;
22153#endif
22154#ifdef __cplusplus
22155}
22156#endif
22157
22158int
22159main ()
22160{
22161return f != $ac_func;
22162  ;
22163  return 0;
22164}
22165_ACEOF
22166rm -f conftest.$ac_objext conftest$ac_exeext
22167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22168  (eval $ac_link) 2>conftest.er1
22169  ac_status=$?
22170  grep -v '^ *+' conftest.er1 >conftest.err
22171  rm -f conftest.er1
22172  cat conftest.err >&5
22173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174  (exit $ac_status); } &&
22175	 { ac_try='test -z "$ac_c_werror_flag"
22176			 || test ! -s conftest.err'
22177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178  (eval $ac_try) 2>&5
22179  ac_status=$?
22180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181  (exit $ac_status); }; } &&
22182	 { ac_try='test -s conftest$ac_exeext'
22183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184  (eval $ac_try) 2>&5
22185  ac_status=$?
22186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187  (exit $ac_status); }; }; then
22188  eval "$as_ac_var=yes"
22189else
22190  echo "$as_me: failed program was:" >&5
22191sed 's/^/| /' conftest.$ac_ext >&5
22192
22193eval "$as_ac_var=no"
22194fi
22195rm -f conftest.err conftest.$ac_objext \
22196      conftest$ac_exeext conftest.$ac_ext
22197fi
22198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22200if test `eval echo '${'$as_ac_var'}'` = yes; then
22201  cat >>confdefs.h <<_ACEOF
22202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22203_ACEOF
22204
22205fi
22206done
22207
22208echo "$as_me:$LINENO: checking for working mmap" >&5
22209echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22210if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22211  echo $ECHO_N "(cached) $ECHO_C" >&6
22212else
22213  if test "$cross_compiling" = yes; then
22214  ac_cv_func_mmap_fixed_mapped=no
22215else
22216  cat >conftest.$ac_ext <<_ACEOF
22217/* confdefs.h.  */
22218_ACEOF
22219cat confdefs.h >>conftest.$ac_ext
22220cat >>conftest.$ac_ext <<_ACEOF
22221/* end confdefs.h.  */
22222$ac_includes_default
22223/* malloc might have been renamed as rpl_malloc. */
22224#undef malloc
22225
22226/* Thanks to Mike Haertel and Jim Avera for this test.
22227   Here is a matrix of mmap possibilities:
22228	mmap private not fixed
22229	mmap private fixed at somewhere currently unmapped
22230	mmap private fixed at somewhere already mapped
22231	mmap shared not fixed
22232	mmap shared fixed at somewhere currently unmapped
22233	mmap shared fixed at somewhere already mapped
22234   For private mappings, we should verify that changes cannot be read()
22235   back from the file, nor mmap's back from the file at a different
22236   address.  (There have been systems where private was not correctly
22237   implemented like the infamous i386 svr4.0, and systems where the
22238   VM page cache was not coherent with the file system buffer cache
22239   like early versions of FreeBSD and possibly contemporary NetBSD.)
22240   For shared mappings, we should conversely verify that changes get
22241   propagated back to all the places they're supposed to be.
22242
22243   Grep wants private fixed already mapped.
22244   The main things grep needs to know about mmap are:
22245   * does it exist and is it safe to write into the mmap'd area
22246   * how to use it (BSD variants)  */
22247
22248#include <fcntl.h>
22249#include <sys/mman.h>
22250
22251#if !STDC_HEADERS && !HAVE_STDLIB_H
22252char *malloc ();
22253#endif
22254
22255/* This mess was copied from the GNU getpagesize.h.  */
22256#if !HAVE_GETPAGESIZE
22257/* Assume that all systems that can run configure have sys/param.h.  */
22258# if !HAVE_SYS_PARAM_H
22259#  define HAVE_SYS_PARAM_H 1
22260# endif
22261
22262# ifdef _SC_PAGESIZE
22263#  define getpagesize() sysconf(_SC_PAGESIZE)
22264# else /* no _SC_PAGESIZE */
22265#  if HAVE_SYS_PARAM_H
22266#   include <sys/param.h>
22267#   ifdef EXEC_PAGESIZE
22268#    define getpagesize() EXEC_PAGESIZE
22269#   else /* no EXEC_PAGESIZE */
22270#    ifdef NBPG
22271#     define getpagesize() NBPG * CLSIZE
22272#     ifndef CLSIZE
22273#      define CLSIZE 1
22274#     endif /* no CLSIZE */
22275#    else /* no NBPG */
22276#     ifdef NBPC
22277#      define getpagesize() NBPC
22278#     else /* no NBPC */
22279#      ifdef PAGESIZE
22280#       define getpagesize() PAGESIZE
22281#      endif /* PAGESIZE */
22282#     endif /* no NBPC */
22283#    endif /* no NBPG */
22284#   endif /* no EXEC_PAGESIZE */
22285#  else /* no HAVE_SYS_PARAM_H */
22286#   define getpagesize() 8192	/* punt totally */
22287#  endif /* no HAVE_SYS_PARAM_H */
22288# endif /* no _SC_PAGESIZE */
22289
22290#endif /* no HAVE_GETPAGESIZE */
22291
22292int
22293main ()
22294{
22295  char *data, *data2, *data3;
22296  int i, pagesize;
22297  int fd;
22298
22299  pagesize = getpagesize ();
22300
22301  /* First, make a file with some known garbage in it. */
22302  data = (char *) malloc (pagesize);
22303  if (!data)
22304    exit (1);
22305  for (i = 0; i < pagesize; ++i)
22306    *(data + i) = rand ();
22307  umask (0);
22308  fd = creat ("conftest.mmap", 0600);
22309  if (fd < 0)
22310    exit (1);
22311  if (write (fd, data, pagesize) != pagesize)
22312    exit (1);
22313  close (fd);
22314
22315  /* Next, try to mmap the file at a fixed address which already has
22316     something else allocated at it.  If we can, also make sure that
22317     we see the same garbage.  */
22318  fd = open ("conftest.mmap", O_RDWR);
22319  if (fd < 0)
22320    exit (1);
22321  data2 = (char *) malloc (2 * pagesize);
22322  if (!data2)
22323    exit (1);
22324  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22325  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22326		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22327    exit (1);
22328  for (i = 0; i < pagesize; ++i)
22329    if (*(data + i) != *(data2 + i))
22330      exit (1);
22331
22332  /* Finally, make sure that changes to the mapped area do not
22333     percolate back to the file as seen by read().  (This is a bug on
22334     some variants of i386 svr4.0.)  */
22335  for (i = 0; i < pagesize; ++i)
22336    *(data2 + i) = *(data2 + i) + 1;
22337  data3 = (char *) malloc (pagesize);
22338  if (!data3)
22339    exit (1);
22340  if (read (fd, data3, pagesize) != pagesize)
22341    exit (1);
22342  for (i = 0; i < pagesize; ++i)
22343    if (*(data + i) != *(data3 + i))
22344      exit (1);
22345  close (fd);
22346  exit (0);
22347}
22348_ACEOF
22349rm -f conftest$ac_exeext
22350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351  (eval $ac_link) 2>&5
22352  ac_status=$?
22353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356  (eval $ac_try) 2>&5
22357  ac_status=$?
22358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359  (exit $ac_status); }; }; then
22360  ac_cv_func_mmap_fixed_mapped=yes
22361else
22362  echo "$as_me: program exited with status $ac_status" >&5
22363echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
22365
22366( exit $ac_status )
22367ac_cv_func_mmap_fixed_mapped=no
22368fi
22369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22370fi
22371fi
22372echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22373echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22374if test $ac_cv_func_mmap_fixed_mapped = yes; then
22375
22376cat >>confdefs.h <<\_ACEOF
22377#define HAVE_MMAP 1
22378_ACEOF
22379
22380fi
22381rm -f conftest.mmap
22382
22383
22384    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
22385echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
22386if test "${ac_cv_gnu_library_2_1+set}" = set; then
22387  echo $ECHO_N "(cached) $ECHO_C" >&6
22388else
22389  cat >conftest.$ac_ext <<_ACEOF
22390/* confdefs.h.  */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
22394/* end confdefs.h.  */
22395
22396#include <features.h>
22397#ifdef __GNU_LIBRARY__
22398 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22399  Lucky GNU user
22400 #endif
22401#endif
22402
22403_ACEOF
22404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22405  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
22406  ac_cv_gnu_library_2_1=yes
22407else
22408  ac_cv_gnu_library_2_1=no
22409fi
22410rm -f conftest*
22411
22412
22413
22414fi
22415echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
22416echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
22417
22418    GLIBC21="$ac_cv_gnu_library_2_1"
22419
22420
22421
22422
22423  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
22424echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
22425if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
22426  echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428
22429      if test "$cross_compiling" = yes; then
22430
22431          # Guess based on the CPU.
22432          case "$host_cpu" in
22433            alpha* | i3456786 | m68k | s390*)
22434              gt_cv_int_divbyzero_sigfpe="guessing yes";;
22435            *)
22436              gt_cv_int_divbyzero_sigfpe="guessing no";;
22437          esac
22438
22439else
22440  cat >conftest.$ac_ext <<_ACEOF
22441/* confdefs.h.  */
22442_ACEOF
22443cat confdefs.h >>conftest.$ac_ext
22444cat >>conftest.$ac_ext <<_ACEOF
22445/* end confdefs.h.  */
22446
22447#include <stdlib.h>
22448#include <signal.h>
22449
22450static void
22451#ifdef __cplusplus
22452sigfpe_handler (int sig)
22453#else
22454sigfpe_handler (sig) int sig;
22455#endif
22456{
22457  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
22458  exit (sig != SIGFPE);
22459}
22460
22461int x = 1;
22462int y = 0;
22463int z;
22464int nan;
22465
22466int main ()
22467{
22468  signal (SIGFPE, sigfpe_handler);
22469/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
22470#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
22471  signal (SIGTRAP, sigfpe_handler);
22472#endif
22473/* Linux/SPARC yields signal SIGILL.  */
22474#if defined (__sparc__) && defined (__linux__)
22475  signal (SIGILL, sigfpe_handler);
22476#endif
22477
22478  z = x / y;
22479  nan = y / y;
22480  exit (1);
22481}
22482
22483_ACEOF
22484rm -f conftest$ac_exeext
22485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22486  (eval $ac_link) 2>&5
22487  ac_status=$?
22488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491  (eval $ac_try) 2>&5
22492  ac_status=$?
22493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494  (exit $ac_status); }; }; then
22495  gt_cv_int_divbyzero_sigfpe=yes
22496else
22497  echo "$as_me: program exited with status $ac_status" >&5
22498echo "$as_me: failed program was:" >&5
22499sed 's/^/| /' conftest.$ac_ext >&5
22500
22501( exit $ac_status )
22502gt_cv_int_divbyzero_sigfpe=no
22503fi
22504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22505fi
22506
22507fi
22508echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
22509echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
22510  case "$gt_cv_int_divbyzero_sigfpe" in
22511    *yes) value=1;;
22512    *) value=0;;
22513  esac
22514
22515cat >>confdefs.h <<_ACEOF
22516#define INTDIV0_RAISES_SIGFPE $value
22517_ACEOF
22518
22519
22520
22521  echo "$as_me:$LINENO: checking for unsigned long long" >&5
22522echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
22523if test "${ac_cv_type_unsigned_long_long+set}" = set; then
22524  echo $ECHO_N "(cached) $ECHO_C" >&6
22525else
22526  cat >conftest.$ac_ext <<_ACEOF
22527/* confdefs.h.  */
22528_ACEOF
22529cat confdefs.h >>conftest.$ac_ext
22530cat >>conftest.$ac_ext <<_ACEOF
22531/* end confdefs.h.  */
22532unsigned long long ull = 1ULL; int i = 63;
22533int
22534main ()
22535{
22536unsigned long long ullmax = (unsigned long long) -1;
22537     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
22538  ;
22539  return 0;
22540}
22541_ACEOF
22542rm -f conftest.$ac_objext conftest$ac_exeext
22543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22544  (eval $ac_link) 2>conftest.er1
22545  ac_status=$?
22546  grep -v '^ *+' conftest.er1 >conftest.err
22547  rm -f conftest.er1
22548  cat conftest.err >&5
22549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550  (exit $ac_status); } &&
22551	 { ac_try='test -z "$ac_c_werror_flag"
22552			 || test ! -s conftest.err'
22553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554  (eval $ac_try) 2>&5
22555  ac_status=$?
22556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557  (exit $ac_status); }; } &&
22558	 { ac_try='test -s conftest$ac_exeext'
22559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560  (eval $ac_try) 2>&5
22561  ac_status=$?
22562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563  (exit $ac_status); }; }; then
22564  ac_cv_type_unsigned_long_long=yes
22565else
22566  echo "$as_me: failed program was:" >&5
22567sed 's/^/| /' conftest.$ac_ext >&5
22568
22569ac_cv_type_unsigned_long_long=no
22570fi
22571rm -f conftest.err conftest.$ac_objext \
22572      conftest$ac_exeext conftest.$ac_ext
22573fi
22574echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
22575echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
22576  if test $ac_cv_type_unsigned_long_long = yes; then
22577
22578cat >>confdefs.h <<\_ACEOF
22579#define HAVE_UNSIGNED_LONG_LONG 1
22580_ACEOF
22581
22582  fi
22583
22584
22585
22586
22587  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22588
22589    test $ac_cv_type_unsigned_long_long = yes \
22590      && ac_type='unsigned long long' \
22591      || ac_type='unsigned long'
22592
22593cat >>confdefs.h <<_ACEOF
22594#define uintmax_t $ac_type
22595_ACEOF
22596
22597  else
22598
22599cat >>confdefs.h <<\_ACEOF
22600#define HAVE_UINTMAX_T 1
22601_ACEOF
22602
22603  fi
22604
22605
22606  echo "$as_me:$LINENO: checking for inttypes.h" >&5
22607echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
22608if test "${gt_cv_header_inttypes_h+set}" = set; then
22609  echo $ECHO_N "(cached) $ECHO_C" >&6
22610else
22611
22612    cat >conftest.$ac_ext <<_ACEOF
22613/* confdefs.h.  */
22614_ACEOF
22615cat confdefs.h >>conftest.$ac_ext
22616cat >>conftest.$ac_ext <<_ACEOF
22617/* end confdefs.h.  */
22618#include <sys/types.h>
22619#include <inttypes.h>
22620int
22621main ()
22622{
22623
22624  ;
22625  return 0;
22626}
22627_ACEOF
22628rm -f conftest.$ac_objext
22629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22630  (eval $ac_compile) 2>conftest.er1
22631  ac_status=$?
22632  grep -v '^ *+' conftest.er1 >conftest.err
22633  rm -f conftest.er1
22634  cat conftest.err >&5
22635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636  (exit $ac_status); } &&
22637	 { ac_try='test -z "$ac_c_werror_flag"
22638			 || test ! -s conftest.err'
22639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640  (eval $ac_try) 2>&5
22641  ac_status=$?
22642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643  (exit $ac_status); }; } &&
22644	 { ac_try='test -s conftest.$ac_objext'
22645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646  (eval $ac_try) 2>&5
22647  ac_status=$?
22648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649  (exit $ac_status); }; }; then
22650  gt_cv_header_inttypes_h=yes
22651else
22652  echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655gt_cv_header_inttypes_h=no
22656fi
22657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22658
22659fi
22660echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
22661echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
22662  if test $gt_cv_header_inttypes_h = yes; then
22663
22664cat >>confdefs.h <<_ACEOF
22665#define HAVE_INTTYPES_H 1
22666_ACEOF
22667
22668  fi
22669
22670
22671
22672  if test $gt_cv_header_inttypes_h = yes; then
22673    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
22674echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
22675if test "${gt_cv_inttypes_pri_broken+set}" = set; then
22676  echo $ECHO_N "(cached) $ECHO_C" >&6
22677else
22678
22679        cat >conftest.$ac_ext <<_ACEOF
22680/* confdefs.h.  */
22681_ACEOF
22682cat confdefs.h >>conftest.$ac_ext
22683cat >>conftest.$ac_ext <<_ACEOF
22684/* end confdefs.h.  */
22685#include <inttypes.h>
22686#ifdef PRId32
22687char *p = PRId32;
22688#endif
22689
22690int
22691main ()
22692{
22693
22694  ;
22695  return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext
22699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700  (eval $ac_compile) 2>conftest.er1
22701  ac_status=$?
22702  grep -v '^ *+' conftest.er1 >conftest.err
22703  rm -f conftest.er1
22704  cat conftest.err >&5
22705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706  (exit $ac_status); } &&
22707	 { ac_try='test -z "$ac_c_werror_flag"
22708			 || test ! -s conftest.err'
22709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710  (eval $ac_try) 2>&5
22711  ac_status=$?
22712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713  (exit $ac_status); }; } &&
22714	 { ac_try='test -s conftest.$ac_objext'
22715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716  (eval $ac_try) 2>&5
22717  ac_status=$?
22718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719  (exit $ac_status); }; }; then
22720  gt_cv_inttypes_pri_broken=no
22721else
22722  echo "$as_me: failed program was:" >&5
22723sed 's/^/| /' conftest.$ac_ext >&5
22724
22725gt_cv_inttypes_pri_broken=yes
22726fi
22727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22728
22729fi
22730echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
22731echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
22732  fi
22733  if test "$gt_cv_inttypes_pri_broken" = yes; then
22734
22735cat >>confdefs.h <<_ACEOF
22736#define PRI_MACROS_BROKEN 1
22737_ACEOF
22738
22739  fi
22740
22741
22742
22743for ac_header in stdint.h
22744do
22745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22746if eval "test \"\${$as_ac_Header+set}\" = set"; then
22747  echo "$as_me:$LINENO: checking for $ac_header" >&5
22748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22749if eval "test \"\${$as_ac_Header+set}\" = set"; then
22750  echo $ECHO_N "(cached) $ECHO_C" >&6
22751fi
22752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22754else
22755  # Is the header compilable?
22756echo "$as_me:$LINENO: checking $ac_header usability" >&5
22757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22758cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h.  */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h.  */
22764$ac_includes_default
22765#include <$ac_header>
22766_ACEOF
22767rm -f conftest.$ac_objext
22768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769  (eval $ac_compile) 2>conftest.er1
22770  ac_status=$?
22771  grep -v '^ *+' conftest.er1 >conftest.err
22772  rm -f conftest.er1
22773  cat conftest.err >&5
22774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775  (exit $ac_status); } &&
22776	 { ac_try='test -z "$ac_c_werror_flag"
22777			 || test ! -s conftest.err'
22778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779  (eval $ac_try) 2>&5
22780  ac_status=$?
22781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782  (exit $ac_status); }; } &&
22783	 { ac_try='test -s conftest.$ac_objext'
22784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785  (eval $ac_try) 2>&5
22786  ac_status=$?
22787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788  (exit $ac_status); }; }; then
22789  ac_header_compiler=yes
22790else
22791  echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
22794ac_header_compiler=no
22795fi
22796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22797echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22798echo "${ECHO_T}$ac_header_compiler" >&6
22799
22800# Is the header present?
22801echo "$as_me:$LINENO: checking $ac_header presence" >&5
22802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22803cat >conftest.$ac_ext <<_ACEOF
22804/* confdefs.h.  */
22805_ACEOF
22806cat confdefs.h >>conftest.$ac_ext
22807cat >>conftest.$ac_ext <<_ACEOF
22808/* end confdefs.h.  */
22809#include <$ac_header>
22810_ACEOF
22811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22812  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22813  ac_status=$?
22814  grep -v '^ *+' conftest.er1 >conftest.err
22815  rm -f conftest.er1
22816  cat conftest.err >&5
22817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818  (exit $ac_status); } >/dev/null; then
22819  if test -s conftest.err; then
22820    ac_cpp_err=$ac_c_preproc_warn_flag
22821    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22822  else
22823    ac_cpp_err=
22824  fi
22825else
22826  ac_cpp_err=yes
22827fi
22828if test -z "$ac_cpp_err"; then
22829  ac_header_preproc=yes
22830else
22831  echo "$as_me: failed program was:" >&5
22832sed 's/^/| /' conftest.$ac_ext >&5
22833
22834  ac_header_preproc=no
22835fi
22836rm -f conftest.err conftest.$ac_ext
22837echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22838echo "${ECHO_T}$ac_header_preproc" >&6
22839
22840# So?  What about this header?
22841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22842  yes:no: )
22843    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22844echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22845    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22846echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22847    ac_header_preproc=yes
22848    ;;
22849  no:yes:* )
22850    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22851echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22852    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22853echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22854    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22855echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22856    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22857echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22860    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22861echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22862    (
22863      cat <<\_ASBOX
22864## ------------------------------------------ ##
22865## Report this to the AC_PACKAGE_NAME lists.  ##
22866## ------------------------------------------ ##
22867_ASBOX
22868    ) |
22869      sed "s/^/$as_me: WARNING:     /" >&2
22870    ;;
22871esac
22872echo "$as_me:$LINENO: checking for $ac_header" >&5
22873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22874if eval "test \"\${$as_ac_Header+set}\" = set"; then
22875  echo $ECHO_N "(cached) $ECHO_C" >&6
22876else
22877  eval "$as_ac_Header=\$ac_header_preproc"
22878fi
22879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22881
22882fi
22883if test `eval echo '${'$as_ac_Header'}'` = yes; then
22884  cat >>confdefs.h <<_ACEOF
22885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22886_ACEOF
22887
22888fi
22889
22890done
22891
22892    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
22893echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
22894  result=
22895  cat >conftest.$ac_ext <<_ACEOF
22896/* confdefs.h.  */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h.  */
22901
22902#include <limits.h>
22903#if HAVE_STDINT_H
22904#include <stdint.h>
22905#endif
22906#ifdef SIZE_MAX
22907Found it
22908#endif
22909
22910_ACEOF
22911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22912  $EGREP "Found it" >/dev/null 2>&1; then
22913  result=yes
22914fi
22915rm -f conftest*
22916
22917  if test -z "$result"; then
22918                    if test "$cross_compiling" = yes; then
22919  # Depending upon the size, compute the lo and hi bounds.
22920cat >conftest.$ac_ext <<_ACEOF
22921/* confdefs.h.  */
22922_ACEOF
22923cat confdefs.h >>conftest.$ac_ext
22924cat >>conftest.$ac_ext <<_ACEOF
22925/* end confdefs.h.  */
22926#include <stddef.h>
22927int
22928main ()
22929{
22930static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
22931test_array [0] = 0
22932
22933  ;
22934  return 0;
22935}
22936_ACEOF
22937rm -f conftest.$ac_objext
22938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22939  (eval $ac_compile) 2>conftest.er1
22940  ac_status=$?
22941  grep -v '^ *+' conftest.er1 >conftest.err
22942  rm -f conftest.er1
22943  cat conftest.err >&5
22944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945  (exit $ac_status); } &&
22946	 { ac_try='test -z "$ac_c_werror_flag"
22947			 || test ! -s conftest.err'
22948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949  (eval $ac_try) 2>&5
22950  ac_status=$?
22951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952  (exit $ac_status); }; } &&
22953	 { ac_try='test -s conftest.$ac_objext'
22954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955  (eval $ac_try) 2>&5
22956  ac_status=$?
22957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958  (exit $ac_status); }; }; then
22959  ac_lo=0 ac_mid=0
22960  while :; do
22961    cat >conftest.$ac_ext <<_ACEOF
22962/* confdefs.h.  */
22963_ACEOF
22964cat confdefs.h >>conftest.$ac_ext
22965cat >>conftest.$ac_ext <<_ACEOF
22966/* end confdefs.h.  */
22967#include <stddef.h>
22968int
22969main ()
22970{
22971static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
22972test_array [0] = 0
22973
22974  ;
22975  return 0;
22976}
22977_ACEOF
22978rm -f conftest.$ac_objext
22979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980  (eval $ac_compile) 2>conftest.er1
22981  ac_status=$?
22982  grep -v '^ *+' conftest.er1 >conftest.err
22983  rm -f conftest.er1
22984  cat conftest.err >&5
22985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986  (exit $ac_status); } &&
22987	 { ac_try='test -z "$ac_c_werror_flag"
22988			 || test ! -s conftest.err'
22989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990  (eval $ac_try) 2>&5
22991  ac_status=$?
22992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993  (exit $ac_status); }; } &&
22994	 { ac_try='test -s conftest.$ac_objext'
22995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996  (eval $ac_try) 2>&5
22997  ac_status=$?
22998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999  (exit $ac_status); }; }; then
23000  ac_hi=$ac_mid; break
23001else
23002  echo "$as_me: failed program was:" >&5
23003sed 's/^/| /' conftest.$ac_ext >&5
23004
23005ac_lo=`expr $ac_mid + 1`
23006		    if test $ac_lo -le $ac_mid; then
23007		      ac_lo= ac_hi=
23008		      break
23009		    fi
23010		    ac_mid=`expr 2 '*' $ac_mid + 1`
23011fi
23012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23013  done
23014else
23015  echo "$as_me: failed program was:" >&5
23016sed 's/^/| /' conftest.$ac_ext >&5
23017
23018cat >conftest.$ac_ext <<_ACEOF
23019/* confdefs.h.  */
23020_ACEOF
23021cat confdefs.h >>conftest.$ac_ext
23022cat >>conftest.$ac_ext <<_ACEOF
23023/* end confdefs.h.  */
23024#include <stddef.h>
23025int
23026main ()
23027{
23028static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
23029test_array [0] = 0
23030
23031  ;
23032  return 0;
23033}
23034_ACEOF
23035rm -f conftest.$ac_objext
23036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23037  (eval $ac_compile) 2>conftest.er1
23038  ac_status=$?
23039  grep -v '^ *+' conftest.er1 >conftest.err
23040  rm -f conftest.er1
23041  cat conftest.err >&5
23042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043  (exit $ac_status); } &&
23044	 { ac_try='test -z "$ac_c_werror_flag"
23045			 || test ! -s conftest.err'
23046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047  (eval $ac_try) 2>&5
23048  ac_status=$?
23049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050  (exit $ac_status); }; } &&
23051	 { ac_try='test -s conftest.$ac_objext'
23052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053  (eval $ac_try) 2>&5
23054  ac_status=$?
23055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056  (exit $ac_status); }; }; then
23057  ac_hi=-1 ac_mid=-1
23058  while :; do
23059    cat >conftest.$ac_ext <<_ACEOF
23060/* confdefs.h.  */
23061_ACEOF
23062cat confdefs.h >>conftest.$ac_ext
23063cat >>conftest.$ac_ext <<_ACEOF
23064/* end confdefs.h.  */
23065#include <stddef.h>
23066int
23067main ()
23068{
23069static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
23070test_array [0] = 0
23071
23072  ;
23073  return 0;
23074}
23075_ACEOF
23076rm -f conftest.$ac_objext
23077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23078  (eval $ac_compile) 2>conftest.er1
23079  ac_status=$?
23080  grep -v '^ *+' conftest.er1 >conftest.err
23081  rm -f conftest.er1
23082  cat conftest.err >&5
23083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084  (exit $ac_status); } &&
23085	 { ac_try='test -z "$ac_c_werror_flag"
23086			 || test ! -s conftest.err'
23087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23088  (eval $ac_try) 2>&5
23089  ac_status=$?
23090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091  (exit $ac_status); }; } &&
23092	 { ac_try='test -s conftest.$ac_objext'
23093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094  (eval $ac_try) 2>&5
23095  ac_status=$?
23096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097  (exit $ac_status); }; }; then
23098  ac_lo=$ac_mid; break
23099else
23100  echo "$as_me: failed program was:" >&5
23101sed 's/^/| /' conftest.$ac_ext >&5
23102
23103ac_hi=`expr '(' $ac_mid ')' - 1`
23104		       if test $ac_mid -le $ac_hi; then
23105			 ac_lo= ac_hi=
23106			 break
23107		       fi
23108		       ac_mid=`expr 2 '*' $ac_mid`
23109fi
23110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23111  done
23112else
23113  echo "$as_me: failed program was:" >&5
23114sed 's/^/| /' conftest.$ac_ext >&5
23115
23116ac_lo= ac_hi=
23117fi
23118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23119fi
23120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23121# Binary search between lo and hi bounds.
23122while test "x$ac_lo" != "x$ac_hi"; do
23123  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23124  cat >conftest.$ac_ext <<_ACEOF
23125/* confdefs.h.  */
23126_ACEOF
23127cat confdefs.h >>conftest.$ac_ext
23128cat >>conftest.$ac_ext <<_ACEOF
23129/* end confdefs.h.  */
23130#include <stddef.h>
23131int
23132main ()
23133{
23134static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
23135test_array [0] = 0
23136
23137  ;
23138  return 0;
23139}
23140_ACEOF
23141rm -f conftest.$ac_objext
23142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23143  (eval $ac_compile) 2>conftest.er1
23144  ac_status=$?
23145  grep -v '^ *+' conftest.er1 >conftest.err
23146  rm -f conftest.er1
23147  cat conftest.err >&5
23148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149  (exit $ac_status); } &&
23150	 { ac_try='test -z "$ac_c_werror_flag"
23151			 || test ! -s conftest.err'
23152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153  (eval $ac_try) 2>&5
23154  ac_status=$?
23155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156  (exit $ac_status); }; } &&
23157	 { ac_try='test -s conftest.$ac_objext'
23158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23159  (eval $ac_try) 2>&5
23160  ac_status=$?
23161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162  (exit $ac_status); }; }; then
23163  ac_hi=$ac_mid
23164else
23165  echo "$as_me: failed program was:" >&5
23166sed 's/^/| /' conftest.$ac_ext >&5
23167
23168ac_lo=`expr '(' $ac_mid ')' + 1`
23169fi
23170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23171done
23172case $ac_lo in
23173?*) res_hi=$ac_lo;;
23174'') result=? ;;
23175esac
23176else
23177  if test "$cross_compiling" = yes; then
23178  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23179See \`config.log' for more details." >&5
23180echo "$as_me: error: cannot run test program while cross compiling
23181See \`config.log' for more details." >&2;}
23182   { (exit 1); exit 1; }; }
23183else
23184  cat >conftest.$ac_ext <<_ACEOF
23185/* confdefs.h.  */
23186_ACEOF
23187cat confdefs.h >>conftest.$ac_ext
23188cat >>conftest.$ac_ext <<_ACEOF
23189/* end confdefs.h.  */
23190#include <stddef.h>
23191long longval () { return ~(size_t)0 / 10; }
23192unsigned long ulongval () { return ~(size_t)0 / 10; }
23193#include <stdio.h>
23194#include <stdlib.h>
23195int
23196main ()
23197{
23198
23199  FILE *f = fopen ("conftest.val", "w");
23200  if (! f)
23201    exit (1);
23202  if ((~(size_t)0 / 10) < 0)
23203    {
23204      long i = longval ();
23205      if (i != (~(size_t)0 / 10))
23206	exit (1);
23207      fprintf (f, "%ld\n", i);
23208    }
23209  else
23210    {
23211      unsigned long i = ulongval ();
23212      if (i != (~(size_t)0 / 10))
23213	exit (1);
23214      fprintf (f, "%lu\n", i);
23215    }
23216  exit (ferror (f) || fclose (f) != 0);
23217
23218  ;
23219  return 0;
23220}
23221_ACEOF
23222rm -f conftest$ac_exeext
23223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23224  (eval $ac_link) 2>&5
23225  ac_status=$?
23226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229  (eval $ac_try) 2>&5
23230  ac_status=$?
23231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232  (exit $ac_status); }; }; then
23233  res_hi=`cat conftest.val`
23234else
23235  echo "$as_me: program exited with status $ac_status" >&5
23236echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239( exit $ac_status )
23240result=?
23241fi
23242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23243fi
23244fi
23245rm -f conftest.val
23246    if test "$cross_compiling" = yes; then
23247  # Depending upon the size, compute the lo and hi bounds.
23248cat >conftest.$ac_ext <<_ACEOF
23249/* confdefs.h.  */
23250_ACEOF
23251cat confdefs.h >>conftest.$ac_ext
23252cat >>conftest.$ac_ext <<_ACEOF
23253/* end confdefs.h.  */
23254#include <stddef.h>
23255int
23256main ()
23257{
23258static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
23259test_array [0] = 0
23260
23261  ;
23262  return 0;
23263}
23264_ACEOF
23265rm -f conftest.$ac_objext
23266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23267  (eval $ac_compile) 2>conftest.er1
23268  ac_status=$?
23269  grep -v '^ *+' conftest.er1 >conftest.err
23270  rm -f conftest.er1
23271  cat conftest.err >&5
23272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273  (exit $ac_status); } &&
23274	 { ac_try='test -z "$ac_c_werror_flag"
23275			 || test ! -s conftest.err'
23276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277  (eval $ac_try) 2>&5
23278  ac_status=$?
23279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280  (exit $ac_status); }; } &&
23281	 { ac_try='test -s conftest.$ac_objext'
23282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283  (eval $ac_try) 2>&5
23284  ac_status=$?
23285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286  (exit $ac_status); }; }; then
23287  ac_lo=0 ac_mid=0
23288  while :; do
23289    cat >conftest.$ac_ext <<_ACEOF
23290/* confdefs.h.  */
23291_ACEOF
23292cat confdefs.h >>conftest.$ac_ext
23293cat >>conftest.$ac_ext <<_ACEOF
23294/* end confdefs.h.  */
23295#include <stddef.h>
23296int
23297main ()
23298{
23299static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23300test_array [0] = 0
23301
23302  ;
23303  return 0;
23304}
23305_ACEOF
23306rm -f conftest.$ac_objext
23307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23308  (eval $ac_compile) 2>conftest.er1
23309  ac_status=$?
23310  grep -v '^ *+' conftest.er1 >conftest.err
23311  rm -f conftest.er1
23312  cat conftest.err >&5
23313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314  (exit $ac_status); } &&
23315	 { ac_try='test -z "$ac_c_werror_flag"
23316			 || test ! -s conftest.err'
23317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318  (eval $ac_try) 2>&5
23319  ac_status=$?
23320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321  (exit $ac_status); }; } &&
23322	 { ac_try='test -s conftest.$ac_objext'
23323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324  (eval $ac_try) 2>&5
23325  ac_status=$?
23326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327  (exit $ac_status); }; }; then
23328  ac_hi=$ac_mid; break
23329else
23330  echo "$as_me: failed program was:" >&5
23331sed 's/^/| /' conftest.$ac_ext >&5
23332
23333ac_lo=`expr $ac_mid + 1`
23334		    if test $ac_lo -le $ac_mid; then
23335		      ac_lo= ac_hi=
23336		      break
23337		    fi
23338		    ac_mid=`expr 2 '*' $ac_mid + 1`
23339fi
23340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23341  done
23342else
23343  echo "$as_me: failed program was:" >&5
23344sed 's/^/| /' conftest.$ac_ext >&5
23345
23346cat >conftest.$ac_ext <<_ACEOF
23347/* confdefs.h.  */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h.  */
23352#include <stddef.h>
23353int
23354main ()
23355{
23356static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
23357test_array [0] = 0
23358
23359  ;
23360  return 0;
23361}
23362_ACEOF
23363rm -f conftest.$ac_objext
23364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23365  (eval $ac_compile) 2>conftest.er1
23366  ac_status=$?
23367  grep -v '^ *+' conftest.er1 >conftest.err
23368  rm -f conftest.er1
23369  cat conftest.err >&5
23370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371  (exit $ac_status); } &&
23372	 { ac_try='test -z "$ac_c_werror_flag"
23373			 || test ! -s conftest.err'
23374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375  (eval $ac_try) 2>&5
23376  ac_status=$?
23377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378  (exit $ac_status); }; } &&
23379	 { ac_try='test -s conftest.$ac_objext'
23380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381  (eval $ac_try) 2>&5
23382  ac_status=$?
23383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384  (exit $ac_status); }; }; then
23385  ac_hi=-1 ac_mid=-1
23386  while :; do
23387    cat >conftest.$ac_ext <<_ACEOF
23388/* confdefs.h.  */
23389_ACEOF
23390cat confdefs.h >>conftest.$ac_ext
23391cat >>conftest.$ac_ext <<_ACEOF
23392/* end confdefs.h.  */
23393#include <stddef.h>
23394int
23395main ()
23396{
23397static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
23398test_array [0] = 0
23399
23400  ;
23401  return 0;
23402}
23403_ACEOF
23404rm -f conftest.$ac_objext
23405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23406  (eval $ac_compile) 2>conftest.er1
23407  ac_status=$?
23408  grep -v '^ *+' conftest.er1 >conftest.err
23409  rm -f conftest.er1
23410  cat conftest.err >&5
23411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412  (exit $ac_status); } &&
23413	 { ac_try='test -z "$ac_c_werror_flag"
23414			 || test ! -s conftest.err'
23415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416  (eval $ac_try) 2>&5
23417  ac_status=$?
23418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419  (exit $ac_status); }; } &&
23420	 { ac_try='test -s conftest.$ac_objext'
23421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422  (eval $ac_try) 2>&5
23423  ac_status=$?
23424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425  (exit $ac_status); }; }; then
23426  ac_lo=$ac_mid; break
23427else
23428  echo "$as_me: failed program was:" >&5
23429sed 's/^/| /' conftest.$ac_ext >&5
23430
23431ac_hi=`expr '(' $ac_mid ')' - 1`
23432		       if test $ac_mid -le $ac_hi; then
23433			 ac_lo= ac_hi=
23434			 break
23435		       fi
23436		       ac_mid=`expr 2 '*' $ac_mid`
23437fi
23438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23439  done
23440else
23441  echo "$as_me: failed program was:" >&5
23442sed 's/^/| /' conftest.$ac_ext >&5
23443
23444ac_lo= ac_hi=
23445fi
23446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23447fi
23448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23449# Binary search between lo and hi bounds.
23450while test "x$ac_lo" != "x$ac_hi"; do
23451  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23452  cat >conftest.$ac_ext <<_ACEOF
23453/* confdefs.h.  */
23454_ACEOF
23455cat confdefs.h >>conftest.$ac_ext
23456cat >>conftest.$ac_ext <<_ACEOF
23457/* end confdefs.h.  */
23458#include <stddef.h>
23459int
23460main ()
23461{
23462static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
23463test_array [0] = 0
23464
23465  ;
23466  return 0;
23467}
23468_ACEOF
23469rm -f conftest.$ac_objext
23470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23471  (eval $ac_compile) 2>conftest.er1
23472  ac_status=$?
23473  grep -v '^ *+' conftest.er1 >conftest.err
23474  rm -f conftest.er1
23475  cat conftest.err >&5
23476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477  (exit $ac_status); } &&
23478	 { ac_try='test -z "$ac_c_werror_flag"
23479			 || test ! -s conftest.err'
23480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481  (eval $ac_try) 2>&5
23482  ac_status=$?
23483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484  (exit $ac_status); }; } &&
23485	 { ac_try='test -s conftest.$ac_objext'
23486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23487  (eval $ac_try) 2>&5
23488  ac_status=$?
23489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490  (exit $ac_status); }; }; then
23491  ac_hi=$ac_mid
23492else
23493  echo "$as_me: failed program was:" >&5
23494sed 's/^/| /' conftest.$ac_ext >&5
23495
23496ac_lo=`expr '(' $ac_mid ')' + 1`
23497fi
23498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23499done
23500case $ac_lo in
23501?*) res_lo=$ac_lo;;
23502'') result=? ;;
23503esac
23504else
23505  if test "$cross_compiling" = yes; then
23506  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23507See \`config.log' for more details." >&5
23508echo "$as_me: error: cannot run test program while cross compiling
23509See \`config.log' for more details." >&2;}
23510   { (exit 1); exit 1; }; }
23511else
23512  cat >conftest.$ac_ext <<_ACEOF
23513/* confdefs.h.  */
23514_ACEOF
23515cat confdefs.h >>conftest.$ac_ext
23516cat >>conftest.$ac_ext <<_ACEOF
23517/* end confdefs.h.  */
23518#include <stddef.h>
23519long longval () { return ~(size_t)0 % 10; }
23520unsigned long ulongval () { return ~(size_t)0 % 10; }
23521#include <stdio.h>
23522#include <stdlib.h>
23523int
23524main ()
23525{
23526
23527  FILE *f = fopen ("conftest.val", "w");
23528  if (! f)
23529    exit (1);
23530  if ((~(size_t)0 % 10) < 0)
23531    {
23532      long i = longval ();
23533      if (i != (~(size_t)0 % 10))
23534	exit (1);
23535      fprintf (f, "%ld\n", i);
23536    }
23537  else
23538    {
23539      unsigned long i = ulongval ();
23540      if (i != (~(size_t)0 % 10))
23541	exit (1);
23542      fprintf (f, "%lu\n", i);
23543    }
23544  exit (ferror (f) || fclose (f) != 0);
23545
23546  ;
23547  return 0;
23548}
23549_ACEOF
23550rm -f conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552  (eval $ac_link) 2>&5
23553  ac_status=$?
23554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557  (eval $ac_try) 2>&5
23558  ac_status=$?
23559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560  (exit $ac_status); }; }; then
23561  res_lo=`cat conftest.val`
23562else
23563  echo "$as_me: program exited with status $ac_status" >&5
23564echo "$as_me: failed program was:" >&5
23565sed 's/^/| /' conftest.$ac_ext >&5
23566
23567( exit $ac_status )
23568result=?
23569fi
23570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23571fi
23572fi
23573rm -f conftest.val
23574    if test "$cross_compiling" = yes; then
23575  # Depending upon the size, compute the lo and hi bounds.
23576cat >conftest.$ac_ext <<_ACEOF
23577/* confdefs.h.  */
23578_ACEOF
23579cat confdefs.h >>conftest.$ac_ext
23580cat >>conftest.$ac_ext <<_ACEOF
23581/* end confdefs.h.  */
23582#include <stddef.h>
23583int
23584main ()
23585{
23586static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
23587test_array [0] = 0
23588
23589  ;
23590  return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext
23594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23595  (eval $ac_compile) 2>conftest.er1
23596  ac_status=$?
23597  grep -v '^ *+' conftest.er1 >conftest.err
23598  rm -f conftest.er1
23599  cat conftest.err >&5
23600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601  (exit $ac_status); } &&
23602	 { ac_try='test -z "$ac_c_werror_flag"
23603			 || test ! -s conftest.err'
23604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605  (eval $ac_try) 2>&5
23606  ac_status=$?
23607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608  (exit $ac_status); }; } &&
23609	 { ac_try='test -s conftest.$ac_objext'
23610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611  (eval $ac_try) 2>&5
23612  ac_status=$?
23613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614  (exit $ac_status); }; }; then
23615  ac_lo=0 ac_mid=0
23616  while :; do
23617    cat >conftest.$ac_ext <<_ACEOF
23618/* confdefs.h.  */
23619_ACEOF
23620cat confdefs.h >>conftest.$ac_ext
23621cat >>conftest.$ac_ext <<_ACEOF
23622/* end confdefs.h.  */
23623#include <stddef.h>
23624int
23625main ()
23626{
23627static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
23628test_array [0] = 0
23629
23630  ;
23631  return 0;
23632}
23633_ACEOF
23634rm -f conftest.$ac_objext
23635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23636  (eval $ac_compile) 2>conftest.er1
23637  ac_status=$?
23638  grep -v '^ *+' conftest.er1 >conftest.err
23639  rm -f conftest.er1
23640  cat conftest.err >&5
23641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642  (exit $ac_status); } &&
23643	 { ac_try='test -z "$ac_c_werror_flag"
23644			 || test ! -s conftest.err'
23645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646  (eval $ac_try) 2>&5
23647  ac_status=$?
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); }; } &&
23650	 { ac_try='test -s conftest.$ac_objext'
23651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652  (eval $ac_try) 2>&5
23653  ac_status=$?
23654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655  (exit $ac_status); }; }; then
23656  ac_hi=$ac_mid; break
23657else
23658  echo "$as_me: failed program was:" >&5
23659sed 's/^/| /' conftest.$ac_ext >&5
23660
23661ac_lo=`expr $ac_mid + 1`
23662		    if test $ac_lo -le $ac_mid; then
23663		      ac_lo= ac_hi=
23664		      break
23665		    fi
23666		    ac_mid=`expr 2 '*' $ac_mid + 1`
23667fi
23668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23669  done
23670else
23671  echo "$as_me: failed program was:" >&5
23672sed 's/^/| /' conftest.$ac_ext >&5
23673
23674cat >conftest.$ac_ext <<_ACEOF
23675/* confdefs.h.  */
23676_ACEOF
23677cat confdefs.h >>conftest.$ac_ext
23678cat >>conftest.$ac_ext <<_ACEOF
23679/* end confdefs.h.  */
23680#include <stddef.h>
23681int
23682main ()
23683{
23684static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
23685test_array [0] = 0
23686
23687  ;
23688  return 0;
23689}
23690_ACEOF
23691rm -f conftest.$ac_objext
23692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23693  (eval $ac_compile) 2>conftest.er1
23694  ac_status=$?
23695  grep -v '^ *+' conftest.er1 >conftest.err
23696  rm -f conftest.er1
23697  cat conftest.err >&5
23698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699  (exit $ac_status); } &&
23700	 { ac_try='test -z "$ac_c_werror_flag"
23701			 || test ! -s conftest.err'
23702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703  (eval $ac_try) 2>&5
23704  ac_status=$?
23705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706  (exit $ac_status); }; } &&
23707	 { ac_try='test -s conftest.$ac_objext'
23708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709  (eval $ac_try) 2>&5
23710  ac_status=$?
23711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712  (exit $ac_status); }; }; then
23713  ac_hi=-1 ac_mid=-1
23714  while :; do
23715    cat >conftest.$ac_ext <<_ACEOF
23716/* confdefs.h.  */
23717_ACEOF
23718cat confdefs.h >>conftest.$ac_ext
23719cat >>conftest.$ac_ext <<_ACEOF
23720/* end confdefs.h.  */
23721#include <stddef.h>
23722int
23723main ()
23724{
23725static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
23726test_array [0] = 0
23727
23728  ;
23729  return 0;
23730}
23731_ACEOF
23732rm -f conftest.$ac_objext
23733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23734  (eval $ac_compile) 2>conftest.er1
23735  ac_status=$?
23736  grep -v '^ *+' conftest.er1 >conftest.err
23737  rm -f conftest.er1
23738  cat conftest.err >&5
23739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740  (exit $ac_status); } &&
23741	 { ac_try='test -z "$ac_c_werror_flag"
23742			 || test ! -s conftest.err'
23743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744  (eval $ac_try) 2>&5
23745  ac_status=$?
23746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747  (exit $ac_status); }; } &&
23748	 { ac_try='test -s conftest.$ac_objext'
23749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750  (eval $ac_try) 2>&5
23751  ac_status=$?
23752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753  (exit $ac_status); }; }; then
23754  ac_lo=$ac_mid; break
23755else
23756  echo "$as_me: failed program was:" >&5
23757sed 's/^/| /' conftest.$ac_ext >&5
23758
23759ac_hi=`expr '(' $ac_mid ')' - 1`
23760		       if test $ac_mid -le $ac_hi; then
23761			 ac_lo= ac_hi=
23762			 break
23763		       fi
23764		       ac_mid=`expr 2 '*' $ac_mid`
23765fi
23766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23767  done
23768else
23769  echo "$as_me: failed program was:" >&5
23770sed 's/^/| /' conftest.$ac_ext >&5
23771
23772ac_lo= ac_hi=
23773fi
23774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23775fi
23776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23777# Binary search between lo and hi bounds.
23778while test "x$ac_lo" != "x$ac_hi"; do
23779  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23780  cat >conftest.$ac_ext <<_ACEOF
23781/* confdefs.h.  */
23782_ACEOF
23783cat confdefs.h >>conftest.$ac_ext
23784cat >>conftest.$ac_ext <<_ACEOF
23785/* end confdefs.h.  */
23786#include <stddef.h>
23787int
23788main ()
23789{
23790static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
23791test_array [0] = 0
23792
23793  ;
23794  return 0;
23795}
23796_ACEOF
23797rm -f conftest.$ac_objext
23798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23799  (eval $ac_compile) 2>conftest.er1
23800  ac_status=$?
23801  grep -v '^ *+' conftest.er1 >conftest.err
23802  rm -f conftest.er1
23803  cat conftest.err >&5
23804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805  (exit $ac_status); } &&
23806	 { ac_try='test -z "$ac_c_werror_flag"
23807			 || test ! -s conftest.err'
23808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809  (eval $ac_try) 2>&5
23810  ac_status=$?
23811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812  (exit $ac_status); }; } &&
23813	 { ac_try='test -s conftest.$ac_objext'
23814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815  (eval $ac_try) 2>&5
23816  ac_status=$?
23817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818  (exit $ac_status); }; }; then
23819  ac_hi=$ac_mid
23820else
23821  echo "$as_me: failed program was:" >&5
23822sed 's/^/| /' conftest.$ac_ext >&5
23823
23824ac_lo=`expr '(' $ac_mid ')' + 1`
23825fi
23826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23827done
23828case $ac_lo in
23829?*) fits_in_uint=$ac_lo;;
23830'') result=? ;;
23831esac
23832else
23833  if test "$cross_compiling" = yes; then
23834  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23835See \`config.log' for more details." >&5
23836echo "$as_me: error: cannot run test program while cross compiling
23837See \`config.log' for more details." >&2;}
23838   { (exit 1); exit 1; }; }
23839else
23840  cat >conftest.$ac_ext <<_ACEOF
23841/* confdefs.h.  */
23842_ACEOF
23843cat confdefs.h >>conftest.$ac_ext
23844cat >>conftest.$ac_ext <<_ACEOF
23845/* end confdefs.h.  */
23846#include <stddef.h>
23847long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
23848unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
23849#include <stdio.h>
23850#include <stdlib.h>
23851int
23852main ()
23853{
23854
23855  FILE *f = fopen ("conftest.val", "w");
23856  if (! f)
23857    exit (1);
23858  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
23859    {
23860      long i = longval ();
23861      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
23862	exit (1);
23863      fprintf (f, "%ld\n", i);
23864    }
23865  else
23866    {
23867      unsigned long i = ulongval ();
23868      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
23869	exit (1);
23870      fprintf (f, "%lu\n", i);
23871    }
23872  exit (ferror (f) || fclose (f) != 0);
23873
23874  ;
23875  return 0;
23876}
23877_ACEOF
23878rm -f conftest$ac_exeext
23879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23880  (eval $ac_link) 2>&5
23881  ac_status=$?
23882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885  (eval $ac_try) 2>&5
23886  ac_status=$?
23887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888  (exit $ac_status); }; }; then
23889  fits_in_uint=`cat conftest.val`
23890else
23891  echo "$as_me: program exited with status $ac_status" >&5
23892echo "$as_me: failed program was:" >&5
23893sed 's/^/| /' conftest.$ac_ext >&5
23894
23895( exit $ac_status )
23896result=?
23897fi
23898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23899fi
23900fi
23901rm -f conftest.val
23902    if test "$fits_in_uint" = 1; then
23903                  cat >conftest.$ac_ext <<_ACEOF
23904/* confdefs.h.  */
23905_ACEOF
23906cat confdefs.h >>conftest.$ac_ext
23907cat >>conftest.$ac_ext <<_ACEOF
23908/* end confdefs.h.  */
23909#include <stddef.h>
23910        extern size_t foo;
23911        extern unsigned long foo;
23912
23913int
23914main ()
23915{
23916
23917  ;
23918  return 0;
23919}
23920_ACEOF
23921rm -f conftest.$ac_objext
23922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23923  (eval $ac_compile) 2>conftest.er1
23924  ac_status=$?
23925  grep -v '^ *+' conftest.er1 >conftest.err
23926  rm -f conftest.er1
23927  cat conftest.err >&5
23928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929  (exit $ac_status); } &&
23930	 { ac_try='test -z "$ac_c_werror_flag"
23931			 || test ! -s conftest.err'
23932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23933  (eval $ac_try) 2>&5
23934  ac_status=$?
23935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936  (exit $ac_status); }; } &&
23937	 { ac_try='test -s conftest.$ac_objext'
23938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939  (eval $ac_try) 2>&5
23940  ac_status=$?
23941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942  (exit $ac_status); }; }; then
23943  fits_in_uint=0
23944else
23945  echo "$as_me: failed program was:" >&5
23946sed 's/^/| /' conftest.$ac_ext >&5
23947
23948fi
23949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950    fi
23951    if test -z "$result"; then
23952      if test "$fits_in_uint" = 1; then
23953        result="$res_hi$res_lo"U
23954      else
23955        result="$res_hi$res_lo"UL
23956      fi
23957    else
23958            result='~(size_t)0'
23959    fi
23960  fi
23961  echo "$as_me:$LINENO: result: $result" >&5
23962echo "${ECHO_T}$result" >&6
23963  if test "$result" != yes; then
23964
23965cat >>confdefs.h <<_ACEOF
23966#define SIZE_MAX $result
23967_ACEOF
23968
23969  fi
23970
23971
23972
23973
23974
23975for ac_header in stdint.h
23976do
23977as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23978if eval "test \"\${$as_ac_Header+set}\" = set"; then
23979  echo "$as_me:$LINENO: checking for $ac_header" >&5
23980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23981if eval "test \"\${$as_ac_Header+set}\" = set"; then
23982  echo $ECHO_N "(cached) $ECHO_C" >&6
23983fi
23984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23986else
23987  # Is the header compilable?
23988echo "$as_me:$LINENO: checking $ac_header usability" >&5
23989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23990cat >conftest.$ac_ext <<_ACEOF
23991/* confdefs.h.  */
23992_ACEOF
23993cat confdefs.h >>conftest.$ac_ext
23994cat >>conftest.$ac_ext <<_ACEOF
23995/* end confdefs.h.  */
23996$ac_includes_default
23997#include <$ac_header>
23998_ACEOF
23999rm -f conftest.$ac_objext
24000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24001  (eval $ac_compile) 2>conftest.er1
24002  ac_status=$?
24003  grep -v '^ *+' conftest.er1 >conftest.err
24004  rm -f conftest.er1
24005  cat conftest.err >&5
24006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007  (exit $ac_status); } &&
24008	 { ac_try='test -z "$ac_c_werror_flag"
24009			 || test ! -s conftest.err'
24010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011  (eval $ac_try) 2>&5
24012  ac_status=$?
24013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014  (exit $ac_status); }; } &&
24015	 { ac_try='test -s conftest.$ac_objext'
24016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017  (eval $ac_try) 2>&5
24018  ac_status=$?
24019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020  (exit $ac_status); }; }; then
24021  ac_header_compiler=yes
24022else
24023  echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026ac_header_compiler=no
24027fi
24028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24030echo "${ECHO_T}$ac_header_compiler" >&6
24031
24032# Is the header present?
24033echo "$as_me:$LINENO: checking $ac_header presence" >&5
24034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24035cat >conftest.$ac_ext <<_ACEOF
24036/* confdefs.h.  */
24037_ACEOF
24038cat confdefs.h >>conftest.$ac_ext
24039cat >>conftest.$ac_ext <<_ACEOF
24040/* end confdefs.h.  */
24041#include <$ac_header>
24042_ACEOF
24043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24044  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24045  ac_status=$?
24046  grep -v '^ *+' conftest.er1 >conftest.err
24047  rm -f conftest.er1
24048  cat conftest.err >&5
24049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050  (exit $ac_status); } >/dev/null; then
24051  if test -s conftest.err; then
24052    ac_cpp_err=$ac_c_preproc_warn_flag
24053    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24054  else
24055    ac_cpp_err=
24056  fi
24057else
24058  ac_cpp_err=yes
24059fi
24060if test -z "$ac_cpp_err"; then
24061  ac_header_preproc=yes
24062else
24063  echo "$as_me: failed program was:" >&5
24064sed 's/^/| /' conftest.$ac_ext >&5
24065
24066  ac_header_preproc=no
24067fi
24068rm -f conftest.err conftest.$ac_ext
24069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24070echo "${ECHO_T}$ac_header_preproc" >&6
24071
24072# So?  What about this header?
24073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24074  yes:no: )
24075    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24077    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24079    ac_header_preproc=yes
24080    ;;
24081  no:yes:* )
24082    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24084    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24085echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24086    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24088    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24089echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24090    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24092    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24094    (
24095      cat <<\_ASBOX
24096## ------------------------------------------ ##
24097## Report this to the AC_PACKAGE_NAME lists.  ##
24098## ------------------------------------------ ##
24099_ASBOX
24100    ) |
24101      sed "s/^/$as_me: WARNING:     /" >&2
24102    ;;
24103esac
24104echo "$as_me:$LINENO: checking for $ac_header" >&5
24105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24106if eval "test \"\${$as_ac_Header+set}\" = set"; then
24107  echo $ECHO_N "(cached) $ECHO_C" >&6
24108else
24109  eval "$as_ac_Header=\$ac_header_preproc"
24110fi
24111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24113
24114fi
24115if test `eval echo '${'$as_ac_Header'}'` = yes; then
24116  cat >>confdefs.h <<_ACEOF
24117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24118_ACEOF
24119
24120fi
24121
24122done
24123
24124
24125
24126    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
24127echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
24128if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
24129  echo $ECHO_N "(cached) $ECHO_C" >&6
24130else
24131  gt_save_CPPFLAGS="$CPPFLAGS"
24132     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24133     gt_save_LIBS="$LIBS"
24134     LIBS="$LIBS -framework CoreFoundation"
24135     cat >conftest.$ac_ext <<_ACEOF
24136/* confdefs.h.  */
24137_ACEOF
24138cat confdefs.h >>conftest.$ac_ext
24139cat >>conftest.$ac_ext <<_ACEOF
24140/* end confdefs.h.  */
24141#include <CFPreferences.h>
24142int
24143main ()
24144{
24145CFPreferencesCopyAppValue(NULL, NULL)
24146  ;
24147  return 0;
24148}
24149_ACEOF
24150rm -f conftest.$ac_objext conftest$ac_exeext
24151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24152  (eval $ac_link) 2>conftest.er1
24153  ac_status=$?
24154  grep -v '^ *+' conftest.er1 >conftest.err
24155  rm -f conftest.er1
24156  cat conftest.err >&5
24157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158  (exit $ac_status); } &&
24159	 { ac_try='test -z "$ac_c_werror_flag"
24160			 || test ! -s conftest.err'
24161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162  (eval $ac_try) 2>&5
24163  ac_status=$?
24164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165  (exit $ac_status); }; } &&
24166	 { ac_try='test -s conftest$ac_exeext'
24167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168  (eval $ac_try) 2>&5
24169  ac_status=$?
24170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171  (exit $ac_status); }; }; then
24172  gt_cv_func_CFPreferencesCopyAppValue=yes
24173else
24174  echo "$as_me: failed program was:" >&5
24175sed 's/^/| /' conftest.$ac_ext >&5
24176
24177gt_cv_func_CFPreferencesCopyAppValue=no
24178fi
24179rm -f conftest.err conftest.$ac_objext \
24180      conftest$ac_exeext conftest.$ac_ext
24181     CPPFLAGS="$gt_save_CPPFLAGS"
24182     LIBS="$gt_save_LIBS"
24183fi
24184echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24185echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
24186  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24187
24188cat >>confdefs.h <<\_ACEOF
24189#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
24190_ACEOF
24191
24192  fi
24193    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
24194echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
24195if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
24196  echo $ECHO_N "(cached) $ECHO_C" >&6
24197else
24198  gt_save_CPPFLAGS="$CPPFLAGS"
24199     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
24200     gt_save_LIBS="$LIBS"
24201     LIBS="$LIBS -framework CoreFoundation"
24202     cat >conftest.$ac_ext <<_ACEOF
24203/* confdefs.h.  */
24204_ACEOF
24205cat confdefs.h >>conftest.$ac_ext
24206cat >>conftest.$ac_ext <<_ACEOF
24207/* end confdefs.h.  */
24208#include <CFLocale.h>
24209int
24210main ()
24211{
24212CFLocaleCopyCurrent();
24213  ;
24214  return 0;
24215}
24216_ACEOF
24217rm -f conftest.$ac_objext conftest$ac_exeext
24218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24219  (eval $ac_link) 2>conftest.er1
24220  ac_status=$?
24221  grep -v '^ *+' conftest.er1 >conftest.err
24222  rm -f conftest.er1
24223  cat conftest.err >&5
24224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225  (exit $ac_status); } &&
24226	 { ac_try='test -z "$ac_c_werror_flag"
24227			 || test ! -s conftest.err'
24228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24229  (eval $ac_try) 2>&5
24230  ac_status=$?
24231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232  (exit $ac_status); }; } &&
24233	 { ac_try='test -s conftest$ac_exeext'
24234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24235  (eval $ac_try) 2>&5
24236  ac_status=$?
24237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238  (exit $ac_status); }; }; then
24239  gt_cv_func_CFLocaleCopyCurrent=yes
24240else
24241  echo "$as_me: failed program was:" >&5
24242sed 's/^/| /' conftest.$ac_ext >&5
24243
24244gt_cv_func_CFLocaleCopyCurrent=no
24245fi
24246rm -f conftest.err conftest.$ac_objext \
24247      conftest$ac_exeext conftest.$ac_ext
24248     CPPFLAGS="$gt_save_CPPFLAGS"
24249     LIBS="$gt_save_LIBS"
24250fi
24251echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24252echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
24253  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24254
24255cat >>confdefs.h <<\_ACEOF
24256#define HAVE_CFLOCALECOPYCURRENT 1
24257_ACEOF
24258
24259  fi
24260  INTL_MACOSX_LIBS=
24261  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24262    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24263  fi
24264
24265
24266
24267      if test "X$prefix" = "XNONE"; then
24268    acl_final_prefix="$ac_default_prefix"
24269  else
24270    acl_final_prefix="$prefix"
24271  fi
24272  if test "X$exec_prefix" = "XNONE"; then
24273    acl_final_exec_prefix='${prefix}'
24274  else
24275    acl_final_exec_prefix="$exec_prefix"
24276  fi
24277  acl_save_prefix="$prefix"
24278  prefix="$acl_final_prefix"
24279  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24280  prefix="$acl_save_prefix"
24281
24282
24283# Check whether --with-gnu-ld or --without-gnu-ld was given.
24284if test "${with_gnu_ld+set}" = set; then
24285  withval="$with_gnu_ld"
24286  test "$withval" = no || with_gnu_ld=yes
24287else
24288  with_gnu_ld=no
24289fi;
24290# Prepare PATH_SEPARATOR.
24291# The user is always right.
24292if test "${PATH_SEPARATOR+set}" != set; then
24293  echo "#! /bin/sh" >conf$$.sh
24294  echo  "exit 0"   >>conf$$.sh
24295  chmod +x conf$$.sh
24296  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24297    PATH_SEPARATOR=';'
24298  else
24299    PATH_SEPARATOR=:
24300  fi
24301  rm -f conf$$.sh
24302fi
24303ac_prog=ld
24304if test "$GCC" = yes; then
24305  # Check if gcc -print-prog-name=ld gives a path.
24306  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24307echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
24308  case $host in
24309  *-*-mingw*)
24310    # gcc leaves a trailing carriage return which upsets mingw
24311    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24312  *)
24313    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24314  esac
24315  case $ac_prog in
24316    # Accept absolute paths.
24317    [\\/]* | [A-Za-z]:[\\/]*)
24318      re_direlt='/[^/][^/]*/\.\./'
24319      # Canonicalize the path of ld
24320      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24321      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24322	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24323      done
24324      test -z "$LD" && LD="$ac_prog"
24325      ;;
24326  "")
24327    # If it fails, then pretend we aren't using GCC.
24328    ac_prog=ld
24329    ;;
24330  *)
24331    # If it is relative, then search for the first ld in PATH.
24332    with_gnu_ld=unknown
24333    ;;
24334  esac
24335elif test "$with_gnu_ld" = yes; then
24336  echo "$as_me:$LINENO: checking for GNU ld" >&5
24337echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24338else
24339  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24340echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24341fi
24342if test "${acl_cv_path_LD+set}" = set; then
24343  echo $ECHO_N "(cached) $ECHO_C" >&6
24344else
24345  if test -z "$LD"; then
24346  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24347  for ac_dir in $PATH; do
24348    test -z "$ac_dir" && ac_dir=.
24349    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24350      acl_cv_path_LD="$ac_dir/$ac_prog"
24351      # Check to see if the program is GNU ld.  I'd rather use --version,
24352      # but apparently some GNU ld's only accept -v.
24353      # Break only if it was the GNU/non-GNU ld that we prefer.
24354      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24355      *GNU* | *'with BFD'*)
24356	test "$with_gnu_ld" != no && break ;;
24357      *)
24358	test "$with_gnu_ld" != yes && break ;;
24359      esac
24360    fi
24361  done
24362  IFS="$ac_save_ifs"
24363else
24364  acl_cv_path_LD="$LD" # Let the user override the test with a path.
24365fi
24366fi
24367
24368LD="$acl_cv_path_LD"
24369if test -n "$LD"; then
24370  echo "$as_me:$LINENO: result: $LD" >&5
24371echo "${ECHO_T}$LD" >&6
24372else
24373  echo "$as_me:$LINENO: result: no" >&5
24374echo "${ECHO_T}no" >&6
24375fi
24376test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24377echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24378   { (exit 1); exit 1; }; }
24379echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24380echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24381if test "${acl_cv_prog_gnu_ld+set}" = set; then
24382  echo $ECHO_N "(cached) $ECHO_C" >&6
24383else
24384  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24385case `$LD -v 2>&1 </dev/null` in
24386*GNU* | *'with BFD'*)
24387  acl_cv_prog_gnu_ld=yes ;;
24388*)
24389  acl_cv_prog_gnu_ld=no ;;
24390esac
24391fi
24392echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24393echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
24394with_gnu_ld=$acl_cv_prog_gnu_ld
24395
24396
24397
24398
24399                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24400echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
24401if test "${acl_cv_rpath+set}" = set; then
24402  echo $ECHO_N "(cached) $ECHO_C" >&6
24403else
24404
24405    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24406    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24407    . ./conftest.sh
24408    rm -f ./conftest.sh
24409    acl_cv_rpath=done
24410
24411fi
24412echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24413echo "${ECHO_T}$acl_cv_rpath" >&6
24414  wl="$acl_cv_wl"
24415  libext="$acl_cv_libext"
24416  shlibext="$acl_cv_shlibext"
24417  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24418  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24419  hardcode_direct="$acl_cv_hardcode_direct"
24420  hardcode_minus_L="$acl_cv_hardcode_minus_L"
24421    # Check whether --enable-rpath or --disable-rpath was given.
24422if test "${enable_rpath+set}" = set; then
24423  enableval="$enable_rpath"
24424  :
24425else
24426  enable_rpath=yes
24427fi;
24428
24429
24430
24431
24432
24433
24434
24435    use_additional=yes
24436
24437  acl_save_prefix="$prefix"
24438  prefix="$acl_final_prefix"
24439  acl_save_exec_prefix="$exec_prefix"
24440  exec_prefix="$acl_final_exec_prefix"
24441
24442    eval additional_includedir=\"$includedir\"
24443    eval additional_libdir=\"$libdir\"
24444
24445  exec_prefix="$acl_save_exec_prefix"
24446  prefix="$acl_save_prefix"
24447
24448
24449# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
24450if test "${with_libiconv_prefix+set}" = set; then
24451  withval="$with_libiconv_prefix"
24452
24453    if test "X$withval" = "Xno"; then
24454      use_additional=no
24455    else
24456      if test "X$withval" = "X"; then
24457
24458  acl_save_prefix="$prefix"
24459  prefix="$acl_final_prefix"
24460  acl_save_exec_prefix="$exec_prefix"
24461  exec_prefix="$acl_final_exec_prefix"
24462
24463          eval additional_includedir=\"$includedir\"
24464          eval additional_libdir=\"$libdir\"
24465
24466  exec_prefix="$acl_save_exec_prefix"
24467  prefix="$acl_save_prefix"
24468
24469      else
24470        additional_includedir="$withval/include"
24471        additional_libdir="$withval/lib"
24472      fi
24473    fi
24474
24475fi;
24476      LIBICONV=
24477  LTLIBICONV=
24478  INCICONV=
24479  rpathdirs=
24480  ltrpathdirs=
24481  names_already_handled=
24482  names_next_round='iconv '
24483  while test -n "$names_next_round"; do
24484    names_this_round="$names_next_round"
24485    names_next_round=
24486    for name in $names_this_round; do
24487      already_handled=
24488      for n in $names_already_handled; do
24489        if test "$n" = "$name"; then
24490          already_handled=yes
24491          break
24492        fi
24493      done
24494      if test -z "$already_handled"; then
24495        names_already_handled="$names_already_handled $name"
24496                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24497        eval value=\"\$HAVE_LIB$uppername\"
24498        if test -n "$value"; then
24499          if test "$value" = yes; then
24500            eval value=\"\$LIB$uppername\"
24501            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24502            eval value=\"\$LTLIB$uppername\"
24503            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24504          else
24505                                    :
24506          fi
24507        else
24508                              found_dir=
24509          found_la=
24510          found_so=
24511          found_a=
24512          if test $use_additional = yes; then
24513            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24514              found_dir="$additional_libdir"
24515              found_so="$additional_libdir/lib$name.$shlibext"
24516              if test -f "$additional_libdir/lib$name.la"; then
24517                found_la="$additional_libdir/lib$name.la"
24518              fi
24519            else
24520              if test -f "$additional_libdir/lib$name.$libext"; then
24521                found_dir="$additional_libdir"
24522                found_a="$additional_libdir/lib$name.$libext"
24523                if test -f "$additional_libdir/lib$name.la"; then
24524                  found_la="$additional_libdir/lib$name.la"
24525                fi
24526              fi
24527            fi
24528          fi
24529          if test "X$found_dir" = "X"; then
24530            for x in $LDFLAGS $LTLIBICONV; do
24531
24532  acl_save_prefix="$prefix"
24533  prefix="$acl_final_prefix"
24534  acl_save_exec_prefix="$exec_prefix"
24535  exec_prefix="$acl_final_exec_prefix"
24536  eval x=\"$x\"
24537  exec_prefix="$acl_save_exec_prefix"
24538  prefix="$acl_save_prefix"
24539
24540              case "$x" in
24541                -L*)
24542                  dir=`echo "X$x" | sed -e 's/^X-L//'`
24543                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24544                    found_dir="$dir"
24545                    found_so="$dir/lib$name.$shlibext"
24546                    if test -f "$dir/lib$name.la"; then
24547                      found_la="$dir/lib$name.la"
24548                    fi
24549                  else
24550                    if test -f "$dir/lib$name.$libext"; then
24551                      found_dir="$dir"
24552                      found_a="$dir/lib$name.$libext"
24553                      if test -f "$dir/lib$name.la"; then
24554                        found_la="$dir/lib$name.la"
24555                      fi
24556                    fi
24557                  fi
24558                  ;;
24559              esac
24560              if test "X$found_dir" != "X"; then
24561                break
24562              fi
24563            done
24564          fi
24565          if test "X$found_dir" != "X"; then
24566                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24567            if test "X$found_so" != "X"; then
24568                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
24569                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24570              else
24571                                                                                haveit=
24572                for x in $ltrpathdirs; do
24573                  if test "X$x" = "X$found_dir"; then
24574                    haveit=yes
24575                    break
24576                  fi
24577                done
24578                if test -z "$haveit"; then
24579                  ltrpathdirs="$ltrpathdirs $found_dir"
24580                fi
24581                                if test "$hardcode_direct" = yes; then
24582                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24583                else
24584                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24585                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24586                                                            haveit=
24587                    for x in $rpathdirs; do
24588                      if test "X$x" = "X$found_dir"; then
24589                        haveit=yes
24590                        break
24591                      fi
24592                    done
24593                    if test -z "$haveit"; then
24594                      rpathdirs="$rpathdirs $found_dir"
24595                    fi
24596                  else
24597                                                                                haveit=
24598                    for x in $LDFLAGS $LIBICONV; do
24599
24600  acl_save_prefix="$prefix"
24601  prefix="$acl_final_prefix"
24602  acl_save_exec_prefix="$exec_prefix"
24603  exec_prefix="$acl_final_exec_prefix"
24604  eval x=\"$x\"
24605  exec_prefix="$acl_save_exec_prefix"
24606  prefix="$acl_save_prefix"
24607
24608                      if test "X$x" = "X-L$found_dir"; then
24609                        haveit=yes
24610                        break
24611                      fi
24612                    done
24613                    if test -z "$haveit"; then
24614                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24615                    fi
24616                    if test "$hardcode_minus_L" != no; then
24617                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24618                    else
24619                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24620                    fi
24621                  fi
24622                fi
24623              fi
24624            else
24625              if test "X$found_a" != "X"; then
24626                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24627              else
24628                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24629              fi
24630            fi
24631                        additional_includedir=
24632            case "$found_dir" in
24633              */lib | */lib/)
24634                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
24635                additional_includedir="$basedir/include"
24636                ;;
24637            esac
24638            if test "X$additional_includedir" != "X"; then
24639                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
24640                haveit=
24641                if test "X$additional_includedir" = "X/usr/local/include"; then
24642                  if test -n "$GCC"; then
24643                    case $host_os in
24644                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24645                    esac
24646                  fi
24647                fi
24648                if test -z "$haveit"; then
24649                  for x in $CPPFLAGS $INCICONV; do
24650
24651  acl_save_prefix="$prefix"
24652  prefix="$acl_final_prefix"
24653  acl_save_exec_prefix="$exec_prefix"
24654  exec_prefix="$acl_final_exec_prefix"
24655  eval x=\"$x\"
24656  exec_prefix="$acl_save_exec_prefix"
24657  prefix="$acl_save_prefix"
24658
24659                    if test "X$x" = "X-I$additional_includedir"; then
24660                      haveit=yes
24661                      break
24662                    fi
24663                  done
24664                  if test -z "$haveit"; then
24665                    if test -d "$additional_includedir"; then
24666                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24667                    fi
24668                  fi
24669                fi
24670              fi
24671            fi
24672                        if test -n "$found_la"; then
24673                                                        save_libdir="$libdir"
24674              case "$found_la" in
24675                */* | *\\*) . "$found_la" ;;
24676                *) . "./$found_la" ;;
24677              esac
24678              libdir="$save_libdir"
24679                            for dep in $dependency_libs; do
24680                case "$dep" in
24681                  -L*)
24682                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24683                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
24684                      haveit=
24685                      if test "X$additional_libdir" = "X/usr/local/lib"; then
24686                        if test -n "$GCC"; then
24687                          case $host_os in
24688                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24689                          esac
24690                        fi
24691                      fi
24692                      if test -z "$haveit"; then
24693                        haveit=
24694                        for x in $LDFLAGS $LIBICONV; do
24695
24696  acl_save_prefix="$prefix"
24697  prefix="$acl_final_prefix"
24698  acl_save_exec_prefix="$exec_prefix"
24699  exec_prefix="$acl_final_exec_prefix"
24700  eval x=\"$x\"
24701  exec_prefix="$acl_save_exec_prefix"
24702  prefix="$acl_save_prefix"
24703
24704                          if test "X$x" = "X-L$additional_libdir"; then
24705                            haveit=yes
24706                            break
24707                          fi
24708                        done
24709                        if test -z "$haveit"; then
24710                          if test -d "$additional_libdir"; then
24711                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24712                          fi
24713                        fi
24714                        haveit=
24715                        for x in $LDFLAGS $LTLIBICONV; do
24716
24717  acl_save_prefix="$prefix"
24718  prefix="$acl_final_prefix"
24719  acl_save_exec_prefix="$exec_prefix"
24720  exec_prefix="$acl_final_exec_prefix"
24721  eval x=\"$x\"
24722  exec_prefix="$acl_save_exec_prefix"
24723  prefix="$acl_save_prefix"
24724
24725                          if test "X$x" = "X-L$additional_libdir"; then
24726                            haveit=yes
24727                            break
24728                          fi
24729                        done
24730                        if test -z "$haveit"; then
24731                          if test -d "$additional_libdir"; then
24732                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24733                          fi
24734                        fi
24735                      fi
24736                    fi
24737                    ;;
24738                  -R*)
24739                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
24740                    if test "$enable_rpath" != no; then
24741                                                                  haveit=
24742                      for x in $rpathdirs; do
24743                        if test "X$x" = "X$dir"; then
24744                          haveit=yes
24745                          break
24746                        fi
24747                      done
24748                      if test -z "$haveit"; then
24749                        rpathdirs="$rpathdirs $dir"
24750                      fi
24751                                                                  haveit=
24752                      for x in $ltrpathdirs; do
24753                        if test "X$x" = "X$dir"; then
24754                          haveit=yes
24755                          break
24756                        fi
24757                      done
24758                      if test -z "$haveit"; then
24759                        ltrpathdirs="$ltrpathdirs $dir"
24760                      fi
24761                    fi
24762                    ;;
24763                  -l*)
24764                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24765                    ;;
24766                  *.la)
24767                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24768                    ;;
24769                  *)
24770                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24771                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24772                    ;;
24773                esac
24774              done
24775            fi
24776          else
24777                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24778            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24779          fi
24780        fi
24781      fi
24782    done
24783  done
24784  if test "X$rpathdirs" != "X"; then
24785    if test -n "$hardcode_libdir_separator"; then
24786                        alldirs=
24787      for found_dir in $rpathdirs; do
24788        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24789      done
24790            acl_save_libdir="$libdir"
24791      libdir="$alldirs"
24792      eval flag=\"$hardcode_libdir_flag_spec\"
24793      libdir="$acl_save_libdir"
24794      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24795    else
24796            for found_dir in $rpathdirs; do
24797        acl_save_libdir="$libdir"
24798        libdir="$found_dir"
24799        eval flag=\"$hardcode_libdir_flag_spec\"
24800        libdir="$acl_save_libdir"
24801        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24802      done
24803    fi
24804  fi
24805  if test "X$ltrpathdirs" != "X"; then
24806            for found_dir in $ltrpathdirs; do
24807      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24808    done
24809  fi
24810
24811
24812
24813
24814
24815
24816
24817
24818  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
24819echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
24820if test "${ac_cv_type_ptrdiff_t+set}" = set; then
24821  echo $ECHO_N "(cached) $ECHO_C" >&6
24822else
24823  cat >conftest.$ac_ext <<_ACEOF
24824/* confdefs.h.  */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h.  */
24829$ac_includes_default
24830int
24831main ()
24832{
24833if ((ptrdiff_t *) 0)
24834  return 0;
24835if (sizeof (ptrdiff_t))
24836  return 0;
24837  ;
24838  return 0;
24839}
24840_ACEOF
24841rm -f conftest.$ac_objext
24842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24843  (eval $ac_compile) 2>conftest.er1
24844  ac_status=$?
24845  grep -v '^ *+' conftest.er1 >conftest.err
24846  rm -f conftest.er1
24847  cat conftest.err >&5
24848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849  (exit $ac_status); } &&
24850	 { ac_try='test -z "$ac_c_werror_flag"
24851			 || test ! -s conftest.err'
24852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853  (eval $ac_try) 2>&5
24854  ac_status=$?
24855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856  (exit $ac_status); }; } &&
24857	 { ac_try='test -s conftest.$ac_objext'
24858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859  (eval $ac_try) 2>&5
24860  ac_status=$?
24861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862  (exit $ac_status); }; }; then
24863  ac_cv_type_ptrdiff_t=yes
24864else
24865  echo "$as_me: failed program was:" >&5
24866sed 's/^/| /' conftest.$ac_ext >&5
24867
24868ac_cv_type_ptrdiff_t=no
24869fi
24870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24871fi
24872echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
24873echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
24874if test $ac_cv_type_ptrdiff_t = yes; then
24875  :
24876else
24877
24878cat >>confdefs.h <<\_ACEOF
24879#define ptrdiff_t long
24880_ACEOF
24881
24882
24883fi
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
24896stdlib.h string.h unistd.h sys/param.h
24897do
24898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24899if eval "test \"\${$as_ac_Header+set}\" = set"; then
24900  echo "$as_me:$LINENO: checking for $ac_header" >&5
24901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24902if eval "test \"\${$as_ac_Header+set}\" = set"; then
24903  echo $ECHO_N "(cached) $ECHO_C" >&6
24904fi
24905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24907else
24908  # Is the header compilable?
24909echo "$as_me:$LINENO: checking $ac_header usability" >&5
24910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24911cat >conftest.$ac_ext <<_ACEOF
24912/* confdefs.h.  */
24913_ACEOF
24914cat confdefs.h >>conftest.$ac_ext
24915cat >>conftest.$ac_ext <<_ACEOF
24916/* end confdefs.h.  */
24917$ac_includes_default
24918#include <$ac_header>
24919_ACEOF
24920rm -f conftest.$ac_objext
24921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24922  (eval $ac_compile) 2>conftest.er1
24923  ac_status=$?
24924  grep -v '^ *+' conftest.er1 >conftest.err
24925  rm -f conftest.er1
24926  cat conftest.err >&5
24927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928  (exit $ac_status); } &&
24929	 { ac_try='test -z "$ac_c_werror_flag"
24930			 || test ! -s conftest.err'
24931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932  (eval $ac_try) 2>&5
24933  ac_status=$?
24934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935  (exit $ac_status); }; } &&
24936	 { ac_try='test -s conftest.$ac_objext'
24937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24938  (eval $ac_try) 2>&5
24939  ac_status=$?
24940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941  (exit $ac_status); }; }; then
24942  ac_header_compiler=yes
24943else
24944  echo "$as_me: failed program was:" >&5
24945sed 's/^/| /' conftest.$ac_ext >&5
24946
24947ac_header_compiler=no
24948fi
24949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24951echo "${ECHO_T}$ac_header_compiler" >&6
24952
24953# Is the header present?
24954echo "$as_me:$LINENO: checking $ac_header presence" >&5
24955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24956cat >conftest.$ac_ext <<_ACEOF
24957/* confdefs.h.  */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h.  */
24962#include <$ac_header>
24963_ACEOF
24964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24965  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24966  ac_status=$?
24967  grep -v '^ *+' conftest.er1 >conftest.err
24968  rm -f conftest.er1
24969  cat conftest.err >&5
24970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971  (exit $ac_status); } >/dev/null; then
24972  if test -s conftest.err; then
24973    ac_cpp_err=$ac_c_preproc_warn_flag
24974    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24975  else
24976    ac_cpp_err=
24977  fi
24978else
24979  ac_cpp_err=yes
24980fi
24981if test -z "$ac_cpp_err"; then
24982  ac_header_preproc=yes
24983else
24984  echo "$as_me: failed program was:" >&5
24985sed 's/^/| /' conftest.$ac_ext >&5
24986
24987  ac_header_preproc=no
24988fi
24989rm -f conftest.err conftest.$ac_ext
24990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24991echo "${ECHO_T}$ac_header_preproc" >&6
24992
24993# So?  What about this header?
24994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24995  yes:no: )
24996    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24998    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25000    ac_header_preproc=yes
25001    ;;
25002  no:yes:* )
25003    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25005    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25006echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25007    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25009    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25010echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25011    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25013    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25015    (
25016      cat <<\_ASBOX
25017## ------------------------------------------ ##
25018## Report this to the AC_PACKAGE_NAME lists.  ##
25019## ------------------------------------------ ##
25020_ASBOX
25021    ) |
25022      sed "s/^/$as_me: WARNING:     /" >&2
25023    ;;
25024esac
25025echo "$as_me:$LINENO: checking for $ac_header" >&5
25026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25027if eval "test \"\${$as_ac_Header+set}\" = set"; then
25028  echo $ECHO_N "(cached) $ECHO_C" >&6
25029else
25030  eval "$as_ac_Header=\$ac_header_preproc"
25031fi
25032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25034
25035fi
25036if test `eval echo '${'$as_ac_Header'}'` = yes; then
25037  cat >>confdefs.h <<_ACEOF
25038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25039_ACEOF
25040
25041fi
25042
25043done
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
25069mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
25070strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
25071__fsetlocking
25072do
25073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25074echo "$as_me:$LINENO: checking for $ac_func" >&5
25075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25076if eval "test \"\${$as_ac_var+set}\" = set"; then
25077  echo $ECHO_N "(cached) $ECHO_C" >&6
25078else
25079  cat >conftest.$ac_ext <<_ACEOF
25080/* confdefs.h.  */
25081_ACEOF
25082cat confdefs.h >>conftest.$ac_ext
25083cat >>conftest.$ac_ext <<_ACEOF
25084/* end confdefs.h.  */
25085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25086   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25087#define $ac_func innocuous_$ac_func
25088
25089/* System header to define __stub macros and hopefully few prototypes,
25090    which can conflict with char $ac_func (); below.
25091    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25092    <limits.h> exists even on freestanding compilers.  */
25093
25094#ifdef __STDC__
25095# include <limits.h>
25096#else
25097# include <assert.h>
25098#endif
25099
25100#undef $ac_func
25101
25102/* Override any gcc2 internal prototype to avoid an error.  */
25103#ifdef __cplusplus
25104extern "C"
25105{
25106#endif
25107/* We use char because int might match the return type of a gcc2
25108   builtin and then its argument prototype would still apply.  */
25109char $ac_func ();
25110/* The GNU C library defines this for functions which it implements
25111    to always fail with ENOSYS.  Some functions are actually named
25112    something starting with __ and the normal name is an alias.  */
25113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25114choke me
25115#else
25116char (*f) () = $ac_func;
25117#endif
25118#ifdef __cplusplus
25119}
25120#endif
25121
25122int
25123main ()
25124{
25125return f != $ac_func;
25126  ;
25127  return 0;
25128}
25129_ACEOF
25130rm -f conftest.$ac_objext conftest$ac_exeext
25131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132  (eval $ac_link) 2>conftest.er1
25133  ac_status=$?
25134  grep -v '^ *+' conftest.er1 >conftest.err
25135  rm -f conftest.er1
25136  cat conftest.err >&5
25137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138  (exit $ac_status); } &&
25139	 { ac_try='test -z "$ac_c_werror_flag"
25140			 || test ! -s conftest.err'
25141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142  (eval $ac_try) 2>&5
25143  ac_status=$?
25144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145  (exit $ac_status); }; } &&
25146	 { ac_try='test -s conftest$ac_exeext'
25147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148  (eval $ac_try) 2>&5
25149  ac_status=$?
25150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151  (exit $ac_status); }; }; then
25152  eval "$as_ac_var=yes"
25153else
25154  echo "$as_me: failed program was:" >&5
25155sed 's/^/| /' conftest.$ac_ext >&5
25156
25157eval "$as_ac_var=no"
25158fi
25159rm -f conftest.err conftest.$ac_objext \
25160      conftest$ac_exeext conftest.$ac_ext
25161fi
25162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25163echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25164if test `eval echo '${'$as_ac_var'}'` = yes; then
25165  cat >>confdefs.h <<_ACEOF
25166#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25167_ACEOF
25168
25169fi
25170done
25171
25172
25173
25174  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
25175echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
25176if test "${ac_cv_have_decl__snprintf+set}" = set; then
25177  echo $ECHO_N "(cached) $ECHO_C" >&6
25178else
25179  cat >conftest.$ac_ext <<_ACEOF
25180/* confdefs.h.  */
25181_ACEOF
25182cat confdefs.h >>conftest.$ac_ext
25183cat >>conftest.$ac_ext <<_ACEOF
25184/* end confdefs.h.  */
25185#include <stdio.h>
25186int
25187main ()
25188{
25189
25190#ifndef _snprintf
25191  char *p = (char *) _snprintf;
25192#endif
25193
25194  ;
25195  return 0;
25196}
25197_ACEOF
25198rm -f conftest.$ac_objext
25199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25200  (eval $ac_compile) 2>conftest.er1
25201  ac_status=$?
25202  grep -v '^ *+' conftest.er1 >conftest.err
25203  rm -f conftest.er1
25204  cat conftest.err >&5
25205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206  (exit $ac_status); } &&
25207	 { ac_try='test -z "$ac_c_werror_flag"
25208			 || test ! -s conftest.err'
25209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25210  (eval $ac_try) 2>&5
25211  ac_status=$?
25212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213  (exit $ac_status); }; } &&
25214	 { ac_try='test -s conftest.$ac_objext'
25215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216  (eval $ac_try) 2>&5
25217  ac_status=$?
25218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219  (exit $ac_status); }; }; then
25220  ac_cv_have_decl__snprintf=yes
25221else
25222  echo "$as_me: failed program was:" >&5
25223sed 's/^/| /' conftest.$ac_ext >&5
25224
25225ac_cv_have_decl__snprintf=no
25226fi
25227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25228fi
25229echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
25230echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
25231  if test $ac_cv_have_decl__snprintf = yes; then
25232    gt_value=1
25233  else
25234    gt_value=0
25235  fi
25236
25237cat >>confdefs.h <<_ACEOF
25238#define HAVE_DECL__SNPRINTF $gt_value
25239_ACEOF
25240
25241
25242
25243  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
25244echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
25245if test "${ac_cv_have_decl__snwprintf+set}" = set; then
25246  echo $ECHO_N "(cached) $ECHO_C" >&6
25247else
25248  cat >conftest.$ac_ext <<_ACEOF
25249/* confdefs.h.  */
25250_ACEOF
25251cat confdefs.h >>conftest.$ac_ext
25252cat >>conftest.$ac_ext <<_ACEOF
25253/* end confdefs.h.  */
25254#include <stdio.h>
25255int
25256main ()
25257{
25258
25259#ifndef _snwprintf
25260  char *p = (char *) _snwprintf;
25261#endif
25262
25263  ;
25264  return 0;
25265}
25266_ACEOF
25267rm -f conftest.$ac_objext
25268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25269  (eval $ac_compile) 2>conftest.er1
25270  ac_status=$?
25271  grep -v '^ *+' conftest.er1 >conftest.err
25272  rm -f conftest.er1
25273  cat conftest.err >&5
25274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275  (exit $ac_status); } &&
25276	 { ac_try='test -z "$ac_c_werror_flag"
25277			 || test ! -s conftest.err'
25278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25279  (eval $ac_try) 2>&5
25280  ac_status=$?
25281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282  (exit $ac_status); }; } &&
25283	 { ac_try='test -s conftest.$ac_objext'
25284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285  (eval $ac_try) 2>&5
25286  ac_status=$?
25287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288  (exit $ac_status); }; }; then
25289  ac_cv_have_decl__snwprintf=yes
25290else
25291  echo "$as_me: failed program was:" >&5
25292sed 's/^/| /' conftest.$ac_ext >&5
25293
25294ac_cv_have_decl__snwprintf=no
25295fi
25296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25297fi
25298echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
25299echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
25300  if test $ac_cv_have_decl__snwprintf = yes; then
25301    gt_value=1
25302  else
25303    gt_value=0
25304  fi
25305
25306cat >>confdefs.h <<_ACEOF
25307#define HAVE_DECL__SNWPRINTF $gt_value
25308_ACEOF
25309
25310
25311
25312
25313  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25314echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
25315if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25316  echo $ECHO_N "(cached) $ECHO_C" >&6
25317else
25318  cat >conftest.$ac_ext <<_ACEOF
25319/* confdefs.h.  */
25320_ACEOF
25321cat confdefs.h >>conftest.$ac_ext
25322cat >>conftest.$ac_ext <<_ACEOF
25323/* end confdefs.h.  */
25324#include <stdio.h>
25325int
25326main ()
25327{
25328
25329#ifndef feof_unlocked
25330  char *p = (char *) feof_unlocked;
25331#endif
25332
25333  ;
25334  return 0;
25335}
25336_ACEOF
25337rm -f conftest.$ac_objext
25338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25339  (eval $ac_compile) 2>conftest.er1
25340  ac_status=$?
25341  grep -v '^ *+' conftest.er1 >conftest.err
25342  rm -f conftest.er1
25343  cat conftest.err >&5
25344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25345  (exit $ac_status); } &&
25346	 { ac_try='test -z "$ac_c_werror_flag"
25347			 || test ! -s conftest.err'
25348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25349  (eval $ac_try) 2>&5
25350  ac_status=$?
25351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352  (exit $ac_status); }; } &&
25353	 { ac_try='test -s conftest.$ac_objext'
25354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25355  (eval $ac_try) 2>&5
25356  ac_status=$?
25357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358  (exit $ac_status); }; }; then
25359  ac_cv_have_decl_feof_unlocked=yes
25360else
25361  echo "$as_me: failed program was:" >&5
25362sed 's/^/| /' conftest.$ac_ext >&5
25363
25364ac_cv_have_decl_feof_unlocked=no
25365fi
25366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25367fi
25368echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25369echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
25370  if test $ac_cv_have_decl_feof_unlocked = yes; then
25371    gt_value=1
25372  else
25373    gt_value=0
25374  fi
25375
25376cat >>confdefs.h <<_ACEOF
25377#define HAVE_DECL_FEOF_UNLOCKED $gt_value
25378_ACEOF
25379
25380
25381
25382  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25383echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
25384if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25385  echo $ECHO_N "(cached) $ECHO_C" >&6
25386else
25387  cat >conftest.$ac_ext <<_ACEOF
25388/* confdefs.h.  */
25389_ACEOF
25390cat confdefs.h >>conftest.$ac_ext
25391cat >>conftest.$ac_ext <<_ACEOF
25392/* end confdefs.h.  */
25393#include <stdio.h>
25394int
25395main ()
25396{
25397
25398#ifndef fgets_unlocked
25399  char *p = (char *) fgets_unlocked;
25400#endif
25401
25402  ;
25403  return 0;
25404}
25405_ACEOF
25406rm -f conftest.$ac_objext
25407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25408  (eval $ac_compile) 2>conftest.er1
25409  ac_status=$?
25410  grep -v '^ *+' conftest.er1 >conftest.err
25411  rm -f conftest.er1
25412  cat conftest.err >&5
25413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414  (exit $ac_status); } &&
25415	 { ac_try='test -z "$ac_c_werror_flag"
25416			 || test ! -s conftest.err'
25417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418  (eval $ac_try) 2>&5
25419  ac_status=$?
25420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421  (exit $ac_status); }; } &&
25422	 { ac_try='test -s conftest.$ac_objext'
25423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424  (eval $ac_try) 2>&5
25425  ac_status=$?
25426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427  (exit $ac_status); }; }; then
25428  ac_cv_have_decl_fgets_unlocked=yes
25429else
25430  echo "$as_me: failed program was:" >&5
25431sed 's/^/| /' conftest.$ac_ext >&5
25432
25433ac_cv_have_decl_fgets_unlocked=no
25434fi
25435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25436fi
25437echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
25438echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
25439  if test $ac_cv_have_decl_fgets_unlocked = yes; then
25440    gt_value=1
25441  else
25442    gt_value=0
25443  fi
25444
25445cat >>confdefs.h <<_ACEOF
25446#define HAVE_DECL_FGETS_UNLOCKED $gt_value
25447_ACEOF
25448
25449
25450
25451  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
25452echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
25453if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
25454  echo $ECHO_N "(cached) $ECHO_C" >&6
25455else
25456  cat >conftest.$ac_ext <<_ACEOF
25457/* confdefs.h.  */
25458_ACEOF
25459cat confdefs.h >>conftest.$ac_ext
25460cat >>conftest.$ac_ext <<_ACEOF
25461/* end confdefs.h.  */
25462#include <stdio.h>
25463int
25464main ()
25465{
25466
25467#ifndef getc_unlocked
25468  char *p = (char *) getc_unlocked;
25469#endif
25470
25471  ;
25472  return 0;
25473}
25474_ACEOF
25475rm -f conftest.$ac_objext
25476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25477  (eval $ac_compile) 2>conftest.er1
25478  ac_status=$?
25479  grep -v '^ *+' conftest.er1 >conftest.err
25480  rm -f conftest.er1
25481  cat conftest.err >&5
25482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483  (exit $ac_status); } &&
25484	 { ac_try='test -z "$ac_c_werror_flag"
25485			 || test ! -s conftest.err'
25486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487  (eval $ac_try) 2>&5
25488  ac_status=$?
25489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490  (exit $ac_status); }; } &&
25491	 { ac_try='test -s conftest.$ac_objext'
25492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493  (eval $ac_try) 2>&5
25494  ac_status=$?
25495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496  (exit $ac_status); }; }; then
25497  ac_cv_have_decl_getc_unlocked=yes
25498else
25499  echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502ac_cv_have_decl_getc_unlocked=no
25503fi
25504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25505fi
25506echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
25507echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
25508  if test $ac_cv_have_decl_getc_unlocked = yes; then
25509    gt_value=1
25510  else
25511    gt_value=0
25512  fi
25513
25514cat >>confdefs.h <<_ACEOF
25515#define HAVE_DECL_GETC_UNLOCKED $gt_value
25516_ACEOF
25517
25518
25519
25520  case $gt_cv_func_printf_posix in
25521    *yes) HAVE_POSIX_PRINTF=1 ;;
25522    *) HAVE_POSIX_PRINTF=0 ;;
25523  esac
25524
25525  if test "$ac_cv_func_asprintf" = yes; then
25526    HAVE_ASPRINTF=1
25527  else
25528    HAVE_ASPRINTF=0
25529  fi
25530
25531  if test "$ac_cv_func_snprintf" = yes; then
25532    HAVE_SNPRINTF=1
25533  else
25534    HAVE_SNPRINTF=0
25535  fi
25536
25537  if test "$ac_cv_func_wprintf" = yes; then
25538    HAVE_WPRINTF=1
25539  else
25540    HAVE_WPRINTF=0
25541  fi
25542
25543
25544
25545
25546
25547
25548
25549          am_save_CPPFLAGS="$CPPFLAGS"
25550
25551  for element in $INCICONV; do
25552    haveit=
25553    for x in $CPPFLAGS; do
25554
25555  acl_save_prefix="$prefix"
25556  prefix="$acl_final_prefix"
25557  acl_save_exec_prefix="$exec_prefix"
25558  exec_prefix="$acl_final_exec_prefix"
25559  eval x=\"$x\"
25560  exec_prefix="$acl_save_exec_prefix"
25561  prefix="$acl_save_prefix"
25562
25563      if test "X$x" = "X$element"; then
25564        haveit=yes
25565        break
25566      fi
25567    done
25568    if test -z "$haveit"; then
25569      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25570    fi
25571  done
25572
25573
25574  echo "$as_me:$LINENO: checking for iconv" >&5
25575echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25576if test "${am_cv_func_iconv+set}" = set; then
25577  echo $ECHO_N "(cached) $ECHO_C" >&6
25578else
25579
25580    am_cv_func_iconv="no, consider installing GNU libiconv"
25581    am_cv_lib_iconv=no
25582    cat >conftest.$ac_ext <<_ACEOF
25583/* confdefs.h.  */
25584_ACEOF
25585cat confdefs.h >>conftest.$ac_ext
25586cat >>conftest.$ac_ext <<_ACEOF
25587/* end confdefs.h.  */
25588#include <stdlib.h>
25589#include <iconv.h>
25590int
25591main ()
25592{
25593iconv_t cd = iconv_open("","");
25594       iconv(cd,NULL,NULL,NULL,NULL);
25595       iconv_close(cd);
25596  ;
25597  return 0;
25598}
25599_ACEOF
25600rm -f conftest.$ac_objext conftest$ac_exeext
25601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25602  (eval $ac_link) 2>conftest.er1
25603  ac_status=$?
25604  grep -v '^ *+' conftest.er1 >conftest.err
25605  rm -f conftest.er1
25606  cat conftest.err >&5
25607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608  (exit $ac_status); } &&
25609	 { ac_try='test -z "$ac_c_werror_flag"
25610			 || test ! -s conftest.err'
25611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612  (eval $ac_try) 2>&5
25613  ac_status=$?
25614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615  (exit $ac_status); }; } &&
25616	 { ac_try='test -s conftest$ac_exeext'
25617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618  (eval $ac_try) 2>&5
25619  ac_status=$?
25620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621  (exit $ac_status); }; }; then
25622  am_cv_func_iconv=yes
25623else
25624  echo "$as_me: failed program was:" >&5
25625sed 's/^/| /' conftest.$ac_ext >&5
25626
25627fi
25628rm -f conftest.err conftest.$ac_objext \
25629      conftest$ac_exeext conftest.$ac_ext
25630    if test "$am_cv_func_iconv" != yes; then
25631      am_save_LIBS="$LIBS"
25632      LIBS="$LIBS $LIBICONV"
25633      cat >conftest.$ac_ext <<_ACEOF
25634/* confdefs.h.  */
25635_ACEOF
25636cat confdefs.h >>conftest.$ac_ext
25637cat >>conftest.$ac_ext <<_ACEOF
25638/* end confdefs.h.  */
25639#include <stdlib.h>
25640#include <iconv.h>
25641int
25642main ()
25643{
25644iconv_t cd = iconv_open("","");
25645         iconv(cd,NULL,NULL,NULL,NULL);
25646         iconv_close(cd);
25647  ;
25648  return 0;
25649}
25650_ACEOF
25651rm -f conftest.$ac_objext conftest$ac_exeext
25652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653  (eval $ac_link) 2>conftest.er1
25654  ac_status=$?
25655  grep -v '^ *+' conftest.er1 >conftest.err
25656  rm -f conftest.er1
25657  cat conftest.err >&5
25658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659  (exit $ac_status); } &&
25660	 { ac_try='test -z "$ac_c_werror_flag"
25661			 || test ! -s conftest.err'
25662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663  (eval $ac_try) 2>&5
25664  ac_status=$?
25665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666  (exit $ac_status); }; } &&
25667	 { ac_try='test -s conftest$ac_exeext'
25668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669  (eval $ac_try) 2>&5
25670  ac_status=$?
25671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672  (exit $ac_status); }; }; then
25673  am_cv_lib_iconv=yes
25674        am_cv_func_iconv=yes
25675else
25676  echo "$as_me: failed program was:" >&5
25677sed 's/^/| /' conftest.$ac_ext >&5
25678
25679fi
25680rm -f conftest.err conftest.$ac_objext \
25681      conftest$ac_exeext conftest.$ac_ext
25682      LIBS="$am_save_LIBS"
25683    fi
25684
25685fi
25686echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25687echo "${ECHO_T}$am_cv_func_iconv" >&6
25688  if test "$am_cv_func_iconv" = yes; then
25689
25690cat >>confdefs.h <<\_ACEOF
25691#define HAVE_ICONV 1
25692_ACEOF
25693
25694  fi
25695  if test "$am_cv_lib_iconv" = yes; then
25696    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25697echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
25698    echo "$as_me:$LINENO: result: $LIBICONV" >&5
25699echo "${ECHO_T}$LIBICONV" >&6
25700  else
25701            CPPFLAGS="$am_save_CPPFLAGS"
25702    LIBICONV=
25703    LTLIBICONV=
25704  fi
25705
25706
25707
25708  if test "$am_cv_func_iconv" = yes; then
25709    echo "$as_me:$LINENO: checking for iconv declaration" >&5
25710echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
25711    if test "${am_cv_proto_iconv+set}" = set; then
25712  echo $ECHO_N "(cached) $ECHO_C" >&6
25713else
25714
25715      cat >conftest.$ac_ext <<_ACEOF
25716/* confdefs.h.  */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h.  */
25721
25722#include <stdlib.h>
25723#include <iconv.h>
25724extern
25725#ifdef __cplusplus
25726"C"
25727#endif
25728#if defined(__STDC__) || defined(__cplusplus)
25729size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25730#else
25731size_t iconv();
25732#endif
25733
25734int
25735main ()
25736{
25737
25738  ;
25739  return 0;
25740}
25741_ACEOF
25742rm -f conftest.$ac_objext
25743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25744  (eval $ac_compile) 2>conftest.er1
25745  ac_status=$?
25746  grep -v '^ *+' conftest.er1 >conftest.err
25747  rm -f conftest.er1
25748  cat conftest.err >&5
25749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750  (exit $ac_status); } &&
25751	 { ac_try='test -z "$ac_c_werror_flag"
25752			 || test ! -s conftest.err'
25753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754  (eval $ac_try) 2>&5
25755  ac_status=$?
25756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757  (exit $ac_status); }; } &&
25758	 { ac_try='test -s conftest.$ac_objext'
25759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760  (eval $ac_try) 2>&5
25761  ac_status=$?
25762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763  (exit $ac_status); }; }; then
25764  am_cv_proto_iconv_arg1=""
25765else
25766  echo "$as_me: failed program was:" >&5
25767sed 's/^/| /' conftest.$ac_ext >&5
25768
25769am_cv_proto_iconv_arg1="const"
25770fi
25771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25772      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
25773fi
25774
25775    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25776    echo "$as_me:$LINENO: result: ${ac_t:-
25777         }$am_cv_proto_iconv" >&5
25778echo "${ECHO_T}${ac_t:-
25779         }$am_cv_proto_iconv" >&6
25780
25781cat >>confdefs.h <<_ACEOF
25782#define ICONV_CONST $am_cv_proto_iconv_arg1
25783_ACEOF
25784
25785  fi
25786
25787
25788  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25789echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
25790if test "${am_cv_langinfo_codeset+set}" = set; then
25791  echo $ECHO_N "(cached) $ECHO_C" >&6
25792else
25793  cat >conftest.$ac_ext <<_ACEOF
25794/* confdefs.h.  */
25795_ACEOF
25796cat confdefs.h >>conftest.$ac_ext
25797cat >>conftest.$ac_ext <<_ACEOF
25798/* end confdefs.h.  */
25799#include <langinfo.h>
25800int
25801main ()
25802{
25803char* cs = nl_langinfo(CODESET);
25804  ;
25805  return 0;
25806}
25807_ACEOF
25808rm -f conftest.$ac_objext conftest$ac_exeext
25809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25810  (eval $ac_link) 2>conftest.er1
25811  ac_status=$?
25812  grep -v '^ *+' conftest.er1 >conftest.err
25813  rm -f conftest.er1
25814  cat conftest.err >&5
25815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816  (exit $ac_status); } &&
25817	 { ac_try='test -z "$ac_c_werror_flag"
25818			 || test ! -s conftest.err'
25819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820  (eval $ac_try) 2>&5
25821  ac_status=$?
25822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823  (exit $ac_status); }; } &&
25824	 { ac_try='test -s conftest$ac_exeext'
25825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826  (eval $ac_try) 2>&5
25827  ac_status=$?
25828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829  (exit $ac_status); }; }; then
25830  am_cv_langinfo_codeset=yes
25831else
25832  echo "$as_me: failed program was:" >&5
25833sed 's/^/| /' conftest.$ac_ext >&5
25834
25835am_cv_langinfo_codeset=no
25836fi
25837rm -f conftest.err conftest.$ac_objext \
25838      conftest$ac_exeext conftest.$ac_ext
25839
25840fi
25841echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
25842echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
25843  if test $am_cv_langinfo_codeset = yes; then
25844
25845cat >>confdefs.h <<\_ACEOF
25846#define HAVE_LANGINFO_CODESET 1
25847_ACEOF
25848
25849  fi
25850
25851  if test $ac_cv_header_locale_h = yes; then
25852
25853  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
25854echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
25855if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
25856  echo $ECHO_N "(cached) $ECHO_C" >&6
25857else
25858  cat >conftest.$ac_ext <<_ACEOF
25859/* confdefs.h.  */
25860_ACEOF
25861cat confdefs.h >>conftest.$ac_ext
25862cat >>conftest.$ac_ext <<_ACEOF
25863/* end confdefs.h.  */
25864#include <locale.h>
25865int
25866main ()
25867{
25868return LC_MESSAGES
25869  ;
25870  return 0;
25871}
25872_ACEOF
25873rm -f conftest.$ac_objext conftest$ac_exeext
25874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25875  (eval $ac_link) 2>conftest.er1
25876  ac_status=$?
25877  grep -v '^ *+' conftest.er1 >conftest.err
25878  rm -f conftest.er1
25879  cat conftest.err >&5
25880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881  (exit $ac_status); } &&
25882	 { ac_try='test -z "$ac_c_werror_flag"
25883			 || test ! -s conftest.err'
25884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885  (eval $ac_try) 2>&5
25886  ac_status=$?
25887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888  (exit $ac_status); }; } &&
25889	 { ac_try='test -s conftest$ac_exeext'
25890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891  (eval $ac_try) 2>&5
25892  ac_status=$?
25893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894  (exit $ac_status); }; }; then
25895  gt_cv_val_LC_MESSAGES=yes
25896else
25897  echo "$as_me: failed program was:" >&5
25898sed 's/^/| /' conftest.$ac_ext >&5
25899
25900gt_cv_val_LC_MESSAGES=no
25901fi
25902rm -f conftest.err conftest.$ac_objext \
25903      conftest$ac_exeext conftest.$ac_ext
25904fi
25905echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
25906echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
25907  if test $gt_cv_val_LC_MESSAGES = yes; then
25908
25909cat >>confdefs.h <<\_ACEOF
25910#define HAVE_LC_MESSAGES 1
25911_ACEOF
25912
25913  fi
25914
25915  fi
25916
25917  if test -n "$INTL_MACOSX_LIBS"; then
25918    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
25919  fi
25920
25921                      for ac_prog in bison
25922do
25923  # Extract the first word of "$ac_prog", so it can be a program name with args.
25924set dummy $ac_prog; ac_word=$2
25925echo "$as_me:$LINENO: checking for $ac_word" >&5
25926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25927if test "${ac_cv_prog_INTLBISON+set}" = set; then
25928  echo $ECHO_N "(cached) $ECHO_C" >&6
25929else
25930  if test -n "$INTLBISON"; then
25931  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
25932else
25933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25934for as_dir in $PATH
25935do
25936  IFS=$as_save_IFS
25937  test -z "$as_dir" && as_dir=.
25938  for ac_exec_ext in '' $ac_executable_extensions; do
25939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25940    ac_cv_prog_INTLBISON="$ac_prog"
25941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25942    break 2
25943  fi
25944done
25945done
25946
25947fi
25948fi
25949INTLBISON=$ac_cv_prog_INTLBISON
25950if test -n "$INTLBISON"; then
25951  echo "$as_me:$LINENO: result: $INTLBISON" >&5
25952echo "${ECHO_T}$INTLBISON" >&6
25953else
25954  echo "$as_me:$LINENO: result: no" >&5
25955echo "${ECHO_T}no" >&6
25956fi
25957
25958  test -n "$INTLBISON" && break
25959done
25960
25961  if test -z "$INTLBISON"; then
25962    ac_verc_fail=yes
25963  else
25964        echo "$as_me:$LINENO: checking version of bison" >&5
25965echo $ECHO_N "checking version of bison... $ECHO_C" >&6
25966    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
25967    case $ac_prog_version in
25968      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
25969      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
25970         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
25971      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
25972    esac
25973    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
25974echo "${ECHO_T}$ac_prog_version" >&6
25975  fi
25976  if test $ac_verc_fail = yes; then
25977    INTLBISON=:
25978  fi
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
25996echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
25997if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
25998  echo $ECHO_N "(cached) $ECHO_C" >&6
25999else
26000  gt_save_CPPFLAGS="$CPPFLAGS"
26001     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26002     gt_save_LIBS="$LIBS"
26003     LIBS="$LIBS -framework CoreFoundation"
26004     cat >conftest.$ac_ext <<_ACEOF
26005/* confdefs.h.  */
26006_ACEOF
26007cat confdefs.h >>conftest.$ac_ext
26008cat >>conftest.$ac_ext <<_ACEOF
26009/* end confdefs.h.  */
26010#include <CFPreferences.h>
26011int
26012main ()
26013{
26014CFPreferencesCopyAppValue(NULL, NULL)
26015  ;
26016  return 0;
26017}
26018_ACEOF
26019rm -f conftest.$ac_objext conftest$ac_exeext
26020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26021  (eval $ac_link) 2>conftest.er1
26022  ac_status=$?
26023  grep -v '^ *+' conftest.er1 >conftest.err
26024  rm -f conftest.er1
26025  cat conftest.err >&5
26026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027  (exit $ac_status); } &&
26028	 { ac_try='test -z "$ac_c_werror_flag"
26029			 || test ! -s conftest.err'
26030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031  (eval $ac_try) 2>&5
26032  ac_status=$?
26033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034  (exit $ac_status); }; } &&
26035	 { ac_try='test -s conftest$ac_exeext'
26036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037  (eval $ac_try) 2>&5
26038  ac_status=$?
26039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040  (exit $ac_status); }; }; then
26041  gt_cv_func_CFPreferencesCopyAppValue=yes
26042else
26043  echo "$as_me: failed program was:" >&5
26044sed 's/^/| /' conftest.$ac_ext >&5
26045
26046gt_cv_func_CFPreferencesCopyAppValue=no
26047fi
26048rm -f conftest.err conftest.$ac_objext \
26049      conftest$ac_exeext conftest.$ac_ext
26050     CPPFLAGS="$gt_save_CPPFLAGS"
26051     LIBS="$gt_save_LIBS"
26052fi
26053echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26054echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26055  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26056
26057cat >>confdefs.h <<\_ACEOF
26058#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26059_ACEOF
26060
26061  fi
26062    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26063echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26064if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26065  echo $ECHO_N "(cached) $ECHO_C" >&6
26066else
26067  gt_save_CPPFLAGS="$CPPFLAGS"
26068     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26069     gt_save_LIBS="$LIBS"
26070     LIBS="$LIBS -framework CoreFoundation"
26071     cat >conftest.$ac_ext <<_ACEOF
26072/* confdefs.h.  */
26073_ACEOF
26074cat confdefs.h >>conftest.$ac_ext
26075cat >>conftest.$ac_ext <<_ACEOF
26076/* end confdefs.h.  */
26077#include <CFLocale.h>
26078int
26079main ()
26080{
26081CFLocaleCopyCurrent();
26082  ;
26083  return 0;
26084}
26085_ACEOF
26086rm -f conftest.$ac_objext conftest$ac_exeext
26087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26088  (eval $ac_link) 2>conftest.er1
26089  ac_status=$?
26090  grep -v '^ *+' conftest.er1 >conftest.err
26091  rm -f conftest.er1
26092  cat conftest.err >&5
26093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094  (exit $ac_status); } &&
26095	 { ac_try='test -z "$ac_c_werror_flag"
26096			 || test ! -s conftest.err'
26097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098  (eval $ac_try) 2>&5
26099  ac_status=$?
26100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101  (exit $ac_status); }; } &&
26102	 { ac_try='test -s conftest$ac_exeext'
26103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104  (eval $ac_try) 2>&5
26105  ac_status=$?
26106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107  (exit $ac_status); }; }; then
26108  gt_cv_func_CFLocaleCopyCurrent=yes
26109else
26110  echo "$as_me: failed program was:" >&5
26111sed 's/^/| /' conftest.$ac_ext >&5
26112
26113gt_cv_func_CFLocaleCopyCurrent=no
26114fi
26115rm -f conftest.err conftest.$ac_objext \
26116      conftest$ac_exeext conftest.$ac_ext
26117     CPPFLAGS="$gt_save_CPPFLAGS"
26118     LIBS="$gt_save_LIBS"
26119fi
26120echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26121echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26122  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26123
26124cat >>confdefs.h <<\_ACEOF
26125#define HAVE_CFLOCALECOPYCURRENT 1
26126_ACEOF
26127
26128  fi
26129  INTL_MACOSX_LIBS=
26130  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26131    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26132  fi
26133
26134
26135
26136
26137  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
26138echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
26139    # Check whether --enable-nls or --disable-nls was given.
26140if test "${enable_nls+set}" = set; then
26141  enableval="$enable_nls"
26142  USE_NLS=$enableval
26143else
26144  USE_NLS=yes
26145fi;
26146  echo "$as_me:$LINENO: result: $USE_NLS" >&5
26147echo "${ECHO_T}$USE_NLS" >&6
26148
26149
26150
26151
26152    BUILD_INCLUDED_LIBINTL=no
26153    USE_INCLUDED_LIBINTL=no
26154
26155  LIBINTL=
26156  LTLIBINTL=
26157  POSUB=
26158
26159    if test "$USE_NLS" = "yes"; then
26160    gt_use_preinstalled_gnugettext=no
26161
26162      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
26163echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
26164
26165# Check whether --with-included-gettext or --without-included-gettext was given.
26166if test "${with_included_gettext+set}" = set; then
26167  withval="$with_included_gettext"
26168  nls_cv_force_use_gnu_gettext=$withval
26169else
26170  nls_cv_force_use_gnu_gettext=no
26171fi;
26172      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
26173echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
26174
26175      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
26176      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
26177
26178
26179
26180
26181
26182
26183        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
26184echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
26185if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
26186  echo $ECHO_N "(cached) $ECHO_C" >&6
26187else
26188  cat >conftest.$ac_ext <<_ACEOF
26189/* confdefs.h.  */
26190_ACEOF
26191cat confdefs.h >>conftest.$ac_ext
26192cat >>conftest.$ac_ext <<_ACEOF
26193/* end confdefs.h.  */
26194#include <libintl.h>
26195extern int _nl_msg_cat_cntr;
26196extern int *libintl_nl_domain_bindings;
26197int
26198main ()
26199{
26200bindtextdomain ("", "");
26201return * gettext ("") + _nl_msg_cat_cntr + *libintl_nl_domain_bindings
26202  ;
26203  return 0;
26204}
26205_ACEOF
26206rm -f conftest.$ac_objext conftest$ac_exeext
26207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26208  (eval $ac_link) 2>conftest.er1
26209  ac_status=$?
26210  grep -v '^ *+' conftest.er1 >conftest.err
26211  rm -f conftest.er1
26212  cat conftest.err >&5
26213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214  (exit $ac_status); } &&
26215	 { ac_try='test -z "$ac_c_werror_flag"
26216			 || test ! -s conftest.err'
26217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218  (eval $ac_try) 2>&5
26219  ac_status=$?
26220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221  (exit $ac_status); }; } &&
26222	 { ac_try='test -s conftest$ac_exeext'
26223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224  (eval $ac_try) 2>&5
26225  ac_status=$?
26226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227  (exit $ac_status); }; }; then
26228  gt_cv_func_gnugettext1_libc=yes
26229else
26230  echo "$as_me: failed program was:" >&5
26231sed 's/^/| /' conftest.$ac_ext >&5
26232
26233gt_cv_func_gnugettext1_libc=no
26234fi
26235rm -f conftest.err conftest.$ac_objext \
26236      conftest$ac_exeext conftest.$ac_ext
26237fi
26238echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
26239echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
26240
26241        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
26242
26243
26244
26245    use_additional=yes
26246
26247  acl_save_prefix="$prefix"
26248  prefix="$acl_final_prefix"
26249  acl_save_exec_prefix="$exec_prefix"
26250  exec_prefix="$acl_final_exec_prefix"
26251
26252    eval additional_includedir=\"$includedir\"
26253    eval additional_libdir=\"$libdir\"
26254
26255  exec_prefix="$acl_save_exec_prefix"
26256  prefix="$acl_save_prefix"
26257
26258
26259# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26260if test "${with_libintl_prefix+set}" = set; then
26261  withval="$with_libintl_prefix"
26262
26263    if test "X$withval" = "Xno"; then
26264      use_additional=no
26265    else
26266      if test "X$withval" = "X"; then
26267
26268  acl_save_prefix="$prefix"
26269  prefix="$acl_final_prefix"
26270  acl_save_exec_prefix="$exec_prefix"
26271  exec_prefix="$acl_final_exec_prefix"
26272
26273          eval additional_includedir=\"$includedir\"
26274          eval additional_libdir=\"$libdir\"
26275
26276  exec_prefix="$acl_save_exec_prefix"
26277  prefix="$acl_save_prefix"
26278
26279      else
26280        additional_includedir="$withval/include"
26281        additional_libdir="$withval/lib"
26282      fi
26283    fi
26284
26285fi;
26286      LIBINTL=
26287  LTLIBINTL=
26288  INCINTL=
26289  rpathdirs=
26290  ltrpathdirs=
26291  names_already_handled=
26292  names_next_round='intl '
26293  while test -n "$names_next_round"; do
26294    names_this_round="$names_next_round"
26295    names_next_round=
26296    for name in $names_this_round; do
26297      already_handled=
26298      for n in $names_already_handled; do
26299        if test "$n" = "$name"; then
26300          already_handled=yes
26301          break
26302        fi
26303      done
26304      if test -z "$already_handled"; then
26305        names_already_handled="$names_already_handled $name"
26306                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26307        eval value=\"\$HAVE_LIB$uppername\"
26308        if test -n "$value"; then
26309          if test "$value" = yes; then
26310            eval value=\"\$LIB$uppername\"
26311            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26312            eval value=\"\$LTLIB$uppername\"
26313            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26314          else
26315                                    :
26316          fi
26317        else
26318                              found_dir=
26319          found_la=
26320          found_so=
26321          found_a=
26322          if test $use_additional = yes; then
26323            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26324              found_dir="$additional_libdir"
26325              found_so="$additional_libdir/lib$name.$shlibext"
26326              if test -f "$additional_libdir/lib$name.la"; then
26327                found_la="$additional_libdir/lib$name.la"
26328              fi
26329            else
26330              if test -f "$additional_libdir/lib$name.$libext"; then
26331                found_dir="$additional_libdir"
26332                found_a="$additional_libdir/lib$name.$libext"
26333                if test -f "$additional_libdir/lib$name.la"; then
26334                  found_la="$additional_libdir/lib$name.la"
26335                fi
26336              fi
26337            fi
26338          fi
26339          if test "X$found_dir" = "X"; then
26340            for x in $LDFLAGS $LTLIBINTL; do
26341
26342  acl_save_prefix="$prefix"
26343  prefix="$acl_final_prefix"
26344  acl_save_exec_prefix="$exec_prefix"
26345  exec_prefix="$acl_final_exec_prefix"
26346  eval x=\"$x\"
26347  exec_prefix="$acl_save_exec_prefix"
26348  prefix="$acl_save_prefix"
26349
26350              case "$x" in
26351                -L*)
26352                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26353                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26354                    found_dir="$dir"
26355                    found_so="$dir/lib$name.$shlibext"
26356                    if test -f "$dir/lib$name.la"; then
26357                      found_la="$dir/lib$name.la"
26358                    fi
26359                  else
26360                    if test -f "$dir/lib$name.$libext"; then
26361                      found_dir="$dir"
26362                      found_a="$dir/lib$name.$libext"
26363                      if test -f "$dir/lib$name.la"; then
26364                        found_la="$dir/lib$name.la"
26365                      fi
26366                    fi
26367                  fi
26368                  ;;
26369              esac
26370              if test "X$found_dir" != "X"; then
26371                break
26372              fi
26373            done
26374          fi
26375          if test "X$found_dir" != "X"; then
26376                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26377            if test "X$found_so" != "X"; then
26378                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26379                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26380              else
26381                                                                                haveit=
26382                for x in $ltrpathdirs; do
26383                  if test "X$x" = "X$found_dir"; then
26384                    haveit=yes
26385                    break
26386                  fi
26387                done
26388                if test -z "$haveit"; then
26389                  ltrpathdirs="$ltrpathdirs $found_dir"
26390                fi
26391                                if test "$hardcode_direct" = yes; then
26392                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26393                else
26394                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26395                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26396                                                            haveit=
26397                    for x in $rpathdirs; do
26398                      if test "X$x" = "X$found_dir"; then
26399                        haveit=yes
26400                        break
26401                      fi
26402                    done
26403                    if test -z "$haveit"; then
26404                      rpathdirs="$rpathdirs $found_dir"
26405                    fi
26406                  else
26407                                                                                haveit=
26408                    for x in $LDFLAGS $LIBINTL; do
26409
26410  acl_save_prefix="$prefix"
26411  prefix="$acl_final_prefix"
26412  acl_save_exec_prefix="$exec_prefix"
26413  exec_prefix="$acl_final_exec_prefix"
26414  eval x=\"$x\"
26415  exec_prefix="$acl_save_exec_prefix"
26416  prefix="$acl_save_prefix"
26417
26418                      if test "X$x" = "X-L$found_dir"; then
26419                        haveit=yes
26420                        break
26421                      fi
26422                    done
26423                    if test -z "$haveit"; then
26424                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26425                    fi
26426                    if test "$hardcode_minus_L" != no; then
26427                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26428                    else
26429                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26430                    fi
26431                  fi
26432                fi
26433              fi
26434            else
26435              if test "X$found_a" != "X"; then
26436                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26437              else
26438                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26439              fi
26440            fi
26441                        additional_includedir=
26442            case "$found_dir" in
26443              */lib | */lib/)
26444                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26445                additional_includedir="$basedir/include"
26446                ;;
26447            esac
26448            if test "X$additional_includedir" != "X"; then
26449                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26450                haveit=
26451                if test "X$additional_includedir" = "X/usr/local/include"; then
26452                  if test -n "$GCC"; then
26453                    case $host_os in
26454                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26455                    esac
26456                  fi
26457                fi
26458                if test -z "$haveit"; then
26459                  for x in $CPPFLAGS $INCINTL; do
26460
26461  acl_save_prefix="$prefix"
26462  prefix="$acl_final_prefix"
26463  acl_save_exec_prefix="$exec_prefix"
26464  exec_prefix="$acl_final_exec_prefix"
26465  eval x=\"$x\"
26466  exec_prefix="$acl_save_exec_prefix"
26467  prefix="$acl_save_prefix"
26468
26469                    if test "X$x" = "X-I$additional_includedir"; then
26470                      haveit=yes
26471                      break
26472                    fi
26473                  done
26474                  if test -z "$haveit"; then
26475                    if test -d "$additional_includedir"; then
26476                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26477                    fi
26478                  fi
26479                fi
26480              fi
26481            fi
26482                        if test -n "$found_la"; then
26483                                                        save_libdir="$libdir"
26484              case "$found_la" in
26485                */* | *\\*) . "$found_la" ;;
26486                *) . "./$found_la" ;;
26487              esac
26488              libdir="$save_libdir"
26489                            for dep in $dependency_libs; do
26490                case "$dep" in
26491                  -L*)
26492                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26493                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
26494                      haveit=
26495                      if test "X$additional_libdir" = "X/usr/local/lib"; then
26496                        if test -n "$GCC"; then
26497                          case $host_os in
26498                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26499                          esac
26500                        fi
26501                      fi
26502                      if test -z "$haveit"; then
26503                        haveit=
26504                        for x in $LDFLAGS $LIBINTL; do
26505
26506  acl_save_prefix="$prefix"
26507  prefix="$acl_final_prefix"
26508  acl_save_exec_prefix="$exec_prefix"
26509  exec_prefix="$acl_final_exec_prefix"
26510  eval x=\"$x\"
26511  exec_prefix="$acl_save_exec_prefix"
26512  prefix="$acl_save_prefix"
26513
26514                          if test "X$x" = "X-L$additional_libdir"; then
26515                            haveit=yes
26516                            break
26517                          fi
26518                        done
26519                        if test -z "$haveit"; then
26520                          if test -d "$additional_libdir"; then
26521                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26522                          fi
26523                        fi
26524                        haveit=
26525                        for x in $LDFLAGS $LTLIBINTL; do
26526
26527  acl_save_prefix="$prefix"
26528  prefix="$acl_final_prefix"
26529  acl_save_exec_prefix="$exec_prefix"
26530  exec_prefix="$acl_final_exec_prefix"
26531  eval x=\"$x\"
26532  exec_prefix="$acl_save_exec_prefix"
26533  prefix="$acl_save_prefix"
26534
26535                          if test "X$x" = "X-L$additional_libdir"; then
26536                            haveit=yes
26537                            break
26538                          fi
26539                        done
26540                        if test -z "$haveit"; then
26541                          if test -d "$additional_libdir"; then
26542                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26543                          fi
26544                        fi
26545                      fi
26546                    fi
26547                    ;;
26548                  -R*)
26549                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26550                    if test "$enable_rpath" != no; then
26551                                                                  haveit=
26552                      for x in $rpathdirs; do
26553                        if test "X$x" = "X$dir"; then
26554                          haveit=yes
26555                          break
26556                        fi
26557                      done
26558                      if test -z "$haveit"; then
26559                        rpathdirs="$rpathdirs $dir"
26560                      fi
26561                                                                  haveit=
26562                      for x in $ltrpathdirs; do
26563                        if test "X$x" = "X$dir"; then
26564                          haveit=yes
26565                          break
26566                        fi
26567                      done
26568                      if test -z "$haveit"; then
26569                        ltrpathdirs="$ltrpathdirs $dir"
26570                      fi
26571                    fi
26572                    ;;
26573                  -l*)
26574                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26575                    ;;
26576                  *.la)
26577                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26578                    ;;
26579                  *)
26580                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26581                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26582                    ;;
26583                esac
26584              done
26585            fi
26586          else
26587                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26588            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26589          fi
26590        fi
26591      fi
26592    done
26593  done
26594  if test "X$rpathdirs" != "X"; then
26595    if test -n "$hardcode_libdir_separator"; then
26596                        alldirs=
26597      for found_dir in $rpathdirs; do
26598        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26599      done
26600            acl_save_libdir="$libdir"
26601      libdir="$alldirs"
26602      eval flag=\"$hardcode_libdir_flag_spec\"
26603      libdir="$acl_save_libdir"
26604      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26605    else
26606            for found_dir in $rpathdirs; do
26607        acl_save_libdir="$libdir"
26608        libdir="$found_dir"
26609        eval flag=\"$hardcode_libdir_flag_spec\"
26610        libdir="$acl_save_libdir"
26611        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26612      done
26613    fi
26614  fi
26615  if test "X$ltrpathdirs" != "X"; then
26616            for found_dir in $ltrpathdirs; do
26617      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26618    done
26619  fi
26620
26621          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26622echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
26623if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26624  echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626  gt_save_CPPFLAGS="$CPPFLAGS"
26627            CPPFLAGS="$CPPFLAGS $INCINTL"
26628            gt_save_LIBS="$LIBS"
26629            LIBS="$LIBS $LIBINTL"
26630                        cat >conftest.$ac_ext <<_ACEOF
26631/* confdefs.h.  */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h.  */
26636#include <libintl.h>
26637extern int _nl_msg_cat_cntr;
26638extern
26639#ifdef __cplusplus
26640"C"
26641#endif
26642const char *_nl_expand_alias (const char *);
26643int
26644main ()
26645{
26646bindtextdomain ("", "");
26647return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26648  ;
26649  return 0;
26650}
26651_ACEOF
26652rm -f conftest.$ac_objext conftest$ac_exeext
26653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26654  (eval $ac_link) 2>conftest.er1
26655  ac_status=$?
26656  grep -v '^ *+' conftest.er1 >conftest.err
26657  rm -f conftest.er1
26658  cat conftest.err >&5
26659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660  (exit $ac_status); } &&
26661	 { ac_try='test -z "$ac_c_werror_flag"
26662			 || test ! -s conftest.err'
26663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664  (eval $ac_try) 2>&5
26665  ac_status=$?
26666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667  (exit $ac_status); }; } &&
26668	 { ac_try='test -s conftest$ac_exeext'
26669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670  (eval $ac_try) 2>&5
26671  ac_status=$?
26672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673  (exit $ac_status); }; }; then
26674  gt_cv_func_gnugettext1_libintl=yes
26675else
26676  echo "$as_me: failed program was:" >&5
26677sed 's/^/| /' conftest.$ac_ext >&5
26678
26679gt_cv_func_gnugettext1_libintl=no
26680fi
26681rm -f conftest.err conftest.$ac_objext \
26682      conftest$ac_exeext conftest.$ac_ext
26683                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26684              LIBS="$LIBS $LIBICONV"
26685              cat >conftest.$ac_ext <<_ACEOF
26686/* confdefs.h.  */
26687_ACEOF
26688cat confdefs.h >>conftest.$ac_ext
26689cat >>conftest.$ac_ext <<_ACEOF
26690/* end confdefs.h.  */
26691#include <libintl.h>
26692extern int _nl_msg_cat_cntr;
26693extern
26694#ifdef __cplusplus
26695"C"
26696#endif
26697const char *_nl_expand_alias (const char *);
26698int
26699main ()
26700{
26701bindtextdomain ("", "");
26702return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26703  ;
26704  return 0;
26705}
26706_ACEOF
26707rm -f conftest.$ac_objext conftest$ac_exeext
26708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26709  (eval $ac_link) 2>conftest.er1
26710  ac_status=$?
26711  grep -v '^ *+' conftest.er1 >conftest.err
26712  rm -f conftest.er1
26713  cat conftest.err >&5
26714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715  (exit $ac_status); } &&
26716	 { ac_try='test -z "$ac_c_werror_flag"
26717			 || test ! -s conftest.err'
26718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719  (eval $ac_try) 2>&5
26720  ac_status=$?
26721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722  (exit $ac_status); }; } &&
26723	 { ac_try='test -s conftest$ac_exeext'
26724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725  (eval $ac_try) 2>&5
26726  ac_status=$?
26727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728  (exit $ac_status); }; }; then
26729  LIBINTL="$LIBINTL $LIBICONV"
26730                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26731                gt_cv_func_gnugettext1_libintl=yes
26732
26733else
26734  echo "$as_me: failed program was:" >&5
26735sed 's/^/| /' conftest.$ac_ext >&5
26736
26737fi
26738rm -f conftest.err conftest.$ac_objext \
26739      conftest$ac_exeext conftest.$ac_ext
26740            fi
26741            CPPFLAGS="$gt_save_CPPFLAGS"
26742            LIBS="$gt_save_LIBS"
26743fi
26744echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
26745echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
26746        fi
26747
26748                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
26749           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
26750                && test "$PACKAGE" != gettext-runtime \
26751                && test "$PACKAGE" != gettext-tools; }; then
26752          gt_use_preinstalled_gnugettext=yes
26753        else
26754                    LIBINTL=
26755          LTLIBINTL=
26756          INCINTL=
26757        fi
26758
26759
26760        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
26761                              nls_cv_use_gnu_gettext=yes
26762        fi
26763      fi
26764
26765      if test "$nls_cv_use_gnu_gettext" = "yes"; then
26766                BUILD_INCLUDED_LIBINTL=yes
26767        USE_INCLUDED_LIBINTL=yes
26768        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
26769        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
26770        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
26771      fi
26772
26773      CATOBJEXT=
26774      if test "$gt_use_preinstalled_gnugettext" = "yes" \
26775         || test "$nls_cv_use_gnu_gettext" = "yes"; then
26776                CATOBJEXT=.gmo
26777      fi
26778
26779
26780    if test -n "$INTL_MACOSX_LIBS"; then
26781      if test "$gt_use_preinstalled_gnugettext" = "yes" \
26782         || test "$nls_cv_use_gnu_gettext" = "yes"; then
26783                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
26784        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
26785      fi
26786    fi
26787
26788    if test "$gt_use_preinstalled_gnugettext" = "yes" \
26789       || test "$nls_cv_use_gnu_gettext" = "yes"; then
26790
26791cat >>confdefs.h <<\_ACEOF
26792#define ENABLE_NLS 1
26793_ACEOF
26794
26795    else
26796      USE_NLS=no
26797    fi
26798  fi
26799
26800  echo "$as_me:$LINENO: checking whether to use NLS" >&5
26801echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
26802  echo "$as_me:$LINENO: result: $USE_NLS" >&5
26803echo "${ECHO_T}$USE_NLS" >&6
26804  if test "$USE_NLS" = "yes"; then
26805    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
26806echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
26807    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26808      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26809        gt_source="external libintl"
26810      else
26811        gt_source="libc"
26812      fi
26813    else
26814      gt_source="included intl directory"
26815    fi
26816    echo "$as_me:$LINENO: result: $gt_source" >&5
26817echo "${ECHO_T}$gt_source" >&6
26818  fi
26819
26820  if test "$USE_NLS" = "yes"; then
26821
26822    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26823      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26824        echo "$as_me:$LINENO: checking how to link with libintl" >&5
26825echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
26826        echo "$as_me:$LINENO: result: $LIBINTL" >&5
26827echo "${ECHO_T}$LIBINTL" >&6
26828
26829  for element in $INCINTL; do
26830    haveit=
26831    for x in $CPPFLAGS; do
26832
26833  acl_save_prefix="$prefix"
26834  prefix="$acl_final_prefix"
26835  acl_save_exec_prefix="$exec_prefix"
26836  exec_prefix="$acl_final_exec_prefix"
26837  eval x=\"$x\"
26838  exec_prefix="$acl_save_exec_prefix"
26839  prefix="$acl_save_prefix"
26840
26841      if test "X$x" = "X$element"; then
26842        haveit=yes
26843        break
26844      fi
26845    done
26846    if test -z "$haveit"; then
26847      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26848    fi
26849  done
26850
26851      fi
26852
26853
26854cat >>confdefs.h <<\_ACEOF
26855#define HAVE_GETTEXT 1
26856_ACEOF
26857
26858
26859cat >>confdefs.h <<\_ACEOF
26860#define HAVE_DCGETTEXT 1
26861_ACEOF
26862
26863    fi
26864
26865        POSUB=po
26866  fi
26867
26868
26869            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
26870      BUILD_INCLUDED_LIBINTL=yes
26871    fi
26872
26873
26874
26875
26876
26877        nls_cv_header_intl=
26878    nls_cv_header_libgt=
26879
26880        DATADIRNAME=share
26881
26882
26883        INSTOBJEXT=.mo
26884
26885
26886        GENCAT=gencat
26887
26888
26889        INTLOBJS=
26890    if test "$USE_INCLUDED_LIBINTL" = yes; then
26891      INTLOBJS="\$(GETTOBJS)"
26892    fi
26893
26894
26895        INTL_LIBTOOL_SUFFIX_PREFIX=
26896
26897
26898
26899    INTLLIBS="$LIBINTL"
26900
26901
26902
26903
26904
26905
26906
26907
26908for ac_header in locale.h
26909do
26910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26911if eval "test \"\${$as_ac_Header+set}\" = set"; then
26912  echo "$as_me:$LINENO: checking for $ac_header" >&5
26913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26914if eval "test \"\${$as_ac_Header+set}\" = set"; then
26915  echo $ECHO_N "(cached) $ECHO_C" >&6
26916fi
26917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26919else
26920  # Is the header compilable?
26921echo "$as_me:$LINENO: checking $ac_header usability" >&5
26922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26923cat >conftest.$ac_ext <<_ACEOF
26924/* confdefs.h.  */
26925_ACEOF
26926cat confdefs.h >>conftest.$ac_ext
26927cat >>conftest.$ac_ext <<_ACEOF
26928/* end confdefs.h.  */
26929$ac_includes_default
26930#include <$ac_header>
26931_ACEOF
26932rm -f conftest.$ac_objext
26933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26934  (eval $ac_compile) 2>conftest.er1
26935  ac_status=$?
26936  grep -v '^ *+' conftest.er1 >conftest.err
26937  rm -f conftest.er1
26938  cat conftest.err >&5
26939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940  (exit $ac_status); } &&
26941	 { ac_try='test -z "$ac_c_werror_flag"
26942			 || test ! -s conftest.err'
26943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944  (eval $ac_try) 2>&5
26945  ac_status=$?
26946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947  (exit $ac_status); }; } &&
26948	 { ac_try='test -s conftest.$ac_objext'
26949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950  (eval $ac_try) 2>&5
26951  ac_status=$?
26952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953  (exit $ac_status); }; }; then
26954  ac_header_compiler=yes
26955else
26956  echo "$as_me: failed program was:" >&5
26957sed 's/^/| /' conftest.$ac_ext >&5
26958
26959ac_header_compiler=no
26960fi
26961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26963echo "${ECHO_T}$ac_header_compiler" >&6
26964
26965# Is the header present?
26966echo "$as_me:$LINENO: checking $ac_header presence" >&5
26967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26968cat >conftest.$ac_ext <<_ACEOF
26969/* confdefs.h.  */
26970_ACEOF
26971cat confdefs.h >>conftest.$ac_ext
26972cat >>conftest.$ac_ext <<_ACEOF
26973/* end confdefs.h.  */
26974#include <$ac_header>
26975_ACEOF
26976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26978  ac_status=$?
26979  grep -v '^ *+' conftest.er1 >conftest.err
26980  rm -f conftest.er1
26981  cat conftest.err >&5
26982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983  (exit $ac_status); } >/dev/null; then
26984  if test -s conftest.err; then
26985    ac_cpp_err=$ac_c_preproc_warn_flag
26986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26987  else
26988    ac_cpp_err=
26989  fi
26990else
26991  ac_cpp_err=yes
26992fi
26993if test -z "$ac_cpp_err"; then
26994  ac_header_preproc=yes
26995else
26996  echo "$as_me: failed program was:" >&5
26997sed 's/^/| /' conftest.$ac_ext >&5
26998
26999  ac_header_preproc=no
27000fi
27001rm -f conftest.err conftest.$ac_ext
27002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27003echo "${ECHO_T}$ac_header_preproc" >&6
27004
27005# So?  What about this header?
27006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27007  yes:no: )
27008    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27010    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27012    ac_header_preproc=yes
27013    ;;
27014  no:yes:* )
27015    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27017    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27018echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27019    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27021    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27022echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27023    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27025    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27027    (
27028      cat <<\_ASBOX
27029## ------------------------------------------ ##
27030## Report this to the AC_PACKAGE_NAME lists.  ##
27031## ------------------------------------------ ##
27032_ASBOX
27033    ) |
27034      sed "s/^/$as_me: WARNING:     /" >&2
27035    ;;
27036esac
27037echo "$as_me:$LINENO: checking for $ac_header" >&5
27038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27039if eval "test \"\${$as_ac_Header+set}\" = set"; then
27040  echo $ECHO_N "(cached) $ECHO_C" >&6
27041else
27042  eval "$as_ac_Header=\$ac_header_preproc"
27043fi
27044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27046
27047fi
27048if test `eval echo '${'$as_ac_Header'}'` = yes; then
27049  cat >>confdefs.h <<_ACEOF
27050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27051_ACEOF
27052
27053fi
27054
27055done
27056
27057
27058  ac_expanded=`(
27059    test "x$prefix" = xNONE && prefix="$ac_default_prefix"
27060    test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
27061    eval echo \""$datadir/locale"\"
27062  )`
27063
27064cat >>confdefs.h <<_ACEOF
27065#define SP_LOCALE_DIR "$ac_expanded"
27066_ACEOF
27067
27068
27069SP_MESSAGE_DOMAIN="sp$SP_LIBOSP_CUR"
27070
27071cat >>confdefs.h <<_ACEOF
27072#define SP_MESSAGE_DOMAIN "$SP_MESSAGE_DOMAIN"
27073_ACEOF
27074
27075
27076
27077echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27078echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27079if test "${ac_cv_header_stdc+set}" = set; then
27080  echo $ECHO_N "(cached) $ECHO_C" >&6
27081else
27082  cat >conftest.$ac_ext <<_ACEOF
27083/* confdefs.h.  */
27084_ACEOF
27085cat confdefs.h >>conftest.$ac_ext
27086cat >>conftest.$ac_ext <<_ACEOF
27087/* end confdefs.h.  */
27088#include <stdlib.h>
27089#include <stdarg.h>
27090#include <string.h>
27091#include <float.h>
27092
27093int
27094main ()
27095{
27096
27097  ;
27098  return 0;
27099}
27100_ACEOF
27101rm -f conftest.$ac_objext
27102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27103  (eval $ac_compile) 2>conftest.er1
27104  ac_status=$?
27105  grep -v '^ *+' conftest.er1 >conftest.err
27106  rm -f conftest.er1
27107  cat conftest.err >&5
27108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109  (exit $ac_status); } &&
27110	 { ac_try='test -z "$ac_c_werror_flag"
27111			 || test ! -s conftest.err'
27112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113  (eval $ac_try) 2>&5
27114  ac_status=$?
27115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116  (exit $ac_status); }; } &&
27117	 { ac_try='test -s conftest.$ac_objext'
27118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119  (eval $ac_try) 2>&5
27120  ac_status=$?
27121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122  (exit $ac_status); }; }; then
27123  ac_cv_header_stdc=yes
27124else
27125  echo "$as_me: failed program was:" >&5
27126sed 's/^/| /' conftest.$ac_ext >&5
27127
27128ac_cv_header_stdc=no
27129fi
27130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27131
27132if test $ac_cv_header_stdc = yes; then
27133  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27134  cat >conftest.$ac_ext <<_ACEOF
27135/* confdefs.h.  */
27136_ACEOF
27137cat confdefs.h >>conftest.$ac_ext
27138cat >>conftest.$ac_ext <<_ACEOF
27139/* end confdefs.h.  */
27140#include <string.h>
27141
27142_ACEOF
27143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27144  $EGREP "memchr" >/dev/null 2>&1; then
27145  :
27146else
27147  ac_cv_header_stdc=no
27148fi
27149rm -f conftest*
27150
27151fi
27152
27153if test $ac_cv_header_stdc = yes; then
27154  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27155  cat >conftest.$ac_ext <<_ACEOF
27156/* confdefs.h.  */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h.  */
27161#include <stdlib.h>
27162
27163_ACEOF
27164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27165  $EGREP "free" >/dev/null 2>&1; then
27166  :
27167else
27168  ac_cv_header_stdc=no
27169fi
27170rm -f conftest*
27171
27172fi
27173
27174if test $ac_cv_header_stdc = yes; then
27175  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27176  if test "$cross_compiling" = yes; then
27177  :
27178else
27179  cat >conftest.$ac_ext <<_ACEOF
27180/* confdefs.h.  */
27181_ACEOF
27182cat confdefs.h >>conftest.$ac_ext
27183cat >>conftest.$ac_ext <<_ACEOF
27184/* end confdefs.h.  */
27185#include <ctype.h>
27186#if ((' ' & 0x0FF) == 0x020)
27187# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27188# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27189#else
27190# define ISLOWER(c) \
27191		   (('a' <= (c) && (c) <= 'i') \
27192		     || ('j' <= (c) && (c) <= 'r') \
27193		     || ('s' <= (c) && (c) <= 'z'))
27194# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27195#endif
27196
27197#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27198int
27199main ()
27200{
27201  int i;
27202  for (i = 0; i < 256; i++)
27203    if (XOR (islower (i), ISLOWER (i))
27204	|| toupper (i) != TOUPPER (i))
27205      exit(2);
27206  exit (0);
27207}
27208_ACEOF
27209rm -f conftest$ac_exeext
27210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27211  (eval $ac_link) 2>&5
27212  ac_status=$?
27213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216  (eval $ac_try) 2>&5
27217  ac_status=$?
27218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219  (exit $ac_status); }; }; then
27220  :
27221else
27222  echo "$as_me: program exited with status $ac_status" >&5
27223echo "$as_me: failed program was:" >&5
27224sed 's/^/| /' conftest.$ac_ext >&5
27225
27226( exit $ac_status )
27227ac_cv_header_stdc=no
27228fi
27229rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27230fi
27231fi
27232fi
27233echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27234echo "${ECHO_T}$ac_cv_header_stdc" >&6
27235if test $ac_cv_header_stdc = yes; then
27236
27237cat >>confdefs.h <<\_ACEOF
27238#define STDC_HEADERS 1
27239_ACEOF
27240
27241fi
27242
27243
27244
27245
27246
27247for ac_header in limits.h unistd.h io.h osfcn.h
27248do
27249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27250if eval "test \"\${$as_ac_Header+set}\" = set"; then
27251  echo "$as_me:$LINENO: checking for $ac_header" >&5
27252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27253if eval "test \"\${$as_ac_Header+set}\" = set"; then
27254  echo $ECHO_N "(cached) $ECHO_C" >&6
27255fi
27256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27258else
27259  # Is the header compilable?
27260echo "$as_me:$LINENO: checking $ac_header usability" >&5
27261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27262cat >conftest.$ac_ext <<_ACEOF
27263/* confdefs.h.  */
27264_ACEOF
27265cat confdefs.h >>conftest.$ac_ext
27266cat >>conftest.$ac_ext <<_ACEOF
27267/* end confdefs.h.  */
27268$ac_includes_default
27269#include <$ac_header>
27270_ACEOF
27271rm -f conftest.$ac_objext
27272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27273  (eval $ac_compile) 2>conftest.er1
27274  ac_status=$?
27275  grep -v '^ *+' conftest.er1 >conftest.err
27276  rm -f conftest.er1
27277  cat conftest.err >&5
27278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279  (exit $ac_status); } &&
27280	 { ac_try='test -z "$ac_c_werror_flag"
27281			 || test ! -s conftest.err'
27282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283  (eval $ac_try) 2>&5
27284  ac_status=$?
27285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286  (exit $ac_status); }; } &&
27287	 { ac_try='test -s conftest.$ac_objext'
27288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289  (eval $ac_try) 2>&5
27290  ac_status=$?
27291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292  (exit $ac_status); }; }; then
27293  ac_header_compiler=yes
27294else
27295  echo "$as_me: failed program was:" >&5
27296sed 's/^/| /' conftest.$ac_ext >&5
27297
27298ac_header_compiler=no
27299fi
27300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27302echo "${ECHO_T}$ac_header_compiler" >&6
27303
27304# Is the header present?
27305echo "$as_me:$LINENO: checking $ac_header presence" >&5
27306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27307cat >conftest.$ac_ext <<_ACEOF
27308/* confdefs.h.  */
27309_ACEOF
27310cat confdefs.h >>conftest.$ac_ext
27311cat >>conftest.$ac_ext <<_ACEOF
27312/* end confdefs.h.  */
27313#include <$ac_header>
27314_ACEOF
27315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27316  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27317  ac_status=$?
27318  grep -v '^ *+' conftest.er1 >conftest.err
27319  rm -f conftest.er1
27320  cat conftest.err >&5
27321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322  (exit $ac_status); } >/dev/null; then
27323  if test -s conftest.err; then
27324    ac_cpp_err=$ac_c_preproc_warn_flag
27325    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27326  else
27327    ac_cpp_err=
27328  fi
27329else
27330  ac_cpp_err=yes
27331fi
27332if test -z "$ac_cpp_err"; then
27333  ac_header_preproc=yes
27334else
27335  echo "$as_me: failed program was:" >&5
27336sed 's/^/| /' conftest.$ac_ext >&5
27337
27338  ac_header_preproc=no
27339fi
27340rm -f conftest.err conftest.$ac_ext
27341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27342echo "${ECHO_T}$ac_header_preproc" >&6
27343
27344# So?  What about this header?
27345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27346  yes:no: )
27347    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27351    ac_header_preproc=yes
27352    ;;
27353  no:yes:* )
27354    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27356    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27357echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27358    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27360    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27361echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27364    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27366    (
27367      cat <<\_ASBOX
27368## ------------------------------------------ ##
27369## Report this to the AC_PACKAGE_NAME lists.  ##
27370## ------------------------------------------ ##
27371_ASBOX
27372    ) |
27373      sed "s/^/$as_me: WARNING:     /" >&2
27374    ;;
27375esac
27376echo "$as_me:$LINENO: checking for $ac_header" >&5
27377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27378if eval "test \"\${$as_ac_Header+set}\" = set"; then
27379  echo $ECHO_N "(cached) $ECHO_C" >&6
27380else
27381  eval "$as_ac_Header=\$ac_header_preproc"
27382fi
27383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27385
27386fi
27387if test `eval echo '${'$as_ac_Header'}'` = yes; then
27388  cat >>confdefs.h <<_ACEOF
27389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27390_ACEOF
27391
27392fi
27393
27394done
27395
27396ac_ext=cc
27397ac_cpp='$CXXCPP $CPPFLAGS'
27398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27401
27402
27403
27404
27405for ac_header in new cassert
27406do
27407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27408if eval "test \"\${$as_ac_Header+set}\" = set"; then
27409  echo "$as_me:$LINENO: checking for $ac_header" >&5
27410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27411if eval "test \"\${$as_ac_Header+set}\" = set"; then
27412  echo $ECHO_N "(cached) $ECHO_C" >&6
27413fi
27414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27416else
27417  # Is the header compilable?
27418echo "$as_me:$LINENO: checking $ac_header usability" >&5
27419echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27420cat >conftest.$ac_ext <<_ACEOF
27421/* confdefs.h.  */
27422_ACEOF
27423cat confdefs.h >>conftest.$ac_ext
27424cat >>conftest.$ac_ext <<_ACEOF
27425/* end confdefs.h.  */
27426$ac_includes_default
27427#include <$ac_header>
27428_ACEOF
27429rm -f conftest.$ac_objext
27430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27431  (eval $ac_compile) 2>conftest.er1
27432  ac_status=$?
27433  grep -v '^ *+' conftest.er1 >conftest.err
27434  rm -f conftest.er1
27435  cat conftest.err >&5
27436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437  (exit $ac_status); } &&
27438	 { ac_try='test -z "$ac_cxx_werror_flag"
27439			 || test ! -s conftest.err'
27440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27441  (eval $ac_try) 2>&5
27442  ac_status=$?
27443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444  (exit $ac_status); }; } &&
27445	 { ac_try='test -s conftest.$ac_objext'
27446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447  (eval $ac_try) 2>&5
27448  ac_status=$?
27449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450  (exit $ac_status); }; }; then
27451  ac_header_compiler=yes
27452else
27453  echo "$as_me: failed program was:" >&5
27454sed 's/^/| /' conftest.$ac_ext >&5
27455
27456ac_header_compiler=no
27457fi
27458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27459echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27460echo "${ECHO_T}$ac_header_compiler" >&6
27461
27462# Is the header present?
27463echo "$as_me:$LINENO: checking $ac_header presence" >&5
27464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27465cat >conftest.$ac_ext <<_ACEOF
27466/* confdefs.h.  */
27467_ACEOF
27468cat confdefs.h >>conftest.$ac_ext
27469cat >>conftest.$ac_ext <<_ACEOF
27470/* end confdefs.h.  */
27471#include <$ac_header>
27472_ACEOF
27473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27474  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27475  ac_status=$?
27476  grep -v '^ *+' conftest.er1 >conftest.err
27477  rm -f conftest.er1
27478  cat conftest.err >&5
27479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480  (exit $ac_status); } >/dev/null; then
27481  if test -s conftest.err; then
27482    ac_cpp_err=$ac_cxx_preproc_warn_flag
27483    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27484  else
27485    ac_cpp_err=
27486  fi
27487else
27488  ac_cpp_err=yes
27489fi
27490if test -z "$ac_cpp_err"; then
27491  ac_header_preproc=yes
27492else
27493  echo "$as_me: failed program was:" >&5
27494sed 's/^/| /' conftest.$ac_ext >&5
27495
27496  ac_header_preproc=no
27497fi
27498rm -f conftest.err conftest.$ac_ext
27499echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27500echo "${ECHO_T}$ac_header_preproc" >&6
27501
27502# So?  What about this header?
27503case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27504  yes:no: )
27505    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27507    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27509    ac_header_preproc=yes
27510    ;;
27511  no:yes:* )
27512    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27514    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27515echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27516    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27518    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27519echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27520    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27522    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27524    (
27525      cat <<\_ASBOX
27526## ------------------------------------------ ##
27527## Report this to the AC_PACKAGE_NAME lists.  ##
27528## ------------------------------------------ ##
27529_ASBOX
27530    ) |
27531      sed "s/^/$as_me: WARNING:     /" >&2
27532    ;;
27533esac
27534echo "$as_me:$LINENO: checking for $ac_header" >&5
27535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27536if eval "test \"\${$as_ac_Header+set}\" = set"; then
27537  echo $ECHO_N "(cached) $ECHO_C" >&6
27538else
27539  eval "$as_ac_Header=\$ac_header_preproc"
27540fi
27541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27543
27544fi
27545if test `eval echo '${'$as_ac_Header'}'` = yes; then
27546  cat >>confdefs.h <<_ACEOF
27547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27548_ACEOF
27549
27550fi
27551
27552done
27553
27554
27555echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27556echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27557if test "${ac_cv_c_bigendian+set}" = set; then
27558  echo $ECHO_N "(cached) $ECHO_C" >&6
27559else
27560  # See if sys/param.h defines the BYTE_ORDER macro.
27561cat >conftest.$ac_ext <<_ACEOF
27562/* confdefs.h.  */
27563_ACEOF
27564cat confdefs.h >>conftest.$ac_ext
27565cat >>conftest.$ac_ext <<_ACEOF
27566/* end confdefs.h.  */
27567#include <sys/types.h>
27568#include <sys/param.h>
27569
27570int
27571main ()
27572{
27573#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27574 bogus endian macros
27575#endif
27576
27577  ;
27578  return 0;
27579}
27580_ACEOF
27581rm -f conftest.$ac_objext
27582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27583  (eval $ac_compile) 2>conftest.er1
27584  ac_status=$?
27585  grep -v '^ *+' conftest.er1 >conftest.err
27586  rm -f conftest.er1
27587  cat conftest.err >&5
27588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589  (exit $ac_status); } &&
27590	 { ac_try='test -z "$ac_cxx_werror_flag"
27591			 || test ! -s conftest.err'
27592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593  (eval $ac_try) 2>&5
27594  ac_status=$?
27595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596  (exit $ac_status); }; } &&
27597	 { ac_try='test -s conftest.$ac_objext'
27598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27599  (eval $ac_try) 2>&5
27600  ac_status=$?
27601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602  (exit $ac_status); }; }; then
27603  # It does; now see whether it defined to BIG_ENDIAN or not.
27604cat >conftest.$ac_ext <<_ACEOF
27605/* confdefs.h.  */
27606_ACEOF
27607cat confdefs.h >>conftest.$ac_ext
27608cat >>conftest.$ac_ext <<_ACEOF
27609/* end confdefs.h.  */
27610#include <sys/types.h>
27611#include <sys/param.h>
27612
27613int
27614main ()
27615{
27616#if BYTE_ORDER != BIG_ENDIAN
27617 not big endian
27618#endif
27619
27620  ;
27621  return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext
27625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27626  (eval $ac_compile) 2>conftest.er1
27627  ac_status=$?
27628  grep -v '^ *+' conftest.er1 >conftest.err
27629  rm -f conftest.er1
27630  cat conftest.err >&5
27631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632  (exit $ac_status); } &&
27633	 { ac_try='test -z "$ac_cxx_werror_flag"
27634			 || test ! -s conftest.err'
27635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636  (eval $ac_try) 2>&5
27637  ac_status=$?
27638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639  (exit $ac_status); }; } &&
27640	 { ac_try='test -s conftest.$ac_objext'
27641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642  (eval $ac_try) 2>&5
27643  ac_status=$?
27644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645  (exit $ac_status); }; }; then
27646  ac_cv_c_bigendian=yes
27647else
27648  echo "$as_me: failed program was:" >&5
27649sed 's/^/| /' conftest.$ac_ext >&5
27650
27651ac_cv_c_bigendian=no
27652fi
27653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27654else
27655  echo "$as_me: failed program was:" >&5
27656sed 's/^/| /' conftest.$ac_ext >&5
27657
27658# It does not; compile a test program.
27659if test "$cross_compiling" = yes; then
27660  # try to guess the endianness by grepping values into an object file
27661  ac_cv_c_bigendian=unknown
27662  cat >conftest.$ac_ext <<_ACEOF
27663/* confdefs.h.  */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h.  */
27668short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27669short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27670void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27671short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27672short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27673void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27674int
27675main ()
27676{
27677 _ascii (); _ebcdic ();
27678  ;
27679  return 0;
27680}
27681_ACEOF
27682rm -f conftest.$ac_objext
27683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27684  (eval $ac_compile) 2>conftest.er1
27685  ac_status=$?
27686  grep -v '^ *+' conftest.er1 >conftest.err
27687  rm -f conftest.er1
27688  cat conftest.err >&5
27689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690  (exit $ac_status); } &&
27691	 { ac_try='test -z "$ac_cxx_werror_flag"
27692			 || test ! -s conftest.err'
27693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694  (eval $ac_try) 2>&5
27695  ac_status=$?
27696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697  (exit $ac_status); }; } &&
27698	 { ac_try='test -s conftest.$ac_objext'
27699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700  (eval $ac_try) 2>&5
27701  ac_status=$?
27702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703  (exit $ac_status); }; }; then
27704  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27705  ac_cv_c_bigendian=yes
27706fi
27707if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27708  if test "$ac_cv_c_bigendian" = unknown; then
27709    ac_cv_c_bigendian=no
27710  else
27711    # finding both strings is unlikely to happen, but who knows?
27712    ac_cv_c_bigendian=unknown
27713  fi
27714fi
27715else
27716  echo "$as_me: failed program was:" >&5
27717sed 's/^/| /' conftest.$ac_ext >&5
27718
27719fi
27720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27721else
27722  cat >conftest.$ac_ext <<_ACEOF
27723/* confdefs.h.  */
27724_ACEOF
27725cat confdefs.h >>conftest.$ac_ext
27726cat >>conftest.$ac_ext <<_ACEOF
27727/* end confdefs.h.  */
27728int
27729main ()
27730{
27731  /* Are we little or big endian?  From Harbison&Steele.  */
27732  union
27733  {
27734    long l;
27735    char c[sizeof (long)];
27736  } u;
27737  u.l = 1;
27738  exit (u.c[sizeof (long) - 1] == 1);
27739}
27740_ACEOF
27741rm -f conftest$ac_exeext
27742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27743  (eval $ac_link) 2>&5
27744  ac_status=$?
27745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748  (eval $ac_try) 2>&5
27749  ac_status=$?
27750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751  (exit $ac_status); }; }; then
27752  ac_cv_c_bigendian=no
27753else
27754  echo "$as_me: program exited with status $ac_status" >&5
27755echo "$as_me: failed program was:" >&5
27756sed 's/^/| /' conftest.$ac_ext >&5
27757
27758( exit $ac_status )
27759ac_cv_c_bigendian=yes
27760fi
27761rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27762fi
27763fi
27764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27765fi
27766echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27767echo "${ECHO_T}$ac_cv_c_bigendian" >&6
27768case $ac_cv_c_bigendian in
27769  yes)
27770
27771cat >>confdefs.h <<\_ACEOF
27772#define WORDS_BIGENDIAN 1
27773_ACEOF
27774 ;;
27775  no)
27776     ;;
27777  *)
27778    { { echo "$as_me:$LINENO: error: unknown endianness
27779presetting ac_cv_c_bigendian=no (or yes) will help" >&5
27780echo "$as_me: error: unknown endianness
27781presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
27782   { (exit 1); exit 1; }; } ;;
27783esac
27784
27785echo "$as_me:$LINENO: checking for size_t" >&5
27786echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27787if test "${ac_cv_type_size_t+set}" = set; then
27788  echo $ECHO_N "(cached) $ECHO_C" >&6
27789else
27790  cat >conftest.$ac_ext <<_ACEOF
27791/* confdefs.h.  */
27792_ACEOF
27793cat confdefs.h >>conftest.$ac_ext
27794cat >>conftest.$ac_ext <<_ACEOF
27795/* end confdefs.h.  */
27796$ac_includes_default
27797int
27798main ()
27799{
27800if ((size_t *) 0)
27801  return 0;
27802if (sizeof (size_t))
27803  return 0;
27804  ;
27805  return 0;
27806}
27807_ACEOF
27808rm -f conftest.$ac_objext
27809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27810  (eval $ac_compile) 2>conftest.er1
27811  ac_status=$?
27812  grep -v '^ *+' conftest.er1 >conftest.err
27813  rm -f conftest.er1
27814  cat conftest.err >&5
27815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816  (exit $ac_status); } &&
27817	 { ac_try='test -z "$ac_cxx_werror_flag"
27818			 || test ! -s conftest.err'
27819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820  (eval $ac_try) 2>&5
27821  ac_status=$?
27822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823  (exit $ac_status); }; } &&
27824	 { ac_try='test -s conftest.$ac_objext'
27825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27826  (eval $ac_try) 2>&5
27827  ac_status=$?
27828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829  (exit $ac_status); }; }; then
27830  ac_cv_type_size_t=yes
27831else
27832  echo "$as_me: failed program was:" >&5
27833sed 's/^/| /' conftest.$ac_ext >&5
27834
27835ac_cv_type_size_t=no
27836fi
27837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27838fi
27839echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27840echo "${ECHO_T}$ac_cv_type_size_t" >&6
27841if test $ac_cv_type_size_t = yes; then
27842  :
27843else
27844
27845cat >>confdefs.h <<_ACEOF
27846#define size_t unsigned
27847_ACEOF
27848
27849fi
27850
27851
27852echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
27853echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
27854if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
27855  echo $ECHO_N "(cached) $ECHO_C" >&6
27856else
27857  cat >conftest.$ac_ext <<_ACEOF
27858/* confdefs.h.  */
27859_ACEOF
27860cat confdefs.h >>conftest.$ac_ext
27861cat >>conftest.$ac_ext <<_ACEOF
27862/* end confdefs.h.  */
27863$ac_includes_default
27864int
27865main ()
27866{
27867static struct stat ac_aggr;
27868if (ac_aggr.st_blksize)
27869return 0;
27870  ;
27871  return 0;
27872}
27873_ACEOF
27874rm -f conftest.$ac_objext
27875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27876  (eval $ac_compile) 2>conftest.er1
27877  ac_status=$?
27878  grep -v '^ *+' conftest.er1 >conftest.err
27879  rm -f conftest.er1
27880  cat conftest.err >&5
27881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882  (exit $ac_status); } &&
27883	 { ac_try='test -z "$ac_cxx_werror_flag"
27884			 || test ! -s conftest.err'
27885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886  (eval $ac_try) 2>&5
27887  ac_status=$?
27888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889  (exit $ac_status); }; } &&
27890	 { ac_try='test -s conftest.$ac_objext'
27891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892  (eval $ac_try) 2>&5
27893  ac_status=$?
27894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895  (exit $ac_status); }; }; then
27896  ac_cv_member_struct_stat_st_blksize=yes
27897else
27898  echo "$as_me: failed program was:" >&5
27899sed 's/^/| /' conftest.$ac_ext >&5
27900
27901cat >conftest.$ac_ext <<_ACEOF
27902/* confdefs.h.  */
27903_ACEOF
27904cat confdefs.h >>conftest.$ac_ext
27905cat >>conftest.$ac_ext <<_ACEOF
27906/* end confdefs.h.  */
27907$ac_includes_default
27908int
27909main ()
27910{
27911static struct stat ac_aggr;
27912if (sizeof ac_aggr.st_blksize)
27913return 0;
27914  ;
27915  return 0;
27916}
27917_ACEOF
27918rm -f conftest.$ac_objext
27919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27920  (eval $ac_compile) 2>conftest.er1
27921  ac_status=$?
27922  grep -v '^ *+' conftest.er1 >conftest.err
27923  rm -f conftest.er1
27924  cat conftest.err >&5
27925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926  (exit $ac_status); } &&
27927	 { ac_try='test -z "$ac_cxx_werror_flag"
27928			 || test ! -s conftest.err'
27929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930  (eval $ac_try) 2>&5
27931  ac_status=$?
27932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933  (exit $ac_status); }; } &&
27934	 { ac_try='test -s conftest.$ac_objext'
27935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27936  (eval $ac_try) 2>&5
27937  ac_status=$?
27938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939  (exit $ac_status); }; }; then
27940  ac_cv_member_struct_stat_st_blksize=yes
27941else
27942  echo "$as_me: failed program was:" >&5
27943sed 's/^/| /' conftest.$ac_ext >&5
27944
27945ac_cv_member_struct_stat_st_blksize=no
27946fi
27947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27948fi
27949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27950fi
27951echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
27952echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
27953if test $ac_cv_member_struct_stat_st_blksize = yes; then
27954
27955cat >>confdefs.h <<_ACEOF
27956#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
27957_ACEOF
27958
27959
27960cat >>confdefs.h <<\_ACEOF
27961#define HAVE_ST_BLKSIZE 1
27962_ACEOF
27963
27964fi
27965
27966
27967echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
27968echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
27969if test "${ac_cv_have_sig_atomic_t+set}" = set; then
27970  echo $ECHO_N "(cached) $ECHO_C" >&6
27971else
27972  cat >conftest.$ac_ext <<_ACEOF
27973/* confdefs.h.  */
27974_ACEOF
27975cat confdefs.h >>conftest.$ac_ext
27976cat >>conftest.$ac_ext <<_ACEOF
27977/* end confdefs.h.  */
27978#include <signal.h>
27979int
27980main ()
27981{
27982sig_atomic_t x;
27983  ;
27984  return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
27988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27989  (eval $ac_link) 2>conftest.er1
27990  ac_status=$?
27991  grep -v '^ *+' conftest.er1 >conftest.err
27992  rm -f conftest.er1
27993  cat conftest.err >&5
27994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995  (exit $ac_status); } &&
27996	 { ac_try='test -z "$ac_cxx_werror_flag"
27997			 || test ! -s conftest.err'
27998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999  (eval $ac_try) 2>&5
28000  ac_status=$?
28001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002  (exit $ac_status); }; } &&
28003	 { ac_try='test -s conftest$ac_exeext'
28004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28005  (eval $ac_try) 2>&5
28006  ac_status=$?
28007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008  (exit $ac_status); }; }; then
28009  ac_cv_have_sig_atomic_t=yes
28010else
28011  echo "$as_me: failed program was:" >&5
28012sed 's/^/| /' conftest.$ac_ext >&5
28013
28014ac_cv_have_sig_atomic_t=no
28015fi
28016rm -f conftest.err conftest.$ac_objext \
28017      conftest$ac_exeext conftest.$ac_ext
28018fi
28019echo "$as_me:$LINENO: result: $ac_cv_have_sig_atomic_t" >&5
28020echo "${ECHO_T}$ac_cv_have_sig_atomic_t" >&6
28021if test "$ac_cv_have_sig_atomic_t" = "no"
28022then
28023    echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28024echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
28025if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28026  echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028  cat >conftest.$ac_ext <<_ACEOF
28029/* confdefs.h.  */
28030_ACEOF
28031cat confdefs.h >>conftest.$ac_ext
28032cat >>conftest.$ac_ext <<_ACEOF
28033/* end confdefs.h.  */
28034$ac_includes_default
28035int
28036main ()
28037{
28038if ((sig_atomic_t *) 0)
28039  return 0;
28040if (sizeof (sig_atomic_t))
28041  return 0;
28042  ;
28043  return 0;
28044}
28045_ACEOF
28046rm -f conftest.$ac_objext
28047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28048  (eval $ac_compile) 2>conftest.er1
28049  ac_status=$?
28050  grep -v '^ *+' conftest.er1 >conftest.err
28051  rm -f conftest.er1
28052  cat conftest.err >&5
28053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054  (exit $ac_status); } &&
28055	 { ac_try='test -z "$ac_cxx_werror_flag"
28056			 || test ! -s conftest.err'
28057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058  (eval $ac_try) 2>&5
28059  ac_status=$?
28060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061  (exit $ac_status); }; } &&
28062	 { ac_try='test -s conftest.$ac_objext'
28063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064  (eval $ac_try) 2>&5
28065  ac_status=$?
28066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067  (exit $ac_status); }; }; then
28068  ac_cv_type_sig_atomic_t=yes
28069else
28070  echo "$as_me: failed program was:" >&5
28071sed 's/^/| /' conftest.$ac_ext >&5
28072
28073ac_cv_type_sig_atomic_t=no
28074fi
28075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28076fi
28077echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28078echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
28079if test $ac_cv_type_sig_atomic_t = yes; then
28080  :
28081else
28082
28083cat >>confdefs.h <<_ACEOF
28084#define sig_atomic_t int
28085_ACEOF
28086
28087fi
28088
28089fi
28090echo "$as_me:$LINENO: checking for size_t" >&5
28091echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28092if test "${ac_cv_type_size_t+set}" = set; then
28093  echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095  cat >conftest.$ac_ext <<_ACEOF
28096/* confdefs.h.  */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h.  */
28101$ac_includes_default
28102int
28103main ()
28104{
28105if ((size_t *) 0)
28106  return 0;
28107if (sizeof (size_t))
28108  return 0;
28109  ;
28110  return 0;
28111}
28112_ACEOF
28113rm -f conftest.$ac_objext
28114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28115  (eval $ac_compile) 2>conftest.er1
28116  ac_status=$?
28117  grep -v '^ *+' conftest.er1 >conftest.err
28118  rm -f conftest.er1
28119  cat conftest.err >&5
28120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121  (exit $ac_status); } &&
28122	 { ac_try='test -z "$ac_cxx_werror_flag"
28123			 || test ! -s conftest.err'
28124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125  (eval $ac_try) 2>&5
28126  ac_status=$?
28127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128  (exit $ac_status); }; } &&
28129	 { ac_try='test -s conftest.$ac_objext'
28130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131  (eval $ac_try) 2>&5
28132  ac_status=$?
28133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134  (exit $ac_status); }; }; then
28135  ac_cv_type_size_t=yes
28136else
28137  echo "$as_me: failed program was:" >&5
28138sed 's/^/| /' conftest.$ac_ext >&5
28139
28140ac_cv_type_size_t=no
28141fi
28142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28143fi
28144echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28145echo "${ECHO_T}$ac_cv_type_size_t" >&6
28146
28147echo "$as_me:$LINENO: checking size of size_t" >&5
28148echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
28149if test "${ac_cv_sizeof_size_t+set}" = set; then
28150  echo $ECHO_N "(cached) $ECHO_C" >&6
28151else
28152  if test "$ac_cv_type_size_t" = yes; then
28153  # The cast to unsigned long works around a bug in the HP C Compiler
28154  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28155  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28156  # This bug is HP SR number 8606223364.
28157  if test "$cross_compiling" = yes; then
28158  # Depending upon the size, compute the lo and hi bounds.
28159cat >conftest.$ac_ext <<_ACEOF
28160/* confdefs.h.  */
28161_ACEOF
28162cat confdefs.h >>conftest.$ac_ext
28163cat >>conftest.$ac_ext <<_ACEOF
28164/* end confdefs.h.  */
28165$ac_includes_default
28166int
28167main ()
28168{
28169static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
28170test_array [0] = 0
28171
28172  ;
28173  return 0;
28174}
28175_ACEOF
28176rm -f conftest.$ac_objext
28177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28178  (eval $ac_compile) 2>conftest.er1
28179  ac_status=$?
28180  grep -v '^ *+' conftest.er1 >conftest.err
28181  rm -f conftest.er1
28182  cat conftest.err >&5
28183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184  (exit $ac_status); } &&
28185	 { ac_try='test -z "$ac_cxx_werror_flag"
28186			 || test ! -s conftest.err'
28187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188  (eval $ac_try) 2>&5
28189  ac_status=$?
28190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191  (exit $ac_status); }; } &&
28192	 { ac_try='test -s conftest.$ac_objext'
28193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194  (eval $ac_try) 2>&5
28195  ac_status=$?
28196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197  (exit $ac_status); }; }; then
28198  ac_lo=0 ac_mid=0
28199  while :; do
28200    cat >conftest.$ac_ext <<_ACEOF
28201/* confdefs.h.  */
28202_ACEOF
28203cat confdefs.h >>conftest.$ac_ext
28204cat >>conftest.$ac_ext <<_ACEOF
28205/* end confdefs.h.  */
28206$ac_includes_default
28207int
28208main ()
28209{
28210static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28211test_array [0] = 0
28212
28213  ;
28214  return 0;
28215}
28216_ACEOF
28217rm -f conftest.$ac_objext
28218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28219  (eval $ac_compile) 2>conftest.er1
28220  ac_status=$?
28221  grep -v '^ *+' conftest.er1 >conftest.err
28222  rm -f conftest.er1
28223  cat conftest.err >&5
28224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225  (exit $ac_status); } &&
28226	 { ac_try='test -z "$ac_cxx_werror_flag"
28227			 || test ! -s conftest.err'
28228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229  (eval $ac_try) 2>&5
28230  ac_status=$?
28231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232  (exit $ac_status); }; } &&
28233	 { ac_try='test -s conftest.$ac_objext'
28234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235  (eval $ac_try) 2>&5
28236  ac_status=$?
28237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238  (exit $ac_status); }; }; then
28239  ac_hi=$ac_mid; break
28240else
28241  echo "$as_me: failed program was:" >&5
28242sed 's/^/| /' conftest.$ac_ext >&5
28243
28244ac_lo=`expr $ac_mid + 1`
28245		    if test $ac_lo -le $ac_mid; then
28246		      ac_lo= ac_hi=
28247		      break
28248		    fi
28249		    ac_mid=`expr 2 '*' $ac_mid + 1`
28250fi
28251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28252  done
28253else
28254  echo "$as_me: failed program was:" >&5
28255sed 's/^/| /' conftest.$ac_ext >&5
28256
28257cat >conftest.$ac_ext <<_ACEOF
28258/* confdefs.h.  */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h.  */
28263$ac_includes_default
28264int
28265main ()
28266{
28267static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
28268test_array [0] = 0
28269
28270  ;
28271  return 0;
28272}
28273_ACEOF
28274rm -f conftest.$ac_objext
28275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28276  (eval $ac_compile) 2>conftest.er1
28277  ac_status=$?
28278  grep -v '^ *+' conftest.er1 >conftest.err
28279  rm -f conftest.er1
28280  cat conftest.err >&5
28281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282  (exit $ac_status); } &&
28283	 { ac_try='test -z "$ac_cxx_werror_flag"
28284			 || test ! -s conftest.err'
28285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28286  (eval $ac_try) 2>&5
28287  ac_status=$?
28288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289  (exit $ac_status); }; } &&
28290	 { ac_try='test -s conftest.$ac_objext'
28291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28292  (eval $ac_try) 2>&5
28293  ac_status=$?
28294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295  (exit $ac_status); }; }; then
28296  ac_hi=-1 ac_mid=-1
28297  while :; do
28298    cat >conftest.$ac_ext <<_ACEOF
28299/* confdefs.h.  */
28300_ACEOF
28301cat confdefs.h >>conftest.$ac_ext
28302cat >>conftest.$ac_ext <<_ACEOF
28303/* end confdefs.h.  */
28304$ac_includes_default
28305int
28306main ()
28307{
28308static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
28309test_array [0] = 0
28310
28311  ;
28312  return 0;
28313}
28314_ACEOF
28315rm -f conftest.$ac_objext
28316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28317  (eval $ac_compile) 2>conftest.er1
28318  ac_status=$?
28319  grep -v '^ *+' conftest.er1 >conftest.err
28320  rm -f conftest.er1
28321  cat conftest.err >&5
28322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323  (exit $ac_status); } &&
28324	 { ac_try='test -z "$ac_cxx_werror_flag"
28325			 || test ! -s conftest.err'
28326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327  (eval $ac_try) 2>&5
28328  ac_status=$?
28329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330  (exit $ac_status); }; } &&
28331	 { ac_try='test -s conftest.$ac_objext'
28332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333  (eval $ac_try) 2>&5
28334  ac_status=$?
28335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336  (exit $ac_status); }; }; then
28337  ac_lo=$ac_mid; break
28338else
28339  echo "$as_me: failed program was:" >&5
28340sed 's/^/| /' conftest.$ac_ext >&5
28341
28342ac_hi=`expr '(' $ac_mid ')' - 1`
28343		       if test $ac_mid -le $ac_hi; then
28344			 ac_lo= ac_hi=
28345			 break
28346		       fi
28347		       ac_mid=`expr 2 '*' $ac_mid`
28348fi
28349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28350  done
28351else
28352  echo "$as_me: failed program was:" >&5
28353sed 's/^/| /' conftest.$ac_ext >&5
28354
28355ac_lo= ac_hi=
28356fi
28357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28358fi
28359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28360# Binary search between lo and hi bounds.
28361while test "x$ac_lo" != "x$ac_hi"; do
28362  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28363  cat >conftest.$ac_ext <<_ACEOF
28364/* confdefs.h.  */
28365_ACEOF
28366cat confdefs.h >>conftest.$ac_ext
28367cat >>conftest.$ac_ext <<_ACEOF
28368/* end confdefs.h.  */
28369$ac_includes_default
28370int
28371main ()
28372{
28373static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
28374test_array [0] = 0
28375
28376  ;
28377  return 0;
28378}
28379_ACEOF
28380rm -f conftest.$ac_objext
28381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28382  (eval $ac_compile) 2>conftest.er1
28383  ac_status=$?
28384  grep -v '^ *+' conftest.er1 >conftest.err
28385  rm -f conftest.er1
28386  cat conftest.err >&5
28387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388  (exit $ac_status); } &&
28389	 { ac_try='test -z "$ac_cxx_werror_flag"
28390			 || test ! -s conftest.err'
28391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392  (eval $ac_try) 2>&5
28393  ac_status=$?
28394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395  (exit $ac_status); }; } &&
28396	 { ac_try='test -s conftest.$ac_objext'
28397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398  (eval $ac_try) 2>&5
28399  ac_status=$?
28400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401  (exit $ac_status); }; }; then
28402  ac_hi=$ac_mid
28403else
28404  echo "$as_me: failed program was:" >&5
28405sed 's/^/| /' conftest.$ac_ext >&5
28406
28407ac_lo=`expr '(' $ac_mid ')' + 1`
28408fi
28409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28410done
28411case $ac_lo in
28412?*) ac_cv_sizeof_size_t=$ac_lo;;
28413'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28414See \`config.log' for more details." >&5
28415echo "$as_me: error: cannot compute sizeof (size_t), 77
28416See \`config.log' for more details." >&2;}
28417   { (exit 1); exit 1; }; } ;;
28418esac
28419else
28420  if test "$cross_compiling" = yes; then
28421  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28422See \`config.log' for more details." >&5
28423echo "$as_me: error: cannot run test program while cross compiling
28424See \`config.log' for more details." >&2;}
28425   { (exit 1); exit 1; }; }
28426else
28427  cat >conftest.$ac_ext <<_ACEOF
28428/* confdefs.h.  */
28429_ACEOF
28430cat confdefs.h >>conftest.$ac_ext
28431cat >>conftest.$ac_ext <<_ACEOF
28432/* end confdefs.h.  */
28433$ac_includes_default
28434long longval () { return (long) (sizeof (size_t)); }
28435unsigned long ulongval () { return (long) (sizeof (size_t)); }
28436#include <stdio.h>
28437#include <stdlib.h>
28438int
28439main ()
28440{
28441
28442  FILE *f = fopen ("conftest.val", "w");
28443  if (! f)
28444    exit (1);
28445  if (((long) (sizeof (size_t))) < 0)
28446    {
28447      long i = longval ();
28448      if (i != ((long) (sizeof (size_t))))
28449	exit (1);
28450      fprintf (f, "%ld\n", i);
28451    }
28452  else
28453    {
28454      unsigned long i = ulongval ();
28455      if (i != ((long) (sizeof (size_t))))
28456	exit (1);
28457      fprintf (f, "%lu\n", i);
28458    }
28459  exit (ferror (f) || fclose (f) != 0);
28460
28461  ;
28462  return 0;
28463}
28464_ACEOF
28465rm -f conftest$ac_exeext
28466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28467  (eval $ac_link) 2>&5
28468  ac_status=$?
28469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28472  (eval $ac_try) 2>&5
28473  ac_status=$?
28474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475  (exit $ac_status); }; }; then
28476  ac_cv_sizeof_size_t=`cat conftest.val`
28477else
28478  echo "$as_me: program exited with status $ac_status" >&5
28479echo "$as_me: failed program was:" >&5
28480sed 's/^/| /' conftest.$ac_ext >&5
28481
28482( exit $ac_status )
28483{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
28484See \`config.log' for more details." >&5
28485echo "$as_me: error: cannot compute sizeof (size_t), 77
28486See \`config.log' for more details." >&2;}
28487   { (exit 1); exit 1; }; }
28488fi
28489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28490fi
28491fi
28492rm -f conftest.val
28493else
28494  ac_cv_sizeof_size_t=0
28495fi
28496fi
28497echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28498echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
28499cat >>confdefs.h <<_ACEOF
28500#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28501_ACEOF
28502
28503
28504echo "$as_me:$LINENO: checking for unsigned int" >&5
28505echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
28506if test "${ac_cv_type_unsigned_int+set}" = set; then
28507  echo $ECHO_N "(cached) $ECHO_C" >&6
28508else
28509  cat >conftest.$ac_ext <<_ACEOF
28510/* confdefs.h.  */
28511_ACEOF
28512cat confdefs.h >>conftest.$ac_ext
28513cat >>conftest.$ac_ext <<_ACEOF
28514/* end confdefs.h.  */
28515$ac_includes_default
28516int
28517main ()
28518{
28519if ((unsigned int *) 0)
28520  return 0;
28521if (sizeof (unsigned int))
28522  return 0;
28523  ;
28524  return 0;
28525}
28526_ACEOF
28527rm -f conftest.$ac_objext
28528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28529  (eval $ac_compile) 2>conftest.er1
28530  ac_status=$?
28531  grep -v '^ *+' conftest.er1 >conftest.err
28532  rm -f conftest.er1
28533  cat conftest.err >&5
28534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535  (exit $ac_status); } &&
28536	 { ac_try='test -z "$ac_cxx_werror_flag"
28537			 || test ! -s conftest.err'
28538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28539  (eval $ac_try) 2>&5
28540  ac_status=$?
28541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542  (exit $ac_status); }; } &&
28543	 { ac_try='test -s conftest.$ac_objext'
28544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545  (eval $ac_try) 2>&5
28546  ac_status=$?
28547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548  (exit $ac_status); }; }; then
28549  ac_cv_type_unsigned_int=yes
28550else
28551  echo "$as_me: failed program was:" >&5
28552sed 's/^/| /' conftest.$ac_ext >&5
28553
28554ac_cv_type_unsigned_int=no
28555fi
28556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28557fi
28558echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
28559echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
28560
28561echo "$as_me:$LINENO: checking size of unsigned int" >&5
28562echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
28563if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
28564  echo $ECHO_N "(cached) $ECHO_C" >&6
28565else
28566  if test "$ac_cv_type_unsigned_int" = yes; then
28567  # The cast to unsigned long works around a bug in the HP C Compiler
28568  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28569  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28570  # This bug is HP SR number 8606223364.
28571  if test "$cross_compiling" = yes; then
28572  # Depending upon the size, compute the lo and hi bounds.
28573cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h.  */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h.  */
28579$ac_includes_default
28580int
28581main ()
28582{
28583static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
28584test_array [0] = 0
28585
28586  ;
28587  return 0;
28588}
28589_ACEOF
28590rm -f conftest.$ac_objext
28591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28592  (eval $ac_compile) 2>conftest.er1
28593  ac_status=$?
28594  grep -v '^ *+' conftest.er1 >conftest.err
28595  rm -f conftest.er1
28596  cat conftest.err >&5
28597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598  (exit $ac_status); } &&
28599	 { ac_try='test -z "$ac_cxx_werror_flag"
28600			 || test ! -s conftest.err'
28601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602  (eval $ac_try) 2>&5
28603  ac_status=$?
28604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605  (exit $ac_status); }; } &&
28606	 { ac_try='test -s conftest.$ac_objext'
28607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28608  (eval $ac_try) 2>&5
28609  ac_status=$?
28610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611  (exit $ac_status); }; }; then
28612  ac_lo=0 ac_mid=0
28613  while :; do
28614    cat >conftest.$ac_ext <<_ACEOF
28615/* confdefs.h.  */
28616_ACEOF
28617cat confdefs.h >>conftest.$ac_ext
28618cat >>conftest.$ac_ext <<_ACEOF
28619/* end confdefs.h.  */
28620$ac_includes_default
28621int
28622main ()
28623{
28624static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
28625test_array [0] = 0
28626
28627  ;
28628  return 0;
28629}
28630_ACEOF
28631rm -f conftest.$ac_objext
28632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28633  (eval $ac_compile) 2>conftest.er1
28634  ac_status=$?
28635  grep -v '^ *+' conftest.er1 >conftest.err
28636  rm -f conftest.er1
28637  cat conftest.err >&5
28638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639  (exit $ac_status); } &&
28640	 { ac_try='test -z "$ac_cxx_werror_flag"
28641			 || test ! -s conftest.err'
28642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643  (eval $ac_try) 2>&5
28644  ac_status=$?
28645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646  (exit $ac_status); }; } &&
28647	 { ac_try='test -s conftest.$ac_objext'
28648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649  (eval $ac_try) 2>&5
28650  ac_status=$?
28651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652  (exit $ac_status); }; }; then
28653  ac_hi=$ac_mid; break
28654else
28655  echo "$as_me: failed program was:" >&5
28656sed 's/^/| /' conftest.$ac_ext >&5
28657
28658ac_lo=`expr $ac_mid + 1`
28659		    if test $ac_lo -le $ac_mid; then
28660		      ac_lo= ac_hi=
28661		      break
28662		    fi
28663		    ac_mid=`expr 2 '*' $ac_mid + 1`
28664fi
28665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28666  done
28667else
28668  echo "$as_me: failed program was:" >&5
28669sed 's/^/| /' conftest.$ac_ext >&5
28670
28671cat >conftest.$ac_ext <<_ACEOF
28672/* confdefs.h.  */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h.  */
28677$ac_includes_default
28678int
28679main ()
28680{
28681static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
28682test_array [0] = 0
28683
28684  ;
28685  return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext
28689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28690  (eval $ac_compile) 2>conftest.er1
28691  ac_status=$?
28692  grep -v '^ *+' conftest.er1 >conftest.err
28693  rm -f conftest.er1
28694  cat conftest.err >&5
28695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696  (exit $ac_status); } &&
28697	 { ac_try='test -z "$ac_cxx_werror_flag"
28698			 || test ! -s conftest.err'
28699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700  (eval $ac_try) 2>&5
28701  ac_status=$?
28702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703  (exit $ac_status); }; } &&
28704	 { ac_try='test -s conftest.$ac_objext'
28705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28706  (eval $ac_try) 2>&5
28707  ac_status=$?
28708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709  (exit $ac_status); }; }; then
28710  ac_hi=-1 ac_mid=-1
28711  while :; do
28712    cat >conftest.$ac_ext <<_ACEOF
28713/* confdefs.h.  */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h.  */
28718$ac_includes_default
28719int
28720main ()
28721{
28722static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
28723test_array [0] = 0
28724
28725  ;
28726  return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext
28730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28731  (eval $ac_compile) 2>conftest.er1
28732  ac_status=$?
28733  grep -v '^ *+' conftest.er1 >conftest.err
28734  rm -f conftest.er1
28735  cat conftest.err >&5
28736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737  (exit $ac_status); } &&
28738	 { ac_try='test -z "$ac_cxx_werror_flag"
28739			 || test ! -s conftest.err'
28740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741  (eval $ac_try) 2>&5
28742  ac_status=$?
28743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744  (exit $ac_status); }; } &&
28745	 { ac_try='test -s conftest.$ac_objext'
28746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747  (eval $ac_try) 2>&5
28748  ac_status=$?
28749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750  (exit $ac_status); }; }; then
28751  ac_lo=$ac_mid; break
28752else
28753  echo "$as_me: failed program was:" >&5
28754sed 's/^/| /' conftest.$ac_ext >&5
28755
28756ac_hi=`expr '(' $ac_mid ')' - 1`
28757		       if test $ac_mid -le $ac_hi; then
28758			 ac_lo= ac_hi=
28759			 break
28760		       fi
28761		       ac_mid=`expr 2 '*' $ac_mid`
28762fi
28763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28764  done
28765else
28766  echo "$as_me: failed program was:" >&5
28767sed 's/^/| /' conftest.$ac_ext >&5
28768
28769ac_lo= ac_hi=
28770fi
28771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28772fi
28773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28774# Binary search between lo and hi bounds.
28775while test "x$ac_lo" != "x$ac_hi"; do
28776  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28777  cat >conftest.$ac_ext <<_ACEOF
28778/* confdefs.h.  */
28779_ACEOF
28780cat confdefs.h >>conftest.$ac_ext
28781cat >>conftest.$ac_ext <<_ACEOF
28782/* end confdefs.h.  */
28783$ac_includes_default
28784int
28785main ()
28786{
28787static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
28788test_array [0] = 0
28789
28790  ;
28791  return 0;
28792}
28793_ACEOF
28794rm -f conftest.$ac_objext
28795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28796  (eval $ac_compile) 2>conftest.er1
28797  ac_status=$?
28798  grep -v '^ *+' conftest.er1 >conftest.err
28799  rm -f conftest.er1
28800  cat conftest.err >&5
28801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802  (exit $ac_status); } &&
28803	 { ac_try='test -z "$ac_cxx_werror_flag"
28804			 || test ! -s conftest.err'
28805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806  (eval $ac_try) 2>&5
28807  ac_status=$?
28808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809  (exit $ac_status); }; } &&
28810	 { ac_try='test -s conftest.$ac_objext'
28811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812  (eval $ac_try) 2>&5
28813  ac_status=$?
28814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815  (exit $ac_status); }; }; then
28816  ac_hi=$ac_mid
28817else
28818  echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821ac_lo=`expr '(' $ac_mid ')' + 1`
28822fi
28823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28824done
28825case $ac_lo in
28826?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
28827'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
28828See \`config.log' for more details." >&5
28829echo "$as_me: error: cannot compute sizeof (unsigned int), 77
28830See \`config.log' for more details." >&2;}
28831   { (exit 1); exit 1; }; } ;;
28832esac
28833else
28834  if test "$cross_compiling" = yes; then
28835  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28836See \`config.log' for more details." >&5
28837echo "$as_me: error: cannot run test program while cross compiling
28838See \`config.log' for more details." >&2;}
28839   { (exit 1); exit 1; }; }
28840else
28841  cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h.  */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h.  */
28847$ac_includes_default
28848long longval () { return (long) (sizeof (unsigned int)); }
28849unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
28850#include <stdio.h>
28851#include <stdlib.h>
28852int
28853main ()
28854{
28855
28856  FILE *f = fopen ("conftest.val", "w");
28857  if (! f)
28858    exit (1);
28859  if (((long) (sizeof (unsigned int))) < 0)
28860    {
28861      long i = longval ();
28862      if (i != ((long) (sizeof (unsigned int))))
28863	exit (1);
28864      fprintf (f, "%ld\n", i);
28865    }
28866  else
28867    {
28868      unsigned long i = ulongval ();
28869      if (i != ((long) (sizeof (unsigned int))))
28870	exit (1);
28871      fprintf (f, "%lu\n", i);
28872    }
28873  exit (ferror (f) || fclose (f) != 0);
28874
28875  ;
28876  return 0;
28877}
28878_ACEOF
28879rm -f conftest$ac_exeext
28880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28881  (eval $ac_link) 2>&5
28882  ac_status=$?
28883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886  (eval $ac_try) 2>&5
28887  ac_status=$?
28888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889  (exit $ac_status); }; }; then
28890  ac_cv_sizeof_unsigned_int=`cat conftest.val`
28891else
28892  echo "$as_me: program exited with status $ac_status" >&5
28893echo "$as_me: failed program was:" >&5
28894sed 's/^/| /' conftest.$ac_ext >&5
28895
28896( exit $ac_status )
28897{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
28898See \`config.log' for more details." >&5
28899echo "$as_me: error: cannot compute sizeof (unsigned int), 77
28900See \`config.log' for more details." >&2;}
28901   { (exit 1); exit 1; }; }
28902fi
28903rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28904fi
28905fi
28906rm -f conftest.val
28907else
28908  ac_cv_sizeof_unsigned_int=0
28909fi
28910fi
28911echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
28912echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
28913cat >>confdefs.h <<_ACEOF
28914#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
28915_ACEOF
28916
28917
28918echo "$as_me:$LINENO: checking for unsigned short" >&5
28919echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
28920if test "${ac_cv_type_unsigned_short+set}" = set; then
28921  echo $ECHO_N "(cached) $ECHO_C" >&6
28922else
28923  cat >conftest.$ac_ext <<_ACEOF
28924/* confdefs.h.  */
28925_ACEOF
28926cat confdefs.h >>conftest.$ac_ext
28927cat >>conftest.$ac_ext <<_ACEOF
28928/* end confdefs.h.  */
28929$ac_includes_default
28930int
28931main ()
28932{
28933if ((unsigned short *) 0)
28934  return 0;
28935if (sizeof (unsigned short))
28936  return 0;
28937  ;
28938  return 0;
28939}
28940_ACEOF
28941rm -f conftest.$ac_objext
28942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28943  (eval $ac_compile) 2>conftest.er1
28944  ac_status=$?
28945  grep -v '^ *+' conftest.er1 >conftest.err
28946  rm -f conftest.er1
28947  cat conftest.err >&5
28948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949  (exit $ac_status); } &&
28950	 { ac_try='test -z "$ac_cxx_werror_flag"
28951			 || test ! -s conftest.err'
28952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953  (eval $ac_try) 2>&5
28954  ac_status=$?
28955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956  (exit $ac_status); }; } &&
28957	 { ac_try='test -s conftest.$ac_objext'
28958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959  (eval $ac_try) 2>&5
28960  ac_status=$?
28961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962  (exit $ac_status); }; }; then
28963  ac_cv_type_unsigned_short=yes
28964else
28965  echo "$as_me: failed program was:" >&5
28966sed 's/^/| /' conftest.$ac_ext >&5
28967
28968ac_cv_type_unsigned_short=no
28969fi
28970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28971fi
28972echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
28973echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
28974
28975echo "$as_me:$LINENO: checking size of unsigned short" >&5
28976echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
28977if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
28978  echo $ECHO_N "(cached) $ECHO_C" >&6
28979else
28980  if test "$ac_cv_type_unsigned_short" = yes; then
28981  # The cast to unsigned long works around a bug in the HP C Compiler
28982  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28983  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28984  # This bug is HP SR number 8606223364.
28985  if test "$cross_compiling" = yes; then
28986  # Depending upon the size, compute the lo and hi bounds.
28987cat >conftest.$ac_ext <<_ACEOF
28988/* confdefs.h.  */
28989_ACEOF
28990cat confdefs.h >>conftest.$ac_ext
28991cat >>conftest.$ac_ext <<_ACEOF
28992/* end confdefs.h.  */
28993$ac_includes_default
28994int
28995main ()
28996{
28997static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
28998test_array [0] = 0
28999
29000  ;
29001  return 0;
29002}
29003_ACEOF
29004rm -f conftest.$ac_objext
29005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29006  (eval $ac_compile) 2>conftest.er1
29007  ac_status=$?
29008  grep -v '^ *+' conftest.er1 >conftest.err
29009  rm -f conftest.er1
29010  cat conftest.err >&5
29011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012  (exit $ac_status); } &&
29013	 { ac_try='test -z "$ac_cxx_werror_flag"
29014			 || test ! -s conftest.err'
29015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016  (eval $ac_try) 2>&5
29017  ac_status=$?
29018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019  (exit $ac_status); }; } &&
29020	 { ac_try='test -s conftest.$ac_objext'
29021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022  (eval $ac_try) 2>&5
29023  ac_status=$?
29024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025  (exit $ac_status); }; }; then
29026  ac_lo=0 ac_mid=0
29027  while :; do
29028    cat >conftest.$ac_ext <<_ACEOF
29029/* confdefs.h.  */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h.  */
29034$ac_includes_default
29035int
29036main ()
29037{
29038static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
29039test_array [0] = 0
29040
29041  ;
29042  return 0;
29043}
29044_ACEOF
29045rm -f conftest.$ac_objext
29046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29047  (eval $ac_compile) 2>conftest.er1
29048  ac_status=$?
29049  grep -v '^ *+' conftest.er1 >conftest.err
29050  rm -f conftest.er1
29051  cat conftest.err >&5
29052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053  (exit $ac_status); } &&
29054	 { ac_try='test -z "$ac_cxx_werror_flag"
29055			 || test ! -s conftest.err'
29056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29057  (eval $ac_try) 2>&5
29058  ac_status=$?
29059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060  (exit $ac_status); }; } &&
29061	 { ac_try='test -s conftest.$ac_objext'
29062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29063  (eval $ac_try) 2>&5
29064  ac_status=$?
29065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066  (exit $ac_status); }; }; then
29067  ac_hi=$ac_mid; break
29068else
29069  echo "$as_me: failed program was:" >&5
29070sed 's/^/| /' conftest.$ac_ext >&5
29071
29072ac_lo=`expr $ac_mid + 1`
29073		    if test $ac_lo -le $ac_mid; then
29074		      ac_lo= ac_hi=
29075		      break
29076		    fi
29077		    ac_mid=`expr 2 '*' $ac_mid + 1`
29078fi
29079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29080  done
29081else
29082  echo "$as_me: failed program was:" >&5
29083sed 's/^/| /' conftest.$ac_ext >&5
29084
29085cat >conftest.$ac_ext <<_ACEOF
29086/* confdefs.h.  */
29087_ACEOF
29088cat confdefs.h >>conftest.$ac_ext
29089cat >>conftest.$ac_ext <<_ACEOF
29090/* end confdefs.h.  */
29091$ac_includes_default
29092int
29093main ()
29094{
29095static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
29096test_array [0] = 0
29097
29098  ;
29099  return 0;
29100}
29101_ACEOF
29102rm -f conftest.$ac_objext
29103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29104  (eval $ac_compile) 2>conftest.er1
29105  ac_status=$?
29106  grep -v '^ *+' conftest.er1 >conftest.err
29107  rm -f conftest.er1
29108  cat conftest.err >&5
29109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110  (exit $ac_status); } &&
29111	 { ac_try='test -z "$ac_cxx_werror_flag"
29112			 || test ! -s conftest.err'
29113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114  (eval $ac_try) 2>&5
29115  ac_status=$?
29116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117  (exit $ac_status); }; } &&
29118	 { ac_try='test -s conftest.$ac_objext'
29119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120  (eval $ac_try) 2>&5
29121  ac_status=$?
29122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123  (exit $ac_status); }; }; then
29124  ac_hi=-1 ac_mid=-1
29125  while :; do
29126    cat >conftest.$ac_ext <<_ACEOF
29127/* confdefs.h.  */
29128_ACEOF
29129cat confdefs.h >>conftest.$ac_ext
29130cat >>conftest.$ac_ext <<_ACEOF
29131/* end confdefs.h.  */
29132$ac_includes_default
29133int
29134main ()
29135{
29136static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
29137test_array [0] = 0
29138
29139  ;
29140  return 0;
29141}
29142_ACEOF
29143rm -f conftest.$ac_objext
29144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145  (eval $ac_compile) 2>conftest.er1
29146  ac_status=$?
29147  grep -v '^ *+' conftest.er1 >conftest.err
29148  rm -f conftest.er1
29149  cat conftest.err >&5
29150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151  (exit $ac_status); } &&
29152	 { ac_try='test -z "$ac_cxx_werror_flag"
29153			 || test ! -s conftest.err'
29154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155  (eval $ac_try) 2>&5
29156  ac_status=$?
29157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158  (exit $ac_status); }; } &&
29159	 { ac_try='test -s conftest.$ac_objext'
29160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161  (eval $ac_try) 2>&5
29162  ac_status=$?
29163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164  (exit $ac_status); }; }; then
29165  ac_lo=$ac_mid; break
29166else
29167  echo "$as_me: failed program was:" >&5
29168sed 's/^/| /' conftest.$ac_ext >&5
29169
29170ac_hi=`expr '(' $ac_mid ')' - 1`
29171		       if test $ac_mid -le $ac_hi; then
29172			 ac_lo= ac_hi=
29173			 break
29174		       fi
29175		       ac_mid=`expr 2 '*' $ac_mid`
29176fi
29177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29178  done
29179else
29180  echo "$as_me: failed program was:" >&5
29181sed 's/^/| /' conftest.$ac_ext >&5
29182
29183ac_lo= ac_hi=
29184fi
29185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29186fi
29187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29188# Binary search between lo and hi bounds.
29189while test "x$ac_lo" != "x$ac_hi"; do
29190  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29191  cat >conftest.$ac_ext <<_ACEOF
29192/* confdefs.h.  */
29193_ACEOF
29194cat confdefs.h >>conftest.$ac_ext
29195cat >>conftest.$ac_ext <<_ACEOF
29196/* end confdefs.h.  */
29197$ac_includes_default
29198int
29199main ()
29200{
29201static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
29202test_array [0] = 0
29203
29204  ;
29205  return 0;
29206}
29207_ACEOF
29208rm -f conftest.$ac_objext
29209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29210  (eval $ac_compile) 2>conftest.er1
29211  ac_status=$?
29212  grep -v '^ *+' conftest.er1 >conftest.err
29213  rm -f conftest.er1
29214  cat conftest.err >&5
29215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216  (exit $ac_status); } &&
29217	 { ac_try='test -z "$ac_cxx_werror_flag"
29218			 || test ! -s conftest.err'
29219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220  (eval $ac_try) 2>&5
29221  ac_status=$?
29222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223  (exit $ac_status); }; } &&
29224	 { ac_try='test -s conftest.$ac_objext'
29225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29226  (eval $ac_try) 2>&5
29227  ac_status=$?
29228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229  (exit $ac_status); }; }; then
29230  ac_hi=$ac_mid
29231else
29232  echo "$as_me: failed program was:" >&5
29233sed 's/^/| /' conftest.$ac_ext >&5
29234
29235ac_lo=`expr '(' $ac_mid ')' + 1`
29236fi
29237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29238done
29239case $ac_lo in
29240?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
29241'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
29242See \`config.log' for more details." >&5
29243echo "$as_me: error: cannot compute sizeof (unsigned short), 77
29244See \`config.log' for more details." >&2;}
29245   { (exit 1); exit 1; }; } ;;
29246esac
29247else
29248  if test "$cross_compiling" = yes; then
29249  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29250See \`config.log' for more details." >&5
29251echo "$as_me: error: cannot run test program while cross compiling
29252See \`config.log' for more details." >&2;}
29253   { (exit 1); exit 1; }; }
29254else
29255  cat >conftest.$ac_ext <<_ACEOF
29256/* confdefs.h.  */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h.  */
29261$ac_includes_default
29262long longval () { return (long) (sizeof (unsigned short)); }
29263unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
29264#include <stdio.h>
29265#include <stdlib.h>
29266int
29267main ()
29268{
29269
29270  FILE *f = fopen ("conftest.val", "w");
29271  if (! f)
29272    exit (1);
29273  if (((long) (sizeof (unsigned short))) < 0)
29274    {
29275      long i = longval ();
29276      if (i != ((long) (sizeof (unsigned short))))
29277	exit (1);
29278      fprintf (f, "%ld\n", i);
29279    }
29280  else
29281    {
29282      unsigned long i = ulongval ();
29283      if (i != ((long) (sizeof (unsigned short))))
29284	exit (1);
29285      fprintf (f, "%lu\n", i);
29286    }
29287  exit (ferror (f) || fclose (f) != 0);
29288
29289  ;
29290  return 0;
29291}
29292_ACEOF
29293rm -f conftest$ac_exeext
29294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29295  (eval $ac_link) 2>&5
29296  ac_status=$?
29297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300  (eval $ac_try) 2>&5
29301  ac_status=$?
29302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303  (exit $ac_status); }; }; then
29304  ac_cv_sizeof_unsigned_short=`cat conftest.val`
29305else
29306  echo "$as_me: program exited with status $ac_status" >&5
29307echo "$as_me: failed program was:" >&5
29308sed 's/^/| /' conftest.$ac_ext >&5
29309
29310( exit $ac_status )
29311{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
29312See \`config.log' for more details." >&5
29313echo "$as_me: error: cannot compute sizeof (unsigned short), 77
29314See \`config.log' for more details." >&2;}
29315   { (exit 1); exit 1; }; }
29316fi
29317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29318fi
29319fi
29320rm -f conftest.val
29321else
29322  ac_cv_sizeof_unsigned_short=0
29323fi
29324fi
29325echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
29326echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
29327cat >>confdefs.h <<_ACEOF
29328#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
29329_ACEOF
29330
29331
29332echo "$as_me:$LINENO: checking for wchar_t" >&5
29333echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
29334if test "${ac_cv_type_wchar_t+set}" = set; then
29335  echo $ECHO_N "(cached) $ECHO_C" >&6
29336else
29337  cat >conftest.$ac_ext <<_ACEOF
29338/* confdefs.h.  */
29339_ACEOF
29340cat confdefs.h >>conftest.$ac_ext
29341cat >>conftest.$ac_ext <<_ACEOF
29342/* end confdefs.h.  */
29343
29344  #include <stdio.h>
29345  #include <wchar.h>
29346
29347int
29348main ()
29349{
29350if ((wchar_t *) 0)
29351  return 0;
29352if (sizeof (wchar_t))
29353  return 0;
29354  ;
29355  return 0;
29356}
29357_ACEOF
29358rm -f conftest.$ac_objext
29359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29360  (eval $ac_compile) 2>conftest.er1
29361  ac_status=$?
29362  grep -v '^ *+' conftest.er1 >conftest.err
29363  rm -f conftest.er1
29364  cat conftest.err >&5
29365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366  (exit $ac_status); } &&
29367	 { ac_try='test -z "$ac_cxx_werror_flag"
29368			 || test ! -s conftest.err'
29369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370  (eval $ac_try) 2>&5
29371  ac_status=$?
29372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373  (exit $ac_status); }; } &&
29374	 { ac_try='test -s conftest.$ac_objext'
29375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376  (eval $ac_try) 2>&5
29377  ac_status=$?
29378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379  (exit $ac_status); }; }; then
29380  ac_cv_type_wchar_t=yes
29381else
29382  echo "$as_me: failed program was:" >&5
29383sed 's/^/| /' conftest.$ac_ext >&5
29384
29385ac_cv_type_wchar_t=no
29386fi
29387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29388fi
29389echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
29390echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
29391
29392echo "$as_me:$LINENO: checking size of wchar_t" >&5
29393echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
29394if test "${ac_cv_sizeof_wchar_t+set}" = set; then
29395  echo $ECHO_N "(cached) $ECHO_C" >&6
29396else
29397  if test "$ac_cv_type_wchar_t" = yes; then
29398  # The cast to unsigned long works around a bug in the HP C Compiler
29399  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29400  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29401  # This bug is HP SR number 8606223364.
29402  if test "$cross_compiling" = yes; then
29403  # Depending upon the size, compute the lo and hi bounds.
29404cat >conftest.$ac_ext <<_ACEOF
29405/* confdefs.h.  */
29406_ACEOF
29407cat confdefs.h >>conftest.$ac_ext
29408cat >>conftest.$ac_ext <<_ACEOF
29409/* end confdefs.h.  */
29410
29411  #include <stdio.h>
29412  #include <wchar.h>
29413
29414int
29415main ()
29416{
29417static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
29418test_array [0] = 0
29419
29420  ;
29421  return 0;
29422}
29423_ACEOF
29424rm -f conftest.$ac_objext
29425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29426  (eval $ac_compile) 2>conftest.er1
29427  ac_status=$?
29428  grep -v '^ *+' conftest.er1 >conftest.err
29429  rm -f conftest.er1
29430  cat conftest.err >&5
29431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432  (exit $ac_status); } &&
29433	 { ac_try='test -z "$ac_cxx_werror_flag"
29434			 || test ! -s conftest.err'
29435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436  (eval $ac_try) 2>&5
29437  ac_status=$?
29438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439  (exit $ac_status); }; } &&
29440	 { ac_try='test -s conftest.$ac_objext'
29441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442  (eval $ac_try) 2>&5
29443  ac_status=$?
29444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445  (exit $ac_status); }; }; then
29446  ac_lo=0 ac_mid=0
29447  while :; do
29448    cat >conftest.$ac_ext <<_ACEOF
29449/* confdefs.h.  */
29450_ACEOF
29451cat confdefs.h >>conftest.$ac_ext
29452cat >>conftest.$ac_ext <<_ACEOF
29453/* end confdefs.h.  */
29454
29455  #include <stdio.h>
29456  #include <wchar.h>
29457
29458int
29459main ()
29460{
29461static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
29462test_array [0] = 0
29463
29464  ;
29465  return 0;
29466}
29467_ACEOF
29468rm -f conftest.$ac_objext
29469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29470  (eval $ac_compile) 2>conftest.er1
29471  ac_status=$?
29472  grep -v '^ *+' conftest.er1 >conftest.err
29473  rm -f conftest.er1
29474  cat conftest.err >&5
29475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476  (exit $ac_status); } &&
29477	 { ac_try='test -z "$ac_cxx_werror_flag"
29478			 || test ! -s conftest.err'
29479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29480  (eval $ac_try) 2>&5
29481  ac_status=$?
29482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483  (exit $ac_status); }; } &&
29484	 { ac_try='test -s conftest.$ac_objext'
29485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486  (eval $ac_try) 2>&5
29487  ac_status=$?
29488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489  (exit $ac_status); }; }; then
29490  ac_hi=$ac_mid; break
29491else
29492  echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495ac_lo=`expr $ac_mid + 1`
29496		    if test $ac_lo -le $ac_mid; then
29497		      ac_lo= ac_hi=
29498		      break
29499		    fi
29500		    ac_mid=`expr 2 '*' $ac_mid + 1`
29501fi
29502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29503  done
29504else
29505  echo "$as_me: failed program was:" >&5
29506sed 's/^/| /' conftest.$ac_ext >&5
29507
29508cat >conftest.$ac_ext <<_ACEOF
29509/* confdefs.h.  */
29510_ACEOF
29511cat confdefs.h >>conftest.$ac_ext
29512cat >>conftest.$ac_ext <<_ACEOF
29513/* end confdefs.h.  */
29514
29515  #include <stdio.h>
29516  #include <wchar.h>
29517
29518int
29519main ()
29520{
29521static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
29522test_array [0] = 0
29523
29524  ;
29525  return 0;
29526}
29527_ACEOF
29528rm -f conftest.$ac_objext
29529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29530  (eval $ac_compile) 2>conftest.er1
29531  ac_status=$?
29532  grep -v '^ *+' conftest.er1 >conftest.err
29533  rm -f conftest.er1
29534  cat conftest.err >&5
29535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536  (exit $ac_status); } &&
29537	 { ac_try='test -z "$ac_cxx_werror_flag"
29538			 || test ! -s conftest.err'
29539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29540  (eval $ac_try) 2>&5
29541  ac_status=$?
29542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29543  (exit $ac_status); }; } &&
29544	 { ac_try='test -s conftest.$ac_objext'
29545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546  (eval $ac_try) 2>&5
29547  ac_status=$?
29548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549  (exit $ac_status); }; }; then
29550  ac_hi=-1 ac_mid=-1
29551  while :; do
29552    cat >conftest.$ac_ext <<_ACEOF
29553/* confdefs.h.  */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h.  */
29558
29559  #include <stdio.h>
29560  #include <wchar.h>
29561
29562int
29563main ()
29564{
29565static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
29566test_array [0] = 0
29567
29568  ;
29569  return 0;
29570}
29571_ACEOF
29572rm -f conftest.$ac_objext
29573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29574  (eval $ac_compile) 2>conftest.er1
29575  ac_status=$?
29576  grep -v '^ *+' conftest.er1 >conftest.err
29577  rm -f conftest.er1
29578  cat conftest.err >&5
29579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580  (exit $ac_status); } &&
29581	 { ac_try='test -z "$ac_cxx_werror_flag"
29582			 || test ! -s conftest.err'
29583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584  (eval $ac_try) 2>&5
29585  ac_status=$?
29586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587  (exit $ac_status); }; } &&
29588	 { ac_try='test -s conftest.$ac_objext'
29589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29590  (eval $ac_try) 2>&5
29591  ac_status=$?
29592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593  (exit $ac_status); }; }; then
29594  ac_lo=$ac_mid; break
29595else
29596  echo "$as_me: failed program was:" >&5
29597sed 's/^/| /' conftest.$ac_ext >&5
29598
29599ac_hi=`expr '(' $ac_mid ')' - 1`
29600		       if test $ac_mid -le $ac_hi; then
29601			 ac_lo= ac_hi=
29602			 break
29603		       fi
29604		       ac_mid=`expr 2 '*' $ac_mid`
29605fi
29606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29607  done
29608else
29609  echo "$as_me: failed program was:" >&5
29610sed 's/^/| /' conftest.$ac_ext >&5
29611
29612ac_lo= ac_hi=
29613fi
29614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29615fi
29616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29617# Binary search between lo and hi bounds.
29618while test "x$ac_lo" != "x$ac_hi"; do
29619  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29620  cat >conftest.$ac_ext <<_ACEOF
29621/* confdefs.h.  */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h.  */
29626
29627  #include <stdio.h>
29628  #include <wchar.h>
29629
29630int
29631main ()
29632{
29633static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
29634test_array [0] = 0
29635
29636  ;
29637  return 0;
29638}
29639_ACEOF
29640rm -f conftest.$ac_objext
29641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29642  (eval $ac_compile) 2>conftest.er1
29643  ac_status=$?
29644  grep -v '^ *+' conftest.er1 >conftest.err
29645  rm -f conftest.er1
29646  cat conftest.err >&5
29647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648  (exit $ac_status); } &&
29649	 { ac_try='test -z "$ac_cxx_werror_flag"
29650			 || test ! -s conftest.err'
29651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29652  (eval $ac_try) 2>&5
29653  ac_status=$?
29654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655  (exit $ac_status); }; } &&
29656	 { ac_try='test -s conftest.$ac_objext'
29657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29658  (eval $ac_try) 2>&5
29659  ac_status=$?
29660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661  (exit $ac_status); }; }; then
29662  ac_hi=$ac_mid
29663else
29664  echo "$as_me: failed program was:" >&5
29665sed 's/^/| /' conftest.$ac_ext >&5
29666
29667ac_lo=`expr '(' $ac_mid ')' + 1`
29668fi
29669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29670done
29671case $ac_lo in
29672?*) ac_cv_sizeof_wchar_t=$ac_lo;;
29673'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
29674See \`config.log' for more details." >&5
29675echo "$as_me: error: cannot compute sizeof (wchar_t), 77
29676See \`config.log' for more details." >&2;}
29677   { (exit 1); exit 1; }; } ;;
29678esac
29679else
29680  if test "$cross_compiling" = yes; then
29681  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29682See \`config.log' for more details." >&5
29683echo "$as_me: error: cannot run test program while cross compiling
29684See \`config.log' for more details." >&2;}
29685   { (exit 1); exit 1; }; }
29686else
29687  cat >conftest.$ac_ext <<_ACEOF
29688/* confdefs.h.  */
29689_ACEOF
29690cat confdefs.h >>conftest.$ac_ext
29691cat >>conftest.$ac_ext <<_ACEOF
29692/* end confdefs.h.  */
29693
29694  #include <stdio.h>
29695  #include <wchar.h>
29696
29697long longval () { return (long) (sizeof (wchar_t)); }
29698unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
29699#include <stdio.h>
29700#include <stdlib.h>
29701int
29702main ()
29703{
29704
29705  FILE *f = fopen ("conftest.val", "w");
29706  if (! f)
29707    exit (1);
29708  if (((long) (sizeof (wchar_t))) < 0)
29709    {
29710      long i = longval ();
29711      if (i != ((long) (sizeof (wchar_t))))
29712	exit (1);
29713      fprintf (f, "%ld\n", i);
29714    }
29715  else
29716    {
29717      unsigned long i = ulongval ();
29718      if (i != ((long) (sizeof (wchar_t))))
29719	exit (1);
29720      fprintf (f, "%lu\n", i);
29721    }
29722  exit (ferror (f) || fclose (f) != 0);
29723
29724  ;
29725  return 0;
29726}
29727_ACEOF
29728rm -f conftest$ac_exeext
29729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29730  (eval $ac_link) 2>&5
29731  ac_status=$?
29732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735  (eval $ac_try) 2>&5
29736  ac_status=$?
29737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738  (exit $ac_status); }; }; then
29739  ac_cv_sizeof_wchar_t=`cat conftest.val`
29740else
29741  echo "$as_me: program exited with status $ac_status" >&5
29742echo "$as_me: failed program was:" >&5
29743sed 's/^/| /' conftest.$ac_ext >&5
29744
29745( exit $ac_status )
29746{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
29747See \`config.log' for more details." >&5
29748echo "$as_me: error: cannot compute sizeof (wchar_t), 77
29749See \`config.log' for more details." >&2;}
29750   { (exit 1); exit 1; }; }
29751fi
29752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29753fi
29754fi
29755rm -f conftest.val
29756else
29757  ac_cv_sizeof_wchar_t=0
29758fi
29759fi
29760echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
29761echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
29762cat >>confdefs.h <<_ACEOF
29763#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
29764_ACEOF
29765
29766
29767echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
29768echo $ECHO_N "checking whether the compiler recognizes bool as a built-in type... $ECHO_C" >&6
29769if test "${ac_cv_cxx_bool+set}" = set; then
29770  echo $ECHO_N "(cached) $ECHO_C" >&6
29771else
29772
29773
29774 ac_ext=cc
29775ac_cpp='$CXXCPP $CPPFLAGS'
29776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29779
29780 cat >conftest.$ac_ext <<_ACEOF
29781/* confdefs.h.  */
29782_ACEOF
29783cat confdefs.h >>conftest.$ac_ext
29784cat >>conftest.$ac_ext <<_ACEOF
29785/* end confdefs.h.  */
29786
29787int f(int  x){return 1;}
29788int f(char x){return 1;}
29789int f(bool x){return 1;}
29790
29791int
29792main ()
29793{
29794bool b = true; return f(b);
29795  ;
29796  return 0;
29797}
29798_ACEOF
29799rm -f conftest.$ac_objext
29800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29801  (eval $ac_compile) 2>conftest.er1
29802  ac_status=$?
29803  grep -v '^ *+' conftest.er1 >conftest.err
29804  rm -f conftest.er1
29805  cat conftest.err >&5
29806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807  (exit $ac_status); } &&
29808	 { ac_try='test -z "$ac_cxx_werror_flag"
29809			 || test ! -s conftest.err'
29810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29811  (eval $ac_try) 2>&5
29812  ac_status=$?
29813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814  (exit $ac_status); }; } &&
29815	 { ac_try='test -s conftest.$ac_objext'
29816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817  (eval $ac_try) 2>&5
29818  ac_status=$?
29819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820  (exit $ac_status); }; }; then
29821  ac_cv_cxx_bool=yes
29822else
29823  echo "$as_me: failed program was:" >&5
29824sed 's/^/| /' conftest.$ac_ext >&5
29825
29826ac_cv_cxx_bool=no
29827fi
29828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29829 ac_ext=cc
29830ac_cpp='$CXXCPP $CPPFLAGS'
29831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29834
29835
29836fi
29837echo "$as_me:$LINENO: result: $ac_cv_cxx_bool" >&5
29838echo "${ECHO_T}$ac_cv_cxx_bool" >&6
29839if test "$ac_cv_cxx_bool" = yes; then
29840
29841cat >>confdefs.h <<\_ACEOF
29842#define HAVE_BOOL
29843_ACEOF
29844
29845fi
29846
29847if test "$ac_cv_cxx_bool" = yes; then
29848  echo "$as_me:$LINENO: checking for bool" >&5
29849echo $ECHO_N "checking for bool... $ECHO_C" >&6
29850if test "${ac_cv_type_bool+set}" = set; then
29851  echo $ECHO_N "(cached) $ECHO_C" >&6
29852else
29853  cat >conftest.$ac_ext <<_ACEOF
29854/* confdefs.h.  */
29855_ACEOF
29856cat confdefs.h >>conftest.$ac_ext
29857cat >>conftest.$ac_ext <<_ACEOF
29858/* end confdefs.h.  */
29859$ac_includes_default
29860int
29861main ()
29862{
29863if ((bool *) 0)
29864  return 0;
29865if (sizeof (bool))
29866  return 0;
29867  ;
29868  return 0;
29869}
29870_ACEOF
29871rm -f conftest.$ac_objext
29872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29873  (eval $ac_compile) 2>conftest.er1
29874  ac_status=$?
29875  grep -v '^ *+' conftest.er1 >conftest.err
29876  rm -f conftest.er1
29877  cat conftest.err >&5
29878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879  (exit $ac_status); } &&
29880	 { ac_try='test -z "$ac_cxx_werror_flag"
29881			 || test ! -s conftest.err'
29882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883  (eval $ac_try) 2>&5
29884  ac_status=$?
29885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886  (exit $ac_status); }; } &&
29887	 { ac_try='test -s conftest.$ac_objext'
29888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889  (eval $ac_try) 2>&5
29890  ac_status=$?
29891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892  (exit $ac_status); }; }; then
29893  ac_cv_type_bool=yes
29894else
29895  echo "$as_me: failed program was:" >&5
29896sed 's/^/| /' conftest.$ac_ext >&5
29897
29898ac_cv_type_bool=no
29899fi
29900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29901fi
29902echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
29903echo "${ECHO_T}$ac_cv_type_bool" >&6
29904
29905echo "$as_me:$LINENO: checking size of bool" >&5
29906echo $ECHO_N "checking size of bool... $ECHO_C" >&6
29907if test "${ac_cv_sizeof_bool+set}" = set; then
29908  echo $ECHO_N "(cached) $ECHO_C" >&6
29909else
29910  if test "$ac_cv_type_bool" = yes; then
29911  # The cast to unsigned long works around a bug in the HP C Compiler
29912  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29913  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29914  # This bug is HP SR number 8606223364.
29915  if test "$cross_compiling" = yes; then
29916  # Depending upon the size, compute the lo and hi bounds.
29917cat >conftest.$ac_ext <<_ACEOF
29918/* confdefs.h.  */
29919_ACEOF
29920cat confdefs.h >>conftest.$ac_ext
29921cat >>conftest.$ac_ext <<_ACEOF
29922/* end confdefs.h.  */
29923$ac_includes_default
29924int
29925main ()
29926{
29927static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)];
29928test_array [0] = 0
29929
29930  ;
29931  return 0;
29932}
29933_ACEOF
29934rm -f conftest.$ac_objext
29935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29936  (eval $ac_compile) 2>conftest.er1
29937  ac_status=$?
29938  grep -v '^ *+' conftest.er1 >conftest.err
29939  rm -f conftest.er1
29940  cat conftest.err >&5
29941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942  (exit $ac_status); } &&
29943	 { ac_try='test -z "$ac_cxx_werror_flag"
29944			 || test ! -s conftest.err'
29945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29946  (eval $ac_try) 2>&5
29947  ac_status=$?
29948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949  (exit $ac_status); }; } &&
29950	 { ac_try='test -s conftest.$ac_objext'
29951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29952  (eval $ac_try) 2>&5
29953  ac_status=$?
29954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955  (exit $ac_status); }; }; then
29956  ac_lo=0 ac_mid=0
29957  while :; do
29958    cat >conftest.$ac_ext <<_ACEOF
29959/* confdefs.h.  */
29960_ACEOF
29961cat confdefs.h >>conftest.$ac_ext
29962cat >>conftest.$ac_ext <<_ACEOF
29963/* end confdefs.h.  */
29964$ac_includes_default
29965int
29966main ()
29967{
29968static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
29969test_array [0] = 0
29970
29971  ;
29972  return 0;
29973}
29974_ACEOF
29975rm -f conftest.$ac_objext
29976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29977  (eval $ac_compile) 2>conftest.er1
29978  ac_status=$?
29979  grep -v '^ *+' conftest.er1 >conftest.err
29980  rm -f conftest.er1
29981  cat conftest.err >&5
29982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983  (exit $ac_status); } &&
29984	 { ac_try='test -z "$ac_cxx_werror_flag"
29985			 || test ! -s conftest.err'
29986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29987  (eval $ac_try) 2>&5
29988  ac_status=$?
29989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990  (exit $ac_status); }; } &&
29991	 { ac_try='test -s conftest.$ac_objext'
29992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993  (eval $ac_try) 2>&5
29994  ac_status=$?
29995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996  (exit $ac_status); }; }; then
29997  ac_hi=$ac_mid; break
29998else
29999  echo "$as_me: failed program was:" >&5
30000sed 's/^/| /' conftest.$ac_ext >&5
30001
30002ac_lo=`expr $ac_mid + 1`
30003		    if test $ac_lo -le $ac_mid; then
30004		      ac_lo= ac_hi=
30005		      break
30006		    fi
30007		    ac_mid=`expr 2 '*' $ac_mid + 1`
30008fi
30009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30010  done
30011else
30012  echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015cat >conftest.$ac_ext <<_ACEOF
30016/* confdefs.h.  */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h.  */
30021$ac_includes_default
30022int
30023main ()
30024{
30025static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)];
30026test_array [0] = 0
30027
30028  ;
30029  return 0;
30030}
30031_ACEOF
30032rm -f conftest.$ac_objext
30033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30034  (eval $ac_compile) 2>conftest.er1
30035  ac_status=$?
30036  grep -v '^ *+' conftest.er1 >conftest.err
30037  rm -f conftest.er1
30038  cat conftest.err >&5
30039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040  (exit $ac_status); } &&
30041	 { ac_try='test -z "$ac_cxx_werror_flag"
30042			 || test ! -s conftest.err'
30043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044  (eval $ac_try) 2>&5
30045  ac_status=$?
30046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047  (exit $ac_status); }; } &&
30048	 { ac_try='test -s conftest.$ac_objext'
30049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30050  (eval $ac_try) 2>&5
30051  ac_status=$?
30052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053  (exit $ac_status); }; }; then
30054  ac_hi=-1 ac_mid=-1
30055  while :; do
30056    cat >conftest.$ac_ext <<_ACEOF
30057/* confdefs.h.  */
30058_ACEOF
30059cat confdefs.h >>conftest.$ac_ext
30060cat >>conftest.$ac_ext <<_ACEOF
30061/* end confdefs.h.  */
30062$ac_includes_default
30063int
30064main ()
30065{
30066static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)];
30067test_array [0] = 0
30068
30069  ;
30070  return 0;
30071}
30072_ACEOF
30073rm -f conftest.$ac_objext
30074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30075  (eval $ac_compile) 2>conftest.er1
30076  ac_status=$?
30077  grep -v '^ *+' conftest.er1 >conftest.err
30078  rm -f conftest.er1
30079  cat conftest.err >&5
30080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30081  (exit $ac_status); } &&
30082	 { ac_try='test -z "$ac_cxx_werror_flag"
30083			 || test ! -s conftest.err'
30084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30085  (eval $ac_try) 2>&5
30086  ac_status=$?
30087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088  (exit $ac_status); }; } &&
30089	 { ac_try='test -s conftest.$ac_objext'
30090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30091  (eval $ac_try) 2>&5
30092  ac_status=$?
30093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30094  (exit $ac_status); }; }; then
30095  ac_lo=$ac_mid; break
30096else
30097  echo "$as_me: failed program was:" >&5
30098sed 's/^/| /' conftest.$ac_ext >&5
30099
30100ac_hi=`expr '(' $ac_mid ')' - 1`
30101		       if test $ac_mid -le $ac_hi; then
30102			 ac_lo= ac_hi=
30103			 break
30104		       fi
30105		       ac_mid=`expr 2 '*' $ac_mid`
30106fi
30107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30108  done
30109else
30110  echo "$as_me: failed program was:" >&5
30111sed 's/^/| /' conftest.$ac_ext >&5
30112
30113ac_lo= ac_hi=
30114fi
30115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30116fi
30117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30118# Binary search between lo and hi bounds.
30119while test "x$ac_lo" != "x$ac_hi"; do
30120  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30121  cat >conftest.$ac_ext <<_ACEOF
30122/* confdefs.h.  */
30123_ACEOF
30124cat confdefs.h >>conftest.$ac_ext
30125cat >>conftest.$ac_ext <<_ACEOF
30126/* end confdefs.h.  */
30127$ac_includes_default
30128int
30129main ()
30130{
30131static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
30132test_array [0] = 0
30133
30134  ;
30135  return 0;
30136}
30137_ACEOF
30138rm -f conftest.$ac_objext
30139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30140  (eval $ac_compile) 2>conftest.er1
30141  ac_status=$?
30142  grep -v '^ *+' conftest.er1 >conftest.err
30143  rm -f conftest.er1
30144  cat conftest.err >&5
30145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146  (exit $ac_status); } &&
30147	 { ac_try='test -z "$ac_cxx_werror_flag"
30148			 || test ! -s conftest.err'
30149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150  (eval $ac_try) 2>&5
30151  ac_status=$?
30152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153  (exit $ac_status); }; } &&
30154	 { ac_try='test -s conftest.$ac_objext'
30155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156  (eval $ac_try) 2>&5
30157  ac_status=$?
30158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159  (exit $ac_status); }; }; then
30160  ac_hi=$ac_mid
30161else
30162  echo "$as_me: failed program was:" >&5
30163sed 's/^/| /' conftest.$ac_ext >&5
30164
30165ac_lo=`expr '(' $ac_mid ')' + 1`
30166fi
30167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30168done
30169case $ac_lo in
30170?*) ac_cv_sizeof_bool=$ac_lo;;
30171'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
30172See \`config.log' for more details." >&5
30173echo "$as_me: error: cannot compute sizeof (bool), 77
30174See \`config.log' for more details." >&2;}
30175   { (exit 1); exit 1; }; } ;;
30176esac
30177else
30178  if test "$cross_compiling" = yes; then
30179  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30180See \`config.log' for more details." >&5
30181echo "$as_me: error: cannot run test program while cross compiling
30182See \`config.log' for more details." >&2;}
30183   { (exit 1); exit 1; }; }
30184else
30185  cat >conftest.$ac_ext <<_ACEOF
30186/* confdefs.h.  */
30187_ACEOF
30188cat confdefs.h >>conftest.$ac_ext
30189cat >>conftest.$ac_ext <<_ACEOF
30190/* end confdefs.h.  */
30191$ac_includes_default
30192long longval () { return (long) (sizeof (bool)); }
30193unsigned long ulongval () { return (long) (sizeof (bool)); }
30194#include <stdio.h>
30195#include <stdlib.h>
30196int
30197main ()
30198{
30199
30200  FILE *f = fopen ("conftest.val", "w");
30201  if (! f)
30202    exit (1);
30203  if (((long) (sizeof (bool))) < 0)
30204    {
30205      long i = longval ();
30206      if (i != ((long) (sizeof (bool))))
30207	exit (1);
30208      fprintf (f, "%ld\n", i);
30209    }
30210  else
30211    {
30212      unsigned long i = ulongval ();
30213      if (i != ((long) (sizeof (bool))))
30214	exit (1);
30215      fprintf (f, "%lu\n", i);
30216    }
30217  exit (ferror (f) || fclose (f) != 0);
30218
30219  ;
30220  return 0;
30221}
30222_ACEOF
30223rm -f conftest$ac_exeext
30224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30225  (eval $ac_link) 2>&5
30226  ac_status=$?
30227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30230  (eval $ac_try) 2>&5
30231  ac_status=$?
30232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233  (exit $ac_status); }; }; then
30234  ac_cv_sizeof_bool=`cat conftest.val`
30235else
30236  echo "$as_me: program exited with status $ac_status" >&5
30237echo "$as_me: failed program was:" >&5
30238sed 's/^/| /' conftest.$ac_ext >&5
30239
30240( exit $ac_status )
30241{ { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
30242See \`config.log' for more details." >&5
30243echo "$as_me: error: cannot compute sizeof (bool), 77
30244See \`config.log' for more details." >&2;}
30245   { (exit 1); exit 1; }; }
30246fi
30247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30248fi
30249fi
30250rm -f conftest.val
30251else
30252  ac_cv_sizeof_bool=0
30253fi
30254fi
30255echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
30256echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
30257cat >>confdefs.h <<_ACEOF
30258#define SIZEOF_BOOL $ac_cv_sizeof_bool
30259_ACEOF
30260
30261
30262fi
30263echo "$as_me:$LINENO: checking whether the compiler supports the mutable keyword" >&5
30264echo $ECHO_N "checking whether the compiler supports the mutable keyword... $ECHO_C" >&6
30265if test "${ac_cv_cxx_mutable+set}" = set; then
30266  echo $ECHO_N "(cached) $ECHO_C" >&6
30267else
30268
30269
30270 ac_ext=cc
30271ac_cpp='$CXXCPP $CPPFLAGS'
30272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30275
30276 cat >conftest.$ac_ext <<_ACEOF
30277/* confdefs.h.  */
30278_ACEOF
30279cat confdefs.h >>conftest.$ac_ext
30280cat >>conftest.$ac_ext <<_ACEOF
30281/* end confdefs.h.  */
30282
30283class A { mutable int i;
30284          public:
30285          int f (int n) const { i = n; return i; }
30286        };
30287
30288int
30289main ()
30290{
30291A a; return a.f (1);
30292  ;
30293  return 0;
30294}
30295_ACEOF
30296rm -f conftest.$ac_objext
30297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30298  (eval $ac_compile) 2>conftest.er1
30299  ac_status=$?
30300  grep -v '^ *+' conftest.er1 >conftest.err
30301  rm -f conftest.er1
30302  cat conftest.err >&5
30303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304  (exit $ac_status); } &&
30305	 { ac_try='test -z "$ac_cxx_werror_flag"
30306			 || test ! -s conftest.err'
30307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308  (eval $ac_try) 2>&5
30309  ac_status=$?
30310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311  (exit $ac_status); }; } &&
30312	 { ac_try='test -s conftest.$ac_objext'
30313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30314  (eval $ac_try) 2>&5
30315  ac_status=$?
30316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317  (exit $ac_status); }; }; then
30318  ac_cv_cxx_mutable=yes
30319else
30320  echo "$as_me: failed program was:" >&5
30321sed 's/^/| /' conftest.$ac_ext >&5
30322
30323ac_cv_cxx_mutable=no
30324fi
30325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30326 ac_ext=cc
30327ac_cpp='$CXXCPP $CPPFLAGS'
30328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30331
30332
30333fi
30334echo "$as_me:$LINENO: result: $ac_cv_cxx_mutable" >&5
30335echo "${ECHO_T}$ac_cv_cxx_mutable" >&6
30336if test "$ac_cv_cxx_mutable" = yes; then
30337
30338cat >>confdefs.h <<\_ACEOF
30339#define HAVE_MUTABLE
30340_ACEOF
30341
30342fi
30343
30344echo "$as_me:$LINENO: checking whether the compiler recognizes typename" >&5
30345echo $ECHO_N "checking whether the compiler recognizes typename... $ECHO_C" >&6
30346if test "${ac_cv_cxx_typename+set}" = set; then
30347  echo $ECHO_N "(cached) $ECHO_C" >&6
30348else
30349
30350
30351 ac_ext=cc
30352ac_cpp='$CXXCPP $CPPFLAGS'
30353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30356
30357 cat >conftest.$ac_ext <<_ACEOF
30358/* confdefs.h.  */
30359_ACEOF
30360cat confdefs.h >>conftest.$ac_ext
30361cat >>conftest.$ac_ext <<_ACEOF
30362/* end confdefs.h.  */
30363template<typename T>class X {public:X(){}};
30364int
30365main ()
30366{
30367X<float> z; return 0;
30368  ;
30369  return 0;
30370}
30371_ACEOF
30372rm -f conftest.$ac_objext
30373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30374  (eval $ac_compile) 2>conftest.er1
30375  ac_status=$?
30376  grep -v '^ *+' conftest.er1 >conftest.err
30377  rm -f conftest.er1
30378  cat conftest.err >&5
30379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380  (exit $ac_status); } &&
30381	 { ac_try='test -z "$ac_cxx_werror_flag"
30382			 || test ! -s conftest.err'
30383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384  (eval $ac_try) 2>&5
30385  ac_status=$?
30386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387  (exit $ac_status); }; } &&
30388	 { ac_try='test -s conftest.$ac_objext'
30389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30390  (eval $ac_try) 2>&5
30391  ac_status=$?
30392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393  (exit $ac_status); }; }; then
30394  ac_cv_cxx_typename=yes
30395else
30396  echo "$as_me: failed program was:" >&5
30397sed 's/^/| /' conftest.$ac_ext >&5
30398
30399ac_cv_cxx_typename=no
30400fi
30401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30402 ac_ext=cc
30403ac_cpp='$CXXCPP $CPPFLAGS'
30404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30407
30408
30409fi
30410echo "$as_me:$LINENO: result: $ac_cv_cxx_typename" >&5
30411echo "${ECHO_T}$ac_cv_cxx_typename" >&6
30412if test "$ac_cv_cxx_typename" = yes; then
30413
30414cat >>confdefs.h <<\_ACEOF
30415#define HAVE_TYPENAME
30416_ACEOF
30417
30418fi
30419
30420echo "$as_me:$LINENO: checking whether the compiler accepts the new for scoping rules" >&5
30421echo $ECHO_N "checking whether the compiler accepts the new for scoping rules... $ECHO_C" >&6
30422if test "${ac_cv_cxx_new_for_scoping+set}" = set; then
30423  echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425
30426
30427 ac_ext=cc
30428ac_cpp='$CXXCPP $CPPFLAGS'
30429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30432
30433 cat >conftest.$ac_ext <<_ACEOF
30434/* confdefs.h.  */
30435_ACEOF
30436cat confdefs.h >>conftest.$ac_ext
30437cat >>conftest.$ac_ext <<_ACEOF
30438/* end confdefs.h.  */
30439
30440int
30441main ()
30442{
30443
30444  int z = 0;
30445  for (int i = 0; i < 10; ++i)
30446    z = z + i;
30447  for (int i = 0; i < 10; ++i)
30448    z = z - i;
30449  return z;
30450  ;
30451  return 0;
30452}
30453_ACEOF
30454rm -f conftest.$ac_objext
30455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30456  (eval $ac_compile) 2>conftest.er1
30457  ac_status=$?
30458  grep -v '^ *+' conftest.er1 >conftest.err
30459  rm -f conftest.er1
30460  cat conftest.err >&5
30461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462  (exit $ac_status); } &&
30463	 { ac_try='test -z "$ac_cxx_werror_flag"
30464			 || test ! -s conftest.err'
30465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30466  (eval $ac_try) 2>&5
30467  ac_status=$?
30468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469  (exit $ac_status); }; } &&
30470	 { ac_try='test -s conftest.$ac_objext'
30471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472  (eval $ac_try) 2>&5
30473  ac_status=$?
30474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475  (exit $ac_status); }; }; then
30476  ac_cv_cxx_new_for_scoping=yes
30477else
30478  echo "$as_me: failed program was:" >&5
30479sed 's/^/| /' conftest.$ac_ext >&5
30480
30481ac_cv_cxx_new_for_scoping=no
30482fi
30483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30484 ac_ext=cc
30485ac_cpp='$CXXCPP $CPPFLAGS'
30486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30489
30490
30491fi
30492echo "$as_me:$LINENO: result: $ac_cv_cxx_new_for_scoping" >&5
30493echo "${ECHO_T}$ac_cv_cxx_new_for_scoping" >&6
30494if test "$ac_cv_cxx_new_for_scoping" = yes; then
30495
30496cat >>confdefs.h <<\_ACEOF
30497#define HAVE_NEW_FOR_SCOPING
30498_ACEOF
30499
30500fi
30501
30502echo "$as_me:$LINENO: checking whether the compiler supports placement operator delete" >&5
30503echo $ECHO_N "checking whether the compiler supports placement operator delete... $ECHO_C" >&6
30504if test "${ac_cv_cxx_placement_operator_delete+set}" = set; then
30505  echo $ECHO_N "(cached) $ECHO_C" >&6
30506else
30507
30508
30509 ac_ext=cc
30510ac_cpp='$CXXCPP $CPPFLAGS'
30511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30514
30515 cat >conftest.$ac_ext <<_ACEOF
30516/* confdefs.h.  */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h.  */
30521#include <stddef.h>
30522int
30523main ()
30524{
30525class Thing {
30526   public:
30527    Thing() { };
30528    void *operator new(size_t,bool) { };
30529    void operator delete(size_t,void*) { };
30530   };
30531  ;
30532  return 0;
30533}
30534_ACEOF
30535rm -f conftest.$ac_objext
30536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30537  (eval $ac_compile) 2>conftest.er1
30538  ac_status=$?
30539  grep -v '^ *+' conftest.er1 >conftest.err
30540  rm -f conftest.er1
30541  cat conftest.err >&5
30542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543  (exit $ac_status); } &&
30544	 { ac_try='test -z "$ac_cxx_werror_flag"
30545			 || test ! -s conftest.err'
30546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30547  (eval $ac_try) 2>&5
30548  ac_status=$?
30549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550  (exit $ac_status); }; } &&
30551	 { ac_try='test -s conftest.$ac_objext'
30552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30553  (eval $ac_try) 2>&5
30554  ac_status=$?
30555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30556  (exit $ac_status); }; }; then
30557  ac_cv_cxx_placement_operator_delete=yes
30558else
30559  echo "$as_me: failed program was:" >&5
30560sed 's/^/| /' conftest.$ac_ext >&5
30561
30562ac_cv_cxx_placement_operator_delete=no
30563fi
30564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30565 ac_ext=cc
30566ac_cpp='$CXXCPP $CPPFLAGS'
30567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30570
30571
30572fi
30573echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_delete" >&5
30574echo "${ECHO_T}$ac_cv_cxx_placement_operator_delete" >&6
30575if test "$ac_cv_cxx_placement_operator_delete" = yes; then
30576
30577cat >>confdefs.h <<\_ACEOF
30578#define HAVE_PLACEMENT_OPERATOR_DELETE
30579_ACEOF
30580
30581fi
30582
30583echo "$as_me:$LINENO: checking whether the compiler supports dynamic_cast<>" >&5
30584echo $ECHO_N "checking whether the compiler supports dynamic_cast<>... $ECHO_C" >&6
30585if test "${ac_cv_cxx_dynamic_cast+set}" = set; then
30586  echo $ECHO_N "(cached) $ECHO_C" >&6
30587else
30588
30589
30590 ac_ext=cc
30591ac_cpp='$CXXCPP $CPPFLAGS'
30592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30595
30596 cat >conftest.$ac_ext <<_ACEOF
30597/* confdefs.h.  */
30598_ACEOF
30599cat confdefs.h >>conftest.$ac_ext
30600cat >>conftest.$ac_ext <<_ACEOF
30601/* end confdefs.h.  */
30602#include <typeinfo>
30603class Base { public : Base () {} virtual void f () = 0;};
30604class Derived : public Base { public : Derived () {} virtual void f () {} };
30605int
30606main ()
30607{
30608
30609Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1;
30610  ;
30611  return 0;
30612}
30613_ACEOF
30614rm -f conftest.$ac_objext
30615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30616  (eval $ac_compile) 2>conftest.er1
30617  ac_status=$?
30618  grep -v '^ *+' conftest.er1 >conftest.err
30619  rm -f conftest.er1
30620  cat conftest.err >&5
30621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622  (exit $ac_status); } &&
30623	 { ac_try='test -z "$ac_cxx_werror_flag"
30624			 || test ! -s conftest.err'
30625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626  (eval $ac_try) 2>&5
30627  ac_status=$?
30628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629  (exit $ac_status); }; } &&
30630	 { ac_try='test -s conftest.$ac_objext'
30631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632  (eval $ac_try) 2>&5
30633  ac_status=$?
30634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635  (exit $ac_status); }; }; then
30636  ac_cv_cxx_dynamic_cast=yes
30637else
30638  echo "$as_me: failed program was:" >&5
30639sed 's/^/| /' conftest.$ac_ext >&5
30640
30641ac_cv_cxx_dynamic_cast=no
30642fi
30643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30644 ac_ext=cc
30645ac_cpp='$CXXCPP $CPPFLAGS'
30646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30649
30650
30651fi
30652echo "$as_me:$LINENO: result: $ac_cv_cxx_dynamic_cast" >&5
30653echo "${ECHO_T}$ac_cv_cxx_dynamic_cast" >&6
30654if test "$ac_cv_cxx_dynamic_cast" = yes; then
30655
30656cat >>confdefs.h <<\_ACEOF
30657#define HAVE_DYNAMIC_CAST
30658_ACEOF
30659
30660fi
30661
30662echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30663echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
30664if test "${ac_cv_cxx_namespaces+set}" = set; then
30665  echo $ECHO_N "(cached) $ECHO_C" >&6
30666else
30667
30668
30669 ac_ext=cc
30670ac_cpp='$CXXCPP $CPPFLAGS'
30671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30674
30675 cat >conftest.$ac_ext <<_ACEOF
30676/* confdefs.h.  */
30677_ACEOF
30678cat confdefs.h >>conftest.$ac_ext
30679cat >>conftest.$ac_ext <<_ACEOF
30680/* end confdefs.h.  */
30681namespace Outer { namespace Inner { int i = 0; }}
30682int
30683main ()
30684{
30685using namespace Outer::Inner; return i;
30686  ;
30687  return 0;
30688}
30689_ACEOF
30690rm -f conftest.$ac_objext
30691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30692  (eval $ac_compile) 2>conftest.er1
30693  ac_status=$?
30694  grep -v '^ *+' conftest.er1 >conftest.err
30695  rm -f conftest.er1
30696  cat conftest.err >&5
30697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698  (exit $ac_status); } &&
30699	 { ac_try='test -z "$ac_cxx_werror_flag"
30700			 || test ! -s conftest.err'
30701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702  (eval $ac_try) 2>&5
30703  ac_status=$?
30704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705  (exit $ac_status); }; } &&
30706	 { ac_try='test -s conftest.$ac_objext'
30707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708  (eval $ac_try) 2>&5
30709  ac_status=$?
30710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711  (exit $ac_status); }; }; then
30712  ac_cv_cxx_namespaces=yes
30713else
30714  echo "$as_me: failed program was:" >&5
30715sed 's/^/| /' conftest.$ac_ext >&5
30716
30717ac_cv_cxx_namespaces=no
30718fi
30719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30720 ac_ext=cc
30721ac_cpp='$CXXCPP $CPPFLAGS'
30722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30725
30726
30727fi
30728echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30729echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
30730if test "$ac_cv_cxx_namespaces" = yes; then
30731
30732cat >>confdefs.h <<\_ACEOF
30733#define HAVE_NAMESPACES
30734_ACEOF
30735
30736fi
30737
30738echo "$as_me:$LINENO: checking whether the compiler supports explicit instantiations" >&5
30739echo $ECHO_N "checking whether the compiler supports explicit instantiations... $ECHO_C" >&6
30740if test "${ac_cv_cxx_explinst+set}" = set; then
30741  echo $ECHO_N "(cached) $ECHO_C" >&6
30742else
30743
30744
30745 ac_ext=cc
30746ac_cpp='$CXXCPP $CPPFLAGS'
30747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30750
30751 cat >conftest.$ac_ext <<_ACEOF
30752/* confdefs.h.  */
30753_ACEOF
30754cat confdefs.h >>conftest.$ac_ext
30755cat >>conftest.$ac_ext <<_ACEOF
30756/* end confdefs.h.  */
30757template <class T> class A { T t; }; template class A<int>;
30758int
30759main ()
30760{
30761
30762  ;
30763  return 0;
30764}
30765_ACEOF
30766rm -f conftest.$ac_objext
30767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30768  (eval $ac_compile) 2>conftest.er1
30769  ac_status=$?
30770  grep -v '^ *+' conftest.er1 >conftest.err
30771  rm -f conftest.er1
30772  cat conftest.err >&5
30773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774  (exit $ac_status); } &&
30775	 { ac_try='test -z "$ac_cxx_werror_flag"
30776			 || test ! -s conftest.err'
30777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30778  (eval $ac_try) 2>&5
30779  ac_status=$?
30780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781  (exit $ac_status); }; } &&
30782	 { ac_try='test -s conftest.$ac_objext'
30783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30784  (eval $ac_try) 2>&5
30785  ac_status=$?
30786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787  (exit $ac_status); }; }; then
30788  ac_cv_cxx_explinst=yes
30789else
30790  echo "$as_me: failed program was:" >&5
30791sed 's/^/| /' conftest.$ac_ext >&5
30792
30793ac_cv_cxx_explinst=no
30794fi
30795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30796 ac_ext=cc
30797ac_cpp='$CXXCPP $CPPFLAGS'
30798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30801
30802
30803fi
30804echo "$as_me:$LINENO: result: $ac_cv_cxx_explinst" >&5
30805echo "${ECHO_T}$ac_cv_cxx_explinst" >&6
30806if test "$ac_cv_cxx_explinst" = yes; then
30807
30808cat >>confdefs.h <<\_ACEOF
30809#define HAVE_INSTANTIATIONS
30810_ACEOF
30811
30812fi
30813
30814echo "$as_me:$LINENO: checking for placement operator new" >&5
30815echo $ECHO_N "checking for placement operator new... $ECHO_C" >&6
30816if test "${ac_cv_cxx_placement_operator_new+set}" = set; then
30817  echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
30819  cat >conftest.$ac_ext <<_ACEOF
30820/* confdefs.h.  */
30821_ACEOF
30822cat confdefs.h >>conftest.$ac_ext
30823cat >>conftest.$ac_ext <<_ACEOF
30824/* end confdefs.h.  */
30825#include <stddef.h>
30826#ifdef HAVE_NEW
30827#include <new>
30828#else
30829#include <new.h>
30830#endif
30831class A {
30832public:
30833  A() {};
30834};
30835A* foo()
30836{
30837  void *x;
30838  A *bar = new (x) A;
30839  return bar;
30840};
30841int
30842main ()
30843{
30844
30845  ;
30846  return 0;
30847}
30848_ACEOF
30849rm -f conftest.$ac_objext
30850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30851  (eval $ac_compile) 2>conftest.er1
30852  ac_status=$?
30853  grep -v '^ *+' conftest.er1 >conftest.err
30854  rm -f conftest.er1
30855  cat conftest.err >&5
30856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857  (exit $ac_status); } &&
30858	 { ac_try='test -z "$ac_cxx_werror_flag"
30859			 || test ! -s conftest.err'
30860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861  (eval $ac_try) 2>&5
30862  ac_status=$?
30863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864  (exit $ac_status); }; } &&
30865	 { ac_try='test -s conftest.$ac_objext'
30866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867  (eval $ac_try) 2>&5
30868  ac_status=$?
30869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870  (exit $ac_status); }; }; then
30871  ac_cv_cxx_placement_operator_new=yes
30872else
30873  echo "$as_me: failed program was:" >&5
30874sed 's/^/| /' conftest.$ac_ext >&5
30875
30876ac_cv_cxx_placement_operator_new=no
30877fi
30878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30879
30880fi
30881echo "$as_me:$LINENO: result: $ac_cv_cxx_placement_operator_new" >&5
30882echo "${ECHO_T}$ac_cv_cxx_placement_operator_new" >&6
30883if test "$ac_cv_cxx_placement_operator_new" = yes; then
30884
30885cat >>confdefs.h <<\_ACEOF
30886#define HAVE_PLACEMENT_OPERATOR_NEW 1
30887_ACEOF
30888
30889fi
30890echo "$as_me:$LINENO: checking whether the C++ compiler supports the std namespace" >&5
30891echo $ECHO_N "checking whether the C++ compiler supports the std namespace... $ECHO_C" >&6
30892if test "${ac_cv_cxx_namespace_std+set}" = set; then
30893  echo $ECHO_N "(cached) $ECHO_C" >&6
30894else
30895  cat >conftest.$ac_ext <<_ACEOF
30896/* confdefs.h.  */
30897_ACEOF
30898cat confdefs.h >>conftest.$ac_ext
30899cat >>conftest.$ac_ext <<_ACEOF
30900/* end confdefs.h.  */
30901
30902#ifdef HAVE_NEW
30903#include <new>
30904#else
30905#include <new.h>
30906#endif
30907int
30908main ()
30909{
30910
30911std::set_new_handler(0);
30912  ;
30913  return 0;
30914}
30915_ACEOF
30916rm -f conftest.$ac_objext
30917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30918  (eval $ac_compile) 2>conftest.er1
30919  ac_status=$?
30920  grep -v '^ *+' conftest.er1 >conftest.err
30921  rm -f conftest.er1
30922  cat conftest.err >&5
30923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924  (exit $ac_status); } &&
30925	 { ac_try='test -z "$ac_cxx_werror_flag"
30926			 || test ! -s conftest.err'
30927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928  (eval $ac_try) 2>&5
30929  ac_status=$?
30930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931  (exit $ac_status); }; } &&
30932	 { ac_try='test -s conftest.$ac_objext'
30933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934  (eval $ac_try) 2>&5
30935  ac_status=$?
30936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937  (exit $ac_status); }; }; then
30938  ac_cv_cxx_namespace_std=yes
30939else
30940  echo "$as_me: failed program was:" >&5
30941sed 's/^/| /' conftest.$ac_ext >&5
30942
30943ac_cv_cxx_namespace_std=no
30944fi
30945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30946
30947fi
30948echo "$as_me:$LINENO: result: $ac_cv_cxx_namespace_std" >&5
30949echo "${ECHO_T}$ac_cv_cxx_namespace_std" >&6
30950if test "$ac_cv_cxx_namespace_std" = yes; then
30951
30952cat >>confdefs.h <<\_ACEOF
30953#define HAVE_NAMESPACE_STD 1
30954_ACEOF
30955
30956fi
30957if test "$GXX"; then
30958  echo "$as_me:$LINENO: checking whether GNU C++ supports automatic template instantiation" >&5
30959echo $ECHO_N "checking whether GNU C++ supports automatic template instantiation... $ECHO_C" >&6
30960if test "${ac_cv_c_gnu_automatic_templates+set}" = set; then
30961  echo $ECHO_N "(cached) $ECHO_C" >&6
30962else
30963  cat >conftest.$ac_ext <<_ACEOF
30964/* confdefs.h.  */
30965_ACEOF
30966cat confdefs.h >>conftest.$ac_ext
30967cat >>conftest.$ac_ext <<_ACEOF
30968/* end confdefs.h.  */
30969
30970#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 8)
30971  yes
30972#endif
30973
30974_ACEOF
30975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30976  $EGREP "yes" >/dev/null 2>&1; then
30977  ac_cv_c_gnu_automatic_templates=yes
30978else
30979  ac_cv_c_gnu_automatic_templates=no
30980fi
30981rm -f conftest*
30982
30983
30984fi
30985echo "$as_me:$LINENO: result: $ac_cv_c_gnu_automatic_templates" >&5
30986echo "${ECHO_T}$ac_cv_c_gnu_automatic_templates" >&6
30987  if test "$ac_cv_c_gnu_automatic_templates" = yes; then
30988
30989cat >>confdefs.h <<\_ACEOF
30990#define SP_DEFINE_TEMPLATES 1
30991_ACEOF
30992
30993  else
30994
30995cat >>confdefs.h <<\_ACEOF
30996#define SP_MANUAL_INST 1
30997_ACEOF
30998
30999    CXXFLAGS="$CXXFLAGS -fno-implicit-templates"
31000  fi
31001  echo "$as_me:$LINENO: checking whether GNU C++ links with libg++ if we include new.h" >&5
31002echo $ECHO_N "checking whether GNU C++ links with libg++ if we include new.h... $ECHO_C" >&6
31003if test "${ac_cv_cxx_gnu_avoid_new_h+set}" = set; then
31004  echo $ECHO_N "(cached) $ECHO_C" >&6
31005else
31006  cat >conftest.$ac_ext <<_ACEOF
31007/* confdefs.h.  */
31008_ACEOF
31009cat confdefs.h >>conftest.$ac_ext
31010cat >>conftest.$ac_ext <<_ACEOF
31011/* end confdefs.h.  */
31012
31013#if (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
31014  yes
31015#endif
31016
31017_ACEOF
31018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31019  $EGREP "yes" >/dev/null 2>&1; then
31020  ac_cv_cxx_gnu_avoid_new_h=yes
31021else
31022  ac_cv_cxx_gnu_avoid_new_h=no
31023fi
31024rm -f conftest*
31025
31026
31027fi
31028echo "$as_me:$LINENO: result: $ac_cv_cxx_gnu_avoid_new_h" >&5
31029echo "${ECHO_T}$ac_cv_cxx_gnu_avoid_new_h" >&6
31030  if test "$ac_cv_cxx_gnu_avoid_new_h" = yes; then
31031
31032cat >>confdefs.h <<\_ACEOF
31033#define SP_NEW_H_MISSING 1
31034_ACEOF
31035
31036    echo "$as_me:$LINENO: checking whether to declare set_new_handler extern \"C\"" >&5
31037echo $ECHO_N "checking whether to declare set_new_handler extern \"C\"... $ECHO_C" >&6
31038if test "${ac_cv_cxx_new_handler_extern_c+set}" = set; then
31039  echo $ECHO_N "(cached) $ECHO_C" >&6
31040else
31041  cat >conftest.$ac_ext <<_ACEOF
31042/* confdefs.h.  */
31043_ACEOF
31044cat confdefs.h >>conftest.$ac_ext
31045cat >>conftest.$ac_ext <<_ACEOF
31046/* end confdefs.h.  */
31047
31048typedef void (*new_handler)();
31049new_handler set_new_handler(new_handler);
31050int
31051main ()
31052{
31053
31054set_new_handler(0);
31055  ;
31056  return 0;
31057}
31058_ACEOF
31059rm -f conftest.$ac_objext conftest$ac_exeext
31060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31061  (eval $ac_link) 2>conftest.er1
31062  ac_status=$?
31063  grep -v '^ *+' conftest.er1 >conftest.err
31064  rm -f conftest.er1
31065  cat conftest.err >&5
31066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067  (exit $ac_status); } &&
31068	 { ac_try='test -z "$ac_cxx_werror_flag"
31069			 || test ! -s conftest.err'
31070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071  (eval $ac_try) 2>&5
31072  ac_status=$?
31073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074  (exit $ac_status); }; } &&
31075	 { ac_try='test -s conftest$ac_exeext'
31076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31077  (eval $ac_try) 2>&5
31078  ac_status=$?
31079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080  (exit $ac_status); }; }; then
31081  ac_cv_cxx_new_handler_extern_c=no
31082else
31083  echo "$as_me: failed program was:" >&5
31084sed 's/^/| /' conftest.$ac_ext >&5
31085
31086ac_cv_cxx_new_handler_extern_c=yes
31087fi
31088rm -f conftest.err conftest.$ac_objext \
31089      conftest$ac_exeext conftest.$ac_ext
31090
31091fi
31092echo "$as_me:$LINENO: result: $ac_cv_cxx_new_handler_extern_c" >&5
31093echo "${ECHO_T}$ac_cv_cxx_new_handler_extern_c" >&6
31094    if test "$ac_cv_cxx_new_handler_extern_c" = yes; then
31095
31096cat >>confdefs.h <<\_ACEOF
31097#define SP_SET_NEW_HANDLER_EXTERN_C 1
31098_ACEOF
31099
31100    fi
31101  fi
31102fi
31103echo "$as_me:$LINENO: checking whether new_handler accepts size_t and returns int" >&5
31104echo $ECHO_N "checking whether new_handler accepts size_t and returns int... $ECHO_C" >&6
31105if test "${ac_cv_cxx_fancy_new_handler+set}" = set; then
31106  echo $ECHO_N "(cached) $ECHO_C" >&6
31107else
31108  cat >conftest.$ac_ext <<_ACEOF
31109/* confdefs.h.  */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h.  */
31114
31115#include <stddef.h>
31116#include <new.h>
31117int oom(size_t) { }
31118int
31119main ()
31120{
31121set_new_handler(oom);
31122  ;
31123  return 0;
31124}
31125_ACEOF
31126rm -f conftest.$ac_objext
31127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31128  (eval $ac_compile) 2>conftest.er1
31129  ac_status=$?
31130  grep -v '^ *+' conftest.er1 >conftest.err
31131  rm -f conftest.er1
31132  cat conftest.err >&5
31133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134  (exit $ac_status); } &&
31135	 { ac_try='test -z "$ac_cxx_werror_flag"
31136			 || test ! -s conftest.err'
31137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138  (eval $ac_try) 2>&5
31139  ac_status=$?
31140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141  (exit $ac_status); }; } &&
31142	 { ac_try='test -s conftest.$ac_objext'
31143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31144  (eval $ac_try) 2>&5
31145  ac_status=$?
31146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147  (exit $ac_status); }; }; then
31148  ac_cv_cxx_fancy_new_handler=yes
31149else
31150  echo "$as_me: failed program was:" >&5
31151sed 's/^/| /' conftest.$ac_ext >&5
31152
31153ac_cv_cxx_fancy_new_handler=no
31154fi
31155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31156
31157fi
31158echo "$as_me:$LINENO: result: $ac_cv_cxx_fancy_new_handler" >&5
31159echo "${ECHO_T}$ac_cv_cxx_fancy_new_handler" >&6
31160if test "$ac_cv_cxx_fancy_new_handler" = yes; then
31161
31162cat >>confdefs.h <<\_ACEOF
31163#define SP_FANCY_NEW_HANDLER 1
31164_ACEOF
31165
31166fi
31167
31168
31169
31170
31171
31172for ac_func in memmove memcmp strerror strtoul
31173do
31174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31175echo "$as_me:$LINENO: checking for $ac_func" >&5
31176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31177if eval "test \"\${$as_ac_var+set}\" = set"; then
31178  echo $ECHO_N "(cached) $ECHO_C" >&6
31179else
31180  cat >conftest.$ac_ext <<_ACEOF
31181/* confdefs.h.  */
31182_ACEOF
31183cat confdefs.h >>conftest.$ac_ext
31184cat >>conftest.$ac_ext <<_ACEOF
31185/* end confdefs.h.  */
31186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31188#define $ac_func innocuous_$ac_func
31189
31190/* System header to define __stub macros and hopefully few prototypes,
31191    which can conflict with char $ac_func (); below.
31192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31193    <limits.h> exists even on freestanding compilers.  */
31194
31195#ifdef __STDC__
31196# include <limits.h>
31197#else
31198# include <assert.h>
31199#endif
31200
31201#undef $ac_func
31202
31203/* Override any gcc2 internal prototype to avoid an error.  */
31204#ifdef __cplusplus
31205extern "C"
31206{
31207#endif
31208/* We use char because int might match the return type of a gcc2
31209   builtin and then its argument prototype would still apply.  */
31210char $ac_func ();
31211/* The GNU C library defines this for functions which it implements
31212    to always fail with ENOSYS.  Some functions are actually named
31213    something starting with __ and the normal name is an alias.  */
31214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31215choke me
31216#else
31217char (*f) () = $ac_func;
31218#endif
31219#ifdef __cplusplus
31220}
31221#endif
31222
31223int
31224main ()
31225{
31226return f != $ac_func;
31227  ;
31228  return 0;
31229}
31230_ACEOF
31231rm -f conftest.$ac_objext conftest$ac_exeext
31232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31233  (eval $ac_link) 2>conftest.er1
31234  ac_status=$?
31235  grep -v '^ *+' conftest.er1 >conftest.err
31236  rm -f conftest.er1
31237  cat conftest.err >&5
31238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239  (exit $ac_status); } &&
31240	 { ac_try='test -z "$ac_cxx_werror_flag"
31241			 || test ! -s conftest.err'
31242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31243  (eval $ac_try) 2>&5
31244  ac_status=$?
31245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246  (exit $ac_status); }; } &&
31247	 { ac_try='test -s conftest$ac_exeext'
31248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31249  (eval $ac_try) 2>&5
31250  ac_status=$?
31251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252  (exit $ac_status); }; }; then
31253  eval "$as_ac_var=yes"
31254else
31255  echo "$as_me: failed program was:" >&5
31256sed 's/^/| /' conftest.$ac_ext >&5
31257
31258eval "$as_ac_var=no"
31259fi
31260rm -f conftest.err conftest.$ac_objext \
31261      conftest$ac_exeext conftest.$ac_ext
31262fi
31263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31264echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31265if test `eval echo '${'$as_ac_var'}'` = yes; then
31266  cat >>confdefs.h <<_ACEOF
31267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31268_ACEOF
31269
31270else
31271  case $LIBOBJS in
31272    "$ac_func.$ac_objext"   | \
31273  *" $ac_func.$ac_objext"   | \
31274    "$ac_func.$ac_objext "* | \
31275  *" $ac_func.$ac_objext "* ) ;;
31276  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
31277esac
31278
31279fi
31280done
31281
31282
31283
31284for ac_func in setlocale
31285do
31286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31287echo "$as_me:$LINENO: checking for $ac_func" >&5
31288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31289if eval "test \"\${$as_ac_var+set}\" = set"; then
31290  echo $ECHO_N "(cached) $ECHO_C" >&6
31291else
31292  cat >conftest.$ac_ext <<_ACEOF
31293/* confdefs.h.  */
31294_ACEOF
31295cat confdefs.h >>conftest.$ac_ext
31296cat >>conftest.$ac_ext <<_ACEOF
31297/* end confdefs.h.  */
31298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31300#define $ac_func innocuous_$ac_func
31301
31302/* System header to define __stub macros and hopefully few prototypes,
31303    which can conflict with char $ac_func (); below.
31304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31305    <limits.h> exists even on freestanding compilers.  */
31306
31307#ifdef __STDC__
31308# include <limits.h>
31309#else
31310# include <assert.h>
31311#endif
31312
31313#undef $ac_func
31314
31315/* Override any gcc2 internal prototype to avoid an error.  */
31316#ifdef __cplusplus
31317extern "C"
31318{
31319#endif
31320/* We use char because int might match the return type of a gcc2
31321   builtin and then its argument prototype would still apply.  */
31322char $ac_func ();
31323/* The GNU C library defines this for functions which it implements
31324    to always fail with ENOSYS.  Some functions are actually named
31325    something starting with __ and the normal name is an alias.  */
31326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31327choke me
31328#else
31329char (*f) () = $ac_func;
31330#endif
31331#ifdef __cplusplus
31332}
31333#endif
31334
31335int
31336main ()
31337{
31338return f != $ac_func;
31339  ;
31340  return 0;
31341}
31342_ACEOF
31343rm -f conftest.$ac_objext conftest$ac_exeext
31344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31345  (eval $ac_link) 2>conftest.er1
31346  ac_status=$?
31347  grep -v '^ *+' conftest.er1 >conftest.err
31348  rm -f conftest.er1
31349  cat conftest.err >&5
31350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351  (exit $ac_status); } &&
31352	 { ac_try='test -z "$ac_cxx_werror_flag"
31353			 || test ! -s conftest.err'
31354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31355  (eval $ac_try) 2>&5
31356  ac_status=$?
31357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31358  (exit $ac_status); }; } &&
31359	 { ac_try='test -s conftest$ac_exeext'
31360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31361  (eval $ac_try) 2>&5
31362  ac_status=$?
31363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364  (exit $ac_status); }; }; then
31365  eval "$as_ac_var=yes"
31366else
31367  echo "$as_me: failed program was:" >&5
31368sed 's/^/| /' conftest.$ac_ext >&5
31369
31370eval "$as_ac_var=no"
31371fi
31372rm -f conftest.err conftest.$ac_objext \
31373      conftest$ac_exeext conftest.$ac_ext
31374fi
31375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31377if test `eval echo '${'$as_ac_var'}'` = yes; then
31378  cat >>confdefs.h <<_ACEOF
31379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31380_ACEOF
31381
31382fi
31383done
31384
31385
31386echo "$as_me:$LINENO: checking for Windows and DOS and OS/2 style pathnames" >&5
31387echo $ECHO_N "checking for Windows and DOS and OS/2 style pathnames... $ECHO_C" >&6
31388if test "${acx_cv_pathname_style_dos+set}" = set; then
31389  echo $ECHO_N "(cached) $ECHO_C" >&6
31390else
31391
31392
31393acx_cv_pathname_style_dos="no"
31394case ${host_os} in
31395  *djgpp | *mingw32 | *emx*) acx_cv_pathname_style_dos="yes" ;;
31396esac
31397
31398fi
31399
31400echo "$as_me:$LINENO: result: $acx_cv_pathname_style_dos" >&5
31401echo "${ECHO_T}$acx_cv_pathname_style_dos" >&6
31402if test $acx_cv_pathname_style_dos = "yes"; then
31403  cat >>confdefs.h <<\_ACEOF
31404#define HAVE_PATHNAME_STYLE_DOS 1
31405_ACEOF
31406
31407  cat >>confdefs.h <<\_ACEOF
31408#define PATH_SEPARATOR ';'
31409_ACEOF
31410
31411else
31412  cat >>confdefs.h <<\_ACEOF
31413#define PATH_SEPARATOR ':'
31414_ACEOF
31415
31416fi
31417
31418
31419echo "$as_me:$LINENO: checking whether to include support for http" >&5
31420echo $ECHO_N "checking whether to include support for http... $ECHO_C" >&6
31421# Check whether --enable-http or --disable-http was given.
31422if test "${enable_http+set}" = set; then
31423  enableval="$enable_http"
31424  if test $enableval
31425    then
31426        echo "$as_me:$LINENO: result: yes" >&5
31427echo "${ECHO_T}yes" >&6
31428
31429cat >>confdefs.h <<\_ACEOF
31430#define SP_HAVE_SOCKET 1
31431_ACEOF
31432
31433	echo "$as_me:$LINENO: checking for main in -lnsl" >&5
31434echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
31435if test "${ac_cv_lib_nsl_main+set}" = set; then
31436  echo $ECHO_N "(cached) $ECHO_C" >&6
31437else
31438  ac_check_lib_save_LIBS=$LIBS
31439LIBS="-lnsl  $LIBS"
31440cat >conftest.$ac_ext <<_ACEOF
31441/* confdefs.h.  */
31442_ACEOF
31443cat confdefs.h >>conftest.$ac_ext
31444cat >>conftest.$ac_ext <<_ACEOF
31445/* end confdefs.h.  */
31446
31447
31448int
31449main ()
31450{
31451main ();
31452  ;
31453  return 0;
31454}
31455_ACEOF
31456rm -f conftest.$ac_objext conftest$ac_exeext
31457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31458  (eval $ac_link) 2>conftest.er1
31459  ac_status=$?
31460  grep -v '^ *+' conftest.er1 >conftest.err
31461  rm -f conftest.er1
31462  cat conftest.err >&5
31463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464  (exit $ac_status); } &&
31465	 { ac_try='test -z "$ac_cxx_werror_flag"
31466			 || test ! -s conftest.err'
31467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468  (eval $ac_try) 2>&5
31469  ac_status=$?
31470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471  (exit $ac_status); }; } &&
31472	 { ac_try='test -s conftest$ac_exeext'
31473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474  (eval $ac_try) 2>&5
31475  ac_status=$?
31476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477  (exit $ac_status); }; }; then
31478  ac_cv_lib_nsl_main=yes
31479else
31480  echo "$as_me: failed program was:" >&5
31481sed 's/^/| /' conftest.$ac_ext >&5
31482
31483ac_cv_lib_nsl_main=no
31484fi
31485rm -f conftest.err conftest.$ac_objext \
31486      conftest$ac_exeext conftest.$ac_ext
31487LIBS=$ac_check_lib_save_LIBS
31488fi
31489echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
31490echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
31491if test $ac_cv_lib_nsl_main = yes; then
31492  LIBS="$LIBS -lnsl"
31493fi
31494
31495	echo "$as_me:$LINENO: checking for main in -lsocket" >&5
31496echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
31497if test "${ac_cv_lib_socket_main+set}" = set; then
31498  echo $ECHO_N "(cached) $ECHO_C" >&6
31499else
31500  ac_check_lib_save_LIBS=$LIBS
31501LIBS="-lsocket  $LIBS"
31502cat >conftest.$ac_ext <<_ACEOF
31503/* confdefs.h.  */
31504_ACEOF
31505cat confdefs.h >>conftest.$ac_ext
31506cat >>conftest.$ac_ext <<_ACEOF
31507/* end confdefs.h.  */
31508
31509
31510int
31511main ()
31512{
31513main ();
31514  ;
31515  return 0;
31516}
31517_ACEOF
31518rm -f conftest.$ac_objext conftest$ac_exeext
31519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31520  (eval $ac_link) 2>conftest.er1
31521  ac_status=$?
31522  grep -v '^ *+' conftest.er1 >conftest.err
31523  rm -f conftest.er1
31524  cat conftest.err >&5
31525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526  (exit $ac_status); } &&
31527	 { ac_try='test -z "$ac_cxx_werror_flag"
31528			 || test ! -s conftest.err'
31529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530  (eval $ac_try) 2>&5
31531  ac_status=$?
31532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533  (exit $ac_status); }; } &&
31534	 { ac_try='test -s conftest$ac_exeext'
31535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536  (eval $ac_try) 2>&5
31537  ac_status=$?
31538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539  (exit $ac_status); }; }; then
31540  ac_cv_lib_socket_main=yes
31541else
31542  echo "$as_me: failed program was:" >&5
31543sed 's/^/| /' conftest.$ac_ext >&5
31544
31545ac_cv_lib_socket_main=no
31546fi
31547rm -f conftest.err conftest.$ac_objext \
31548      conftest$ac_exeext conftest.$ac_ext
31549LIBS=$ac_check_lib_save_LIBS
31550fi
31551echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
31552echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
31553if test $ac_cv_lib_socket_main = yes; then
31554  LIBS="$LIBS -lsocket"
31555fi
31556
31557	echo "$as_me:$LINENO: checking h_errno in netdb.h" >&5
31558echo $ECHO_N "checking h_errno in netdb.h... $ECHO_C" >&6
31559	cat >conftest.$ac_ext <<_ACEOF
31560/* confdefs.h.  */
31561_ACEOF
31562cat confdefs.h >>conftest.$ac_ext
31563cat >>conftest.$ac_ext <<_ACEOF
31564/* end confdefs.h.  */
31565#include <netdb.h>
31566
31567_ACEOF
31568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31569  $EGREP "h_errno" >/dev/null 2>&1; then
31570  echo "$as_me:$LINENO: result: yes" >&5
31571echo "${ECHO_T}yes" >&6
31572else
31573
31574cat >>confdefs.h <<\_ACEOF
31575#define SP_DECLARE_H_ERRNO 1
31576_ACEOF
31577
31578	    echo "$as_me:$LINENO: result: no" >&5
31579echo "${ECHO_T}no" >&6
31580fi
31581rm -f conftest*
31582
31583    else
31584        echo "$as_me:$LINENO: result: no" >&5
31585echo "${ECHO_T}no" >&6
31586    fi
31587else
31588  echo "$as_me:$LINENO: result: no" >&5
31589echo "${ECHO_T}no" >&6
31590fi;
31591echo "$as_me:$LINENO: checking for default catalog" >&5
31592echo $ECHO_N "checking for default catalog... $ECHO_C" >&6
31593# Check whether --enable-default-catalog or --disable-default-catalog was given.
31594if test "${enable_default_catalog+set}" = set; then
31595  enableval="$enable_default_catalog"
31596  if test $enableval
31597               then
31598                echo "$as_me:$LINENO: result: $enableval" >&5
31599echo "${ECHO_T}$enableval" >&6
31600
31601cat >>confdefs.h <<_ACEOF
31602#define SGML_CATALOG_FILES_DEFAULT "$enableval"
31603_ACEOF
31604
31605               else
31606                echo "$as_me:$LINENO: result: none" >&5
31607echo "${ECHO_T}none" >&6
31608              fi
31609else
31610  echo "$as_me:$LINENO: result: none" >&5
31611echo "${ECHO_T}none" >&6
31612fi;
31613echo "$as_me:$LINENO: checking for default search path" >&5
31614echo $ECHO_N "checking for default search path... $ECHO_C" >&6
31615# Check whether --enable-default-search-path or --disable-default-search-path was given.
31616if test "${enable_default_search_path+set}" = set; then
31617  enableval="$enable_default_search_path"
31618  if test $enableval
31619    then
31620        echo "$as_me:$LINENO: result: $enableval" >&5
31621echo "${ECHO_T}$enableval" >&6
31622
31623cat >>confdefs.h <<_ACEOF
31624#define SGML_SEARCH_PATH_DEFAULT "$enableval"
31625_ACEOF
31626
31627    else
31628        echo "$as_me:$LINENO: result: none" >&5
31629echo "${ECHO_T}none" >&6
31630    fi
31631else
31632  echo "$as_me:$LINENO: result: none" >&5
31633echo "${ECHO_T}none" >&6
31634fi;
31635echo "$as_me:$LINENO: checking whether to include support for XML Formatted Messages" >&5
31636echo $ECHO_N "checking whether to include support for XML Formatted Messages... $ECHO_C" >&6
31637# Check whether --enable-xml-messages or --disable-xml-messages was given.
31638if test "${enable_xml_messages+set}" = set; then
31639  enableval="$enable_xml_messages"
31640  if test $enableval
31641           then
31642              echo "$as_me:$LINENO: result: yes" >&5
31643echo "${ECHO_T}yes" >&6
31644
31645cat >>confdefs.h <<\_ACEOF
31646#define SP_XML 1
31647_ACEOF
31648
31649           else
31650                echo "$as_me:$LINENO: result: no" >&5
31651echo "${ECHO_T}no" >&6
31652         fi
31653else
31654  echo "$as_me:$LINENO: result: no" >&5
31655echo "${ECHO_T}no" >&6
31656fi;
31657DTDDECL=yes
31658echo "$as_me:$LINENO: checking whether to include DTDDECL support" >&5
31659echo $ECHO_N "checking whether to include DTDDECL support... $ECHO_C" >&6
31660# Check whether --enable-dtddecl or --disable-dtddecl was given.
31661if test "${enable_dtddecl+set}" = set; then
31662  enableval="$enable_dtddecl"
31663  if test "$enableval" = "no"
31664    then
31665        echo "$as_me:$LINENO: result: no" >&5
31666echo "${ECHO_T}no" >&6
31667	DTDDECL=no
31668    else
31669        echo "$as_me:$LINENO: result: yes" >&5
31670echo "${ECHO_T}yes" >&6
31671    fi
31672else
31673  echo "$as_me:$LINENO: result: yes" >&5
31674echo "${ECHO_T}yes" >&6
31675fi;
31676if test "$DTDDECL" = "yes"
31677then
31678
31679cat >>confdefs.h <<\_ACEOF
31680#define SP_DTDDECL 1
31681_ACEOF
31682
31683
31684
31685if true; then
31686  DTDDECL_TRUE=
31687  DTDDECL_FALSE='#'
31688else
31689  DTDDECL_TRUE='#'
31690  DTDDECL_FALSE=
31691fi
31692
31693else
31694
31695
31696if false; then
31697  DTDDECL_TRUE=
31698  DTDDECL_FALSE='#'
31699else
31700  DTDDECL_TRUE='#'
31701  DTDDECL_FALSE=
31702fi
31703
31704fi
31705
31706                                                                                                                                                                                              ac_config_files="$ac_config_files ${PACKAGE}-${VERSION}.spec:spec.in Makefile msggen.pl lib/Makefile nsgmls/Makefile spent/Makefile spam/Makefile sgmlnorm/Makefile sx/Makefile spcat/Makefile include/Makefile include/config.h.old generic/Makefile doc/Makefile pubtext/Makefile tests/Makefile unicode/Makefile intl/Makefile po/Makefile.in"
31707
31708
31709BUILDDOCS=yes
31710echo "$as_me:$LINENO: checking whether to build docs (man and html)" >&5
31711echo $ECHO_N "checking whether to build docs (man and html)... $ECHO_C" >&6
31712# Check whether --enable-doc-build or --disable-doc-build was given.
31713if test "${enable_doc_build+set}" = set; then
31714  enableval="$enable_doc_build"
31715  if test "$enableval" = "no"
31716    then
31717        echo "$as_me:$LINENO: result: no" >&5
31718echo "${ECHO_T}no" >&6
31719        BUILDDOCS=no
31720    else
31721	echo "$as_me:$LINENO: result: yes" >&5
31722echo "${ECHO_T}yes" >&6
31723    fi
31724else
31725  echo "$as_me:$LINENO: result: yes" >&5
31726echo "${ECHO_T}yes" >&6
31727fi;
31728
31729if test "$BUILDDOCS" = "yes"
31730then
31731    # Extract the first word of "xmlto", so it can be a program name with args.
31732set dummy xmlto; ac_word=$2
31733echo "$as_me:$LINENO: checking for $ac_word" >&5
31734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31735if test "${ac_cv_path_XMLTO+set}" = set; then
31736  echo $ECHO_N "(cached) $ECHO_C" >&6
31737else
31738  case $XMLTO in
31739  [\\/]* | ?:[\\/]*)
31740  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
31741  ;;
31742  *)
31743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31744for as_dir in $PATH
31745do
31746  IFS=$as_save_IFS
31747  test -z "$as_dir" && as_dir=.
31748  for ac_exec_ext in '' $ac_executable_extensions; do
31749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31750    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
31751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31752    break 2
31753  fi
31754done
31755done
31756
31757  ;;
31758esac
31759fi
31760XMLTO=$ac_cv_path_XMLTO
31761
31762if test -n "$XMLTO"; then
31763  echo "$as_me:$LINENO: result: $XMLTO" >&5
31764echo "${ECHO_T}$XMLTO" >&6
31765else
31766  echo "$as_me:$LINENO: result: no" >&5
31767echo "${ECHO_T}no" >&6
31768fi
31769
31770    if test -z "$XMLTO"
31771    then { { echo "$as_me:$LINENO: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&5
31772echo "$as_me: error: could not find xmlto; set XMLTO or consider --disable-doc-build" >&2;}
31773   { (exit 1); exit 1; }; }
31774    fi
31775    DOCSRC=docsrc
31776
31777              ac_config_files="$ac_config_files docsrc/Makefile"
31778
31779fi
31780
31781BUILDFULLDOCS=no
31782echo "$as_me:$LINENO: checking whether to build all docs (man, html, pdf, ps)" >&5
31783echo $ECHO_N "checking whether to build all docs (man, html, pdf, ps)... $ECHO_C" >&6
31784# Check whether --enable-full-doc-build or --disable-full-doc-build was given.
31785if test "${enable_full_doc_build+set}" = set; then
31786  enableval="$enable_full_doc_build"
31787  if test "$enableval" = "yes"
31788    then
31789        echo "$as_me:$LINENO: result: yes" >&5
31790echo "${ECHO_T}yes" >&6
31791        BUILDFULLDOCS=yes
31792    else
31793	echo "$as_me:$LINENO: result: no" >&5
31794echo "${ECHO_T}no" >&6
31795    fi
31796else
31797  echo "$as_me:$LINENO: result: no" >&5
31798echo "${ECHO_T}no" >&6
31799fi;
31800
31801if test "$BUILDFULLDOCS" = "yes"
31802then
31803    # Extract the first word of "pdf2ps", so it can be a program name with args.
31804set dummy pdf2ps; ac_word=$2
31805echo "$as_me:$LINENO: checking for $ac_word" >&5
31806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31807if test "${ac_cv_path_PDF2PS+set}" = set; then
31808  echo $ECHO_N "(cached) $ECHO_C" >&6
31809else
31810  case $PDF2PS in
31811  [\\/]* | ?:[\\/]*)
31812  ac_cv_path_PDF2PS="$PDF2PS" # Let the user override the test with a path.
31813  ;;
31814  *)
31815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31816for as_dir in $PATH
31817do
31818  IFS=$as_save_IFS
31819  test -z "$as_dir" && as_dir=.
31820  for ac_exec_ext in '' $ac_executable_extensions; do
31821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31822    ac_cv_path_PDF2PS="$as_dir/$ac_word$ac_exec_ext"
31823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31824    break 2
31825  fi
31826done
31827done
31828
31829  ;;
31830esac
31831fi
31832PDF2PS=$ac_cv_path_PDF2PS
31833
31834if test -n "$PDF2PS"; then
31835  echo "$as_me:$LINENO: result: $PDF2PS" >&5
31836echo "${ECHO_T}$PDF2PS" >&6
31837else
31838  echo "$as_me:$LINENO: result: no" >&5
31839echo "${ECHO_T}no" >&6
31840fi
31841
31842    if test -z "$PDF2PS"
31843    then { { echo "$as_me:$LINENO: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&5
31844echo "$as_me: error: could not find pdf2ps; set PDF2PS or consider --disable-doc-build" >&2;}
31845   { (exit 1); exit 1; }; }
31846    fi
31847    # Extract the first word of "openjade jade", so it can be a program name with args.
31848set dummy openjade jade; ac_word=$2
31849echo "$as_me:$LINENO: checking for $ac_word" >&5
31850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31851if test "${ac_cv_path_JADE+set}" = set; then
31852  echo $ECHO_N "(cached) $ECHO_C" >&6
31853else
31854  case $JADE in
31855  [\\/]* | ?:[\\/]*)
31856  ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
31857  ;;
31858  *)
31859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31860for as_dir in $PATH
31861do
31862  IFS=$as_save_IFS
31863  test -z "$as_dir" && as_dir=.
31864  for ac_exec_ext in '' $ac_executable_extensions; do
31865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31866    ac_cv_path_JADE="$as_dir/$ac_word$ac_exec_ext"
31867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31868    break 2
31869  fi
31870done
31871done
31872
31873  ;;
31874esac
31875fi
31876JADE=$ac_cv_path_JADE
31877
31878if test -n "$JADE"; then
31879  echo "$as_me:$LINENO: result: $JADE" >&5
31880echo "${ECHO_T}$JADE" >&6
31881else
31882  echo "$as_me:$LINENO: result: no" >&5
31883echo "${ECHO_T}no" >&6
31884fi
31885
31886    if test -z "$JADE"
31887    then
31888	{ { echo "$as_me:$LINENO: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&5
31889echo "$as_me: error: could not find openjade or jade; set JADE or consider --disable-doc-build" >&2;}
31890   { (exit 1); exit 1; }; }
31891    fi
31892    # Extract the first word of "jadetex", so it can be a program name with args.
31893set dummy jadetex; ac_word=$2
31894echo "$as_me:$LINENO: checking for $ac_word" >&5
31895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31896if test "${ac_cv_path_JADETEX+set}" = set; then
31897  echo $ECHO_N "(cached) $ECHO_C" >&6
31898else
31899  case $JADETEX in
31900  [\\/]* | ?:[\\/]*)
31901  ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a path.
31902  ;;
31903  *)
31904  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31905for as_dir in $PATH
31906do
31907  IFS=$as_save_IFS
31908  test -z "$as_dir" && as_dir=.
31909  for ac_exec_ext in '' $ac_executable_extensions; do
31910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31911    ac_cv_path_JADETEX="$as_dir/$ac_word$ac_exec_ext"
31912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31913    break 2
31914  fi
31915done
31916done
31917
31918  ;;
31919esac
31920fi
31921JADETEX=$ac_cv_path_JADETEX
31922
31923if test -n "$JADETEX"; then
31924  echo "$as_me:$LINENO: result: $JADETEX" >&5
31925echo "${ECHO_T}$JADETEX" >&6
31926else
31927  echo "$as_me:$LINENO: result: no" >&5
31928echo "${ECHO_T}no" >&6
31929fi
31930
31931    if test -z "$JADETEX"
31932    then
31933	{ { echo "$as_me:$LINENO: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&5
31934echo "$as_me: error: could not find jadetex; set JADETEX or consider --disable-doc-build" >&2;}
31935   { (exit 1); exit 1; }; }
31936    fi
31937    # Extract the first word of "pdfjadetex", so it can be a program name with args.
31938set dummy pdfjadetex; ac_word=$2
31939echo "$as_me:$LINENO: checking for $ac_word" >&5
31940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31941if test "${ac_cv_path_PDFJADETEX+set}" = set; then
31942  echo $ECHO_N "(cached) $ECHO_C" >&6
31943else
31944  case $PDFJADETEX in
31945  [\\/]* | ?:[\\/]*)
31946  ac_cv_path_PDFJADETEX="$PDFJADETEX" # Let the user override the test with a path.
31947  ;;
31948  *)
31949  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31950for as_dir in $PATH
31951do
31952  IFS=$as_save_IFS
31953  test -z "$as_dir" && as_dir=.
31954  for ac_exec_ext in '' $ac_executable_extensions; do
31955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31956    ac_cv_path_PDFJADETEX="$as_dir/$ac_word$ac_exec_ext"
31957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31958    break 2
31959  fi
31960done
31961done
31962
31963  ;;
31964esac
31965fi
31966PDFJADETEX=$ac_cv_path_PDFJADETEX
31967
31968if test -n "$PDFJADETEX"; then
31969  echo "$as_me:$LINENO: result: $PDFJADETEX" >&5
31970echo "${ECHO_T}$PDFJADETEX" >&6
31971else
31972  echo "$as_me:$LINENO: result: no" >&5
31973echo "${ECHO_T}no" >&6
31974fi
31975
31976    if test -z "$PDFJADETEX"
31977    then
31978	{ { echo "$as_me:$LINENO: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&5
31979echo "$as_me: error: could not find pdfjadetex; set PDFJADETEX or consider --disable-doc-build" >&2;}
31980   { (exit 1); exit 1; }; }
31981    fi
31982    EXTRADOCS="releasenotes.pdf releasenotes.ps"
31983
31984fi
31985
31986cat >confcache <<\_ACEOF
31987# This file is a shell script that caches the results of configure
31988# tests run on this system so they can be shared between configure
31989# scripts and configure runs, see configure's option --config-cache.
31990# It is not useful on other systems.  If it contains results you don't
31991# want to keep, you may remove or edit it.
31992#
31993# config.status only pays attention to the cache file if you give it
31994# the --recheck option to rerun configure.
31995#
31996# `ac_cv_env_foo' variables (set or unset) will be overridden when
31997# loading this file, other *unset* `ac_cv_foo' will be assigned the
31998# following values.
31999
32000_ACEOF
32001
32002# The following way of writing the cache mishandles newlines in values,
32003# but we know of no workaround that is simple, portable, and efficient.
32004# So, don't put newlines in cache variables' values.
32005# Ultrix sh set writes to stderr and can't be redirected directly,
32006# and sets the high bit in the cache file unless we assign to the vars.
32007{
32008  (set) 2>&1 |
32009    case `(ac_space=' '; set | grep ac_space) 2>&1` in
32010    *ac_space=\ *)
32011      # `set' does not quote correctly, so add quotes (double-quote
32012      # substitution turns \\\\ into \\, and sed turns \\ into \).
32013      sed -n \
32014	"s/'/'\\\\''/g;
32015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32016      ;;
32017    *)
32018      # `set' quotes correctly as required by POSIX, so do not add quotes.
32019      sed -n \
32020	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32021      ;;
32022    esac;
32023} |
32024  sed '
32025     t clear
32026     : clear
32027     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32028     t end
32029     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32030     : end' >>confcache
32031if diff $cache_file confcache >/dev/null 2>&1; then :; else
32032  if test -w $cache_file; then
32033    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32034    cat confcache >$cache_file
32035  else
32036    echo "not updating unwritable cache $cache_file"
32037  fi
32038fi
32039rm -f confcache
32040
32041test "x$prefix" = xNONE && prefix=$ac_default_prefix
32042# Let make expand exec_prefix.
32043test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32044
32045# VPATH may cause trouble with some makes, so we remove $(srcdir),
32046# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32047# trailing colons and then remove the whole line if VPATH becomes empty
32048# (actually we leave an empty line to preserve line numbers).
32049if test "x$srcdir" = x.; then
32050  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
32051s/:*\$(srcdir):*/:/;
32052s/:*\${srcdir}:*/:/;
32053s/:*@srcdir@:*/:/;
32054s/^\([^=]*=[	 ]*\):*/\1/;
32055s/:*$//;
32056s/^[^=]*=[	 ]*$//;
32057}'
32058fi
32059
32060DEFS=-DHAVE_CONFIG_H
32061
32062ac_libobjs=
32063ac_ltlibobjs=
32064for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32065  # 1. Remove the extension, and $U if already installed.
32066  ac_i=`echo "$ac_i" |
32067	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32068  # 2. Add them.
32069  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32070  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32071done
32072LIBOBJS=$ac_libobjs
32073
32074LTLIBOBJS=$ac_ltlibobjs
32075
32076
32077if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32078  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32079Usually this means the macro was only invoked conditionally." >&5
32080echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32081Usually this means the macro was only invoked conditionally." >&2;}
32082   { (exit 1); exit 1; }; }
32083fi
32084if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32085  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32086Usually this means the macro was only invoked conditionally." >&5
32087echo "$as_me: error: conditional \"AMDEP\" was never defined.
32088Usually this means the macro was only invoked conditionally." >&2;}
32089   { (exit 1); exit 1; }; }
32090fi
32091if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32092  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32093Usually this means the macro was only invoked conditionally." >&5
32094echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32095Usually this means the macro was only invoked conditionally." >&2;}
32096   { (exit 1); exit 1; }; }
32097fi
32098if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32099  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32100Usually this means the macro was only invoked conditionally." >&5
32101echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32102Usually this means the macro was only invoked conditionally." >&2;}
32103   { (exit 1); exit 1; }; }
32104fi
32105if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then
32106  { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined.
32107Usually this means the macro was only invoked conditionally." >&5
32108echo "$as_me: error: conditional \"DTDDECL\" was never defined.
32109Usually this means the macro was only invoked conditionally." >&2;}
32110   { (exit 1); exit 1; }; }
32111fi
32112if test -z "${DTDDECL_TRUE}" && test -z "${DTDDECL_FALSE}"; then
32113  { { echo "$as_me:$LINENO: error: conditional \"DTDDECL\" was never defined.
32114Usually this means the macro was only invoked conditionally." >&5
32115echo "$as_me: error: conditional \"DTDDECL\" was never defined.
32116Usually this means the macro was only invoked conditionally." >&2;}
32117   { (exit 1); exit 1; }; }
32118fi
32119
32120: ${CONFIG_STATUS=./config.status}
32121ac_clean_files_save=$ac_clean_files
32122ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32123{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32124echo "$as_me: creating $CONFIG_STATUS" >&6;}
32125cat >$CONFIG_STATUS <<_ACEOF
32126#! $SHELL
32127# Generated by $as_me.
32128# Run this file to recreate the current configuration.
32129# Compiler output produced by configure, useful for debugging
32130# configure, is in config.log if it exists.
32131
32132debug=false
32133ac_cs_recheck=false
32134ac_cs_silent=false
32135SHELL=\${CONFIG_SHELL-$SHELL}
32136_ACEOF
32137
32138cat >>$CONFIG_STATUS <<\_ACEOF
32139## --------------------- ##
32140## M4sh Initialization.  ##
32141## --------------------- ##
32142
32143# Be Bourne compatible
32144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32145  emulate sh
32146  NULLCMD=:
32147  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32148  # is contrary to our usage.  Disable this feature.
32149  alias -g '${1+"$@"}'='"$@"'
32150elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32151  set -o posix
32152fi
32153DUALCASE=1; export DUALCASE # for MKS sh
32154
32155# Support unset when possible.
32156if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32157  as_unset=unset
32158else
32159  as_unset=false
32160fi
32161
32162
32163# Work around bugs in pre-3.0 UWIN ksh.
32164$as_unset ENV MAIL MAILPATH
32165PS1='$ '
32166PS2='> '
32167PS4='+ '
32168
32169# NLS nuisances.
32170for as_var in \
32171  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32172  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32173  LC_TELEPHONE LC_TIME
32174do
32175  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32176    eval $as_var=C; export $as_var
32177  else
32178    $as_unset $as_var
32179  fi
32180done
32181
32182# Required to use basename.
32183if expr a : '\(a\)' >/dev/null 2>&1; then
32184  as_expr=expr
32185else
32186  as_expr=false
32187fi
32188
32189if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32190  as_basename=basename
32191else
32192  as_basename=false
32193fi
32194
32195
32196# Name of the executable.
32197as_me=`$as_basename "$0" ||
32198$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32199	 X"$0" : 'X\(//\)$' \| \
32200	 X"$0" : 'X\(/\)$' \| \
32201	 .     : '\(.\)' 2>/dev/null ||
32202echo X/"$0" |
32203    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32204  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
32205  	  /^X\/\(\/\).*/{ s//\1/; q; }
32206  	  s/.*/./; q'`
32207
32208
32209# PATH needs CR, and LINENO needs CR and PATH.
32210# Avoid depending upon Character Ranges.
32211as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32212as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32213as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32214as_cr_digits='0123456789'
32215as_cr_alnum=$as_cr_Letters$as_cr_digits
32216
32217# The user is always right.
32218if test "${PATH_SEPARATOR+set}" != set; then
32219  echo "#! /bin/sh" >conf$$.sh
32220  echo  "exit 0"   >>conf$$.sh
32221  chmod +x conf$$.sh
32222  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32223    PATH_SEPARATOR=';'
32224  else
32225    PATH_SEPARATOR=:
32226  fi
32227  rm -f conf$$.sh
32228fi
32229
32230
32231  as_lineno_1=$LINENO
32232  as_lineno_2=$LINENO
32233  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32234  test "x$as_lineno_1" != "x$as_lineno_2" &&
32235  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
32236  # Find who we are.  Look in the path if we contain no path at all
32237  # relative or not.
32238  case $0 in
32239    *[\\/]* ) as_myself=$0 ;;
32240    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32241for as_dir in $PATH
32242do
32243  IFS=$as_save_IFS
32244  test -z "$as_dir" && as_dir=.
32245  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32246done
32247
32248       ;;
32249  esac
32250  # We did not find ourselves, most probably we were run as `sh COMMAND'
32251  # in which case we are not to be found in the path.
32252  if test "x$as_myself" = x; then
32253    as_myself=$0
32254  fi
32255  if test ! -f "$as_myself"; then
32256    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32257echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32258   { (exit 1); exit 1; }; }
32259  fi
32260  case $CONFIG_SHELL in
32261  '')
32262    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32263for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32264do
32265  IFS=$as_save_IFS
32266  test -z "$as_dir" && as_dir=.
32267  for as_base in sh bash ksh sh5; do
32268	 case $as_dir in
32269	 /*)
32270	   if ("$as_dir/$as_base" -c '
32271  as_lineno_1=$LINENO
32272  as_lineno_2=$LINENO
32273  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32274  test "x$as_lineno_1" != "x$as_lineno_2" &&
32275  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
32276	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32277	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32278	     CONFIG_SHELL=$as_dir/$as_base
32279	     export CONFIG_SHELL
32280	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32281	   fi;;
32282	 esac
32283       done
32284done
32285;;
32286  esac
32287
32288  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32289  # uniformly replaced by the line number.  The first 'sed' inserts a
32290  # line-number line before each line; the second 'sed' does the real
32291  # work.  The second script uses 'N' to pair each line-number line
32292  # with the numbered line, and appends trailing '-' during
32293  # substitution so that $LINENO is not a special case at line end.
32294  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32295  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
32296  sed '=' <$as_myself |
32297    sed '
32298      N
32299      s,$,-,
32300      : loop
32301      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32302      t loop
32303      s,-$,,
32304      s,^['$as_cr_digits']*\n,,
32305    ' >$as_me.lineno &&
32306  chmod +x $as_me.lineno ||
32307    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32308echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32309   { (exit 1); exit 1; }; }
32310
32311  # Don't try to exec as it changes $[0], causing all sort of problems
32312  # (the dirname of $[0] is not the place where we might find the
32313  # original and so on.  Autoconf is especially sensible to this).
32314  . ./$as_me.lineno
32315  # Exit status is that of the last command.
32316  exit
32317}
32318
32319
32320case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32321  *c*,-n*) ECHO_N= ECHO_C='
32322' ECHO_T='	' ;;
32323  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32324  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
32325esac
32326
32327if expr a : '\(a\)' >/dev/null 2>&1; then
32328  as_expr=expr
32329else
32330  as_expr=false
32331fi
32332
32333rm -f conf$$ conf$$.exe conf$$.file
32334echo >conf$$.file
32335if ln -s conf$$.file conf$$ 2>/dev/null; then
32336  # We could just check for DJGPP; but this test a) works b) is more generic
32337  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32338  if test -f conf$$.exe; then
32339    # Don't use ln at all; we don't have any links
32340    as_ln_s='cp -p'
32341  else
32342    as_ln_s='ln -s'
32343  fi
32344elif ln conf$$.file conf$$ 2>/dev/null; then
32345  as_ln_s=ln
32346else
32347  as_ln_s='cp -p'
32348fi
32349rm -f conf$$ conf$$.exe conf$$.file
32350
32351if mkdir -p . 2>/dev/null; then
32352  as_mkdir_p=:
32353else
32354  test -d ./-p && rmdir ./-p
32355  as_mkdir_p=false
32356fi
32357
32358as_executable_p="test -f"
32359
32360# Sed expression to map a string onto a valid CPP name.
32361as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32362
32363# Sed expression to map a string onto a valid variable name.
32364as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32365
32366
32367# IFS
32368# We need space, tab and new line, in precisely that order.
32369as_nl='
32370'
32371IFS=" 	$as_nl"
32372
32373# CDPATH.
32374$as_unset CDPATH
32375
32376exec 6>&1
32377
32378# Open the log real soon, to keep \$[0] and so on meaningful, and to
32379# report actual input values of CONFIG_FILES etc. instead of their
32380# values after options handling.  Logging --version etc. is OK.
32381exec 5>>config.log
32382{
32383  echo
32384  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32385## Running $as_me. ##
32386_ASBOX
32387} >&5
32388cat >&5 <<_CSEOF
32389
32390This file was extended by $as_me, which was
32391generated by GNU Autoconf 2.59.  Invocation command line was
32392
32393  CONFIG_FILES    = $CONFIG_FILES
32394  CONFIG_HEADERS  = $CONFIG_HEADERS
32395  CONFIG_LINKS    = $CONFIG_LINKS
32396  CONFIG_COMMANDS = $CONFIG_COMMANDS
32397  $ $0 $@
32398
32399_CSEOF
32400echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32401echo >&5
32402_ACEOF
32403
32404# Files that config.status was made for.
32405if test -n "$ac_config_files"; then
32406  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32407fi
32408
32409if test -n "$ac_config_headers"; then
32410  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32411fi
32412
32413if test -n "$ac_config_links"; then
32414  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32415fi
32416
32417if test -n "$ac_config_commands"; then
32418  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32419fi
32420
32421cat >>$CONFIG_STATUS <<\_ACEOF
32422
32423ac_cs_usage="\
32424\`$as_me' instantiates files from templates according to the
32425current configuration.
32426
32427Usage: $0 [OPTIONS] [FILE]...
32428
32429  -h, --help       print this help, then exit
32430  -V, --version    print version number, then exit
32431  -q, --quiet      do not print progress messages
32432  -d, --debug      don't remove temporary files
32433      --recheck    update $as_me by reconfiguring in the same conditions
32434  --file=FILE[:TEMPLATE]
32435		   instantiate the configuration file FILE
32436  --header=FILE[:TEMPLATE]
32437		   instantiate the configuration header FILE
32438
32439Configuration files:
32440$config_files
32441
32442Configuration headers:
32443$config_headers
32444
32445Configuration commands:
32446$config_commands
32447
32448Report bugs to <bug-autoconf@gnu.org>."
32449_ACEOF
32450
32451cat >>$CONFIG_STATUS <<_ACEOF
32452ac_cs_version="\\
32453config.status
32454configured by $0, generated by GNU Autoconf 2.59,
32455  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32456
32457Copyright (C) 2003 Free Software Foundation, Inc.
32458This config.status script is free software; the Free Software Foundation
32459gives unlimited permission to copy, distribute and modify it."
32460srcdir=$srcdir
32461INSTALL="$INSTALL"
32462_ACEOF
32463
32464cat >>$CONFIG_STATUS <<\_ACEOF
32465# If no file are specified by the user, then we need to provide default
32466# value.  By we need to know if files were specified by the user.
32467ac_need_defaults=:
32468while test $# != 0
32469do
32470  case $1 in
32471  --*=*)
32472    ac_option=`expr "x$1" : 'x\([^=]*\)='`
32473    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32474    ac_shift=:
32475    ;;
32476  -*)
32477    ac_option=$1
32478    ac_optarg=$2
32479    ac_shift=shift
32480    ;;
32481  *) # This is not an option, so the user has probably given explicit
32482     # arguments.
32483     ac_option=$1
32484     ac_need_defaults=false;;
32485  esac
32486
32487  case $ac_option in
32488  # Handling of the options.
32489_ACEOF
32490cat >>$CONFIG_STATUS <<\_ACEOF
32491  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32492    ac_cs_recheck=: ;;
32493  --version | --vers* | -V )
32494    echo "$ac_cs_version"; exit 0 ;;
32495  --he | --h)
32496    # Conflict between --help and --header
32497    { { echo "$as_me:$LINENO: error: ambiguous option: $1
32498Try \`$0 --help' for more information." >&5
32499echo "$as_me: error: ambiguous option: $1
32500Try \`$0 --help' for more information." >&2;}
32501   { (exit 1); exit 1; }; };;
32502  --help | --hel | -h )
32503    echo "$ac_cs_usage"; exit 0 ;;
32504  --debug | --d* | -d )
32505    debug=: ;;
32506  --file | --fil | --fi | --f )
32507    $ac_shift
32508    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32509    ac_need_defaults=false;;
32510  --header | --heade | --head | --hea )
32511    $ac_shift
32512    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32513    ac_need_defaults=false;;
32514  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32515  | -silent | --silent | --silen | --sile | --sil | --si | --s)
32516    ac_cs_silent=: ;;
32517
32518  # This is an error.
32519  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32520Try \`$0 --help' for more information." >&5
32521echo "$as_me: error: unrecognized option: $1
32522Try \`$0 --help' for more information." >&2;}
32523   { (exit 1); exit 1; }; } ;;
32524
32525  *) ac_config_targets="$ac_config_targets $1" ;;
32526
32527  esac
32528  shift
32529done
32530
32531ac_configure_extra_args=
32532
32533if $ac_cs_silent; then
32534  exec 6>/dev/null
32535  ac_configure_extra_args="$ac_configure_extra_args --silent"
32536fi
32537
32538_ACEOF
32539cat >>$CONFIG_STATUS <<_ACEOF
32540if \$ac_cs_recheck; then
32541  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32542  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32543fi
32544
32545_ACEOF
32546
32547cat >>$CONFIG_STATUS <<_ACEOF
32548#
32549# INIT-COMMANDS section.
32550#
32551
32552AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32553# Capture the value of obsolete ALL_LINGUAS because we need it to compute
32554    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32555    # from automake.
32556    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32557    # Capture the value of LINGUAS because we need it to compute CATALOGS.
32558    LINGUAS="${LINGUAS-%UNSET%}"
32559
32560
32561_ACEOF
32562
32563
32564
32565cat >>$CONFIG_STATUS <<\_ACEOF
32566for ac_config_target in $ac_config_targets
32567do
32568  case "$ac_config_target" in
32569  # Handling of arguments.
32570  "${PACKAGE}-${VERSION}.spec" ) CONFIG_FILES="$CONFIG_FILES ${PACKAGE}-${VERSION}.spec:spec.in" ;;
32571  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32572  "msggen.pl" ) CONFIG_FILES="$CONFIG_FILES msggen.pl" ;;
32573  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
32574  "nsgmls/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsgmls/Makefile" ;;
32575  "spent/Makefile" ) CONFIG_FILES="$CONFIG_FILES spent/Makefile" ;;
32576  "spam/Makefile" ) CONFIG_FILES="$CONFIG_FILES spam/Makefile" ;;
32577  "sgmlnorm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgmlnorm/Makefile" ;;
32578  "sx/Makefile" ) CONFIG_FILES="$CONFIG_FILES sx/Makefile" ;;
32579  "spcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES spcat/Makefile" ;;
32580  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32581  "include/config.h.old" ) CONFIG_FILES="$CONFIG_FILES include/config.h.old" ;;
32582  "generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES generic/Makefile" ;;
32583  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32584  "pubtext/Makefile" ) CONFIG_FILES="$CONFIG_FILES pubtext/Makefile" ;;
32585  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
32586  "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
32587  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
32588  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32589  "docsrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES docsrc/Makefile" ;;
32590  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32591  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32592  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32593  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32594echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32595   { (exit 1); exit 1; }; };;
32596  esac
32597done
32598
32599# If the user did not use the arguments to specify the items to instantiate,
32600# then the envvar interface is used.  Set only those that are not.
32601# We use the long form for the default assignment because of an extremely
32602# bizarre bug on SunOS 4.1.3.
32603if $ac_need_defaults; then
32604  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32605  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32606  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32607fi
32608
32609# Have a temporary directory for convenience.  Make it in the build tree
32610# simply because there is no reason to put it here, and in addition,
32611# creating and moving files from /tmp can sometimes cause problems.
32612# Create a temporary directory, and hook for its removal unless debugging.
32613$debug ||
32614{
32615  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32616  trap '{ (exit 1); exit 1; }' 1 2 13 15
32617}
32618
32619# Create a (secure) tmp directory for tmp files.
32620
32621{
32622  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32623  test -n "$tmp" && test -d "$tmp"
32624}  ||
32625{
32626  tmp=./confstat$$-$RANDOM
32627  (umask 077 && mkdir $tmp)
32628} ||
32629{
32630   echo "$me: cannot create a temporary directory in ." >&2
32631   { (exit 1); exit 1; }
32632}
32633
32634_ACEOF
32635
32636cat >>$CONFIG_STATUS <<_ACEOF
32637
32638#
32639# CONFIG_FILES section.
32640#
32641
32642# No need to generate the scripts if there are no CONFIG_FILES.
32643# This happens for instance when ./config.status config.h
32644if test -n "\$CONFIG_FILES"; then
32645  # Protect against being on the right side of a sed subst in config.status.
32646  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32647   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32648s,@SHELL@,$SHELL,;t t
32649s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32650s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32651s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32652s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32653s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32654s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32655s,@exec_prefix@,$exec_prefix,;t t
32656s,@prefix@,$prefix,;t t
32657s,@program_transform_name@,$program_transform_name,;t t
32658s,@bindir@,$bindir,;t t
32659s,@sbindir@,$sbindir,;t t
32660s,@libexecdir@,$libexecdir,;t t
32661s,@datadir@,$datadir,;t t
32662s,@sysconfdir@,$sysconfdir,;t t
32663s,@sharedstatedir@,$sharedstatedir,;t t
32664s,@localstatedir@,$localstatedir,;t t
32665s,@libdir@,$libdir,;t t
32666s,@includedir@,$includedir,;t t
32667s,@oldincludedir@,$oldincludedir,;t t
32668s,@infodir@,$infodir,;t t
32669s,@mandir@,$mandir,;t t
32670s,@build_alias@,$build_alias,;t t
32671s,@host_alias@,$host_alias,;t t
32672s,@target_alias@,$target_alias,;t t
32673s,@DEFS@,$DEFS,;t t
32674s,@ECHO_C@,$ECHO_C,;t t
32675s,@ECHO_N@,$ECHO_N,;t t
32676s,@ECHO_T@,$ECHO_T,;t t
32677s,@LIBS@,$LIBS,;t t
32678s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32679s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32680s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32681s,@CYGPATH_W@,$CYGPATH_W,;t t
32682s,@PACKAGE@,$PACKAGE,;t t
32683s,@VERSION@,$VERSION,;t t
32684s,@ACLOCAL@,$ACLOCAL,;t t
32685s,@AUTOCONF@,$AUTOCONF,;t t
32686s,@AUTOMAKE@,$AUTOMAKE,;t t
32687s,@AUTOHEADER@,$AUTOHEADER,;t t
32688s,@MAKEINFO@,$MAKEINFO,;t t
32689s,@install_sh@,$install_sh,;t t
32690s,@STRIP@,$STRIP,;t t
32691s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32692s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
32693s,@mkdir_p@,$mkdir_p,;t t
32694s,@AWK@,$AWK,;t t
32695s,@SET_MAKE@,$SET_MAKE,;t t
32696s,@am__leading_dot@,$am__leading_dot,;t t
32697s,@AMTAR@,$AMTAR,;t t
32698s,@am__tar@,$am__tar,;t t
32699s,@am__untar@,$am__untar,;t t
32700s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
32701s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
32702s,@MAINT@,$MAINT,;t t
32703s,@SP_LIBOSP_CUR@,$SP_LIBOSP_CUR,;t t
32704s,@SP_LIBOSP_REV@,$SP_LIBOSP_REV,;t t
32705s,@SP_LIBOSP_AGE@,$SP_LIBOSP_AGE,;t t
32706s,@CC@,$CC,;t t
32707s,@CFLAGS@,$CFLAGS,;t t
32708s,@LDFLAGS@,$LDFLAGS,;t t
32709s,@CPPFLAGS@,$CPPFLAGS,;t t
32710s,@ac_ct_CC@,$ac_ct_CC,;t t
32711s,@EXEEXT@,$EXEEXT,;t t
32712s,@OBJEXT@,$OBJEXT,;t t
32713s,@DEPDIR@,$DEPDIR,;t t
32714s,@am__include@,$am__include,;t t
32715s,@am__quote@,$am__quote,;t t
32716s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
32717s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
32718s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
32719s,@CCDEPMODE@,$CCDEPMODE,;t t
32720s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
32721s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32722s,@CPP@,$CPP,;t t
32723s,@CXX@,$CXX,;t t
32724s,@CXXFLAGS@,$CXXFLAGS,;t t
32725s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32726s,@CXXDEPMODE@,$CXXDEPMODE,;t t
32727s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
32728s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
32729s,@CXXCPP@,$CXXCPP,;t t
32730s,@LN_S@,$LN_S,;t t
32731s,@PERL@,$PERL,;t t
32732s,@build@,$build,;t t
32733s,@build_cpu@,$build_cpu,;t t
32734s,@build_vendor@,$build_vendor,;t t
32735s,@build_os@,$build_os,;t t
32736s,@host@,$host,;t t
32737s,@host_cpu@,$host_cpu,;t t
32738s,@host_vendor@,$host_vendor,;t t
32739s,@host_os@,$host_os,;t t
32740s,@EGREP@,$EGREP,;t t
32741s,@ECHO@,$ECHO,;t t
32742s,@AR@,$AR,;t t
32743s,@ac_ct_AR@,$ac_ct_AR,;t t
32744s,@RANLIB@,$RANLIB,;t t
32745s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32746s,@F77@,$F77,;t t
32747s,@FFLAGS@,$FFLAGS,;t t
32748s,@ac_ct_F77@,$ac_ct_F77,;t t
32749s,@LIBTOOL@,$LIBTOOL,;t t
32750s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
32751s,@USE_NLS@,$USE_NLS,;t t
32752s,@MSGFMT@,$MSGFMT,;t t
32753s,@GMSGFMT@,$GMSGFMT,;t t
32754s,@XGETTEXT@,$XGETTEXT,;t t
32755s,@MSGMERGE@,$MSGMERGE,;t t
32756s,@GLIBC2@,$GLIBC2,;t t
32757s,@ALLOCA@,$ALLOCA,;t t
32758s,@GLIBC21@,$GLIBC21,;t t
32759s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
32760s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
32761s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
32762s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
32763s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
32764s,@LIBICONV@,$LIBICONV,;t t
32765s,@LTLIBICONV@,$LTLIBICONV,;t t
32766s,@INTLBISON@,$INTLBISON,;t t
32767s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
32768s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
32769s,@CATOBJEXT@,$CATOBJEXT,;t t
32770s,@DATADIRNAME@,$DATADIRNAME,;t t
32771s,@INSTOBJEXT@,$INSTOBJEXT,;t t
32772s,@GENCAT@,$GENCAT,;t t
32773s,@INTLOBJS@,$INTLOBJS,;t t
32774s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
32775s,@INTLLIBS@,$INTLLIBS,;t t
32776s,@LIBINTL@,$LIBINTL,;t t
32777s,@LTLIBINTL@,$LTLIBINTL,;t t
32778s,@POSUB@,$POSUB,;t t
32779s,@SP_MESSAGE_DOMAIN@,$SP_MESSAGE_DOMAIN,;t t
32780s,@LIBOBJS@,$LIBOBJS,;t t
32781s,@DTDDECL_TRUE@,$DTDDECL_TRUE,;t t
32782s,@DTDDECL_FALSE@,$DTDDECL_FALSE,;t t
32783s,@XMLTO@,$XMLTO,;t t
32784s,@DOCSRC@,$DOCSRC,;t t
32785s,@PDF2PS@,$PDF2PS,;t t
32786s,@JADE@,$JADE,;t t
32787s,@JADETEX@,$JADETEX,;t t
32788s,@PDFJADETEX@,$PDFJADETEX,;t t
32789s,@EXTRADOCS@,$EXTRADOCS,;t t
32790s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32791CEOF
32792
32793_ACEOF
32794
32795  cat >>$CONFIG_STATUS <<\_ACEOF
32796  # Split the substitutions into bite-sized pieces for seds with
32797  # small command number limits, like on Digital OSF/1 and HP-UX.
32798  ac_max_sed_lines=48
32799  ac_sed_frag=1 # Number of current file.
32800  ac_beg=1 # First line for current file.
32801  ac_end=$ac_max_sed_lines # Line after last line for current file.
32802  ac_more_lines=:
32803  ac_sed_cmds=
32804  while $ac_more_lines; do
32805    if test $ac_beg -gt 1; then
32806      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32807    else
32808      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32809    fi
32810    if test ! -s $tmp/subs.frag; then
32811      ac_more_lines=false
32812    else
32813      # The purpose of the label and of the branching condition is to
32814      # speed up the sed processing (if there are no `@' at all, there
32815      # is no need to browse any of the substitutions).
32816      # These are the two extra sed commands mentioned above.
32817      (echo ':t
32818  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32819      if test -z "$ac_sed_cmds"; then
32820	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32821      else
32822	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32823      fi
32824      ac_sed_frag=`expr $ac_sed_frag + 1`
32825      ac_beg=$ac_end
32826      ac_end=`expr $ac_end + $ac_max_sed_lines`
32827    fi
32828  done
32829  if test -z "$ac_sed_cmds"; then
32830    ac_sed_cmds=cat
32831  fi
32832fi # test -n "$CONFIG_FILES"
32833
32834_ACEOF
32835cat >>$CONFIG_STATUS <<\_ACEOF
32836for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32837  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32838  case $ac_file in
32839  - | *:- | *:-:* ) # input from stdin
32840	cat >$tmp/stdin
32841	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32842	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32843  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32844	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32845  * )   ac_file_in=$ac_file.in ;;
32846  esac
32847
32848  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32849  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32850$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32851	 X"$ac_file" : 'X\(//\)[^/]' \| \
32852	 X"$ac_file" : 'X\(//\)$' \| \
32853	 X"$ac_file" : 'X\(/\)' \| \
32854	 .     : '\(.\)' 2>/dev/null ||
32855echo X"$ac_file" |
32856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32857  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32858  	  /^X\(\/\/\)$/{ s//\1/; q; }
32859  	  /^X\(\/\).*/{ s//\1/; q; }
32860  	  s/.*/./; q'`
32861  { if $as_mkdir_p; then
32862    mkdir -p "$ac_dir"
32863  else
32864    as_dir="$ac_dir"
32865    as_dirs=
32866    while test ! -d "$as_dir"; do
32867      as_dirs="$as_dir $as_dirs"
32868      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32869$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32870	 X"$as_dir" : 'X\(//\)[^/]' \| \
32871	 X"$as_dir" : 'X\(//\)$' \| \
32872	 X"$as_dir" : 'X\(/\)' \| \
32873	 .     : '\(.\)' 2>/dev/null ||
32874echo X"$as_dir" |
32875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32876  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32877  	  /^X\(\/\/\)$/{ s//\1/; q; }
32878  	  /^X\(\/\).*/{ s//\1/; q; }
32879  	  s/.*/./; q'`
32880    done
32881    test ! -n "$as_dirs" || mkdir $as_dirs
32882  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32883echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32884   { (exit 1); exit 1; }; }; }
32885
32886  ac_builddir=.
32887
32888if test "$ac_dir" != .; then
32889  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32890  # A "../" for each directory in $ac_dir_suffix.
32891  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32892else
32893  ac_dir_suffix= ac_top_builddir=
32894fi
32895
32896case $srcdir in
32897  .)  # No --srcdir option.  We are building in place.
32898    ac_srcdir=.
32899    if test -z "$ac_top_builddir"; then
32900       ac_top_srcdir=.
32901    else
32902       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32903    fi ;;
32904  [\\/]* | ?:[\\/]* )  # Absolute path.
32905    ac_srcdir=$srcdir$ac_dir_suffix;
32906    ac_top_srcdir=$srcdir ;;
32907  *) # Relative path.
32908    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32909    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32910esac
32911
32912# Do not use `cd foo && pwd` to compute absolute paths, because
32913# the directories may not exist.
32914case `pwd` in
32915.) ac_abs_builddir="$ac_dir";;
32916*)
32917  case "$ac_dir" in
32918  .) ac_abs_builddir=`pwd`;;
32919  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32920  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32921  esac;;
32922esac
32923case $ac_abs_builddir in
32924.) ac_abs_top_builddir=${ac_top_builddir}.;;
32925*)
32926  case ${ac_top_builddir}. in
32927  .) ac_abs_top_builddir=$ac_abs_builddir;;
32928  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32929  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32930  esac;;
32931esac
32932case $ac_abs_builddir in
32933.) ac_abs_srcdir=$ac_srcdir;;
32934*)
32935  case $ac_srcdir in
32936  .) ac_abs_srcdir=$ac_abs_builddir;;
32937  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32938  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32939  esac;;
32940esac
32941case $ac_abs_builddir in
32942.) ac_abs_top_srcdir=$ac_top_srcdir;;
32943*)
32944  case $ac_top_srcdir in
32945  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32946  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32947  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32948  esac;;
32949esac
32950
32951
32952  case $INSTALL in
32953  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32954  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32955  esac
32956
32957  if test x"$ac_file" != x-; then
32958    { echo "$as_me:$LINENO: creating $ac_file" >&5
32959echo "$as_me: creating $ac_file" >&6;}
32960    rm -f "$ac_file"
32961  fi
32962  # Let's still pretend it is `configure' which instantiates (i.e., don't
32963  # use $as_me), people would be surprised to read:
32964  #    /* config.h.  Generated by config.status.  */
32965  if test x"$ac_file" = x-; then
32966    configure_input=
32967  else
32968    configure_input="$ac_file.  "
32969  fi
32970  configure_input=$configure_input"Generated from `echo $ac_file_in |
32971				     sed 's,.*/,,'` by configure."
32972
32973  # First look for the input files in the build tree, otherwise in the
32974  # src tree.
32975  ac_file_inputs=`IFS=:
32976    for f in $ac_file_in; do
32977      case $f in
32978      -) echo $tmp/stdin ;;
32979      [\\/$]*)
32980	 # Absolute (can't be DOS-style, as IFS=:)
32981	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32982echo "$as_me: error: cannot find input file: $f" >&2;}
32983   { (exit 1); exit 1; }; }
32984	 echo "$f";;
32985      *) # Relative
32986	 if test -f "$f"; then
32987	   # Build tree
32988	   echo "$f"
32989	 elif test -f "$srcdir/$f"; then
32990	   # Source tree
32991	   echo "$srcdir/$f"
32992	 else
32993	   # /dev/null tree
32994	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32995echo "$as_me: error: cannot find input file: $f" >&2;}
32996   { (exit 1); exit 1; }; }
32997	 fi;;
32998      esac
32999    done` || { (exit 1); exit 1; }
33000_ACEOF
33001cat >>$CONFIG_STATUS <<_ACEOF
33002  sed "$ac_vpsub
33003$extrasub
33004_ACEOF
33005cat >>$CONFIG_STATUS <<\_ACEOF
33006:t
33007/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33008s,@configure_input@,$configure_input,;t t
33009s,@srcdir@,$ac_srcdir,;t t
33010s,@abs_srcdir@,$ac_abs_srcdir,;t t
33011s,@top_srcdir@,$ac_top_srcdir,;t t
33012s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33013s,@builddir@,$ac_builddir,;t t
33014s,@abs_builddir@,$ac_abs_builddir,;t t
33015s,@top_builddir@,$ac_top_builddir,;t t
33016s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33017s,@INSTALL@,$ac_INSTALL,;t t
33018" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33019  rm -f $tmp/stdin
33020  if test x"$ac_file" != x-; then
33021    mv $tmp/out $ac_file
33022  else
33023    cat $tmp/out
33024    rm -f $tmp/out
33025  fi
33026
33027done
33028_ACEOF
33029cat >>$CONFIG_STATUS <<\_ACEOF
33030
33031#
33032# CONFIG_HEADER section.
33033#
33034
33035# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33036# NAME is the cpp macro being defined and VALUE is the value it is being given.
33037#
33038# ac_d sets the value in "#define NAME VALUE" lines.
33039ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
33040ac_dB='[	 ].*$,\1#\2'
33041ac_dC=' '
33042ac_dD=',;t'
33043# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33044ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
33045ac_uB='$,\1#\2define\3'
33046ac_uC=' '
33047ac_uD=',;t'
33048
33049for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33050  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33051  case $ac_file in
33052  - | *:- | *:-:* ) # input from stdin
33053	cat >$tmp/stdin
33054	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33055	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33056  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33057	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33058  * )   ac_file_in=$ac_file.in ;;
33059  esac
33060
33061  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33062echo "$as_me: creating $ac_file" >&6;}
33063
33064  # First look for the input files in the build tree, otherwise in the
33065  # src tree.
33066  ac_file_inputs=`IFS=:
33067    for f in $ac_file_in; do
33068      case $f in
33069      -) echo $tmp/stdin ;;
33070      [\\/$]*)
33071	 # Absolute (can't be DOS-style, as IFS=:)
33072	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33073echo "$as_me: error: cannot find input file: $f" >&2;}
33074   { (exit 1); exit 1; }; }
33075	 # Do quote $f, to prevent DOS paths from being IFS'd.
33076	 echo "$f";;
33077      *) # Relative
33078	 if test -f "$f"; then
33079	   # Build tree
33080	   echo "$f"
33081	 elif test -f "$srcdir/$f"; then
33082	   # Source tree
33083	   echo "$srcdir/$f"
33084	 else
33085	   # /dev/null tree
33086	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33087echo "$as_me: error: cannot find input file: $f" >&2;}
33088   { (exit 1); exit 1; }; }
33089	 fi;;
33090      esac
33091    done` || { (exit 1); exit 1; }
33092  # Remove the trailing spaces.
33093  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
33094
33095_ACEOF
33096
33097# Transform confdefs.h into two sed scripts, `conftest.defines' and
33098# `conftest.undefs', that substitutes the proper values into
33099# config.h.in to produce config.h.  The first handles `#define'
33100# templates, and the second `#undef' templates.
33101# And first: Protect against being on the right side of a sed subst in
33102# config.status.  Protect against being in an unquoted here document
33103# in config.status.
33104rm -f conftest.defines conftest.undefs
33105# Using a here document instead of a string reduces the quoting nightmare.
33106# Putting comments in sed scripts is not portable.
33107#
33108# `end' is used to avoid that the second main sed command (meant for
33109# 0-ary CPP macros) applies to n-ary macro definitions.
33110# See the Autoconf documentation for `clear'.
33111cat >confdef2sed.sed <<\_ACEOF
33112s/[\\&,]/\\&/g
33113s,[\\$`],\\&,g
33114t clear
33115: clear
33116s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33117t end
33118s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33119: end
33120_ACEOF
33121# If some macros were called several times there might be several times
33122# the same #defines, which is useless.  Nevertheless, we may not want to
33123# sort them, since we want the *last* AC-DEFINE to be honored.
33124uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33125sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33126rm -f confdef2sed.sed
33127
33128# This sed command replaces #undef with comments.  This is necessary, for
33129# example, in the case of _POSIX_SOURCE, which is predefined and required
33130# on some systems where configure will not decide to define it.
33131cat >>conftest.undefs <<\_ACEOF
33132s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33133_ACEOF
33134
33135# Break up conftest.defines because some shells have a limit on the size
33136# of here documents, and old seds have small limits too (100 cmds).
33137echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33138echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33139echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33140echo '  :' >>$CONFIG_STATUS
33141rm -f conftest.tail
33142while grep . conftest.defines >/dev/null
33143do
33144  # Write a limited-size here document to $tmp/defines.sed.
33145  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33146  # Speed up: don't consider the non `#define' lines.
33147  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
33148  # Work around the forget-to-reset-the-flag bug.
33149  echo 't clr' >>$CONFIG_STATUS
33150  echo ': clr' >>$CONFIG_STATUS
33151  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33152  echo 'CEOF
33153  sed -f $tmp/defines.sed $tmp/in >$tmp/out
33154  rm -f $tmp/in
33155  mv $tmp/out $tmp/in
33156' >>$CONFIG_STATUS
33157  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33158  rm -f conftest.defines
33159  mv conftest.tail conftest.defines
33160done
33161rm -f conftest.defines
33162echo '  fi # grep' >>$CONFIG_STATUS
33163echo >>$CONFIG_STATUS
33164
33165# Break up conftest.undefs because some shells have a limit on the size
33166# of here documents, and old seds have small limits too (100 cmds).
33167echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
33168rm -f conftest.tail
33169while grep . conftest.undefs >/dev/null
33170do
33171  # Write a limited-size here document to $tmp/undefs.sed.
33172  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33173  # Speed up: don't consider the non `#undef'
33174  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
33175  # Work around the forget-to-reset-the-flag bug.
33176  echo 't clr' >>$CONFIG_STATUS
33177  echo ': clr' >>$CONFIG_STATUS
33178  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33179  echo 'CEOF
33180  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33181  rm -f $tmp/in
33182  mv $tmp/out $tmp/in
33183' >>$CONFIG_STATUS
33184  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33185  rm -f conftest.undefs
33186  mv conftest.tail conftest.undefs
33187done
33188rm -f conftest.undefs
33189
33190cat >>$CONFIG_STATUS <<\_ACEOF
33191  # Let's still pretend it is `configure' which instantiates (i.e., don't
33192  # use $as_me), people would be surprised to read:
33193  #    /* config.h.  Generated by config.status.  */
33194  if test x"$ac_file" = x-; then
33195    echo "/* Generated by configure.  */" >$tmp/config.h
33196  else
33197    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
33198  fi
33199  cat $tmp/in >>$tmp/config.h
33200  rm -f $tmp/in
33201  if test x"$ac_file" != x-; then
33202    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33203      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33204echo "$as_me: $ac_file is unchanged" >&6;}
33205    else
33206      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33208	 X"$ac_file" : 'X\(//\)[^/]' \| \
33209	 X"$ac_file" : 'X\(//\)$' \| \
33210	 X"$ac_file" : 'X\(/\)' \| \
33211	 .     : '\(.\)' 2>/dev/null ||
33212echo X"$ac_file" |
33213    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33214  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33215  	  /^X\(\/\/\)$/{ s//\1/; q; }
33216  	  /^X\(\/\).*/{ s//\1/; q; }
33217  	  s/.*/./; q'`
33218      { if $as_mkdir_p; then
33219    mkdir -p "$ac_dir"
33220  else
33221    as_dir="$ac_dir"
33222    as_dirs=
33223    while test ! -d "$as_dir"; do
33224      as_dirs="$as_dir $as_dirs"
33225      as_dir=`(dirname "$as_dir") 2>/dev/null ||
33226$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33227	 X"$as_dir" : 'X\(//\)[^/]' \| \
33228	 X"$as_dir" : 'X\(//\)$' \| \
33229	 X"$as_dir" : 'X\(/\)' \| \
33230	 .     : '\(.\)' 2>/dev/null ||
33231echo X"$as_dir" |
33232    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33233  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33234  	  /^X\(\/\/\)$/{ s//\1/; q; }
33235  	  /^X\(\/\).*/{ s//\1/; q; }
33236  	  s/.*/./; q'`
33237    done
33238    test ! -n "$as_dirs" || mkdir $as_dirs
33239  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33240echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33241   { (exit 1); exit 1; }; }; }
33242
33243      rm -f $ac_file
33244      mv $tmp/config.h $ac_file
33245    fi
33246  else
33247    cat $tmp/config.h
33248    rm -f $tmp/config.h
33249  fi
33250# Compute $ac_file's index in $config_headers.
33251_am_stamp_count=1
33252for _am_header in $config_headers :; do
33253  case $_am_header in
33254    $ac_file | $ac_file:* )
33255      break ;;
33256    * )
33257      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33258  esac
33259done
33260echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
33261$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33262	 X$ac_file : 'X\(//\)[^/]' \| \
33263	 X$ac_file : 'X\(//\)$' \| \
33264	 X$ac_file : 'X\(/\)' \| \
33265	 .     : '\(.\)' 2>/dev/null ||
33266echo X$ac_file |
33267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33268  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33269  	  /^X\(\/\/\)$/{ s//\1/; q; }
33270  	  /^X\(\/\).*/{ s//\1/; q; }
33271  	  s/.*/./; q'`/stamp-h$_am_stamp_count
33272done
33273_ACEOF
33274cat >>$CONFIG_STATUS <<\_ACEOF
33275
33276#
33277# CONFIG_COMMANDS section.
33278#
33279for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
33280  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
33281  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
33282  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
33283$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33284	 X"$ac_dest" : 'X\(//\)[^/]' \| \
33285	 X"$ac_dest" : 'X\(//\)$' \| \
33286	 X"$ac_dest" : 'X\(/\)' \| \
33287	 .     : '\(.\)' 2>/dev/null ||
33288echo X"$ac_dest" |
33289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33290  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33291  	  /^X\(\/\/\)$/{ s//\1/; q; }
33292  	  /^X\(\/\).*/{ s//\1/; q; }
33293  	  s/.*/./; q'`
33294  { if $as_mkdir_p; then
33295    mkdir -p "$ac_dir"
33296  else
33297    as_dir="$ac_dir"
33298    as_dirs=
33299    while test ! -d "$as_dir"; do
33300      as_dirs="$as_dir $as_dirs"
33301      as_dir=`(dirname "$as_dir") 2>/dev/null ||
33302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33303	 X"$as_dir" : 'X\(//\)[^/]' \| \
33304	 X"$as_dir" : 'X\(//\)$' \| \
33305	 X"$as_dir" : 'X\(/\)' \| \
33306	 .     : '\(.\)' 2>/dev/null ||
33307echo X"$as_dir" |
33308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33309  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33310  	  /^X\(\/\/\)$/{ s//\1/; q; }
33311  	  /^X\(\/\).*/{ s//\1/; q; }
33312  	  s/.*/./; q'`
33313    done
33314    test ! -n "$as_dirs" || mkdir $as_dirs
33315  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33316echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33317   { (exit 1); exit 1; }; }; }
33318
33319  ac_builddir=.
33320
33321if test "$ac_dir" != .; then
33322  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33323  # A "../" for each directory in $ac_dir_suffix.
33324  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33325else
33326  ac_dir_suffix= ac_top_builddir=
33327fi
33328
33329case $srcdir in
33330  .)  # No --srcdir option.  We are building in place.
33331    ac_srcdir=.
33332    if test -z "$ac_top_builddir"; then
33333       ac_top_srcdir=.
33334    else
33335       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33336    fi ;;
33337  [\\/]* | ?:[\\/]* )  # Absolute path.
33338    ac_srcdir=$srcdir$ac_dir_suffix;
33339    ac_top_srcdir=$srcdir ;;
33340  *) # Relative path.
33341    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33342    ac_top_srcdir=$ac_top_builddir$srcdir ;;
33343esac
33344
33345# Do not use `cd foo && pwd` to compute absolute paths, because
33346# the directories may not exist.
33347case `pwd` in
33348.) ac_abs_builddir="$ac_dir";;
33349*)
33350  case "$ac_dir" in
33351  .) ac_abs_builddir=`pwd`;;
33352  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33353  *) ac_abs_builddir=`pwd`/"$ac_dir";;
33354  esac;;
33355esac
33356case $ac_abs_builddir in
33357.) ac_abs_top_builddir=${ac_top_builddir}.;;
33358*)
33359  case ${ac_top_builddir}. in
33360  .) ac_abs_top_builddir=$ac_abs_builddir;;
33361  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33362  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33363  esac;;
33364esac
33365case $ac_abs_builddir in
33366.) ac_abs_srcdir=$ac_srcdir;;
33367*)
33368  case $ac_srcdir in
33369  .) ac_abs_srcdir=$ac_abs_builddir;;
33370  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33371  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33372  esac;;
33373esac
33374case $ac_abs_builddir in
33375.) ac_abs_top_srcdir=$ac_top_srcdir;;
33376*)
33377  case $ac_top_srcdir in
33378  .) ac_abs_top_srcdir=$ac_abs_builddir;;
33379  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33380  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33381  esac;;
33382esac
33383
33384
33385  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
33386echo "$as_me: executing $ac_dest commands" >&6;}
33387  case $ac_dest in
33388    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33389  # Strip MF so we end up with the name of the file.
33390  mf=`echo "$mf" | sed -e 's/:.*$//'`
33391  # Check whether this is an Automake generated Makefile or not.
33392  # We used to match only the files named `Makefile.in', but
33393  # some people rename them; so instead we look at the file content.
33394  # Grep'ing the first line is not enough: some people post-process
33395  # each Makefile.in and add a new line on top of each file to say so.
33396  # So let's grep whole file.
33397  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33398    dirpart=`(dirname "$mf") 2>/dev/null ||
33399$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33400	 X"$mf" : 'X\(//\)[^/]' \| \
33401	 X"$mf" : 'X\(//\)$' \| \
33402	 X"$mf" : 'X\(/\)' \| \
33403	 .     : '\(.\)' 2>/dev/null ||
33404echo X"$mf" |
33405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33406  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33407  	  /^X\(\/\/\)$/{ s//\1/; q; }
33408  	  /^X\(\/\).*/{ s//\1/; q; }
33409  	  s/.*/./; q'`
33410  else
33411    continue
33412  fi
33413  # Extract the definition of DEPDIR, am__include, and am__quote
33414  # from the Makefile without running `make'.
33415  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33416  test -z "$DEPDIR" && continue
33417  am__include=`sed -n 's/^am__include = //p' < "$mf"`
33418  test -z "am__include" && continue
33419  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33420  # When using ansi2knr, U may be empty or an underscore; expand it
33421  U=`sed -n 's/^U = //p' < "$mf"`
33422  # Find all dependency output files, they are included files with
33423  # $(DEPDIR) in their names.  We invoke sed twice because it is the
33424  # simplest approach to changing $(DEPDIR) to its actual value in the
33425  # expansion.
33426  for file in `sed -n "
33427    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33428       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33429    # Make sure the directory exists.
33430    test -f "$dirpart/$file" && continue
33431    fdir=`(dirname "$file") 2>/dev/null ||
33432$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33433	 X"$file" : 'X\(//\)[^/]' \| \
33434	 X"$file" : 'X\(//\)$' \| \
33435	 X"$file" : 'X\(/\)' \| \
33436	 .     : '\(.\)' 2>/dev/null ||
33437echo X"$file" |
33438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33439  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33440  	  /^X\(\/\/\)$/{ s//\1/; q; }
33441  	  /^X\(\/\).*/{ s//\1/; q; }
33442  	  s/.*/./; q'`
33443    { if $as_mkdir_p; then
33444    mkdir -p $dirpart/$fdir
33445  else
33446    as_dir=$dirpart/$fdir
33447    as_dirs=
33448    while test ! -d "$as_dir"; do
33449      as_dirs="$as_dir $as_dirs"
33450      as_dir=`(dirname "$as_dir") 2>/dev/null ||
33451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33452	 X"$as_dir" : 'X\(//\)[^/]' \| \
33453	 X"$as_dir" : 'X\(//\)$' \| \
33454	 X"$as_dir" : 'X\(/\)' \| \
33455	 .     : '\(.\)' 2>/dev/null ||
33456echo X"$as_dir" |
33457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33458  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33459  	  /^X\(\/\/\)$/{ s//\1/; q; }
33460  	  /^X\(\/\).*/{ s//\1/; q; }
33461  	  s/.*/./; q'`
33462    done
33463    test ! -n "$as_dirs" || mkdir $as_dirs
33464  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
33465echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
33466   { (exit 1); exit 1; }; }; }
33467
33468    # echo "creating $dirpart/$file"
33469    echo '# dummy' > "$dirpart/$file"
33470  done
33471done
33472 ;;
33473    default-1 )
33474    for ac_file in $CONFIG_FILES; do
33475      # Support "outfile[:infile[:infile...]]"
33476      case "$ac_file" in
33477        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33478      esac
33479      # PO directories have a Makefile.in generated from Makefile.in.in.
33480      case "$ac_file" in */Makefile.in)
33481        # Adjust a relative srcdir.
33482        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33483        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33484        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33485        # In autoconf-2.13 it is called $ac_given_srcdir.
33486        # In autoconf-2.50 it is called $srcdir.
33487        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33488        case "$ac_given_srcdir" in
33489          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33490          /*) top_srcdir="$ac_given_srcdir" ;;
33491          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33492        esac
33493        # Treat a directory as a PO directory if and only if it has a
33494        # POTFILES.in file. This allows packages to have multiple PO
33495        # directories under different names or in different locations.
33496        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33497          rm -f "$ac_dir/POTFILES"
33498          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33499          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33500          POMAKEFILEDEPS="POTFILES.in"
33501          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33502          # on $ac_dir but don't depend on user-specified configuration
33503          # parameters.
33504          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33505            # The LINGUAS file contains the set of available languages.
33506            if test -n "$OBSOLETE_ALL_LINGUAS"; then
33507              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33508            fi
33509            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33510            # Hide the ALL_LINGUAS assigment from automake.
33511            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33512            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33513          else
33514            # The set of available languages was given in configure.in.
33515            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33516          fi
33517          # Compute POFILES
33518          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33519          # Compute UPDATEPOFILES
33520          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33521          # Compute DUMMYPOFILES
33522          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33523          # Compute GMOFILES
33524          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33525          case "$ac_given_srcdir" in
33526            .) srcdirpre= ;;
33527            *) srcdirpre='$(srcdir)/' ;;
33528          esac
33529          POFILES=
33530          UPDATEPOFILES=
33531          DUMMYPOFILES=
33532          GMOFILES=
33533          for lang in $ALL_LINGUAS; do
33534            POFILES="$POFILES $srcdirpre$lang.po"
33535            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33536            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33537            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33538          done
33539          # CATALOGS depends on both $ac_dir and the user's LINGUAS
33540          # environment variable.
33541          INST_LINGUAS=
33542          if test -n "$ALL_LINGUAS"; then
33543            for presentlang in $ALL_LINGUAS; do
33544              useit=no
33545              if test "%UNSET%" != "$LINGUAS"; then
33546                desiredlanguages="$LINGUAS"
33547              else
33548                desiredlanguages="$ALL_LINGUAS"
33549              fi
33550              for desiredlang in $desiredlanguages; do
33551                # Use the presentlang catalog if desiredlang is
33552                #   a. equal to presentlang, or
33553                #   b. a variant of presentlang (because in this case,
33554                #      presentlang can be used as a fallback for messages
33555                #      which are not translated in the desiredlang catalog).
33556                case "$desiredlang" in
33557                  "$presentlang"*) useit=yes;;
33558                esac
33559              done
33560              if test $useit = yes; then
33561                INST_LINGUAS="$INST_LINGUAS $presentlang"
33562              fi
33563            done
33564          fi
33565          CATALOGS=
33566          if test -n "$INST_LINGUAS"; then
33567            for lang in $INST_LINGUAS; do
33568              CATALOGS="$CATALOGS $lang.gmo"
33569            done
33570          fi
33571          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33572          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
33573          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33574            if test -f "$f"; then
33575              case "$f" in
33576                *.orig | *.bak | *~) ;;
33577                *) cat "$f" >> "$ac_dir/Makefile" ;;
33578              esac
33579            fi
33580          done
33581        fi
33582        ;;
33583      esac
33584    done ;;
33585  esac
33586done
33587_ACEOF
33588
33589cat >>$CONFIG_STATUS <<\_ACEOF
33590
33591{ (exit 0); exit 0; }
33592_ACEOF
33593chmod +x $CONFIG_STATUS
33594ac_clean_files=$ac_clean_files_save
33595
33596
33597# configure is writing to config.log, and then calls config.status.
33598# config.status does its own redirection, appending to config.log.
33599# Unfortunately, on DOS this fails, as config.log is still kept open
33600# by configure, so config.status won't be able to write to it; its
33601# output is simply discarded.  So we exec the FD to /dev/null,
33602# effectively closing config.log, so it can be properly (re)opened and
33603# appended to by config.status.  When coming back to configure, we
33604# need to make the FD available again.
33605if test "$no_create" != yes; then
33606  ac_cs_success=:
33607  ac_config_status_args=
33608  test "$silent" = yes &&
33609    ac_config_status_args="$ac_config_status_args --quiet"
33610  exec 5>/dev/null
33611  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33612  exec 5>>config.log
33613  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33614  # would make configure fail if this is the last instruction.
33615  $ac_cs_success || { (exit 1); exit 1; }
33616fi
33617
33618