1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="gsmlib/gsm_error.h"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA GSM_VERSION MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 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 COMPILE_INTL_TRUE COMPILE_INTL_FALSE LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013System types:
1014  --build=BUILD     configure for building on BUILD [guessed]
1015  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --disable-dependency-tracking  speeds up one-time build
1027  --enable-dependency-tracking   do not reject slow dependency extractors
1028  --enable-shared[=PKGS]
1029                          build shared libraries [default=yes]
1030  --enable-static[=PKGS]
1031                          build static libraries [default=yes]
1032  --enable-fast-install[=PKGS]
1033                          optimize for fast installation [default=yes]
1034  --disable-libtool-lock  avoid locking (might break parallel builds)
1035  --disable-nls           do not use Native Language Support
1036  --disable-rpath         do not hardcode runtime library paths
1037
1038Optional Packages:
1039  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042  --with-pic              try to use only PIC/non-PIC objects [default=use
1043                          both]
1044  --with-tags[=TAGS]
1045                          include additional configurations [automatic]
1046  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1047  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1048  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1049  --with-included-gettext use the GNU gettext library included here
1050  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1051  --without-libintl-prefix     don't search for libintl in includedir and libdir
1052
1053Some influential environment variables:
1054  CC          C compiler command
1055  CFLAGS      C compiler flags
1056  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057              nonstandard directory <lib dir>
1058  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059              headers in a nonstandard directory <include dir>
1060  CPP         C preprocessor
1061  CXX         C++ compiler command
1062  CXXFLAGS    C++ compiler flags
1063  CXXCPP      C++ preprocessor
1064  F77         Fortran 77 compiler command
1065  FFLAGS      Fortran 77 compiler flags
1066
1067Use these variables to override the choices made by `configure' or to help
1068it to find libraries and programs with nonstandard names/locations.
1069
1070_ACEOF
1071fi
1072
1073if test "$ac_init_help" = "recursive"; then
1074  # If there are subdirs, report their specific --help.
1075  ac_popdir=`pwd`
1076  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077    test -d $ac_dir || continue
1078    ac_builddir=.
1079
1080if test "$ac_dir" != .; then
1081  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082  # A "../" for each directory in $ac_dir_suffix.
1083  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084else
1085  ac_dir_suffix= ac_top_builddir=
1086fi
1087
1088case $srcdir in
1089  .)  # No --srcdir option.  We are building in place.
1090    ac_srcdir=.
1091    if test -z "$ac_top_builddir"; then
1092       ac_top_srcdir=.
1093    else
1094       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095    fi ;;
1096  [\\/]* | ?:[\\/]* )  # Absolute path.
1097    ac_srcdir=$srcdir$ac_dir_suffix;
1098    ac_top_srcdir=$srcdir ;;
1099  *) # Relative path.
1100    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102esac
1103
1104# Do not use `cd foo && pwd` to compute absolute paths, because
1105# the directories may not exist.
1106case `pwd` in
1107.) ac_abs_builddir="$ac_dir";;
1108*)
1109  case "$ac_dir" in
1110  .) ac_abs_builddir=`pwd`;;
1111  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113  esac;;
1114esac
1115case $ac_abs_builddir in
1116.) ac_abs_top_builddir=${ac_top_builddir}.;;
1117*)
1118  case ${ac_top_builddir}. in
1119  .) ac_abs_top_builddir=$ac_abs_builddir;;
1120  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122  esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_srcdir=$ac_srcdir;;
1126*)
1127  case $ac_srcdir in
1128  .) ac_abs_srcdir=$ac_abs_builddir;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_srcdir=$ac_top_srcdir;;
1135*)
1136  case $ac_top_srcdir in
1137  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140  esac;;
1141esac
1142
1143    cd $ac_dir
1144    # Check for guested configure; otherwise get Cygnus style configure.
1145    if test -f $ac_srcdir/configure.gnu; then
1146      echo
1147      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148    elif test -f $ac_srcdir/configure; then
1149      echo
1150      $SHELL $ac_srcdir/configure  --help=recursive
1151    elif test -f $ac_srcdir/configure.ac ||
1152	   test -f $ac_srcdir/configure.in; then
1153      echo
1154      $ac_configure --help
1155    else
1156      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157    fi
1158    cd "$ac_popdir"
1159  done
1160fi
1161
1162test -n "$ac_init_help" && exit 0
1163if $ac_init_version; then
1164  cat <<\_ACEOF
1165
1166Copyright (C) 2003 Free Software Foundation, Inc.
1167This configure script is free software; the Free Software Foundation
1168gives unlimited permission to copy, distribute and modify it.
1169_ACEOF
1170  exit 0
1171fi
1172exec 5>config.log
1173cat >&5 <<_ACEOF
1174This file contains any messages produced by compilers while
1175running configure, to aid debugging if configure makes a mistake.
1176
1177It was created by $as_me, which was
1178generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180  $ $0 $@
1181
1182_ACEOF
1183{
1184cat <<_ASUNAME
1185## --------- ##
1186## Platform. ##
1187## --------- ##
1188
1189hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206_ASUNAME
1207
1208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209for as_dir in $PATH
1210do
1211  IFS=$as_save_IFS
1212  test -z "$as_dir" && as_dir=.
1213  echo "PATH: $as_dir"
1214done
1215
1216} >&5
1217
1218cat >&5 <<_ACEOF
1219
1220
1221## ----------- ##
1222## Core tests. ##
1223## ----------- ##
1224
1225_ACEOF
1226
1227
1228# Keep a trace of the command line.
1229# Strip out --no-create and --no-recursion so they do not pile up.
1230# Strip out --silent because we don't want to record it for future runs.
1231# Also quote any args containing shell meta-characters.
1232# Make two passes to allow for proper duplicate-argument suppression.
1233ac_configure_args=
1234ac_configure_args0=
1235ac_configure_args1=
1236ac_sep=
1237ac_must_keep_next=false
1238for ac_pass in 1 2
1239do
1240  for ac_arg
1241  do
1242    case $ac_arg in
1243    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245    | -silent | --silent | --silen | --sile | --sil)
1246      continue ;;
1247    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249    esac
1250    case $ac_pass in
1251    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252    2)
1253      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254      if test $ac_must_keep_next = true; then
1255	ac_must_keep_next=false # Got value, back to normal.
1256      else
1257	case $ac_arg in
1258	  *=* | --config-cache | -C | -disable-* | --disable-* \
1259	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261	  | -with-* | --with-* | -without-* | --without-* | --x)
1262	    case "$ac_configure_args0 " in
1263	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264	    esac
1265	    ;;
1266	  -* ) ac_must_keep_next=true ;;
1267	esac
1268      fi
1269      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270      # Get rid of the leading space.
1271      ac_sep=" "
1272      ;;
1273    esac
1274  done
1275done
1276$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279# When interrupted or exit'd, cleanup temporary files, and complete
1280# config.log.  We remove comments because anyway the quotes in there
1281# would cause problems or look ugly.
1282# WARNING: Be sure not to use single quotes in there, as some shells,
1283# such as our DU 5.0 friend, will then `close' the trap.
1284trap 'exit_status=$?
1285  # Save into config.log some information that might help in debugging.
1286  {
1287    echo
1288
1289    cat <<\_ASBOX
1290## ---------------- ##
1291## Cache variables. ##
1292## ---------------- ##
1293_ASBOX
1294    echo
1295    # The following way of writing the cache mishandles newlines in values,
1296{
1297  (set) 2>&1 |
1298    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299    *ac_space=\ *)
1300      sed -n \
1301	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303      ;;
1304    *)
1305      sed -n \
1306	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307      ;;
1308    esac;
1309}
1310    echo
1311
1312    cat <<\_ASBOX
1313## ----------------- ##
1314## Output variables. ##
1315## ----------------- ##
1316_ASBOX
1317    echo
1318    for ac_var in $ac_subst_vars
1319    do
1320      eval ac_val=$`echo $ac_var`
1321      echo "$ac_var='"'"'$ac_val'"'"'"
1322    done | sort
1323    echo
1324
1325    if test -n "$ac_subst_files"; then
1326      cat <<\_ASBOX
1327## ------------- ##
1328## Output files. ##
1329## ------------- ##
1330_ASBOX
1331      echo
1332      for ac_var in $ac_subst_files
1333      do
1334	eval ac_val=$`echo $ac_var`
1335	echo "$ac_var='"'"'$ac_val'"'"'"
1336      done | sort
1337      echo
1338    fi
1339
1340    if test -s confdefs.h; then
1341      cat <<\_ASBOX
1342## ----------- ##
1343## confdefs.h. ##
1344## ----------- ##
1345_ASBOX
1346      echo
1347      sed "/^$/d" confdefs.h | sort
1348      echo
1349    fi
1350    test "$ac_signal" != 0 &&
1351      echo "$as_me: caught signal $ac_signal"
1352    echo "$as_me: exit $exit_status"
1353  } >&5
1354  rm -f core *.core &&
1355  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356    exit $exit_status
1357     ' 0
1358for ac_signal in 1 2 13 15; do
1359  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360done
1361ac_signal=0
1362
1363# confdefs.h avoids OS command line length limits that DEFS can exceed.
1364rm -rf conftest* confdefs.h
1365# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366echo >confdefs.h
1367
1368# Predefined preprocessor variables.
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_NAME "$PACKAGE_NAME"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_VERSION "$PACKAGE_VERSION"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_STRING "$PACKAGE_STRING"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392_ACEOF
1393
1394
1395# Let the site file select an alternate cache file if it wants to.
1396# Prefer explicitly selected file to automatically selected ones.
1397if test -z "$CONFIG_SITE"; then
1398  if test "x$prefix" != xNONE; then
1399    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400  else
1401    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402  fi
1403fi
1404for ac_site_file in $CONFIG_SITE; do
1405  if test -r "$ac_site_file"; then
1406    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407echo "$as_me: loading site script $ac_site_file" >&6;}
1408    sed 's/^/| /' "$ac_site_file" >&5
1409    . "$ac_site_file"
1410  fi
1411done
1412
1413if test -r "$cache_file"; then
1414  # Some versions of bash will fail to source /dev/null (special
1415  # files actually), so we avoid doing that.
1416  if test -f "$cache_file"; then
1417    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418echo "$as_me: loading cache $cache_file" >&6;}
1419    case $cache_file in
1420      [\\/]* | ?:[\\/]* ) . $cache_file;;
1421      *)                      . ./$cache_file;;
1422    esac
1423  fi
1424else
1425  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426echo "$as_me: creating cache $cache_file" >&6;}
1427  >$cache_file
1428fi
1429
1430# Check that the precious variables saved in the cache have kept the same
1431# value.
1432ac_cache_corrupted=false
1433for ac_var in `(set) 2>&1 |
1434	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436  eval ac_new_set=\$ac_env_${ac_var}_set
1437  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438  eval ac_new_val="\$ac_env_${ac_var}_value"
1439  case $ac_old_set,$ac_new_set in
1440    set,)
1441      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443      ac_cache_corrupted=: ;;
1444    ,set)
1445      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447      ac_cache_corrupted=: ;;
1448    ,);;
1449    *)
1450      if test "x$ac_old_val" != "x$ac_new_val"; then
1451	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454echo "$as_me:   former value:  $ac_old_val" >&2;}
1455	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456echo "$as_me:   current value: $ac_new_val" >&2;}
1457	ac_cache_corrupted=:
1458      fi;;
1459  esac
1460  # Pass precious variables to config.status.
1461  if test "$ac_new_set" = set; then
1462    case $ac_new_val in
1463    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465    *) ac_arg=$ac_var=$ac_new_val ;;
1466    esac
1467    case " $ac_configure_args " in
1468      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470    esac
1471  fi
1472done
1473if $ac_cache_corrupted; then
1474  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478   { (exit 1); exit 1; }; }
1479fi
1480
1481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506ac_aux_dir=
1507for ac_dir in scripts $srcdir/scripts; do
1508  if test -f $ac_dir/install-sh; then
1509    ac_aux_dir=$ac_dir
1510    ac_install_sh="$ac_aux_dir/install-sh -c"
1511    break
1512  elif test -f $ac_dir/install.sh; then
1513    ac_aux_dir=$ac_dir
1514    ac_install_sh="$ac_aux_dir/install.sh -c"
1515    break
1516  elif test -f $ac_dir/shtool; then
1517    ac_aux_dir=$ac_dir
1518    ac_install_sh="$ac_aux_dir/shtool install -c"
1519    break
1520  fi
1521done
1522if test -z "$ac_aux_dir"; then
1523  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1524echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1525   { (exit 1); exit 1; }; }
1526fi
1527ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1528ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1529ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1530
1531# Find a good install program.  We prefer a C program (faster),
1532# so one script is as good as another.  But avoid the broken or
1533# incompatible versions:
1534# SysV /etc/install, /usr/sbin/install
1535# SunOS /usr/etc/install
1536# IRIX /sbin/install
1537# AIX /bin/install
1538# AmigaOS /C/install, which installs bootblocks on floppy discs
1539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1540# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1542# OS/2's system install, which has a completely different semantic
1543# ./install, which can be erroneously created by make from ./install.sh.
1544echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1545echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1546if test -z "$INSTALL"; then
1547if test "${ac_cv_path_install+set}" = set; then
1548  echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551for as_dir in $PATH
1552do
1553  IFS=$as_save_IFS
1554  test -z "$as_dir" && as_dir=.
1555  # Account for people who put trailing slashes in PATH elements.
1556case $as_dir/ in
1557  ./ | .// | /cC/* | \
1558  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1559  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1560  /usr/ucb/* ) ;;
1561  *)
1562    # OSF1 and SCO ODT 3.0 have their own names for install.
1563    # Don't use installbsd from OSF since it installs stuff as root
1564    # by default.
1565    for ac_prog in ginstall scoinst install; do
1566      for ac_exec_ext in '' $ac_executable_extensions; do
1567	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1568	  if test $ac_prog = install &&
1569	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1570	    # AIX install.  It has an incompatible calling convention.
1571	    :
1572	  elif test $ac_prog = install &&
1573	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1574	    # program-specific install script used by HP pwplus--don't use.
1575	    :
1576	  else
1577	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1578	    break 3
1579	  fi
1580	fi
1581      done
1582    done
1583    ;;
1584esac
1585done
1586
1587
1588fi
1589  if test "${ac_cv_path_install+set}" = set; then
1590    INSTALL=$ac_cv_path_install
1591  else
1592    # As a last resort, use the slow shell script.  We don't cache a
1593    # path for INSTALL within a source directory, because that will
1594    # break other packages using the cache if that directory is
1595    # removed, or if the path is relative.
1596    INSTALL=$ac_install_sh
1597  fi
1598fi
1599echo "$as_me:$LINENO: result: $INSTALL" >&5
1600echo "${ECHO_T}$INSTALL" >&6
1601
1602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1603# It thinks the first close brace ends the variable substitution.
1604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1605
1606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1607
1608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1609
1610
1611ac_ext=c
1612ac_cpp='$CPP $CPPFLAGS'
1613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1615ac_compiler_gnu=$ac_cv_c_compiler_gnu
1616if test -n "$ac_tool_prefix"; then
1617  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1618set dummy ${ac_tool_prefix}gcc; ac_word=$2
1619echo "$as_me:$LINENO: checking for $ac_word" >&5
1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621if test "${ac_cv_prog_CC+set}" = set; then
1622  echo $ECHO_N "(cached) $ECHO_C" >&6
1623else
1624  if test -n "$CC"; then
1625  ac_cv_prog_CC="$CC" # Let the user override the test.
1626else
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630  IFS=$as_save_IFS
1631  test -z "$as_dir" && as_dir=.
1632  for ac_exec_ext in '' $ac_executable_extensions; do
1633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636    break 2
1637  fi
1638done
1639done
1640
1641fi
1642fi
1643CC=$ac_cv_prog_CC
1644if test -n "$CC"; then
1645  echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
1647else
1648  echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
1650fi
1651
1652fi
1653if test -z "$ac_cv_prog_CC"; then
1654  ac_ct_CC=$CC
1655  # Extract the first word of "gcc", so it can be a program name with args.
1656set dummy gcc; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  if test -n "$ac_ct_CC"; then
1663  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668  IFS=$as_save_IFS
1669  test -z "$as_dir" && as_dir=.
1670  for ac_exec_ext in '' $ac_executable_extensions; do
1671  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672    ac_cv_prog_ac_ct_CC="gcc"
1673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674    break 2
1675  fi
1676done
1677done
1678
1679fi
1680fi
1681ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682if test -n "$ac_ct_CC"; then
1683  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1684echo "${ECHO_T}$ac_ct_CC" >&6
1685else
1686  echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690  CC=$ac_ct_CC
1691else
1692  CC="$ac_cv_prog_CC"
1693fi
1694
1695if test -z "$CC"; then
1696  if test -n "$ac_tool_prefix"; then
1697  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1698set dummy ${ac_tool_prefix}cc; ac_word=$2
1699echo "$as_me:$LINENO: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_CC+set}" = set; then
1702  echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704  if test -n "$CC"; then
1705  ac_cv_prog_CC="$CC" # Let the user override the test.
1706else
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710  IFS=$as_save_IFS
1711  test -z "$as_dir" && as_dir=.
1712  for ac_exec_ext in '' $ac_executable_extensions; do
1713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714    ac_cv_prog_CC="${ac_tool_prefix}cc"
1715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716    break 2
1717  fi
1718done
1719done
1720
1721fi
1722fi
1723CC=$ac_cv_prog_CC
1724if test -n "$CC"; then
1725  echo "$as_me:$LINENO: result: $CC" >&5
1726echo "${ECHO_T}$CC" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732fi
1733if test -z "$ac_cv_prog_CC"; then
1734  ac_ct_CC=$CC
1735  # Extract the first word of "cc", so it can be a program name with args.
1736set dummy cc; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  if test -n "$ac_ct_CC"; then
1743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744else
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748  IFS=$as_save_IFS
1749  test -z "$as_dir" && as_dir=.
1750  for ac_exec_ext in '' $ac_executable_extensions; do
1751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752    ac_cv_prog_ac_ct_CC="cc"
1753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754    break 2
1755  fi
1756done
1757done
1758
1759fi
1760fi
1761ac_ct_CC=$ac_cv_prog_ac_ct_CC
1762if test -n "$ac_ct_CC"; then
1763  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1764echo "${ECHO_T}$ac_ct_CC" >&6
1765else
1766  echo "$as_me:$LINENO: result: no" >&5
1767echo "${ECHO_T}no" >&6
1768fi
1769
1770  CC=$ac_ct_CC
1771else
1772  CC="$ac_cv_prog_CC"
1773fi
1774
1775fi
1776if test -z "$CC"; then
1777  # Extract the first word of "cc", so it can be a program name with args.
1778set dummy cc; ac_word=$2
1779echo "$as_me:$LINENO: checking for $ac_word" >&5
1780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781if test "${ac_cv_prog_CC+set}" = set; then
1782  echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784  if test -n "$CC"; then
1785  ac_cv_prog_CC="$CC" # Let the user override the test.
1786else
1787  ac_prog_rejected=no
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791  IFS=$as_save_IFS
1792  test -z "$as_dir" && as_dir=.
1793  for ac_exec_ext in '' $ac_executable_extensions; do
1794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1796       ac_prog_rejected=yes
1797       continue
1798     fi
1799    ac_cv_prog_CC="cc"
1800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801    break 2
1802  fi
1803done
1804done
1805
1806if test $ac_prog_rejected = yes; then
1807  # We found a bogon in the path, so make sure we never use it.
1808  set dummy $ac_cv_prog_CC
1809  shift
1810  if test $# != 0; then
1811    # We chose a different compiler from the bogus one.
1812    # However, it has the same basename, so the bogon will be chosen
1813    # first if we set CC to just the basename; use the full file name.
1814    shift
1815    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1816  fi
1817fi
1818fi
1819fi
1820CC=$ac_cv_prog_CC
1821if test -n "$CC"; then
1822  echo "$as_me:$LINENO: result: $CC" >&5
1823echo "${ECHO_T}$CC" >&6
1824else
1825  echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6
1827fi
1828
1829fi
1830if test -z "$CC"; then
1831  if test -n "$ac_tool_prefix"; then
1832  for ac_prog in cl
1833  do
1834    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1836echo "$as_me:$LINENO: checking for $ac_word" >&5
1837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1838if test "${ac_cv_prog_CC+set}" = set; then
1839  echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841  if test -n "$CC"; then
1842  ac_cv_prog_CC="$CC" # Let the user override the test.
1843else
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847  IFS=$as_save_IFS
1848  test -z "$as_dir" && as_dir=.
1849  for ac_exec_ext in '' $ac_executable_extensions; do
1850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853    break 2
1854  fi
1855done
1856done
1857
1858fi
1859fi
1860CC=$ac_cv_prog_CC
1861if test -n "$CC"; then
1862  echo "$as_me:$LINENO: result: $CC" >&5
1863echo "${ECHO_T}$CC" >&6
1864else
1865  echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869    test -n "$CC" && break
1870  done
1871fi
1872if test -z "$CC"; then
1873  ac_ct_CC=$CC
1874  for ac_prog in cl
1875do
1876  # Extract the first word of "$ac_prog", so it can be a program name with args.
1877set dummy $ac_prog; ac_word=$2
1878echo "$as_me:$LINENO: checking for $ac_word" >&5
1879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881  echo $ECHO_N "(cached) $ECHO_C" >&6
1882else
1883  if test -n "$ac_ct_CC"; then
1884  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885else
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891  for ac_exec_ext in '' $ac_executable_extensions; do
1892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893    ac_cv_prog_ac_ct_CC="$ac_prog"
1894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    break 2
1896  fi
1897done
1898done
1899
1900fi
1901fi
1902ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903if test -n "$ac_ct_CC"; then
1904  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905echo "${ECHO_T}$ac_ct_CC" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911  test -n "$ac_ct_CC" && break
1912done
1913
1914  CC=$ac_ct_CC
1915fi
1916
1917fi
1918
1919
1920test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&2;}
1924   { (exit 1); exit 1; }; }
1925
1926# Provide some information about the compiler.
1927echo "$as_me:$LINENO:" \
1928     "checking for C compiler version" >&5
1929ac_compiler=`set X $ac_compile; echo $2`
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931  (eval $ac_compiler --version </dev/null >&5) 2>&5
1932  ac_status=$?
1933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934  (exit $ac_status); }
1935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936  (eval $ac_compiler -v </dev/null >&5) 2>&5
1937  ac_status=$?
1938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939  (exit $ac_status); }
1940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941  (eval $ac_compiler -V </dev/null >&5) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }
1945
1946cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h.  */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h.  */
1952
1953int
1954main ()
1955{
1956
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961ac_clean_files_save=$ac_clean_files
1962ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963# Try to create an executable without -o first, disregard a.out.
1964# It will help us diagnose broken compilers, and finding out an intuition
1965# of exeext.
1966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970  (eval $ac_link_default) 2>&5
1971  ac_status=$?
1972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973  (exit $ac_status); }; then
1974  # Find the output, starting from the most likely.  This scheme is
1975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976# resort.
1977
1978# Be careful to initialize this variable, since it used to be cached.
1979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980ac_cv_exeext=
1981# b.out is created by i960 compilers.
1982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983do
1984  test -f "$ac_file" || continue
1985  case $ac_file in
1986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987	;;
1988    conftest.$ac_ext )
1989	# This is the source file.
1990	;;
1991    [ab].out )
1992	# We found the default executable, but exeext='' is most
1993	# certainly right.
1994	break;;
1995    *.* )
1996	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997	# FIXME: I believe we export ac_cv_exeext for Libtool,
1998	# but it would be cool to find out if it's true.  Does anybody
1999	# maintain Libtool? --akim.
2000	export ac_cv_exeext
2001	break;;
2002    * )
2003	break;;
2004  esac
2005done
2006else
2007  echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2011See \`config.log' for more details." >&5
2012echo "$as_me: error: C compiler cannot create executables
2013See \`config.log' for more details." >&2;}
2014   { (exit 77); exit 77; }; }
2015fi
2016
2017ac_exeext=$ac_cv_exeext
2018echo "$as_me:$LINENO: result: $ac_file" >&5
2019echo "${ECHO_T}$ac_file" >&6
2020
2021# Check the compiler produces executables we can run.  If not, either
2022# the compiler is broken, or we cross compile.
2023echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2024echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2025# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2026# If not cross compiling, check that we can run a simple program.
2027if test "$cross_compiling" != yes; then
2028  if { ac_try='./$ac_file'
2029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030  (eval $ac_try) 2>&5
2031  ac_status=$?
2032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033  (exit $ac_status); }; }; then
2034    cross_compiling=no
2035  else
2036    if test "$cross_compiling" = maybe; then
2037	cross_compiling=yes
2038    else
2039	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2040If you meant to cross compile, use \`--host'.
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: cannot run C compiled programs.
2043If you meant to cross compile, use \`--host'.
2044See \`config.log' for more details." >&2;}
2045   { (exit 1); exit 1; }; }
2046    fi
2047  fi
2048fi
2049echo "$as_me:$LINENO: result: yes" >&5
2050echo "${ECHO_T}yes" >&6
2051
2052rm -f a.out a.exe conftest$ac_cv_exeext b.out
2053ac_clean_files=$ac_clean_files_save
2054# Check the compiler produces executables we can run.  If not, either
2055# the compiler is broken, or we cross compile.
2056echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2057echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2058echo "$as_me:$LINENO: result: $cross_compiling" >&5
2059echo "${ECHO_T}$cross_compiling" >&6
2060
2061echo "$as_me:$LINENO: checking for suffix of executables" >&5
2062echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2064  (eval $ac_link) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }; then
2068  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2069# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2070# work properly (i.e., refer to `conftest.exe'), while it won't with
2071# `rm'.
2072for ac_file in conftest.exe conftest conftest.*; do
2073  test -f "$ac_file" || continue
2074  case $ac_file in
2075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2076    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2077	  export ac_cv_exeext
2078	  break;;
2079    * ) break;;
2080  esac
2081done
2082else
2083  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2086See \`config.log' for more details." >&2;}
2087   { (exit 1); exit 1; }; }
2088fi
2089
2090rm -f conftest$ac_cv_exeext
2091echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2092echo "${ECHO_T}$ac_cv_exeext" >&6
2093
2094rm -f conftest.$ac_ext
2095EXEEXT=$ac_cv_exeext
2096ac_exeext=$EXEEXT
2097echo "$as_me:$LINENO: checking for suffix of object files" >&5
2098echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2099if test "${ac_cv_objext+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108
2109int
2110main ()
2111{
2112
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117rm -f conftest.o conftest.obj
2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119  (eval $ac_compile) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; then
2123  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2124  case $ac_file in
2125    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2126    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2127       break;;
2128  esac
2129done
2130else
2131  echo "$as_me: failed program was:" >&5
2132sed 's/^/| /' conftest.$ac_ext >&5
2133
2134{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of object files: cannot compile
2137See \`config.log' for more details." >&2;}
2138   { (exit 1); exit 1; }; }
2139fi
2140
2141rm -f conftest.$ac_cv_objext conftest.$ac_ext
2142fi
2143echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2144echo "${ECHO_T}$ac_cv_objext" >&6
2145OBJEXT=$ac_cv_objext
2146ac_objext=$OBJEXT
2147echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2148echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2149if test "${ac_cv_c_compiler_gnu+set}" = set; then
2150  echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152  cat >conftest.$ac_ext <<_ACEOF
2153/* confdefs.h.  */
2154_ACEOF
2155cat confdefs.h >>conftest.$ac_ext
2156cat >>conftest.$ac_ext <<_ACEOF
2157/* end confdefs.h.  */
2158
2159int
2160main ()
2161{
2162#ifndef __GNUC__
2163       choke me
2164#endif
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172  (eval $ac_compile) 2>conftest.er1
2173  ac_status=$?
2174  grep -v '^ *+' conftest.er1 >conftest.err
2175  rm -f conftest.er1
2176  cat conftest.err >&5
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); } &&
2179	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181  (eval $ac_try) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; } &&
2185	 { ac_try='test -s conftest.$ac_objext'
2186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187  (eval $ac_try) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }; }; then
2191  ac_compiler_gnu=yes
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196ac_compiler_gnu=no
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199ac_cv_c_compiler_gnu=$ac_compiler_gnu
2200
2201fi
2202echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2203echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2204GCC=`test $ac_compiler_gnu = yes && echo yes`
2205ac_test_CFLAGS=${CFLAGS+set}
2206ac_save_CFLAGS=$CFLAGS
2207CFLAGS="-g"
2208echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2209echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2210if test "${ac_cv_prog_cc_g+set}" = set; then
2211  echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213  cat >conftest.$ac_ext <<_ACEOF
2214/* confdefs.h.  */
2215_ACEOF
2216cat confdefs.h >>conftest.$ac_ext
2217cat >>conftest.$ac_ext <<_ACEOF
2218/* end confdefs.h.  */
2219
2220int
2221main ()
2222{
2223
2224  ;
2225  return 0;
2226}
2227_ACEOF
2228rm -f conftest.$ac_objext
2229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230  (eval $ac_compile) 2>conftest.er1
2231  ac_status=$?
2232  grep -v '^ *+' conftest.er1 >conftest.err
2233  rm -f conftest.er1
2234  cat conftest.err >&5
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); } &&
2237	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239  (eval $ac_try) 2>&5
2240  ac_status=$?
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); }; } &&
2243	 { ac_try='test -s conftest.$ac_objext'
2244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245  (eval $ac_try) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; }; then
2249  ac_cv_prog_cc_g=yes
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254ac_cv_prog_cc_g=no
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2259echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2260if test "$ac_test_CFLAGS" = set; then
2261  CFLAGS=$ac_save_CFLAGS
2262elif test $ac_cv_prog_cc_g = yes; then
2263  if test "$GCC" = yes; then
2264    CFLAGS="-g -O2"
2265  else
2266    CFLAGS="-g"
2267  fi
2268else
2269  if test "$GCC" = yes; then
2270    CFLAGS="-O2"
2271  else
2272    CFLAGS=
2273  fi
2274fi
2275echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2276echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_stdc+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  ac_cv_prog_cc_stdc=no
2281ac_save_CC=$CC
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h.  */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h.  */
2288#include <stdarg.h>
2289#include <stdio.h>
2290#include <sys/types.h>
2291#include <sys/stat.h>
2292/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2293struct buf { int x; };
2294FILE * (*rcsopen) (struct buf *, struct stat *, int);
2295static char *e (p, i)
2296     char **p;
2297     int i;
2298{
2299  return p[i];
2300}
2301static char *f (char * (*g) (char **, int), char **p, ...)
2302{
2303  char *s;
2304  va_list v;
2305  va_start (v,p);
2306  s = g (p, va_arg (v,int));
2307  va_end (v);
2308  return s;
2309}
2310
2311/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2312   function prototypes and stuff, but not '\xHH' hex character constants.
2313   These don't provoke an error unfortunately, instead are silently treated
2314   as 'x'.  The following induces an error, until -std1 is added to get
2315   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2316   array size at least.  It's necessary to write '\x00'==0 to get something
2317   that's true only with -std1.  */
2318int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2319
2320int test (int i, double x);
2321struct s1 {int (*f) (int a);};
2322struct s2 {int (*f) (double a);};
2323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2324int argc;
2325char **argv;
2326int
2327main ()
2328{
2329return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334# Don't try gcc -ansi; that turns off useful extensions and
2335# breaks some systems' header files.
2336# AIX			-qlanglvl=ansi
2337# Ultrix and OSF/1	-std1
2338# HP-UX 10.20 and later	-Ae
2339# HP-UX older versions	-Aa -D_HPUX_SOURCE
2340# SVR4			-Xc -D__EXTENSIONS__
2341for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2342do
2343  CC="$ac_save_CC $ac_arg"
2344  rm -f conftest.$ac_objext
2345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346  (eval $ac_compile) 2>conftest.er1
2347  ac_status=$?
2348  grep -v '^ *+' conftest.er1 >conftest.err
2349  rm -f conftest.er1
2350  cat conftest.err >&5
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); } &&
2353	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355  (eval $ac_try) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }; } &&
2359	 { ac_try='test -s conftest.$ac_objext'
2360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361  (eval $ac_try) 2>&5
2362  ac_status=$?
2363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364  (exit $ac_status); }; }; then
2365  ac_cv_prog_cc_stdc=$ac_arg
2366break
2367else
2368  echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371fi
2372rm -f conftest.err conftest.$ac_objext
2373done
2374rm -f conftest.$ac_ext conftest.$ac_objext
2375CC=$ac_save_CC
2376
2377fi
2378
2379case "x$ac_cv_prog_cc_stdc" in
2380  x|xno)
2381    echo "$as_me:$LINENO: result: none needed" >&5
2382echo "${ECHO_T}none needed" >&6 ;;
2383  *)
2384    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386    CC="$CC $ac_cv_prog_cc_stdc" ;;
2387esac
2388
2389# Some people use a C++ compiler to compile C.  Since we use `exit',
2390# in C++ we need to declare it.  In case someone uses the same compiler
2391# for both compiling C and C++ we need to have the C++ compiler decide
2392# the declaration of exit, since it's the most demanding environment.
2393cat >conftest.$ac_ext <<_ACEOF
2394#ifndef __cplusplus
2395  choke me
2396#endif
2397_ACEOF
2398rm -f conftest.$ac_objext
2399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400  (eval $ac_compile) 2>conftest.er1
2401  ac_status=$?
2402  grep -v '^ *+' conftest.er1 >conftest.err
2403  rm -f conftest.er1
2404  cat conftest.err >&5
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); } &&
2407	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413	 { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  for ac_declaration in \
2420   '' \
2421   'extern "C" void std::exit (int) throw (); using std::exit;' \
2422   'extern "C" void std::exit (int); using std::exit;' \
2423   'extern "C" void exit (int) throw ();' \
2424   'extern "C" void exit (int);' \
2425   'void exit (int);'
2426do
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433$ac_declaration
2434#include <stdlib.h>
2435int
2436main ()
2437{
2438exit (42);
2439  ;
2440  return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445  (eval $ac_compile) 2>conftest.er1
2446  ac_status=$?
2447  grep -v '^ *+' conftest.er1 >conftest.err
2448  rm -f conftest.er1
2449  cat conftest.err >&5
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); } &&
2452	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458	 { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  :
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469continue
2470fi
2471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472  cat >conftest.$ac_ext <<_ACEOF
2473/* confdefs.h.  */
2474_ACEOF
2475cat confdefs.h >>conftest.$ac_ext
2476cat >>conftest.$ac_ext <<_ACEOF
2477/* end confdefs.h.  */
2478$ac_declaration
2479int
2480main ()
2481{
2482exit (42);
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489  (eval $ac_compile) 2>conftest.er1
2490  ac_status=$?
2491  grep -v '^ *+' conftest.er1 >conftest.err
2492  rm -f conftest.er1
2493  cat conftest.err >&5
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); } &&
2496	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498  (eval $ac_try) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }; } &&
2502	 { ac_try='test -s conftest.$ac_objext'
2503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504  (eval $ac_try) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; }; then
2508  break
2509else
2510  echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515done
2516rm -f conftest*
2517if test -n "$ac_declaration"; then
2518  echo '#ifdef __cplusplus' >>confdefs.h
2519  echo $ac_declaration      >>confdefs.h
2520  echo '#endif'             >>confdefs.h
2521fi
2522
2523else
2524  echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527fi
2528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
2535
2536
2537echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
2538echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
2539if test "${ac_cv_lib_intl_textdomain+set}" = set; then
2540  echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542  ac_check_lib_save_LIBS=$LIBS
2543LIBS="-lintl  $LIBS"
2544cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550
2551/* Override any gcc2 internal prototype to avoid an error.  */
2552#ifdef __cplusplus
2553extern "C"
2554#endif
2555/* We use char because int might match the return type of a gcc2
2556   builtin and then its argument prototype would still apply.  */
2557char textdomain ();
2558int
2559main ()
2560{
2561textdomain ();
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext conftest$ac_exeext
2567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2568  (eval $ac_link) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581	 { ac_try='test -s conftest$ac_exeext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  ac_cv_lib_intl_textdomain=yes
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592ac_cv_lib_intl_textdomain=no
2593fi
2594rm -f conftest.err conftest.$ac_objext \
2595      conftest$ac_exeext conftest.$ac_ext
2596LIBS=$ac_check_lib_save_LIBS
2597fi
2598echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
2599echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
2600if test $ac_cv_lib_intl_textdomain = yes; then
2601  cat >>confdefs.h <<_ACEOF
2602#define HAVE_LIBINTL 1
2603_ACEOF
2604
2605  LIBS="-lintl $LIBS"
2606
2607fi
2608
2609
2610          ac_config_headers="$ac_config_headers gsm_config.h"
2611
2612
2613am__api_version="1.9"
2614echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2615echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2616# Just in case
2617sleep 1
2618echo timestamp > conftest.file
2619# Do `set' in a subshell so we don't clobber the current shell's
2620# arguments.  Must try -L first in case configure is actually a
2621# symlink; some systems play weird games with the mod time of symlinks
2622# (eg FreeBSD returns the mod time of the symlink's containing
2623# directory).
2624if (
2625   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2626   if test "$*" = "X"; then
2627      # -L didn't work.
2628      set X `ls -t $srcdir/configure conftest.file`
2629   fi
2630   rm -f conftest.file
2631   if test "$*" != "X $srcdir/configure conftest.file" \
2632      && test "$*" != "X conftest.file $srcdir/configure"; then
2633
2634      # If neither matched, then we have a broken ls.  This can happen
2635      # if, for instance, CONFIG_SHELL is bash and it inherits a
2636      # broken ls alias from the environment.  This has actually
2637      # happened.  Such a system could not be considered "sane".
2638      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2639alias in your environment" >&5
2640echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2641alias in your environment" >&2;}
2642   { (exit 1); exit 1; }; }
2643   fi
2644
2645   test "$2" = conftest.file
2646   )
2647then
2648   # Ok.
2649   :
2650else
2651   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2652Check your system clock" >&5
2653echo "$as_me: error: newly created file is older than distributed files!
2654Check your system clock" >&2;}
2655   { (exit 1); exit 1; }; }
2656fi
2657echo "$as_me:$LINENO: result: yes" >&5
2658echo "${ECHO_T}yes" >&6
2659test "$program_prefix" != NONE &&
2660  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2661# Use a double $ so make ignores it.
2662test "$program_suffix" != NONE &&
2663  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2664# Double any \ or $.  echo might interpret backslashes.
2665# By default was `s,x,x', remove it if useless.
2666cat <<\_ACEOF >conftest.sed
2667s/[\\$]/&&/g;s/;s,x,x,$//
2668_ACEOF
2669program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2670rm conftest.sed
2671
2672# expand $ac_aux_dir to an absolute path
2673am_aux_dir=`cd $ac_aux_dir && pwd`
2674
2675test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2676# Use eval to expand $SHELL
2677if eval "$MISSING --run true"; then
2678  am_missing_run="$MISSING --run "
2679else
2680  am_missing_run=
2681  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2682echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2683fi
2684
2685if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2686  # We used to keeping the `.' as first argument, in order to
2687  # allow $(mkdir_p) to be used without argument.  As in
2688  #   $(mkdir_p) $(somedir)
2689  # where $(somedir) is conditionally defined.  However this is wrong
2690  # for two reasons:
2691  #  1. if the package is installed by a user who cannot write `.'
2692  #     make install will fail,
2693  #  2. the above comment should most certainly read
2694  #     $(mkdir_p) $(DESTDIR)$(somedir)
2695  #     so it does not work when $(somedir) is undefined and
2696  #     $(DESTDIR) is not.
2697  #  To support the latter case, we have to write
2698  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2699  #  so the `.' trick is pointless.
2700  mkdir_p='mkdir -p --'
2701else
2702  # On NextStep and OpenStep, the `mkdir' command does not
2703  # recognize any option.  It will interpret all options as
2704  # directories to create, and then abort because `.' already
2705  # exists.
2706  for d in ./-p ./--version;
2707  do
2708    test -d $d && rmdir $d
2709  done
2710  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2711  if test -f "$ac_aux_dir/mkinstalldirs"; then
2712    mkdir_p='$(mkinstalldirs)'
2713  else
2714    mkdir_p='$(install_sh) -d'
2715  fi
2716fi
2717
2718for ac_prog in gawk mawk nawk awk
2719do
2720  # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
2722echo "$as_me:$LINENO: checking for $ac_word" >&5
2723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2724if test "${ac_cv_prog_AWK+set}" = set; then
2725  echo $ECHO_N "(cached) $ECHO_C" >&6
2726else
2727  if test -n "$AWK"; then
2728  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  test -z "$as_dir" && as_dir=.
2735  for ac_exec_ext in '' $ac_executable_extensions; do
2736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737    ac_cv_prog_AWK="$ac_prog"
2738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739    break 2
2740  fi
2741done
2742done
2743
2744fi
2745fi
2746AWK=$ac_cv_prog_AWK
2747if test -n "$AWK"; then
2748  echo "$as_me:$LINENO: result: $AWK" >&5
2749echo "${ECHO_T}$AWK" >&6
2750else
2751  echo "$as_me:$LINENO: result: no" >&5
2752echo "${ECHO_T}no" >&6
2753fi
2754
2755  test -n "$AWK" && break
2756done
2757
2758echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2759echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2760set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2761if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763else
2764  cat >conftest.make <<\_ACEOF
2765all:
2766	@echo 'ac_maketemp="$(MAKE)"'
2767_ACEOF
2768# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2769eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2770if test -n "$ac_maketemp"; then
2771  eval ac_cv_prog_make_${ac_make}_set=yes
2772else
2773  eval ac_cv_prog_make_${ac_make}_set=no
2774fi
2775rm -f conftest.make
2776fi
2777if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2778  echo "$as_me:$LINENO: result: yes" >&5
2779echo "${ECHO_T}yes" >&6
2780  SET_MAKE=
2781else
2782  echo "$as_me:$LINENO: result: no" >&5
2783echo "${ECHO_T}no" >&6
2784  SET_MAKE="MAKE=${MAKE-make}"
2785fi
2786
2787rm -rf .tst 2>/dev/null
2788mkdir .tst 2>/dev/null
2789if test -d .tst; then
2790  am__leading_dot=.
2791else
2792  am__leading_dot=_
2793fi
2794rmdir .tst 2>/dev/null
2795
2796DEPDIR="${am__leading_dot}deps"
2797
2798          ac_config_commands="$ac_config_commands depfiles"
2799
2800
2801am_make=${MAKE-make}
2802cat > confinc << 'END'
2803am__doit:
2804	@echo done
2805.PHONY: am__doit
2806END
2807# If we don't find an include directive, just comment out the code.
2808echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2809echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2810am__include="#"
2811am__quote=
2812_am_result=none
2813# First try GNU make style include.
2814echo "include confinc" > confmf
2815# We grep out `Entering directory' and `Leaving directory'
2816# messages which can occur if `w' ends up in MAKEFLAGS.
2817# In particular we don't look at `^make:' because GNU make might
2818# be invoked under some other name (usually "gmake"), in which
2819# case it prints its new name instead of `make'.
2820if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2821   am__include=include
2822   am__quote=
2823   _am_result=GNU
2824fi
2825# Now try BSD make style include.
2826if test "$am__include" = "#"; then
2827   echo '.include "confinc"' > confmf
2828   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2829      am__include=.include
2830      am__quote="\""
2831      _am_result=BSD
2832   fi
2833fi
2834
2835
2836echo "$as_me:$LINENO: result: $_am_result" >&5
2837echo "${ECHO_T}$_am_result" >&6
2838rm -f confinc confmf
2839
2840# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2841if test "${enable_dependency_tracking+set}" = set; then
2842  enableval="$enable_dependency_tracking"
2843
2844fi;
2845if test "x$enable_dependency_tracking" != xno; then
2846  am_depcomp="$ac_aux_dir/depcomp"
2847  AMDEPBACKSLASH='\'
2848fi
2849
2850
2851if test "x$enable_dependency_tracking" != xno; then
2852  AMDEP_TRUE=
2853  AMDEP_FALSE='#'
2854else
2855  AMDEP_TRUE='#'
2856  AMDEP_FALSE=
2857fi
2858
2859
2860
2861# test to see if srcdir already configured
2862if test "`cd $srcdir && pwd`" != "`pwd`" &&
2863   test -f $srcdir/config.status; then
2864  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2865echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2866   { (exit 1); exit 1; }; }
2867fi
2868
2869# test whether we have cygpath
2870if test -z "$CYGPATH_W"; then
2871  if (cygpath --version) >/dev/null 2>/dev/null; then
2872    CYGPATH_W='cygpath -w'
2873  else
2874    CYGPATH_W=echo
2875  fi
2876fi
2877
2878
2879# Define the identity of the package.
2880 PACKAGE=gsmlib
2881 VERSION=1.10
2882
2883
2884cat >>confdefs.h <<_ACEOF
2885#define PACKAGE "$PACKAGE"
2886_ACEOF
2887
2888
2889cat >>confdefs.h <<_ACEOF
2890#define VERSION "$VERSION"
2891_ACEOF
2892
2893# Some tools Automake needs.
2894
2895ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2896
2897
2898AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2899
2900
2901AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2902
2903
2904AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2905
2906
2907MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2908
2909install_sh=${install_sh-"$am_aux_dir/install-sh"}
2910
2911# Installed binaries are usually stripped using `strip' when the user
2912# run `make install-strip'.  However `strip' might not be the right
2913# tool to use in cross-compilation environments, therefore Automake
2914# will honor the `STRIP' environment variable to overrule this program.
2915if test "$cross_compiling" != no; then
2916  if test -n "$ac_tool_prefix"; then
2917  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2918set dummy ${ac_tool_prefix}strip; ac_word=$2
2919echo "$as_me:$LINENO: checking for $ac_word" >&5
2920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921if test "${ac_cv_prog_STRIP+set}" = set; then
2922  echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924  if test -n "$STRIP"; then
2925  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  test -z "$as_dir" && as_dir=.
2932  for ac_exec_ext in '' $ac_executable_extensions; do
2933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936    break 2
2937  fi
2938done
2939done
2940
2941fi
2942fi
2943STRIP=$ac_cv_prog_STRIP
2944if test -n "$STRIP"; then
2945  echo "$as_me:$LINENO: result: $STRIP" >&5
2946echo "${ECHO_T}$STRIP" >&6
2947else
2948  echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
2950fi
2951
2952fi
2953if test -z "$ac_cv_prog_STRIP"; then
2954  ac_ct_STRIP=$STRIP
2955  # Extract the first word of "strip", so it can be a program name with args.
2956set dummy strip; ac_word=$2
2957echo "$as_me:$LINENO: checking for $ac_word" >&5
2958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2959if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2960  echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962  if test -n "$ac_ct_STRIP"; then
2963  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  test -z "$as_dir" && as_dir=.
2970  for ac_exec_ext in '' $ac_executable_extensions; do
2971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972    ac_cv_prog_ac_ct_STRIP="strip"
2973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977done
2978
2979  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2980fi
2981fi
2982ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2983if test -n "$ac_ct_STRIP"; then
2984  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2985echo "${ECHO_T}$ac_ct_STRIP" >&6
2986else
2987  echo "$as_me:$LINENO: result: no" >&5
2988echo "${ECHO_T}no" >&6
2989fi
2990
2991  STRIP=$ac_ct_STRIP
2992else
2993  STRIP="$ac_cv_prog_STRIP"
2994fi
2995
2996fi
2997INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2998
2999# We need awk for the "check" target.  The system "awk" is bad on
3000# some platforms.
3001# Always define AMTAR for backward compatibility.
3002
3003AMTAR=${AMTAR-"${am_missing_run}tar"}
3004
3005am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3006
3007
3008
3009
3010depcc="$CC"   am_compiler_list=
3011
3012echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3013echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3014if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3015  echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3018  # We make a subdir and do the tests there.  Otherwise we can end up
3019  # making bogus files that we don't know about and never remove.  For
3020  # instance it was reported that on HP-UX the gcc test will end up
3021  # making a dummy file named `D' -- because `-MD' means `put the output
3022  # in D'.
3023  mkdir conftest.dir
3024  # Copy depcomp to subdir because otherwise we won't find it if we're
3025  # using a relative directory.
3026  cp "$am_depcomp" conftest.dir
3027  cd conftest.dir
3028  # We will build objects and dependencies in a subdirectory because
3029  # it helps to detect inapplicable dependency modes.  For instance
3030  # both Tru64's cc and ICC support -MD to output dependencies as a
3031  # side effect of compilation, but ICC will put the dependencies in
3032  # the current directory while Tru64 will put them in the object
3033  # directory.
3034  mkdir sub
3035
3036  am_cv_CC_dependencies_compiler_type=none
3037  if test "$am_compiler_list" = ""; then
3038     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3039  fi
3040  for depmode in $am_compiler_list; do
3041    # Setup a source with many dependencies, because some compilers
3042    # like to wrap large dependency lists on column 80 (with \), and
3043    # we should not choose a depcomp mode which is confused by this.
3044    #
3045    # We need to recreate these files for each test, as the compiler may
3046    # overwrite some of them when testing with obscure command lines.
3047    # This happens at least with the AIX C compiler.
3048    : > sub/conftest.c
3049    for i in 1 2 3 4 5 6; do
3050      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3051      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3052      # Solaris 8's {/usr,}/bin/sh.
3053      touch sub/conftst$i.h
3054    done
3055    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3056
3057    case $depmode in
3058    nosideeffect)
3059      # after this tag, mechanisms are not by side-effect, so they'll
3060      # only be used when explicitly requested
3061      if test "x$enable_dependency_tracking" = xyes; then
3062	continue
3063      else
3064	break
3065      fi
3066      ;;
3067    none) break ;;
3068    esac
3069    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3070    # mode.  It turns out that the SunPro C++ compiler does not properly
3071    # handle `-M -o', and we need to detect this.
3072    if depmode=$depmode \
3073       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3074       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3075       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3076         >/dev/null 2>conftest.err &&
3077       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3078       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3079       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3080      # icc doesn't choke on unknown options, it will just issue warnings
3081      # or remarks (even with -Werror).  So we grep stderr for any message
3082      # that says an option was ignored or not supported.
3083      # When given -MP, icc 7.0 and 7.1 complain thusly:
3084      #   icc: Command line warning: ignoring option '-M'; no argument required
3085      # The diagnosis changed in icc 8.0:
3086      #   icc: Command line remark: option '-MP' not supported
3087      if (grep 'ignoring option' conftest.err ||
3088          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3089        am_cv_CC_dependencies_compiler_type=$depmode
3090        break
3091      fi
3092    fi
3093  done
3094
3095  cd ..
3096  rm -rf conftest.dir
3097else
3098  am_cv_CC_dependencies_compiler_type=none
3099fi
3100
3101fi
3102echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3103echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3104CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3105
3106
3107
3108if
3109  test "x$enable_dependency_tracking" != xno \
3110  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3111  am__fastdepCC_TRUE=
3112  am__fastdepCC_FALSE='#'
3113else
3114  am__fastdepCC_TRUE='#'
3115  am__fastdepCC_FALSE=
3116fi
3117
3118
3119
3120
3121# Check whether --enable-shared or --disable-shared was given.
3122if test "${enable_shared+set}" = set; then
3123  enableval="$enable_shared"
3124  p=${PACKAGE-default}
3125    case $enableval in
3126    yes) enable_shared=yes ;;
3127    no) enable_shared=no ;;
3128    *)
3129      enable_shared=no
3130      # Look at the argument we got.  We use all the common list separators.
3131      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3132      for pkg in $enableval; do
3133	IFS="$lt_save_ifs"
3134	if test "X$pkg" = "X$p"; then
3135	  enable_shared=yes
3136	fi
3137      done
3138      IFS="$lt_save_ifs"
3139      ;;
3140    esac
3141else
3142  enable_shared=yes
3143fi;
3144
3145
3146if test "$CXXFLAGS" = ""; then
3147   CXXFLAGS="-O2"
3148fi
3149
3150
3151
3152if test x"`egrep _REENTRANT /usr/include/features.h`" != x; then
3153  CXXFLAGS="-D_REENTRANT $CXXFLAGS"
3154  CFLAGS="-D_REENTRANT $CFLAGS"
3155fi
3156
3157CXXFLAGS="-Wall $CXXFLAGS"
3158
3159# Check whether --enable-static or --disable-static was given.
3160if test "${enable_static+set}" = set; then
3161  enableval="$enable_static"
3162  p=${PACKAGE-default}
3163    case $enableval in
3164    yes) enable_static=yes ;;
3165    no) enable_static=no ;;
3166    *)
3167     enable_static=no
3168      # Look at the argument we got.  We use all the common list separators.
3169      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3170      for pkg in $enableval; do
3171	IFS="$lt_save_ifs"
3172	if test "X$pkg" = "X$p"; then
3173	  enable_static=yes
3174	fi
3175      done
3176      IFS="$lt_save_ifs"
3177      ;;
3178    esac
3179else
3180  enable_static=yes
3181fi;
3182
3183# Check whether --enable-fast-install or --disable-fast-install was given.
3184if test "${enable_fast_install+set}" = set; then
3185  enableval="$enable_fast_install"
3186  p=${PACKAGE-default}
3187    case $enableval in
3188    yes) enable_fast_install=yes ;;
3189    no) enable_fast_install=no ;;
3190    *)
3191      enable_fast_install=no
3192      # Look at the argument we got.  We use all the common list separators.
3193      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3194      for pkg in $enableval; do
3195	IFS="$lt_save_ifs"
3196	if test "X$pkg" = "X$p"; then
3197	  enable_fast_install=yes
3198	fi
3199      done
3200      IFS="$lt_save_ifs"
3201      ;;
3202    esac
3203else
3204  enable_fast_install=yes
3205fi;
3206
3207# Make sure we can run config.sub.
3208$ac_config_sub sun4 >/dev/null 2>&1 ||
3209  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3210echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3211   { (exit 1); exit 1; }; }
3212
3213echo "$as_me:$LINENO: checking build system type" >&5
3214echo $ECHO_N "checking build system type... $ECHO_C" >&6
3215if test "${ac_cv_build+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  ac_cv_build_alias=$build_alias
3219test -z "$ac_cv_build_alias" &&
3220  ac_cv_build_alias=`$ac_config_guess`
3221test -z "$ac_cv_build_alias" &&
3222  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3223echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3224   { (exit 1); exit 1; }; }
3225ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3226  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3227echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3228   { (exit 1); exit 1; }; }
3229
3230fi
3231echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3232echo "${ECHO_T}$ac_cv_build" >&6
3233build=$ac_cv_build
3234build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3235build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3236build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3237
3238
3239echo "$as_me:$LINENO: checking host system type" >&5
3240echo $ECHO_N "checking host system type... $ECHO_C" >&6
3241if test "${ac_cv_host+set}" = set; then
3242  echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244  ac_cv_host_alias=$host_alias
3245test -z "$ac_cv_host_alias" &&
3246  ac_cv_host_alias=$ac_cv_build_alias
3247ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3248  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3249echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3250   { (exit 1); exit 1; }; }
3251
3252fi
3253echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3254echo "${ECHO_T}$ac_cv_host" >&6
3255host=$ac_cv_host
3256host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3257host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3258host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3259
3260
3261echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3262echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3263if test "${lt_cv_path_SED+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266  # Loop through the user's path and test for sed and gsed.
3267# Then use that list of sed's as ones to test for truncation.
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273  for lt_ac_prog in sed gsed; do
3274    for ac_exec_ext in '' $ac_executable_extensions; do
3275      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3276        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3277      fi
3278    done
3279  done
3280done
3281lt_ac_max=0
3282lt_ac_count=0
3283# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3284# along with /bin/sed that truncates output.
3285for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3286  test ! -f $lt_ac_sed && continue
3287  cat /dev/null > conftest.in
3288  lt_ac_count=0
3289  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3290  # Check for GNU sed and select it if it is found.
3291  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3292    lt_cv_path_SED=$lt_ac_sed
3293    break
3294  fi
3295  while true; do
3296    cat conftest.in conftest.in >conftest.tmp
3297    mv conftest.tmp conftest.in
3298    cp conftest.in conftest.nl
3299    echo >>conftest.nl
3300    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3301    cmp -s conftest.out conftest.nl || break
3302    # 10000 chars as input seems more than enough
3303    test $lt_ac_count -gt 10 && break
3304    lt_ac_count=`expr $lt_ac_count + 1`
3305    if test $lt_ac_count -gt $lt_ac_max; then
3306      lt_ac_max=$lt_ac_count
3307      lt_cv_path_SED=$lt_ac_sed
3308    fi
3309  done
3310done
3311
3312fi
3313
3314SED=$lt_cv_path_SED
3315echo "$as_me:$LINENO: result: $SED" >&5
3316echo "${ECHO_T}$SED" >&6
3317
3318echo "$as_me:$LINENO: checking for egrep" >&5
3319echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3320if test "${ac_cv_prog_egrep+set}" = set; then
3321  echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3324    then ac_cv_prog_egrep='grep -E'
3325    else ac_cv_prog_egrep='egrep'
3326    fi
3327fi
3328echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3329echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3330 EGREP=$ac_cv_prog_egrep
3331
3332
3333
3334# Check whether --with-gnu-ld or --without-gnu-ld was given.
3335if test "${with_gnu_ld+set}" = set; then
3336  withval="$with_gnu_ld"
3337  test "$withval" = no || with_gnu_ld=yes
3338else
3339  with_gnu_ld=no
3340fi;
3341ac_prog=ld
3342if test "$GCC" = yes; then
3343  # Check if gcc -print-prog-name=ld gives a path.
3344  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3345echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3346  case $host in
3347  *-*-mingw*)
3348    # gcc leaves a trailing carriage return which upsets mingw
3349    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3350  *)
3351    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3352  esac
3353  case $ac_prog in
3354    # Accept absolute paths.
3355    [\\/]* | ?:[\\/]*)
3356      re_direlt='/[^/][^/]*/\.\./'
3357      # Canonicalize the pathname of ld
3358      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3359      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3360	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3361      done
3362      test -z "$LD" && LD="$ac_prog"
3363      ;;
3364  "")
3365    # If it fails, then pretend we aren't using GCC.
3366    ac_prog=ld
3367    ;;
3368  *)
3369    # If it is relative, then search for the first ld in PATH.
3370    with_gnu_ld=unknown
3371    ;;
3372  esac
3373elif test "$with_gnu_ld" = yes; then
3374  echo "$as_me:$LINENO: checking for GNU ld" >&5
3375echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3376else
3377  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3378echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3379fi
3380if test "${lt_cv_path_LD+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  if test -z "$LD"; then
3384  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3385  for ac_dir in $PATH; do
3386    IFS="$lt_save_ifs"
3387    test -z "$ac_dir" && ac_dir=.
3388    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3389      lt_cv_path_LD="$ac_dir/$ac_prog"
3390      # Check to see if the program is GNU ld.  I'd rather use --version,
3391      # but apparently some variants of GNU ld only accept -v.
3392      # Break only if it was the GNU/non-GNU ld that we prefer.
3393      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3394      *GNU* | *'with BFD'*)
3395	test "$with_gnu_ld" != no && break
3396	;;
3397      *)
3398	test "$with_gnu_ld" != yes && break
3399	;;
3400      esac
3401    fi
3402  done
3403  IFS="$lt_save_ifs"
3404else
3405  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3406fi
3407fi
3408
3409LD="$lt_cv_path_LD"
3410if test -n "$LD"; then
3411  echo "$as_me:$LINENO: result: $LD" >&5
3412echo "${ECHO_T}$LD" >&6
3413else
3414  echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6
3416fi
3417test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3418echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3419   { (exit 1); exit 1; }; }
3420echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3421echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3422if test "${lt_cv_prog_gnu_ld+set}" = set; then
3423  echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3426case `$LD -v 2>&1 </dev/null` in
3427*GNU* | *'with BFD'*)
3428  lt_cv_prog_gnu_ld=yes
3429  ;;
3430*)
3431  lt_cv_prog_gnu_ld=no
3432  ;;
3433esac
3434fi
3435echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3436echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3437with_gnu_ld=$lt_cv_prog_gnu_ld
3438
3439
3440echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3441echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3442if test "${lt_cv_ld_reload_flag+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  lt_cv_ld_reload_flag='-r'
3446fi
3447echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3448echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3449reload_flag=$lt_cv_ld_reload_flag
3450case $reload_flag in
3451"" | " "*) ;;
3452*) reload_flag=" $reload_flag" ;;
3453esac
3454reload_cmds='$LD$reload_flag -o $output$reload_objs'
3455case $host_os in
3456  darwin*)
3457    if test "$GCC" = yes; then
3458      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3459    else
3460      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3461    fi
3462    ;;
3463esac
3464
3465echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3466echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3467if test "${lt_cv_path_NM+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  if test -n "$NM"; then
3471  # Let the user override the test.
3472  lt_cv_path_NM="$NM"
3473else
3474  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3475  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3476    IFS="$lt_save_ifs"
3477    test -z "$ac_dir" && ac_dir=.
3478    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3479    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3480      # Check to see if the nm accepts a BSD-compat flag.
3481      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3482      #   nm: unknown option "B" ignored
3483      # Tru64's nm complains that /dev/null is an invalid object file
3484      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3485      */dev/null* | *'Invalid file or object type'*)
3486	lt_cv_path_NM="$tmp_nm -B"
3487	break
3488        ;;
3489      *)
3490	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3491	*/dev/null*)
3492	  lt_cv_path_NM="$tmp_nm -p"
3493	  break
3494	  ;;
3495	*)
3496	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3497	  continue # so that we can try to find one that supports BSD flags
3498	  ;;
3499	esac
3500      esac
3501    fi
3502  done
3503  IFS="$lt_save_ifs"
3504  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3505fi
3506fi
3507echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3508echo "${ECHO_T}$lt_cv_path_NM" >&6
3509NM="$lt_cv_path_NM"
3510
3511echo "$as_me:$LINENO: checking whether ln -s works" >&5
3512echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3513LN_S=$as_ln_s
3514if test "$LN_S" = "ln -s"; then
3515  echo "$as_me:$LINENO: result: yes" >&5
3516echo "${ECHO_T}yes" >&6
3517else
3518  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3519echo "${ECHO_T}no, using $LN_S" >&6
3520fi
3521
3522echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3523echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3524if test "${lt_cv_deplibs_check_method+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527  lt_cv_file_magic_cmd='$MAGIC_CMD'
3528lt_cv_file_magic_test_file=
3529lt_cv_deplibs_check_method='unknown'
3530# Need to set the preceding variable on all platforms that support
3531# interlibrary dependencies.
3532# 'none' -- dependencies not supported.
3533# `unknown' -- same as none, but documents that we really don't know.
3534# 'pass_all' -- all dependencies passed with no checks.
3535# 'test_compile' -- check by making test program.
3536# 'file_magic [[regex]]' -- check by looking for files in library path
3537# which responds to the $file_magic_cmd with a given extended regex.
3538# If you have `file' or equivalent on your system and you're not sure
3539# whether `pass_all' will *always* work, you probably want this one.
3540
3541case $host_os in
3542aix4* | aix5*)
3543  lt_cv_deplibs_check_method=pass_all
3544  ;;
3545
3546beos*)
3547  lt_cv_deplibs_check_method=pass_all
3548  ;;
3549
3550bsdi[45]*)
3551  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3552  lt_cv_file_magic_cmd='/usr/bin/file -L'
3553  lt_cv_file_magic_test_file=/shlib/libc.so
3554  ;;
3555
3556cygwin*)
3557  # func_win32_libid is a shell function defined in ltmain.sh
3558  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3559  lt_cv_file_magic_cmd='func_win32_libid'
3560  ;;
3561
3562mingw* | pw32*)
3563  # Base MSYS/MinGW do not provide the 'file' command needed by
3564  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3565  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3566  lt_cv_file_magic_cmd='$OBJDUMP -f'
3567  ;;
3568
3569darwin* | rhapsody*)
3570  lt_cv_deplibs_check_method=pass_all
3571  ;;
3572
3573freebsd* | kfreebsd*-gnu | dragonfly*)
3574  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3575    case $host_cpu in
3576    i*86 )
3577      # Not sure whether the presence of OpenBSD here was a mistake.
3578      # Let's accept both of them until this is cleared up.
3579      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3580      lt_cv_file_magic_cmd=/usr/bin/file
3581      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3582      ;;
3583    esac
3584  else
3585    lt_cv_deplibs_check_method=pass_all
3586  fi
3587  ;;
3588
3589gnu*)
3590  lt_cv_deplibs_check_method=pass_all
3591  ;;
3592
3593hpux10.20* | hpux11*)
3594  lt_cv_file_magic_cmd=/usr/bin/file
3595  case $host_cpu in
3596  ia64*)
3597    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3598    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3599    ;;
3600  hppa*64*)
3601    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]'
3602    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3603    ;;
3604  *)
3605    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3606    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3607    ;;
3608  esac
3609  ;;
3610
3611irix5* | irix6* | nonstopux*)
3612  case $LD in
3613  *-32|*"-32 ") libmagic=32-bit;;
3614  *-n32|*"-n32 ") libmagic=N32;;
3615  *-64|*"-64 ") libmagic=64-bit;;
3616  *) libmagic=never-match;;
3617  esac
3618  lt_cv_deplibs_check_method=pass_all
3619  ;;
3620
3621# This must be Linux ELF.
3622linux*)
3623  lt_cv_deplibs_check_method=pass_all
3624  ;;
3625
3626netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3627  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3628    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3629  else
3630    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3631  fi
3632  ;;
3633
3634newos6*)
3635  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3636  lt_cv_file_magic_cmd=/usr/bin/file
3637  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3638  ;;
3639
3640nto-qnx*)
3641  lt_cv_deplibs_check_method=unknown
3642  ;;
3643
3644openbsd*)
3645  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3646    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3647  else
3648    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3649  fi
3650  ;;
3651
3652osf3* | osf4* | osf5*)
3653  lt_cv_deplibs_check_method=pass_all
3654  ;;
3655
3656sco3.2v5*)
3657  lt_cv_deplibs_check_method=pass_all
3658  ;;
3659
3660solaris*)
3661  lt_cv_deplibs_check_method=pass_all
3662  ;;
3663
3664sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3665  case $host_vendor in
3666  motorola)
3667    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]'
3668    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3669    ;;
3670  ncr)
3671    lt_cv_deplibs_check_method=pass_all
3672    ;;
3673  sequent)
3674    lt_cv_file_magic_cmd='/bin/file'
3675    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3676    ;;
3677  sni)
3678    lt_cv_file_magic_cmd='/bin/file'
3679    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3680    lt_cv_file_magic_test_file=/lib/libc.so
3681    ;;
3682  siemens)
3683    lt_cv_deplibs_check_method=pass_all
3684    ;;
3685  esac
3686  ;;
3687
3688sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3689  lt_cv_deplibs_check_method=pass_all
3690  ;;
3691esac
3692
3693fi
3694echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3695echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3696file_magic_cmd=$lt_cv_file_magic_cmd
3697deplibs_check_method=$lt_cv_deplibs_check_method
3698test -z "$deplibs_check_method" && deplibs_check_method=unknown
3699
3700
3701
3702
3703# If no C compiler was specified, use CC.
3704LTCC=${LTCC-"$CC"}
3705
3706# Allow CC to be a program name with arguments.
3707compiler=$CC
3708
3709# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3710if test "${enable_libtool_lock+set}" = set; then
3711  enableval="$enable_libtool_lock"
3712
3713fi;
3714test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3715
3716# Some flags need to be propagated to the compiler or linker for good
3717# libtool support.
3718case $host in
3719ia64-*-hpux*)
3720  # Find out which ABI we are using.
3721  echo 'int i;' > conftest.$ac_ext
3722  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723  (eval $ac_compile) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; then
3727    case `/usr/bin/file conftest.$ac_objext` in
3728    *ELF-32*)
3729      HPUX_IA64_MODE="32"
3730      ;;
3731    *ELF-64*)
3732      HPUX_IA64_MODE="64"
3733      ;;
3734    esac
3735  fi
3736  rm -rf conftest*
3737  ;;
3738*-*-irix6*)
3739  # Find out which ABI we are using.
3740  echo '#line 3740 "configure"' > conftest.$ac_ext
3741  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742  (eval $ac_compile) 2>&5
3743  ac_status=$?
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); }; then
3746   if test "$lt_cv_prog_gnu_ld" = yes; then
3747    case `/usr/bin/file conftest.$ac_objext` in
3748    *32-bit*)
3749      LD="${LD-ld} -melf32bsmip"
3750      ;;
3751    *N32*)
3752      LD="${LD-ld} -melf32bmipn32"
3753      ;;
3754    *64-bit*)
3755      LD="${LD-ld} -melf64bmip"
3756      ;;
3757    esac
3758   else
3759    case `/usr/bin/file conftest.$ac_objext` in
3760    *32-bit*)
3761      LD="${LD-ld} -32"
3762      ;;
3763    *N32*)
3764      LD="${LD-ld} -n32"
3765      ;;
3766    *64-bit*)
3767      LD="${LD-ld} -64"
3768      ;;
3769    esac
3770   fi
3771  fi
3772  rm -rf conftest*
3773  ;;
3774
3775x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3776  # Find out which ABI we are using.
3777  echo 'int i;' > conftest.$ac_ext
3778  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779  (eval $ac_compile) 2>&5
3780  ac_status=$?
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); }; then
3783    case `/usr/bin/file conftest.o` in
3784    *32-bit*)
3785      case $host in
3786        x86_64-*linux*)
3787          LD="${LD-ld} -m elf_i386"
3788          ;;
3789        ppc64-*linux*|powerpc64-*linux*)
3790          LD="${LD-ld} -m elf32ppclinux"
3791          ;;
3792        s390x-*linux*)
3793          LD="${LD-ld} -m elf_s390"
3794          ;;
3795        sparc64-*linux*)
3796          LD="${LD-ld} -m elf32_sparc"
3797          ;;
3798      esac
3799      ;;
3800    *64-bit*)
3801      case $host in
3802        x86_64-*linux*)
3803          LD="${LD-ld} -m elf_x86_64"
3804          ;;
3805        ppc*-*linux*|powerpc*-*linux*)
3806          LD="${LD-ld} -m elf64ppc"
3807          ;;
3808        s390*-*linux*)
3809          LD="${LD-ld} -m elf64_s390"
3810          ;;
3811        sparc*-*linux*)
3812          LD="${LD-ld} -m elf64_sparc"
3813          ;;
3814      esac
3815      ;;
3816    esac
3817  fi
3818  rm -rf conftest*
3819  ;;
3820
3821*-*-sco3.2v5*)
3822  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3823  SAVE_CFLAGS="$CFLAGS"
3824  CFLAGS="$CFLAGS -belf"
3825  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3826echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3827if test "${lt_cv_cc_needs_belf+set}" = set; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830  ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836     cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853  (eval $ac_link) 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; } &&
3866	 { ac_try='test -s conftest$ac_exeext'
3867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868  (eval $ac_try) 2>&5
3869  ac_status=$?
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); }; }; then
3872  lt_cv_cc_needs_belf=yes
3873else
3874  echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
3876
3877lt_cv_cc_needs_belf=no
3878fi
3879rm -f conftest.err conftest.$ac_objext \
3880      conftest$ac_exeext conftest.$ac_ext
3881     ac_ext=c
3882ac_cpp='$CPP $CPPFLAGS'
3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887fi
3888echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3889echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3890  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3891    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3892    CFLAGS="$SAVE_CFLAGS"
3893  fi
3894  ;;
3895
3896esac
3897
3898need_locks="$enable_libtool_lock"
3899
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3907echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3908# On Suns, sometimes $CPP names a directory.
3909if test -n "$CPP" && test -d "$CPP"; then
3910  CPP=
3911fi
3912if test -z "$CPP"; then
3913  if test "${ac_cv_prog_CPP+set}" = set; then
3914  echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916      # Double quotes because CPP needs to be expanded
3917    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3918    do
3919      ac_preproc_ok=false
3920for ac_c_preproc_warn_flag in '' yes
3921do
3922  # Use a header file that comes with gcc, so configuring glibc
3923  # with a fresh cross-compiler works.
3924  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3925  # <limits.h> exists even on freestanding compilers.
3926  # On the NeXT, cc -E runs the code through the compiler's parser,
3927  # not just through cpp. "Syntax error" is here to catch this case.
3928  cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h.  */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h.  */
3934#ifdef __STDC__
3935# include <limits.h>
3936#else
3937# include <assert.h>
3938#endif
3939		     Syntax error
3940_ACEOF
3941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3942  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3943  ac_status=$?
3944  grep -v '^ *+' conftest.er1 >conftest.err
3945  rm -f conftest.er1
3946  cat conftest.err >&5
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); } >/dev/null; then
3949  if test -s conftest.err; then
3950    ac_cpp_err=$ac_c_preproc_warn_flag
3951    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3952  else
3953    ac_cpp_err=
3954  fi
3955else
3956  ac_cpp_err=yes
3957fi
3958if test -z "$ac_cpp_err"; then
3959  :
3960else
3961  echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964  # Broken: fails on valid input.
3965continue
3966fi
3967rm -f conftest.err conftest.$ac_ext
3968
3969  # OK, works on sane cases.  Now check whether non-existent headers
3970  # can be detected and how.
3971  cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977#include <ac_nonexistent.h>
3978_ACEOF
3979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3981  ac_status=$?
3982  grep -v '^ *+' conftest.er1 >conftest.err
3983  rm -f conftest.er1
3984  cat conftest.err >&5
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); } >/dev/null; then
3987  if test -s conftest.err; then
3988    ac_cpp_err=$ac_c_preproc_warn_flag
3989    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990  else
3991    ac_cpp_err=
3992  fi
3993else
3994  ac_cpp_err=yes
3995fi
3996if test -z "$ac_cpp_err"; then
3997  # Broken: success on invalid input.
3998continue
3999else
4000  echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003  # Passes both tests.
4004ac_preproc_ok=:
4005break
4006fi
4007rm -f conftest.err conftest.$ac_ext
4008
4009done
4010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011rm -f conftest.err conftest.$ac_ext
4012if $ac_preproc_ok; then
4013  break
4014fi
4015
4016    done
4017    ac_cv_prog_CPP=$CPP
4018
4019fi
4020  CPP=$ac_cv_prog_CPP
4021else
4022  ac_cv_prog_CPP=$CPP
4023fi
4024echo "$as_me:$LINENO: result: $CPP" >&5
4025echo "${ECHO_T}$CPP" >&6
4026ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
4028do
4029  # Use a header file that comes with gcc, so configuring glibc
4030  # with a fresh cross-compiler works.
4031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032  # <limits.h> exists even on freestanding compilers.
4033  # On the NeXT, cc -E runs the code through the compiler's parser,
4034  # not just through cpp. "Syntax error" is here to catch this case.
4035  cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041#ifdef __STDC__
4042# include <limits.h>
4043#else
4044# include <assert.h>
4045#endif
4046		     Syntax error
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050  ac_status=$?
4051  grep -v '^ *+' conftest.er1 >conftest.err
4052  rm -f conftest.er1
4053  cat conftest.err >&5
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); } >/dev/null; then
4056  if test -s conftest.err; then
4057    ac_cpp_err=$ac_c_preproc_warn_flag
4058    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4059  else
4060    ac_cpp_err=
4061  fi
4062else
4063  ac_cpp_err=yes
4064fi
4065if test -z "$ac_cpp_err"; then
4066  :
4067else
4068  echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071  # Broken: fails on valid input.
4072continue
4073fi
4074rm -f conftest.err conftest.$ac_ext
4075
4076  # OK, works on sane cases.  Now check whether non-existent headers
4077  # can be detected and how.
4078  cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h.  */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h.  */
4084#include <ac_nonexistent.h>
4085_ACEOF
4086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088  ac_status=$?
4089  grep -v '^ *+' conftest.er1 >conftest.err
4090  rm -f conftest.er1
4091  cat conftest.err >&5
4092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093  (exit $ac_status); } >/dev/null; then
4094  if test -s conftest.err; then
4095    ac_cpp_err=$ac_c_preproc_warn_flag
4096    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097  else
4098    ac_cpp_err=
4099  fi
4100else
4101  ac_cpp_err=yes
4102fi
4103if test -z "$ac_cpp_err"; then
4104  # Broken: success on invalid input.
4105continue
4106else
4107  echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110  # Passes both tests.
4111ac_preproc_ok=:
4112break
4113fi
4114rm -f conftest.err conftest.$ac_ext
4115
4116done
4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118rm -f conftest.err conftest.$ac_ext
4119if $ac_preproc_ok; then
4120  :
4121else
4122  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4123See \`config.log' for more details." >&5
4124echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4125See \`config.log' for more details." >&2;}
4126   { (exit 1); exit 1; }; }
4127fi
4128
4129ac_ext=c
4130ac_cpp='$CPP $CPPFLAGS'
4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135
4136echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4137echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4138if test "${ac_cv_header_stdc+set}" = set; then
4139  echo $ECHO_N "(cached) $ECHO_C" >&6
4140else
4141  cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147#include <stdlib.h>
4148#include <stdarg.h>
4149#include <string.h>
4150#include <float.h>
4151
4152int
4153main ()
4154{
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext
4161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162  (eval $ac_compile) 2>conftest.er1
4163  ac_status=$?
4164  grep -v '^ *+' conftest.er1 >conftest.err
4165  rm -f conftest.er1
4166  cat conftest.err >&5
4167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168  (exit $ac_status); } &&
4169	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171  (eval $ac_try) 2>&5
4172  ac_status=$?
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); }; } &&
4175	 { ac_try='test -s conftest.$ac_objext'
4176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177  (eval $ac_try) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }; }; then
4181  ac_cv_header_stdc=yes
4182else
4183  echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186ac_cv_header_stdc=no
4187fi
4188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4189
4190if test $ac_cv_header_stdc = yes; then
4191  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4192  cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h.  */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h.  */
4198#include <string.h>
4199
4200_ACEOF
4201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202  $EGREP "memchr" >/dev/null 2>&1; then
4203  :
4204else
4205  ac_cv_header_stdc=no
4206fi
4207rm -f conftest*
4208
4209fi
4210
4211if test $ac_cv_header_stdc = yes; then
4212  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4213  cat >conftest.$ac_ext <<_ACEOF
4214/* confdefs.h.  */
4215_ACEOF
4216cat confdefs.h >>conftest.$ac_ext
4217cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h.  */
4219#include <stdlib.h>
4220
4221_ACEOF
4222if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223  $EGREP "free" >/dev/null 2>&1; then
4224  :
4225else
4226  ac_cv_header_stdc=no
4227fi
4228rm -f conftest*
4229
4230fi
4231
4232if test $ac_cv_header_stdc = yes; then
4233  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4234  if test "$cross_compiling" = yes; then
4235  :
4236else
4237  cat >conftest.$ac_ext <<_ACEOF
4238/* confdefs.h.  */
4239_ACEOF
4240cat confdefs.h >>conftest.$ac_ext
4241cat >>conftest.$ac_ext <<_ACEOF
4242/* end confdefs.h.  */
4243#include <ctype.h>
4244#if ((' ' & 0x0FF) == 0x020)
4245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247#else
4248# define ISLOWER(c) \
4249		   (('a' <= (c) && (c) <= 'i') \
4250		     || ('j' <= (c) && (c) <= 'r') \
4251		     || ('s' <= (c) && (c) <= 'z'))
4252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253#endif
4254
4255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256int
4257main ()
4258{
4259  int i;
4260  for (i = 0; i < 256; i++)
4261    if (XOR (islower (i), ISLOWER (i))
4262	|| toupper (i) != TOUPPER (i))
4263      exit(2);
4264  exit (0);
4265}
4266_ACEOF
4267rm -f conftest$ac_exeext
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269  (eval $ac_link) 2>&5
4270  ac_status=$?
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274  (eval $ac_try) 2>&5
4275  ac_status=$?
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); }; }; then
4278  :
4279else
4280  echo "$as_me: program exited with status $ac_status" >&5
4281echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284( exit $ac_status )
4285ac_cv_header_stdc=no
4286fi
4287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4288fi
4289fi
4290fi
4291echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292echo "${ECHO_T}$ac_cv_header_stdc" >&6
4293if test $ac_cv_header_stdc = yes; then
4294
4295cat >>confdefs.h <<\_ACEOF
4296#define STDC_HEADERS 1
4297_ACEOF
4298
4299fi
4300
4301# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312		  inttypes.h stdint.h unistd.h
4313do
4314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315echo "$as_me:$LINENO: checking for $ac_header" >&5
4316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318  echo $ECHO_N "(cached) $ECHO_C" >&6
4319else
4320  cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h.  */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h.  */
4326$ac_includes_default
4327
4328#include <$ac_header>
4329_ACEOF
4330rm -f conftest.$ac_objext
4331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332  (eval $ac_compile) 2>conftest.er1
4333  ac_status=$?
4334  grep -v '^ *+' conftest.er1 >conftest.err
4335  rm -f conftest.er1
4336  cat conftest.err >&5
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); } &&
4339	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341  (eval $ac_try) 2>&5
4342  ac_status=$?
4343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344  (exit $ac_status); }; } &&
4345	 { ac_try='test -s conftest.$ac_objext'
4346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347  (eval $ac_try) 2>&5
4348  ac_status=$?
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); }; }; then
4351  eval "$as_ac_Header=yes"
4352else
4353  echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356eval "$as_ac_Header=no"
4357fi
4358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4359fi
4360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4362if test `eval echo '${'$as_ac_Header'}'` = yes; then
4363  cat >>confdefs.h <<_ACEOF
4364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4365_ACEOF
4366
4367fi
4368
4369done
4370
4371
4372
4373for ac_header in dlfcn.h
4374do
4375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4376if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377  echo "$as_me:$LINENO: checking for $ac_header" >&5
4378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4379if eval "test \"\${$as_ac_Header+set}\" = set"; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381fi
4382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4384else
4385  # Is the header compilable?
4386echo "$as_me:$LINENO: checking $ac_header usability" >&5
4387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4388cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h.  */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h.  */
4394$ac_includes_default
4395#include <$ac_header>
4396_ACEOF
4397rm -f conftest.$ac_objext
4398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399  (eval $ac_compile) 2>conftest.er1
4400  ac_status=$?
4401  grep -v '^ *+' conftest.er1 >conftest.err
4402  rm -f conftest.er1
4403  cat conftest.err >&5
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } &&
4406	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408  (eval $ac_try) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; } &&
4412	 { ac_try='test -s conftest.$ac_objext'
4413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414  (eval $ac_try) 2>&5
4415  ac_status=$?
4416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417  (exit $ac_status); }; }; then
4418  ac_header_compiler=yes
4419else
4420  echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423ac_header_compiler=no
4424fi
4425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4427echo "${ECHO_T}$ac_header_compiler" >&6
4428
4429# Is the header present?
4430echo "$as_me:$LINENO: checking $ac_header presence" >&5
4431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4432cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h.  */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h.  */
4438#include <$ac_header>
4439_ACEOF
4440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4441  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4442  ac_status=$?
4443  grep -v '^ *+' conftest.er1 >conftest.err
4444  rm -f conftest.er1
4445  cat conftest.err >&5
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); } >/dev/null; then
4448  if test -s conftest.err; then
4449    ac_cpp_err=$ac_c_preproc_warn_flag
4450    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4451  else
4452    ac_cpp_err=
4453  fi
4454else
4455  ac_cpp_err=yes
4456fi
4457if test -z "$ac_cpp_err"; then
4458  ac_header_preproc=yes
4459else
4460  echo "$as_me: failed program was:" >&5
4461sed 's/^/| /' conftest.$ac_ext >&5
4462
4463  ac_header_preproc=no
4464fi
4465rm -f conftest.err conftest.$ac_ext
4466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4467echo "${ECHO_T}$ac_header_preproc" >&6
4468
4469# So?  What about this header?
4470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4471  yes:no: )
4472    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4476    ac_header_preproc=yes
4477    ;;
4478  no:yes:* )
4479    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4481    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4482echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4483    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4485    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4486echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4487    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4489    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4491    (
4492      cat <<\_ASBOX
4493## ------------------------------------------ ##
4494## Report this to the AC_PACKAGE_NAME lists.  ##
4495## ------------------------------------------ ##
4496_ASBOX
4497    ) |
4498      sed "s/^/$as_me: WARNING:     /" >&2
4499    ;;
4500esac
4501echo "$as_me:$LINENO: checking for $ac_header" >&5
4502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4503if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504  echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506  eval "$as_ac_Header=\$ac_header_preproc"
4507fi
4508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4510
4511fi
4512if test `eval echo '${'$as_ac_Header'}'` = yes; then
4513  cat >>confdefs.h <<_ACEOF
4514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4515_ACEOF
4516
4517fi
4518
4519done
4520
4521ac_ext=cc
4522ac_cpp='$CXXCPP $CPPFLAGS'
4523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526if test -n "$ac_tool_prefix"; then
4527  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4528  do
4529    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4531echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533if test "${ac_cv_prog_CXX+set}" = set; then
4534  echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536  if test -n "$CXX"; then
4537  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542  IFS=$as_save_IFS
4543  test -z "$as_dir" && as_dir=.
4544  for ac_exec_ext in '' $ac_executable_extensions; do
4545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548    break 2
4549  fi
4550done
4551done
4552
4553fi
4554fi
4555CXX=$ac_cv_prog_CXX
4556if test -n "$CXX"; then
4557  echo "$as_me:$LINENO: result: $CXX" >&5
4558echo "${ECHO_T}$CXX" >&6
4559else
4560  echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562fi
4563
4564    test -n "$CXX" && break
4565  done
4566fi
4567if test -z "$CXX"; then
4568  ac_ct_CXX=$CXX
4569  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4570do
4571  # Extract the first word of "$ac_prog", so it can be a program name with args.
4572set dummy $ac_prog; ac_word=$2
4573echo "$as_me:$LINENO: checking for $ac_word" >&5
4574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4576  echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578  if test -n "$ac_ct_CXX"; then
4579  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4580else
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584  IFS=$as_save_IFS
4585  test -z "$as_dir" && as_dir=.
4586  for ac_exec_ext in '' $ac_executable_extensions; do
4587  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588    ac_cv_prog_ac_ct_CXX="$ac_prog"
4589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590    break 2
4591  fi
4592done
4593done
4594
4595fi
4596fi
4597ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598if test -n "$ac_ct_CXX"; then
4599  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4600echo "${ECHO_T}$ac_ct_CXX" >&6
4601else
4602  echo "$as_me:$LINENO: result: no" >&5
4603echo "${ECHO_T}no" >&6
4604fi
4605
4606  test -n "$ac_ct_CXX" && break
4607done
4608test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4609
4610  CXX=$ac_ct_CXX
4611fi
4612
4613
4614# Provide some information about the compiler.
4615echo "$as_me:$LINENO:" \
4616     "checking for C++ compiler version" >&5
4617ac_compiler=`set X $ac_compile; echo $2`
4618{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4619  (eval $ac_compiler --version </dev/null >&5) 2>&5
4620  ac_status=$?
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); }
4623{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4624  (eval $ac_compiler -v </dev/null >&5) 2>&5
4625  ac_status=$?
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); }
4628{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4629  (eval $ac_compiler -V </dev/null >&5) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }
4633
4634echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4635echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4636if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4637  echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639  cat >conftest.$ac_ext <<_ACEOF
4640/* confdefs.h.  */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h.  */
4645
4646int
4647main ()
4648{
4649#ifndef __GNUC__
4650       choke me
4651#endif
4652
4653  ;
4654  return 0;
4655}
4656_ACEOF
4657rm -f conftest.$ac_objext
4658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659  (eval $ac_compile) 2>conftest.er1
4660  ac_status=$?
4661  grep -v '^ *+' conftest.er1 >conftest.err
4662  rm -f conftest.er1
4663  cat conftest.err >&5
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); } &&
4666	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; } &&
4672	 { ac_try='test -s conftest.$ac_objext'
4673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674  (eval $ac_try) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; }; then
4678  ac_compiler_gnu=yes
4679else
4680  echo "$as_me: failed program was:" >&5
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683ac_compiler_gnu=no
4684fi
4685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4687
4688fi
4689echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4690echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4691GXX=`test $ac_compiler_gnu = yes && echo yes`
4692ac_test_CXXFLAGS=${CXXFLAGS+set}
4693ac_save_CXXFLAGS=$CXXFLAGS
4694CXXFLAGS="-g"
4695echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4696echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4697if test "${ac_cv_prog_cxx_g+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  cat >conftest.$ac_ext <<_ACEOF
4701/* confdefs.h.  */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h.  */
4706
4707int
4708main ()
4709{
4710
4711  ;
4712  return 0;
4713}
4714_ACEOF
4715rm -f conftest.$ac_objext
4716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717  (eval $ac_compile) 2>conftest.er1
4718  ac_status=$?
4719  grep -v '^ *+' conftest.er1 >conftest.err
4720  rm -f conftest.er1
4721  cat conftest.err >&5
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); } &&
4724	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726  (eval $ac_try) 2>&5
4727  ac_status=$?
4728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729  (exit $ac_status); }; } &&
4730	 { ac_try='test -s conftest.$ac_objext'
4731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732  (eval $ac_try) 2>&5
4733  ac_status=$?
4734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735  (exit $ac_status); }; }; then
4736  ac_cv_prog_cxx_g=yes
4737else
4738  echo "$as_me: failed program was:" >&5
4739sed 's/^/| /' conftest.$ac_ext >&5
4740
4741ac_cv_prog_cxx_g=no
4742fi
4743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744fi
4745echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4747if test "$ac_test_CXXFLAGS" = set; then
4748  CXXFLAGS=$ac_save_CXXFLAGS
4749elif test $ac_cv_prog_cxx_g = yes; then
4750  if test "$GXX" = yes; then
4751    CXXFLAGS="-g -O2"
4752  else
4753    CXXFLAGS="-g"
4754  fi
4755else
4756  if test "$GXX" = yes; then
4757    CXXFLAGS="-O2"
4758  else
4759    CXXFLAGS=
4760  fi
4761fi
4762for ac_declaration in \
4763   '' \
4764   'extern "C" void std::exit (int) throw (); using std::exit;' \
4765   'extern "C" void std::exit (int); using std::exit;' \
4766   'extern "C" void exit (int) throw ();' \
4767   'extern "C" void exit (int);' \
4768   'void exit (int);'
4769do
4770  cat >conftest.$ac_ext <<_ACEOF
4771/* confdefs.h.  */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h.  */
4776$ac_declaration
4777#include <stdlib.h>
4778int
4779main ()
4780{
4781exit (42);
4782  ;
4783  return 0;
4784}
4785_ACEOF
4786rm -f conftest.$ac_objext
4787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788  (eval $ac_compile) 2>conftest.er1
4789  ac_status=$?
4790  grep -v '^ *+' conftest.er1 >conftest.err
4791  rm -f conftest.er1
4792  cat conftest.err >&5
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); } &&
4795	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797  (eval $ac_try) 2>&5
4798  ac_status=$?
4799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800  (exit $ac_status); }; } &&
4801	 { ac_try='test -s conftest.$ac_objext'
4802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803  (eval $ac_try) 2>&5
4804  ac_status=$?
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); }; }; then
4807  :
4808else
4809  echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812continue
4813fi
4814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815  cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h.  */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h.  */
4821$ac_declaration
4822int
4823main ()
4824{
4825exit (42);
4826  ;
4827  return 0;
4828}
4829_ACEOF
4830rm -f conftest.$ac_objext
4831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4832  (eval $ac_compile) 2>conftest.er1
4833  ac_status=$?
4834  grep -v '^ *+' conftest.er1 >conftest.err
4835  rm -f conftest.er1
4836  cat conftest.err >&5
4837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838  (exit $ac_status); } &&
4839	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841  (eval $ac_try) 2>&5
4842  ac_status=$?
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); }; } &&
4845	 { ac_try='test -s conftest.$ac_objext'
4846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847  (eval $ac_try) 2>&5
4848  ac_status=$?
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); }; }; then
4851  break
4852else
4853  echo "$as_me: failed program was:" >&5
4854sed 's/^/| /' conftest.$ac_ext >&5
4855
4856fi
4857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858done
4859rm -f conftest*
4860if test -n "$ac_declaration"; then
4861  echo '#ifdef __cplusplus' >>confdefs.h
4862  echo $ac_declaration      >>confdefs.h
4863  echo '#endif'             >>confdefs.h
4864fi
4865
4866ac_ext=cc
4867ac_cpp='$CXXCPP $CPPFLAGS'
4868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4871
4872depcc="$CXX"  am_compiler_list=
4873
4874echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4875echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4876if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4877  echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4880  # We make a subdir and do the tests there.  Otherwise we can end up
4881  # making bogus files that we don't know about and never remove.  For
4882  # instance it was reported that on HP-UX the gcc test will end up
4883  # making a dummy file named `D' -- because `-MD' means `put the output
4884  # in D'.
4885  mkdir conftest.dir
4886  # Copy depcomp to subdir because otherwise we won't find it if we're
4887  # using a relative directory.
4888  cp "$am_depcomp" conftest.dir
4889  cd conftest.dir
4890  # We will build objects and dependencies in a subdirectory because
4891  # it helps to detect inapplicable dependency modes.  For instance
4892  # both Tru64's cc and ICC support -MD to output dependencies as a
4893  # side effect of compilation, but ICC will put the dependencies in
4894  # the current directory while Tru64 will put them in the object
4895  # directory.
4896  mkdir sub
4897
4898  am_cv_CXX_dependencies_compiler_type=none
4899  if test "$am_compiler_list" = ""; then
4900     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4901  fi
4902  for depmode in $am_compiler_list; do
4903    # Setup a source with many dependencies, because some compilers
4904    # like to wrap large dependency lists on column 80 (with \), and
4905    # we should not choose a depcomp mode which is confused by this.
4906    #
4907    # We need to recreate these files for each test, as the compiler may
4908    # overwrite some of them when testing with obscure command lines.
4909    # This happens at least with the AIX C compiler.
4910    : > sub/conftest.c
4911    for i in 1 2 3 4 5 6; do
4912      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4913      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4914      # Solaris 8's {/usr,}/bin/sh.
4915      touch sub/conftst$i.h
4916    done
4917    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4918
4919    case $depmode in
4920    nosideeffect)
4921      # after this tag, mechanisms are not by side-effect, so they'll
4922      # only be used when explicitly requested
4923      if test "x$enable_dependency_tracking" = xyes; then
4924	continue
4925      else
4926	break
4927      fi
4928      ;;
4929    none) break ;;
4930    esac
4931    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4932    # mode.  It turns out that the SunPro C++ compiler does not properly
4933    # handle `-M -o', and we need to detect this.
4934    if depmode=$depmode \
4935       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4936       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4937       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4938         >/dev/null 2>conftest.err &&
4939       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4940       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4941       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4942      # icc doesn't choke on unknown options, it will just issue warnings
4943      # or remarks (even with -Werror).  So we grep stderr for any message
4944      # that says an option was ignored or not supported.
4945      # When given -MP, icc 7.0 and 7.1 complain thusly:
4946      #   icc: Command line warning: ignoring option '-M'; no argument required
4947      # The diagnosis changed in icc 8.0:
4948      #   icc: Command line remark: option '-MP' not supported
4949      if (grep 'ignoring option' conftest.err ||
4950          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4951        am_cv_CXX_dependencies_compiler_type=$depmode
4952        break
4953      fi
4954    fi
4955  done
4956
4957  cd ..
4958  rm -rf conftest.dir
4959else
4960  am_cv_CXX_dependencies_compiler_type=none
4961fi
4962
4963fi
4964echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4965echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4966CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4967
4968
4969
4970if
4971  test "x$enable_dependency_tracking" != xno \
4972  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4973  am__fastdepCXX_TRUE=
4974  am__fastdepCXX_FALSE='#'
4975else
4976  am__fastdepCXX_TRUE='#'
4977  am__fastdepCXX_FALSE=
4978fi
4979
4980
4981
4982
4983if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4984    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4985    (test "X$CXX" != "Xg++"))) ; then
4986  ac_ext=cc
4987ac_cpp='$CXXCPP $CPPFLAGS'
4988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4992echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4993if test -z "$CXXCPP"; then
4994  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4995  echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997      # Double quotes because CXXCPP needs to be expanded
4998    for CXXCPP in "$CXX -E" "/lib/cpp"
4999    do
5000      ac_preproc_ok=false
5001for ac_cxx_preproc_warn_flag in '' yes
5002do
5003  # Use a header file that comes with gcc, so configuring glibc
5004  # with a fresh cross-compiler works.
5005  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006  # <limits.h> exists even on freestanding compilers.
5007  # On the NeXT, cc -E runs the code through the compiler's parser,
5008  # not just through cpp. "Syntax error" is here to catch this case.
5009  cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h.  */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h.  */
5015#ifdef __STDC__
5016# include <limits.h>
5017#else
5018# include <assert.h>
5019#endif
5020		     Syntax error
5021_ACEOF
5022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5024  ac_status=$?
5025  grep -v '^ *+' conftest.er1 >conftest.err
5026  rm -f conftest.er1
5027  cat conftest.err >&5
5028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029  (exit $ac_status); } >/dev/null; then
5030  if test -s conftest.err; then
5031    ac_cpp_err=$ac_cxx_preproc_warn_flag
5032    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5033  else
5034    ac_cpp_err=
5035  fi
5036else
5037  ac_cpp_err=yes
5038fi
5039if test -z "$ac_cpp_err"; then
5040  :
5041else
5042  echo "$as_me: failed program was:" >&5
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
5045  # Broken: fails on valid input.
5046continue
5047fi
5048rm -f conftest.err conftest.$ac_ext
5049
5050  # OK, works on sane cases.  Now check whether non-existent headers
5051  # can be detected and how.
5052  cat >conftest.$ac_ext <<_ACEOF
5053/* confdefs.h.  */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h.  */
5058#include <ac_nonexistent.h>
5059_ACEOF
5060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062  ac_status=$?
5063  grep -v '^ *+' conftest.er1 >conftest.err
5064  rm -f conftest.er1
5065  cat conftest.err >&5
5066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067  (exit $ac_status); } >/dev/null; then
5068  if test -s conftest.err; then
5069    ac_cpp_err=$ac_cxx_preproc_warn_flag
5070    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071  else
5072    ac_cpp_err=
5073  fi
5074else
5075  ac_cpp_err=yes
5076fi
5077if test -z "$ac_cpp_err"; then
5078  # Broken: success on invalid input.
5079continue
5080else
5081  echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084  # Passes both tests.
5085ac_preproc_ok=:
5086break
5087fi
5088rm -f conftest.err conftest.$ac_ext
5089
5090done
5091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092rm -f conftest.err conftest.$ac_ext
5093if $ac_preproc_ok; then
5094  break
5095fi
5096
5097    done
5098    ac_cv_prog_CXXCPP=$CXXCPP
5099
5100fi
5101  CXXCPP=$ac_cv_prog_CXXCPP
5102else
5103  ac_cv_prog_CXXCPP=$CXXCPP
5104fi
5105echo "$as_me:$LINENO: result: $CXXCPP" >&5
5106echo "${ECHO_T}$CXXCPP" >&6
5107ac_preproc_ok=false
5108for ac_cxx_preproc_warn_flag in '' yes
5109do
5110  # Use a header file that comes with gcc, so configuring glibc
5111  # with a fresh cross-compiler works.
5112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113  # <limits.h> exists even on freestanding compilers.
5114  # On the NeXT, cc -E runs the code through the compiler's parser,
5115  # not just through cpp. "Syntax error" is here to catch this case.
5116  cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h.  */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h.  */
5122#ifdef __STDC__
5123# include <limits.h>
5124#else
5125# include <assert.h>
5126#endif
5127		     Syntax error
5128_ACEOF
5129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131  ac_status=$?
5132  grep -v '^ *+' conftest.er1 >conftest.err
5133  rm -f conftest.er1
5134  cat conftest.err >&5
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); } >/dev/null; then
5137  if test -s conftest.err; then
5138    ac_cpp_err=$ac_cxx_preproc_warn_flag
5139    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140  else
5141    ac_cpp_err=
5142  fi
5143else
5144  ac_cpp_err=yes
5145fi
5146if test -z "$ac_cpp_err"; then
5147  :
5148else
5149  echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152  # Broken: fails on valid input.
5153continue
5154fi
5155rm -f conftest.err conftest.$ac_ext
5156
5157  # OK, works on sane cases.  Now check whether non-existent headers
5158  # can be detected and how.
5159  cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165#include <ac_nonexistent.h>
5166_ACEOF
5167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169  ac_status=$?
5170  grep -v '^ *+' conftest.er1 >conftest.err
5171  rm -f conftest.er1
5172  cat conftest.err >&5
5173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174  (exit $ac_status); } >/dev/null; then
5175  if test -s conftest.err; then
5176    ac_cpp_err=$ac_cxx_preproc_warn_flag
5177    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5178  else
5179    ac_cpp_err=
5180  fi
5181else
5182  ac_cpp_err=yes
5183fi
5184if test -z "$ac_cpp_err"; then
5185  # Broken: success on invalid input.
5186continue
5187else
5188  echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
5190
5191  # Passes both tests.
5192ac_preproc_ok=:
5193break
5194fi
5195rm -f conftest.err conftest.$ac_ext
5196
5197done
5198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199rm -f conftest.err conftest.$ac_ext
5200if $ac_preproc_ok; then
5201  :
5202else
5203  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5204See \`config.log' for more details." >&5
5205echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5206See \`config.log' for more details." >&2;}
5207   { (exit 1); exit 1; }; }
5208fi
5209
5210ac_ext=cc
5211ac_cpp='$CXXCPP $CPPFLAGS'
5212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5215
5216fi
5217
5218
5219ac_ext=f
5220ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5221ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5223if test -n "$ac_tool_prefix"; then
5224  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5225  do
5226    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5228echo "$as_me:$LINENO: checking for $ac_word" >&5
5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5230if test "${ac_cv_prog_F77+set}" = set; then
5231  echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233  if test -n "$F77"; then
5234  ac_cv_prog_F77="$F77" # Let the user override the test.
5235else
5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237for as_dir in $PATH
5238do
5239  IFS=$as_save_IFS
5240  test -z "$as_dir" && as_dir=.
5241  for ac_exec_ext in '' $ac_executable_extensions; do
5242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245    break 2
5246  fi
5247done
5248done
5249
5250fi
5251fi
5252F77=$ac_cv_prog_F77
5253if test -n "$F77"; then
5254  echo "$as_me:$LINENO: result: $F77" >&5
5255echo "${ECHO_T}$F77" >&6
5256else
5257  echo "$as_me:$LINENO: result: no" >&5
5258echo "${ECHO_T}no" >&6
5259fi
5260
5261    test -n "$F77" && break
5262  done
5263fi
5264if test -z "$F77"; then
5265  ac_ct_F77=$F77
5266  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5267do
5268  # Extract the first word of "$ac_prog", so it can be a program name with args.
5269set dummy $ac_prog; ac_word=$2
5270echo "$as_me:$LINENO: checking for $ac_word" >&5
5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275  if test -n "$ac_ct_F77"; then
5276  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281  IFS=$as_save_IFS
5282  test -z "$as_dir" && as_dir=.
5283  for ac_exec_ext in '' $ac_executable_extensions; do
5284  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285    ac_cv_prog_ac_ct_F77="$ac_prog"
5286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287    break 2
5288  fi
5289done
5290done
5291
5292fi
5293fi
5294ac_ct_F77=$ac_cv_prog_ac_ct_F77
5295if test -n "$ac_ct_F77"; then
5296  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5297echo "${ECHO_T}$ac_ct_F77" >&6
5298else
5299  echo "$as_me:$LINENO: result: no" >&5
5300echo "${ECHO_T}no" >&6
5301fi
5302
5303  test -n "$ac_ct_F77" && break
5304done
5305
5306  F77=$ac_ct_F77
5307fi
5308
5309
5310# Provide some information about the compiler.
5311echo "$as_me:5311:" \
5312     "checking for Fortran 77 compiler version" >&5
5313ac_compiler=`set X $ac_compile; echo $2`
5314{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5315  (eval $ac_compiler --version </dev/null >&5) 2>&5
5316  ac_status=$?
5317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318  (exit $ac_status); }
5319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5320  (eval $ac_compiler -v </dev/null >&5) 2>&5
5321  ac_status=$?
5322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323  (exit $ac_status); }
5324{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5325  (eval $ac_compiler -V </dev/null >&5) 2>&5
5326  ac_status=$?
5327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328  (exit $ac_status); }
5329rm -f a.out
5330
5331# If we don't use `.F' as extension, the preprocessor is not run on the
5332# input file.  (Note that this only needs to work for GNU compilers.)
5333ac_save_ext=$ac_ext
5334ac_ext=F
5335echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5336echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5337if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5338  echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340  cat >conftest.$ac_ext <<_ACEOF
5341      program main
5342#ifndef __GNUC__
5343       choke me
5344#endif
5345
5346      end
5347_ACEOF
5348rm -f conftest.$ac_objext
5349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350  (eval $ac_compile) 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); } &&
5357	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359  (eval $ac_try) 2>&5
5360  ac_status=$?
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); }; } &&
5363	 { ac_try='test -s conftest.$ac_objext'
5364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365  (eval $ac_try) 2>&5
5366  ac_status=$?
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); }; }; then
5369  ac_compiler_gnu=yes
5370else
5371  echo "$as_me: failed program was:" >&5
5372sed 's/^/| /' conftest.$ac_ext >&5
5373
5374ac_compiler_gnu=no
5375fi
5376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5377ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5378
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5381echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5382ac_ext=$ac_save_ext
5383ac_test_FFLAGS=${FFLAGS+set}
5384ac_save_FFLAGS=$FFLAGS
5385FFLAGS=
5386echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5387echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5388if test "${ac_cv_prog_f77_g+set}" = set; then
5389  echo $ECHO_N "(cached) $ECHO_C" >&6
5390else
5391  FFLAGS=-g
5392cat >conftest.$ac_ext <<_ACEOF
5393      program main
5394
5395      end
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399  (eval $ac_compile) 2>conftest.er1
5400  ac_status=$?
5401  grep -v '^ *+' conftest.er1 >conftest.err
5402  rm -f conftest.er1
5403  cat conftest.err >&5
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } &&
5406	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408  (eval $ac_try) 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; } &&
5412	 { ac_try='test -s conftest.$ac_objext'
5413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414  (eval $ac_try) 2>&5
5415  ac_status=$?
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); }; }; then
5418  ac_cv_prog_f77_g=yes
5419else
5420  echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423ac_cv_prog_f77_g=no
5424fi
5425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427fi
5428echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5429echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5430if test "$ac_test_FFLAGS" = set; then
5431  FFLAGS=$ac_save_FFLAGS
5432elif test $ac_cv_prog_f77_g = yes; then
5433  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5434    FFLAGS="-g -O2"
5435  else
5436    FFLAGS="-g"
5437  fi
5438else
5439  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5440    FFLAGS="-O2"
5441  else
5442    FFLAGS=
5443  fi
5444fi
5445
5446G77=`test $ac_compiler_gnu = yes && echo yes`
5447ac_ext=c
5448ac_cpp='$CPP $CPPFLAGS'
5449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453
5454
5455# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5456
5457# find the maximum length of command line arguments
5458echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5459echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5460if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5461  echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463    i=0
5464  teststring="ABCD"
5465
5466  case $build_os in
5467  msdosdjgpp*)
5468    # On DJGPP, this test can blow up pretty badly due to problems in libc
5469    # (any single argument exceeding 2000 bytes causes a buffer overrun
5470    # during glob expansion).  Even if it were fixed, the result of this
5471    # check would be larger than it should be.
5472    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5473    ;;
5474
5475  gnu*)
5476    # Under GNU Hurd, this test is not required because there is
5477    # no limit to the length of command line arguments.
5478    # Libtool will interpret -1 as no limit whatsoever
5479    lt_cv_sys_max_cmd_len=-1;
5480    ;;
5481
5482  cygwin* | mingw*)
5483    # On Win9x/ME, this test blows up -- it succeeds, but takes
5484    # about 5 minutes as the teststring grows exponentially.
5485    # Worse, since 9x/ME are not pre-emptively multitasking,
5486    # you end up with a "frozen" computer, even though with patience
5487    # the test eventually succeeds (with a max line length of 256k).
5488    # Instead, let's just punt: use the minimum linelength reported by
5489    # all of the supported platforms: 8192 (on NT/2K/XP).
5490    lt_cv_sys_max_cmd_len=8192;
5491    ;;
5492
5493  amigaos*)
5494    # On AmigaOS with pdksh, this test takes hours, literally.
5495    # So we just punt and use a minimum line length of 8192.
5496    lt_cv_sys_max_cmd_len=8192;
5497    ;;
5498
5499  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5500    # This has been around since 386BSD, at least.  Likely further.
5501    if test -x /sbin/sysctl; then
5502      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5503    elif test -x /usr/sbin/sysctl; then
5504      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5505    else
5506      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5507    fi
5508    # And add a safety zone
5509    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5511    ;;
5512  osf*)
5513    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5514    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5515    # nice to cause kernel panics so lets avoid the loop below.
5516    # First set a reasonable default.
5517    lt_cv_sys_max_cmd_len=16384
5518    #
5519    if test -x /sbin/sysconfig; then
5520      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5521        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5522      esac
5523    fi
5524    ;;
5525  *)
5526    # If test is not a shell built-in, we'll probably end up computing a
5527    # maximum length that is only half of the actual maximum length, but
5528    # we can't tell.
5529    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5530    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5531	       = "XX$teststring") >/dev/null 2>&1 &&
5532	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5533	    lt_cv_sys_max_cmd_len=$new_result &&
5534	    test $i != 17 # 1/2 MB should be enough
5535    do
5536      i=`expr $i + 1`
5537      teststring=$teststring$teststring
5538    done
5539    teststring=
5540    # Add a significant safety factor because C++ compilers can tack on massive
5541    # amounts of additional arguments before passing them to the linker.
5542    # It appears as though 1/2 is a usable value.
5543    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5544    ;;
5545  esac
5546
5547fi
5548
5549if test -n $lt_cv_sys_max_cmd_len ; then
5550  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5551echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5552else
5553  echo "$as_me:$LINENO: result: none" >&5
5554echo "${ECHO_T}none" >&6
5555fi
5556
5557
5558
5559
5560# Check for command to grab the raw symbol name followed by C symbol from nm.
5561echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5562echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5563if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5564  echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566
5567# These are sane defaults that work on at least a few old systems.
5568# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5569
5570# Character class describing NM global symbol codes.
5571symcode='[BCDEGRST]'
5572
5573# Regexp to match symbols that can be accessed directly from C.
5574sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5575
5576# Transform an extracted symbol line into a proper C declaration
5577lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5578
5579# Transform an extracted symbol line into symbol name and symbol address
5580lt_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'"
5581
5582# Define system-specific variables.
5583case $host_os in
5584aix*)
5585  symcode='[BCDT]'
5586  ;;
5587cygwin* | mingw* | pw32*)
5588  symcode='[ABCDGISTW]'
5589  ;;
5590hpux*) # Its linker distinguishes data from code symbols
5591  if test "$host_cpu" = ia64; then
5592    symcode='[ABCDEGRST]'
5593  fi
5594  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5595  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'"
5596  ;;
5597linux*)
5598  if test "$host_cpu" = ia64; then
5599    symcode='[ABCDGIRSTW]'
5600    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601    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'"
5602  fi
5603  ;;
5604irix* | nonstopux*)
5605  symcode='[BCDEGRST]'
5606  ;;
5607osf*)
5608  symcode='[BCDEGQRST]'
5609  ;;
5610solaris* | sysv5*)
5611  symcode='[BDRT]'
5612  ;;
5613sysv4)
5614  symcode='[DFNSTU]'
5615  ;;
5616esac
5617
5618# Handle CRLF in mingw tool chain
5619opt_cr=
5620case $build_os in
5621mingw*)
5622  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5623  ;;
5624esac
5625
5626# If we're using GNU nm, then use its standard symbol codes.
5627case `$NM -V 2>&1` in
5628*GNU* | *'with BFD'*)
5629  symcode='[ABCDGIRSTW]' ;;
5630esac
5631
5632# Try without a prefix undercore, then with it.
5633for ac_symprfx in "" "_"; do
5634
5635  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5636  symxfrm="\\1 $ac_symprfx\\2 \\2"
5637
5638  # Write the raw and C identifiers.
5639  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5640
5641  # Check to see that the pipe works correctly.
5642  pipe_works=no
5643
5644  rm -f conftest*
5645  cat > conftest.$ac_ext <<EOF
5646#ifdef __cplusplus
5647extern "C" {
5648#endif
5649char nm_test_var;
5650void nm_test_func(){}
5651#ifdef __cplusplus
5652}
5653#endif
5654int main(){nm_test_var='a';nm_test_func();return(0);}
5655EOF
5656
5657  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658  (eval $ac_compile) 2>&5
5659  ac_status=$?
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); }; then
5662    # Now try to grab the symbols.
5663    nlist=conftest.nm
5664    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5665  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5666  ac_status=$?
5667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668  (exit $ac_status); } && test -s "$nlist"; then
5669      # Try sorting and uniquifying the output.
5670      if sort "$nlist" | uniq > "$nlist"T; then
5671	mv -f "$nlist"T "$nlist"
5672      else
5673	rm -f "$nlist"T
5674      fi
5675
5676      # Make sure that we snagged all the symbols we need.
5677      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5678	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5679	  cat <<EOF > conftest.$ac_ext
5680#ifdef __cplusplus
5681extern "C" {
5682#endif
5683
5684EOF
5685	  # Now generate the symbol file.
5686	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5687
5688	  cat <<EOF >> conftest.$ac_ext
5689#if defined (__STDC__) && __STDC__
5690# define lt_ptr_t void *
5691#else
5692# define lt_ptr_t char *
5693# define const
5694#endif
5695
5696/* The mapping between symbol names and symbols. */
5697const struct {
5698  const char *name;
5699  lt_ptr_t address;
5700}
5701lt_preloaded_symbols[] =
5702{
5703EOF
5704	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5705	  cat <<\EOF >> conftest.$ac_ext
5706  {0, (lt_ptr_t) 0}
5707};
5708
5709#ifdef __cplusplus
5710}
5711#endif
5712EOF
5713	  # Now try linking the two files.
5714	  mv conftest.$ac_objext conftstm.$ac_objext
5715	  lt_save_LIBS="$LIBS"
5716	  lt_save_CFLAGS="$CFLAGS"
5717	  LIBS="conftstm.$ac_objext"
5718	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5719	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5720  (eval $ac_link) 2>&5
5721  ac_status=$?
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5724	    pipe_works=yes
5725	  fi
5726	  LIBS="$lt_save_LIBS"
5727	  CFLAGS="$lt_save_CFLAGS"
5728	else
5729	  echo "cannot find nm_test_func in $nlist" >&5
5730	fi
5731      else
5732	echo "cannot find nm_test_var in $nlist" >&5
5733      fi
5734    else
5735      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5736    fi
5737  else
5738    echo "$progname: failed program was:" >&5
5739    cat conftest.$ac_ext >&5
5740  fi
5741  rm -f conftest* conftst*
5742
5743  # Do not use the global_symbol_pipe unless it works.
5744  if test "$pipe_works" = yes; then
5745    break
5746  else
5747    lt_cv_sys_global_symbol_pipe=
5748  fi
5749done
5750
5751fi
5752
5753if test -z "$lt_cv_sys_global_symbol_pipe"; then
5754  lt_cv_sys_global_symbol_to_cdecl=
5755fi
5756if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5757  echo "$as_me:$LINENO: result: failed" >&5
5758echo "${ECHO_T}failed" >&6
5759else
5760  echo "$as_me:$LINENO: result: ok" >&5
5761echo "${ECHO_T}ok" >&6
5762fi
5763
5764echo "$as_me:$LINENO: checking for objdir" >&5
5765echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5766if test "${lt_cv_objdir+set}" = set; then
5767  echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769  rm -f .libs 2>/dev/null
5770mkdir .libs 2>/dev/null
5771if test -d .libs; then
5772  lt_cv_objdir=.libs
5773else
5774  # MS-DOS does not allow filenames that begin with a dot.
5775  lt_cv_objdir=_libs
5776fi
5777rmdir .libs 2>/dev/null
5778fi
5779echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5780echo "${ECHO_T}$lt_cv_objdir" >&6
5781objdir=$lt_cv_objdir
5782
5783
5784
5785
5786
5787case $host_os in
5788aix3*)
5789  # AIX sometimes has problems with the GCC collect2 program.  For some
5790  # reason, if we set the COLLECT_NAMES environment variable, the problems
5791  # vanish in a puff of smoke.
5792  if test "X${COLLECT_NAMES+set}" != Xset; then
5793    COLLECT_NAMES=
5794    export COLLECT_NAMES
5795  fi
5796  ;;
5797esac
5798
5799# Sed substitution that helps us do robust quoting.  It backslashifies
5800# metacharacters that are still active within double-quoted strings.
5801Xsed='sed -e 1s/^X//'
5802sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5803
5804# Same as above, but do not quote variable references.
5805double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5806
5807# Sed substitution to delay expansion of an escaped shell variable in a
5808# double_quote_subst'ed string.
5809delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5810
5811# Sed substitution to avoid accidental globbing in evaled expressions
5812no_glob_subst='s/\*/\\\*/g'
5813
5814# Constants:
5815rm="rm -f"
5816
5817# Global variables:
5818default_ofile=libtool
5819can_build_shared=yes
5820
5821# All known linkers require a `.a' archive for static linking (except MSVC,
5822# which needs '.lib').
5823libext=a
5824ltmain="$ac_aux_dir/ltmain.sh"
5825ofile="$default_ofile"
5826with_gnu_ld="$lt_cv_prog_gnu_ld"
5827
5828if test -n "$ac_tool_prefix"; then
5829  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5830set dummy ${ac_tool_prefix}ar; ac_word=$2
5831echo "$as_me:$LINENO: checking for $ac_word" >&5
5832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5833if test "${ac_cv_prog_AR+set}" = set; then
5834  echo $ECHO_N "(cached) $ECHO_C" >&6
5835else
5836  if test -n "$AR"; then
5837  ac_cv_prog_AR="$AR" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842  IFS=$as_save_IFS
5843  test -z "$as_dir" && as_dir=.
5844  for ac_exec_ext in '' $ac_executable_extensions; do
5845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846    ac_cv_prog_AR="${ac_tool_prefix}ar"
5847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848    break 2
5849  fi
5850done
5851done
5852
5853fi
5854fi
5855AR=$ac_cv_prog_AR
5856if test -n "$AR"; then
5857  echo "$as_me:$LINENO: result: $AR" >&5
5858echo "${ECHO_T}$AR" >&6
5859else
5860  echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862fi
5863
5864fi
5865if test -z "$ac_cv_prog_AR"; then
5866  ac_ct_AR=$AR
5867  # Extract the first word of "ar", so it can be a program name with args.
5868set dummy ar; ac_word=$2
5869echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5871if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874  if test -n "$ac_ct_AR"; then
5875  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5876else
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880  IFS=$as_save_IFS
5881  test -z "$as_dir" && as_dir=.
5882  for ac_exec_ext in '' $ac_executable_extensions; do
5883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884    ac_cv_prog_ac_ct_AR="ar"
5885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5886    break 2
5887  fi
5888done
5889done
5890
5891  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5892fi
5893fi
5894ac_ct_AR=$ac_cv_prog_ac_ct_AR
5895if test -n "$ac_ct_AR"; then
5896  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5897echo "${ECHO_T}$ac_ct_AR" >&6
5898else
5899  echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6
5901fi
5902
5903  AR=$ac_ct_AR
5904else
5905  AR="$ac_cv_prog_AR"
5906fi
5907
5908if test -n "$ac_tool_prefix"; then
5909  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913if test "${ac_cv_prog_RANLIB+set}" = set; then
5914  echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916  if test -n "$RANLIB"; then
5917  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924  for ac_exec_ext in '' $ac_executable_extensions; do
5925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931done
5932
5933fi
5934fi
5935RANLIB=$ac_cv_prog_RANLIB
5936if test -n "$RANLIB"; then
5937  echo "$as_me:$LINENO: result: $RANLIB" >&5
5938echo "${ECHO_T}$RANLIB" >&6
5939else
5940  echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942fi
5943
5944fi
5945if test -z "$ac_cv_prog_RANLIB"; then
5946  ac_ct_RANLIB=$RANLIB
5947  # Extract the first word of "ranlib", so it can be a program name with args.
5948set dummy ranlib; ac_word=$2
5949echo "$as_me:$LINENO: checking for $ac_word" >&5
5950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5951if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5952  echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954  if test -n "$ac_ct_RANLIB"; then
5955  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962  for ac_exec_ext in '' $ac_executable_extensions; do
5963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964    ac_cv_prog_ac_ct_RANLIB="ranlib"
5965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966    break 2
5967  fi
5968done
5969done
5970
5971  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5972fi
5973fi
5974ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5975if test -n "$ac_ct_RANLIB"; then
5976  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5977echo "${ECHO_T}$ac_ct_RANLIB" >&6
5978else
5979  echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6
5981fi
5982
5983  RANLIB=$ac_ct_RANLIB
5984else
5985  RANLIB="$ac_cv_prog_RANLIB"
5986fi
5987
5988if test -n "$ac_tool_prefix"; then
5989  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5990set dummy ${ac_tool_prefix}strip; ac_word=$2
5991echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993if test "${ac_cv_prog_STRIP+set}" = set; then
5994  echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996  if test -n "$STRIP"; then
5997  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002  IFS=$as_save_IFS
6003  test -z "$as_dir" && as_dir=.
6004  for ac_exec_ext in '' $ac_executable_extensions; do
6005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008    break 2
6009  fi
6010done
6011done
6012
6013fi
6014fi
6015STRIP=$ac_cv_prog_STRIP
6016if test -n "$STRIP"; then
6017  echo "$as_me:$LINENO: result: $STRIP" >&5
6018echo "${ECHO_T}$STRIP" >&6
6019else
6020  echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022fi
6023
6024fi
6025if test -z "$ac_cv_prog_STRIP"; then
6026  ac_ct_STRIP=$STRIP
6027  # Extract the first word of "strip", so it can be a program name with args.
6028set dummy strip; ac_word=$2
6029echo "$as_me:$LINENO: checking for $ac_word" >&5
6030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6031if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6032  echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034  if test -n "$ac_ct_STRIP"; then
6035  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040  IFS=$as_save_IFS
6041  test -z "$as_dir" && as_dir=.
6042  for ac_exec_ext in '' $ac_executable_extensions; do
6043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044    ac_cv_prog_ac_ct_STRIP="strip"
6045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046    break 2
6047  fi
6048done
6049done
6050
6051  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6052fi
6053fi
6054ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055if test -n "$ac_ct_STRIP"; then
6056  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6057echo "${ECHO_T}$ac_ct_STRIP" >&6
6058else
6059  echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061fi
6062
6063  STRIP=$ac_ct_STRIP
6064else
6065  STRIP="$ac_cv_prog_STRIP"
6066fi
6067
6068
6069old_CC="$CC"
6070old_CFLAGS="$CFLAGS"
6071
6072# Set sane defaults for various variables
6073test -z "$AR" && AR=ar
6074test -z "$AR_FLAGS" && AR_FLAGS=cru
6075test -z "$AS" && AS=as
6076test -z "$CC" && CC=cc
6077test -z "$LTCC" && LTCC=$CC
6078test -z "$DLLTOOL" && DLLTOOL=dlltool
6079test -z "$LD" && LD=ld
6080test -z "$LN_S" && LN_S="ln -s"
6081test -z "$MAGIC_CMD" && MAGIC_CMD=file
6082test -z "$NM" && NM=nm
6083test -z "$SED" && SED=sed
6084test -z "$OBJDUMP" && OBJDUMP=objdump
6085test -z "$RANLIB" && RANLIB=:
6086test -z "$STRIP" && STRIP=:
6087test -z "$ac_objext" && ac_objext=o
6088
6089# Determine commands to create old-style static archives.
6090old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6091old_postinstall_cmds='chmod 644 $oldlib'
6092old_postuninstall_cmds=
6093
6094if test -n "$RANLIB"; then
6095  case $host_os in
6096  openbsd*)
6097    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6098    ;;
6099  *)
6100    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6101    ;;
6102  esac
6103  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6104fi
6105
6106for cc_temp in $compiler""; do
6107  case $cc_temp in
6108    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6109    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6110    \-*) ;;
6111    *) break;;
6112  esac
6113done
6114cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6115
6116
6117# Only perform the check for file, if the check method requires it
6118case $deplibs_check_method in
6119file_magic*)
6120  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6121    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6122echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6123if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6124  echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126  case $MAGIC_CMD in
6127[\\/*] |  ?:[\\/]*)
6128  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6129  ;;
6130*)
6131  lt_save_MAGIC_CMD="$MAGIC_CMD"
6132  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6133  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6134  for ac_dir in $ac_dummy; do
6135    IFS="$lt_save_ifs"
6136    test -z "$ac_dir" && ac_dir=.
6137    if test -f $ac_dir/${ac_tool_prefix}file; then
6138      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6139      if test -n "$file_magic_test_file"; then
6140	case $deplibs_check_method in
6141	"file_magic "*)
6142	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6143	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6144	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6145	    $EGREP "$file_magic_regex" > /dev/null; then
6146	    :
6147	  else
6148	    cat <<EOF 1>&2
6149
6150*** Warning: the command libtool uses to detect shared libraries,
6151*** $file_magic_cmd, produces output that libtool cannot recognize.
6152*** The result is that libtool may fail to recognize shared libraries
6153*** as such.  This will affect the creation of libtool libraries that
6154*** depend on shared libraries, but programs linked with such libtool
6155*** libraries will work regardless of this problem.  Nevertheless, you
6156*** may want to report the problem to your system manager and/or to
6157*** bug-libtool@gnu.org
6158
6159EOF
6160	  fi ;;
6161	esac
6162      fi
6163      break
6164    fi
6165  done
6166  IFS="$lt_save_ifs"
6167  MAGIC_CMD="$lt_save_MAGIC_CMD"
6168  ;;
6169esac
6170fi
6171
6172MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6173if test -n "$MAGIC_CMD"; then
6174  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6175echo "${ECHO_T}$MAGIC_CMD" >&6
6176else
6177  echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
6179fi
6180
6181if test -z "$lt_cv_path_MAGIC_CMD"; then
6182  if test -n "$ac_tool_prefix"; then
6183    echo "$as_me:$LINENO: checking for file" >&5
6184echo $ECHO_N "checking for file... $ECHO_C" >&6
6185if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6186  echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188  case $MAGIC_CMD in
6189[\\/*] |  ?:[\\/]*)
6190  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6191  ;;
6192*)
6193  lt_save_MAGIC_CMD="$MAGIC_CMD"
6194  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6195  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6196  for ac_dir in $ac_dummy; do
6197    IFS="$lt_save_ifs"
6198    test -z "$ac_dir" && ac_dir=.
6199    if test -f $ac_dir/file; then
6200      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6201      if test -n "$file_magic_test_file"; then
6202	case $deplibs_check_method in
6203	"file_magic "*)
6204	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6205	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6206	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6207	    $EGREP "$file_magic_regex" > /dev/null; then
6208	    :
6209	  else
6210	    cat <<EOF 1>&2
6211
6212*** Warning: the command libtool uses to detect shared libraries,
6213*** $file_magic_cmd, produces output that libtool cannot recognize.
6214*** The result is that libtool may fail to recognize shared libraries
6215*** as such.  This will affect the creation of libtool libraries that
6216*** depend on shared libraries, but programs linked with such libtool
6217*** libraries will work regardless of this problem.  Nevertheless, you
6218*** may want to report the problem to your system manager and/or to
6219*** bug-libtool@gnu.org
6220
6221EOF
6222	  fi ;;
6223	esac
6224      fi
6225      break
6226    fi
6227  done
6228  IFS="$lt_save_ifs"
6229  MAGIC_CMD="$lt_save_MAGIC_CMD"
6230  ;;
6231esac
6232fi
6233
6234MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6235if test -n "$MAGIC_CMD"; then
6236  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6237echo "${ECHO_T}$MAGIC_CMD" >&6
6238else
6239  echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
6241fi
6242
6243  else
6244    MAGIC_CMD=:
6245  fi
6246fi
6247
6248  fi
6249  ;;
6250esac
6251
6252enable_dlopen=no
6253enable_win32_dll=no
6254
6255# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6256if test "${enable_libtool_lock+set}" = set; then
6257  enableval="$enable_libtool_lock"
6258
6259fi;
6260test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6261
6262
6263# Check whether --with-pic or --without-pic was given.
6264if test "${with_pic+set}" = set; then
6265  withval="$with_pic"
6266  pic_mode="$withval"
6267else
6268  pic_mode=default
6269fi;
6270test -z "$pic_mode" && pic_mode=default
6271
6272# Use C for the default configuration in the libtool script
6273tagname=
6274lt_save_CC="$CC"
6275ac_ext=c
6276ac_cpp='$CPP $CPPFLAGS'
6277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280
6281
6282# Source file extension for C test sources.
6283ac_ext=c
6284
6285# Object file extension for compiled C test sources.
6286objext=o
6287objext=$objext
6288
6289# Code to be used in simple compile tests
6290lt_simple_compile_test_code="int some_variable = 0;\n"
6291
6292# Code to be used in simple link tests
6293lt_simple_link_test_code='int main(){return(0);}\n'
6294
6295
6296# If no C compiler was specified, use CC.
6297LTCC=${LTCC-"$CC"}
6298
6299# Allow CC to be a program name with arguments.
6300compiler=$CC
6301
6302
6303# save warnings/boilerplate of simple test code
6304ac_outfile=conftest.$ac_objext
6305printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6306eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6307_lt_compiler_boilerplate=`cat conftest.err`
6308$rm conftest*
6309
6310ac_outfile=conftest.$ac_objext
6311printf "$lt_simple_link_test_code" >conftest.$ac_ext
6312eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6313_lt_linker_boilerplate=`cat conftest.err`
6314$rm conftest*
6315
6316
6317#
6318# Check for any special shared library compilation flags.
6319#
6320lt_prog_cc_shlib=
6321if test "$GCC" = no; then
6322  case $host_os in
6323  sco3.2v5*)
6324    lt_prog_cc_shlib='-belf'
6325    ;;
6326  esac
6327fi
6328if test -n "$lt_prog_cc_shlib"; then
6329  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6330echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6331  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6332  else
6333    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6334echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6335    lt_cv_prog_cc_can_build_shared=no
6336  fi
6337fi
6338
6339
6340#
6341# Check to make sure the static flag actually works.
6342#
6343echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6344echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6345if test "${lt_prog_compiler_static_works+set}" = set; then
6346  echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348  lt_prog_compiler_static_works=no
6349   save_LDFLAGS="$LDFLAGS"
6350   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6351   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6352   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6353     # The linker can only warn and ignore the option if not recognized
6354     # So say no if there are warnings
6355     if test -s conftest.err; then
6356       # Append any errors to the config.log.
6357       cat conftest.err 1>&5
6358       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6359       $SED '/^$/d' conftest.err >conftest.er2
6360       if diff conftest.exp conftest.er2 >/dev/null; then
6361         lt_prog_compiler_static_works=yes
6362       fi
6363     else
6364       lt_prog_compiler_static_works=yes
6365     fi
6366   fi
6367   $rm conftest*
6368   LDFLAGS="$save_LDFLAGS"
6369
6370fi
6371echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6372echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6373
6374if test x"$lt_prog_compiler_static_works" = xyes; then
6375    :
6376else
6377    lt_prog_compiler_static=
6378fi
6379
6380
6381
6382
6383lt_prog_compiler_no_builtin_flag=
6384
6385if test "$GCC" = yes; then
6386  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6387
6388
6389echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6390echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6391if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6392  echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394  lt_cv_prog_compiler_rtti_exceptions=no
6395  ac_outfile=conftest.$ac_objext
6396   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6397   lt_compiler_flag="-fno-rtti -fno-exceptions"
6398   # Insert the option either (1) after the last *FLAGS variable, or
6399   # (2) before a word containing "conftest.", or (3) at the end.
6400   # Note that $ac_compile itself does not contain backslashes and begins
6401   # with a dollar sign (not a hyphen), so the echo should work correctly.
6402   # The option is referenced via a variable to avoid confusing sed.
6403   lt_compile=`echo "$ac_compile" | $SED \
6404   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6405   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6406   -e 's:$: $lt_compiler_flag:'`
6407   (eval echo "\"\$as_me:6407: $lt_compile\"" >&5)
6408   (eval "$lt_compile" 2>conftest.err)
6409   ac_status=$?
6410   cat conftest.err >&5
6411   echo "$as_me:6411: \$? = $ac_status" >&5
6412   if (exit $ac_status) && test -s "$ac_outfile"; then
6413     # The compiler can only warn and ignore the option if not recognized
6414     # So say no if there are warnings other than the usual output.
6415     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6416     $SED '/^$/d' conftest.err >conftest.er2
6417     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6418       lt_cv_prog_compiler_rtti_exceptions=yes
6419     fi
6420   fi
6421   $rm conftest*
6422
6423fi
6424echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6425echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6426
6427if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6428    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6429else
6430    :
6431fi
6432
6433fi
6434
6435lt_prog_compiler_wl=
6436lt_prog_compiler_pic=
6437lt_prog_compiler_static=
6438
6439echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6440echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6441
6442  if test "$GCC" = yes; then
6443    lt_prog_compiler_wl='-Wl,'
6444    lt_prog_compiler_static='-static'
6445
6446    case $host_os in
6447      aix*)
6448      # All AIX code is PIC.
6449      if test "$host_cpu" = ia64; then
6450	# AIX 5 now supports IA64 processor
6451	lt_prog_compiler_static='-Bstatic'
6452      fi
6453      ;;
6454
6455    amigaos*)
6456      # FIXME: we need at least 68020 code to build shared libraries, but
6457      # adding the `-m68020' flag to GCC prevents building anything better,
6458      # like `-m68040'.
6459      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6460      ;;
6461
6462    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6463      # PIC is the default for these OSes.
6464      ;;
6465
6466    mingw* | pw32* | os2*)
6467      # This hack is so that the source file can tell whether it is being
6468      # built for inclusion in a dll (and should export symbols for example).
6469      lt_prog_compiler_pic='-DDLL_EXPORT'
6470      ;;
6471
6472    darwin* | rhapsody*)
6473      # PIC is the default on this platform
6474      # Common symbols not allowed in MH_DYLIB files
6475      lt_prog_compiler_pic='-fno-common'
6476      ;;
6477
6478    msdosdjgpp*)
6479      # Just because we use GCC doesn't mean we suddenly get shared libraries
6480      # on systems that don't support them.
6481      lt_prog_compiler_can_build_shared=no
6482      enable_shared=no
6483      ;;
6484
6485    sysv4*MP*)
6486      if test -d /usr/nec; then
6487	lt_prog_compiler_pic=-Kconform_pic
6488      fi
6489      ;;
6490
6491    hpux*)
6492      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6493      # not for PA HP-UX.
6494      case $host_cpu in
6495      hppa*64*|ia64*)
6496	# +Z the default
6497	;;
6498      *)
6499	lt_prog_compiler_pic='-fPIC'
6500	;;
6501      esac
6502      ;;
6503
6504    *)
6505      lt_prog_compiler_pic='-fPIC'
6506      ;;
6507    esac
6508  else
6509    # PORTME Check for flag to pass linker flags through the system compiler.
6510    case $host_os in
6511    aix*)
6512      lt_prog_compiler_wl='-Wl,'
6513      if test "$host_cpu" = ia64; then
6514	# AIX 5 now supports IA64 processor
6515	lt_prog_compiler_static='-Bstatic'
6516      else
6517	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6518      fi
6519      ;;
6520      darwin*)
6521        # PIC is the default on this platform
6522        # Common symbols not allowed in MH_DYLIB files
6523       case $cc_basename in
6524         xlc*)
6525         lt_prog_compiler_pic='-qnocommon'
6526         lt_prog_compiler_wl='-Wl,'
6527         ;;
6528       esac
6529       ;;
6530
6531    mingw* | pw32* | os2*)
6532      # This hack is so that the source file can tell whether it is being
6533      # built for inclusion in a dll (and should export symbols for example).
6534      lt_prog_compiler_pic='-DDLL_EXPORT'
6535      ;;
6536
6537    hpux9* | hpux10* | hpux11*)
6538      lt_prog_compiler_wl='-Wl,'
6539      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6540      # not for PA HP-UX.
6541      case $host_cpu in
6542      hppa*64*|ia64*)
6543	# +Z the default
6544	;;
6545      *)
6546	lt_prog_compiler_pic='+Z'
6547	;;
6548      esac
6549      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6550      lt_prog_compiler_static='${wl}-a ${wl}archive'
6551      ;;
6552
6553    irix5* | irix6* | nonstopux*)
6554      lt_prog_compiler_wl='-Wl,'
6555      # PIC (with -KPIC) is the default.
6556      lt_prog_compiler_static='-non_shared'
6557      ;;
6558
6559    newsos6)
6560      lt_prog_compiler_pic='-KPIC'
6561      lt_prog_compiler_static='-Bstatic'
6562      ;;
6563
6564    linux*)
6565      case $cc_basename in
6566      icc* | ecc*)
6567	lt_prog_compiler_wl='-Wl,'
6568	lt_prog_compiler_pic='-KPIC'
6569	lt_prog_compiler_static='-static'
6570        ;;
6571      pgcc* | pgf77* | pgf90* | pgf95*)
6572        # Portland Group compilers (*not* the Pentium gcc compiler,
6573	# which looks to be a dead project)
6574	lt_prog_compiler_wl='-Wl,'
6575	lt_prog_compiler_pic='-fpic'
6576	lt_prog_compiler_static='-Bstatic'
6577        ;;
6578      ccc*)
6579        lt_prog_compiler_wl='-Wl,'
6580        # All Alpha code is PIC.
6581        lt_prog_compiler_static='-non_shared'
6582        ;;
6583      esac
6584      ;;
6585
6586    osf3* | osf4* | osf5*)
6587      lt_prog_compiler_wl='-Wl,'
6588      # All OSF/1 code is PIC.
6589      lt_prog_compiler_static='-non_shared'
6590      ;;
6591
6592    sco3.2v5*)
6593      lt_prog_compiler_pic='-Kpic'
6594      lt_prog_compiler_static='-dn'
6595      ;;
6596
6597    solaris*)
6598      lt_prog_compiler_pic='-KPIC'
6599      lt_prog_compiler_static='-Bstatic'
6600      case $cc_basename in
6601      f77* | f90* | f95*)
6602	lt_prog_compiler_wl='-Qoption ld ';;
6603      *)
6604	lt_prog_compiler_wl='-Wl,';;
6605      esac
6606      ;;
6607
6608    sunos4*)
6609      lt_prog_compiler_wl='-Qoption ld '
6610      lt_prog_compiler_pic='-PIC'
6611      lt_prog_compiler_static='-Bstatic'
6612      ;;
6613
6614    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6615      lt_prog_compiler_wl='-Wl,'
6616      lt_prog_compiler_pic='-KPIC'
6617      lt_prog_compiler_static='-Bstatic'
6618      ;;
6619
6620    sysv4*MP*)
6621      if test -d /usr/nec ;then
6622	lt_prog_compiler_pic='-Kconform_pic'
6623	lt_prog_compiler_static='-Bstatic'
6624      fi
6625      ;;
6626
6627    unicos*)
6628      lt_prog_compiler_wl='-Wl,'
6629      lt_prog_compiler_can_build_shared=no
6630      ;;
6631
6632    uts4*)
6633      lt_prog_compiler_pic='-pic'
6634      lt_prog_compiler_static='-Bstatic'
6635      ;;
6636
6637    *)
6638      lt_prog_compiler_can_build_shared=no
6639      ;;
6640    esac
6641  fi
6642
6643echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6644echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6645
6646#
6647# Check to make sure the PIC flag actually works.
6648#
6649if test -n "$lt_prog_compiler_pic"; then
6650
6651echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6652echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6653if test "${lt_prog_compiler_pic_works+set}" = set; then
6654  echo $ECHO_N "(cached) $ECHO_C" >&6
6655else
6656  lt_prog_compiler_pic_works=no
6657  ac_outfile=conftest.$ac_objext
6658   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6659   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6660   # Insert the option either (1) after the last *FLAGS variable, or
6661   # (2) before a word containing "conftest.", or (3) at the end.
6662   # Note that $ac_compile itself does not contain backslashes and begins
6663   # with a dollar sign (not a hyphen), so the echo should work correctly.
6664   # The option is referenced via a variable to avoid confusing sed.
6665   lt_compile=`echo "$ac_compile" | $SED \
6666   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6667   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6668   -e 's:$: $lt_compiler_flag:'`
6669   (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
6670   (eval "$lt_compile" 2>conftest.err)
6671   ac_status=$?
6672   cat conftest.err >&5
6673   echo "$as_me:6673: \$? = $ac_status" >&5
6674   if (exit $ac_status) && test -s "$ac_outfile"; then
6675     # The compiler can only warn and ignore the option if not recognized
6676     # So say no if there are warnings other than the usual output.
6677     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6678     $SED '/^$/d' conftest.err >conftest.er2
6679     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6680       lt_prog_compiler_pic_works=yes
6681     fi
6682   fi
6683   $rm conftest*
6684
6685fi
6686echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6687echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6688
6689if test x"$lt_prog_compiler_pic_works" = xyes; then
6690    case $lt_prog_compiler_pic in
6691     "" | " "*) ;;
6692     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6693     esac
6694else
6695    lt_prog_compiler_pic=
6696     lt_prog_compiler_can_build_shared=no
6697fi
6698
6699fi
6700case $host_os in
6701  # For platforms which do not support PIC, -DPIC is meaningless:
6702  *djgpp*)
6703    lt_prog_compiler_pic=
6704    ;;
6705  *)
6706    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6707    ;;
6708esac
6709
6710echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713  echo $ECHO_N "(cached) $ECHO_C" >&6
6714else
6715  lt_cv_prog_compiler_c_o=no
6716   $rm -r conftest 2>/dev/null
6717   mkdir conftest
6718   cd conftest
6719   mkdir out
6720   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721
6722   lt_compiler_flag="-o out/conftest2.$ac_objext"
6723   # Insert the option either (1) after the last *FLAGS variable, or
6724   # (2) before a word containing "conftest.", or (3) at the end.
6725   # Note that $ac_compile itself does not contain backslashes and begins
6726   # with a dollar sign (not a hyphen), so the echo should work correctly.
6727   lt_compile=`echo "$ac_compile" | $SED \
6728   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6729   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730   -e 's:$: $lt_compiler_flag:'`
6731   (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732   (eval "$lt_compile" 2>out/conftest.err)
6733   ac_status=$?
6734   cat out/conftest.err >&5
6735   echo "$as_me:6735: \$? = $ac_status" >&5
6736   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6737   then
6738     # The compiler can only warn and ignore the option if not recognized
6739     # So say no if there are warnings
6740     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6741     $SED '/^$/d' out/conftest.err >out/conftest.er2
6742     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743       lt_cv_prog_compiler_c_o=yes
6744     fi
6745   fi
6746   chmod u+w . 2>&5
6747   $rm conftest*
6748   # SGI C++ compiler will create directory out/ii_files/ for
6749   # template instantiation
6750   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751   $rm out/* && rmdir out
6752   cd ..
6753   rmdir conftest
6754   $rm conftest*
6755
6756fi
6757echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6759
6760
6761hard_links="nottested"
6762if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763  # do not overwrite the value of need_locks provided by the user
6764  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6766  hard_links=yes
6767  $rm conftest*
6768  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6769  touch conftest.a
6770  ln conftest.a conftest.b 2>&5 || hard_links=no
6771  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772  echo "$as_me:$LINENO: result: $hard_links" >&5
6773echo "${ECHO_T}$hard_links" >&6
6774  if test "$hard_links" = no; then
6775    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6777    need_locks=warn
6778  fi
6779else
6780  need_locks=no
6781fi
6782
6783echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6785
6786  runpath_var=
6787  allow_undefined_flag=
6788  enable_shared_with_static_runtimes=no
6789  archive_cmds=
6790  archive_expsym_cmds=
6791  old_archive_From_new_cmds=
6792  old_archive_from_expsyms_cmds=
6793  export_dynamic_flag_spec=
6794  whole_archive_flag_spec=
6795  thread_safe_flag_spec=
6796  hardcode_libdir_flag_spec=
6797  hardcode_libdir_flag_spec_ld=
6798  hardcode_libdir_separator=
6799  hardcode_direct=no
6800  hardcode_minus_L=no
6801  hardcode_shlibpath_var=unsupported
6802  link_all_deplibs=unknown
6803  hardcode_automatic=no
6804  module_cmds=
6805  module_expsym_cmds=
6806  always_export_symbols=no
6807  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808  # include_expsyms should be a list of space-separated symbols to be *always*
6809  # included in the symbol list
6810  include_expsyms=
6811  # exclude_expsyms can be an extended regexp of symbols to exclude
6812  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814  # as well as any symbol that contains `d'.
6815  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817  # platforms (ab)use it in PIC code, but their linkers get confused if
6818  # the symbol is explicitly referenced.  Since portable code cannot
6819  # rely on this symbol name, it's probably fine to never include it in
6820  # preloaded symbol tables.
6821  extract_expsyms_cmds=
6822  # Just being paranoid about ensuring that cc_basename is set.
6823  for cc_temp in $compiler""; do
6824  case $cc_temp in
6825    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6827    \-*) ;;
6828    *) break;;
6829  esac
6830done
6831cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6832
6833  case $host_os in
6834  cygwin* | mingw* | pw32*)
6835    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836    # When not using gcc, we currently assume that we are using
6837    # Microsoft Visual C++.
6838    if test "$GCC" != yes; then
6839      with_gnu_ld=no
6840    fi
6841    ;;
6842  openbsd*)
6843    with_gnu_ld=no
6844    ;;
6845  esac
6846
6847  ld_shlibs=yes
6848  if test "$with_gnu_ld" = yes; then
6849    # If archive_cmds runs LD, not CC, wlarc should be empty
6850    wlarc='${wl}'
6851
6852    # Set some defaults for GNU ld with shared library support. These
6853    # are reset later if shared libraries are not supported. Putting them
6854    # here allows them to be overridden if necessary.
6855    runpath_var=LD_RUN_PATH
6856    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6857    export_dynamic_flag_spec='${wl}--export-dynamic'
6858    # ancient GNU ld didn't support --whole-archive et. al.
6859    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6860	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6861      else
6862  	whole_archive_flag_spec=
6863    fi
6864    supports_anon_versioning=no
6865    case `$LD -v 2>/dev/null` in
6866      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6867      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6868      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6869      *\ 2.11.*) ;; # other 2.11 versions
6870      *) supports_anon_versioning=yes ;;
6871    esac
6872
6873    # See if GNU ld supports shared libraries.
6874    case $host_os in
6875    aix3* | aix4* | aix5*)
6876      # On AIX/PPC, the GNU linker is very broken
6877      if test "$host_cpu" != ia64; then
6878	ld_shlibs=no
6879	cat <<EOF 1>&2
6880
6881*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6882*** to be unable to reliably create shared libraries on AIX.
6883*** Therefore, libtool is disabling shared libraries support.  If you
6884*** really care for shared libraries, you may want to modify your PATH
6885*** so that a non-GNU linker is found, and then restart.
6886
6887EOF
6888      fi
6889      ;;
6890
6891    amigaos*)
6892      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)'
6893      hardcode_libdir_flag_spec='-L$libdir'
6894      hardcode_minus_L=yes
6895
6896      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6897      # that the semantics of dynamic libraries on AmigaOS, at least up
6898      # to version 4, is to share data among multiple programs linked
6899      # with the same dynamic library.  Since this doesn't match the
6900      # behavior of shared libraries on other platforms, we can't use
6901      # them.
6902      ld_shlibs=no
6903      ;;
6904
6905    beos*)
6906      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6907	allow_undefined_flag=unsupported
6908	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6909	# support --undefined.  This deserves some investigation.  FIXME
6910	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6911      else
6912	ld_shlibs=no
6913      fi
6914      ;;
6915
6916    cygwin* | mingw* | pw32*)
6917      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6918      # as there is no search path for DLLs.
6919      hardcode_libdir_flag_spec='-L$libdir'
6920      allow_undefined_flag=unsupported
6921      always_export_symbols=no
6922      enable_shared_with_static_runtimes=yes
6923      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6924
6925      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6926        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6927	# If the export-symbols file already is a .def file (1st line
6928	# is EXPORTS), use it as is; otherwise, prepend...
6929	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6930	  cp $export_symbols $output_objdir/$soname.def;
6931	else
6932	  echo EXPORTS > $output_objdir/$soname.def;
6933	  cat $export_symbols >> $output_objdir/$soname.def;
6934	fi~
6935	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6936      else
6937	ld_shlibs=no
6938      fi
6939      ;;
6940
6941    linux*)
6942      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6943	tmp_addflag=
6944	case $cc_basename,$host_cpu in
6945	pgcc*)				# Portland Group C compiler
6946	  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'
6947	  tmp_addflag=' $pic_flag'
6948	  ;;
6949	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6950	  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'
6951	  tmp_addflag=' $pic_flag -Mnomain' ;;
6952	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6953	  tmp_addflag=' -i_dynamic' ;;
6954	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6955	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6956	ifc* | ifort*)			# Intel Fortran compiler
6957	  tmp_addflag=' -nofor_main' ;;
6958	esac
6959	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6960
6961	if test $supports_anon_versioning = yes; then
6962	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6963  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6964  $echo "local: *; };" >> $output_objdir/$libname.ver~
6965	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6966	fi
6967	link_all_deplibs=no
6968      else
6969	ld_shlibs=no
6970      fi
6971      ;;
6972
6973    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6974      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6975	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6976	wlarc=
6977      else
6978	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6979	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6980      fi
6981      ;;
6982
6983    solaris* | sysv5*)
6984      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6985	ld_shlibs=no
6986	cat <<EOF 1>&2
6987
6988*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6989*** create shared libraries on Solaris systems.  Therefore, libtool
6990*** is disabling shared libraries support.  We urge you to upgrade GNU
6991*** binutils to release 2.9.1 or newer.  Another option is to modify
6992*** your PATH or compiler configuration so that the native linker is
6993*** used, and then restart.
6994
6995EOF
6996      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6997	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6999      else
7000	ld_shlibs=no
7001      fi
7002      ;;
7003
7004    sunos4*)
7005      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7006      wlarc=
7007      hardcode_direct=yes
7008      hardcode_shlibpath_var=no
7009      ;;
7010
7011    *)
7012      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7013	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7014	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7015      else
7016	ld_shlibs=no
7017      fi
7018      ;;
7019    esac
7020
7021    if test "$ld_shlibs" = no; then
7022      runpath_var=
7023      hardcode_libdir_flag_spec=
7024      export_dynamic_flag_spec=
7025      whole_archive_flag_spec=
7026    fi
7027  else
7028    # PORTME fill in a description of your system's linker (not GNU ld)
7029    case $host_os in
7030    aix3*)
7031      allow_undefined_flag=unsupported
7032      always_export_symbols=yes
7033      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'
7034      # Note: this linker hardcodes the directories in LIBPATH if there
7035      # are no directories specified by -L.
7036      hardcode_minus_L=yes
7037      if test "$GCC" = yes && test -z "$link_static_flag"; then
7038	# Neither direct hardcoding nor static linking is supported with a
7039	# broken collect2.
7040	hardcode_direct=unsupported
7041      fi
7042      ;;
7043
7044    aix4* | aix5*)
7045      if test "$host_cpu" = ia64; then
7046	# On IA64, the linker does run time linking by default, so we don't
7047	# have to do anything special.
7048	aix_use_runtimelinking=no
7049	exp_sym_flag='-Bexport'
7050	no_entry_flag=""
7051      else
7052	# If we're using GNU nm, then we don't want the "-C" option.
7053	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7054	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7055	  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'
7056	else
7057	  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'
7058	fi
7059	aix_use_runtimelinking=no
7060
7061	# Test if we are trying to use run time linking or normal
7062	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7063	# need to do runtime linking.
7064	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7065	  for ld_flag in $LDFLAGS; do
7066  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7067  	    aix_use_runtimelinking=yes
7068  	    break
7069  	  fi
7070	  done
7071	esac
7072
7073	exp_sym_flag='-bexport'
7074	no_entry_flag='-bnoentry'
7075      fi
7076
7077      # When large executables or shared objects are built, AIX ld can
7078      # have problems creating the table of contents.  If linking a library
7079      # or program results in "error TOC overflow" add -mminimal-toc to
7080      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7081      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7082
7083      archive_cmds=''
7084      hardcode_direct=yes
7085      hardcode_libdir_separator=':'
7086      link_all_deplibs=yes
7087
7088      if test "$GCC" = yes; then
7089	case $host_os in aix4.[012]|aix4.[012].*)
7090	# We only want to do this on AIX 4.2 and lower, the check
7091	# below for broken collect2 doesn't work under 4.3+
7092	  collect2name=`${CC} -print-prog-name=collect2`
7093	  if test -f "$collect2name" && \
7094  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7095	  then
7096  	  # We have reworked collect2
7097  	  hardcode_direct=yes
7098	  else
7099  	  # We have old collect2
7100  	  hardcode_direct=unsupported
7101  	  # It fails to find uninstalled libraries when the uninstalled
7102  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7103  	  # to unsupported forces relinking
7104  	  hardcode_minus_L=yes
7105  	  hardcode_libdir_flag_spec='-L$libdir'
7106  	  hardcode_libdir_separator=
7107	  fi
7108	esac
7109	shared_flag='-shared'
7110	if test "$aix_use_runtimelinking" = yes; then
7111	  shared_flag="$shared_flag "'${wl}-G'
7112	fi
7113      else
7114	# not using gcc
7115	if test "$host_cpu" = ia64; then
7116  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7117  	# chokes on -Wl,-G. The following line is correct:
7118	  shared_flag='-G'
7119	else
7120  	if test "$aix_use_runtimelinking" = yes; then
7121	    shared_flag='${wl}-G'
7122	  else
7123	    shared_flag='${wl}-bM:SRE'
7124  	fi
7125	fi
7126      fi
7127
7128      # It seems that -bexpall does not export symbols beginning with
7129      # underscore (_), so it is better to generate a list of symbols to export.
7130      always_export_symbols=yes
7131      if test "$aix_use_runtimelinking" = yes; then
7132	# Warning - without using the other runtime loading flags (-brtl),
7133	# -berok will link without error, but may produce a broken library.
7134	allow_undefined_flag='-berok'
7135       # Determine the default libpath from the value encoded in an empty executable.
7136       cat >conftest.$ac_ext <<_ACEOF
7137/* confdefs.h.  */
7138_ACEOF
7139cat confdefs.h >>conftest.$ac_ext
7140cat >>conftest.$ac_ext <<_ACEOF
7141/* end confdefs.h.  */
7142
7143int
7144main ()
7145{
7146
7147  ;
7148  return 0;
7149}
7150_ACEOF
7151rm -f conftest.$ac_objext conftest$ac_exeext
7152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153  (eval $ac_link) 2>conftest.er1
7154  ac_status=$?
7155  grep -v '^ *+' conftest.er1 >conftest.err
7156  rm -f conftest.er1
7157  cat conftest.err >&5
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); } &&
7160	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7162  (eval $ac_try) 2>&5
7163  ac_status=$?
7164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); }; } &&
7166	 { ac_try='test -s conftest$ac_exeext'
7167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168  (eval $ac_try) 2>&5
7169  ac_status=$?
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); }; }; then
7172
7173aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7174}'`
7175# Check for a 64-bit object if we didn't find anything.
7176if 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; }
7177}'`; fi
7178else
7179  echo "$as_me: failed program was:" >&5
7180sed 's/^/| /' conftest.$ac_ext >&5
7181
7182fi
7183rm -f conftest.err conftest.$ac_objext \
7184      conftest$ac_exeext conftest.$ac_ext
7185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7186
7187       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7188	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"
7189       else
7190	if test "$host_cpu" = ia64; then
7191	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7192	  allow_undefined_flag="-z nodefs"
7193	  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"
7194	else
7195	 # Determine the default libpath from the value encoded in an empty executable.
7196	 cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h.  */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h.  */
7202
7203int
7204main ()
7205{
7206
7207  ;
7208  return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext conftest$ac_exeext
7212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213  (eval $ac_link) 2>conftest.er1
7214  ac_status=$?
7215  grep -v '^ *+' conftest.er1 >conftest.err
7216  rm -f conftest.er1
7217  cat conftest.err >&5
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); } &&
7220	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222  (eval $ac_try) 2>&5
7223  ac_status=$?
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); }; } &&
7226	 { ac_try='test -s conftest$ac_exeext'
7227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228  (eval $ac_try) 2>&5
7229  ac_status=$?
7230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231  (exit $ac_status); }; }; then
7232
7233aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7234}'`
7235# Check for a 64-bit object if we didn't find anything.
7236if 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; }
7237}'`; fi
7238else
7239  echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242fi
7243rm -f conftest.err conftest.$ac_objext \
7244      conftest$ac_exeext conftest.$ac_ext
7245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7246
7247	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7248	  # Warning - without using the other run time loading flags,
7249	  # -berok will link without error, but may produce a broken library.
7250	  no_undefined_flag=' ${wl}-bernotok'
7251	  allow_undefined_flag=' ${wl}-berok'
7252	  # -bexpall does not export symbols beginning with underscore (_)
7253	  always_export_symbols=yes
7254	  # Exported symbols can be pulled into shared objects from archives
7255	  whole_archive_flag_spec=' '
7256	  archive_cmds_need_lc=yes
7257	  # This is similar to how AIX traditionally builds its shared libraries.
7258	  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'
7259	fi
7260      fi
7261      ;;
7262
7263    amigaos*)
7264      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)'
7265      hardcode_libdir_flag_spec='-L$libdir'
7266      hardcode_minus_L=yes
7267      # see comment about different semantics on the GNU ld section
7268      ld_shlibs=no
7269      ;;
7270
7271    bsdi[45]*)
7272      export_dynamic_flag_spec=-rdynamic
7273      ;;
7274
7275    cygwin* | mingw* | pw32*)
7276      # When not using gcc, we currently assume that we are using
7277      # Microsoft Visual C++.
7278      # hardcode_libdir_flag_spec is actually meaningless, as there is
7279      # no search path for DLLs.
7280      hardcode_libdir_flag_spec=' '
7281      allow_undefined_flag=unsupported
7282      # Tell ltmain to make .lib files, not .a files.
7283      libext=lib
7284      # Tell ltmain to make .dll files, not .so files.
7285      shrext_cmds=".dll"
7286      # FIXME: Setting linknames here is a bad hack.
7287      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7288      # The linker will automatically build a .lib file if we build a DLL.
7289      old_archive_From_new_cmds='true'
7290      # FIXME: Should let the user specify the lib program.
7291      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7292      fix_srcfile_path='`cygpath -w "$srcfile"`'
7293      enable_shared_with_static_runtimes=yes
7294      ;;
7295
7296    darwin* | rhapsody*)
7297      case $host_os in
7298        rhapsody* | darwin1.[012])
7299         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7300         ;;
7301       *) # Darwin 1.3 on
7302         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7303           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7304         else
7305           case ${MACOSX_DEPLOYMENT_TARGET} in
7306             10.[012])
7307               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7308               ;;
7309             10.*)
7310               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7311               ;;
7312           esac
7313         fi
7314         ;;
7315      esac
7316      archive_cmds_need_lc=no
7317      hardcode_direct=no
7318      hardcode_automatic=yes
7319      hardcode_shlibpath_var=unsupported
7320      whole_archive_flag_spec=''
7321      link_all_deplibs=yes
7322    if test "$GCC" = yes ; then
7323    	output_verbose_link_cmd='echo'
7324        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7325      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7326      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7327      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}'
7328      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}'
7329    else
7330      case $cc_basename in
7331        xlc*)
7332         output_verbose_link_cmd='echo'
7333         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7334         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7335          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7336         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}'
7337          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}'
7338          ;;
7339       *)
7340         ld_shlibs=no
7341          ;;
7342      esac
7343    fi
7344      ;;
7345
7346    dgux*)
7347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348      hardcode_libdir_flag_spec='-L$libdir'
7349      hardcode_shlibpath_var=no
7350      ;;
7351
7352    freebsd1*)
7353      ld_shlibs=no
7354      ;;
7355
7356    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7357    # support.  Future versions do this automatically, but an explicit c++rt0.o
7358    # does not break anything, and helps significantly (at the cost of a little
7359    # extra space).
7360    freebsd2.2*)
7361      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7362      hardcode_libdir_flag_spec='-R$libdir'
7363      hardcode_direct=yes
7364      hardcode_shlibpath_var=no
7365      ;;
7366
7367    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7368    freebsd2*)
7369      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7370      hardcode_direct=yes
7371      hardcode_minus_L=yes
7372      hardcode_shlibpath_var=no
7373      ;;
7374
7375    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7376    freebsd* | kfreebsd*-gnu | dragonfly*)
7377      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7378      hardcode_libdir_flag_spec='-R$libdir'
7379      hardcode_direct=yes
7380      hardcode_shlibpath_var=no
7381      ;;
7382
7383    hpux9*)
7384      if test "$GCC" = yes; then
7385	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'
7386      else
7387	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'
7388      fi
7389      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7390      hardcode_libdir_separator=:
7391      hardcode_direct=yes
7392
7393      # hardcode_minus_L: Not really in the search PATH,
7394      # but as the default location of the library.
7395      hardcode_minus_L=yes
7396      export_dynamic_flag_spec='${wl}-E'
7397      ;;
7398
7399    hpux10* | hpux11*)
7400      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7401	case $host_cpu in
7402	hppa*64*|ia64*)
7403	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7404	  ;;
7405	*)
7406	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7407	  ;;
7408	esac
7409      else
7410	case $host_cpu in
7411	hppa*64*|ia64*)
7412	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7413	  ;;
7414	*)
7415	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7416	  ;;
7417	esac
7418      fi
7419      if test "$with_gnu_ld" = no; then
7420	case $host_cpu in
7421	hppa*64*)
7422	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7423	  hardcode_libdir_flag_spec_ld='+b $libdir'
7424	  hardcode_libdir_separator=:
7425	  hardcode_direct=no
7426	  hardcode_shlibpath_var=no
7427	  ;;
7428	ia64*)
7429	  hardcode_libdir_flag_spec='-L$libdir'
7430	  hardcode_direct=no
7431	  hardcode_shlibpath_var=no
7432
7433	  # hardcode_minus_L: Not really in the search PATH,
7434	  # but as the default location of the library.
7435	  hardcode_minus_L=yes
7436	  ;;
7437	*)
7438	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7439	  hardcode_libdir_separator=:
7440	  hardcode_direct=yes
7441	  export_dynamic_flag_spec='${wl}-E'
7442
7443	  # hardcode_minus_L: Not really in the search PATH,
7444	  # but as the default location of the library.
7445	  hardcode_minus_L=yes
7446	  ;;
7447	esac
7448      fi
7449      ;;
7450
7451    irix5* | irix6* | nonstopux*)
7452      if test "$GCC" = yes; then
7453	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'
7454      else
7455	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'
7456	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7457      fi
7458      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7459      hardcode_libdir_separator=:
7460      link_all_deplibs=yes
7461      ;;
7462
7463    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7464      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7465	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7466      else
7467	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7468      fi
7469      hardcode_libdir_flag_spec='-R$libdir'
7470      hardcode_direct=yes
7471      hardcode_shlibpath_var=no
7472      ;;
7473
7474    newsos6)
7475      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7476      hardcode_direct=yes
7477      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7478      hardcode_libdir_separator=:
7479      hardcode_shlibpath_var=no
7480      ;;
7481
7482    openbsd*)
7483      hardcode_direct=yes
7484      hardcode_shlibpath_var=no
7485      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7486	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7487	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7488	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7489	export_dynamic_flag_spec='${wl}-E'
7490      else
7491       case $host_os in
7492	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7493	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7494	   hardcode_libdir_flag_spec='-R$libdir'
7495	   ;;
7496	 *)
7497	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7498	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7499	   ;;
7500       esac
7501      fi
7502      ;;
7503
7504    os2*)
7505      hardcode_libdir_flag_spec='-L$libdir'
7506      hardcode_minus_L=yes
7507      allow_undefined_flag=unsupported
7508      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'
7509      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7510      ;;
7511
7512    osf3*)
7513      if test "$GCC" = yes; then
7514	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7515	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'
7516      else
7517	allow_undefined_flag=' -expect_unresolved \*'
7518	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'
7519      fi
7520      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7521      hardcode_libdir_separator=:
7522      ;;
7523
7524    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7525      if test "$GCC" = yes; then
7526	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7527	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'
7528	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529      else
7530	allow_undefined_flag=' -expect_unresolved \*'
7531	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'
7532	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7533	$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'
7534
7535	# Both c and cxx compiler support -rpath directly
7536	hardcode_libdir_flag_spec='-rpath $libdir'
7537      fi
7538      hardcode_libdir_separator=:
7539      ;;
7540
7541    sco3.2v5*)
7542      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543      hardcode_shlibpath_var=no
7544      export_dynamic_flag_spec='${wl}-Bexport'
7545      runpath_var=LD_RUN_PATH
7546      hardcode_runpath_var=yes
7547      ;;
7548
7549    solaris*)
7550      no_undefined_flag=' -z text'
7551      if test "$GCC" = yes; then
7552	wlarc='${wl}'
7553	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7554	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7555	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7556      else
7557	wlarc=''
7558	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7559	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7560  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7561      fi
7562      hardcode_libdir_flag_spec='-R$libdir'
7563      hardcode_shlibpath_var=no
7564      case $host_os in
7565      solaris2.[0-5] | solaris2.[0-5].*) ;;
7566      *)
7567 	# The compiler driver will combine linker options so we
7568 	# cannot just pass the convience library names through
7569 	# without $wl, iff we do not link with $LD.
7570 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7571 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7572 	case $wlarc in
7573 	'')
7574 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7575 	*)
7576 	  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' ;;
7577 	esac ;;
7578      esac
7579      link_all_deplibs=yes
7580      ;;
7581
7582    sunos4*)
7583      if test "x$host_vendor" = xsequent; then
7584	# Use $CC to link under sequent, because it throws in some extra .o
7585	# files that make .init and .fini sections work.
7586	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7587      else
7588	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7589      fi
7590      hardcode_libdir_flag_spec='-L$libdir'
7591      hardcode_direct=yes
7592      hardcode_minus_L=yes
7593      hardcode_shlibpath_var=no
7594      ;;
7595
7596    sysv4)
7597      case $host_vendor in
7598	sni)
7599	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7600	  hardcode_direct=yes # is this really true???
7601	;;
7602	siemens)
7603	  ## LD is ld it makes a PLAMLIB
7604	  ## CC just makes a GrossModule.
7605	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7606	  reload_cmds='$CC -r -o $output$reload_objs'
7607	  hardcode_direct=no
7608        ;;
7609	motorola)
7610	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7611	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7612	;;
7613      esac
7614      runpath_var='LD_RUN_PATH'
7615      hardcode_shlibpath_var=no
7616      ;;
7617
7618    sysv4.3*)
7619      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7620      hardcode_shlibpath_var=no
7621      export_dynamic_flag_spec='-Bexport'
7622      ;;
7623
7624    sysv4*MP*)
7625      if test -d /usr/nec; then
7626	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7627	hardcode_shlibpath_var=no
7628	runpath_var=LD_RUN_PATH
7629	hardcode_runpath_var=yes
7630	ld_shlibs=yes
7631      fi
7632      ;;
7633
7634    sysv4.2uw2*)
7635      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7636      hardcode_direct=yes
7637      hardcode_minus_L=no
7638      hardcode_shlibpath_var=no
7639      hardcode_runpath_var=yes
7640      runpath_var=LD_RUN_PATH
7641      ;;
7642
7643   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7644      no_undefined_flag='${wl}-z ${wl}text'
7645      if test "$GCC" = yes; then
7646	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7647      else
7648	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7649      fi
7650      runpath_var='LD_RUN_PATH'
7651      hardcode_shlibpath_var=no
7652      ;;
7653
7654    sysv5*)
7655      no_undefined_flag=' -z text'
7656      # $CC -shared without GNU ld will not create a library from C++
7657      # object files and a static libstdc++, better avoid it by now
7658      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7660  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7661      hardcode_libdir_flag_spec=
7662      hardcode_shlibpath_var=no
7663      runpath_var='LD_RUN_PATH'
7664      ;;
7665
7666    uts4*)
7667      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7668      hardcode_libdir_flag_spec='-L$libdir'
7669      hardcode_shlibpath_var=no
7670      ;;
7671
7672    *)
7673      ld_shlibs=no
7674      ;;
7675    esac
7676  fi
7677
7678echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7679echo "${ECHO_T}$ld_shlibs" >&6
7680test "$ld_shlibs" = no && can_build_shared=no
7681
7682variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7683if test "$GCC" = yes; then
7684  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7685fi
7686
7687#
7688# Do we need to explicitly link libc?
7689#
7690case "x$archive_cmds_need_lc" in
7691x|xyes)
7692  # Assume -lc should be added
7693  archive_cmds_need_lc=yes
7694
7695  if test "$enable_shared" = yes && test "$GCC" = yes; then
7696    case $archive_cmds in
7697    *'~'*)
7698      # FIXME: we may have to deal with multi-command sequences.
7699      ;;
7700    '$CC '*)
7701      # Test whether the compiler implicitly links with -lc since on some
7702      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7703      # to ld, don't add -lc before -lgcc.
7704      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7705echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7706      $rm conftest*
7707      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7708
7709      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7710  (eval $ac_compile) 2>&5
7711  ac_status=$?
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); } 2>conftest.err; then
7714        soname=conftest
7715        lib=conftest
7716        libobjs=conftest.$ac_objext
7717        deplibs=
7718        wl=$lt_prog_compiler_wl
7719        compiler_flags=-v
7720        linker_flags=-v
7721        verstring=
7722        output_objdir=.
7723        libname=conftest
7724        lt_save_allow_undefined_flag=$allow_undefined_flag
7725        allow_undefined_flag=
7726        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7727  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7728  ac_status=$?
7729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730  (exit $ac_status); }
7731        then
7732	  archive_cmds_need_lc=no
7733        else
7734	  archive_cmds_need_lc=yes
7735        fi
7736        allow_undefined_flag=$lt_save_allow_undefined_flag
7737      else
7738        cat conftest.err 1>&5
7739      fi
7740      $rm conftest*
7741      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7742echo "${ECHO_T}$archive_cmds_need_lc" >&6
7743      ;;
7744    esac
7745  fi
7746  ;;
7747esac
7748
7749echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7750echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7751library_names_spec=
7752libname_spec='lib$name'
7753soname_spec=
7754shrext_cmds=".so"
7755postinstall_cmds=
7756postuninstall_cmds=
7757finish_cmds=
7758finish_eval=
7759shlibpath_var=
7760shlibpath_overrides_runpath=unknown
7761version_type=none
7762dynamic_linker="$host_os ld.so"
7763sys_lib_dlsearch_path_spec="/lib /usr/lib"
7764if test "$GCC" = yes; then
7765  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7766  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7767    # if the path contains ";" then we assume it to be the separator
7768    # otherwise default to the standard path separator (i.e. ":") - it is
7769    # assumed that no part of a normal pathname contains ";" but that should
7770    # okay in the real world where ";" in dirpaths is itself problematic.
7771    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7772  else
7773    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7774  fi
7775else
7776  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7777fi
7778need_lib_prefix=unknown
7779hardcode_into_libs=no
7780
7781# when you set need_version to no, make sure it does not cause -set_version
7782# flags to be left without arguments
7783need_version=unknown
7784
7785case $host_os in
7786aix3*)
7787  version_type=linux
7788  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7789  shlibpath_var=LIBPATH
7790
7791  # AIX 3 has no versioning support, so we append a major version to the name.
7792  soname_spec='${libname}${release}${shared_ext}$major'
7793  ;;
7794
7795aix4* | aix5*)
7796  version_type=linux
7797  need_lib_prefix=no
7798  need_version=no
7799  hardcode_into_libs=yes
7800  if test "$host_cpu" = ia64; then
7801    # AIX 5 supports IA64
7802    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7803    shlibpath_var=LD_LIBRARY_PATH
7804  else
7805    # With GCC up to 2.95.x, collect2 would create an import file
7806    # for dependence libraries.  The import file would start with
7807    # the line `#! .'.  This would cause the generated library to
7808    # depend on `.', always an invalid library.  This was fixed in
7809    # development snapshots of GCC prior to 3.0.
7810    case $host_os in
7811      aix4 | aix4.[01] | aix4.[01].*)
7812      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7813	   echo ' yes '
7814	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7815	:
7816      else
7817	can_build_shared=no
7818      fi
7819      ;;
7820    esac
7821    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7822    # soname into executable. Probably we can add versioning support to
7823    # collect2, so additional links can be useful in future.
7824    if test "$aix_use_runtimelinking" = yes; then
7825      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7826      # instead of lib<name>.a to let people know that these are not
7827      # typical AIX shared libraries.
7828      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7829    else
7830      # We preserve .a as extension for shared libraries through AIX4.2
7831      # and later when we are not doing run time linking.
7832      library_names_spec='${libname}${release}.a $libname.a'
7833      soname_spec='${libname}${release}${shared_ext}$major'
7834    fi
7835    shlibpath_var=LIBPATH
7836  fi
7837  ;;
7838
7839amigaos*)
7840  library_names_spec='$libname.ixlibrary $libname.a'
7841  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7842  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'
7843  ;;
7844
7845beos*)
7846  library_names_spec='${libname}${shared_ext}'
7847  dynamic_linker="$host_os ld.so"
7848  shlibpath_var=LIBRARY_PATH
7849  ;;
7850
7851bsdi[45]*)
7852  version_type=linux
7853  need_version=no
7854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7855  soname_spec='${libname}${release}${shared_ext}$major'
7856  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7857  shlibpath_var=LD_LIBRARY_PATH
7858  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7859  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7860  # the default ld.so.conf also contains /usr/contrib/lib and
7861  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7862  # libtool to hard-code these into programs
7863  ;;
7864
7865cygwin* | mingw* | pw32*)
7866  version_type=windows
7867  shrext_cmds=".dll"
7868  need_version=no
7869  need_lib_prefix=no
7870
7871  case $GCC,$host_os in
7872  yes,cygwin* | yes,mingw* | yes,pw32*)
7873    library_names_spec='$libname.dll.a'
7874    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7875    postinstall_cmds='base_file=`basename \${file}`~
7876      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7877      dldir=$destdir/`dirname \$dlpath`~
7878      test -d \$dldir || mkdir -p \$dldir~
7879      $install_prog $dir/$dlname \$dldir/$dlname~
7880      chmod a+x \$dldir/$dlname'
7881    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7882      dlpath=$dir/\$dldll~
7883       $rm \$dlpath'
7884    shlibpath_overrides_runpath=yes
7885
7886    case $host_os in
7887    cygwin*)
7888      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7889      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7891      ;;
7892    mingw*)
7893      # MinGW DLLs use traditional 'lib' prefix
7894      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7895      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7896      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7897        # It is most probably a Windows format PATH printed by
7898        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7899        # path with ; separators, and with drive letters. We can handle the
7900        # drive letters (cygwin fileutils understands them), so leave them,
7901        # especially as we might pass files found there to a mingw objdump,
7902        # which wouldn't understand a cygwinified path. Ahh.
7903        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7904      else
7905        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7906      fi
7907      ;;
7908    pw32*)
7909      # pw32 DLLs use 'pw' prefix rather than 'lib'
7910      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7911      ;;
7912    esac
7913    ;;
7914
7915  *)
7916    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7917    ;;
7918  esac
7919  dynamic_linker='Win32 ld.exe'
7920  # FIXME: first we should search . and the directory the executable is in
7921  shlibpath_var=PATH
7922  ;;
7923
7924darwin* | rhapsody*)
7925  dynamic_linker="$host_os dyld"
7926  version_type=darwin
7927  need_lib_prefix=no
7928  need_version=no
7929  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7930  soname_spec='${libname}${release}${major}$shared_ext'
7931  shlibpath_overrides_runpath=yes
7932  shlibpath_var=DYLD_LIBRARY_PATH
7933  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7934  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7935  if test "$GCC" = yes; then
7936    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"`
7937  else
7938    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7939  fi
7940  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7941  ;;
7942
7943dgux*)
7944  version_type=linux
7945  need_lib_prefix=no
7946  need_version=no
7947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7948  soname_spec='${libname}${release}${shared_ext}$major'
7949  shlibpath_var=LD_LIBRARY_PATH
7950  ;;
7951
7952freebsd1*)
7953  dynamic_linker=no
7954  ;;
7955
7956kfreebsd*-gnu)
7957  version_type=linux
7958  need_lib_prefix=no
7959  need_version=no
7960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7961  soname_spec='${libname}${release}${shared_ext}$major'
7962  shlibpath_var=LD_LIBRARY_PATH
7963  shlibpath_overrides_runpath=no
7964  hardcode_into_libs=yes
7965  dynamic_linker='GNU ld.so'
7966  ;;
7967
7968freebsd* | dragonfly*)
7969  # DragonFly does not have aout.  When/if they implement a new
7970  # versioning mechanism, adjust this.
7971  if test -x /usr/bin/objformat; then
7972    objformat=`/usr/bin/objformat`
7973  else
7974    case $host_os in
7975    freebsd[123]*) objformat=aout ;;
7976    *) objformat=elf ;;
7977    esac
7978  fi
7979  version_type=freebsd-$objformat
7980  case $version_type in
7981    freebsd-elf*)
7982      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7983      need_version=no
7984      need_lib_prefix=no
7985      ;;
7986    freebsd-*)
7987      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7988      need_version=yes
7989      ;;
7990  esac
7991  shlibpath_var=LD_LIBRARY_PATH
7992  case $host_os in
7993  freebsd2*)
7994    shlibpath_overrides_runpath=yes
7995    ;;
7996  freebsd3.[01]* | freebsdelf3.[01]*)
7997    shlibpath_overrides_runpath=yes
7998    hardcode_into_libs=yes
7999    ;;
8000  *) # from 3.2 on
8001    shlibpath_overrides_runpath=no
8002    hardcode_into_libs=yes
8003    ;;
8004  esac
8005  ;;
8006
8007gnu*)
8008  version_type=linux
8009  need_lib_prefix=no
8010  need_version=no
8011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8012  soname_spec='${libname}${release}${shared_ext}$major'
8013  shlibpath_var=LD_LIBRARY_PATH
8014  hardcode_into_libs=yes
8015  ;;
8016
8017hpux9* | hpux10* | hpux11*)
8018  # Give a soname corresponding to the major version so that dld.sl refuses to
8019  # link against other versions.
8020  version_type=sunos
8021  need_lib_prefix=no
8022  need_version=no
8023  case $host_cpu in
8024  ia64*)
8025    shrext_cmds='.so'
8026    hardcode_into_libs=yes
8027    dynamic_linker="$host_os dld.so"
8028    shlibpath_var=LD_LIBRARY_PATH
8029    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8030    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031    soname_spec='${libname}${release}${shared_ext}$major'
8032    if test "X$HPUX_IA64_MODE" = X32; then
8033      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8034    else
8035      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8036    fi
8037    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8038    ;;
8039   hppa*64*)
8040     shrext_cmds='.sl'
8041     hardcode_into_libs=yes
8042     dynamic_linker="$host_os dld.sl"
8043     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046     soname_spec='${libname}${release}${shared_ext}$major'
8047     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8048     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8049     ;;
8050   *)
8051    shrext_cmds='.sl'
8052    dynamic_linker="$host_os dld.sl"
8053    shlibpath_var=SHLIB_PATH
8054    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056    soname_spec='${libname}${release}${shared_ext}$major'
8057    ;;
8058  esac
8059  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8060  postinstall_cmds='chmod 555 $lib'
8061  ;;
8062
8063irix5* | irix6* | nonstopux*)
8064  case $host_os in
8065    nonstopux*) version_type=nonstopux ;;
8066    *)
8067	if test "$lt_cv_prog_gnu_ld" = yes; then
8068		version_type=linux
8069	else
8070		version_type=irix
8071	fi ;;
8072  esac
8073  need_lib_prefix=no
8074  need_version=no
8075  soname_spec='${libname}${release}${shared_ext}$major'
8076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8077  case $host_os in
8078  irix5* | nonstopux*)
8079    libsuff= shlibsuff=
8080    ;;
8081  *)
8082    case $LD in # libtool.m4 will add one of these switches to LD
8083    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8084      libsuff= shlibsuff= libmagic=32-bit;;
8085    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8086      libsuff=32 shlibsuff=N32 libmagic=N32;;
8087    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8088      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8089    *) libsuff= shlibsuff= libmagic=never-match;;
8090    esac
8091    ;;
8092  esac
8093  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8094  shlibpath_overrides_runpath=no
8095  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8096  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8097  hardcode_into_libs=yes
8098  ;;
8099
8100# No shared lib support for Linux oldld, aout, or coff.
8101linux*oldld* | linux*aout* | linux*coff*)
8102  dynamic_linker=no
8103  ;;
8104
8105# This must be Linux ELF.
8106linux*)
8107  version_type=linux
8108  need_lib_prefix=no
8109  need_version=no
8110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111  soname_spec='${libname}${release}${shared_ext}$major'
8112  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8113  shlibpath_var=LD_LIBRARY_PATH
8114  shlibpath_overrides_runpath=no
8115  # This implies no fast_install, which is unacceptable.
8116  # Some rework will be needed to allow for fast_install
8117  # before this can be enabled.
8118  hardcode_into_libs=yes
8119
8120  # Append ld.so.conf contents to the search path
8121  if test -f /etc/ld.so.conf; then
8122    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' ' '`
8123    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8124  fi
8125
8126  # We used to test for /lib/ld.so.1 and disable shared libraries on
8127  # powerpc, because MkLinux only supported shared libraries with the
8128  # GNU dynamic linker.  Since this was broken with cross compilers,
8129  # most powerpc-linux boxes support dynamic linking these days and
8130  # people can always --disable-shared, the test was removed, and we
8131  # assume the GNU/Linux dynamic linker is in use.
8132  dynamic_linker='GNU/Linux ld.so'
8133  ;;
8134
8135netbsdelf*-gnu)
8136  version_type=linux
8137  need_lib_prefix=no
8138  need_version=no
8139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8140  soname_spec='${libname}${release}${shared_ext}$major'
8141  shlibpath_var=LD_LIBRARY_PATH
8142  shlibpath_overrides_runpath=no
8143  hardcode_into_libs=yes
8144  dynamic_linker='NetBSD ld.elf_so'
8145  ;;
8146
8147knetbsd*-gnu)
8148  version_type=linux
8149  need_lib_prefix=no
8150  need_version=no
8151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8152  soname_spec='${libname}${release}${shared_ext}$major'
8153  shlibpath_var=LD_LIBRARY_PATH
8154  shlibpath_overrides_runpath=no
8155  hardcode_into_libs=yes
8156  dynamic_linker='GNU ld.so'
8157  ;;
8158
8159netbsd*)
8160  version_type=sunos
8161  need_lib_prefix=no
8162  need_version=no
8163  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8165    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8166    dynamic_linker='NetBSD (a.out) ld.so'
8167  else
8168    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8169    soname_spec='${libname}${release}${shared_ext}$major'
8170    dynamic_linker='NetBSD ld.elf_so'
8171  fi
8172  shlibpath_var=LD_LIBRARY_PATH
8173  shlibpath_overrides_runpath=yes
8174  hardcode_into_libs=yes
8175  ;;
8176
8177newsos6)
8178  version_type=linux
8179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8180  shlibpath_var=LD_LIBRARY_PATH
8181  shlibpath_overrides_runpath=yes
8182  ;;
8183
8184nto-qnx*)
8185  version_type=linux
8186  need_lib_prefix=no
8187  need_version=no
8188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8189  soname_spec='${libname}${release}${shared_ext}$major'
8190  shlibpath_var=LD_LIBRARY_PATH
8191  shlibpath_overrides_runpath=yes
8192  ;;
8193
8194openbsd*)
8195  version_type=sunos
8196  need_lib_prefix=no
8197  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8198  case $host_os in
8199    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8200    *)                         need_version=no  ;;
8201  esac
8202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8203  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8204  shlibpath_var=LD_LIBRARY_PATH
8205  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8206    case $host_os in
8207      openbsd2.[89] | openbsd2.[89].*)
8208	shlibpath_overrides_runpath=no
8209	;;
8210      *)
8211	shlibpath_overrides_runpath=yes
8212	;;
8213      esac
8214  else
8215    shlibpath_overrides_runpath=yes
8216  fi
8217  ;;
8218
8219os2*)
8220  libname_spec='$name'
8221  shrext_cmds=".dll"
8222  need_lib_prefix=no
8223  library_names_spec='$libname${shared_ext} $libname.a'
8224  dynamic_linker='OS/2 ld.exe'
8225  shlibpath_var=LIBPATH
8226  ;;
8227
8228osf3* | osf4* | osf5*)
8229  version_type=osf
8230  need_lib_prefix=no
8231  need_version=no
8232  soname_spec='${libname}${release}${shared_ext}$major'
8233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234  shlibpath_var=LD_LIBRARY_PATH
8235  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8236  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8237  ;;
8238
8239sco3.2v5*)
8240  version_type=osf
8241  soname_spec='${libname}${release}${shared_ext}$major'
8242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8243  shlibpath_var=LD_LIBRARY_PATH
8244  ;;
8245
8246solaris*)
8247  version_type=linux
8248  need_lib_prefix=no
8249  need_version=no
8250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8251  soname_spec='${libname}${release}${shared_ext}$major'
8252  shlibpath_var=LD_LIBRARY_PATH
8253  shlibpath_overrides_runpath=yes
8254  hardcode_into_libs=yes
8255  # ldd complains unless libraries are executable
8256  postinstall_cmds='chmod +x $lib'
8257  ;;
8258
8259sunos4*)
8260  version_type=sunos
8261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8262  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8263  shlibpath_var=LD_LIBRARY_PATH
8264  shlibpath_overrides_runpath=yes
8265  if test "$with_gnu_ld" = yes; then
8266    need_lib_prefix=no
8267  fi
8268  need_version=yes
8269  ;;
8270
8271sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8272  version_type=linux
8273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274  soname_spec='${libname}${release}${shared_ext}$major'
8275  shlibpath_var=LD_LIBRARY_PATH
8276  case $host_vendor in
8277    sni)
8278      shlibpath_overrides_runpath=no
8279      need_lib_prefix=no
8280      export_dynamic_flag_spec='${wl}-Blargedynsym'
8281      runpath_var=LD_RUN_PATH
8282      ;;
8283    siemens)
8284      need_lib_prefix=no
8285      ;;
8286    motorola)
8287      need_lib_prefix=no
8288      need_version=no
8289      shlibpath_overrides_runpath=no
8290      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8291      ;;
8292  esac
8293  ;;
8294
8295sysv4*MP*)
8296  if test -d /usr/nec ;then
8297    version_type=linux
8298    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8299    soname_spec='$libname${shared_ext}.$major'
8300    shlibpath_var=LD_LIBRARY_PATH
8301  fi
8302  ;;
8303
8304uts4*)
8305  version_type=linux
8306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307  soname_spec='${libname}${release}${shared_ext}$major'
8308  shlibpath_var=LD_LIBRARY_PATH
8309  ;;
8310
8311*)
8312  dynamic_linker=no
8313  ;;
8314esac
8315echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8316echo "${ECHO_T}$dynamic_linker" >&6
8317test "$dynamic_linker" = no && can_build_shared=no
8318
8319echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8320echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8321hardcode_action=
8322if test -n "$hardcode_libdir_flag_spec" || \
8323   test -n "$runpath_var" || \
8324   test "X$hardcode_automatic" = "Xyes" ; then
8325
8326  # We can hardcode non-existant directories.
8327  if test "$hardcode_direct" != no &&
8328     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8329     # have to relink, otherwise we might link with an installed library
8330     # when we should be linking with a yet-to-be-installed one
8331     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8332     test "$hardcode_minus_L" != no; then
8333    # Linking always hardcodes the temporary library directory.
8334    hardcode_action=relink
8335  else
8336    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8337    hardcode_action=immediate
8338  fi
8339else
8340  # We cannot hardcode anything, or else we can only hardcode existing
8341  # directories.
8342  hardcode_action=unsupported
8343fi
8344echo "$as_me:$LINENO: result: $hardcode_action" >&5
8345echo "${ECHO_T}$hardcode_action" >&6
8346
8347if test "$hardcode_action" = relink; then
8348  # Fast installation is not supported
8349  enable_fast_install=no
8350elif test "$shlibpath_overrides_runpath" = yes ||
8351     test "$enable_shared" = no; then
8352  # Fast installation is not necessary
8353  enable_fast_install=needless
8354fi
8355
8356striplib=
8357old_striplib=
8358echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8359echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8360if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8361  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8362  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8363  echo "$as_me:$LINENO: result: yes" >&5
8364echo "${ECHO_T}yes" >&6
8365else
8366# FIXME - insert some real tests, host_os isn't really good enough
8367  case $host_os in
8368   darwin*)
8369       if test -n "$STRIP" ; then
8370         striplib="$STRIP -x"
8371         echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373       else
8374  echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376fi
8377       ;;
8378   *)
8379  echo "$as_me:$LINENO: result: no" >&5
8380echo "${ECHO_T}no" >&6
8381    ;;
8382  esac
8383fi
8384
8385if test "x$enable_dlopen" != xyes; then
8386  enable_dlopen=unknown
8387  enable_dlopen_self=unknown
8388  enable_dlopen_self_static=unknown
8389else
8390  lt_cv_dlopen=no
8391  lt_cv_dlopen_libs=
8392
8393  case $host_os in
8394  beos*)
8395    lt_cv_dlopen="load_add_on"
8396    lt_cv_dlopen_libs=
8397    lt_cv_dlopen_self=yes
8398    ;;
8399
8400  mingw* | pw32*)
8401    lt_cv_dlopen="LoadLibrary"
8402    lt_cv_dlopen_libs=
8403   ;;
8404
8405  cygwin*)
8406    lt_cv_dlopen="dlopen"
8407    lt_cv_dlopen_libs=
8408   ;;
8409
8410  darwin*)
8411  # if libdl is installed we need to link against it
8412    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8413echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8414if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8415  echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417  ac_check_lib_save_LIBS=$LIBS
8418LIBS="-ldl  $LIBS"
8419cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h.  */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h.  */
8425
8426/* Override any gcc2 internal prototype to avoid an error.  */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431   builtin and then its argument prototype would still apply.  */
8432char dlopen ();
8433int
8434main ()
8435{
8436dlopen ();
8437  ;
8438  return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443  (eval $ac_link) 2>conftest.er1
8444  ac_status=$?
8445  grep -v '^ *+' conftest.er1 >conftest.err
8446  rm -f conftest.er1
8447  cat conftest.err >&5
8448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449  (exit $ac_status); } &&
8450	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452  (eval $ac_try) 2>&5
8453  ac_status=$?
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); }; } &&
8456	 { ac_try='test -s conftest$ac_exeext'
8457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458  (eval $ac_try) 2>&5
8459  ac_status=$?
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); }; }; then
8462  ac_cv_lib_dl_dlopen=yes
8463else
8464  echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467ac_cv_lib_dl_dlopen=no
8468fi
8469rm -f conftest.err conftest.$ac_objext \
8470      conftest$ac_exeext conftest.$ac_ext
8471LIBS=$ac_check_lib_save_LIBS
8472fi
8473echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8474echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8475if test $ac_cv_lib_dl_dlopen = yes; then
8476  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8477else
8478
8479    lt_cv_dlopen="dyld"
8480    lt_cv_dlopen_libs=
8481    lt_cv_dlopen_self=yes
8482
8483fi
8484
8485   ;;
8486
8487  *)
8488    echo "$as_me:$LINENO: checking for shl_load" >&5
8489echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8490if test "${ac_cv_func_shl_load+set}" = set; then
8491  echo $ECHO_N "(cached) $ECHO_C" >&6
8492else
8493  cat >conftest.$ac_ext <<_ACEOF
8494/* confdefs.h.  */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h.  */
8499/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8500   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8501#define shl_load innocuous_shl_load
8502
8503/* System header to define __stub macros and hopefully few prototypes,
8504    which can conflict with char shl_load (); below.
8505    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8506    <limits.h> exists even on freestanding compilers.  */
8507
8508#ifdef __STDC__
8509# include <limits.h>
8510#else
8511# include <assert.h>
8512#endif
8513
8514#undef shl_load
8515
8516/* Override any gcc2 internal prototype to avoid an error.  */
8517#ifdef __cplusplus
8518extern "C"
8519{
8520#endif
8521/* We use char because int might match the return type of a gcc2
8522   builtin and then its argument prototype would still apply.  */
8523char shl_load ();
8524/* The GNU C library defines this for functions which it implements
8525    to always fail with ENOSYS.  Some functions are actually named
8526    something starting with __ and the normal name is an alias.  */
8527#if defined (__stub_shl_load) || defined (__stub___shl_load)
8528choke me
8529#else
8530char (*f) () = shl_load;
8531#endif
8532#ifdef __cplusplus
8533}
8534#endif
8535
8536int
8537main ()
8538{
8539return f != shl_load;
8540  ;
8541  return 0;
8542}
8543_ACEOF
8544rm -f conftest.$ac_objext conftest$ac_exeext
8545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546  (eval $ac_link) 2>conftest.er1
8547  ac_status=$?
8548  grep -v '^ *+' conftest.er1 >conftest.err
8549  rm -f conftest.er1
8550  cat conftest.err >&5
8551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552  (exit $ac_status); } &&
8553	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555  (eval $ac_try) 2>&5
8556  ac_status=$?
8557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558  (exit $ac_status); }; } &&
8559	 { ac_try='test -s conftest$ac_exeext'
8560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561  (eval $ac_try) 2>&5
8562  ac_status=$?
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); }; }; then
8565  ac_cv_func_shl_load=yes
8566else
8567  echo "$as_me: failed program was:" >&5
8568sed 's/^/| /' conftest.$ac_ext >&5
8569
8570ac_cv_func_shl_load=no
8571fi
8572rm -f conftest.err conftest.$ac_objext \
8573      conftest$ac_exeext conftest.$ac_ext
8574fi
8575echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8576echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8577if test $ac_cv_func_shl_load = yes; then
8578  lt_cv_dlopen="shl_load"
8579else
8580  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8581echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8582if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8583  echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585  ac_check_lib_save_LIBS=$LIBS
8586LIBS="-ldld  $LIBS"
8587cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h.  */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h.  */
8593
8594/* Override any gcc2 internal prototype to avoid an error.  */
8595#ifdef __cplusplus
8596extern "C"
8597#endif
8598/* We use char because int might match the return type of a gcc2
8599   builtin and then its argument prototype would still apply.  */
8600char shl_load ();
8601int
8602main ()
8603{
8604shl_load ();
8605  ;
8606  return 0;
8607}
8608_ACEOF
8609rm -f conftest.$ac_objext conftest$ac_exeext
8610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8611  (eval $ac_link) 2>conftest.er1
8612  ac_status=$?
8613  grep -v '^ *+' conftest.er1 >conftest.err
8614  rm -f conftest.er1
8615  cat conftest.err >&5
8616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617  (exit $ac_status); } &&
8618	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620  (eval $ac_try) 2>&5
8621  ac_status=$?
8622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); }; } &&
8624	 { ac_try='test -s conftest$ac_exeext'
8625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626  (eval $ac_try) 2>&5
8627  ac_status=$?
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); }; }; then
8630  ac_cv_lib_dld_shl_load=yes
8631else
8632  echo "$as_me: failed program was:" >&5
8633sed 's/^/| /' conftest.$ac_ext >&5
8634
8635ac_cv_lib_dld_shl_load=no
8636fi
8637rm -f conftest.err conftest.$ac_objext \
8638      conftest$ac_exeext conftest.$ac_ext
8639LIBS=$ac_check_lib_save_LIBS
8640fi
8641echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8642echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8643if test $ac_cv_lib_dld_shl_load = yes; then
8644  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8645else
8646  echo "$as_me:$LINENO: checking for dlopen" >&5
8647echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8648if test "${ac_cv_func_dlopen+set}" = set; then
8649  echo $ECHO_N "(cached) $ECHO_C" >&6
8650else
8651  cat >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/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8658   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8659#define dlopen innocuous_dlopen
8660
8661/* System header to define __stub macros and hopefully few prototypes,
8662    which can conflict with char dlopen (); below.
8663    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8664    <limits.h> exists even on freestanding compilers.  */
8665
8666#ifdef __STDC__
8667# include <limits.h>
8668#else
8669# include <assert.h>
8670#endif
8671
8672#undef dlopen
8673
8674/* Override any gcc2 internal prototype to avoid an error.  */
8675#ifdef __cplusplus
8676extern "C"
8677{
8678#endif
8679/* We use char because int might match the return type of a gcc2
8680   builtin and then its argument prototype would still apply.  */
8681char dlopen ();
8682/* The GNU C library defines this for functions which it implements
8683    to always fail with ENOSYS.  Some functions are actually named
8684    something starting with __ and the normal name is an alias.  */
8685#if defined (__stub_dlopen) || defined (__stub___dlopen)
8686choke me
8687#else
8688char (*f) () = dlopen;
8689#endif
8690#ifdef __cplusplus
8691}
8692#endif
8693
8694int
8695main ()
8696{
8697return f != dlopen;
8698  ;
8699  return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
8703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704  (eval $ac_link) 2>conftest.er1
8705  ac_status=$?
8706  grep -v '^ *+' conftest.er1 >conftest.err
8707  rm -f conftest.er1
8708  cat conftest.err >&5
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); } &&
8711	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717	 { ac_try='test -s conftest$ac_exeext'
8718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719  (eval $ac_try) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); }; }; then
8723  ac_cv_func_dlopen=yes
8724else
8725  echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728ac_cv_func_dlopen=no
8729fi
8730rm -f conftest.err conftest.$ac_objext \
8731      conftest$ac_exeext conftest.$ac_ext
8732fi
8733echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8734echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8735if test $ac_cv_func_dlopen = yes; then
8736  lt_cv_dlopen="dlopen"
8737else
8738  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8739echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8740if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8741  echo $ECHO_N "(cached) $ECHO_C" >&6
8742else
8743  ac_check_lib_save_LIBS=$LIBS
8744LIBS="-ldl  $LIBS"
8745cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h.  */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h.  */
8751
8752/* Override any gcc2 internal prototype to avoid an error.  */
8753#ifdef __cplusplus
8754extern "C"
8755#endif
8756/* We use char because int might match the return type of a gcc2
8757   builtin and then its argument prototype would still apply.  */
8758char dlopen ();
8759int
8760main ()
8761{
8762dlopen ();
8763  ;
8764  return 0;
8765}
8766_ACEOF
8767rm -f conftest.$ac_objext conftest$ac_exeext
8768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769  (eval $ac_link) 2>conftest.er1
8770  ac_status=$?
8771  grep -v '^ *+' conftest.er1 >conftest.err
8772  rm -f conftest.er1
8773  cat conftest.err >&5
8774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775  (exit $ac_status); } &&
8776	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778  (eval $ac_try) 2>&5
8779  ac_status=$?
8780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781  (exit $ac_status); }; } &&
8782	 { ac_try='test -s conftest$ac_exeext'
8783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784  (eval $ac_try) 2>&5
8785  ac_status=$?
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); }; }; then
8788  ac_cv_lib_dl_dlopen=yes
8789else
8790  echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
8792
8793ac_cv_lib_dl_dlopen=no
8794fi
8795rm -f conftest.err conftest.$ac_objext \
8796      conftest$ac_exeext conftest.$ac_ext
8797LIBS=$ac_check_lib_save_LIBS
8798fi
8799echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8800echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8801if test $ac_cv_lib_dl_dlopen = yes; then
8802  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8803else
8804  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8805echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8806if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  ac_check_lib_save_LIBS=$LIBS
8810LIBS="-lsvld  $LIBS"
8811cat >conftest.$ac_ext <<_ACEOF
8812/* confdefs.h.  */
8813_ACEOF
8814cat confdefs.h >>conftest.$ac_ext
8815cat >>conftest.$ac_ext <<_ACEOF
8816/* end confdefs.h.  */
8817
8818/* Override any gcc2 internal prototype to avoid an error.  */
8819#ifdef __cplusplus
8820extern "C"
8821#endif
8822/* We use char because int might match the return type of a gcc2
8823   builtin and then its argument prototype would still apply.  */
8824char dlopen ();
8825int
8826main ()
8827{
8828dlopen ();
8829  ;
8830  return 0;
8831}
8832_ACEOF
8833rm -f conftest.$ac_objext conftest$ac_exeext
8834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835  (eval $ac_link) 2>conftest.er1
8836  ac_status=$?
8837  grep -v '^ *+' conftest.er1 >conftest.err
8838  rm -f conftest.er1
8839  cat conftest.err >&5
8840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841  (exit $ac_status); } &&
8842	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844  (eval $ac_try) 2>&5
8845  ac_status=$?
8846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847  (exit $ac_status); }; } &&
8848	 { ac_try='test -s conftest$ac_exeext'
8849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850  (eval $ac_try) 2>&5
8851  ac_status=$?
8852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853  (exit $ac_status); }; }; then
8854  ac_cv_lib_svld_dlopen=yes
8855else
8856  echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
8858
8859ac_cv_lib_svld_dlopen=no
8860fi
8861rm -f conftest.err conftest.$ac_objext \
8862      conftest$ac_exeext conftest.$ac_ext
8863LIBS=$ac_check_lib_save_LIBS
8864fi
8865echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8866echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8867if test $ac_cv_lib_svld_dlopen = yes; then
8868  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8869else
8870  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8871echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8872if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8873  echo $ECHO_N "(cached) $ECHO_C" >&6
8874else
8875  ac_check_lib_save_LIBS=$LIBS
8876LIBS="-ldld  $LIBS"
8877cat >conftest.$ac_ext <<_ACEOF
8878/* confdefs.h.  */
8879_ACEOF
8880cat confdefs.h >>conftest.$ac_ext
8881cat >>conftest.$ac_ext <<_ACEOF
8882/* end confdefs.h.  */
8883
8884/* Override any gcc2 internal prototype to avoid an error.  */
8885#ifdef __cplusplus
8886extern "C"
8887#endif
8888/* We use char because int might match the return type of a gcc2
8889   builtin and then its argument prototype would still apply.  */
8890char dld_link ();
8891int
8892main ()
8893{
8894dld_link ();
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899rm -f conftest.$ac_objext conftest$ac_exeext
8900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8901  (eval $ac_link) 2>conftest.er1
8902  ac_status=$?
8903  grep -v '^ *+' conftest.er1 >conftest.err
8904  rm -f conftest.er1
8905  cat conftest.err >&5
8906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907  (exit $ac_status); } &&
8908	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910  (eval $ac_try) 2>&5
8911  ac_status=$?
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); }; } &&
8914	 { ac_try='test -s conftest$ac_exeext'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; }; then
8920  ac_cv_lib_dld_dld_link=yes
8921else
8922  echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925ac_cv_lib_dld_dld_link=no
8926fi
8927rm -f conftest.err conftest.$ac_objext \
8928      conftest$ac_exeext conftest.$ac_ext
8929LIBS=$ac_check_lib_save_LIBS
8930fi
8931echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8932echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8933if test $ac_cv_lib_dld_dld_link = yes; then
8934  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8935fi
8936
8937
8938fi
8939
8940
8941fi
8942
8943
8944fi
8945
8946
8947fi
8948
8949
8950fi
8951
8952    ;;
8953  esac
8954
8955  if test "x$lt_cv_dlopen" != xno; then
8956    enable_dlopen=yes
8957  else
8958    enable_dlopen=no
8959  fi
8960
8961  case $lt_cv_dlopen in
8962  dlopen)
8963    save_CPPFLAGS="$CPPFLAGS"
8964    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8965
8966    save_LDFLAGS="$LDFLAGS"
8967    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8968
8969    save_LIBS="$LIBS"
8970    LIBS="$lt_cv_dlopen_libs $LIBS"
8971
8972    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8973echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8974if test "${lt_cv_dlopen_self+set}" = set; then
8975  echo $ECHO_N "(cached) $ECHO_C" >&6
8976else
8977  	  if test "$cross_compiling" = yes; then :
8978  lt_cv_dlopen_self=cross
8979else
8980  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8981  lt_status=$lt_dlunknown
8982  cat > conftest.$ac_ext <<EOF
8983#line 8983 "configure"
8984#include "confdefs.h"
8985
8986#if HAVE_DLFCN_H
8987#include <dlfcn.h>
8988#endif
8989
8990#include <stdio.h>
8991
8992#ifdef RTLD_GLOBAL
8993#  define LT_DLGLOBAL		RTLD_GLOBAL
8994#else
8995#  ifdef DL_GLOBAL
8996#    define LT_DLGLOBAL		DL_GLOBAL
8997#  else
8998#    define LT_DLGLOBAL		0
8999#  endif
9000#endif
9001
9002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9003   find out it does not work in some platform. */
9004#ifndef LT_DLLAZY_OR_NOW
9005#  ifdef RTLD_LAZY
9006#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9007#  else
9008#    ifdef DL_LAZY
9009#      define LT_DLLAZY_OR_NOW		DL_LAZY
9010#    else
9011#      ifdef RTLD_NOW
9012#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9013#      else
9014#        ifdef DL_NOW
9015#          define LT_DLLAZY_OR_NOW	DL_NOW
9016#        else
9017#          define LT_DLLAZY_OR_NOW	0
9018#        endif
9019#      endif
9020#    endif
9021#  endif
9022#endif
9023
9024#ifdef __cplusplus
9025extern "C" void exit (int);
9026#endif
9027
9028void fnord() { int i=42;}
9029int main ()
9030{
9031  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9032  int status = $lt_dlunknown;
9033
9034  if (self)
9035    {
9036      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9037      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9038      /* dlclose (self); */
9039    }
9040
9041    exit (status);
9042}
9043EOF
9044  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045  (eval $ac_link) 2>&5
9046  ac_status=$?
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9049    (./conftest; exit; ) >&5 2>/dev/null
9050    lt_status=$?
9051    case x$lt_status in
9052      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9053      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9054      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9055    esac
9056  else :
9057    # compilation failed
9058    lt_cv_dlopen_self=no
9059  fi
9060fi
9061rm -fr conftest*
9062
9063
9064fi
9065echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9066echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9067
9068    if test "x$lt_cv_dlopen_self" = xyes; then
9069      LDFLAGS="$LDFLAGS $link_static_flag"
9070      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9071echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9072if test "${lt_cv_dlopen_self_static+set}" = set; then
9073  echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075  	  if test "$cross_compiling" = yes; then :
9076  lt_cv_dlopen_self_static=cross
9077else
9078  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9079  lt_status=$lt_dlunknown
9080  cat > conftest.$ac_ext <<EOF
9081#line 9081 "configure"
9082#include "confdefs.h"
9083
9084#if HAVE_DLFCN_H
9085#include <dlfcn.h>
9086#endif
9087
9088#include <stdio.h>
9089
9090#ifdef RTLD_GLOBAL
9091#  define LT_DLGLOBAL		RTLD_GLOBAL
9092#else
9093#  ifdef DL_GLOBAL
9094#    define LT_DLGLOBAL		DL_GLOBAL
9095#  else
9096#    define LT_DLGLOBAL		0
9097#  endif
9098#endif
9099
9100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9101   find out it does not work in some platform. */
9102#ifndef LT_DLLAZY_OR_NOW
9103#  ifdef RTLD_LAZY
9104#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9105#  else
9106#    ifdef DL_LAZY
9107#      define LT_DLLAZY_OR_NOW		DL_LAZY
9108#    else
9109#      ifdef RTLD_NOW
9110#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9111#      else
9112#        ifdef DL_NOW
9113#          define LT_DLLAZY_OR_NOW	DL_NOW
9114#        else
9115#          define LT_DLLAZY_OR_NOW	0
9116#        endif
9117#      endif
9118#    endif
9119#  endif
9120#endif
9121
9122#ifdef __cplusplus
9123extern "C" void exit (int);
9124#endif
9125
9126void fnord() { int i=42;}
9127int main ()
9128{
9129  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9130  int status = $lt_dlunknown;
9131
9132  if (self)
9133    {
9134      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9135      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9136      /* dlclose (self); */
9137    }
9138
9139    exit (status);
9140}
9141EOF
9142  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143  (eval $ac_link) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9147    (./conftest; exit; ) >&5 2>/dev/null
9148    lt_status=$?
9149    case x$lt_status in
9150      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9151      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9152      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9153    esac
9154  else :
9155    # compilation failed
9156    lt_cv_dlopen_self_static=no
9157  fi
9158fi
9159rm -fr conftest*
9160
9161
9162fi
9163echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9164echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9165    fi
9166
9167    CPPFLAGS="$save_CPPFLAGS"
9168    LDFLAGS="$save_LDFLAGS"
9169    LIBS="$save_LIBS"
9170    ;;
9171  esac
9172
9173  case $lt_cv_dlopen_self in
9174  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9175  *) enable_dlopen_self=unknown ;;
9176  esac
9177
9178  case $lt_cv_dlopen_self_static in
9179  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9180  *) enable_dlopen_self_static=unknown ;;
9181  esac
9182fi
9183
9184
9185# Report which librarie types wil actually be built
9186echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9187echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9188echo "$as_me:$LINENO: result: $can_build_shared" >&5
9189echo "${ECHO_T}$can_build_shared" >&6
9190
9191echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9192echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9193test "$can_build_shared" = "no" && enable_shared=no
9194
9195# On AIX, shared libraries and static libraries use the same namespace, and
9196# are all built from PIC.
9197case $host_os in
9198aix3*)
9199  test "$enable_shared" = yes && enable_static=no
9200  if test -n "$RANLIB"; then
9201    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9202    postinstall_cmds='$RANLIB $lib'
9203  fi
9204  ;;
9205
9206aix4* | aix5*)
9207  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9208    test "$enable_shared" = yes && enable_static=no
9209  fi
9210    ;;
9211esac
9212echo "$as_me:$LINENO: result: $enable_shared" >&5
9213echo "${ECHO_T}$enable_shared" >&6
9214
9215echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9216echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9217# Make sure either enable_shared or enable_static is yes.
9218test "$enable_shared" = yes || enable_static=yes
9219echo "$as_me:$LINENO: result: $enable_static" >&5
9220echo "${ECHO_T}$enable_static" >&6
9221
9222# The else clause should only fire when bootstrapping the
9223# libtool distribution, otherwise you forgot to ship ltmain.sh
9224# with your package, and you will get complaints that there are
9225# no rules to generate ltmain.sh.
9226if test -f "$ltmain"; then
9227  # See if we are running on zsh, and set the options which allow our commands through
9228  # without removal of \ escapes.
9229  if test -n "${ZSH_VERSION+set}" ; then
9230    setopt NO_GLOB_SUBST
9231  fi
9232  # Now quote all the things that may contain metacharacters while being
9233  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9234  # variables and quote the copies for generation of the libtool script.
9235  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9236    SED SHELL STRIP \
9237    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9238    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9239    deplibs_check_method reload_flag reload_cmds need_locks \
9240    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9241    lt_cv_sys_global_symbol_to_c_name_address \
9242    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9243    old_postinstall_cmds old_postuninstall_cmds \
9244    compiler \
9245    CC \
9246    LD \
9247    lt_prog_compiler_wl \
9248    lt_prog_compiler_pic \
9249    lt_prog_compiler_static \
9250    lt_prog_compiler_no_builtin_flag \
9251    export_dynamic_flag_spec \
9252    thread_safe_flag_spec \
9253    whole_archive_flag_spec \
9254    enable_shared_with_static_runtimes \
9255    old_archive_cmds \
9256    old_archive_from_new_cmds \
9257    predep_objects \
9258    postdep_objects \
9259    predeps \
9260    postdeps \
9261    compiler_lib_search_path \
9262    archive_cmds \
9263    archive_expsym_cmds \
9264    postinstall_cmds \
9265    postuninstall_cmds \
9266    old_archive_from_expsyms_cmds \
9267    allow_undefined_flag \
9268    no_undefined_flag \
9269    export_symbols_cmds \
9270    hardcode_libdir_flag_spec \
9271    hardcode_libdir_flag_spec_ld \
9272    hardcode_libdir_separator \
9273    hardcode_automatic \
9274    module_cmds \
9275    module_expsym_cmds \
9276    lt_cv_prog_compiler_c_o \
9277    exclude_expsyms \
9278    include_expsyms; do
9279
9280    case $var in
9281    old_archive_cmds | \
9282    old_archive_from_new_cmds | \
9283    archive_cmds | \
9284    archive_expsym_cmds | \
9285    module_cmds | \
9286    module_expsym_cmds | \
9287    old_archive_from_expsyms_cmds | \
9288    export_symbols_cmds | \
9289    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9290    postinstall_cmds | postuninstall_cmds | \
9291    old_postinstall_cmds | old_postuninstall_cmds | \
9292    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9293      # Double-quote double-evaled strings.
9294      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9295      ;;
9296    *)
9297      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9298      ;;
9299    esac
9300  done
9301
9302  case $lt_echo in
9303  *'\$0 --fallback-echo"')
9304    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9305    ;;
9306  esac
9307
9308cfgfile="${ofile}T"
9309  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9310  $rm -f "$cfgfile"
9311  { echo "$as_me:$LINENO: creating $ofile" >&5
9312echo "$as_me: creating $ofile" >&6;}
9313
9314  cat <<__EOF__ >> "$cfgfile"
9315#! $SHELL
9316
9317# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9318# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9319# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9320#
9321# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9322# Free Software Foundation, Inc.
9323#
9324# This file is part of GNU Libtool:
9325# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9326#
9327# This program is free software; you can redistribute it and/or modify
9328# it under the terms of the GNU General Public License as published by
9329# the Free Software Foundation; either version 2 of the License, or
9330# (at your option) any later version.
9331#
9332# This program is distributed in the hope that it will be useful, but
9333# WITHOUT ANY WARRANTY; without even the implied warranty of
9334# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9335# General Public License for more details.
9336#
9337# You should have received a copy of the GNU General Public License
9338# along with this program; if not, write to the Free Software
9339# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9340#
9341# As a special exception to the GNU General Public License, if you
9342# distribute this file as part of a program that contains a
9343# configuration script generated by Autoconf, you may include it under
9344# the same distribution terms that you use for the rest of that program.
9345
9346# A sed program that does not truncate output.
9347SED=$lt_SED
9348
9349# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9350Xsed="$SED -e 1s/^X//"
9351
9352# The HP-UX ksh and POSIX shell print the target directory to stdout
9353# if CDPATH is set.
9354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9355
9356# The names of the tagged configurations supported by this script.
9357available_tags=
9358
9359# ### BEGIN LIBTOOL CONFIG
9360
9361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9362
9363# Shell to use when invoking shell scripts.
9364SHELL=$lt_SHELL
9365
9366# Whether or not to build shared libraries.
9367build_libtool_libs=$enable_shared
9368
9369# Whether or not to build static libraries.
9370build_old_libs=$enable_static
9371
9372# Whether or not to add -lc for building shared libraries.
9373build_libtool_need_lc=$archive_cmds_need_lc
9374
9375# Whether or not to disallow shared libs when runtime libs are static
9376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9377
9378# Whether or not to optimize for fast installation.
9379fast_install=$enable_fast_install
9380
9381# The host system.
9382host_alias=$host_alias
9383host=$host
9384host_os=$host_os
9385
9386# The build system.
9387build_alias=$build_alias
9388build=$build
9389build_os=$build_os
9390
9391# An echo program that does not interpret backslashes.
9392echo=$lt_echo
9393
9394# The archiver.
9395AR=$lt_AR
9396AR_FLAGS=$lt_AR_FLAGS
9397
9398# A C compiler.
9399LTCC=$lt_LTCC
9400
9401# A language-specific compiler.
9402CC=$lt_compiler
9403
9404# Is the compiler the GNU C compiler?
9405with_gcc=$GCC
9406
9407# An ERE matcher.
9408EGREP=$lt_EGREP
9409
9410# The linker used to build libraries.
9411LD=$lt_LD
9412
9413# Whether we need hard or soft links.
9414LN_S=$lt_LN_S
9415
9416# A BSD-compatible nm program.
9417NM=$lt_NM
9418
9419# A symbol stripping program
9420STRIP=$lt_STRIP
9421
9422# Used to examine libraries when file_magic_cmd begins "file"
9423MAGIC_CMD=$MAGIC_CMD
9424
9425# Used on cygwin: DLL creation program.
9426DLLTOOL="$DLLTOOL"
9427
9428# Used on cygwin: object dumper.
9429OBJDUMP="$OBJDUMP"
9430
9431# Used on cygwin: assembler.
9432AS="$AS"
9433
9434# The name of the directory that contains temporary libtool files.
9435objdir=$objdir
9436
9437# How to create reloadable object files.
9438reload_flag=$lt_reload_flag
9439reload_cmds=$lt_reload_cmds
9440
9441# How to pass a linker flag through the compiler.
9442wl=$lt_lt_prog_compiler_wl
9443
9444# Object file suffix (normally "o").
9445objext="$ac_objext"
9446
9447# Old archive suffix (normally "a").
9448libext="$libext"
9449
9450# Shared library suffix (normally ".so").
9451shrext_cmds='$shrext_cmds'
9452
9453# Executable file suffix (normally "").
9454exeext="$exeext"
9455
9456# Additional compiler flags for building library objects.
9457pic_flag=$lt_lt_prog_compiler_pic
9458pic_mode=$pic_mode
9459
9460# What is the maximum length of a command?
9461max_cmd_len=$lt_cv_sys_max_cmd_len
9462
9463# Does compiler simultaneously support -c and -o options?
9464compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9465
9466# Must we lock files when doing compilation?
9467need_locks=$lt_need_locks
9468
9469# Do we need the lib prefix for modules?
9470need_lib_prefix=$need_lib_prefix
9471
9472# Do we need a version for libraries?
9473need_version=$need_version
9474
9475# Whether dlopen is supported.
9476dlopen_support=$enable_dlopen
9477
9478# Whether dlopen of programs is supported.
9479dlopen_self=$enable_dlopen_self
9480
9481# Whether dlopen of statically linked programs is supported.
9482dlopen_self_static=$enable_dlopen_self_static
9483
9484# Compiler flag to prevent dynamic linking.
9485link_static_flag=$lt_lt_prog_compiler_static
9486
9487# Compiler flag to turn off builtin functions.
9488no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9489
9490# Compiler flag to allow reflexive dlopens.
9491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9492
9493# Compiler flag to generate shared objects directly from archives.
9494whole_archive_flag_spec=$lt_whole_archive_flag_spec
9495
9496# Compiler flag to generate thread-safe objects.
9497thread_safe_flag_spec=$lt_thread_safe_flag_spec
9498
9499# Library versioning type.
9500version_type=$version_type
9501
9502# Format of library name prefix.
9503libname_spec=$lt_libname_spec
9504
9505# List of archive names.  First name is the real one, the rest are links.
9506# The last name is the one that the linker finds with -lNAME.
9507library_names_spec=$lt_library_names_spec
9508
9509# The coded name of the library, if different from the real name.
9510soname_spec=$lt_soname_spec
9511
9512# Commands used to build and install an old-style archive.
9513RANLIB=$lt_RANLIB
9514old_archive_cmds=$lt_old_archive_cmds
9515old_postinstall_cmds=$lt_old_postinstall_cmds
9516old_postuninstall_cmds=$lt_old_postuninstall_cmds
9517
9518# Create an old-style archive from a shared archive.
9519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9520
9521# Create a temporary old-style archive to link instead of a shared archive.
9522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9523
9524# Commands used to build and install a shared archive.
9525archive_cmds=$lt_archive_cmds
9526archive_expsym_cmds=$lt_archive_expsym_cmds
9527postinstall_cmds=$lt_postinstall_cmds
9528postuninstall_cmds=$lt_postuninstall_cmds
9529
9530# Commands used to build a loadable module (assumed same as above if empty)
9531module_cmds=$lt_module_cmds
9532module_expsym_cmds=$lt_module_expsym_cmds
9533
9534# Commands to strip libraries.
9535old_striplib=$lt_old_striplib
9536striplib=$lt_striplib
9537
9538# Dependencies to place before the objects being linked to create a
9539# shared library.
9540predep_objects=$lt_predep_objects
9541
9542# Dependencies to place after the objects being linked to create a
9543# shared library.
9544postdep_objects=$lt_postdep_objects
9545
9546# Dependencies to place before the objects being linked to create a
9547# shared library.
9548predeps=$lt_predeps
9549
9550# Dependencies to place after the objects being linked to create a
9551# shared library.
9552postdeps=$lt_postdeps
9553
9554# The library search path used internally by the compiler when linking
9555# a shared library.
9556compiler_lib_search_path=$lt_compiler_lib_search_path
9557
9558# Method to check whether dependent libraries are shared objects.
9559deplibs_check_method=$lt_deplibs_check_method
9560
9561# Command to use when deplibs_check_method == file_magic.
9562file_magic_cmd=$lt_file_magic_cmd
9563
9564# Flag that allows shared libraries with undefined symbols to be built.
9565allow_undefined_flag=$lt_allow_undefined_flag
9566
9567# Flag that forces no undefined symbols.
9568no_undefined_flag=$lt_no_undefined_flag
9569
9570# Commands used to finish a libtool library installation in a directory.
9571finish_cmds=$lt_finish_cmds
9572
9573# Same as above, but a single script fragment to be evaled but not shown.
9574finish_eval=$lt_finish_eval
9575
9576# Take the output of nm and produce a listing of raw symbols and C names.
9577global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9578
9579# Transform the output of nm in a proper C declaration
9580global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9581
9582# Transform the output of nm in a C name address pair
9583global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9584
9585# This is the shared library runtime path variable.
9586runpath_var=$runpath_var
9587
9588# This is the shared library path variable.
9589shlibpath_var=$shlibpath_var
9590
9591# Is shlibpath searched before the hard-coded library search path?
9592shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9593
9594# How to hardcode a shared library path into an executable.
9595hardcode_action=$hardcode_action
9596
9597# Whether we should hardcode library paths into libraries.
9598hardcode_into_libs=$hardcode_into_libs
9599
9600# Flag to hardcode \$libdir into a binary during linking.
9601# This must work even if \$libdir does not exist.
9602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9603
9604# If ld is used when linking, flag to hardcode \$libdir into
9605# a binary during linking. This must work even if \$libdir does
9606# not exist.
9607hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9608
9609# Whether we need a single -rpath flag with a separated argument.
9610hardcode_libdir_separator=$lt_hardcode_libdir_separator
9611
9612# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9613# resulting binary.
9614hardcode_direct=$hardcode_direct
9615
9616# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9617# resulting binary.
9618hardcode_minus_L=$hardcode_minus_L
9619
9620# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9621# the resulting binary.
9622hardcode_shlibpath_var=$hardcode_shlibpath_var
9623
9624# Set to yes if building a shared library automatically hardcodes DIR into the library
9625# and all subsequent libraries and executables linked against it.
9626hardcode_automatic=$hardcode_automatic
9627
9628# Variables whose values should be saved in libtool wrapper scripts and
9629# restored at relink time.
9630variables_saved_for_relink="$variables_saved_for_relink"
9631
9632# Whether libtool must link a program against all its dependency libraries.
9633link_all_deplibs=$link_all_deplibs
9634
9635# Compile-time system search path for libraries
9636sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9637
9638# Run-time system search path for libraries
9639sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9640
9641# Fix the shell variable \$srcfile for the compiler.
9642fix_srcfile_path="$fix_srcfile_path"
9643
9644# Set to yes if exported symbols are required.
9645always_export_symbols=$always_export_symbols
9646
9647# The commands to list exported symbols.
9648export_symbols_cmds=$lt_export_symbols_cmds
9649
9650# The commands to extract the exported symbol list from a shared archive.
9651extract_expsyms_cmds=$lt_extract_expsyms_cmds
9652
9653# Symbols that should not be listed in the preloaded symbols.
9654exclude_expsyms=$lt_exclude_expsyms
9655
9656# Symbols that must always be exported.
9657include_expsyms=$lt_include_expsyms
9658
9659# ### END LIBTOOL CONFIG
9660
9661__EOF__
9662
9663
9664  case $host_os in
9665  aix3*)
9666    cat <<\EOF >> "$cfgfile"
9667
9668# AIX sometimes has problems with the GCC collect2 program.  For some
9669# reason, if we set the COLLECT_NAMES environment variable, the problems
9670# vanish in a puff of smoke.
9671if test "X${COLLECT_NAMES+set}" != Xset; then
9672  COLLECT_NAMES=
9673  export COLLECT_NAMES
9674fi
9675EOF
9676    ;;
9677  esac
9678
9679  # We use sed instead of cat because bash on DJGPP gets confused if
9680  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9681  # text mode, it properly converts lines to CR/LF.  This bash problem
9682  # is reportedly fixed, but why not run on old versions too?
9683  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9684
9685  mv -f "$cfgfile" "$ofile" || \
9686    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9687  chmod +x "$ofile"
9688
9689else
9690  # If there is no Makefile yet, we rely on a make rule to execute
9691  # `config.status --recheck' to rerun these tests and create the
9692  # libtool script then.
9693  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9694  if test -f "$ltmain_in"; then
9695    test -f Makefile && make "$ltmain"
9696  fi
9697fi
9698
9699
9700ac_ext=c
9701ac_cpp='$CPP $CPPFLAGS'
9702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9704ac_compiler_gnu=$ac_cv_c_compiler_gnu
9705
9706CC="$lt_save_CC"
9707
9708
9709# Check whether --with-tags or --without-tags was given.
9710if test "${with_tags+set}" = set; then
9711  withval="$with_tags"
9712  tagnames="$withval"
9713fi;
9714
9715if test -f "$ltmain" && test -n "$tagnames"; then
9716  if test ! -f "${ofile}"; then
9717    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9718echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9719  fi
9720
9721  if test -z "$LTCC"; then
9722    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9723    if test -z "$LTCC"; then
9724      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9725echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9726    else
9727      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9728echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9729    fi
9730  fi
9731
9732  # Extract list of available tagged configurations in $ofile.
9733  # Note that this assumes the entire list is on one line.
9734  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9735
9736  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9737  for tagname in $tagnames; do
9738    IFS="$lt_save_ifs"
9739    # Check whether tagname contains only valid characters
9740    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9741    "") ;;
9742    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9743echo "$as_me: error: invalid tag name: $tagname" >&2;}
9744   { (exit 1); exit 1; }; }
9745	;;
9746    esac
9747
9748    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9749    then
9750      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9751echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9752   { (exit 1); exit 1; }; }
9753    fi
9754
9755    # Update the list of available tags.
9756    if test -n "$tagname"; then
9757      echo appending configuration tag \"$tagname\" to $ofile
9758
9759      case $tagname in
9760      CXX)
9761	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9762	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9763	    (test "X$CXX" != "Xg++"))) ; then
9764	  ac_ext=cc
9765ac_cpp='$CXXCPP $CPPFLAGS'
9766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9769
9770
9771
9772
9773archive_cmds_need_lc_CXX=no
9774allow_undefined_flag_CXX=
9775always_export_symbols_CXX=no
9776archive_expsym_cmds_CXX=
9777export_dynamic_flag_spec_CXX=
9778hardcode_direct_CXX=no
9779hardcode_libdir_flag_spec_CXX=
9780hardcode_libdir_flag_spec_ld_CXX=
9781hardcode_libdir_separator_CXX=
9782hardcode_minus_L_CXX=no
9783hardcode_automatic_CXX=no
9784module_cmds_CXX=
9785module_expsym_cmds_CXX=
9786link_all_deplibs_CXX=unknown
9787old_archive_cmds_CXX=$old_archive_cmds
9788no_undefined_flag_CXX=
9789whole_archive_flag_spec_CXX=
9790enable_shared_with_static_runtimes_CXX=no
9791
9792# Dependencies to place before and after the object being linked:
9793predep_objects_CXX=
9794postdep_objects_CXX=
9795predeps_CXX=
9796postdeps_CXX=
9797compiler_lib_search_path_CXX=
9798
9799# Source file extension for C++ test sources.
9800ac_ext=cpp
9801
9802# Object file extension for compiled C++ test sources.
9803objext=o
9804objext_CXX=$objext
9805
9806# Code to be used in simple compile tests
9807lt_simple_compile_test_code="int some_variable = 0;\n"
9808
9809# Code to be used in simple link tests
9810lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9811
9812# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9813
9814# If no C compiler was specified, use CC.
9815LTCC=${LTCC-"$CC"}
9816
9817# Allow CC to be a program name with arguments.
9818compiler=$CC
9819
9820
9821# save warnings/boilerplate of simple test code
9822ac_outfile=conftest.$ac_objext
9823printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9824eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9825_lt_compiler_boilerplate=`cat conftest.err`
9826$rm conftest*
9827
9828ac_outfile=conftest.$ac_objext
9829printf "$lt_simple_link_test_code" >conftest.$ac_ext
9830eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9831_lt_linker_boilerplate=`cat conftest.err`
9832$rm conftest*
9833
9834
9835# Allow CC to be a program name with arguments.
9836lt_save_CC=$CC
9837lt_save_LD=$LD
9838lt_save_GCC=$GCC
9839GCC=$GXX
9840lt_save_with_gnu_ld=$with_gnu_ld
9841lt_save_path_LD=$lt_cv_path_LD
9842if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9843  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9844else
9845  unset lt_cv_prog_gnu_ld
9846fi
9847if test -n "${lt_cv_path_LDCXX+set}"; then
9848  lt_cv_path_LD=$lt_cv_path_LDCXX
9849else
9850  unset lt_cv_path_LD
9851fi
9852test -z "${LDCXX+set}" || LD=$LDCXX
9853CC=${CXX-"c++"}
9854compiler=$CC
9855compiler_CXX=$CC
9856for cc_temp in $compiler""; do
9857  case $cc_temp in
9858    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9859    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9860    \-*) ;;
9861    *) break;;
9862  esac
9863done
9864cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9865
9866
9867# We don't want -fno-exception wen compiling C++ code, so set the
9868# no_builtin_flag separately
9869if test "$GXX" = yes; then
9870  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9871else
9872  lt_prog_compiler_no_builtin_flag_CXX=
9873fi
9874
9875if test "$GXX" = yes; then
9876  # Set up default GNU C++ configuration
9877
9878
9879# Check whether --with-gnu-ld or --without-gnu-ld was given.
9880if test "${with_gnu_ld+set}" = set; then
9881  withval="$with_gnu_ld"
9882  test "$withval" = no || with_gnu_ld=yes
9883else
9884  with_gnu_ld=no
9885fi;
9886ac_prog=ld
9887if test "$GCC" = yes; then
9888  # Check if gcc -print-prog-name=ld gives a path.
9889  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9890echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9891  case $host in
9892  *-*-mingw*)
9893    # gcc leaves a trailing carriage return which upsets mingw
9894    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9895  *)
9896    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9897  esac
9898  case $ac_prog in
9899    # Accept absolute paths.
9900    [\\/]* | ?:[\\/]*)
9901      re_direlt='/[^/][^/]*/\.\./'
9902      # Canonicalize the pathname of ld
9903      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9904      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9905	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9906      done
9907      test -z "$LD" && LD="$ac_prog"
9908      ;;
9909  "")
9910    # If it fails, then pretend we aren't using GCC.
9911    ac_prog=ld
9912    ;;
9913  *)
9914    # If it is relative, then search for the first ld in PATH.
9915    with_gnu_ld=unknown
9916    ;;
9917  esac
9918elif test "$with_gnu_ld" = yes; then
9919  echo "$as_me:$LINENO: checking for GNU ld" >&5
9920echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9921else
9922  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9923echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9924fi
9925if test "${lt_cv_path_LD+set}" = set; then
9926  echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928  if test -z "$LD"; then
9929  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9930  for ac_dir in $PATH; do
9931    IFS="$lt_save_ifs"
9932    test -z "$ac_dir" && ac_dir=.
9933    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9934      lt_cv_path_LD="$ac_dir/$ac_prog"
9935      # Check to see if the program is GNU ld.  I'd rather use --version,
9936      # but apparently some variants of GNU ld only accept -v.
9937      # Break only if it was the GNU/non-GNU ld that we prefer.
9938      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9939      *GNU* | *'with BFD'*)
9940	test "$with_gnu_ld" != no && break
9941	;;
9942      *)
9943	test "$with_gnu_ld" != yes && break
9944	;;
9945      esac
9946    fi
9947  done
9948  IFS="$lt_save_ifs"
9949else
9950  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9951fi
9952fi
9953
9954LD="$lt_cv_path_LD"
9955if test -n "$LD"; then
9956  echo "$as_me:$LINENO: result: $LD" >&5
9957echo "${ECHO_T}$LD" >&6
9958else
9959  echo "$as_me:$LINENO: result: no" >&5
9960echo "${ECHO_T}no" >&6
9961fi
9962test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9963echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9964   { (exit 1); exit 1; }; }
9965echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9966echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9967if test "${lt_cv_prog_gnu_ld+set}" = set; then
9968  echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9971case `$LD -v 2>&1 </dev/null` in
9972*GNU* | *'with BFD'*)
9973  lt_cv_prog_gnu_ld=yes
9974  ;;
9975*)
9976  lt_cv_prog_gnu_ld=no
9977  ;;
9978esac
9979fi
9980echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9981echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9982with_gnu_ld=$lt_cv_prog_gnu_ld
9983
9984
9985
9986  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9987  # archiving commands below assume that GNU ld is being used.
9988  if test "$with_gnu_ld" = yes; then
9989    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9990    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'
9991
9992    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9993    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9994
9995    # If archive_cmds runs LD, not CC, wlarc should be empty
9996    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9997    #     investigate it a little bit more. (MM)
9998    wlarc='${wl}'
9999
10000    # ancient GNU ld didn't support --whole-archive et. al.
10001    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10002	grep 'no-whole-archive' > /dev/null; then
10003      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10004    else
10005      whole_archive_flag_spec_CXX=
10006    fi
10007  else
10008    with_gnu_ld=no
10009    wlarc=
10010
10011    # A generic and very simple default shared library creation
10012    # command for GNU C++ for the case where it uses the native
10013    # linker, instead of GNU ld.  If possible, this setting should
10014    # overridden to take advantage of the native linker features on
10015    # the platform it is being used on.
10016    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10017  fi
10018
10019  # Commands to make compiler produce verbose output that lists
10020  # what "hidden" libraries, object files and flags are used when
10021  # linking a shared library.
10022  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10023
10024else
10025  GXX=no
10026  with_gnu_ld=no
10027  wlarc=
10028fi
10029
10030# PORTME: fill in a description of your system's C++ link characteristics
10031echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10032echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10033ld_shlibs_CXX=yes
10034case $host_os in
10035  aix3*)
10036    # FIXME: insert proper C++ library support
10037    ld_shlibs_CXX=no
10038    ;;
10039  aix4* | aix5*)
10040    if test "$host_cpu" = ia64; then
10041      # On IA64, the linker does run time linking by default, so we don't
10042      # have to do anything special.
10043      aix_use_runtimelinking=no
10044      exp_sym_flag='-Bexport'
10045      no_entry_flag=""
10046    else
10047      aix_use_runtimelinking=no
10048
10049      # Test if we are trying to use run time linking or normal
10050      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10051      # need to do runtime linking.
10052      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10053	for ld_flag in $LDFLAGS; do
10054	  case $ld_flag in
10055	  *-brtl*)
10056	    aix_use_runtimelinking=yes
10057	    break
10058	    ;;
10059	  esac
10060	done
10061      esac
10062
10063      exp_sym_flag='-bexport'
10064      no_entry_flag='-bnoentry'
10065    fi
10066
10067    # When large executables or shared objects are built, AIX ld can
10068    # have problems creating the table of contents.  If linking a library
10069    # or program results in "error TOC overflow" add -mminimal-toc to
10070    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10071    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10072
10073    archive_cmds_CXX=''
10074    hardcode_direct_CXX=yes
10075    hardcode_libdir_separator_CXX=':'
10076    link_all_deplibs_CXX=yes
10077
10078    if test "$GXX" = yes; then
10079      case $host_os in aix4.[012]|aix4.[012].*)
10080      # We only want to do this on AIX 4.2 and lower, the check
10081      # below for broken collect2 doesn't work under 4.3+
10082	collect2name=`${CC} -print-prog-name=collect2`
10083	if test -f "$collect2name" && \
10084	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10085	then
10086	  # We have reworked collect2
10087	  hardcode_direct_CXX=yes
10088	else
10089	  # We have old collect2
10090	  hardcode_direct_CXX=unsupported
10091	  # It fails to find uninstalled libraries when the uninstalled
10092	  # path is not listed in the libpath.  Setting hardcode_minus_L
10093	  # to unsupported forces relinking
10094	  hardcode_minus_L_CXX=yes
10095	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10096	  hardcode_libdir_separator_CXX=
10097	fi
10098      esac
10099      shared_flag='-shared'
10100      if test "$aix_use_runtimelinking" = yes; then
10101	shared_flag="$shared_flag "'${wl}-G'
10102      fi
10103    else
10104      # not using gcc
10105      if test "$host_cpu" = ia64; then
10106	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10107	# chokes on -Wl,-G. The following line is correct:
10108	shared_flag='-G'
10109      else
10110	if test "$aix_use_runtimelinking" = yes; then
10111	  shared_flag='${wl}-G'
10112	else
10113	  shared_flag='${wl}-bM:SRE'
10114	fi
10115      fi
10116    fi
10117
10118    # It seems that -bexpall does not export symbols beginning with
10119    # underscore (_), so it is better to generate a list of symbols to export.
10120    always_export_symbols_CXX=yes
10121    if test "$aix_use_runtimelinking" = yes; then
10122      # Warning - without using the other runtime loading flags (-brtl),
10123      # -berok will link without error, but may produce a broken library.
10124      allow_undefined_flag_CXX='-berok'
10125      # Determine the default libpath from the value encoded in an empty executable.
10126      cat >conftest.$ac_ext <<_ACEOF
10127/* confdefs.h.  */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h.  */
10132
10133int
10134main ()
10135{
10136
10137  ;
10138  return 0;
10139}
10140_ACEOF
10141rm -f conftest.$ac_objext conftest$ac_exeext
10142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143  (eval $ac_link) 2>conftest.er1
10144  ac_status=$?
10145  grep -v '^ *+' conftest.er1 >conftest.err
10146  rm -f conftest.er1
10147  cat conftest.err >&5
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); } &&
10150	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152  (eval $ac_try) 2>&5
10153  ac_status=$?
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); }; } &&
10156	 { ac_try='test -s conftest$ac_exeext'
10157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158  (eval $ac_try) 2>&5
10159  ac_status=$?
10160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); }; }; then
10162
10163aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10164}'`
10165# Check for a 64-bit object if we didn't find anything.
10166if 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; }
10167}'`; fi
10168else
10169  echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174      conftest$ac_exeext conftest.$ac_ext
10175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10176
10177      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10178
10179      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"
10180     else
10181      if test "$host_cpu" = ia64; then
10182	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10183	allow_undefined_flag_CXX="-z nodefs"
10184	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"
10185      else
10186	# Determine the default libpath from the value encoded in an empty executable.
10187	cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h.  */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h.  */
10193
10194int
10195main ()
10196{
10197
10198  ;
10199  return 0;
10200}
10201_ACEOF
10202rm -f conftest.$ac_objext conftest$ac_exeext
10203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204  (eval $ac_link) 2>conftest.er1
10205  ac_status=$?
10206  grep -v '^ *+' conftest.er1 >conftest.err
10207  rm -f conftest.er1
10208  cat conftest.err >&5
10209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210  (exit $ac_status); } &&
10211	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213  (eval $ac_try) 2>&5
10214  ac_status=$?
10215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216  (exit $ac_status); }; } &&
10217	 { ac_try='test -s conftest$ac_exeext'
10218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219  (eval $ac_try) 2>&5
10220  ac_status=$?
10221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); }; }; then
10223
10224aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10225}'`
10226# Check for a 64-bit object if we didn't find anything.
10227if 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; }
10228}'`; fi
10229else
10230  echo "$as_me: failed program was:" >&5
10231sed 's/^/| /' conftest.$ac_ext >&5
10232
10233fi
10234rm -f conftest.err conftest.$ac_objext \
10235      conftest$ac_exeext conftest.$ac_ext
10236if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10237
10238	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10239	# Warning - without using the other run time loading flags,
10240	# -berok will link without error, but may produce a broken library.
10241	no_undefined_flag_CXX=' ${wl}-bernotok'
10242	allow_undefined_flag_CXX=' ${wl}-berok'
10243	# -bexpall does not export symbols beginning with underscore (_)
10244	always_export_symbols_CXX=yes
10245	# Exported symbols can be pulled into shared objects from archives
10246	whole_archive_flag_spec_CXX=' '
10247	archive_cmds_need_lc_CXX=yes
10248	# This is similar to how AIX traditionally builds its shared libraries.
10249	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'
10250      fi
10251    fi
10252    ;;
10253  chorus*)
10254    case $cc_basename in
10255      *)
10256	# FIXME: insert proper C++ library support
10257	ld_shlibs_CXX=no
10258	;;
10259    esac
10260    ;;
10261
10262
10263  cygwin* | mingw* | pw32*)
10264    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10265    # as there is no search path for DLLs.
10266    hardcode_libdir_flag_spec_CXX='-L$libdir'
10267    allow_undefined_flag_CXX=unsupported
10268    always_export_symbols_CXX=no
10269    enable_shared_with_static_runtimes_CXX=yes
10270
10271    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10272      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'
10273      # If the export-symbols file already is a .def file (1st line
10274      # is EXPORTS), use it as is; otherwise, prepend...
10275      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10276	cp $export_symbols $output_objdir/$soname.def;
10277      else
10278	echo EXPORTS > $output_objdir/$soname.def;
10279	cat $export_symbols >> $output_objdir/$soname.def;
10280      fi~
10281      $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'
10282    else
10283      ld_shlibs_CXX=no
10284    fi
10285  ;;
10286      darwin* | rhapsody*)
10287        case $host_os in
10288        rhapsody* | darwin1.[012])
10289         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10290         ;;
10291       *) # Darwin 1.3 on
10292         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10293           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10294         else
10295           case ${MACOSX_DEPLOYMENT_TARGET} in
10296             10.[012])
10297               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10298               ;;
10299             10.*)
10300               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10301               ;;
10302           esac
10303         fi
10304         ;;
10305        esac
10306      archive_cmds_need_lc_CXX=no
10307      hardcode_direct_CXX=no
10308      hardcode_automatic_CXX=yes
10309      hardcode_shlibpath_var_CXX=unsupported
10310      whole_archive_flag_spec_CXX=''
10311      link_all_deplibs_CXX=yes
10312
10313    if test "$GXX" = yes ; then
10314      lt_int_apple_cc_single_mod=no
10315      output_verbose_link_cmd='echo'
10316      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10317       lt_int_apple_cc_single_mod=yes
10318      fi
10319      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10320       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10321      else
10322          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'
10323        fi
10324        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10325        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10326          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10327            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}'
10328          else
10329            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}'
10330          fi
10331            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}'
10332      else
10333      case $cc_basename in
10334        xlc*)
10335         output_verbose_link_cmd='echo'
10336          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'
10337          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10338          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10339          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}'
10340          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}'
10341          ;;
10342       *)
10343         ld_shlibs_CXX=no
10344          ;;
10345      esac
10346      fi
10347        ;;
10348
10349  dgux*)
10350    case $cc_basename in
10351      ec++*)
10352	# FIXME: insert proper C++ library support
10353	ld_shlibs_CXX=no
10354	;;
10355      ghcx*)
10356	# Green Hills C++ Compiler
10357	# FIXME: insert proper C++ library support
10358	ld_shlibs_CXX=no
10359	;;
10360      *)
10361	# FIXME: insert proper C++ library support
10362	ld_shlibs_CXX=no
10363	;;
10364    esac
10365    ;;
10366  freebsd[12]*)
10367    # C++ shared libraries reported to be fairly broken before switch to ELF
10368    ld_shlibs_CXX=no
10369    ;;
10370  freebsd-elf*)
10371    archive_cmds_need_lc_CXX=no
10372    ;;
10373  freebsd* | kfreebsd*-gnu | dragonfly*)
10374    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10375    # conventions
10376    ld_shlibs_CXX=yes
10377    ;;
10378  gnu*)
10379    ;;
10380  hpux9*)
10381    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10382    hardcode_libdir_separator_CXX=:
10383    export_dynamic_flag_spec_CXX='${wl}-E'
10384    hardcode_direct_CXX=yes
10385    hardcode_minus_L_CXX=yes # Not in the search PATH,
10386				# but as the default
10387				# location of the library.
10388
10389    case $cc_basename in
10390    CC*)
10391      # FIXME: insert proper C++ library support
10392      ld_shlibs_CXX=no
10393      ;;
10394    aCC*)
10395      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'
10396      # Commands to make compiler produce verbose output that lists
10397      # what "hidden" libraries, object files and flags are used when
10398      # linking a shared library.
10399      #
10400      # There doesn't appear to be a way to prevent this compiler from
10401      # explicitly linking system object files so we need to strip them
10402      # from the output so that they don't get included in the library
10403      # dependencies.
10404      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'
10405      ;;
10406    *)
10407      if test "$GXX" = yes; then
10408        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'
10409      else
10410        # FIXME: insert proper C++ library support
10411        ld_shlibs_CXX=no
10412      fi
10413      ;;
10414    esac
10415    ;;
10416  hpux10*|hpux11*)
10417    if test $with_gnu_ld = no; then
10418      case $host_cpu in
10419      hppa*64*)
10420	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10421	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10422	hardcode_libdir_separator_CXX=:
10423        ;;
10424      ia64*)
10425	hardcode_libdir_flag_spec_CXX='-L$libdir'
10426        ;;
10427      *)
10428	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10429	hardcode_libdir_separator_CXX=:
10430	export_dynamic_flag_spec_CXX='${wl}-E'
10431        ;;
10432      esac
10433    fi
10434    case $host_cpu in
10435    hppa*64*)
10436      hardcode_direct_CXX=no
10437      hardcode_shlibpath_var_CXX=no
10438      ;;
10439    ia64*)
10440      hardcode_direct_CXX=no
10441      hardcode_shlibpath_var_CXX=no
10442      hardcode_minus_L_CXX=yes # Not in the search PATH,
10443					      # but as the default
10444					      # location of the library.
10445      ;;
10446    *)
10447      hardcode_direct_CXX=yes
10448      hardcode_minus_L_CXX=yes # Not in the search PATH,
10449					      # but as the default
10450					      # location of the library.
10451      ;;
10452    esac
10453
10454    case $cc_basename in
10455      CC*)
10456	# FIXME: insert proper C++ library support
10457	ld_shlibs_CXX=no
10458	;;
10459      aCC*)
10460	case $host_cpu in
10461	hppa*64*|ia64*)
10462	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10463	  ;;
10464	*)
10465	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10466	  ;;
10467	esac
10468	# Commands to make compiler produce verbose output that lists
10469	# what "hidden" libraries, object files and flags are used when
10470	# linking a shared library.
10471	#
10472	# There doesn't appear to be a way to prevent this compiler from
10473	# explicitly linking system object files so we need to strip them
10474	# from the output so that they don't get included in the library
10475	# dependencies.
10476	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'
10477	;;
10478      *)
10479	if test "$GXX" = yes; then
10480	  if test $with_gnu_ld = no; then
10481	    case $host_cpu in
10482	    ia64*|hppa*64*)
10483	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10484	      ;;
10485	    *)
10486	      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'
10487	      ;;
10488	    esac
10489	  fi
10490	else
10491	  # FIXME: insert proper C++ library support
10492	  ld_shlibs_CXX=no
10493	fi
10494	;;
10495    esac
10496    ;;
10497  irix5* | irix6*)
10498    case $cc_basename in
10499      CC*)
10500	# SGI C++
10501	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'
10502
10503	# Archives containing C++ object files must be created using
10504	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10505	# necessary to make sure instantiated templates are included
10506	# in the archive.
10507	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10508	;;
10509      *)
10510	if test "$GXX" = yes; then
10511	  if test "$with_gnu_ld" = no; then
10512	    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'
10513	  else
10514	    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'
10515	  fi
10516	fi
10517	link_all_deplibs_CXX=yes
10518	;;
10519    esac
10520    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10521    hardcode_libdir_separator_CXX=:
10522    ;;
10523  linux*)
10524    case $cc_basename in
10525      KCC*)
10526	# Kuck and Associates, Inc. (KAI) C++ Compiler
10527
10528	# KCC will only create a shared library if the output file
10529	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10530	# to its proper name (with version) after linking.
10531	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'
10532	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'
10533	# Commands to make compiler produce verbose output that lists
10534	# what "hidden" libraries, object files and flags are used when
10535	# linking a shared library.
10536	#
10537	# There doesn't appear to be a way to prevent this compiler from
10538	# explicitly linking system object files so we need to strip them
10539	# from the output so that they don't get included in the library
10540	# dependencies.
10541	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'
10542
10543	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10544	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10545
10546	# Archives containing C++ object files must be created using
10547	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10548	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10549	;;
10550      icpc*)
10551	# Intel C++
10552	with_gnu_ld=yes
10553	# version 8.0 and above of icpc choke on multiply defined symbols
10554	# if we add $predep_objects and $postdep_objects, however 7.1 and
10555	# earlier do not add the objects themselves.
10556	case `$CC -V 2>&1` in
10557	*"Version 7."*)
10558  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559  	  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'
10560	  ;;
10561	*)  # Version 8.0 or newer
10562	  tmp_idyn=
10563	  case $host_cpu in
10564	    ia64*) tmp_idyn=' -i_dynamic';;
10565	  esac
10566  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567	  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'
10568	  ;;
10569	esac
10570	archive_cmds_need_lc_CXX=no
10571	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10572	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10573	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10574	;;
10575      pgCC*)
10576        # Portland Group C++ compiler
10577	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10578  	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'
10579
10580	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10581	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10582	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'
10583        ;;
10584      cxx*)
10585	# Compaq C++
10586	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10587	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'
10588
10589	runpath_var=LD_RUN_PATH
10590	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10591	hardcode_libdir_separator_CXX=:
10592
10593	# Commands to make compiler produce verbose output that lists
10594	# what "hidden" libraries, object files and flags are used when
10595	# linking a shared library.
10596	#
10597	# There doesn't appear to be a way to prevent this compiler from
10598	# explicitly linking system object files so we need to strip them
10599	# from the output so that they don't get included in the library
10600	# dependencies.
10601	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'
10602	;;
10603    esac
10604    ;;
10605  lynxos*)
10606    # FIXME: insert proper C++ library support
10607    ld_shlibs_CXX=no
10608    ;;
10609  m88k*)
10610    # FIXME: insert proper C++ library support
10611    ld_shlibs_CXX=no
10612    ;;
10613  mvs*)
10614    case $cc_basename in
10615      cxx*)
10616	# FIXME: insert proper C++ library support
10617	ld_shlibs_CXX=no
10618	;;
10619      *)
10620	# FIXME: insert proper C++ library support
10621	ld_shlibs_CXX=no
10622	;;
10623    esac
10624    ;;
10625  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10626    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10627      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10628      wlarc=
10629      hardcode_libdir_flag_spec_CXX='-R$libdir'
10630      hardcode_direct_CXX=yes
10631      hardcode_shlibpath_var_CXX=no
10632    fi
10633    # Workaround some broken pre-1.5 toolchains
10634    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10635    ;;
10636  openbsd2*)
10637    # C++ shared libraries are fairly broken
10638    ld_shlibs_CXX=no
10639    ;;
10640  openbsd*)
10641    hardcode_direct_CXX=yes
10642    hardcode_shlibpath_var_CXX=no
10643    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10644    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10645    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10646      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10647      export_dynamic_flag_spec_CXX='${wl}-E'
10648      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10649    fi
10650    output_verbose_link_cmd='echo'
10651    ;;
10652  osf3*)
10653    case $cc_basename in
10654      KCC*)
10655	# Kuck and Associates, Inc. (KAI) C++ Compiler
10656
10657	# KCC will only create a shared library if the output file
10658	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10659	# to its proper name (with version) after linking.
10660	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'
10661
10662	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10663	hardcode_libdir_separator_CXX=:
10664
10665	# Archives containing C++ object files must be created using
10666	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10667	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10668
10669	;;
10670      RCC*)
10671	# Rational C++ 2.4.1
10672	# FIXME: insert proper C++ library support
10673	ld_shlibs_CXX=no
10674	;;
10675      cxx*)
10676	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10677	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'
10678
10679	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10680	hardcode_libdir_separator_CXX=:
10681
10682	# Commands to make compiler produce verbose output that lists
10683	# what "hidden" libraries, object files and flags are used when
10684	# linking a shared library.
10685	#
10686	# There doesn't appear to be a way to prevent this compiler from
10687	# explicitly linking system object files so we need to strip them
10688	# from the output so that they don't get included in the library
10689	# dependencies.
10690	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'
10691	;;
10692      *)
10693	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10694	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10695	  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'
10696
10697	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10698	  hardcode_libdir_separator_CXX=:
10699
10700	  # Commands to make compiler produce verbose output that lists
10701	  # what "hidden" libraries, object files and flags are used when
10702	  # linking a shared library.
10703	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10704
10705	else
10706	  # FIXME: insert proper C++ library support
10707	  ld_shlibs_CXX=no
10708	fi
10709	;;
10710    esac
10711    ;;
10712  osf4* | osf5*)
10713    case $cc_basename in
10714      KCC*)
10715	# Kuck and Associates, Inc. (KAI) C++ Compiler
10716
10717	# KCC will only create a shared library if the output file
10718	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10719	# to its proper name (with version) after linking.
10720	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'
10721
10722	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10723	hardcode_libdir_separator_CXX=:
10724
10725	# Archives containing C++ object files must be created using
10726	# the KAI C++ compiler.
10727	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10728	;;
10729      RCC*)
10730	# Rational C++ 2.4.1
10731	# FIXME: insert proper C++ library support
10732	ld_shlibs_CXX=no
10733	;;
10734      cxx*)
10735	allow_undefined_flag_CXX=' -expect_unresolved \*'
10736	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'
10737	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10738	  echo "-hidden">> $lib.exp~
10739	  $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~
10740	  $rm $lib.exp'
10741
10742	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10743	hardcode_libdir_separator_CXX=:
10744
10745	# Commands to make compiler produce verbose output that lists
10746	# what "hidden" libraries, object files and flags are used when
10747	# linking a shared library.
10748	#
10749	# There doesn't appear to be a way to prevent this compiler from
10750	# explicitly linking system object files so we need to strip them
10751	# from the output so that they don't get included in the library
10752	# dependencies.
10753	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'
10754	;;
10755      *)
10756	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10757	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10758	 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'
10759
10760	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10761	  hardcode_libdir_separator_CXX=:
10762
10763	  # Commands to make compiler produce verbose output that lists
10764	  # what "hidden" libraries, object files and flags are used when
10765	  # linking a shared library.
10766	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10767
10768	else
10769	  # FIXME: insert proper C++ library support
10770	  ld_shlibs_CXX=no
10771	fi
10772	;;
10773    esac
10774    ;;
10775  psos*)
10776    # FIXME: insert proper C++ library support
10777    ld_shlibs_CXX=no
10778    ;;
10779  sco*)
10780    archive_cmds_need_lc_CXX=no
10781    case $cc_basename in
10782      CC*)
10783	# FIXME: insert proper C++ library support
10784	ld_shlibs_CXX=no
10785	;;
10786      *)
10787	# FIXME: insert proper C++ library support
10788	ld_shlibs_CXX=no
10789	;;
10790    esac
10791    ;;
10792  sunos4*)
10793    case $cc_basename in
10794      CC*)
10795	# Sun C++ 4.x
10796	# FIXME: insert proper C++ library support
10797	ld_shlibs_CXX=no
10798	;;
10799      lcc*)
10800	# Lucid
10801	# FIXME: insert proper C++ library support
10802	ld_shlibs_CXX=no
10803	;;
10804      *)
10805	# FIXME: insert proper C++ library support
10806	ld_shlibs_CXX=no
10807	;;
10808    esac
10809    ;;
10810  solaris*)
10811    case $cc_basename in
10812      CC*)
10813	# Sun C++ 4.2, 5.x and Centerline C++
10814        archive_cmds_need_lc_CXX=yes
10815	no_undefined_flag_CXX=' -zdefs'
10816	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10817	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10818	$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'
10819
10820	hardcode_libdir_flag_spec_CXX='-R$libdir'
10821	hardcode_shlibpath_var_CXX=no
10822	case $host_os in
10823	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10824	  *)
10825	    # The C++ compiler is used as linker so we must use $wl
10826	    # flag to pass the commands to the underlying system
10827	    # linker. We must also pass each convience library through
10828	    # to the system linker between allextract/defaultextract.
10829	    # The C++ compiler will combine linker options so we
10830	    # cannot just pass the convience library names through
10831	    # without $wl.
10832	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10833	    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'
10834	    ;;
10835	esac
10836	link_all_deplibs_CXX=yes
10837
10838	output_verbose_link_cmd='echo'
10839
10840	# Archives containing C++ object files must be created using
10841	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10842	# necessary to make sure instantiated templates are included
10843	# in the archive.
10844	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10845	;;
10846      gcx*)
10847	# Green Hills C++ Compiler
10848	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10849
10850	# The C++ compiler must be used to create the archive.
10851	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10852	;;
10853      *)
10854	# GNU C++ compiler with Solaris linker
10855	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10856	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10857	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10858	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10859	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10860		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10861
10862	    # Commands to make compiler produce verbose output that lists
10863	    # what "hidden" libraries, object files and flags are used when
10864	    # linking a shared library.
10865	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10866	  else
10867	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10868	    # platform.
10869	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10870	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10871		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10872
10873	    # Commands to make compiler produce verbose output that lists
10874	    # what "hidden" libraries, object files and flags are used when
10875	    # linking a shared library.
10876	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10877	  fi
10878
10879	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10880	fi
10881	;;
10882    esac
10883    ;;
10884  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10885    archive_cmds_need_lc_CXX=no
10886    ;;
10887  tandem*)
10888    case $cc_basename in
10889      NCC*)
10890	# NonStop-UX NCC 3.20
10891	# FIXME: insert proper C++ library support
10892	ld_shlibs_CXX=no
10893	;;
10894      *)
10895	# FIXME: insert proper C++ library support
10896	ld_shlibs_CXX=no
10897	;;
10898    esac
10899    ;;
10900  vxworks*)
10901    # FIXME: insert proper C++ library support
10902    ld_shlibs_CXX=no
10903    ;;
10904  *)
10905    # FIXME: insert proper C++ library support
10906    ld_shlibs_CXX=no
10907    ;;
10908esac
10909echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10910echo "${ECHO_T}$ld_shlibs_CXX" >&6
10911test "$ld_shlibs_CXX" = no && can_build_shared=no
10912
10913GCC_CXX="$GXX"
10914LD_CXX="$LD"
10915
10916
10917cat > conftest.$ac_ext <<EOF
10918class Foo
10919{
10920public:
10921  Foo (void) { a = 0; }
10922private:
10923  int a;
10924};
10925EOF
10926
10927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928  (eval $ac_compile) 2>&5
10929  ac_status=$?
10930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931  (exit $ac_status); }; then
10932  # Parse the compiler output and extract the necessary
10933  # objects, libraries and library flags.
10934
10935  # Sentinel used to keep track of whether or not we are before
10936  # the conftest object file.
10937  pre_test_object_deps_done=no
10938
10939  # The `*' in the case matches for architectures that use `case' in
10940  # $output_verbose_cmd can trigger glob expansion during the loop
10941  # eval without this substitution.
10942  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10943
10944  for p in `eval $output_verbose_link_cmd`; do
10945    case $p in
10946
10947    -L* | -R* | -l*)
10948       # Some compilers place space between "-{L,R}" and the path.
10949       # Remove the space.
10950       if test $p = "-L" \
10951	  || test $p = "-R"; then
10952	 prev=$p
10953	 continue
10954       else
10955	 prev=
10956       fi
10957
10958       if test "$pre_test_object_deps_done" = no; then
10959	 case $p in
10960	 -L* | -R*)
10961	   # Internal compiler library paths should come after those
10962	   # provided the user.  The postdeps already come after the
10963	   # user supplied libs so there is no need to process them.
10964	   if test -z "$compiler_lib_search_path_CXX"; then
10965	     compiler_lib_search_path_CXX="${prev}${p}"
10966	   else
10967	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10968	   fi
10969	   ;;
10970	 # The "-l" case would never come before the object being
10971	 # linked, so don't bother handling this case.
10972	 esac
10973       else
10974	 if test -z "$postdeps_CXX"; then
10975	   postdeps_CXX="${prev}${p}"
10976	 else
10977	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10978	 fi
10979       fi
10980       ;;
10981
10982    *.$objext)
10983       # This assumes that the test object file only shows up
10984       # once in the compiler output.
10985       if test "$p" = "conftest.$objext"; then
10986	 pre_test_object_deps_done=yes
10987	 continue
10988       fi
10989
10990       if test "$pre_test_object_deps_done" = no; then
10991	 if test -z "$predep_objects_CXX"; then
10992	   predep_objects_CXX="$p"
10993	 else
10994	   predep_objects_CXX="$predep_objects_CXX $p"
10995	 fi
10996       else
10997	 if test -z "$postdep_objects_CXX"; then
10998	   postdep_objects_CXX="$p"
10999	 else
11000	   postdep_objects_CXX="$postdep_objects_CXX $p"
11001	 fi
11002       fi
11003       ;;
11004
11005    *) ;; # Ignore the rest.
11006
11007    esac
11008  done
11009
11010  # Clean up.
11011  rm -f a.out a.exe
11012else
11013  echo "libtool.m4: error: problem compiling CXX test program"
11014fi
11015
11016$rm -f confest.$objext
11017
11018# PORTME: override above test on systems where it is broken
11019case $host_os in
11020solaris*)
11021  case $cc_basename in
11022  CC*)
11023    # Adding this requires a known-good setup of shared libraries for
11024    # Sun compiler versions before 5.6, else PIC objects from an old
11025    # archive will be linked into the output, leading to subtle bugs.
11026    postdeps_CXX='-lCstd -lCrun'
11027    ;;
11028  esac
11029esac
11030
11031
11032case " $postdeps_CXX " in
11033*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11034esac
11035
11036lt_prog_compiler_wl_CXX=
11037lt_prog_compiler_pic_CXX=
11038lt_prog_compiler_static_CXX=
11039
11040echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11041echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11042
11043  # C++ specific cases for pic, static, wl, etc.
11044  if test "$GXX" = yes; then
11045    lt_prog_compiler_wl_CXX='-Wl,'
11046    lt_prog_compiler_static_CXX='-static'
11047
11048    case $host_os in
11049    aix*)
11050      # All AIX code is PIC.
11051      if test "$host_cpu" = ia64; then
11052	# AIX 5 now supports IA64 processor
11053	lt_prog_compiler_static_CXX='-Bstatic'
11054      fi
11055      ;;
11056    amigaos*)
11057      # FIXME: we need at least 68020 code to build shared libraries, but
11058      # adding the `-m68020' flag to GCC prevents building anything better,
11059      # like `-m68040'.
11060      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11061      ;;
11062    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11063      # PIC is the default for these OSes.
11064      ;;
11065    mingw* | os2* | pw32*)
11066      # This hack is so that the source file can tell whether it is being
11067      # built for inclusion in a dll (and should export symbols for example).
11068      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11069      ;;
11070    darwin* | rhapsody*)
11071      # PIC is the default on this platform
11072      # Common symbols not allowed in MH_DYLIB files
11073      lt_prog_compiler_pic_CXX='-fno-common'
11074      ;;
11075    *djgpp*)
11076      # DJGPP does not support shared libraries at all
11077      lt_prog_compiler_pic_CXX=
11078      ;;
11079    sysv4*MP*)
11080      if test -d /usr/nec; then
11081	lt_prog_compiler_pic_CXX=-Kconform_pic
11082      fi
11083      ;;
11084    hpux*)
11085      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11086      # not for PA HP-UX.
11087      case $host_cpu in
11088      hppa*64*|ia64*)
11089	;;
11090      *)
11091	lt_prog_compiler_pic_CXX='-fPIC'
11092	;;
11093      esac
11094      ;;
11095    *)
11096      lt_prog_compiler_pic_CXX='-fPIC'
11097      ;;
11098    esac
11099  else
11100    case $host_os in
11101      aix4* | aix5*)
11102	# All AIX code is PIC.
11103	if test "$host_cpu" = ia64; then
11104	  # AIX 5 now supports IA64 processor
11105	  lt_prog_compiler_static_CXX='-Bstatic'
11106	else
11107	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11108	fi
11109	;;
11110      chorus*)
11111	case $cc_basename in
11112	cxch68*)
11113	  # Green Hills C++ Compiler
11114	  # _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"
11115	  ;;
11116	esac
11117	;;
11118       darwin*)
11119         # PIC is the default on this platform
11120         # Common symbols not allowed in MH_DYLIB files
11121         case $cc_basename in
11122           xlc*)
11123           lt_prog_compiler_pic_CXX='-qnocommon'
11124           lt_prog_compiler_wl_CXX='-Wl,'
11125           ;;
11126         esac
11127       ;;
11128      dgux*)
11129	case $cc_basename in
11130	  ec++*)
11131	    lt_prog_compiler_pic_CXX='-KPIC'
11132	    ;;
11133	  ghcx*)
11134	    # Green Hills C++ Compiler
11135	    lt_prog_compiler_pic_CXX='-pic'
11136	    ;;
11137	  *)
11138	    ;;
11139	esac
11140	;;
11141      freebsd* | kfreebsd*-gnu | dragonfly*)
11142	# FreeBSD uses GNU C++
11143	;;
11144      hpux9* | hpux10* | hpux11*)
11145	case $cc_basename in
11146	  CC*)
11147	    lt_prog_compiler_wl_CXX='-Wl,'
11148	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11149	    if test "$host_cpu" != ia64; then
11150	      lt_prog_compiler_pic_CXX='+Z'
11151	    fi
11152	    ;;
11153	  aCC*)
11154	    lt_prog_compiler_wl_CXX='-Wl,'
11155	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11156	    case $host_cpu in
11157	    hppa*64*|ia64*)
11158	      # +Z the default
11159	      ;;
11160	    *)
11161	      lt_prog_compiler_pic_CXX='+Z'
11162	      ;;
11163	    esac
11164	    ;;
11165	  *)
11166	    ;;
11167	esac
11168	;;
11169      irix5* | irix6* | nonstopux*)
11170	case $cc_basename in
11171	  CC*)
11172	    lt_prog_compiler_wl_CXX='-Wl,'
11173	    lt_prog_compiler_static_CXX='-non_shared'
11174	    # CC pic flag -KPIC is the default.
11175	    ;;
11176	  *)
11177	    ;;
11178	esac
11179	;;
11180      linux*)
11181	case $cc_basename in
11182	  KCC*)
11183	    # KAI C++ Compiler
11184	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11185	    lt_prog_compiler_pic_CXX='-fPIC'
11186	    ;;
11187	  icpc* | ecpc*)
11188	    # Intel C++
11189	    lt_prog_compiler_wl_CXX='-Wl,'
11190	    lt_prog_compiler_pic_CXX='-KPIC'
11191	    lt_prog_compiler_static_CXX='-static'
11192	    ;;
11193	  pgCC*)
11194	    # Portland Group C++ compiler.
11195	    lt_prog_compiler_wl_CXX='-Wl,'
11196	    lt_prog_compiler_pic_CXX='-fpic'
11197	    lt_prog_compiler_static_CXX='-Bstatic'
11198	    ;;
11199	  cxx*)
11200	    # Compaq C++
11201	    # Make sure the PIC flag is empty.  It appears that all Alpha
11202	    # Linux and Compaq Tru64 Unix objects are PIC.
11203	    lt_prog_compiler_pic_CXX=
11204	    lt_prog_compiler_static_CXX='-non_shared'
11205	    ;;
11206	  *)
11207	    ;;
11208	esac
11209	;;
11210      lynxos*)
11211	;;
11212      m88k*)
11213	;;
11214      mvs*)
11215	case $cc_basename in
11216	  cxx*)
11217	    lt_prog_compiler_pic_CXX='-W c,exportall'
11218	    ;;
11219	  *)
11220	    ;;
11221	esac
11222	;;
11223      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11224	;;
11225      osf3* | osf4* | osf5*)
11226	case $cc_basename in
11227	  KCC*)
11228	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11229	    ;;
11230	  RCC*)
11231	    # Rational C++ 2.4.1
11232	    lt_prog_compiler_pic_CXX='-pic'
11233	    ;;
11234	  cxx*)
11235	    # Digital/Compaq C++
11236	    lt_prog_compiler_wl_CXX='-Wl,'
11237	    # Make sure the PIC flag is empty.  It appears that all Alpha
11238	    # Linux and Compaq Tru64 Unix objects are PIC.
11239	    lt_prog_compiler_pic_CXX=
11240	    lt_prog_compiler_static_CXX='-non_shared'
11241	    ;;
11242	  *)
11243	    ;;
11244	esac
11245	;;
11246      psos*)
11247	;;
11248      sco*)
11249	case $cc_basename in
11250	  CC*)
11251	    lt_prog_compiler_pic_CXX='-fPIC'
11252	    ;;
11253	  *)
11254	    ;;
11255	esac
11256	;;
11257      solaris*)
11258	case $cc_basename in
11259	  CC*)
11260	    # Sun C++ 4.2, 5.x and Centerline C++
11261	    lt_prog_compiler_pic_CXX='-KPIC'
11262	    lt_prog_compiler_static_CXX='-Bstatic'
11263	    lt_prog_compiler_wl_CXX='-Qoption ld '
11264	    ;;
11265	  gcx*)
11266	    # Green Hills C++ Compiler
11267	    lt_prog_compiler_pic_CXX='-PIC'
11268	    ;;
11269	  *)
11270	    ;;
11271	esac
11272	;;
11273      sunos4*)
11274	case $cc_basename in
11275	  CC*)
11276	    # Sun C++ 4.x
11277	    lt_prog_compiler_pic_CXX='-pic'
11278	    lt_prog_compiler_static_CXX='-Bstatic'
11279	    ;;
11280	  lcc*)
11281	    # Lucid
11282	    lt_prog_compiler_pic_CXX='-pic'
11283	    ;;
11284	  *)
11285	    ;;
11286	esac
11287	;;
11288      tandem*)
11289	case $cc_basename in
11290	  NCC*)
11291	    # NonStop-UX NCC 3.20
11292	    lt_prog_compiler_pic_CXX='-KPIC'
11293	    ;;
11294	  *)
11295	    ;;
11296	esac
11297	;;
11298      unixware*)
11299	;;
11300      vxworks*)
11301	;;
11302      *)
11303	lt_prog_compiler_can_build_shared_CXX=no
11304	;;
11305    esac
11306  fi
11307
11308echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11309echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11310
11311#
11312# Check to make sure the PIC flag actually works.
11313#
11314if test -n "$lt_prog_compiler_pic_CXX"; then
11315
11316echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11317echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11318if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11319  echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321  lt_prog_compiler_pic_works_CXX=no
11322  ac_outfile=conftest.$ac_objext
11323   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11324   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11325   # Insert the option either (1) after the last *FLAGS variable, or
11326   # (2) before a word containing "conftest.", or (3) at the end.
11327   # Note that $ac_compile itself does not contain backslashes and begins
11328   # with a dollar sign (not a hyphen), so the echo should work correctly.
11329   # The option is referenced via a variable to avoid confusing sed.
11330   lt_compile=`echo "$ac_compile" | $SED \
11331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11333   -e 's:$: $lt_compiler_flag:'`
11334   (eval echo "\"\$as_me:11334: $lt_compile\"" >&5)
11335   (eval "$lt_compile" 2>conftest.err)
11336   ac_status=$?
11337   cat conftest.err >&5
11338   echo "$as_me:11338: \$? = $ac_status" >&5
11339   if (exit $ac_status) && test -s "$ac_outfile"; then
11340     # The compiler can only warn and ignore the option if not recognized
11341     # So say no if there are warnings other than the usual output.
11342     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11343     $SED '/^$/d' conftest.err >conftest.er2
11344     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11345       lt_prog_compiler_pic_works_CXX=yes
11346     fi
11347   fi
11348   $rm conftest*
11349
11350fi
11351echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11352echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11353
11354if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11355    case $lt_prog_compiler_pic_CXX in
11356     "" | " "*) ;;
11357     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11358     esac
11359else
11360    lt_prog_compiler_pic_CXX=
11361     lt_prog_compiler_can_build_shared_CXX=no
11362fi
11363
11364fi
11365case $host_os in
11366  # For platforms which do not support PIC, -DPIC is meaningless:
11367  *djgpp*)
11368    lt_prog_compiler_pic_CXX=
11369    ;;
11370  *)
11371    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11372    ;;
11373esac
11374
11375echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11376echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11377if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11378  echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380  lt_cv_prog_compiler_c_o_CXX=no
11381   $rm -r conftest 2>/dev/null
11382   mkdir conftest
11383   cd conftest
11384   mkdir out
11385   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11386
11387   lt_compiler_flag="-o out/conftest2.$ac_objext"
11388   # Insert the option either (1) after the last *FLAGS variable, or
11389   # (2) before a word containing "conftest.", or (3) at the end.
11390   # Note that $ac_compile itself does not contain backslashes and begins
11391   # with a dollar sign (not a hyphen), so the echo should work correctly.
11392   lt_compile=`echo "$ac_compile" | $SED \
11393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11395   -e 's:$: $lt_compiler_flag:'`
11396   (eval echo "\"\$as_me:11396: $lt_compile\"" >&5)
11397   (eval "$lt_compile" 2>out/conftest.err)
11398   ac_status=$?
11399   cat out/conftest.err >&5
11400   echo "$as_me:11400: \$? = $ac_status" >&5
11401   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11402   then
11403     # The compiler can only warn and ignore the option if not recognized
11404     # So say no if there are warnings
11405     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11406     $SED '/^$/d' out/conftest.err >out/conftest.er2
11407     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11408       lt_cv_prog_compiler_c_o_CXX=yes
11409     fi
11410   fi
11411   chmod u+w . 2>&5
11412   $rm conftest*
11413   # SGI C++ compiler will create directory out/ii_files/ for
11414   # template instantiation
11415   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11416   $rm out/* && rmdir out
11417   cd ..
11418   rmdir conftest
11419   $rm conftest*
11420
11421fi
11422echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11423echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11424
11425
11426hard_links="nottested"
11427if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11428  # do not overwrite the value of need_locks provided by the user
11429  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11430echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11431  hard_links=yes
11432  $rm conftest*
11433  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11434  touch conftest.a
11435  ln conftest.a conftest.b 2>&5 || hard_links=no
11436  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11437  echo "$as_me:$LINENO: result: $hard_links" >&5
11438echo "${ECHO_T}$hard_links" >&6
11439  if test "$hard_links" = no; then
11440    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11441echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11442    need_locks=warn
11443  fi
11444else
11445  need_locks=no
11446fi
11447
11448echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11449echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11450
11451  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11452  case $host_os in
11453  aix4* | aix5*)
11454    # If we're using GNU nm, then we don't want the "-C" option.
11455    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11456    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11457      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'
11458    else
11459      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'
11460    fi
11461    ;;
11462  pw32*)
11463    export_symbols_cmds_CXX="$ltdll_cmds"
11464  ;;
11465  cygwin* | mingw*)
11466    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'
11467  ;;
11468  linux*)
11469    link_all_deplibs_CXX=no
11470  ;;
11471  *)
11472    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11473  ;;
11474  esac
11475
11476echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11477echo "${ECHO_T}$ld_shlibs_CXX" >&6
11478test "$ld_shlibs_CXX" = no && can_build_shared=no
11479
11480variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11481if test "$GCC" = yes; then
11482  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11483fi
11484
11485#
11486# Do we need to explicitly link libc?
11487#
11488case "x$archive_cmds_need_lc_CXX" in
11489x|xyes)
11490  # Assume -lc should be added
11491  archive_cmds_need_lc_CXX=yes
11492
11493  if test "$enable_shared" = yes && test "$GCC" = yes; then
11494    case $archive_cmds_CXX in
11495    *'~'*)
11496      # FIXME: we may have to deal with multi-command sequences.
11497      ;;
11498    '$CC '*)
11499      # Test whether the compiler implicitly links with -lc since on some
11500      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11501      # to ld, don't add -lc before -lgcc.
11502      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11503echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11504      $rm conftest*
11505      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11506
11507      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508  (eval $ac_compile) 2>&5
11509  ac_status=$?
11510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511  (exit $ac_status); } 2>conftest.err; then
11512        soname=conftest
11513        lib=conftest
11514        libobjs=conftest.$ac_objext
11515        deplibs=
11516        wl=$lt_prog_compiler_wl_CXX
11517        compiler_flags=-v
11518        linker_flags=-v
11519        verstring=
11520        output_objdir=.
11521        libname=conftest
11522        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11523        allow_undefined_flag_CXX=
11524        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11525  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11526  ac_status=$?
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); }
11529        then
11530	  archive_cmds_need_lc_CXX=no
11531        else
11532	  archive_cmds_need_lc_CXX=yes
11533        fi
11534        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11535      else
11536        cat conftest.err 1>&5
11537      fi
11538      $rm conftest*
11539      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11540echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11541      ;;
11542    esac
11543  fi
11544  ;;
11545esac
11546
11547echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11548echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11549library_names_spec=
11550libname_spec='lib$name'
11551soname_spec=
11552shrext_cmds=".so"
11553postinstall_cmds=
11554postuninstall_cmds=
11555finish_cmds=
11556finish_eval=
11557shlibpath_var=
11558shlibpath_overrides_runpath=unknown
11559version_type=none
11560dynamic_linker="$host_os ld.so"
11561sys_lib_dlsearch_path_spec="/lib /usr/lib"
11562if test "$GCC" = yes; then
11563  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11564  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11565    # if the path contains ";" then we assume it to be the separator
11566    # otherwise default to the standard path separator (i.e. ":") - it is
11567    # assumed that no part of a normal pathname contains ";" but that should
11568    # okay in the real world where ";" in dirpaths is itself problematic.
11569    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11570  else
11571    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11572  fi
11573else
11574  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11575fi
11576need_lib_prefix=unknown
11577hardcode_into_libs=no
11578
11579# when you set need_version to no, make sure it does not cause -set_version
11580# flags to be left without arguments
11581need_version=unknown
11582
11583case $host_os in
11584aix3*)
11585  version_type=linux
11586  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11587  shlibpath_var=LIBPATH
11588
11589  # AIX 3 has no versioning support, so we append a major version to the name.
11590  soname_spec='${libname}${release}${shared_ext}$major'
11591  ;;
11592
11593aix4* | aix5*)
11594  version_type=linux
11595  need_lib_prefix=no
11596  need_version=no
11597  hardcode_into_libs=yes
11598  if test "$host_cpu" = ia64; then
11599    # AIX 5 supports IA64
11600    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11601    shlibpath_var=LD_LIBRARY_PATH
11602  else
11603    # With GCC up to 2.95.x, collect2 would create an import file
11604    # for dependence libraries.  The import file would start with
11605    # the line `#! .'.  This would cause the generated library to
11606    # depend on `.', always an invalid library.  This was fixed in
11607    # development snapshots of GCC prior to 3.0.
11608    case $host_os in
11609      aix4 | aix4.[01] | aix4.[01].*)
11610      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11611	   echo ' yes '
11612	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11613	:
11614      else
11615	can_build_shared=no
11616      fi
11617      ;;
11618    esac
11619    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11620    # soname into executable. Probably we can add versioning support to
11621    # collect2, so additional links can be useful in future.
11622    if test "$aix_use_runtimelinking" = yes; then
11623      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11624      # instead of lib<name>.a to let people know that these are not
11625      # typical AIX shared libraries.
11626      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11627    else
11628      # We preserve .a as extension for shared libraries through AIX4.2
11629      # and later when we are not doing run time linking.
11630      library_names_spec='${libname}${release}.a $libname.a'
11631      soname_spec='${libname}${release}${shared_ext}$major'
11632    fi
11633    shlibpath_var=LIBPATH
11634  fi
11635  ;;
11636
11637amigaos*)
11638  library_names_spec='$libname.ixlibrary $libname.a'
11639  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11640  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'
11641  ;;
11642
11643beos*)
11644  library_names_spec='${libname}${shared_ext}'
11645  dynamic_linker="$host_os ld.so"
11646  shlibpath_var=LIBRARY_PATH
11647  ;;
11648
11649bsdi[45]*)
11650  version_type=linux
11651  need_version=no
11652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653  soname_spec='${libname}${release}${shared_ext}$major'
11654  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11655  shlibpath_var=LD_LIBRARY_PATH
11656  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11657  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11658  # the default ld.so.conf also contains /usr/contrib/lib and
11659  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11660  # libtool to hard-code these into programs
11661  ;;
11662
11663cygwin* | mingw* | pw32*)
11664  version_type=windows
11665  shrext_cmds=".dll"
11666  need_version=no
11667  need_lib_prefix=no
11668
11669  case $GCC,$host_os in
11670  yes,cygwin* | yes,mingw* | yes,pw32*)
11671    library_names_spec='$libname.dll.a'
11672    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11673    postinstall_cmds='base_file=`basename \${file}`~
11674      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11675      dldir=$destdir/`dirname \$dlpath`~
11676      test -d \$dldir || mkdir -p \$dldir~
11677      $install_prog $dir/$dlname \$dldir/$dlname~
11678      chmod a+x \$dldir/$dlname'
11679    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11680      dlpath=$dir/\$dldll~
11681       $rm \$dlpath'
11682    shlibpath_overrides_runpath=yes
11683
11684    case $host_os in
11685    cygwin*)
11686      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11687      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11688      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11689      ;;
11690    mingw*)
11691      # MinGW DLLs use traditional 'lib' prefix
11692      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11693      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11694      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11695        # It is most probably a Windows format PATH printed by
11696        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11697        # path with ; separators, and with drive letters. We can handle the
11698        # drive letters (cygwin fileutils understands them), so leave them,
11699        # especially as we might pass files found there to a mingw objdump,
11700        # which wouldn't understand a cygwinified path. Ahh.
11701        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11702      else
11703        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11704      fi
11705      ;;
11706    pw32*)
11707      # pw32 DLLs use 'pw' prefix rather than 'lib'
11708      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11709      ;;
11710    esac
11711    ;;
11712
11713  *)
11714    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11715    ;;
11716  esac
11717  dynamic_linker='Win32 ld.exe'
11718  # FIXME: first we should search . and the directory the executable is in
11719  shlibpath_var=PATH
11720  ;;
11721
11722darwin* | rhapsody*)
11723  dynamic_linker="$host_os dyld"
11724  version_type=darwin
11725  need_lib_prefix=no
11726  need_version=no
11727  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11728  soname_spec='${libname}${release}${major}$shared_ext'
11729  shlibpath_overrides_runpath=yes
11730  shlibpath_var=DYLD_LIBRARY_PATH
11731  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11732  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11733  if test "$GCC" = yes; then
11734    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"`
11735  else
11736    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11737  fi
11738  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11739  ;;
11740
11741dgux*)
11742  version_type=linux
11743  need_lib_prefix=no
11744  need_version=no
11745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11746  soname_spec='${libname}${release}${shared_ext}$major'
11747  shlibpath_var=LD_LIBRARY_PATH
11748  ;;
11749
11750freebsd1*)
11751  dynamic_linker=no
11752  ;;
11753
11754kfreebsd*-gnu)
11755  version_type=linux
11756  need_lib_prefix=no
11757  need_version=no
11758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11759  soname_spec='${libname}${release}${shared_ext}$major'
11760  shlibpath_var=LD_LIBRARY_PATH
11761  shlibpath_overrides_runpath=no
11762  hardcode_into_libs=yes
11763  dynamic_linker='GNU ld.so'
11764  ;;
11765
11766freebsd* | dragonfly*)
11767  # DragonFly does not have aout.  When/if they implement a new
11768  # versioning mechanism, adjust this.
11769  if test -x /usr/bin/objformat; then
11770    objformat=`/usr/bin/objformat`
11771  else
11772    case $host_os in
11773    freebsd[123]*) objformat=aout ;;
11774    *) objformat=elf ;;
11775    esac
11776  fi
11777  version_type=freebsd-$objformat
11778  case $version_type in
11779    freebsd-elf*)
11780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11781      need_version=no
11782      need_lib_prefix=no
11783      ;;
11784    freebsd-*)
11785      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11786      need_version=yes
11787      ;;
11788  esac
11789  shlibpath_var=LD_LIBRARY_PATH
11790  case $host_os in
11791  freebsd2*)
11792    shlibpath_overrides_runpath=yes
11793    ;;
11794  freebsd3.[01]* | freebsdelf3.[01]*)
11795    shlibpath_overrides_runpath=yes
11796    hardcode_into_libs=yes
11797    ;;
11798  *) # from 3.2 on
11799    shlibpath_overrides_runpath=no
11800    hardcode_into_libs=yes
11801    ;;
11802  esac
11803  ;;
11804
11805gnu*)
11806  version_type=linux
11807  need_lib_prefix=no
11808  need_version=no
11809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11810  soname_spec='${libname}${release}${shared_ext}$major'
11811  shlibpath_var=LD_LIBRARY_PATH
11812  hardcode_into_libs=yes
11813  ;;
11814
11815hpux9* | hpux10* | hpux11*)
11816  # Give a soname corresponding to the major version so that dld.sl refuses to
11817  # link against other versions.
11818  version_type=sunos
11819  need_lib_prefix=no
11820  need_version=no
11821  case $host_cpu in
11822  ia64*)
11823    shrext_cmds='.so'
11824    hardcode_into_libs=yes
11825    dynamic_linker="$host_os dld.so"
11826    shlibpath_var=LD_LIBRARY_PATH
11827    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829    soname_spec='${libname}${release}${shared_ext}$major'
11830    if test "X$HPUX_IA64_MODE" = X32; then
11831      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11832    else
11833      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11834    fi
11835    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11836    ;;
11837   hppa*64*)
11838     shrext_cmds='.sl'
11839     hardcode_into_libs=yes
11840     dynamic_linker="$host_os dld.sl"
11841     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11842     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844     soname_spec='${libname}${release}${shared_ext}$major'
11845     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11846     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11847     ;;
11848   *)
11849    shrext_cmds='.sl'
11850    dynamic_linker="$host_os dld.sl"
11851    shlibpath_var=SHLIB_PATH
11852    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11853    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854    soname_spec='${libname}${release}${shared_ext}$major'
11855    ;;
11856  esac
11857  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11858  postinstall_cmds='chmod 555 $lib'
11859  ;;
11860
11861irix5* | irix6* | nonstopux*)
11862  case $host_os in
11863    nonstopux*) version_type=nonstopux ;;
11864    *)
11865	if test "$lt_cv_prog_gnu_ld" = yes; then
11866		version_type=linux
11867	else
11868		version_type=irix
11869	fi ;;
11870  esac
11871  need_lib_prefix=no
11872  need_version=no
11873  soname_spec='${libname}${release}${shared_ext}$major'
11874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11875  case $host_os in
11876  irix5* | nonstopux*)
11877    libsuff= shlibsuff=
11878    ;;
11879  *)
11880    case $LD in # libtool.m4 will add one of these switches to LD
11881    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11882      libsuff= shlibsuff= libmagic=32-bit;;
11883    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11884      libsuff=32 shlibsuff=N32 libmagic=N32;;
11885    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11886      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11887    *) libsuff= shlibsuff= libmagic=never-match;;
11888    esac
11889    ;;
11890  esac
11891  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11892  shlibpath_overrides_runpath=no
11893  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11894  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11895  hardcode_into_libs=yes
11896  ;;
11897
11898# No shared lib support for Linux oldld, aout, or coff.
11899linux*oldld* | linux*aout* | linux*coff*)
11900  dynamic_linker=no
11901  ;;
11902
11903# This must be Linux ELF.
11904linux*)
11905  version_type=linux
11906  need_lib_prefix=no
11907  need_version=no
11908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909  soname_spec='${libname}${release}${shared_ext}$major'
11910  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11911  shlibpath_var=LD_LIBRARY_PATH
11912  shlibpath_overrides_runpath=no
11913  # This implies no fast_install, which is unacceptable.
11914  # Some rework will be needed to allow for fast_install
11915  # before this can be enabled.
11916  hardcode_into_libs=yes
11917
11918  # Append ld.so.conf contents to the search path
11919  if test -f /etc/ld.so.conf; then
11920    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' ' '`
11921    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11922  fi
11923
11924  # We used to test for /lib/ld.so.1 and disable shared libraries on
11925  # powerpc, because MkLinux only supported shared libraries with the
11926  # GNU dynamic linker.  Since this was broken with cross compilers,
11927  # most powerpc-linux boxes support dynamic linking these days and
11928  # people can always --disable-shared, the test was removed, and we
11929  # assume the GNU/Linux dynamic linker is in use.
11930  dynamic_linker='GNU/Linux ld.so'
11931  ;;
11932
11933netbsdelf*-gnu)
11934  version_type=linux
11935  need_lib_prefix=no
11936  need_version=no
11937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11938  soname_spec='${libname}${release}${shared_ext}$major'
11939  shlibpath_var=LD_LIBRARY_PATH
11940  shlibpath_overrides_runpath=no
11941  hardcode_into_libs=yes
11942  dynamic_linker='NetBSD ld.elf_so'
11943  ;;
11944
11945knetbsd*-gnu)
11946  version_type=linux
11947  need_lib_prefix=no
11948  need_version=no
11949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11950  soname_spec='${libname}${release}${shared_ext}$major'
11951  shlibpath_var=LD_LIBRARY_PATH
11952  shlibpath_overrides_runpath=no
11953  hardcode_into_libs=yes
11954  dynamic_linker='GNU ld.so'
11955  ;;
11956
11957netbsd*)
11958  version_type=sunos
11959  need_lib_prefix=no
11960  need_version=no
11961  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11962    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11964    dynamic_linker='NetBSD (a.out) ld.so'
11965  else
11966    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11967    soname_spec='${libname}${release}${shared_ext}$major'
11968    dynamic_linker='NetBSD ld.elf_so'
11969  fi
11970  shlibpath_var=LD_LIBRARY_PATH
11971  shlibpath_overrides_runpath=yes
11972  hardcode_into_libs=yes
11973  ;;
11974
11975newsos6)
11976  version_type=linux
11977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11978  shlibpath_var=LD_LIBRARY_PATH
11979  shlibpath_overrides_runpath=yes
11980  ;;
11981
11982nto-qnx*)
11983  version_type=linux
11984  need_lib_prefix=no
11985  need_version=no
11986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987  soname_spec='${libname}${release}${shared_ext}$major'
11988  shlibpath_var=LD_LIBRARY_PATH
11989  shlibpath_overrides_runpath=yes
11990  ;;
11991
11992openbsd*)
11993  version_type=sunos
11994  need_lib_prefix=no
11995  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11996  case $host_os in
11997    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11998    *)                         need_version=no  ;;
11999  esac
12000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12001  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12002  shlibpath_var=LD_LIBRARY_PATH
12003  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12004    case $host_os in
12005      openbsd2.[89] | openbsd2.[89].*)
12006	shlibpath_overrides_runpath=no
12007	;;
12008      *)
12009	shlibpath_overrides_runpath=yes
12010	;;
12011      esac
12012  else
12013    shlibpath_overrides_runpath=yes
12014  fi
12015  ;;
12016
12017os2*)
12018  libname_spec='$name'
12019  shrext_cmds=".dll"
12020  need_lib_prefix=no
12021  library_names_spec='$libname${shared_ext} $libname.a'
12022  dynamic_linker='OS/2 ld.exe'
12023  shlibpath_var=LIBPATH
12024  ;;
12025
12026osf3* | osf4* | osf5*)
12027  version_type=osf
12028  need_lib_prefix=no
12029  need_version=no
12030  soname_spec='${libname}${release}${shared_ext}$major'
12031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12032  shlibpath_var=LD_LIBRARY_PATH
12033  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12034  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12035  ;;
12036
12037sco3.2v5*)
12038  version_type=osf
12039  soname_spec='${libname}${release}${shared_ext}$major'
12040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041  shlibpath_var=LD_LIBRARY_PATH
12042  ;;
12043
12044solaris*)
12045  version_type=linux
12046  need_lib_prefix=no
12047  need_version=no
12048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12049  soname_spec='${libname}${release}${shared_ext}$major'
12050  shlibpath_var=LD_LIBRARY_PATH
12051  shlibpath_overrides_runpath=yes
12052  hardcode_into_libs=yes
12053  # ldd complains unless libraries are executable
12054  postinstall_cmds='chmod +x $lib'
12055  ;;
12056
12057sunos4*)
12058  version_type=sunos
12059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12060  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12061  shlibpath_var=LD_LIBRARY_PATH
12062  shlibpath_overrides_runpath=yes
12063  if test "$with_gnu_ld" = yes; then
12064    need_lib_prefix=no
12065  fi
12066  need_version=yes
12067  ;;
12068
12069sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12070  version_type=linux
12071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072  soname_spec='${libname}${release}${shared_ext}$major'
12073  shlibpath_var=LD_LIBRARY_PATH
12074  case $host_vendor in
12075    sni)
12076      shlibpath_overrides_runpath=no
12077      need_lib_prefix=no
12078      export_dynamic_flag_spec='${wl}-Blargedynsym'
12079      runpath_var=LD_RUN_PATH
12080      ;;
12081    siemens)
12082      need_lib_prefix=no
12083      ;;
12084    motorola)
12085      need_lib_prefix=no
12086      need_version=no
12087      shlibpath_overrides_runpath=no
12088      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12089      ;;
12090  esac
12091  ;;
12092
12093sysv4*MP*)
12094  if test -d /usr/nec ;then
12095    version_type=linux
12096    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12097    soname_spec='$libname${shared_ext}.$major'
12098    shlibpath_var=LD_LIBRARY_PATH
12099  fi
12100  ;;
12101
12102uts4*)
12103  version_type=linux
12104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105  soname_spec='${libname}${release}${shared_ext}$major'
12106  shlibpath_var=LD_LIBRARY_PATH
12107  ;;
12108
12109*)
12110  dynamic_linker=no
12111  ;;
12112esac
12113echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12114echo "${ECHO_T}$dynamic_linker" >&6
12115test "$dynamic_linker" = no && can_build_shared=no
12116
12117echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12118echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12119hardcode_action_CXX=
12120if test -n "$hardcode_libdir_flag_spec_CXX" || \
12121   test -n "$runpath_var_CXX" || \
12122   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12123
12124  # We can hardcode non-existant directories.
12125  if test "$hardcode_direct_CXX" != no &&
12126     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12127     # have to relink, otherwise we might link with an installed library
12128     # when we should be linking with a yet-to-be-installed one
12129     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12130     test "$hardcode_minus_L_CXX" != no; then
12131    # Linking always hardcodes the temporary library directory.
12132    hardcode_action_CXX=relink
12133  else
12134    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12135    hardcode_action_CXX=immediate
12136  fi
12137else
12138  # We cannot hardcode anything, or else we can only hardcode existing
12139  # directories.
12140  hardcode_action_CXX=unsupported
12141fi
12142echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12143echo "${ECHO_T}$hardcode_action_CXX" >&6
12144
12145if test "$hardcode_action_CXX" = relink; then
12146  # Fast installation is not supported
12147  enable_fast_install=no
12148elif test "$shlibpath_overrides_runpath" = yes ||
12149     test "$enable_shared" = no; then
12150  # Fast installation is not necessary
12151  enable_fast_install=needless
12152fi
12153
12154striplib=
12155old_striplib=
12156echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12157echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12158if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12159  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12160  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12161  echo "$as_me:$LINENO: result: yes" >&5
12162echo "${ECHO_T}yes" >&6
12163else
12164# FIXME - insert some real tests, host_os isn't really good enough
12165  case $host_os in
12166   darwin*)
12167       if test -n "$STRIP" ; then
12168         striplib="$STRIP -x"
12169         echo "$as_me:$LINENO: result: yes" >&5
12170echo "${ECHO_T}yes" >&6
12171       else
12172  echo "$as_me:$LINENO: result: no" >&5
12173echo "${ECHO_T}no" >&6
12174fi
12175       ;;
12176   *)
12177  echo "$as_me:$LINENO: result: no" >&5
12178echo "${ECHO_T}no" >&6
12179    ;;
12180  esac
12181fi
12182
12183if test "x$enable_dlopen" != xyes; then
12184  enable_dlopen=unknown
12185  enable_dlopen_self=unknown
12186  enable_dlopen_self_static=unknown
12187else
12188  lt_cv_dlopen=no
12189  lt_cv_dlopen_libs=
12190
12191  case $host_os in
12192  beos*)
12193    lt_cv_dlopen="load_add_on"
12194    lt_cv_dlopen_libs=
12195    lt_cv_dlopen_self=yes
12196    ;;
12197
12198  mingw* | pw32*)
12199    lt_cv_dlopen="LoadLibrary"
12200    lt_cv_dlopen_libs=
12201   ;;
12202
12203  cygwin*)
12204    lt_cv_dlopen="dlopen"
12205    lt_cv_dlopen_libs=
12206   ;;
12207
12208  darwin*)
12209  # if libdl is installed we need to link against it
12210    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12211echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12212if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12213  echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215  ac_check_lib_save_LIBS=$LIBS
12216LIBS="-ldl  $LIBS"
12217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h.  */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h.  */
12223
12224/* Override any gcc2 internal prototype to avoid an error.  */
12225#ifdef __cplusplus
12226extern "C"
12227#endif
12228/* We use char because int might match the return type of a gcc2
12229   builtin and then its argument prototype would still apply.  */
12230char dlopen ();
12231int
12232main ()
12233{
12234dlopen ();
12235  ;
12236  return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext conftest$ac_exeext
12240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12241  (eval $ac_link) 2>conftest.er1
12242  ac_status=$?
12243  grep -v '^ *+' conftest.er1 >conftest.err
12244  rm -f conftest.er1
12245  cat conftest.err >&5
12246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247  (exit $ac_status); } &&
12248	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250  (eval $ac_try) 2>&5
12251  ac_status=$?
12252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253  (exit $ac_status); }; } &&
12254	 { ac_try='test -s conftest$ac_exeext'
12255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256  (eval $ac_try) 2>&5
12257  ac_status=$?
12258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259  (exit $ac_status); }; }; then
12260  ac_cv_lib_dl_dlopen=yes
12261else
12262  echo "$as_me: failed program was:" >&5
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
12265ac_cv_lib_dl_dlopen=no
12266fi
12267rm -f conftest.err conftest.$ac_objext \
12268      conftest$ac_exeext conftest.$ac_ext
12269LIBS=$ac_check_lib_save_LIBS
12270fi
12271echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12272echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12273if test $ac_cv_lib_dl_dlopen = yes; then
12274  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12275else
12276
12277    lt_cv_dlopen="dyld"
12278    lt_cv_dlopen_libs=
12279    lt_cv_dlopen_self=yes
12280
12281fi
12282
12283   ;;
12284
12285  *)
12286    echo "$as_me:$LINENO: checking for shl_load" >&5
12287echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12288if test "${ac_cv_func_shl_load+set}" = set; then
12289  echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291  cat >conftest.$ac_ext <<_ACEOF
12292/* confdefs.h.  */
12293_ACEOF
12294cat confdefs.h >>conftest.$ac_ext
12295cat >>conftest.$ac_ext <<_ACEOF
12296/* end confdefs.h.  */
12297/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12298   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12299#define shl_load innocuous_shl_load
12300
12301/* System header to define __stub macros and hopefully few prototypes,
12302    which can conflict with char shl_load (); below.
12303    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12304    <limits.h> exists even on freestanding compilers.  */
12305
12306#ifdef __STDC__
12307# include <limits.h>
12308#else
12309# include <assert.h>
12310#endif
12311
12312#undef shl_load
12313
12314/* Override any gcc2 internal prototype to avoid an error.  */
12315#ifdef __cplusplus
12316extern "C"
12317{
12318#endif
12319/* We use char because int might match the return type of a gcc2
12320   builtin and then its argument prototype would still apply.  */
12321char shl_load ();
12322/* The GNU C library defines this for functions which it implements
12323    to always fail with ENOSYS.  Some functions are actually named
12324    something starting with __ and the normal name is an alias.  */
12325#if defined (__stub_shl_load) || defined (__stub___shl_load)
12326choke me
12327#else
12328char (*f) () = shl_load;
12329#endif
12330#ifdef __cplusplus
12331}
12332#endif
12333
12334int
12335main ()
12336{
12337return f != shl_load;
12338  ;
12339  return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext conftest$ac_exeext
12343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344  (eval $ac_link) 2>conftest.er1
12345  ac_status=$?
12346  grep -v '^ *+' conftest.er1 >conftest.err
12347  rm -f conftest.er1
12348  cat conftest.err >&5
12349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350  (exit $ac_status); } &&
12351	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353  (eval $ac_try) 2>&5
12354  ac_status=$?
12355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356  (exit $ac_status); }; } &&
12357	 { ac_try='test -s conftest$ac_exeext'
12358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359  (eval $ac_try) 2>&5
12360  ac_status=$?
12361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362  (exit $ac_status); }; }; then
12363  ac_cv_func_shl_load=yes
12364else
12365  echo "$as_me: failed program was:" >&5
12366sed 's/^/| /' conftest.$ac_ext >&5
12367
12368ac_cv_func_shl_load=no
12369fi
12370rm -f conftest.err conftest.$ac_objext \
12371      conftest$ac_exeext conftest.$ac_ext
12372fi
12373echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12374echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12375if test $ac_cv_func_shl_load = yes; then
12376  lt_cv_dlopen="shl_load"
12377else
12378  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12379echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12380if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12381  echo $ECHO_N "(cached) $ECHO_C" >&6
12382else
12383  ac_check_lib_save_LIBS=$LIBS
12384LIBS="-ldld  $LIBS"
12385cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h.  */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h.  */
12391
12392/* Override any gcc2 internal prototype to avoid an error.  */
12393#ifdef __cplusplus
12394extern "C"
12395#endif
12396/* We use char because int might match the return type of a gcc2
12397   builtin and then its argument prototype would still apply.  */
12398char shl_load ();
12399int
12400main ()
12401{
12402shl_load ();
12403  ;
12404  return 0;
12405}
12406_ACEOF
12407rm -f conftest.$ac_objext conftest$ac_exeext
12408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12409  (eval $ac_link) 2>conftest.er1
12410  ac_status=$?
12411  grep -v '^ *+' conftest.er1 >conftest.err
12412  rm -f conftest.er1
12413  cat conftest.err >&5
12414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415  (exit $ac_status); } &&
12416	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418  (eval $ac_try) 2>&5
12419  ac_status=$?
12420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421  (exit $ac_status); }; } &&
12422	 { ac_try='test -s conftest$ac_exeext'
12423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424  (eval $ac_try) 2>&5
12425  ac_status=$?
12426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427  (exit $ac_status); }; }; then
12428  ac_cv_lib_dld_shl_load=yes
12429else
12430  echo "$as_me: failed program was:" >&5
12431sed 's/^/| /' conftest.$ac_ext >&5
12432
12433ac_cv_lib_dld_shl_load=no
12434fi
12435rm -f conftest.err conftest.$ac_objext \
12436      conftest$ac_exeext conftest.$ac_ext
12437LIBS=$ac_check_lib_save_LIBS
12438fi
12439echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12440echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12441if test $ac_cv_lib_dld_shl_load = yes; then
12442  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12443else
12444  echo "$as_me:$LINENO: checking for dlopen" >&5
12445echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12446if test "${ac_cv_func_dlopen+set}" = set; then
12447  echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449  cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h.  */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h.  */
12455/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12456   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12457#define dlopen innocuous_dlopen
12458
12459/* System header to define __stub macros and hopefully few prototypes,
12460    which can conflict with char dlopen (); below.
12461    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12462    <limits.h> exists even on freestanding compilers.  */
12463
12464#ifdef __STDC__
12465# include <limits.h>
12466#else
12467# include <assert.h>
12468#endif
12469
12470#undef dlopen
12471
12472/* Override any gcc2 internal prototype to avoid an error.  */
12473#ifdef __cplusplus
12474extern "C"
12475{
12476#endif
12477/* We use char because int might match the return type of a gcc2
12478   builtin and then its argument prototype would still apply.  */
12479char dlopen ();
12480/* The GNU C library defines this for functions which it implements
12481    to always fail with ENOSYS.  Some functions are actually named
12482    something starting with __ and the normal name is an alias.  */
12483#if defined (__stub_dlopen) || defined (__stub___dlopen)
12484choke me
12485#else
12486char (*f) () = dlopen;
12487#endif
12488#ifdef __cplusplus
12489}
12490#endif
12491
12492int
12493main ()
12494{
12495return f != dlopen;
12496  ;
12497  return 0;
12498}
12499_ACEOF
12500rm -f conftest.$ac_objext conftest$ac_exeext
12501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502  (eval $ac_link) 2>conftest.er1
12503  ac_status=$?
12504  grep -v '^ *+' conftest.er1 >conftest.err
12505  rm -f conftest.er1
12506  cat conftest.err >&5
12507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508  (exit $ac_status); } &&
12509	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511  (eval $ac_try) 2>&5
12512  ac_status=$?
12513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514  (exit $ac_status); }; } &&
12515	 { ac_try='test -s conftest$ac_exeext'
12516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517  (eval $ac_try) 2>&5
12518  ac_status=$?
12519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520  (exit $ac_status); }; }; then
12521  ac_cv_func_dlopen=yes
12522else
12523  echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526ac_cv_func_dlopen=no
12527fi
12528rm -f conftest.err conftest.$ac_objext \
12529      conftest$ac_exeext conftest.$ac_ext
12530fi
12531echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12532echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12533if test $ac_cv_func_dlopen = yes; then
12534  lt_cv_dlopen="dlopen"
12535else
12536  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12537echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12538if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12539  echo $ECHO_N "(cached) $ECHO_C" >&6
12540else
12541  ac_check_lib_save_LIBS=$LIBS
12542LIBS="-ldl  $LIBS"
12543cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h.  */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h.  */
12549
12550/* Override any gcc2 internal prototype to avoid an error.  */
12551#ifdef __cplusplus
12552extern "C"
12553#endif
12554/* We use char because int might match the return type of a gcc2
12555   builtin and then its argument prototype would still apply.  */
12556char dlopen ();
12557int
12558main ()
12559{
12560dlopen ();
12561  ;
12562  return 0;
12563}
12564_ACEOF
12565rm -f conftest.$ac_objext conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567  (eval $ac_link) 2>conftest.er1
12568  ac_status=$?
12569  grep -v '^ *+' conftest.er1 >conftest.err
12570  rm -f conftest.er1
12571  cat conftest.err >&5
12572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573  (exit $ac_status); } &&
12574	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576  (eval $ac_try) 2>&5
12577  ac_status=$?
12578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579  (exit $ac_status); }; } &&
12580	 { ac_try='test -s conftest$ac_exeext'
12581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582  (eval $ac_try) 2>&5
12583  ac_status=$?
12584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585  (exit $ac_status); }; }; then
12586  ac_cv_lib_dl_dlopen=yes
12587else
12588  echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
12591ac_cv_lib_dl_dlopen=no
12592fi
12593rm -f conftest.err conftest.$ac_objext \
12594      conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_check_lib_save_LIBS
12596fi
12597echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12598echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12599if test $ac_cv_lib_dl_dlopen = yes; then
12600  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12601else
12602  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12603echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12604if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12605  echo $ECHO_N "(cached) $ECHO_C" >&6
12606else
12607  ac_check_lib_save_LIBS=$LIBS
12608LIBS="-lsvld  $LIBS"
12609cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h.  */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h.  */
12615
12616/* Override any gcc2 internal prototype to avoid an error.  */
12617#ifdef __cplusplus
12618extern "C"
12619#endif
12620/* We use char because int might match the return type of a gcc2
12621   builtin and then its argument prototype would still apply.  */
12622char dlopen ();
12623int
12624main ()
12625{
12626dlopen ();
12627  ;
12628  return 0;
12629}
12630_ACEOF
12631rm -f conftest.$ac_objext conftest$ac_exeext
12632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12633  (eval $ac_link) 2>conftest.er1
12634  ac_status=$?
12635  grep -v '^ *+' conftest.er1 >conftest.err
12636  rm -f conftest.er1
12637  cat conftest.err >&5
12638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639  (exit $ac_status); } &&
12640	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642  (eval $ac_try) 2>&5
12643  ac_status=$?
12644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645  (exit $ac_status); }; } &&
12646	 { ac_try='test -s conftest$ac_exeext'
12647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648  (eval $ac_try) 2>&5
12649  ac_status=$?
12650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651  (exit $ac_status); }; }; then
12652  ac_cv_lib_svld_dlopen=yes
12653else
12654  echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657ac_cv_lib_svld_dlopen=no
12658fi
12659rm -f conftest.err conftest.$ac_objext \
12660      conftest$ac_exeext conftest.$ac_ext
12661LIBS=$ac_check_lib_save_LIBS
12662fi
12663echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12664echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12665if test $ac_cv_lib_svld_dlopen = yes; then
12666  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12667else
12668  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12669echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12670if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12671  echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673  ac_check_lib_save_LIBS=$LIBS
12674LIBS="-ldld  $LIBS"
12675cat >conftest.$ac_ext <<_ACEOF
12676/* confdefs.h.  */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h.  */
12681
12682/* Override any gcc2 internal prototype to avoid an error.  */
12683#ifdef __cplusplus
12684extern "C"
12685#endif
12686/* We use char because int might match the return type of a gcc2
12687   builtin and then its argument prototype would still apply.  */
12688char dld_link ();
12689int
12690main ()
12691{
12692dld_link ();
12693  ;
12694  return 0;
12695}
12696_ACEOF
12697rm -f conftest.$ac_objext conftest$ac_exeext
12698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699  (eval $ac_link) 2>conftest.er1
12700  ac_status=$?
12701  grep -v '^ *+' conftest.er1 >conftest.err
12702  rm -f conftest.er1
12703  cat conftest.err >&5
12704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705  (exit $ac_status); } &&
12706	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708  (eval $ac_try) 2>&5
12709  ac_status=$?
12710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711  (exit $ac_status); }; } &&
12712	 { ac_try='test -s conftest$ac_exeext'
12713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714  (eval $ac_try) 2>&5
12715  ac_status=$?
12716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717  (exit $ac_status); }; }; then
12718  ac_cv_lib_dld_dld_link=yes
12719else
12720  echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723ac_cv_lib_dld_dld_link=no
12724fi
12725rm -f conftest.err conftest.$ac_objext \
12726      conftest$ac_exeext conftest.$ac_ext
12727LIBS=$ac_check_lib_save_LIBS
12728fi
12729echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12730echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12731if test $ac_cv_lib_dld_dld_link = yes; then
12732  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12733fi
12734
12735
12736fi
12737
12738
12739fi
12740
12741
12742fi
12743
12744
12745fi
12746
12747
12748fi
12749
12750    ;;
12751  esac
12752
12753  if test "x$lt_cv_dlopen" != xno; then
12754    enable_dlopen=yes
12755  else
12756    enable_dlopen=no
12757  fi
12758
12759  case $lt_cv_dlopen in
12760  dlopen)
12761    save_CPPFLAGS="$CPPFLAGS"
12762    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12763
12764    save_LDFLAGS="$LDFLAGS"
12765    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12766
12767    save_LIBS="$LIBS"
12768    LIBS="$lt_cv_dlopen_libs $LIBS"
12769
12770    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12771echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12772if test "${lt_cv_dlopen_self+set}" = set; then
12773  echo $ECHO_N "(cached) $ECHO_C" >&6
12774else
12775  	  if test "$cross_compiling" = yes; then :
12776  lt_cv_dlopen_self=cross
12777else
12778  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12779  lt_status=$lt_dlunknown
12780  cat > conftest.$ac_ext <<EOF
12781#line 12781 "configure"
12782#include "confdefs.h"
12783
12784#if HAVE_DLFCN_H
12785#include <dlfcn.h>
12786#endif
12787
12788#include <stdio.h>
12789
12790#ifdef RTLD_GLOBAL
12791#  define LT_DLGLOBAL		RTLD_GLOBAL
12792#else
12793#  ifdef DL_GLOBAL
12794#    define LT_DLGLOBAL		DL_GLOBAL
12795#  else
12796#    define LT_DLGLOBAL		0
12797#  endif
12798#endif
12799
12800/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12801   find out it does not work in some platform. */
12802#ifndef LT_DLLAZY_OR_NOW
12803#  ifdef RTLD_LAZY
12804#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12805#  else
12806#    ifdef DL_LAZY
12807#      define LT_DLLAZY_OR_NOW		DL_LAZY
12808#    else
12809#      ifdef RTLD_NOW
12810#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12811#      else
12812#        ifdef DL_NOW
12813#          define LT_DLLAZY_OR_NOW	DL_NOW
12814#        else
12815#          define LT_DLLAZY_OR_NOW	0
12816#        endif
12817#      endif
12818#    endif
12819#  endif
12820#endif
12821
12822#ifdef __cplusplus
12823extern "C" void exit (int);
12824#endif
12825
12826void fnord() { int i=42;}
12827int main ()
12828{
12829  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12830  int status = $lt_dlunknown;
12831
12832  if (self)
12833    {
12834      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12835      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12836      /* dlclose (self); */
12837    }
12838
12839    exit (status);
12840}
12841EOF
12842  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12843  (eval $ac_link) 2>&5
12844  ac_status=$?
12845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12847    (./conftest; exit; ) >&5 2>/dev/null
12848    lt_status=$?
12849    case x$lt_status in
12850      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12851      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12852      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12853    esac
12854  else :
12855    # compilation failed
12856    lt_cv_dlopen_self=no
12857  fi
12858fi
12859rm -fr conftest*
12860
12861
12862fi
12863echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12864echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12865
12866    if test "x$lt_cv_dlopen_self" = xyes; then
12867      LDFLAGS="$LDFLAGS $link_static_flag"
12868      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12869echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12870if test "${lt_cv_dlopen_self_static+set}" = set; then
12871  echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873  	  if test "$cross_compiling" = yes; then :
12874  lt_cv_dlopen_self_static=cross
12875else
12876  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12877  lt_status=$lt_dlunknown
12878  cat > conftest.$ac_ext <<EOF
12879#line 12879 "configure"
12880#include "confdefs.h"
12881
12882#if HAVE_DLFCN_H
12883#include <dlfcn.h>
12884#endif
12885
12886#include <stdio.h>
12887
12888#ifdef RTLD_GLOBAL
12889#  define LT_DLGLOBAL		RTLD_GLOBAL
12890#else
12891#  ifdef DL_GLOBAL
12892#    define LT_DLGLOBAL		DL_GLOBAL
12893#  else
12894#    define LT_DLGLOBAL		0
12895#  endif
12896#endif
12897
12898/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12899   find out it does not work in some platform. */
12900#ifndef LT_DLLAZY_OR_NOW
12901#  ifdef RTLD_LAZY
12902#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12903#  else
12904#    ifdef DL_LAZY
12905#      define LT_DLLAZY_OR_NOW		DL_LAZY
12906#    else
12907#      ifdef RTLD_NOW
12908#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12909#      else
12910#        ifdef DL_NOW
12911#          define LT_DLLAZY_OR_NOW	DL_NOW
12912#        else
12913#          define LT_DLLAZY_OR_NOW	0
12914#        endif
12915#      endif
12916#    endif
12917#  endif
12918#endif
12919
12920#ifdef __cplusplus
12921extern "C" void exit (int);
12922#endif
12923
12924void fnord() { int i=42;}
12925int main ()
12926{
12927  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928  int status = $lt_dlunknown;
12929
12930  if (self)
12931    {
12932      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12933      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934      /* dlclose (self); */
12935    }
12936
12937    exit (status);
12938}
12939EOF
12940  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941  (eval $ac_link) 2>&5
12942  ac_status=$?
12943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12945    (./conftest; exit; ) >&5 2>/dev/null
12946    lt_status=$?
12947    case x$lt_status in
12948      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12949      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12950      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12951    esac
12952  else :
12953    # compilation failed
12954    lt_cv_dlopen_self_static=no
12955  fi
12956fi
12957rm -fr conftest*
12958
12959
12960fi
12961echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12962echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12963    fi
12964
12965    CPPFLAGS="$save_CPPFLAGS"
12966    LDFLAGS="$save_LDFLAGS"
12967    LIBS="$save_LIBS"
12968    ;;
12969  esac
12970
12971  case $lt_cv_dlopen_self in
12972  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12973  *) enable_dlopen_self=unknown ;;
12974  esac
12975
12976  case $lt_cv_dlopen_self_static in
12977  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12978  *) enable_dlopen_self_static=unknown ;;
12979  esac
12980fi
12981
12982
12983# The else clause should only fire when bootstrapping the
12984# libtool distribution, otherwise you forgot to ship ltmain.sh
12985# with your package, and you will get complaints that there are
12986# no rules to generate ltmain.sh.
12987if test -f "$ltmain"; then
12988  # See if we are running on zsh, and set the options which allow our commands through
12989  # without removal of \ escapes.
12990  if test -n "${ZSH_VERSION+set}" ; then
12991    setopt NO_GLOB_SUBST
12992  fi
12993  # Now quote all the things that may contain metacharacters while being
12994  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12995  # variables and quote the copies for generation of the libtool script.
12996  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12997    SED SHELL STRIP \
12998    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12999    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13000    deplibs_check_method reload_flag reload_cmds need_locks \
13001    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13002    lt_cv_sys_global_symbol_to_c_name_address \
13003    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13004    old_postinstall_cmds old_postuninstall_cmds \
13005    compiler_CXX \
13006    CC_CXX \
13007    LD_CXX \
13008    lt_prog_compiler_wl_CXX \
13009    lt_prog_compiler_pic_CXX \
13010    lt_prog_compiler_static_CXX \
13011    lt_prog_compiler_no_builtin_flag_CXX \
13012    export_dynamic_flag_spec_CXX \
13013    thread_safe_flag_spec_CXX \
13014    whole_archive_flag_spec_CXX \
13015    enable_shared_with_static_runtimes_CXX \
13016    old_archive_cmds_CXX \
13017    old_archive_from_new_cmds_CXX \
13018    predep_objects_CXX \
13019    postdep_objects_CXX \
13020    predeps_CXX \
13021    postdeps_CXX \
13022    compiler_lib_search_path_CXX \
13023    archive_cmds_CXX \
13024    archive_expsym_cmds_CXX \
13025    postinstall_cmds_CXX \
13026    postuninstall_cmds_CXX \
13027    old_archive_from_expsyms_cmds_CXX \
13028    allow_undefined_flag_CXX \
13029    no_undefined_flag_CXX \
13030    export_symbols_cmds_CXX \
13031    hardcode_libdir_flag_spec_CXX \
13032    hardcode_libdir_flag_spec_ld_CXX \
13033    hardcode_libdir_separator_CXX \
13034    hardcode_automatic_CXX \
13035    module_cmds_CXX \
13036    module_expsym_cmds_CXX \
13037    lt_cv_prog_compiler_c_o_CXX \
13038    exclude_expsyms_CXX \
13039    include_expsyms_CXX; do
13040
13041    case $var in
13042    old_archive_cmds_CXX | \
13043    old_archive_from_new_cmds_CXX | \
13044    archive_cmds_CXX | \
13045    archive_expsym_cmds_CXX | \
13046    module_cmds_CXX | \
13047    module_expsym_cmds_CXX | \
13048    old_archive_from_expsyms_cmds_CXX | \
13049    export_symbols_cmds_CXX | \
13050    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13051    postinstall_cmds | postuninstall_cmds | \
13052    old_postinstall_cmds | old_postuninstall_cmds | \
13053    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13054      # Double-quote double-evaled strings.
13055      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13056      ;;
13057    *)
13058      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13059      ;;
13060    esac
13061  done
13062
13063  case $lt_echo in
13064  *'\$0 --fallback-echo"')
13065    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13066    ;;
13067  esac
13068
13069cfgfile="$ofile"
13070
13071  cat <<__EOF__ >> "$cfgfile"
13072# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13073
13074# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13075
13076# Shell to use when invoking shell scripts.
13077SHELL=$lt_SHELL
13078
13079# Whether or not to build shared libraries.
13080build_libtool_libs=$enable_shared
13081
13082# Whether or not to build static libraries.
13083build_old_libs=$enable_static
13084
13085# Whether or not to add -lc for building shared libraries.
13086build_libtool_need_lc=$archive_cmds_need_lc_CXX
13087
13088# Whether or not to disallow shared libs when runtime libs are static
13089allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13090
13091# Whether or not to optimize for fast installation.
13092fast_install=$enable_fast_install
13093
13094# The host system.
13095host_alias=$host_alias
13096host=$host
13097host_os=$host_os
13098
13099# The build system.
13100build_alias=$build_alias
13101build=$build
13102build_os=$build_os
13103
13104# An echo program that does not interpret backslashes.
13105echo=$lt_echo
13106
13107# The archiver.
13108AR=$lt_AR
13109AR_FLAGS=$lt_AR_FLAGS
13110
13111# A C compiler.
13112LTCC=$lt_LTCC
13113
13114# A language-specific compiler.
13115CC=$lt_compiler_CXX
13116
13117# Is the compiler the GNU C compiler?
13118with_gcc=$GCC_CXX
13119
13120# An ERE matcher.
13121EGREP=$lt_EGREP
13122
13123# The linker used to build libraries.
13124LD=$lt_LD_CXX
13125
13126# Whether we need hard or soft links.
13127LN_S=$lt_LN_S
13128
13129# A BSD-compatible nm program.
13130NM=$lt_NM
13131
13132# A symbol stripping program
13133STRIP=$lt_STRIP
13134
13135# Used to examine libraries when file_magic_cmd begins "file"
13136MAGIC_CMD=$MAGIC_CMD
13137
13138# Used on cygwin: DLL creation program.
13139DLLTOOL="$DLLTOOL"
13140
13141# Used on cygwin: object dumper.
13142OBJDUMP="$OBJDUMP"
13143
13144# Used on cygwin: assembler.
13145AS="$AS"
13146
13147# The name of the directory that contains temporary libtool files.
13148objdir=$objdir
13149
13150# How to create reloadable object files.
13151reload_flag=$lt_reload_flag
13152reload_cmds=$lt_reload_cmds
13153
13154# How to pass a linker flag through the compiler.
13155wl=$lt_lt_prog_compiler_wl_CXX
13156
13157# Object file suffix (normally "o").
13158objext="$ac_objext"
13159
13160# Old archive suffix (normally "a").
13161libext="$libext"
13162
13163# Shared library suffix (normally ".so").
13164shrext_cmds='$shrext_cmds'
13165
13166# Executable file suffix (normally "").
13167exeext="$exeext"
13168
13169# Additional compiler flags for building library objects.
13170pic_flag=$lt_lt_prog_compiler_pic_CXX
13171pic_mode=$pic_mode
13172
13173# What is the maximum length of a command?
13174max_cmd_len=$lt_cv_sys_max_cmd_len
13175
13176# Does compiler simultaneously support -c and -o options?
13177compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13178
13179# Must we lock files when doing compilation?
13180need_locks=$lt_need_locks
13181
13182# Do we need the lib prefix for modules?
13183need_lib_prefix=$need_lib_prefix
13184
13185# Do we need a version for libraries?
13186need_version=$need_version
13187
13188# Whether dlopen is supported.
13189dlopen_support=$enable_dlopen
13190
13191# Whether dlopen of programs is supported.
13192dlopen_self=$enable_dlopen_self
13193
13194# Whether dlopen of statically linked programs is supported.
13195dlopen_self_static=$enable_dlopen_self_static
13196
13197# Compiler flag to prevent dynamic linking.
13198link_static_flag=$lt_lt_prog_compiler_static_CXX
13199
13200# Compiler flag to turn off builtin functions.
13201no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13202
13203# Compiler flag to allow reflexive dlopens.
13204export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13205
13206# Compiler flag to generate shared objects directly from archives.
13207whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13208
13209# Compiler flag to generate thread-safe objects.
13210thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13211
13212# Library versioning type.
13213version_type=$version_type
13214
13215# Format of library name prefix.
13216libname_spec=$lt_libname_spec
13217
13218# List of archive names.  First name is the real one, the rest are links.
13219# The last name is the one that the linker finds with -lNAME.
13220library_names_spec=$lt_library_names_spec
13221
13222# The coded name of the library, if different from the real name.
13223soname_spec=$lt_soname_spec
13224
13225# Commands used to build and install an old-style archive.
13226RANLIB=$lt_RANLIB
13227old_archive_cmds=$lt_old_archive_cmds_CXX
13228old_postinstall_cmds=$lt_old_postinstall_cmds
13229old_postuninstall_cmds=$lt_old_postuninstall_cmds
13230
13231# Create an old-style archive from a shared archive.
13232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13233
13234# Create a temporary old-style archive to link instead of a shared archive.
13235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13236
13237# Commands used to build and install a shared archive.
13238archive_cmds=$lt_archive_cmds_CXX
13239archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13240postinstall_cmds=$lt_postinstall_cmds
13241postuninstall_cmds=$lt_postuninstall_cmds
13242
13243# Commands used to build a loadable module (assumed same as above if empty)
13244module_cmds=$lt_module_cmds_CXX
13245module_expsym_cmds=$lt_module_expsym_cmds_CXX
13246
13247# Commands to strip libraries.
13248old_striplib=$lt_old_striplib
13249striplib=$lt_striplib
13250
13251# Dependencies to place before the objects being linked to create a
13252# shared library.
13253predep_objects=$lt_predep_objects_CXX
13254
13255# Dependencies to place after the objects being linked to create a
13256# shared library.
13257postdep_objects=$lt_postdep_objects_CXX
13258
13259# Dependencies to place before the objects being linked to create a
13260# shared library.
13261predeps=$lt_predeps_CXX
13262
13263# Dependencies to place after the objects being linked to create a
13264# shared library.
13265postdeps=$lt_postdeps_CXX
13266
13267# The library search path used internally by the compiler when linking
13268# a shared library.
13269compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13270
13271# Method to check whether dependent libraries are shared objects.
13272deplibs_check_method=$lt_deplibs_check_method
13273
13274# Command to use when deplibs_check_method == file_magic.
13275file_magic_cmd=$lt_file_magic_cmd
13276
13277# Flag that allows shared libraries with undefined symbols to be built.
13278allow_undefined_flag=$lt_allow_undefined_flag_CXX
13279
13280# Flag that forces no undefined symbols.
13281no_undefined_flag=$lt_no_undefined_flag_CXX
13282
13283# Commands used to finish a libtool library installation in a directory.
13284finish_cmds=$lt_finish_cmds
13285
13286# Same as above, but a single script fragment to be evaled but not shown.
13287finish_eval=$lt_finish_eval
13288
13289# Take the output of nm and produce a listing of raw symbols and C names.
13290global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13291
13292# Transform the output of nm in a proper C declaration
13293global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13294
13295# Transform the output of nm in a C name address pair
13296global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13297
13298# This is the shared library runtime path variable.
13299runpath_var=$runpath_var
13300
13301# This is the shared library path variable.
13302shlibpath_var=$shlibpath_var
13303
13304# Is shlibpath searched before the hard-coded library search path?
13305shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13306
13307# How to hardcode a shared library path into an executable.
13308hardcode_action=$hardcode_action_CXX
13309
13310# Whether we should hardcode library paths into libraries.
13311hardcode_into_libs=$hardcode_into_libs
13312
13313# Flag to hardcode \$libdir into a binary during linking.
13314# This must work even if \$libdir does not exist.
13315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13316
13317# If ld is used when linking, flag to hardcode \$libdir into
13318# a binary during linking. This must work even if \$libdir does
13319# not exist.
13320hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13321
13322# Whether we need a single -rpath flag with a separated argument.
13323hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13324
13325# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13326# resulting binary.
13327hardcode_direct=$hardcode_direct_CXX
13328
13329# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13330# resulting binary.
13331hardcode_minus_L=$hardcode_minus_L_CXX
13332
13333# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13334# the resulting binary.
13335hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13336
13337# Set to yes if building a shared library automatically hardcodes DIR into the library
13338# and all subsequent libraries and executables linked against it.
13339hardcode_automatic=$hardcode_automatic_CXX
13340
13341# Variables whose values should be saved in libtool wrapper scripts and
13342# restored at relink time.
13343variables_saved_for_relink="$variables_saved_for_relink"
13344
13345# Whether libtool must link a program against all its dependency libraries.
13346link_all_deplibs=$link_all_deplibs_CXX
13347
13348# Compile-time system search path for libraries
13349sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13350
13351# Run-time system search path for libraries
13352sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13353
13354# Fix the shell variable \$srcfile for the compiler.
13355fix_srcfile_path="$fix_srcfile_path_CXX"
13356
13357# Set to yes if exported symbols are required.
13358always_export_symbols=$always_export_symbols_CXX
13359
13360# The commands to list exported symbols.
13361export_symbols_cmds=$lt_export_symbols_cmds_CXX
13362
13363# The commands to extract the exported symbol list from a shared archive.
13364extract_expsyms_cmds=$lt_extract_expsyms_cmds
13365
13366# Symbols that should not be listed in the preloaded symbols.
13367exclude_expsyms=$lt_exclude_expsyms_CXX
13368
13369# Symbols that must always be exported.
13370include_expsyms=$lt_include_expsyms_CXX
13371
13372# ### END LIBTOOL TAG CONFIG: $tagname
13373
13374__EOF__
13375
13376
13377else
13378  # If there is no Makefile yet, we rely on a make rule to execute
13379  # `config.status --recheck' to rerun these tests and create the
13380  # libtool script then.
13381  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13382  if test -f "$ltmain_in"; then
13383    test -f Makefile && make "$ltmain"
13384  fi
13385fi
13386
13387
13388ac_ext=c
13389ac_cpp='$CPP $CPPFLAGS'
13390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13392ac_compiler_gnu=$ac_cv_c_compiler_gnu
13393
13394CC=$lt_save_CC
13395LDCXX=$LD
13396LD=$lt_save_LD
13397GCC=$lt_save_GCC
13398with_gnu_ldcxx=$with_gnu_ld
13399with_gnu_ld=$lt_save_with_gnu_ld
13400lt_cv_path_LDCXX=$lt_cv_path_LD
13401lt_cv_path_LD=$lt_save_path_LD
13402lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13403lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13404
13405	else
13406	  tagname=""
13407	fi
13408	;;
13409
13410      F77)
13411	if test -n "$F77" && test "X$F77" != "Xno"; then
13412
13413ac_ext=f
13414ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13415ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13417
13418
13419archive_cmds_need_lc_F77=no
13420allow_undefined_flag_F77=
13421always_export_symbols_F77=no
13422archive_expsym_cmds_F77=
13423export_dynamic_flag_spec_F77=
13424hardcode_direct_F77=no
13425hardcode_libdir_flag_spec_F77=
13426hardcode_libdir_flag_spec_ld_F77=
13427hardcode_libdir_separator_F77=
13428hardcode_minus_L_F77=no
13429hardcode_automatic_F77=no
13430module_cmds_F77=
13431module_expsym_cmds_F77=
13432link_all_deplibs_F77=unknown
13433old_archive_cmds_F77=$old_archive_cmds
13434no_undefined_flag_F77=
13435whole_archive_flag_spec_F77=
13436enable_shared_with_static_runtimes_F77=no
13437
13438# Source file extension for f77 test sources.
13439ac_ext=f
13440
13441# Object file extension for compiled f77 test sources.
13442objext=o
13443objext_F77=$objext
13444
13445# Code to be used in simple compile tests
13446lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13447
13448# Code to be used in simple link tests
13449lt_simple_link_test_code="      program t\n      end\n"
13450
13451# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13452
13453# If no C compiler was specified, use CC.
13454LTCC=${LTCC-"$CC"}
13455
13456# Allow CC to be a program name with arguments.
13457compiler=$CC
13458
13459
13460# save warnings/boilerplate of simple test code
13461ac_outfile=conftest.$ac_objext
13462printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13463eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13464_lt_compiler_boilerplate=`cat conftest.err`
13465$rm conftest*
13466
13467ac_outfile=conftest.$ac_objext
13468printf "$lt_simple_link_test_code" >conftest.$ac_ext
13469eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13470_lt_linker_boilerplate=`cat conftest.err`
13471$rm conftest*
13472
13473
13474# Allow CC to be a program name with arguments.
13475lt_save_CC="$CC"
13476CC=${F77-"f77"}
13477compiler=$CC
13478compiler_F77=$CC
13479for cc_temp in $compiler""; do
13480  case $cc_temp in
13481    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13482    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13483    \-*) ;;
13484    *) break;;
13485  esac
13486done
13487cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13488
13489
13490echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13491echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13492echo "$as_me:$LINENO: result: $can_build_shared" >&5
13493echo "${ECHO_T}$can_build_shared" >&6
13494
13495echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13496echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13497test "$can_build_shared" = "no" && enable_shared=no
13498
13499# On AIX, shared libraries and static libraries use the same namespace, and
13500# are all built from PIC.
13501case $host_os in
13502aix3*)
13503  test "$enable_shared" = yes && enable_static=no
13504  if test -n "$RANLIB"; then
13505    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13506    postinstall_cmds='$RANLIB $lib'
13507  fi
13508  ;;
13509aix4* | aix5*)
13510  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13511    test "$enable_shared" = yes && enable_static=no
13512  fi
13513  ;;
13514esac
13515echo "$as_me:$LINENO: result: $enable_shared" >&5
13516echo "${ECHO_T}$enable_shared" >&6
13517
13518echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13519echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13520# Make sure either enable_shared or enable_static is yes.
13521test "$enable_shared" = yes || enable_static=yes
13522echo "$as_me:$LINENO: result: $enable_static" >&5
13523echo "${ECHO_T}$enable_static" >&6
13524
13525test "$ld_shlibs_F77" = no && can_build_shared=no
13526
13527GCC_F77="$G77"
13528LD_F77="$LD"
13529
13530lt_prog_compiler_wl_F77=
13531lt_prog_compiler_pic_F77=
13532lt_prog_compiler_static_F77=
13533
13534echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13535echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13536
13537  if test "$GCC" = yes; then
13538    lt_prog_compiler_wl_F77='-Wl,'
13539    lt_prog_compiler_static_F77='-static'
13540
13541    case $host_os in
13542      aix*)
13543      # All AIX code is PIC.
13544      if test "$host_cpu" = ia64; then
13545	# AIX 5 now supports IA64 processor
13546	lt_prog_compiler_static_F77='-Bstatic'
13547      fi
13548      ;;
13549
13550    amigaos*)
13551      # FIXME: we need at least 68020 code to build shared libraries, but
13552      # adding the `-m68020' flag to GCC prevents building anything better,
13553      # like `-m68040'.
13554      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13555      ;;
13556
13557    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13558      # PIC is the default for these OSes.
13559      ;;
13560
13561    mingw* | pw32* | os2*)
13562      # This hack is so that the source file can tell whether it is being
13563      # built for inclusion in a dll (and should export symbols for example).
13564      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13565      ;;
13566
13567    darwin* | rhapsody*)
13568      # PIC is the default on this platform
13569      # Common symbols not allowed in MH_DYLIB files
13570      lt_prog_compiler_pic_F77='-fno-common'
13571      ;;
13572
13573    msdosdjgpp*)
13574      # Just because we use GCC doesn't mean we suddenly get shared libraries
13575      # on systems that don't support them.
13576      lt_prog_compiler_can_build_shared_F77=no
13577      enable_shared=no
13578      ;;
13579
13580    sysv4*MP*)
13581      if test -d /usr/nec; then
13582	lt_prog_compiler_pic_F77=-Kconform_pic
13583      fi
13584      ;;
13585
13586    hpux*)
13587      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13588      # not for PA HP-UX.
13589      case $host_cpu in
13590      hppa*64*|ia64*)
13591	# +Z the default
13592	;;
13593      *)
13594	lt_prog_compiler_pic_F77='-fPIC'
13595	;;
13596      esac
13597      ;;
13598
13599    *)
13600      lt_prog_compiler_pic_F77='-fPIC'
13601      ;;
13602    esac
13603  else
13604    # PORTME Check for flag to pass linker flags through the system compiler.
13605    case $host_os in
13606    aix*)
13607      lt_prog_compiler_wl_F77='-Wl,'
13608      if test "$host_cpu" = ia64; then
13609	# AIX 5 now supports IA64 processor
13610	lt_prog_compiler_static_F77='-Bstatic'
13611      else
13612	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13613      fi
13614      ;;
13615      darwin*)
13616        # PIC is the default on this platform
13617        # Common symbols not allowed in MH_DYLIB files
13618       case $cc_basename in
13619         xlc*)
13620         lt_prog_compiler_pic_F77='-qnocommon'
13621         lt_prog_compiler_wl_F77='-Wl,'
13622         ;;
13623       esac
13624       ;;
13625
13626    mingw* | pw32* | os2*)
13627      # This hack is so that the source file can tell whether it is being
13628      # built for inclusion in a dll (and should export symbols for example).
13629      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13630      ;;
13631
13632    hpux9* | hpux10* | hpux11*)
13633      lt_prog_compiler_wl_F77='-Wl,'
13634      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13635      # not for PA HP-UX.
13636      case $host_cpu in
13637      hppa*64*|ia64*)
13638	# +Z the default
13639	;;
13640      *)
13641	lt_prog_compiler_pic_F77='+Z'
13642	;;
13643      esac
13644      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13645      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13646      ;;
13647
13648    irix5* | irix6* | nonstopux*)
13649      lt_prog_compiler_wl_F77='-Wl,'
13650      # PIC (with -KPIC) is the default.
13651      lt_prog_compiler_static_F77='-non_shared'
13652      ;;
13653
13654    newsos6)
13655      lt_prog_compiler_pic_F77='-KPIC'
13656      lt_prog_compiler_static_F77='-Bstatic'
13657      ;;
13658
13659    linux*)
13660      case $cc_basename in
13661      icc* | ecc*)
13662	lt_prog_compiler_wl_F77='-Wl,'
13663	lt_prog_compiler_pic_F77='-KPIC'
13664	lt_prog_compiler_static_F77='-static'
13665        ;;
13666      pgcc* | pgf77* | pgf90* | pgf95*)
13667        # Portland Group compilers (*not* the Pentium gcc compiler,
13668	# which looks to be a dead project)
13669	lt_prog_compiler_wl_F77='-Wl,'
13670	lt_prog_compiler_pic_F77='-fpic'
13671	lt_prog_compiler_static_F77='-Bstatic'
13672        ;;
13673      ccc*)
13674        lt_prog_compiler_wl_F77='-Wl,'
13675        # All Alpha code is PIC.
13676        lt_prog_compiler_static_F77='-non_shared'
13677        ;;
13678      esac
13679      ;;
13680
13681    osf3* | osf4* | osf5*)
13682      lt_prog_compiler_wl_F77='-Wl,'
13683      # All OSF/1 code is PIC.
13684      lt_prog_compiler_static_F77='-non_shared'
13685      ;;
13686
13687    sco3.2v5*)
13688      lt_prog_compiler_pic_F77='-Kpic'
13689      lt_prog_compiler_static_F77='-dn'
13690      ;;
13691
13692    solaris*)
13693      lt_prog_compiler_pic_F77='-KPIC'
13694      lt_prog_compiler_static_F77='-Bstatic'
13695      case $cc_basename in
13696      f77* | f90* | f95*)
13697	lt_prog_compiler_wl_F77='-Qoption ld ';;
13698      *)
13699	lt_prog_compiler_wl_F77='-Wl,';;
13700      esac
13701      ;;
13702
13703    sunos4*)
13704      lt_prog_compiler_wl_F77='-Qoption ld '
13705      lt_prog_compiler_pic_F77='-PIC'
13706      lt_prog_compiler_static_F77='-Bstatic'
13707      ;;
13708
13709    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13710      lt_prog_compiler_wl_F77='-Wl,'
13711      lt_prog_compiler_pic_F77='-KPIC'
13712      lt_prog_compiler_static_F77='-Bstatic'
13713      ;;
13714
13715    sysv4*MP*)
13716      if test -d /usr/nec ;then
13717	lt_prog_compiler_pic_F77='-Kconform_pic'
13718	lt_prog_compiler_static_F77='-Bstatic'
13719      fi
13720      ;;
13721
13722    unicos*)
13723      lt_prog_compiler_wl_F77='-Wl,'
13724      lt_prog_compiler_can_build_shared_F77=no
13725      ;;
13726
13727    uts4*)
13728      lt_prog_compiler_pic_F77='-pic'
13729      lt_prog_compiler_static_F77='-Bstatic'
13730      ;;
13731
13732    *)
13733      lt_prog_compiler_can_build_shared_F77=no
13734      ;;
13735    esac
13736  fi
13737
13738echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13739echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13740
13741#
13742# Check to make sure the PIC flag actually works.
13743#
13744if test -n "$lt_prog_compiler_pic_F77"; then
13745
13746echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13747echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13748if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13749  echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751  lt_prog_compiler_pic_works_F77=no
13752  ac_outfile=conftest.$ac_objext
13753   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13754   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13755   # Insert the option either (1) after the last *FLAGS variable, or
13756   # (2) before a word containing "conftest.", or (3) at the end.
13757   # Note that $ac_compile itself does not contain backslashes and begins
13758   # with a dollar sign (not a hyphen), so the echo should work correctly.
13759   # The option is referenced via a variable to avoid confusing sed.
13760   lt_compile=`echo "$ac_compile" | $SED \
13761   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13763   -e 's:$: $lt_compiler_flag:'`
13764   (eval echo "\"\$as_me:13764: $lt_compile\"" >&5)
13765   (eval "$lt_compile" 2>conftest.err)
13766   ac_status=$?
13767   cat conftest.err >&5
13768   echo "$as_me:13768: \$? = $ac_status" >&5
13769   if (exit $ac_status) && test -s "$ac_outfile"; then
13770     # The compiler can only warn and ignore the option if not recognized
13771     # So say no if there are warnings other than the usual output.
13772     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13773     $SED '/^$/d' conftest.err >conftest.er2
13774     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13775       lt_prog_compiler_pic_works_F77=yes
13776     fi
13777   fi
13778   $rm conftest*
13779
13780fi
13781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13782echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13783
13784if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13785    case $lt_prog_compiler_pic_F77 in
13786     "" | " "*) ;;
13787     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13788     esac
13789else
13790    lt_prog_compiler_pic_F77=
13791     lt_prog_compiler_can_build_shared_F77=no
13792fi
13793
13794fi
13795case $host_os in
13796  # For platforms which do not support PIC, -DPIC is meaningless:
13797  *djgpp*)
13798    lt_prog_compiler_pic_F77=
13799    ;;
13800  *)
13801    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13802    ;;
13803esac
13804
13805echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13806echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13807if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13808  echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810  lt_cv_prog_compiler_c_o_F77=no
13811   $rm -r conftest 2>/dev/null
13812   mkdir conftest
13813   cd conftest
13814   mkdir out
13815   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13816
13817   lt_compiler_flag="-o out/conftest2.$ac_objext"
13818   # Insert the option either (1) after the last *FLAGS variable, or
13819   # (2) before a word containing "conftest.", or (3) at the end.
13820   # Note that $ac_compile itself does not contain backslashes and begins
13821   # with a dollar sign (not a hyphen), so the echo should work correctly.
13822   lt_compile=`echo "$ac_compile" | $SED \
13823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13825   -e 's:$: $lt_compiler_flag:'`
13826   (eval echo "\"\$as_me:13826: $lt_compile\"" >&5)
13827   (eval "$lt_compile" 2>out/conftest.err)
13828   ac_status=$?
13829   cat out/conftest.err >&5
13830   echo "$as_me:13830: \$? = $ac_status" >&5
13831   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13832   then
13833     # The compiler can only warn and ignore the option if not recognized
13834     # So say no if there are warnings
13835     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13836     $SED '/^$/d' out/conftest.err >out/conftest.er2
13837     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13838       lt_cv_prog_compiler_c_o_F77=yes
13839     fi
13840   fi
13841   chmod u+w . 2>&5
13842   $rm conftest*
13843   # SGI C++ compiler will create directory out/ii_files/ for
13844   # template instantiation
13845   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13846   $rm out/* && rmdir out
13847   cd ..
13848   rmdir conftest
13849   $rm conftest*
13850
13851fi
13852echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13853echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13854
13855
13856hard_links="nottested"
13857if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13858  # do not overwrite the value of need_locks provided by the user
13859  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13860echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13861  hard_links=yes
13862  $rm conftest*
13863  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13864  touch conftest.a
13865  ln conftest.a conftest.b 2>&5 || hard_links=no
13866  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13867  echo "$as_me:$LINENO: result: $hard_links" >&5
13868echo "${ECHO_T}$hard_links" >&6
13869  if test "$hard_links" = no; then
13870    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13871echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13872    need_locks=warn
13873  fi
13874else
13875  need_locks=no
13876fi
13877
13878echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13879echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13880
13881  runpath_var=
13882  allow_undefined_flag_F77=
13883  enable_shared_with_static_runtimes_F77=no
13884  archive_cmds_F77=
13885  archive_expsym_cmds_F77=
13886  old_archive_From_new_cmds_F77=
13887  old_archive_from_expsyms_cmds_F77=
13888  export_dynamic_flag_spec_F77=
13889  whole_archive_flag_spec_F77=
13890  thread_safe_flag_spec_F77=
13891  hardcode_libdir_flag_spec_F77=
13892  hardcode_libdir_flag_spec_ld_F77=
13893  hardcode_libdir_separator_F77=
13894  hardcode_direct_F77=no
13895  hardcode_minus_L_F77=no
13896  hardcode_shlibpath_var_F77=unsupported
13897  link_all_deplibs_F77=unknown
13898  hardcode_automatic_F77=no
13899  module_cmds_F77=
13900  module_expsym_cmds_F77=
13901  always_export_symbols_F77=no
13902  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13903  # include_expsyms should be a list of space-separated symbols to be *always*
13904  # included in the symbol list
13905  include_expsyms_F77=
13906  # exclude_expsyms can be an extended regexp of symbols to exclude
13907  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13908  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13909  # as well as any symbol that contains `d'.
13910  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13911  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13912  # platforms (ab)use it in PIC code, but their linkers get confused if
13913  # the symbol is explicitly referenced.  Since portable code cannot
13914  # rely on this symbol name, it's probably fine to never include it in
13915  # preloaded symbol tables.
13916  extract_expsyms_cmds=
13917  # Just being paranoid about ensuring that cc_basename is set.
13918  for cc_temp in $compiler""; do
13919  case $cc_temp in
13920    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13921    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13922    \-*) ;;
13923    *) break;;
13924  esac
13925done
13926cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13927
13928  case $host_os in
13929  cygwin* | mingw* | pw32*)
13930    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13931    # When not using gcc, we currently assume that we are using
13932    # Microsoft Visual C++.
13933    if test "$GCC" != yes; then
13934      with_gnu_ld=no
13935    fi
13936    ;;
13937  openbsd*)
13938    with_gnu_ld=no
13939    ;;
13940  esac
13941
13942  ld_shlibs_F77=yes
13943  if test "$with_gnu_ld" = yes; then
13944    # If archive_cmds runs LD, not CC, wlarc should be empty
13945    wlarc='${wl}'
13946
13947    # Set some defaults for GNU ld with shared library support. These
13948    # are reset later if shared libraries are not supported. Putting them
13949    # here allows them to be overridden if necessary.
13950    runpath_var=LD_RUN_PATH
13951    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13952    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13953    # ancient GNU ld didn't support --whole-archive et. al.
13954    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13955	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13956      else
13957  	whole_archive_flag_spec_F77=
13958    fi
13959    supports_anon_versioning=no
13960    case `$LD -v 2>/dev/null` in
13961      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13962      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13963      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13964      *\ 2.11.*) ;; # other 2.11 versions
13965      *) supports_anon_versioning=yes ;;
13966    esac
13967
13968    # See if GNU ld supports shared libraries.
13969    case $host_os in
13970    aix3* | aix4* | aix5*)
13971      # On AIX/PPC, the GNU linker is very broken
13972      if test "$host_cpu" != ia64; then
13973	ld_shlibs_F77=no
13974	cat <<EOF 1>&2
13975
13976*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13977*** to be unable to reliably create shared libraries on AIX.
13978*** Therefore, libtool is disabling shared libraries support.  If you
13979*** really care for shared libraries, you may want to modify your PATH
13980*** so that a non-GNU linker is found, and then restart.
13981
13982EOF
13983      fi
13984      ;;
13985
13986    amigaos*)
13987      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)'
13988      hardcode_libdir_flag_spec_F77='-L$libdir'
13989      hardcode_minus_L_F77=yes
13990
13991      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13992      # that the semantics of dynamic libraries on AmigaOS, at least up
13993      # to version 4, is to share data among multiple programs linked
13994      # with the same dynamic library.  Since this doesn't match the
13995      # behavior of shared libraries on other platforms, we can't use
13996      # them.
13997      ld_shlibs_F77=no
13998      ;;
13999
14000    beos*)
14001      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002	allow_undefined_flag_F77=unsupported
14003	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14004	# support --undefined.  This deserves some investigation.  FIXME
14005	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006      else
14007	ld_shlibs_F77=no
14008      fi
14009      ;;
14010
14011    cygwin* | mingw* | pw32*)
14012      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14013      # as there is no search path for DLLs.
14014      hardcode_libdir_flag_spec_F77='-L$libdir'
14015      allow_undefined_flag_F77=unsupported
14016      always_export_symbols_F77=no
14017      enable_shared_with_static_runtimes_F77=yes
14018      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14019
14020      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14021        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14022	# If the export-symbols file already is a .def file (1st line
14023	# is EXPORTS), use it as is; otherwise, prepend...
14024	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14025	  cp $export_symbols $output_objdir/$soname.def;
14026	else
14027	  echo EXPORTS > $output_objdir/$soname.def;
14028	  cat $export_symbols >> $output_objdir/$soname.def;
14029	fi~
14030	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14031      else
14032	ld_shlibs_F77=no
14033      fi
14034      ;;
14035
14036    linux*)
14037      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14038	tmp_addflag=
14039	case $cc_basename,$host_cpu in
14040	pgcc*)				# Portland Group C compiler
14041	  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'
14042	  tmp_addflag=' $pic_flag'
14043	  ;;
14044	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14045	  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'
14046	  tmp_addflag=' $pic_flag -Mnomain' ;;
14047	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14048	  tmp_addflag=' -i_dynamic' ;;
14049	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14050	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14051	ifc* | ifort*)			# Intel Fortran compiler
14052	  tmp_addflag=' -nofor_main' ;;
14053	esac
14054	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14055
14056	if test $supports_anon_versioning = yes; then
14057	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14058  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14059  $echo "local: *; };" >> $output_objdir/$libname.ver~
14060	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14061	fi
14062	link_all_deplibs_F77=no
14063      else
14064	ld_shlibs_F77=no
14065      fi
14066      ;;
14067
14068    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14069      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14070	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14071	wlarc=
14072      else
14073	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14075      fi
14076      ;;
14077
14078    solaris* | sysv5*)
14079      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14080	ld_shlibs_F77=no
14081	cat <<EOF 1>&2
14082
14083*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14084*** create shared libraries on Solaris systems.  Therefore, libtool
14085*** is disabling shared libraries support.  We urge you to upgrade GNU
14086*** binutils to release 2.9.1 or newer.  Another option is to modify
14087*** your PATH or compiler configuration so that the native linker is
14088*** used, and then restart.
14089
14090EOF
14091      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14092	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14093	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14094      else
14095	ld_shlibs_F77=no
14096      fi
14097      ;;
14098
14099    sunos4*)
14100      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14101      wlarc=
14102      hardcode_direct_F77=yes
14103      hardcode_shlibpath_var_F77=no
14104      ;;
14105
14106    *)
14107      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14108	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14109	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14110      else
14111	ld_shlibs_F77=no
14112      fi
14113      ;;
14114    esac
14115
14116    if test "$ld_shlibs_F77" = no; then
14117      runpath_var=
14118      hardcode_libdir_flag_spec_F77=
14119      export_dynamic_flag_spec_F77=
14120      whole_archive_flag_spec_F77=
14121    fi
14122  else
14123    # PORTME fill in a description of your system's linker (not GNU ld)
14124    case $host_os in
14125    aix3*)
14126      allow_undefined_flag_F77=unsupported
14127      always_export_symbols_F77=yes
14128      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'
14129      # Note: this linker hardcodes the directories in LIBPATH if there
14130      # are no directories specified by -L.
14131      hardcode_minus_L_F77=yes
14132      if test "$GCC" = yes && test -z "$link_static_flag"; then
14133	# Neither direct hardcoding nor static linking is supported with a
14134	# broken collect2.
14135	hardcode_direct_F77=unsupported
14136      fi
14137      ;;
14138
14139    aix4* | aix5*)
14140      if test "$host_cpu" = ia64; then
14141	# On IA64, the linker does run time linking by default, so we don't
14142	# have to do anything special.
14143	aix_use_runtimelinking=no
14144	exp_sym_flag='-Bexport'
14145	no_entry_flag=""
14146      else
14147	# If we're using GNU nm, then we don't want the "-C" option.
14148	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14149	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14150	  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'
14151	else
14152	  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'
14153	fi
14154	aix_use_runtimelinking=no
14155
14156	# Test if we are trying to use run time linking or normal
14157	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14158	# need to do runtime linking.
14159	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14160	  for ld_flag in $LDFLAGS; do
14161  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14162  	    aix_use_runtimelinking=yes
14163  	    break
14164  	  fi
14165	  done
14166	esac
14167
14168	exp_sym_flag='-bexport'
14169	no_entry_flag='-bnoentry'
14170      fi
14171
14172      # When large executables or shared objects are built, AIX ld can
14173      # have problems creating the table of contents.  If linking a library
14174      # or program results in "error TOC overflow" add -mminimal-toc to
14175      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14176      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14177
14178      archive_cmds_F77=''
14179      hardcode_direct_F77=yes
14180      hardcode_libdir_separator_F77=':'
14181      link_all_deplibs_F77=yes
14182
14183      if test "$GCC" = yes; then
14184	case $host_os in aix4.[012]|aix4.[012].*)
14185	# We only want to do this on AIX 4.2 and lower, the check
14186	# below for broken collect2 doesn't work under 4.3+
14187	  collect2name=`${CC} -print-prog-name=collect2`
14188	  if test -f "$collect2name" && \
14189  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14190	  then
14191  	  # We have reworked collect2
14192  	  hardcode_direct_F77=yes
14193	  else
14194  	  # We have old collect2
14195  	  hardcode_direct_F77=unsupported
14196  	  # It fails to find uninstalled libraries when the uninstalled
14197  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14198  	  # to unsupported forces relinking
14199  	  hardcode_minus_L_F77=yes
14200  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14201  	  hardcode_libdir_separator_F77=
14202	  fi
14203	esac
14204	shared_flag='-shared'
14205	if test "$aix_use_runtimelinking" = yes; then
14206	  shared_flag="$shared_flag "'${wl}-G'
14207	fi
14208      else
14209	# not using gcc
14210	if test "$host_cpu" = ia64; then
14211  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14212  	# chokes on -Wl,-G. The following line is correct:
14213	  shared_flag='-G'
14214	else
14215  	if test "$aix_use_runtimelinking" = yes; then
14216	    shared_flag='${wl}-G'
14217	  else
14218	    shared_flag='${wl}-bM:SRE'
14219  	fi
14220	fi
14221      fi
14222
14223      # It seems that -bexpall does not export symbols beginning with
14224      # underscore (_), so it is better to generate a list of symbols to export.
14225      always_export_symbols_F77=yes
14226      if test "$aix_use_runtimelinking" = yes; then
14227	# Warning - without using the other runtime loading flags (-brtl),
14228	# -berok will link without error, but may produce a broken library.
14229	allow_undefined_flag_F77='-berok'
14230       # Determine the default libpath from the value encoded in an empty executable.
14231       cat >conftest.$ac_ext <<_ACEOF
14232      program main
14233
14234      end
14235_ACEOF
14236rm -f conftest.$ac_objext conftest$ac_exeext
14237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238  (eval $ac_link) 2>conftest.er1
14239  ac_status=$?
14240  grep -v '^ *+' conftest.er1 >conftest.err
14241  rm -f conftest.er1
14242  cat conftest.err >&5
14243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244  (exit $ac_status); } &&
14245	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247  (eval $ac_try) 2>&5
14248  ac_status=$?
14249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250  (exit $ac_status); }; } &&
14251	 { ac_try='test -s conftest$ac_exeext'
14252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253  (eval $ac_try) 2>&5
14254  ac_status=$?
14255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256  (exit $ac_status); }; }; then
14257
14258aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14259}'`
14260# Check for a 64-bit object if we didn't find anything.
14261if 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; }
14262}'`; fi
14263else
14264  echo "$as_me: failed program was:" >&5
14265sed 's/^/| /' conftest.$ac_ext >&5
14266
14267fi
14268rm -f conftest.err conftest.$ac_objext \
14269      conftest$ac_exeext conftest.$ac_ext
14270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14271
14272       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14273	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"
14274       else
14275	if test "$host_cpu" = ia64; then
14276	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14277	  allow_undefined_flag_F77="-z nodefs"
14278	  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"
14279	else
14280	 # Determine the default libpath from the value encoded in an empty executable.
14281	 cat >conftest.$ac_ext <<_ACEOF
14282      program main
14283
14284      end
14285_ACEOF
14286rm -f conftest.$ac_objext conftest$ac_exeext
14287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288  (eval $ac_link) 2>conftest.er1
14289  ac_status=$?
14290  grep -v '^ *+' conftest.er1 >conftest.err
14291  rm -f conftest.er1
14292  cat conftest.err >&5
14293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294  (exit $ac_status); } &&
14295	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
14296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297  (eval $ac_try) 2>&5
14298  ac_status=$?
14299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300  (exit $ac_status); }; } &&
14301	 { ac_try='test -s conftest$ac_exeext'
14302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303  (eval $ac_try) 2>&5
14304  ac_status=$?
14305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306  (exit $ac_status); }; }; then
14307
14308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14309}'`
14310# Check for a 64-bit object if we didn't find anything.
14311if 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; }
14312}'`; fi
14313else
14314  echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317fi
14318rm -f conftest.err conftest.$ac_objext \
14319      conftest$ac_exeext conftest.$ac_ext
14320if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14321
14322	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14323	  # Warning - without using the other run time loading flags,
14324	  # -berok will link without error, but may produce a broken library.
14325	  no_undefined_flag_F77=' ${wl}-bernotok'
14326	  allow_undefined_flag_F77=' ${wl}-berok'
14327	  # -bexpall does not export symbols beginning with underscore (_)
14328	  always_export_symbols_F77=yes
14329	  # Exported symbols can be pulled into shared objects from archives
14330	  whole_archive_flag_spec_F77=' '
14331	  archive_cmds_need_lc_F77=yes
14332	  # This is similar to how AIX traditionally builds its shared libraries.
14333	  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'
14334	fi
14335      fi
14336      ;;
14337
14338    amigaos*)
14339      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)'
14340      hardcode_libdir_flag_spec_F77='-L$libdir'
14341      hardcode_minus_L_F77=yes
14342      # see comment about different semantics on the GNU ld section
14343      ld_shlibs_F77=no
14344      ;;
14345
14346    bsdi[45]*)
14347      export_dynamic_flag_spec_F77=-rdynamic
14348      ;;
14349
14350    cygwin* | mingw* | pw32*)
14351      # When not using gcc, we currently assume that we are using
14352      # Microsoft Visual C++.
14353      # hardcode_libdir_flag_spec is actually meaningless, as there is
14354      # no search path for DLLs.
14355      hardcode_libdir_flag_spec_F77=' '
14356      allow_undefined_flag_F77=unsupported
14357      # Tell ltmain to make .lib files, not .a files.
14358      libext=lib
14359      # Tell ltmain to make .dll files, not .so files.
14360      shrext_cmds=".dll"
14361      # FIXME: Setting linknames here is a bad hack.
14362      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14363      # The linker will automatically build a .lib file if we build a DLL.
14364      old_archive_From_new_cmds_F77='true'
14365      # FIXME: Should let the user specify the lib program.
14366      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14367      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14368      enable_shared_with_static_runtimes_F77=yes
14369      ;;
14370
14371    darwin* | rhapsody*)
14372      case $host_os in
14373        rhapsody* | darwin1.[012])
14374         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14375         ;;
14376       *) # Darwin 1.3 on
14377         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14378           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14379         else
14380           case ${MACOSX_DEPLOYMENT_TARGET} in
14381             10.[012])
14382               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14383               ;;
14384             10.*)
14385               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14386               ;;
14387           esac
14388         fi
14389         ;;
14390      esac
14391      archive_cmds_need_lc_F77=no
14392      hardcode_direct_F77=no
14393      hardcode_automatic_F77=yes
14394      hardcode_shlibpath_var_F77=unsupported
14395      whole_archive_flag_spec_F77=''
14396      link_all_deplibs_F77=yes
14397    if test "$GCC" = yes ; then
14398    	output_verbose_link_cmd='echo'
14399        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14400      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14401      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14402      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}'
14403      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}'
14404    else
14405      case $cc_basename in
14406        xlc*)
14407         output_verbose_link_cmd='echo'
14408         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14409         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14410          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14411         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}'
14412          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}'
14413          ;;
14414       *)
14415         ld_shlibs_F77=no
14416          ;;
14417      esac
14418    fi
14419      ;;
14420
14421    dgux*)
14422      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423      hardcode_libdir_flag_spec_F77='-L$libdir'
14424      hardcode_shlibpath_var_F77=no
14425      ;;
14426
14427    freebsd1*)
14428      ld_shlibs_F77=no
14429      ;;
14430
14431    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14432    # support.  Future versions do this automatically, but an explicit c++rt0.o
14433    # does not break anything, and helps significantly (at the cost of a little
14434    # extra space).
14435    freebsd2.2*)
14436      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14437      hardcode_libdir_flag_spec_F77='-R$libdir'
14438      hardcode_direct_F77=yes
14439      hardcode_shlibpath_var_F77=no
14440      ;;
14441
14442    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14443    freebsd2*)
14444      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14445      hardcode_direct_F77=yes
14446      hardcode_minus_L_F77=yes
14447      hardcode_shlibpath_var_F77=no
14448      ;;
14449
14450    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14451    freebsd* | kfreebsd*-gnu | dragonfly*)
14452      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14453      hardcode_libdir_flag_spec_F77='-R$libdir'
14454      hardcode_direct_F77=yes
14455      hardcode_shlibpath_var_F77=no
14456      ;;
14457
14458    hpux9*)
14459      if test "$GCC" = yes; then
14460	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'
14461      else
14462	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'
14463      fi
14464      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14465      hardcode_libdir_separator_F77=:
14466      hardcode_direct_F77=yes
14467
14468      # hardcode_minus_L: Not really in the search PATH,
14469      # but as the default location of the library.
14470      hardcode_minus_L_F77=yes
14471      export_dynamic_flag_spec_F77='${wl}-E'
14472      ;;
14473
14474    hpux10* | hpux11*)
14475      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14476	case $host_cpu in
14477	hppa*64*|ia64*)
14478	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14479	  ;;
14480	*)
14481	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14482	  ;;
14483	esac
14484      else
14485	case $host_cpu in
14486	hppa*64*|ia64*)
14487	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14488	  ;;
14489	*)
14490	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14491	  ;;
14492	esac
14493      fi
14494      if test "$with_gnu_ld" = no; then
14495	case $host_cpu in
14496	hppa*64*)
14497	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14498	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14499	  hardcode_libdir_separator_F77=:
14500	  hardcode_direct_F77=no
14501	  hardcode_shlibpath_var_F77=no
14502	  ;;
14503	ia64*)
14504	  hardcode_libdir_flag_spec_F77='-L$libdir'
14505	  hardcode_direct_F77=no
14506	  hardcode_shlibpath_var_F77=no
14507
14508	  # hardcode_minus_L: Not really in the search PATH,
14509	  # but as the default location of the library.
14510	  hardcode_minus_L_F77=yes
14511	  ;;
14512	*)
14513	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14514	  hardcode_libdir_separator_F77=:
14515	  hardcode_direct_F77=yes
14516	  export_dynamic_flag_spec_F77='${wl}-E'
14517
14518	  # hardcode_minus_L: Not really in the search PATH,
14519	  # but as the default location of the library.
14520	  hardcode_minus_L_F77=yes
14521	  ;;
14522	esac
14523      fi
14524      ;;
14525
14526    irix5* | irix6* | nonstopux*)
14527      if test "$GCC" = yes; then
14528	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'
14529      else
14530	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'
14531	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14532      fi
14533      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14534      hardcode_libdir_separator_F77=:
14535      link_all_deplibs_F77=yes
14536      ;;
14537
14538    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14539      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14540	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14541      else
14542	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14543      fi
14544      hardcode_libdir_flag_spec_F77='-R$libdir'
14545      hardcode_direct_F77=yes
14546      hardcode_shlibpath_var_F77=no
14547      ;;
14548
14549    newsos6)
14550      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14551      hardcode_direct_F77=yes
14552      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14553      hardcode_libdir_separator_F77=:
14554      hardcode_shlibpath_var_F77=no
14555      ;;
14556
14557    openbsd*)
14558      hardcode_direct_F77=yes
14559      hardcode_shlibpath_var_F77=no
14560      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14561	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14562	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14563	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14564	export_dynamic_flag_spec_F77='${wl}-E'
14565      else
14566       case $host_os in
14567	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14568	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14569	   hardcode_libdir_flag_spec_F77='-R$libdir'
14570	   ;;
14571	 *)
14572	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14573	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14574	   ;;
14575       esac
14576      fi
14577      ;;
14578
14579    os2*)
14580      hardcode_libdir_flag_spec_F77='-L$libdir'
14581      hardcode_minus_L_F77=yes
14582      allow_undefined_flag_F77=unsupported
14583      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'
14584      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14585      ;;
14586
14587    osf3*)
14588      if test "$GCC" = yes; then
14589	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14590	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'
14591      else
14592	allow_undefined_flag_F77=' -expect_unresolved \*'
14593	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'
14594      fi
14595      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14596      hardcode_libdir_separator_F77=:
14597      ;;
14598
14599    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14600      if test "$GCC" = yes; then
14601	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14602	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'
14603	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14604      else
14605	allow_undefined_flag_F77=' -expect_unresolved \*'
14606	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'
14607	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~
14608	$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'
14609
14610	# Both c and cxx compiler support -rpath directly
14611	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14612      fi
14613      hardcode_libdir_separator_F77=:
14614      ;;
14615
14616    sco3.2v5*)
14617      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618      hardcode_shlibpath_var_F77=no
14619      export_dynamic_flag_spec_F77='${wl}-Bexport'
14620      runpath_var=LD_RUN_PATH
14621      hardcode_runpath_var=yes
14622      ;;
14623
14624    solaris*)
14625      no_undefined_flag_F77=' -z text'
14626      if test "$GCC" = yes; then
14627	wlarc='${wl}'
14628	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14629	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14630	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14631      else
14632	wlarc=''
14633	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14635  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14636      fi
14637      hardcode_libdir_flag_spec_F77='-R$libdir'
14638      hardcode_shlibpath_var_F77=no
14639      case $host_os in
14640      solaris2.[0-5] | solaris2.[0-5].*) ;;
14641      *)
14642 	# The compiler driver will combine linker options so we
14643 	# cannot just pass the convience library names through
14644 	# without $wl, iff we do not link with $LD.
14645 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14646 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14647 	case $wlarc in
14648 	'')
14649 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14650 	*)
14651 	  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' ;;
14652 	esac ;;
14653      esac
14654      link_all_deplibs_F77=yes
14655      ;;
14656
14657    sunos4*)
14658      if test "x$host_vendor" = xsequent; then
14659	# Use $CC to link under sequent, because it throws in some extra .o
14660	# files that make .init and .fini sections work.
14661	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14662      else
14663	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14664      fi
14665      hardcode_libdir_flag_spec_F77='-L$libdir'
14666      hardcode_direct_F77=yes
14667      hardcode_minus_L_F77=yes
14668      hardcode_shlibpath_var_F77=no
14669      ;;
14670
14671    sysv4)
14672      case $host_vendor in
14673	sni)
14674	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675	  hardcode_direct_F77=yes # is this really true???
14676	;;
14677	siemens)
14678	  ## LD is ld it makes a PLAMLIB
14679	  ## CC just makes a GrossModule.
14680	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14681	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14682	  hardcode_direct_F77=no
14683        ;;
14684	motorola)
14685	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14687	;;
14688      esac
14689      runpath_var='LD_RUN_PATH'
14690      hardcode_shlibpath_var_F77=no
14691      ;;
14692
14693    sysv4.3*)
14694      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695      hardcode_shlibpath_var_F77=no
14696      export_dynamic_flag_spec_F77='-Bexport'
14697      ;;
14698
14699    sysv4*MP*)
14700      if test -d /usr/nec; then
14701	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702	hardcode_shlibpath_var_F77=no
14703	runpath_var=LD_RUN_PATH
14704	hardcode_runpath_var=yes
14705	ld_shlibs_F77=yes
14706      fi
14707      ;;
14708
14709    sysv4.2uw2*)
14710      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14711      hardcode_direct_F77=yes
14712      hardcode_minus_L_F77=no
14713      hardcode_shlibpath_var_F77=no
14714      hardcode_runpath_var=yes
14715      runpath_var=LD_RUN_PATH
14716      ;;
14717
14718   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14719      no_undefined_flag_F77='${wl}-z ${wl}text'
14720      if test "$GCC" = yes; then
14721	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14722      else
14723	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14724      fi
14725      runpath_var='LD_RUN_PATH'
14726      hardcode_shlibpath_var_F77=no
14727      ;;
14728
14729    sysv5*)
14730      no_undefined_flag_F77=' -z text'
14731      # $CC -shared without GNU ld will not create a library from C++
14732      # object files and a static libstdc++, better avoid it by now
14733      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14734      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14735  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14736      hardcode_libdir_flag_spec_F77=
14737      hardcode_shlibpath_var_F77=no
14738      runpath_var='LD_RUN_PATH'
14739      ;;
14740
14741    uts4*)
14742      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14743      hardcode_libdir_flag_spec_F77='-L$libdir'
14744      hardcode_shlibpath_var_F77=no
14745      ;;
14746
14747    *)
14748      ld_shlibs_F77=no
14749      ;;
14750    esac
14751  fi
14752
14753echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14754echo "${ECHO_T}$ld_shlibs_F77" >&6
14755test "$ld_shlibs_F77" = no && can_build_shared=no
14756
14757variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14758if test "$GCC" = yes; then
14759  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14760fi
14761
14762#
14763# Do we need to explicitly link libc?
14764#
14765case "x$archive_cmds_need_lc_F77" in
14766x|xyes)
14767  # Assume -lc should be added
14768  archive_cmds_need_lc_F77=yes
14769
14770  if test "$enable_shared" = yes && test "$GCC" = yes; then
14771    case $archive_cmds_F77 in
14772    *'~'*)
14773      # FIXME: we may have to deal with multi-command sequences.
14774      ;;
14775    '$CC '*)
14776      # Test whether the compiler implicitly links with -lc since on some
14777      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14778      # to ld, don't add -lc before -lgcc.
14779      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14781      $rm conftest*
14782      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14783
14784      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785  (eval $ac_compile) 2>&5
14786  ac_status=$?
14787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788  (exit $ac_status); } 2>conftest.err; then
14789        soname=conftest
14790        lib=conftest
14791        libobjs=conftest.$ac_objext
14792        deplibs=
14793        wl=$lt_prog_compiler_wl_F77
14794        compiler_flags=-v
14795        linker_flags=-v
14796        verstring=
14797        output_objdir=.
14798        libname=conftest
14799        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14800        allow_undefined_flag_F77=
14801        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14802  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14803  ac_status=$?
14804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805  (exit $ac_status); }
14806        then
14807	  archive_cmds_need_lc_F77=no
14808        else
14809	  archive_cmds_need_lc_F77=yes
14810        fi
14811        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14812      else
14813        cat conftest.err 1>&5
14814      fi
14815      $rm conftest*
14816      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14817echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14818      ;;
14819    esac
14820  fi
14821  ;;
14822esac
14823
14824echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14825echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14826library_names_spec=
14827libname_spec='lib$name'
14828soname_spec=
14829shrext_cmds=".so"
14830postinstall_cmds=
14831postuninstall_cmds=
14832finish_cmds=
14833finish_eval=
14834shlibpath_var=
14835shlibpath_overrides_runpath=unknown
14836version_type=none
14837dynamic_linker="$host_os ld.so"
14838sys_lib_dlsearch_path_spec="/lib /usr/lib"
14839if test "$GCC" = yes; then
14840  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14841  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14842    # if the path contains ";" then we assume it to be the separator
14843    # otherwise default to the standard path separator (i.e. ":") - it is
14844    # assumed that no part of a normal pathname contains ";" but that should
14845    # okay in the real world where ";" in dirpaths is itself problematic.
14846    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14847  else
14848    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14849  fi
14850else
14851  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14852fi
14853need_lib_prefix=unknown
14854hardcode_into_libs=no
14855
14856# when you set need_version to no, make sure it does not cause -set_version
14857# flags to be left without arguments
14858need_version=unknown
14859
14860case $host_os in
14861aix3*)
14862  version_type=linux
14863  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14864  shlibpath_var=LIBPATH
14865
14866  # AIX 3 has no versioning support, so we append a major version to the name.
14867  soname_spec='${libname}${release}${shared_ext}$major'
14868  ;;
14869
14870aix4* | aix5*)
14871  version_type=linux
14872  need_lib_prefix=no
14873  need_version=no
14874  hardcode_into_libs=yes
14875  if test "$host_cpu" = ia64; then
14876    # AIX 5 supports IA64
14877    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14878    shlibpath_var=LD_LIBRARY_PATH
14879  else
14880    # With GCC up to 2.95.x, collect2 would create an import file
14881    # for dependence libraries.  The import file would start with
14882    # the line `#! .'.  This would cause the generated library to
14883    # depend on `.', always an invalid library.  This was fixed in
14884    # development snapshots of GCC prior to 3.0.
14885    case $host_os in
14886      aix4 | aix4.[01] | aix4.[01].*)
14887      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14888	   echo ' yes '
14889	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14890	:
14891      else
14892	can_build_shared=no
14893      fi
14894      ;;
14895    esac
14896    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14897    # soname into executable. Probably we can add versioning support to
14898    # collect2, so additional links can be useful in future.
14899    if test "$aix_use_runtimelinking" = yes; then
14900      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14901      # instead of lib<name>.a to let people know that these are not
14902      # typical AIX shared libraries.
14903      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904    else
14905      # We preserve .a as extension for shared libraries through AIX4.2
14906      # and later when we are not doing run time linking.
14907      library_names_spec='${libname}${release}.a $libname.a'
14908      soname_spec='${libname}${release}${shared_ext}$major'
14909    fi
14910    shlibpath_var=LIBPATH
14911  fi
14912  ;;
14913
14914amigaos*)
14915  library_names_spec='$libname.ixlibrary $libname.a'
14916  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14917  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'
14918  ;;
14919
14920beos*)
14921  library_names_spec='${libname}${shared_ext}'
14922  dynamic_linker="$host_os ld.so"
14923  shlibpath_var=LIBRARY_PATH
14924  ;;
14925
14926bsdi[45]*)
14927  version_type=linux
14928  need_version=no
14929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930  soname_spec='${libname}${release}${shared_ext}$major'
14931  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14932  shlibpath_var=LD_LIBRARY_PATH
14933  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14934  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14935  # the default ld.so.conf also contains /usr/contrib/lib and
14936  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14937  # libtool to hard-code these into programs
14938  ;;
14939
14940cygwin* | mingw* | pw32*)
14941  version_type=windows
14942  shrext_cmds=".dll"
14943  need_version=no
14944  need_lib_prefix=no
14945
14946  case $GCC,$host_os in
14947  yes,cygwin* | yes,mingw* | yes,pw32*)
14948    library_names_spec='$libname.dll.a'
14949    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14950    postinstall_cmds='base_file=`basename \${file}`~
14951      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14952      dldir=$destdir/`dirname \$dlpath`~
14953      test -d \$dldir || mkdir -p \$dldir~
14954      $install_prog $dir/$dlname \$dldir/$dlname~
14955      chmod a+x \$dldir/$dlname'
14956    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14957      dlpath=$dir/\$dldll~
14958       $rm \$dlpath'
14959    shlibpath_overrides_runpath=yes
14960
14961    case $host_os in
14962    cygwin*)
14963      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14964      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14965      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14966      ;;
14967    mingw*)
14968      # MinGW DLLs use traditional 'lib' prefix
14969      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14970      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14971      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14972        # It is most probably a Windows format PATH printed by
14973        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14974        # path with ; separators, and with drive letters. We can handle the
14975        # drive letters (cygwin fileutils understands them), so leave them,
14976        # especially as we might pass files found there to a mingw objdump,
14977        # which wouldn't understand a cygwinified path. Ahh.
14978        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14979      else
14980        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14981      fi
14982      ;;
14983    pw32*)
14984      # pw32 DLLs use 'pw' prefix rather than 'lib'
14985      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14986      ;;
14987    esac
14988    ;;
14989
14990  *)
14991    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14992    ;;
14993  esac
14994  dynamic_linker='Win32 ld.exe'
14995  # FIXME: first we should search . and the directory the executable is in
14996  shlibpath_var=PATH
14997  ;;
14998
14999darwin* | rhapsody*)
15000  dynamic_linker="$host_os dyld"
15001  version_type=darwin
15002  need_lib_prefix=no
15003  need_version=no
15004  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15005  soname_spec='${libname}${release}${major}$shared_ext'
15006  shlibpath_overrides_runpath=yes
15007  shlibpath_var=DYLD_LIBRARY_PATH
15008  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15009  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15010  if test "$GCC" = yes; then
15011    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"`
15012  else
15013    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15014  fi
15015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15016  ;;
15017
15018dgux*)
15019  version_type=linux
15020  need_lib_prefix=no
15021  need_version=no
15022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15023  soname_spec='${libname}${release}${shared_ext}$major'
15024  shlibpath_var=LD_LIBRARY_PATH
15025  ;;
15026
15027freebsd1*)
15028  dynamic_linker=no
15029  ;;
15030
15031kfreebsd*-gnu)
15032  version_type=linux
15033  need_lib_prefix=no
15034  need_version=no
15035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15036  soname_spec='${libname}${release}${shared_ext}$major'
15037  shlibpath_var=LD_LIBRARY_PATH
15038  shlibpath_overrides_runpath=no
15039  hardcode_into_libs=yes
15040  dynamic_linker='GNU ld.so'
15041  ;;
15042
15043freebsd* | dragonfly*)
15044  # DragonFly does not have aout.  When/if they implement a new
15045  # versioning mechanism, adjust this.
15046  if test -x /usr/bin/objformat; then
15047    objformat=`/usr/bin/objformat`
15048  else
15049    case $host_os in
15050    freebsd[123]*) objformat=aout ;;
15051    *) objformat=elf ;;
15052    esac
15053  fi
15054  version_type=freebsd-$objformat
15055  case $version_type in
15056    freebsd-elf*)
15057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15058      need_version=no
15059      need_lib_prefix=no
15060      ;;
15061    freebsd-*)
15062      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15063      need_version=yes
15064      ;;
15065  esac
15066  shlibpath_var=LD_LIBRARY_PATH
15067  case $host_os in
15068  freebsd2*)
15069    shlibpath_overrides_runpath=yes
15070    ;;
15071  freebsd3.[01]* | freebsdelf3.[01]*)
15072    shlibpath_overrides_runpath=yes
15073    hardcode_into_libs=yes
15074    ;;
15075  *) # from 3.2 on
15076    shlibpath_overrides_runpath=no
15077    hardcode_into_libs=yes
15078    ;;
15079  esac
15080  ;;
15081
15082gnu*)
15083  version_type=linux
15084  need_lib_prefix=no
15085  need_version=no
15086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15087  soname_spec='${libname}${release}${shared_ext}$major'
15088  shlibpath_var=LD_LIBRARY_PATH
15089  hardcode_into_libs=yes
15090  ;;
15091
15092hpux9* | hpux10* | hpux11*)
15093  # Give a soname corresponding to the major version so that dld.sl refuses to
15094  # link against other versions.
15095  version_type=sunos
15096  need_lib_prefix=no
15097  need_version=no
15098  case $host_cpu in
15099  ia64*)
15100    shrext_cmds='.so'
15101    hardcode_into_libs=yes
15102    dynamic_linker="$host_os dld.so"
15103    shlibpath_var=LD_LIBRARY_PATH
15104    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106    soname_spec='${libname}${release}${shared_ext}$major'
15107    if test "X$HPUX_IA64_MODE" = X32; then
15108      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15109    else
15110      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15111    fi
15112    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15113    ;;
15114   hppa*64*)
15115     shrext_cmds='.sl'
15116     hardcode_into_libs=yes
15117     dynamic_linker="$host_os dld.sl"
15118     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15119     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15121     soname_spec='${libname}${release}${shared_ext}$major'
15122     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15124     ;;
15125   *)
15126    shrext_cmds='.sl'
15127    dynamic_linker="$host_os dld.sl"
15128    shlibpath_var=SHLIB_PATH
15129    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131    soname_spec='${libname}${release}${shared_ext}$major'
15132    ;;
15133  esac
15134  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15135  postinstall_cmds='chmod 555 $lib'
15136  ;;
15137
15138irix5* | irix6* | nonstopux*)
15139  case $host_os in
15140    nonstopux*) version_type=nonstopux ;;
15141    *)
15142	if test "$lt_cv_prog_gnu_ld" = yes; then
15143		version_type=linux
15144	else
15145		version_type=irix
15146	fi ;;
15147  esac
15148  need_lib_prefix=no
15149  need_version=no
15150  soname_spec='${libname}${release}${shared_ext}$major'
15151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15152  case $host_os in
15153  irix5* | nonstopux*)
15154    libsuff= shlibsuff=
15155    ;;
15156  *)
15157    case $LD in # libtool.m4 will add one of these switches to LD
15158    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15159      libsuff= shlibsuff= libmagic=32-bit;;
15160    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15161      libsuff=32 shlibsuff=N32 libmagic=N32;;
15162    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15163      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15164    *) libsuff= shlibsuff= libmagic=never-match;;
15165    esac
15166    ;;
15167  esac
15168  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15169  shlibpath_overrides_runpath=no
15170  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15171  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15172  hardcode_into_libs=yes
15173  ;;
15174
15175# No shared lib support for Linux oldld, aout, or coff.
15176linux*oldld* | linux*aout* | linux*coff*)
15177  dynamic_linker=no
15178  ;;
15179
15180# This must be Linux ELF.
15181linux*)
15182  version_type=linux
15183  need_lib_prefix=no
15184  need_version=no
15185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186  soname_spec='${libname}${release}${shared_ext}$major'
15187  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15188  shlibpath_var=LD_LIBRARY_PATH
15189  shlibpath_overrides_runpath=no
15190  # This implies no fast_install, which is unacceptable.
15191  # Some rework will be needed to allow for fast_install
15192  # before this can be enabled.
15193  hardcode_into_libs=yes
15194
15195  # Append ld.so.conf contents to the search path
15196  if test -f /etc/ld.so.conf; then
15197    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' ' '`
15198    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15199  fi
15200
15201  # We used to test for /lib/ld.so.1 and disable shared libraries on
15202  # powerpc, because MkLinux only supported shared libraries with the
15203  # GNU dynamic linker.  Since this was broken with cross compilers,
15204  # most powerpc-linux boxes support dynamic linking these days and
15205  # people can always --disable-shared, the test was removed, and we
15206  # assume the GNU/Linux dynamic linker is in use.
15207  dynamic_linker='GNU/Linux ld.so'
15208  ;;
15209
15210netbsdelf*-gnu)
15211  version_type=linux
15212  need_lib_prefix=no
15213  need_version=no
15214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215  soname_spec='${libname}${release}${shared_ext}$major'
15216  shlibpath_var=LD_LIBRARY_PATH
15217  shlibpath_overrides_runpath=no
15218  hardcode_into_libs=yes
15219  dynamic_linker='NetBSD ld.elf_so'
15220  ;;
15221
15222knetbsd*-gnu)
15223  version_type=linux
15224  need_lib_prefix=no
15225  need_version=no
15226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15227  soname_spec='${libname}${release}${shared_ext}$major'
15228  shlibpath_var=LD_LIBRARY_PATH
15229  shlibpath_overrides_runpath=no
15230  hardcode_into_libs=yes
15231  dynamic_linker='GNU ld.so'
15232  ;;
15233
15234netbsd*)
15235  version_type=sunos
15236  need_lib_prefix=no
15237  need_version=no
15238  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15239    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15240    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15241    dynamic_linker='NetBSD (a.out) ld.so'
15242  else
15243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15244    soname_spec='${libname}${release}${shared_ext}$major'
15245    dynamic_linker='NetBSD ld.elf_so'
15246  fi
15247  shlibpath_var=LD_LIBRARY_PATH
15248  shlibpath_overrides_runpath=yes
15249  hardcode_into_libs=yes
15250  ;;
15251
15252newsos6)
15253  version_type=linux
15254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255  shlibpath_var=LD_LIBRARY_PATH
15256  shlibpath_overrides_runpath=yes
15257  ;;
15258
15259nto-qnx*)
15260  version_type=linux
15261  need_lib_prefix=no
15262  need_version=no
15263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264  soname_spec='${libname}${release}${shared_ext}$major'
15265  shlibpath_var=LD_LIBRARY_PATH
15266  shlibpath_overrides_runpath=yes
15267  ;;
15268
15269openbsd*)
15270  version_type=sunos
15271  need_lib_prefix=no
15272  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15273  case $host_os in
15274    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15275    *)                         need_version=no  ;;
15276  esac
15277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15278  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15279  shlibpath_var=LD_LIBRARY_PATH
15280  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281    case $host_os in
15282      openbsd2.[89] | openbsd2.[89].*)
15283	shlibpath_overrides_runpath=no
15284	;;
15285      *)
15286	shlibpath_overrides_runpath=yes
15287	;;
15288      esac
15289  else
15290    shlibpath_overrides_runpath=yes
15291  fi
15292  ;;
15293
15294os2*)
15295  libname_spec='$name'
15296  shrext_cmds=".dll"
15297  need_lib_prefix=no
15298  library_names_spec='$libname${shared_ext} $libname.a'
15299  dynamic_linker='OS/2 ld.exe'
15300  shlibpath_var=LIBPATH
15301  ;;
15302
15303osf3* | osf4* | osf5*)
15304  version_type=osf
15305  need_lib_prefix=no
15306  need_version=no
15307  soname_spec='${libname}${release}${shared_ext}$major'
15308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15309  shlibpath_var=LD_LIBRARY_PATH
15310  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15311  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15312  ;;
15313
15314sco3.2v5*)
15315  version_type=osf
15316  soname_spec='${libname}${release}${shared_ext}$major'
15317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318  shlibpath_var=LD_LIBRARY_PATH
15319  ;;
15320
15321solaris*)
15322  version_type=linux
15323  need_lib_prefix=no
15324  need_version=no
15325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326  soname_spec='${libname}${release}${shared_ext}$major'
15327  shlibpath_var=LD_LIBRARY_PATH
15328  shlibpath_overrides_runpath=yes
15329  hardcode_into_libs=yes
15330  # ldd complains unless libraries are executable
15331  postinstall_cmds='chmod +x $lib'
15332  ;;
15333
15334sunos4*)
15335  version_type=sunos
15336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15337  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15338  shlibpath_var=LD_LIBRARY_PATH
15339  shlibpath_overrides_runpath=yes
15340  if test "$with_gnu_ld" = yes; then
15341    need_lib_prefix=no
15342  fi
15343  need_version=yes
15344  ;;
15345
15346sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15347  version_type=linux
15348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349  soname_spec='${libname}${release}${shared_ext}$major'
15350  shlibpath_var=LD_LIBRARY_PATH
15351  case $host_vendor in
15352    sni)
15353      shlibpath_overrides_runpath=no
15354      need_lib_prefix=no
15355      export_dynamic_flag_spec='${wl}-Blargedynsym'
15356      runpath_var=LD_RUN_PATH
15357      ;;
15358    siemens)
15359      need_lib_prefix=no
15360      ;;
15361    motorola)
15362      need_lib_prefix=no
15363      need_version=no
15364      shlibpath_overrides_runpath=no
15365      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15366      ;;
15367  esac
15368  ;;
15369
15370sysv4*MP*)
15371  if test -d /usr/nec ;then
15372    version_type=linux
15373    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15374    soname_spec='$libname${shared_ext}.$major'
15375    shlibpath_var=LD_LIBRARY_PATH
15376  fi
15377  ;;
15378
15379uts4*)
15380  version_type=linux
15381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382  soname_spec='${libname}${release}${shared_ext}$major'
15383  shlibpath_var=LD_LIBRARY_PATH
15384  ;;
15385
15386*)
15387  dynamic_linker=no
15388  ;;
15389esac
15390echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15391echo "${ECHO_T}$dynamic_linker" >&6
15392test "$dynamic_linker" = no && can_build_shared=no
15393
15394echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15395echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15396hardcode_action_F77=
15397if test -n "$hardcode_libdir_flag_spec_F77" || \
15398   test -n "$runpath_var_F77" || \
15399   test "X$hardcode_automatic_F77" = "Xyes" ; then
15400
15401  # We can hardcode non-existant directories.
15402  if test "$hardcode_direct_F77" != no &&
15403     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15404     # have to relink, otherwise we might link with an installed library
15405     # when we should be linking with a yet-to-be-installed one
15406     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15407     test "$hardcode_minus_L_F77" != no; then
15408    # Linking always hardcodes the temporary library directory.
15409    hardcode_action_F77=relink
15410  else
15411    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15412    hardcode_action_F77=immediate
15413  fi
15414else
15415  # We cannot hardcode anything, or else we can only hardcode existing
15416  # directories.
15417  hardcode_action_F77=unsupported
15418fi
15419echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15420echo "${ECHO_T}$hardcode_action_F77" >&6
15421
15422if test "$hardcode_action_F77" = relink; then
15423  # Fast installation is not supported
15424  enable_fast_install=no
15425elif test "$shlibpath_overrides_runpath" = yes ||
15426     test "$enable_shared" = no; then
15427  # Fast installation is not necessary
15428  enable_fast_install=needless
15429fi
15430
15431striplib=
15432old_striplib=
15433echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15434echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15435if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15436  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15437  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15438  echo "$as_me:$LINENO: result: yes" >&5
15439echo "${ECHO_T}yes" >&6
15440else
15441# FIXME - insert some real tests, host_os isn't really good enough
15442  case $host_os in
15443   darwin*)
15444       if test -n "$STRIP" ; then
15445         striplib="$STRIP -x"
15446         echo "$as_me:$LINENO: result: yes" >&5
15447echo "${ECHO_T}yes" >&6
15448       else
15449  echo "$as_me:$LINENO: result: no" >&5
15450echo "${ECHO_T}no" >&6
15451fi
15452       ;;
15453   *)
15454  echo "$as_me:$LINENO: result: no" >&5
15455echo "${ECHO_T}no" >&6
15456    ;;
15457  esac
15458fi
15459
15460
15461
15462# The else clause should only fire when bootstrapping the
15463# libtool distribution, otherwise you forgot to ship ltmain.sh
15464# with your package, and you will get complaints that there are
15465# no rules to generate ltmain.sh.
15466if test -f "$ltmain"; then
15467  # See if we are running on zsh, and set the options which allow our commands through
15468  # without removal of \ escapes.
15469  if test -n "${ZSH_VERSION+set}" ; then
15470    setopt NO_GLOB_SUBST
15471  fi
15472  # Now quote all the things that may contain metacharacters while being
15473  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15474  # variables and quote the copies for generation of the libtool script.
15475  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15476    SED SHELL STRIP \
15477    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15478    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15479    deplibs_check_method reload_flag reload_cmds need_locks \
15480    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15481    lt_cv_sys_global_symbol_to_c_name_address \
15482    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15483    old_postinstall_cmds old_postuninstall_cmds \
15484    compiler_F77 \
15485    CC_F77 \
15486    LD_F77 \
15487    lt_prog_compiler_wl_F77 \
15488    lt_prog_compiler_pic_F77 \
15489    lt_prog_compiler_static_F77 \
15490    lt_prog_compiler_no_builtin_flag_F77 \
15491    export_dynamic_flag_spec_F77 \
15492    thread_safe_flag_spec_F77 \
15493    whole_archive_flag_spec_F77 \
15494    enable_shared_with_static_runtimes_F77 \
15495    old_archive_cmds_F77 \
15496    old_archive_from_new_cmds_F77 \
15497    predep_objects_F77 \
15498    postdep_objects_F77 \
15499    predeps_F77 \
15500    postdeps_F77 \
15501    compiler_lib_search_path_F77 \
15502    archive_cmds_F77 \
15503    archive_expsym_cmds_F77 \
15504    postinstall_cmds_F77 \
15505    postuninstall_cmds_F77 \
15506    old_archive_from_expsyms_cmds_F77 \
15507    allow_undefined_flag_F77 \
15508    no_undefined_flag_F77 \
15509    export_symbols_cmds_F77 \
15510    hardcode_libdir_flag_spec_F77 \
15511    hardcode_libdir_flag_spec_ld_F77 \
15512    hardcode_libdir_separator_F77 \
15513    hardcode_automatic_F77 \
15514    module_cmds_F77 \
15515    module_expsym_cmds_F77 \
15516    lt_cv_prog_compiler_c_o_F77 \
15517    exclude_expsyms_F77 \
15518    include_expsyms_F77; do
15519
15520    case $var in
15521    old_archive_cmds_F77 | \
15522    old_archive_from_new_cmds_F77 | \
15523    archive_cmds_F77 | \
15524    archive_expsym_cmds_F77 | \
15525    module_cmds_F77 | \
15526    module_expsym_cmds_F77 | \
15527    old_archive_from_expsyms_cmds_F77 | \
15528    export_symbols_cmds_F77 | \
15529    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15530    postinstall_cmds | postuninstall_cmds | \
15531    old_postinstall_cmds | old_postuninstall_cmds | \
15532    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15533      # Double-quote double-evaled strings.
15534      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15535      ;;
15536    *)
15537      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15538      ;;
15539    esac
15540  done
15541
15542  case $lt_echo in
15543  *'\$0 --fallback-echo"')
15544    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15545    ;;
15546  esac
15547
15548cfgfile="$ofile"
15549
15550  cat <<__EOF__ >> "$cfgfile"
15551# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15552
15553# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15554
15555# Shell to use when invoking shell scripts.
15556SHELL=$lt_SHELL
15557
15558# Whether or not to build shared libraries.
15559build_libtool_libs=$enable_shared
15560
15561# Whether or not to build static libraries.
15562build_old_libs=$enable_static
15563
15564# Whether or not to add -lc for building shared libraries.
15565build_libtool_need_lc=$archive_cmds_need_lc_F77
15566
15567# Whether or not to disallow shared libs when runtime libs are static
15568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15569
15570# Whether or not to optimize for fast installation.
15571fast_install=$enable_fast_install
15572
15573# The host system.
15574host_alias=$host_alias
15575host=$host
15576host_os=$host_os
15577
15578# The build system.
15579build_alias=$build_alias
15580build=$build
15581build_os=$build_os
15582
15583# An echo program that does not interpret backslashes.
15584echo=$lt_echo
15585
15586# The archiver.
15587AR=$lt_AR
15588AR_FLAGS=$lt_AR_FLAGS
15589
15590# A C compiler.
15591LTCC=$lt_LTCC
15592
15593# A language-specific compiler.
15594CC=$lt_compiler_F77
15595
15596# Is the compiler the GNU C compiler?
15597with_gcc=$GCC_F77
15598
15599# An ERE matcher.
15600EGREP=$lt_EGREP
15601
15602# The linker used to build libraries.
15603LD=$lt_LD_F77
15604
15605# Whether we need hard or soft links.
15606LN_S=$lt_LN_S
15607
15608# A BSD-compatible nm program.
15609NM=$lt_NM
15610
15611# A symbol stripping program
15612STRIP=$lt_STRIP
15613
15614# Used to examine libraries when file_magic_cmd begins "file"
15615MAGIC_CMD=$MAGIC_CMD
15616
15617# Used on cygwin: DLL creation program.
15618DLLTOOL="$DLLTOOL"
15619
15620# Used on cygwin: object dumper.
15621OBJDUMP="$OBJDUMP"
15622
15623# Used on cygwin: assembler.
15624AS="$AS"
15625
15626# The name of the directory that contains temporary libtool files.
15627objdir=$objdir
15628
15629# How to create reloadable object files.
15630reload_flag=$lt_reload_flag
15631reload_cmds=$lt_reload_cmds
15632
15633# How to pass a linker flag through the compiler.
15634wl=$lt_lt_prog_compiler_wl_F77
15635
15636# Object file suffix (normally "o").
15637objext="$ac_objext"
15638
15639# Old archive suffix (normally "a").
15640libext="$libext"
15641
15642# Shared library suffix (normally ".so").
15643shrext_cmds='$shrext_cmds'
15644
15645# Executable file suffix (normally "").
15646exeext="$exeext"
15647
15648# Additional compiler flags for building library objects.
15649pic_flag=$lt_lt_prog_compiler_pic_F77
15650pic_mode=$pic_mode
15651
15652# What is the maximum length of a command?
15653max_cmd_len=$lt_cv_sys_max_cmd_len
15654
15655# Does compiler simultaneously support -c and -o options?
15656compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15657
15658# Must we lock files when doing compilation?
15659need_locks=$lt_need_locks
15660
15661# Do we need the lib prefix for modules?
15662need_lib_prefix=$need_lib_prefix
15663
15664# Do we need a version for libraries?
15665need_version=$need_version
15666
15667# Whether dlopen is supported.
15668dlopen_support=$enable_dlopen
15669
15670# Whether dlopen of programs is supported.
15671dlopen_self=$enable_dlopen_self
15672
15673# Whether dlopen of statically linked programs is supported.
15674dlopen_self_static=$enable_dlopen_self_static
15675
15676# Compiler flag to prevent dynamic linking.
15677link_static_flag=$lt_lt_prog_compiler_static_F77
15678
15679# Compiler flag to turn off builtin functions.
15680no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15681
15682# Compiler flag to allow reflexive dlopens.
15683export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15684
15685# Compiler flag to generate shared objects directly from archives.
15686whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15687
15688# Compiler flag to generate thread-safe objects.
15689thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15690
15691# Library versioning type.
15692version_type=$version_type
15693
15694# Format of library name prefix.
15695libname_spec=$lt_libname_spec
15696
15697# List of archive names.  First name is the real one, the rest are links.
15698# The last name is the one that the linker finds with -lNAME.
15699library_names_spec=$lt_library_names_spec
15700
15701# The coded name of the library, if different from the real name.
15702soname_spec=$lt_soname_spec
15703
15704# Commands used to build and install an old-style archive.
15705RANLIB=$lt_RANLIB
15706old_archive_cmds=$lt_old_archive_cmds_F77
15707old_postinstall_cmds=$lt_old_postinstall_cmds
15708old_postuninstall_cmds=$lt_old_postuninstall_cmds
15709
15710# Create an old-style archive from a shared archive.
15711old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15712
15713# Create a temporary old-style archive to link instead of a shared archive.
15714old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15715
15716# Commands used to build and install a shared archive.
15717archive_cmds=$lt_archive_cmds_F77
15718archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15719postinstall_cmds=$lt_postinstall_cmds
15720postuninstall_cmds=$lt_postuninstall_cmds
15721
15722# Commands used to build a loadable module (assumed same as above if empty)
15723module_cmds=$lt_module_cmds_F77
15724module_expsym_cmds=$lt_module_expsym_cmds_F77
15725
15726# Commands to strip libraries.
15727old_striplib=$lt_old_striplib
15728striplib=$lt_striplib
15729
15730# Dependencies to place before the objects being linked to create a
15731# shared library.
15732predep_objects=$lt_predep_objects_F77
15733
15734# Dependencies to place after the objects being linked to create a
15735# shared library.
15736postdep_objects=$lt_postdep_objects_F77
15737
15738# Dependencies to place before the objects being linked to create a
15739# shared library.
15740predeps=$lt_predeps_F77
15741
15742# Dependencies to place after the objects being linked to create a
15743# shared library.
15744postdeps=$lt_postdeps_F77
15745
15746# The library search path used internally by the compiler when linking
15747# a shared library.
15748compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15749
15750# Method to check whether dependent libraries are shared objects.
15751deplibs_check_method=$lt_deplibs_check_method
15752
15753# Command to use when deplibs_check_method == file_magic.
15754file_magic_cmd=$lt_file_magic_cmd
15755
15756# Flag that allows shared libraries with undefined symbols to be built.
15757allow_undefined_flag=$lt_allow_undefined_flag_F77
15758
15759# Flag that forces no undefined symbols.
15760no_undefined_flag=$lt_no_undefined_flag_F77
15761
15762# Commands used to finish a libtool library installation in a directory.
15763finish_cmds=$lt_finish_cmds
15764
15765# Same as above, but a single script fragment to be evaled but not shown.
15766finish_eval=$lt_finish_eval
15767
15768# Take the output of nm and produce a listing of raw symbols and C names.
15769global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15770
15771# Transform the output of nm in a proper C declaration
15772global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15773
15774# Transform the output of nm in a C name address pair
15775global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15776
15777# This is the shared library runtime path variable.
15778runpath_var=$runpath_var
15779
15780# This is the shared library path variable.
15781shlibpath_var=$shlibpath_var
15782
15783# Is shlibpath searched before the hard-coded library search path?
15784shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15785
15786# How to hardcode a shared library path into an executable.
15787hardcode_action=$hardcode_action_F77
15788
15789# Whether we should hardcode library paths into libraries.
15790hardcode_into_libs=$hardcode_into_libs
15791
15792# Flag to hardcode \$libdir into a binary during linking.
15793# This must work even if \$libdir does not exist.
15794hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15795
15796# If ld is used when linking, flag to hardcode \$libdir into
15797# a binary during linking. This must work even if \$libdir does
15798# not exist.
15799hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15800
15801# Whether we need a single -rpath flag with a separated argument.
15802hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15803
15804# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15805# resulting binary.
15806hardcode_direct=$hardcode_direct_F77
15807
15808# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15809# resulting binary.
15810hardcode_minus_L=$hardcode_minus_L_F77
15811
15812# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15813# the resulting binary.
15814hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15815
15816# Set to yes if building a shared library automatically hardcodes DIR into the library
15817# and all subsequent libraries and executables linked against it.
15818hardcode_automatic=$hardcode_automatic_F77
15819
15820# Variables whose values should be saved in libtool wrapper scripts and
15821# restored at relink time.
15822variables_saved_for_relink="$variables_saved_for_relink"
15823
15824# Whether libtool must link a program against all its dependency libraries.
15825link_all_deplibs=$link_all_deplibs_F77
15826
15827# Compile-time system search path for libraries
15828sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15829
15830# Run-time system search path for libraries
15831sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15832
15833# Fix the shell variable \$srcfile for the compiler.
15834fix_srcfile_path="$fix_srcfile_path_F77"
15835
15836# Set to yes if exported symbols are required.
15837always_export_symbols=$always_export_symbols_F77
15838
15839# The commands to list exported symbols.
15840export_symbols_cmds=$lt_export_symbols_cmds_F77
15841
15842# The commands to extract the exported symbol list from a shared archive.
15843extract_expsyms_cmds=$lt_extract_expsyms_cmds
15844
15845# Symbols that should not be listed in the preloaded symbols.
15846exclude_expsyms=$lt_exclude_expsyms_F77
15847
15848# Symbols that must always be exported.
15849include_expsyms=$lt_include_expsyms_F77
15850
15851# ### END LIBTOOL TAG CONFIG: $tagname
15852
15853__EOF__
15854
15855
15856else
15857  # If there is no Makefile yet, we rely on a make rule to execute
15858  # `config.status --recheck' to rerun these tests and create the
15859  # libtool script then.
15860  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15861  if test -f "$ltmain_in"; then
15862    test -f Makefile && make "$ltmain"
15863  fi
15864fi
15865
15866
15867ac_ext=c
15868ac_cpp='$CPP $CPPFLAGS'
15869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15871ac_compiler_gnu=$ac_cv_c_compiler_gnu
15872
15873CC="$lt_save_CC"
15874
15875	else
15876	  tagname=""
15877	fi
15878	;;
15879
15880      GCJ)
15881	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15882
15883
15884
15885# Source file extension for Java test sources.
15886ac_ext=java
15887
15888# Object file extension for compiled Java test sources.
15889objext=o
15890objext_GCJ=$objext
15891
15892# Code to be used in simple compile tests
15893lt_simple_compile_test_code="class foo {}\n"
15894
15895# Code to be used in simple link tests
15896lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15897
15898# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15899
15900# If no C compiler was specified, use CC.
15901LTCC=${LTCC-"$CC"}
15902
15903# Allow CC to be a program name with arguments.
15904compiler=$CC
15905
15906
15907# save warnings/boilerplate of simple test code
15908ac_outfile=conftest.$ac_objext
15909printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15911_lt_compiler_boilerplate=`cat conftest.err`
15912$rm conftest*
15913
15914ac_outfile=conftest.$ac_objext
15915printf "$lt_simple_link_test_code" >conftest.$ac_ext
15916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15917_lt_linker_boilerplate=`cat conftest.err`
15918$rm conftest*
15919
15920
15921# Allow CC to be a program name with arguments.
15922lt_save_CC="$CC"
15923CC=${GCJ-"gcj"}
15924compiler=$CC
15925compiler_GCJ=$CC
15926for cc_temp in $compiler""; do
15927  case $cc_temp in
15928    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15929    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15930    \-*) ;;
15931    *) break;;
15932  esac
15933done
15934cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15935
15936
15937# GCJ did not exist at the time GCC didn't implicitly link libc in.
15938archive_cmds_need_lc_GCJ=no
15939
15940old_archive_cmds_GCJ=$old_archive_cmds
15941
15942
15943lt_prog_compiler_no_builtin_flag_GCJ=
15944
15945if test "$GCC" = yes; then
15946  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15947
15948
15949echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15950echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15951if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15952  echo $ECHO_N "(cached) $ECHO_C" >&6
15953else
15954  lt_cv_prog_compiler_rtti_exceptions=no
15955  ac_outfile=conftest.$ac_objext
15956   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15957   lt_compiler_flag="-fno-rtti -fno-exceptions"
15958   # Insert the option either (1) after the last *FLAGS variable, or
15959   # (2) before a word containing "conftest.", or (3) at the end.
15960   # Note that $ac_compile itself does not contain backslashes and begins
15961   # with a dollar sign (not a hyphen), so the echo should work correctly.
15962   # The option is referenced via a variable to avoid confusing sed.
15963   lt_compile=`echo "$ac_compile" | $SED \
15964   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15965   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15966   -e 's:$: $lt_compiler_flag:'`
15967   (eval echo "\"\$as_me:15967: $lt_compile\"" >&5)
15968   (eval "$lt_compile" 2>conftest.err)
15969   ac_status=$?
15970   cat conftest.err >&5
15971   echo "$as_me:15971: \$? = $ac_status" >&5
15972   if (exit $ac_status) && test -s "$ac_outfile"; then
15973     # The compiler can only warn and ignore the option if not recognized
15974     # So say no if there are warnings other than the usual output.
15975     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15976     $SED '/^$/d' conftest.err >conftest.er2
15977     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15978       lt_cv_prog_compiler_rtti_exceptions=yes
15979     fi
15980   fi
15981   $rm conftest*
15982
15983fi
15984echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15985echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15986
15987if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15988    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15989else
15990    :
15991fi
15992
15993fi
15994
15995lt_prog_compiler_wl_GCJ=
15996lt_prog_compiler_pic_GCJ=
15997lt_prog_compiler_static_GCJ=
15998
15999echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16000echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16001
16002  if test "$GCC" = yes; then
16003    lt_prog_compiler_wl_GCJ='-Wl,'
16004    lt_prog_compiler_static_GCJ='-static'
16005
16006    case $host_os in
16007      aix*)
16008      # All AIX code is PIC.
16009      if test "$host_cpu" = ia64; then
16010	# AIX 5 now supports IA64 processor
16011	lt_prog_compiler_static_GCJ='-Bstatic'
16012      fi
16013      ;;
16014
16015    amigaos*)
16016      # FIXME: we need at least 68020 code to build shared libraries, but
16017      # adding the `-m68020' flag to GCC prevents building anything better,
16018      # like `-m68040'.
16019      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16020      ;;
16021
16022    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16023      # PIC is the default for these OSes.
16024      ;;
16025
16026    mingw* | pw32* | os2*)
16027      # This hack is so that the source file can tell whether it is being
16028      # built for inclusion in a dll (and should export symbols for example).
16029      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16030      ;;
16031
16032    darwin* | rhapsody*)
16033      # PIC is the default on this platform
16034      # Common symbols not allowed in MH_DYLIB files
16035      lt_prog_compiler_pic_GCJ='-fno-common'
16036      ;;
16037
16038    msdosdjgpp*)
16039      # Just because we use GCC doesn't mean we suddenly get shared libraries
16040      # on systems that don't support them.
16041      lt_prog_compiler_can_build_shared_GCJ=no
16042      enable_shared=no
16043      ;;
16044
16045    sysv4*MP*)
16046      if test -d /usr/nec; then
16047	lt_prog_compiler_pic_GCJ=-Kconform_pic
16048      fi
16049      ;;
16050
16051    hpux*)
16052      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16053      # not for PA HP-UX.
16054      case $host_cpu in
16055      hppa*64*|ia64*)
16056	# +Z the default
16057	;;
16058      *)
16059	lt_prog_compiler_pic_GCJ='-fPIC'
16060	;;
16061      esac
16062      ;;
16063
16064    *)
16065      lt_prog_compiler_pic_GCJ='-fPIC'
16066      ;;
16067    esac
16068  else
16069    # PORTME Check for flag to pass linker flags through the system compiler.
16070    case $host_os in
16071    aix*)
16072      lt_prog_compiler_wl_GCJ='-Wl,'
16073      if test "$host_cpu" = ia64; then
16074	# AIX 5 now supports IA64 processor
16075	lt_prog_compiler_static_GCJ='-Bstatic'
16076      else
16077	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16078      fi
16079      ;;
16080      darwin*)
16081        # PIC is the default on this platform
16082        # Common symbols not allowed in MH_DYLIB files
16083       case $cc_basename in
16084         xlc*)
16085         lt_prog_compiler_pic_GCJ='-qnocommon'
16086         lt_prog_compiler_wl_GCJ='-Wl,'
16087         ;;
16088       esac
16089       ;;
16090
16091    mingw* | pw32* | os2*)
16092      # This hack is so that the source file can tell whether it is being
16093      # built for inclusion in a dll (and should export symbols for example).
16094      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16095      ;;
16096
16097    hpux9* | hpux10* | hpux11*)
16098      lt_prog_compiler_wl_GCJ='-Wl,'
16099      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16100      # not for PA HP-UX.
16101      case $host_cpu in
16102      hppa*64*|ia64*)
16103	# +Z the default
16104	;;
16105      *)
16106	lt_prog_compiler_pic_GCJ='+Z'
16107	;;
16108      esac
16109      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16110      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16111      ;;
16112
16113    irix5* | irix6* | nonstopux*)
16114      lt_prog_compiler_wl_GCJ='-Wl,'
16115      # PIC (with -KPIC) is the default.
16116      lt_prog_compiler_static_GCJ='-non_shared'
16117      ;;
16118
16119    newsos6)
16120      lt_prog_compiler_pic_GCJ='-KPIC'
16121      lt_prog_compiler_static_GCJ='-Bstatic'
16122      ;;
16123
16124    linux*)
16125      case $cc_basename in
16126      icc* | ecc*)
16127	lt_prog_compiler_wl_GCJ='-Wl,'
16128	lt_prog_compiler_pic_GCJ='-KPIC'
16129	lt_prog_compiler_static_GCJ='-static'
16130        ;;
16131      pgcc* | pgf77* | pgf90* | pgf95*)
16132        # Portland Group compilers (*not* the Pentium gcc compiler,
16133	# which looks to be a dead project)
16134	lt_prog_compiler_wl_GCJ='-Wl,'
16135	lt_prog_compiler_pic_GCJ='-fpic'
16136	lt_prog_compiler_static_GCJ='-Bstatic'
16137        ;;
16138      ccc*)
16139        lt_prog_compiler_wl_GCJ='-Wl,'
16140        # All Alpha code is PIC.
16141        lt_prog_compiler_static_GCJ='-non_shared'
16142        ;;
16143      esac
16144      ;;
16145
16146    osf3* | osf4* | osf5*)
16147      lt_prog_compiler_wl_GCJ='-Wl,'
16148      # All OSF/1 code is PIC.
16149      lt_prog_compiler_static_GCJ='-non_shared'
16150      ;;
16151
16152    sco3.2v5*)
16153      lt_prog_compiler_pic_GCJ='-Kpic'
16154      lt_prog_compiler_static_GCJ='-dn'
16155      ;;
16156
16157    solaris*)
16158      lt_prog_compiler_pic_GCJ='-KPIC'
16159      lt_prog_compiler_static_GCJ='-Bstatic'
16160      case $cc_basename in
16161      f77* | f90* | f95*)
16162	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16163      *)
16164	lt_prog_compiler_wl_GCJ='-Wl,';;
16165      esac
16166      ;;
16167
16168    sunos4*)
16169      lt_prog_compiler_wl_GCJ='-Qoption ld '
16170      lt_prog_compiler_pic_GCJ='-PIC'
16171      lt_prog_compiler_static_GCJ='-Bstatic'
16172      ;;
16173
16174    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16175      lt_prog_compiler_wl_GCJ='-Wl,'
16176      lt_prog_compiler_pic_GCJ='-KPIC'
16177      lt_prog_compiler_static_GCJ='-Bstatic'
16178      ;;
16179
16180    sysv4*MP*)
16181      if test -d /usr/nec ;then
16182	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16183	lt_prog_compiler_static_GCJ='-Bstatic'
16184      fi
16185      ;;
16186
16187    unicos*)
16188      lt_prog_compiler_wl_GCJ='-Wl,'
16189      lt_prog_compiler_can_build_shared_GCJ=no
16190      ;;
16191
16192    uts4*)
16193      lt_prog_compiler_pic_GCJ='-pic'
16194      lt_prog_compiler_static_GCJ='-Bstatic'
16195      ;;
16196
16197    *)
16198      lt_prog_compiler_can_build_shared_GCJ=no
16199      ;;
16200    esac
16201  fi
16202
16203echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16204echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16205
16206#
16207# Check to make sure the PIC flag actually works.
16208#
16209if test -n "$lt_prog_compiler_pic_GCJ"; then
16210
16211echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16212echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16213if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16214  echo $ECHO_N "(cached) $ECHO_C" >&6
16215else
16216  lt_prog_compiler_pic_works_GCJ=no
16217  ac_outfile=conftest.$ac_objext
16218   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16219   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16220   # Insert the option either (1) after the last *FLAGS variable, or
16221   # (2) before a word containing "conftest.", or (3) at the end.
16222   # Note that $ac_compile itself does not contain backslashes and begins
16223   # with a dollar sign (not a hyphen), so the echo should work correctly.
16224   # The option is referenced via a variable to avoid confusing sed.
16225   lt_compile=`echo "$ac_compile" | $SED \
16226   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16227   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16228   -e 's:$: $lt_compiler_flag:'`
16229   (eval echo "\"\$as_me:16229: $lt_compile\"" >&5)
16230   (eval "$lt_compile" 2>conftest.err)
16231   ac_status=$?
16232   cat conftest.err >&5
16233   echo "$as_me:16233: \$? = $ac_status" >&5
16234   if (exit $ac_status) && test -s "$ac_outfile"; then
16235     # The compiler can only warn and ignore the option if not recognized
16236     # So say no if there are warnings other than the usual output.
16237     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16238     $SED '/^$/d' conftest.err >conftest.er2
16239     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16240       lt_prog_compiler_pic_works_GCJ=yes
16241     fi
16242   fi
16243   $rm conftest*
16244
16245fi
16246echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16247echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16248
16249if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16250    case $lt_prog_compiler_pic_GCJ in
16251     "" | " "*) ;;
16252     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16253     esac
16254else
16255    lt_prog_compiler_pic_GCJ=
16256     lt_prog_compiler_can_build_shared_GCJ=no
16257fi
16258
16259fi
16260case $host_os in
16261  # For platforms which do not support PIC, -DPIC is meaningless:
16262  *djgpp*)
16263    lt_prog_compiler_pic_GCJ=
16264    ;;
16265  *)
16266    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16267    ;;
16268esac
16269
16270echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16271echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16272if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16273  echo $ECHO_N "(cached) $ECHO_C" >&6
16274else
16275  lt_cv_prog_compiler_c_o_GCJ=no
16276   $rm -r conftest 2>/dev/null
16277   mkdir conftest
16278   cd conftest
16279   mkdir out
16280   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16281
16282   lt_compiler_flag="-o out/conftest2.$ac_objext"
16283   # Insert the option either (1) after the last *FLAGS variable, or
16284   # (2) before a word containing "conftest.", or (3) at the end.
16285   # Note that $ac_compile itself does not contain backslashes and begins
16286   # with a dollar sign (not a hyphen), so the echo should work correctly.
16287   lt_compile=`echo "$ac_compile" | $SED \
16288   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16290   -e 's:$: $lt_compiler_flag:'`
16291   (eval echo "\"\$as_me:16291: $lt_compile\"" >&5)
16292   (eval "$lt_compile" 2>out/conftest.err)
16293   ac_status=$?
16294   cat out/conftest.err >&5
16295   echo "$as_me:16295: \$? = $ac_status" >&5
16296   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16297   then
16298     # The compiler can only warn and ignore the option if not recognized
16299     # So say no if there are warnings
16300     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16301     $SED '/^$/d' out/conftest.err >out/conftest.er2
16302     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16303       lt_cv_prog_compiler_c_o_GCJ=yes
16304     fi
16305   fi
16306   chmod u+w . 2>&5
16307   $rm conftest*
16308   # SGI C++ compiler will create directory out/ii_files/ for
16309   # template instantiation
16310   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16311   $rm out/* && rmdir out
16312   cd ..
16313   rmdir conftest
16314   $rm conftest*
16315
16316fi
16317echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16318echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16319
16320
16321hard_links="nottested"
16322if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16323  # do not overwrite the value of need_locks provided by the user
16324  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16325echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16326  hard_links=yes
16327  $rm conftest*
16328  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16329  touch conftest.a
16330  ln conftest.a conftest.b 2>&5 || hard_links=no
16331  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16332  echo "$as_me:$LINENO: result: $hard_links" >&5
16333echo "${ECHO_T}$hard_links" >&6
16334  if test "$hard_links" = no; then
16335    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16336echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16337    need_locks=warn
16338  fi
16339else
16340  need_locks=no
16341fi
16342
16343echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16344echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16345
16346  runpath_var=
16347  allow_undefined_flag_GCJ=
16348  enable_shared_with_static_runtimes_GCJ=no
16349  archive_cmds_GCJ=
16350  archive_expsym_cmds_GCJ=
16351  old_archive_From_new_cmds_GCJ=
16352  old_archive_from_expsyms_cmds_GCJ=
16353  export_dynamic_flag_spec_GCJ=
16354  whole_archive_flag_spec_GCJ=
16355  thread_safe_flag_spec_GCJ=
16356  hardcode_libdir_flag_spec_GCJ=
16357  hardcode_libdir_flag_spec_ld_GCJ=
16358  hardcode_libdir_separator_GCJ=
16359  hardcode_direct_GCJ=no
16360  hardcode_minus_L_GCJ=no
16361  hardcode_shlibpath_var_GCJ=unsupported
16362  link_all_deplibs_GCJ=unknown
16363  hardcode_automatic_GCJ=no
16364  module_cmds_GCJ=
16365  module_expsym_cmds_GCJ=
16366  always_export_symbols_GCJ=no
16367  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16368  # include_expsyms should be a list of space-separated symbols to be *always*
16369  # included in the symbol list
16370  include_expsyms_GCJ=
16371  # exclude_expsyms can be an extended regexp of symbols to exclude
16372  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16373  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16374  # as well as any symbol that contains `d'.
16375  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16376  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16377  # platforms (ab)use it in PIC code, but their linkers get confused if
16378  # the symbol is explicitly referenced.  Since portable code cannot
16379  # rely on this symbol name, it's probably fine to never include it in
16380  # preloaded symbol tables.
16381  extract_expsyms_cmds=
16382  # Just being paranoid about ensuring that cc_basename is set.
16383  for cc_temp in $compiler""; do
16384  case $cc_temp in
16385    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16386    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387    \-*) ;;
16388    *) break;;
16389  esac
16390done
16391cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16392
16393  case $host_os in
16394  cygwin* | mingw* | pw32*)
16395    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16396    # When not using gcc, we currently assume that we are using
16397    # Microsoft Visual C++.
16398    if test "$GCC" != yes; then
16399      with_gnu_ld=no
16400    fi
16401    ;;
16402  openbsd*)
16403    with_gnu_ld=no
16404    ;;
16405  esac
16406
16407  ld_shlibs_GCJ=yes
16408  if test "$with_gnu_ld" = yes; then
16409    # If archive_cmds runs LD, not CC, wlarc should be empty
16410    wlarc='${wl}'
16411
16412    # Set some defaults for GNU ld with shared library support. These
16413    # are reset later if shared libraries are not supported. Putting them
16414    # here allows them to be overridden if necessary.
16415    runpath_var=LD_RUN_PATH
16416    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16417    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16418    # ancient GNU ld didn't support --whole-archive et. al.
16419    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16420	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16421      else
16422  	whole_archive_flag_spec_GCJ=
16423    fi
16424    supports_anon_versioning=no
16425    case `$LD -v 2>/dev/null` in
16426      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16427      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16428      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16429      *\ 2.11.*) ;; # other 2.11 versions
16430      *) supports_anon_versioning=yes ;;
16431    esac
16432
16433    # See if GNU ld supports shared libraries.
16434    case $host_os in
16435    aix3* | aix4* | aix5*)
16436      # On AIX/PPC, the GNU linker is very broken
16437      if test "$host_cpu" != ia64; then
16438	ld_shlibs_GCJ=no
16439	cat <<EOF 1>&2
16440
16441*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16442*** to be unable to reliably create shared libraries on AIX.
16443*** Therefore, libtool is disabling shared libraries support.  If you
16444*** really care for shared libraries, you may want to modify your PATH
16445*** so that a non-GNU linker is found, and then restart.
16446
16447EOF
16448      fi
16449      ;;
16450
16451    amigaos*)
16452      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)'
16453      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16454      hardcode_minus_L_GCJ=yes
16455
16456      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16457      # that the semantics of dynamic libraries on AmigaOS, at least up
16458      # to version 4, is to share data among multiple programs linked
16459      # with the same dynamic library.  Since this doesn't match the
16460      # behavior of shared libraries on other platforms, we can't use
16461      # them.
16462      ld_shlibs_GCJ=no
16463      ;;
16464
16465    beos*)
16466      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16467	allow_undefined_flag_GCJ=unsupported
16468	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16469	# support --undefined.  This deserves some investigation.  FIXME
16470	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471      else
16472	ld_shlibs_GCJ=no
16473      fi
16474      ;;
16475
16476    cygwin* | mingw* | pw32*)
16477      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16478      # as there is no search path for DLLs.
16479      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16480      allow_undefined_flag_GCJ=unsupported
16481      always_export_symbols_GCJ=no
16482      enable_shared_with_static_runtimes_GCJ=yes
16483      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16484
16485      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16486        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16487	# If the export-symbols file already is a .def file (1st line
16488	# is EXPORTS), use it as is; otherwise, prepend...
16489	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16490	  cp $export_symbols $output_objdir/$soname.def;
16491	else
16492	  echo EXPORTS > $output_objdir/$soname.def;
16493	  cat $export_symbols >> $output_objdir/$soname.def;
16494	fi~
16495	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16496      else
16497	ld_shlibs_GCJ=no
16498      fi
16499      ;;
16500
16501    linux*)
16502      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16503	tmp_addflag=
16504	case $cc_basename,$host_cpu in
16505	pgcc*)				# Portland Group C compiler
16506	  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'
16507	  tmp_addflag=' $pic_flag'
16508	  ;;
16509	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16510	  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'
16511	  tmp_addflag=' $pic_flag -Mnomain' ;;
16512	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16513	  tmp_addflag=' -i_dynamic' ;;
16514	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16515	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16516	ifc* | ifort*)			# Intel Fortran compiler
16517	  tmp_addflag=' -nofor_main' ;;
16518	esac
16519	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16520
16521	if test $supports_anon_versioning = yes; then
16522	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16523  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16524  $echo "local: *; };" >> $output_objdir/$libname.ver~
16525	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16526	fi
16527	link_all_deplibs_GCJ=no
16528      else
16529	ld_shlibs_GCJ=no
16530      fi
16531      ;;
16532
16533    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16534      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16535	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16536	wlarc=
16537      else
16538	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16540      fi
16541      ;;
16542
16543    solaris* | sysv5*)
16544      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16545	ld_shlibs_GCJ=no
16546	cat <<EOF 1>&2
16547
16548*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16549*** create shared libraries on Solaris systems.  Therefore, libtool
16550*** is disabling shared libraries support.  We urge you to upgrade GNU
16551*** binutils to release 2.9.1 or newer.  Another option is to modify
16552*** your PATH or compiler configuration so that the native linker is
16553*** used, and then restart.
16554
16555EOF
16556      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16557	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16558	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16559      else
16560	ld_shlibs_GCJ=no
16561      fi
16562      ;;
16563
16564    sunos4*)
16565      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16566      wlarc=
16567      hardcode_direct_GCJ=yes
16568      hardcode_shlibpath_var_GCJ=no
16569      ;;
16570
16571    *)
16572      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16573	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16574	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16575      else
16576	ld_shlibs_GCJ=no
16577      fi
16578      ;;
16579    esac
16580
16581    if test "$ld_shlibs_GCJ" = no; then
16582      runpath_var=
16583      hardcode_libdir_flag_spec_GCJ=
16584      export_dynamic_flag_spec_GCJ=
16585      whole_archive_flag_spec_GCJ=
16586    fi
16587  else
16588    # PORTME fill in a description of your system's linker (not GNU ld)
16589    case $host_os in
16590    aix3*)
16591      allow_undefined_flag_GCJ=unsupported
16592      always_export_symbols_GCJ=yes
16593      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'
16594      # Note: this linker hardcodes the directories in LIBPATH if there
16595      # are no directories specified by -L.
16596      hardcode_minus_L_GCJ=yes
16597      if test "$GCC" = yes && test -z "$link_static_flag"; then
16598	# Neither direct hardcoding nor static linking is supported with a
16599	# broken collect2.
16600	hardcode_direct_GCJ=unsupported
16601      fi
16602      ;;
16603
16604    aix4* | aix5*)
16605      if test "$host_cpu" = ia64; then
16606	# On IA64, the linker does run time linking by default, so we don't
16607	# have to do anything special.
16608	aix_use_runtimelinking=no
16609	exp_sym_flag='-Bexport'
16610	no_entry_flag=""
16611      else
16612	# If we're using GNU nm, then we don't want the "-C" option.
16613	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16614	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16615	  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'
16616	else
16617	  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'
16618	fi
16619	aix_use_runtimelinking=no
16620
16621	# Test if we are trying to use run time linking or normal
16622	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16623	# need to do runtime linking.
16624	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16625	  for ld_flag in $LDFLAGS; do
16626  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16627  	    aix_use_runtimelinking=yes
16628  	    break
16629  	  fi
16630	  done
16631	esac
16632
16633	exp_sym_flag='-bexport'
16634	no_entry_flag='-bnoentry'
16635      fi
16636
16637      # When large executables or shared objects are built, AIX ld can
16638      # have problems creating the table of contents.  If linking a library
16639      # or program results in "error TOC overflow" add -mminimal-toc to
16640      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16641      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16642
16643      archive_cmds_GCJ=''
16644      hardcode_direct_GCJ=yes
16645      hardcode_libdir_separator_GCJ=':'
16646      link_all_deplibs_GCJ=yes
16647
16648      if test "$GCC" = yes; then
16649	case $host_os in aix4.[012]|aix4.[012].*)
16650	# We only want to do this on AIX 4.2 and lower, the check
16651	# below for broken collect2 doesn't work under 4.3+
16652	  collect2name=`${CC} -print-prog-name=collect2`
16653	  if test -f "$collect2name" && \
16654  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16655	  then
16656  	  # We have reworked collect2
16657  	  hardcode_direct_GCJ=yes
16658	  else
16659  	  # We have old collect2
16660  	  hardcode_direct_GCJ=unsupported
16661  	  # It fails to find uninstalled libraries when the uninstalled
16662  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16663  	  # to unsupported forces relinking
16664  	  hardcode_minus_L_GCJ=yes
16665  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16666  	  hardcode_libdir_separator_GCJ=
16667	  fi
16668	esac
16669	shared_flag='-shared'
16670	if test "$aix_use_runtimelinking" = yes; then
16671	  shared_flag="$shared_flag "'${wl}-G'
16672	fi
16673      else
16674	# not using gcc
16675	if test "$host_cpu" = ia64; then
16676  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16677  	# chokes on -Wl,-G. The following line is correct:
16678	  shared_flag='-G'
16679	else
16680  	if test "$aix_use_runtimelinking" = yes; then
16681	    shared_flag='${wl}-G'
16682	  else
16683	    shared_flag='${wl}-bM:SRE'
16684  	fi
16685	fi
16686      fi
16687
16688      # It seems that -bexpall does not export symbols beginning with
16689      # underscore (_), so it is better to generate a list of symbols to export.
16690      always_export_symbols_GCJ=yes
16691      if test "$aix_use_runtimelinking" = yes; then
16692	# Warning - without using the other runtime loading flags (-brtl),
16693	# -berok will link without error, but may produce a broken library.
16694	allow_undefined_flag_GCJ='-berok'
16695       # Determine the default libpath from the value encoded in an empty executable.
16696       cat >conftest.$ac_ext <<_ACEOF
16697/* confdefs.h.  */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
16701/* end confdefs.h.  */
16702
16703int
16704main ()
16705{
16706
16707  ;
16708  return 0;
16709}
16710_ACEOF
16711rm -f conftest.$ac_objext conftest$ac_exeext
16712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16713  (eval $ac_link) 2>conftest.er1
16714  ac_status=$?
16715  grep -v '^ *+' conftest.er1 >conftest.err
16716  rm -f conftest.er1
16717  cat conftest.err >&5
16718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719  (exit $ac_status); } &&
16720	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722  (eval $ac_try) 2>&5
16723  ac_status=$?
16724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725  (exit $ac_status); }; } &&
16726	 { ac_try='test -s conftest$ac_exeext'
16727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728  (eval $ac_try) 2>&5
16729  ac_status=$?
16730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731  (exit $ac_status); }; }; then
16732
16733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16734}'`
16735# Check for a 64-bit object if we didn't find anything.
16736if 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; }
16737}'`; fi
16738else
16739  echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742fi
16743rm -f conftest.err conftest.$ac_objext \
16744      conftest$ac_exeext conftest.$ac_ext
16745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16746
16747       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16748	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"
16749       else
16750	if test "$host_cpu" = ia64; then
16751	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16752	  allow_undefined_flag_GCJ="-z nodefs"
16753	  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"
16754	else
16755	 # Determine the default libpath from the value encoded in an empty executable.
16756	 cat >conftest.$ac_ext <<_ACEOF
16757/* confdefs.h.  */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h.  */
16762
16763int
16764main ()
16765{
16766
16767  ;
16768  return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext conftest$ac_exeext
16772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773  (eval $ac_link) 2>conftest.er1
16774  ac_status=$?
16775  grep -v '^ *+' conftest.er1 >conftest.err
16776  rm -f conftest.er1
16777  cat conftest.err >&5
16778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779  (exit $ac_status); } &&
16780	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782  (eval $ac_try) 2>&5
16783  ac_status=$?
16784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785  (exit $ac_status); }; } &&
16786	 { ac_try='test -s conftest$ac_exeext'
16787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788  (eval $ac_try) 2>&5
16789  ac_status=$?
16790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791  (exit $ac_status); }; }; then
16792
16793aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16794}'`
16795# Check for a 64-bit object if we didn't find anything.
16796if 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; }
16797}'`; fi
16798else
16799  echo "$as_me: failed program was:" >&5
16800sed 's/^/| /' conftest.$ac_ext >&5
16801
16802fi
16803rm -f conftest.err conftest.$ac_objext \
16804      conftest$ac_exeext conftest.$ac_ext
16805if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16806
16807	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16808	  # Warning - without using the other run time loading flags,
16809	  # -berok will link without error, but may produce a broken library.
16810	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16811	  allow_undefined_flag_GCJ=' ${wl}-berok'
16812	  # -bexpall does not export symbols beginning with underscore (_)
16813	  always_export_symbols_GCJ=yes
16814	  # Exported symbols can be pulled into shared objects from archives
16815	  whole_archive_flag_spec_GCJ=' '
16816	  archive_cmds_need_lc_GCJ=yes
16817	  # This is similar to how AIX traditionally builds its shared libraries.
16818	  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'
16819	fi
16820      fi
16821      ;;
16822
16823    amigaos*)
16824      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)'
16825      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16826      hardcode_minus_L_GCJ=yes
16827      # see comment about different semantics on the GNU ld section
16828      ld_shlibs_GCJ=no
16829      ;;
16830
16831    bsdi[45]*)
16832      export_dynamic_flag_spec_GCJ=-rdynamic
16833      ;;
16834
16835    cygwin* | mingw* | pw32*)
16836      # When not using gcc, we currently assume that we are using
16837      # Microsoft Visual C++.
16838      # hardcode_libdir_flag_spec is actually meaningless, as there is
16839      # no search path for DLLs.
16840      hardcode_libdir_flag_spec_GCJ=' '
16841      allow_undefined_flag_GCJ=unsupported
16842      # Tell ltmain to make .lib files, not .a files.
16843      libext=lib
16844      # Tell ltmain to make .dll files, not .so files.
16845      shrext_cmds=".dll"
16846      # FIXME: Setting linknames here is a bad hack.
16847      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16848      # The linker will automatically build a .lib file if we build a DLL.
16849      old_archive_From_new_cmds_GCJ='true'
16850      # FIXME: Should let the user specify the lib program.
16851      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16852      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16853      enable_shared_with_static_runtimes_GCJ=yes
16854      ;;
16855
16856    darwin* | rhapsody*)
16857      case $host_os in
16858        rhapsody* | darwin1.[012])
16859         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16860         ;;
16861       *) # Darwin 1.3 on
16862         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16863           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16864         else
16865           case ${MACOSX_DEPLOYMENT_TARGET} in
16866             10.[012])
16867               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16868               ;;
16869             10.*)
16870               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16871               ;;
16872           esac
16873         fi
16874         ;;
16875      esac
16876      archive_cmds_need_lc_GCJ=no
16877      hardcode_direct_GCJ=no
16878      hardcode_automatic_GCJ=yes
16879      hardcode_shlibpath_var_GCJ=unsupported
16880      whole_archive_flag_spec_GCJ=''
16881      link_all_deplibs_GCJ=yes
16882    if test "$GCC" = yes ; then
16883    	output_verbose_link_cmd='echo'
16884        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16885      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16886      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16887      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}'
16888      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}'
16889    else
16890      case $cc_basename in
16891        xlc*)
16892         output_verbose_link_cmd='echo'
16893         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16894         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16895          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16896         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}'
16897          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}'
16898          ;;
16899       *)
16900         ld_shlibs_GCJ=no
16901          ;;
16902      esac
16903    fi
16904      ;;
16905
16906    dgux*)
16907      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909      hardcode_shlibpath_var_GCJ=no
16910      ;;
16911
16912    freebsd1*)
16913      ld_shlibs_GCJ=no
16914      ;;
16915
16916    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16917    # support.  Future versions do this automatically, but an explicit c++rt0.o
16918    # does not break anything, and helps significantly (at the cost of a little
16919    # extra space).
16920    freebsd2.2*)
16921      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16922      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16923      hardcode_direct_GCJ=yes
16924      hardcode_shlibpath_var_GCJ=no
16925      ;;
16926
16927    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16928    freebsd2*)
16929      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16930      hardcode_direct_GCJ=yes
16931      hardcode_minus_L_GCJ=yes
16932      hardcode_shlibpath_var_GCJ=no
16933      ;;
16934
16935    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16936    freebsd* | kfreebsd*-gnu | dragonfly*)
16937      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16938      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16939      hardcode_direct_GCJ=yes
16940      hardcode_shlibpath_var_GCJ=no
16941      ;;
16942
16943    hpux9*)
16944      if test "$GCC" = yes; then
16945	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'
16946      else
16947	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'
16948      fi
16949      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950      hardcode_libdir_separator_GCJ=:
16951      hardcode_direct_GCJ=yes
16952
16953      # hardcode_minus_L: Not really in the search PATH,
16954      # but as the default location of the library.
16955      hardcode_minus_L_GCJ=yes
16956      export_dynamic_flag_spec_GCJ='${wl}-E'
16957      ;;
16958
16959    hpux10* | hpux11*)
16960      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16961	case $host_cpu in
16962	hppa*64*|ia64*)
16963	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16964	  ;;
16965	*)
16966	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16967	  ;;
16968	esac
16969      else
16970	case $host_cpu in
16971	hppa*64*|ia64*)
16972	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16973	  ;;
16974	*)
16975	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16976	  ;;
16977	esac
16978      fi
16979      if test "$with_gnu_ld" = no; then
16980	case $host_cpu in
16981	hppa*64*)
16982	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16983	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16984	  hardcode_libdir_separator_GCJ=:
16985	  hardcode_direct_GCJ=no
16986	  hardcode_shlibpath_var_GCJ=no
16987	  ;;
16988	ia64*)
16989	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16990	  hardcode_direct_GCJ=no
16991	  hardcode_shlibpath_var_GCJ=no
16992
16993	  # hardcode_minus_L: Not really in the search PATH,
16994	  # but as the default location of the library.
16995	  hardcode_minus_L_GCJ=yes
16996	  ;;
16997	*)
16998	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16999	  hardcode_libdir_separator_GCJ=:
17000	  hardcode_direct_GCJ=yes
17001	  export_dynamic_flag_spec_GCJ='${wl}-E'
17002
17003	  # hardcode_minus_L: Not really in the search PATH,
17004	  # but as the default location of the library.
17005	  hardcode_minus_L_GCJ=yes
17006	  ;;
17007	esac
17008      fi
17009      ;;
17010
17011    irix5* | irix6* | nonstopux*)
17012      if test "$GCC" = yes; then
17013	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'
17014      else
17015	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'
17016	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17017      fi
17018      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17019      hardcode_libdir_separator_GCJ=:
17020      link_all_deplibs_GCJ=yes
17021      ;;
17022
17023    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17024      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17025	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17026      else
17027	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17028      fi
17029      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17030      hardcode_direct_GCJ=yes
17031      hardcode_shlibpath_var_GCJ=no
17032      ;;
17033
17034    newsos6)
17035      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036      hardcode_direct_GCJ=yes
17037      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17038      hardcode_libdir_separator_GCJ=:
17039      hardcode_shlibpath_var_GCJ=no
17040      ;;
17041
17042    openbsd*)
17043      hardcode_direct_GCJ=yes
17044      hardcode_shlibpath_var_GCJ=no
17045      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17046	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17047	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17048	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17049	export_dynamic_flag_spec_GCJ='${wl}-E'
17050      else
17051       case $host_os in
17052	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17053	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17054	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17055	   ;;
17056	 *)
17057	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17058	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17059	   ;;
17060       esac
17061      fi
17062      ;;
17063
17064    os2*)
17065      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17066      hardcode_minus_L_GCJ=yes
17067      allow_undefined_flag_GCJ=unsupported
17068      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'
17069      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17070      ;;
17071
17072    osf3*)
17073      if test "$GCC" = yes; then
17074	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17075	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'
17076      else
17077	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17078	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'
17079      fi
17080      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17081      hardcode_libdir_separator_GCJ=:
17082      ;;
17083
17084    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17085      if test "$GCC" = yes; then
17086	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17087	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'
17088	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17089      else
17090	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17091	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'
17092	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~
17093	$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'
17094
17095	# Both c and cxx compiler support -rpath directly
17096	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17097      fi
17098      hardcode_libdir_separator_GCJ=:
17099      ;;
17100
17101    sco3.2v5*)
17102      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17103      hardcode_shlibpath_var_GCJ=no
17104      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17105      runpath_var=LD_RUN_PATH
17106      hardcode_runpath_var=yes
17107      ;;
17108
17109    solaris*)
17110      no_undefined_flag_GCJ=' -z text'
17111      if test "$GCC" = yes; then
17112	wlarc='${wl}'
17113	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17114	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17115	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17116      else
17117	wlarc=''
17118	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17119	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17120  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17121      fi
17122      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17123      hardcode_shlibpath_var_GCJ=no
17124      case $host_os in
17125      solaris2.[0-5] | solaris2.[0-5].*) ;;
17126      *)
17127 	# The compiler driver will combine linker options so we
17128 	# cannot just pass the convience library names through
17129 	# without $wl, iff we do not link with $LD.
17130 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17131 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17132 	case $wlarc in
17133 	'')
17134 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17135 	*)
17136 	  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' ;;
17137 	esac ;;
17138      esac
17139      link_all_deplibs_GCJ=yes
17140      ;;
17141
17142    sunos4*)
17143      if test "x$host_vendor" = xsequent; then
17144	# Use $CC to link under sequent, because it throws in some extra .o
17145	# files that make .init and .fini sections work.
17146	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17147      else
17148	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17149      fi
17150      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17151      hardcode_direct_GCJ=yes
17152      hardcode_minus_L_GCJ=yes
17153      hardcode_shlibpath_var_GCJ=no
17154      ;;
17155
17156    sysv4)
17157      case $host_vendor in
17158	sni)
17159	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160	  hardcode_direct_GCJ=yes # is this really true???
17161	;;
17162	siemens)
17163	  ## LD is ld it makes a PLAMLIB
17164	  ## CC just makes a GrossModule.
17165	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17166	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17167	  hardcode_direct_GCJ=no
17168        ;;
17169	motorola)
17170	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17172	;;
17173      esac
17174      runpath_var='LD_RUN_PATH'
17175      hardcode_shlibpath_var_GCJ=no
17176      ;;
17177
17178    sysv4.3*)
17179      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17180      hardcode_shlibpath_var_GCJ=no
17181      export_dynamic_flag_spec_GCJ='-Bexport'
17182      ;;
17183
17184    sysv4*MP*)
17185      if test -d /usr/nec; then
17186	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187	hardcode_shlibpath_var_GCJ=no
17188	runpath_var=LD_RUN_PATH
17189	hardcode_runpath_var=yes
17190	ld_shlibs_GCJ=yes
17191      fi
17192      ;;
17193
17194    sysv4.2uw2*)
17195      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17196      hardcode_direct_GCJ=yes
17197      hardcode_minus_L_GCJ=no
17198      hardcode_shlibpath_var_GCJ=no
17199      hardcode_runpath_var=yes
17200      runpath_var=LD_RUN_PATH
17201      ;;
17202
17203   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17204      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17205      if test "$GCC" = yes; then
17206	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17207      else
17208	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17209      fi
17210      runpath_var='LD_RUN_PATH'
17211      hardcode_shlibpath_var_GCJ=no
17212      ;;
17213
17214    sysv5*)
17215      no_undefined_flag_GCJ=' -z text'
17216      # $CC -shared without GNU ld will not create a library from C++
17217      # object files and a static libstdc++, better avoid it by now
17218      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17219      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17220  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17221      hardcode_libdir_flag_spec_GCJ=
17222      hardcode_shlibpath_var_GCJ=no
17223      runpath_var='LD_RUN_PATH'
17224      ;;
17225
17226    uts4*)
17227      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17228      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17229      hardcode_shlibpath_var_GCJ=no
17230      ;;
17231
17232    *)
17233      ld_shlibs_GCJ=no
17234      ;;
17235    esac
17236  fi
17237
17238echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17239echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17240test "$ld_shlibs_GCJ" = no && can_build_shared=no
17241
17242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17243if test "$GCC" = yes; then
17244  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17245fi
17246
17247#
17248# Do we need to explicitly link libc?
17249#
17250case "x$archive_cmds_need_lc_GCJ" in
17251x|xyes)
17252  # Assume -lc should be added
17253  archive_cmds_need_lc_GCJ=yes
17254
17255  if test "$enable_shared" = yes && test "$GCC" = yes; then
17256    case $archive_cmds_GCJ in
17257    *'~'*)
17258      # FIXME: we may have to deal with multi-command sequences.
17259      ;;
17260    '$CC '*)
17261      # Test whether the compiler implicitly links with -lc since on some
17262      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17263      # to ld, don't add -lc before -lgcc.
17264      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17265echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17266      $rm conftest*
17267      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17268
17269      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17270  (eval $ac_compile) 2>&5
17271  ac_status=$?
17272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273  (exit $ac_status); } 2>conftest.err; then
17274        soname=conftest
17275        lib=conftest
17276        libobjs=conftest.$ac_objext
17277        deplibs=
17278        wl=$lt_prog_compiler_wl_GCJ
17279        compiler_flags=-v
17280        linker_flags=-v
17281        verstring=
17282        output_objdir=.
17283        libname=conftest
17284        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17285        allow_undefined_flag_GCJ=
17286        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17287  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17288  ac_status=$?
17289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290  (exit $ac_status); }
17291        then
17292	  archive_cmds_need_lc_GCJ=no
17293        else
17294	  archive_cmds_need_lc_GCJ=yes
17295        fi
17296        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17297      else
17298        cat conftest.err 1>&5
17299      fi
17300      $rm conftest*
17301      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17302echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17303      ;;
17304    esac
17305  fi
17306  ;;
17307esac
17308
17309echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17310echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17311library_names_spec=
17312libname_spec='lib$name'
17313soname_spec=
17314shrext_cmds=".so"
17315postinstall_cmds=
17316postuninstall_cmds=
17317finish_cmds=
17318finish_eval=
17319shlibpath_var=
17320shlibpath_overrides_runpath=unknown
17321version_type=none
17322dynamic_linker="$host_os ld.so"
17323sys_lib_dlsearch_path_spec="/lib /usr/lib"
17324if test "$GCC" = yes; then
17325  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17326  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17327    # if the path contains ";" then we assume it to be the separator
17328    # otherwise default to the standard path separator (i.e. ":") - it is
17329    # assumed that no part of a normal pathname contains ";" but that should
17330    # okay in the real world where ";" in dirpaths is itself problematic.
17331    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17332  else
17333    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17334  fi
17335else
17336  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17337fi
17338need_lib_prefix=unknown
17339hardcode_into_libs=no
17340
17341# when you set need_version to no, make sure it does not cause -set_version
17342# flags to be left without arguments
17343need_version=unknown
17344
17345case $host_os in
17346aix3*)
17347  version_type=linux
17348  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17349  shlibpath_var=LIBPATH
17350
17351  # AIX 3 has no versioning support, so we append a major version to the name.
17352  soname_spec='${libname}${release}${shared_ext}$major'
17353  ;;
17354
17355aix4* | aix5*)
17356  version_type=linux
17357  need_lib_prefix=no
17358  need_version=no
17359  hardcode_into_libs=yes
17360  if test "$host_cpu" = ia64; then
17361    # AIX 5 supports IA64
17362    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17363    shlibpath_var=LD_LIBRARY_PATH
17364  else
17365    # With GCC up to 2.95.x, collect2 would create an import file
17366    # for dependence libraries.  The import file would start with
17367    # the line `#! .'.  This would cause the generated library to
17368    # depend on `.', always an invalid library.  This was fixed in
17369    # development snapshots of GCC prior to 3.0.
17370    case $host_os in
17371      aix4 | aix4.[01] | aix4.[01].*)
17372      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17373	   echo ' yes '
17374	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17375	:
17376      else
17377	can_build_shared=no
17378      fi
17379      ;;
17380    esac
17381    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17382    # soname into executable. Probably we can add versioning support to
17383    # collect2, so additional links can be useful in future.
17384    if test "$aix_use_runtimelinking" = yes; then
17385      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17386      # instead of lib<name>.a to let people know that these are not
17387      # typical AIX shared libraries.
17388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389    else
17390      # We preserve .a as extension for shared libraries through AIX4.2
17391      # and later when we are not doing run time linking.
17392      library_names_spec='${libname}${release}.a $libname.a'
17393      soname_spec='${libname}${release}${shared_ext}$major'
17394    fi
17395    shlibpath_var=LIBPATH
17396  fi
17397  ;;
17398
17399amigaos*)
17400  library_names_spec='$libname.ixlibrary $libname.a'
17401  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17402  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'
17403  ;;
17404
17405beos*)
17406  library_names_spec='${libname}${shared_ext}'
17407  dynamic_linker="$host_os ld.so"
17408  shlibpath_var=LIBRARY_PATH
17409  ;;
17410
17411bsdi[45]*)
17412  version_type=linux
17413  need_version=no
17414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17415  soname_spec='${libname}${release}${shared_ext}$major'
17416  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17417  shlibpath_var=LD_LIBRARY_PATH
17418  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17419  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17420  # the default ld.so.conf also contains /usr/contrib/lib and
17421  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17422  # libtool to hard-code these into programs
17423  ;;
17424
17425cygwin* | mingw* | pw32*)
17426  version_type=windows
17427  shrext_cmds=".dll"
17428  need_version=no
17429  need_lib_prefix=no
17430
17431  case $GCC,$host_os in
17432  yes,cygwin* | yes,mingw* | yes,pw32*)
17433    library_names_spec='$libname.dll.a'
17434    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17435    postinstall_cmds='base_file=`basename \${file}`~
17436      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17437      dldir=$destdir/`dirname \$dlpath`~
17438      test -d \$dldir || mkdir -p \$dldir~
17439      $install_prog $dir/$dlname \$dldir/$dlname~
17440      chmod a+x \$dldir/$dlname'
17441    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17442      dlpath=$dir/\$dldll~
17443       $rm \$dlpath'
17444    shlibpath_overrides_runpath=yes
17445
17446    case $host_os in
17447    cygwin*)
17448      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17449      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17450      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17451      ;;
17452    mingw*)
17453      # MinGW DLLs use traditional 'lib' prefix
17454      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17455      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17456      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17457        # It is most probably a Windows format PATH printed by
17458        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17459        # path with ; separators, and with drive letters. We can handle the
17460        # drive letters (cygwin fileutils understands them), so leave them,
17461        # especially as we might pass files found there to a mingw objdump,
17462        # which wouldn't understand a cygwinified path. Ahh.
17463        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17464      else
17465        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17466      fi
17467      ;;
17468    pw32*)
17469      # pw32 DLLs use 'pw' prefix rather than 'lib'
17470      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17471      ;;
17472    esac
17473    ;;
17474
17475  *)
17476    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17477    ;;
17478  esac
17479  dynamic_linker='Win32 ld.exe'
17480  # FIXME: first we should search . and the directory the executable is in
17481  shlibpath_var=PATH
17482  ;;
17483
17484darwin* | rhapsody*)
17485  dynamic_linker="$host_os dyld"
17486  version_type=darwin
17487  need_lib_prefix=no
17488  need_version=no
17489  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17490  soname_spec='${libname}${release}${major}$shared_ext'
17491  shlibpath_overrides_runpath=yes
17492  shlibpath_var=DYLD_LIBRARY_PATH
17493  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17494  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17495  if test "$GCC" = yes; then
17496    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"`
17497  else
17498    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17499  fi
17500  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17501  ;;
17502
17503dgux*)
17504  version_type=linux
17505  need_lib_prefix=no
17506  need_version=no
17507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17508  soname_spec='${libname}${release}${shared_ext}$major'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  ;;
17511
17512freebsd1*)
17513  dynamic_linker=no
17514  ;;
17515
17516kfreebsd*-gnu)
17517  version_type=linux
17518  need_lib_prefix=no
17519  need_version=no
17520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17521  soname_spec='${libname}${release}${shared_ext}$major'
17522  shlibpath_var=LD_LIBRARY_PATH
17523  shlibpath_overrides_runpath=no
17524  hardcode_into_libs=yes
17525  dynamic_linker='GNU ld.so'
17526  ;;
17527
17528freebsd* | dragonfly*)
17529  # DragonFly does not have aout.  When/if they implement a new
17530  # versioning mechanism, adjust this.
17531  if test -x /usr/bin/objformat; then
17532    objformat=`/usr/bin/objformat`
17533  else
17534    case $host_os in
17535    freebsd[123]*) objformat=aout ;;
17536    *) objformat=elf ;;
17537    esac
17538  fi
17539  version_type=freebsd-$objformat
17540  case $version_type in
17541    freebsd-elf*)
17542      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17543      need_version=no
17544      need_lib_prefix=no
17545      ;;
17546    freebsd-*)
17547      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17548      need_version=yes
17549      ;;
17550  esac
17551  shlibpath_var=LD_LIBRARY_PATH
17552  case $host_os in
17553  freebsd2*)
17554    shlibpath_overrides_runpath=yes
17555    ;;
17556  freebsd3.[01]* | freebsdelf3.[01]*)
17557    shlibpath_overrides_runpath=yes
17558    hardcode_into_libs=yes
17559    ;;
17560  *) # from 3.2 on
17561    shlibpath_overrides_runpath=no
17562    hardcode_into_libs=yes
17563    ;;
17564  esac
17565  ;;
17566
17567gnu*)
17568  version_type=linux
17569  need_lib_prefix=no
17570  need_version=no
17571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17572  soname_spec='${libname}${release}${shared_ext}$major'
17573  shlibpath_var=LD_LIBRARY_PATH
17574  hardcode_into_libs=yes
17575  ;;
17576
17577hpux9* | hpux10* | hpux11*)
17578  # Give a soname corresponding to the major version so that dld.sl refuses to
17579  # link against other versions.
17580  version_type=sunos
17581  need_lib_prefix=no
17582  need_version=no
17583  case $host_cpu in
17584  ia64*)
17585    shrext_cmds='.so'
17586    hardcode_into_libs=yes
17587    dynamic_linker="$host_os dld.so"
17588    shlibpath_var=LD_LIBRARY_PATH
17589    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17590    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591    soname_spec='${libname}${release}${shared_ext}$major'
17592    if test "X$HPUX_IA64_MODE" = X32; then
17593      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17594    else
17595      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17596    fi
17597    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17598    ;;
17599   hppa*64*)
17600     shrext_cmds='.sl'
17601     hardcode_into_libs=yes
17602     dynamic_linker="$host_os dld.sl"
17603     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17604     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606     soname_spec='${libname}${release}${shared_ext}$major'
17607     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17609     ;;
17610   *)
17611    shrext_cmds='.sl'
17612    dynamic_linker="$host_os dld.sl"
17613    shlibpath_var=SHLIB_PATH
17614    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616    soname_spec='${libname}${release}${shared_ext}$major'
17617    ;;
17618  esac
17619  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17620  postinstall_cmds='chmod 555 $lib'
17621  ;;
17622
17623irix5* | irix6* | nonstopux*)
17624  case $host_os in
17625    nonstopux*) version_type=nonstopux ;;
17626    *)
17627	if test "$lt_cv_prog_gnu_ld" = yes; then
17628		version_type=linux
17629	else
17630		version_type=irix
17631	fi ;;
17632  esac
17633  need_lib_prefix=no
17634  need_version=no
17635  soname_spec='${libname}${release}${shared_ext}$major'
17636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17637  case $host_os in
17638  irix5* | nonstopux*)
17639    libsuff= shlibsuff=
17640    ;;
17641  *)
17642    case $LD in # libtool.m4 will add one of these switches to LD
17643    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17644      libsuff= shlibsuff= libmagic=32-bit;;
17645    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17646      libsuff=32 shlibsuff=N32 libmagic=N32;;
17647    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17648      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17649    *) libsuff= shlibsuff= libmagic=never-match;;
17650    esac
17651    ;;
17652  esac
17653  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17654  shlibpath_overrides_runpath=no
17655  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17656  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17657  hardcode_into_libs=yes
17658  ;;
17659
17660# No shared lib support for Linux oldld, aout, or coff.
17661linux*oldld* | linux*aout* | linux*coff*)
17662  dynamic_linker=no
17663  ;;
17664
17665# This must be Linux ELF.
17666linux*)
17667  version_type=linux
17668  need_lib_prefix=no
17669  need_version=no
17670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671  soname_spec='${libname}${release}${shared_ext}$major'
17672  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17673  shlibpath_var=LD_LIBRARY_PATH
17674  shlibpath_overrides_runpath=no
17675  # This implies no fast_install, which is unacceptable.
17676  # Some rework will be needed to allow for fast_install
17677  # before this can be enabled.
17678  hardcode_into_libs=yes
17679
17680  # Append ld.so.conf contents to the search path
17681  if test -f /etc/ld.so.conf; then
17682    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' ' '`
17683    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17684  fi
17685
17686  # We used to test for /lib/ld.so.1 and disable shared libraries on
17687  # powerpc, because MkLinux only supported shared libraries with the
17688  # GNU dynamic linker.  Since this was broken with cross compilers,
17689  # most powerpc-linux boxes support dynamic linking these days and
17690  # people can always --disable-shared, the test was removed, and we
17691  # assume the GNU/Linux dynamic linker is in use.
17692  dynamic_linker='GNU/Linux ld.so'
17693  ;;
17694
17695netbsdelf*-gnu)
17696  version_type=linux
17697  need_lib_prefix=no
17698  need_version=no
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17700  soname_spec='${libname}${release}${shared_ext}$major'
17701  shlibpath_var=LD_LIBRARY_PATH
17702  shlibpath_overrides_runpath=no
17703  hardcode_into_libs=yes
17704  dynamic_linker='NetBSD ld.elf_so'
17705  ;;
17706
17707knetbsd*-gnu)
17708  version_type=linux
17709  need_lib_prefix=no
17710  need_version=no
17711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17712  soname_spec='${libname}${release}${shared_ext}$major'
17713  shlibpath_var=LD_LIBRARY_PATH
17714  shlibpath_overrides_runpath=no
17715  hardcode_into_libs=yes
17716  dynamic_linker='GNU ld.so'
17717  ;;
17718
17719netbsd*)
17720  version_type=sunos
17721  need_lib_prefix=no
17722  need_version=no
17723  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17724    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17726    dynamic_linker='NetBSD (a.out) ld.so'
17727  else
17728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17729    soname_spec='${libname}${release}${shared_ext}$major'
17730    dynamic_linker='NetBSD ld.elf_so'
17731  fi
17732  shlibpath_var=LD_LIBRARY_PATH
17733  shlibpath_overrides_runpath=yes
17734  hardcode_into_libs=yes
17735  ;;
17736
17737newsos6)
17738  version_type=linux
17739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740  shlibpath_var=LD_LIBRARY_PATH
17741  shlibpath_overrides_runpath=yes
17742  ;;
17743
17744nto-qnx*)
17745  version_type=linux
17746  need_lib_prefix=no
17747  need_version=no
17748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749  soname_spec='${libname}${release}${shared_ext}$major'
17750  shlibpath_var=LD_LIBRARY_PATH
17751  shlibpath_overrides_runpath=yes
17752  ;;
17753
17754openbsd*)
17755  version_type=sunos
17756  need_lib_prefix=no
17757  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17758  case $host_os in
17759    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17760    *)                         need_version=no  ;;
17761  esac
17762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17763  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17764  shlibpath_var=LD_LIBRARY_PATH
17765  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17766    case $host_os in
17767      openbsd2.[89] | openbsd2.[89].*)
17768	shlibpath_overrides_runpath=no
17769	;;
17770      *)
17771	shlibpath_overrides_runpath=yes
17772	;;
17773      esac
17774  else
17775    shlibpath_overrides_runpath=yes
17776  fi
17777  ;;
17778
17779os2*)
17780  libname_spec='$name'
17781  shrext_cmds=".dll"
17782  need_lib_prefix=no
17783  library_names_spec='$libname${shared_ext} $libname.a'
17784  dynamic_linker='OS/2 ld.exe'
17785  shlibpath_var=LIBPATH
17786  ;;
17787
17788osf3* | osf4* | osf5*)
17789  version_type=osf
17790  need_lib_prefix=no
17791  need_version=no
17792  soname_spec='${libname}${release}${shared_ext}$major'
17793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794  shlibpath_var=LD_LIBRARY_PATH
17795  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17796  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17797  ;;
17798
17799sco3.2v5*)
17800  version_type=osf
17801  soname_spec='${libname}${release}${shared_ext}$major'
17802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17803  shlibpath_var=LD_LIBRARY_PATH
17804  ;;
17805
17806solaris*)
17807  version_type=linux
17808  need_lib_prefix=no
17809  need_version=no
17810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811  soname_spec='${libname}${release}${shared_ext}$major'
17812  shlibpath_var=LD_LIBRARY_PATH
17813  shlibpath_overrides_runpath=yes
17814  hardcode_into_libs=yes
17815  # ldd complains unless libraries are executable
17816  postinstall_cmds='chmod +x $lib'
17817  ;;
17818
17819sunos4*)
17820  version_type=sunos
17821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17822  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17823  shlibpath_var=LD_LIBRARY_PATH
17824  shlibpath_overrides_runpath=yes
17825  if test "$with_gnu_ld" = yes; then
17826    need_lib_prefix=no
17827  fi
17828  need_version=yes
17829  ;;
17830
17831sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17832  version_type=linux
17833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834  soname_spec='${libname}${release}${shared_ext}$major'
17835  shlibpath_var=LD_LIBRARY_PATH
17836  case $host_vendor in
17837    sni)
17838      shlibpath_overrides_runpath=no
17839      need_lib_prefix=no
17840      export_dynamic_flag_spec='${wl}-Blargedynsym'
17841      runpath_var=LD_RUN_PATH
17842      ;;
17843    siemens)
17844      need_lib_prefix=no
17845      ;;
17846    motorola)
17847      need_lib_prefix=no
17848      need_version=no
17849      shlibpath_overrides_runpath=no
17850      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17851      ;;
17852  esac
17853  ;;
17854
17855sysv4*MP*)
17856  if test -d /usr/nec ;then
17857    version_type=linux
17858    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17859    soname_spec='$libname${shared_ext}.$major'
17860    shlibpath_var=LD_LIBRARY_PATH
17861  fi
17862  ;;
17863
17864uts4*)
17865  version_type=linux
17866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17867  soname_spec='${libname}${release}${shared_ext}$major'
17868  shlibpath_var=LD_LIBRARY_PATH
17869  ;;
17870
17871*)
17872  dynamic_linker=no
17873  ;;
17874esac
17875echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17876echo "${ECHO_T}$dynamic_linker" >&6
17877test "$dynamic_linker" = no && can_build_shared=no
17878
17879echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17880echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17881hardcode_action_GCJ=
17882if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17883   test -n "$runpath_var_GCJ" || \
17884   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17885
17886  # We can hardcode non-existant directories.
17887  if test "$hardcode_direct_GCJ" != no &&
17888     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17889     # have to relink, otherwise we might link with an installed library
17890     # when we should be linking with a yet-to-be-installed one
17891     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17892     test "$hardcode_minus_L_GCJ" != no; then
17893    # Linking always hardcodes the temporary library directory.
17894    hardcode_action_GCJ=relink
17895  else
17896    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17897    hardcode_action_GCJ=immediate
17898  fi
17899else
17900  # We cannot hardcode anything, or else we can only hardcode existing
17901  # directories.
17902  hardcode_action_GCJ=unsupported
17903fi
17904echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17905echo "${ECHO_T}$hardcode_action_GCJ" >&6
17906
17907if test "$hardcode_action_GCJ" = relink; then
17908  # Fast installation is not supported
17909  enable_fast_install=no
17910elif test "$shlibpath_overrides_runpath" = yes ||
17911     test "$enable_shared" = no; then
17912  # Fast installation is not necessary
17913  enable_fast_install=needless
17914fi
17915
17916striplib=
17917old_striplib=
17918echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17919echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17920if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17921  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17922  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17923  echo "$as_me:$LINENO: result: yes" >&5
17924echo "${ECHO_T}yes" >&6
17925else
17926# FIXME - insert some real tests, host_os isn't really good enough
17927  case $host_os in
17928   darwin*)
17929       if test -n "$STRIP" ; then
17930         striplib="$STRIP -x"
17931         echo "$as_me:$LINENO: result: yes" >&5
17932echo "${ECHO_T}yes" >&6
17933       else
17934  echo "$as_me:$LINENO: result: no" >&5
17935echo "${ECHO_T}no" >&6
17936fi
17937       ;;
17938   *)
17939  echo "$as_me:$LINENO: result: no" >&5
17940echo "${ECHO_T}no" >&6
17941    ;;
17942  esac
17943fi
17944
17945if test "x$enable_dlopen" != xyes; then
17946  enable_dlopen=unknown
17947  enable_dlopen_self=unknown
17948  enable_dlopen_self_static=unknown
17949else
17950  lt_cv_dlopen=no
17951  lt_cv_dlopen_libs=
17952
17953  case $host_os in
17954  beos*)
17955    lt_cv_dlopen="load_add_on"
17956    lt_cv_dlopen_libs=
17957    lt_cv_dlopen_self=yes
17958    ;;
17959
17960  mingw* | pw32*)
17961    lt_cv_dlopen="LoadLibrary"
17962    lt_cv_dlopen_libs=
17963   ;;
17964
17965  cygwin*)
17966    lt_cv_dlopen="dlopen"
17967    lt_cv_dlopen_libs=
17968   ;;
17969
17970  darwin*)
17971  # if libdl is installed we need to link against it
17972    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17973echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17974if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17975  echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977  ac_check_lib_save_LIBS=$LIBS
17978LIBS="-ldl  $LIBS"
17979cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h.  */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h.  */
17985
17986/* Override any gcc2 internal prototype to avoid an error.  */
17987#ifdef __cplusplus
17988extern "C"
17989#endif
17990/* We use char because int might match the return type of a gcc2
17991   builtin and then its argument prototype would still apply.  */
17992char dlopen ();
17993int
17994main ()
17995{
17996dlopen ();
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003  (eval $ac_link) 2>conftest.er1
18004  ac_status=$?
18005  grep -v '^ *+' conftest.er1 >conftest.err
18006  rm -f conftest.er1
18007  cat conftest.err >&5
18008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009  (exit $ac_status); } &&
18010	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012  (eval $ac_try) 2>&5
18013  ac_status=$?
18014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015  (exit $ac_status); }; } &&
18016	 { ac_try='test -s conftest$ac_exeext'
18017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018  (eval $ac_try) 2>&5
18019  ac_status=$?
18020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021  (exit $ac_status); }; }; then
18022  ac_cv_lib_dl_dlopen=yes
18023else
18024  echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026
18027ac_cv_lib_dl_dlopen=no
18028fi
18029rm -f conftest.err conftest.$ac_objext \
18030      conftest$ac_exeext conftest.$ac_ext
18031LIBS=$ac_check_lib_save_LIBS
18032fi
18033echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18034echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18035if test $ac_cv_lib_dl_dlopen = yes; then
18036  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18037else
18038
18039    lt_cv_dlopen="dyld"
18040    lt_cv_dlopen_libs=
18041    lt_cv_dlopen_self=yes
18042
18043fi
18044
18045   ;;
18046
18047  *)
18048    echo "$as_me:$LINENO: checking for shl_load" >&5
18049echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18050if test "${ac_cv_func_shl_load+set}" = set; then
18051  echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053  cat >conftest.$ac_ext <<_ACEOF
18054/* confdefs.h.  */
18055_ACEOF
18056cat confdefs.h >>conftest.$ac_ext
18057cat >>conftest.$ac_ext <<_ACEOF
18058/* end confdefs.h.  */
18059/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18060   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18061#define shl_load innocuous_shl_load
18062
18063/* System header to define __stub macros and hopefully few prototypes,
18064    which can conflict with char shl_load (); below.
18065    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066    <limits.h> exists even on freestanding compilers.  */
18067
18068#ifdef __STDC__
18069# include <limits.h>
18070#else
18071# include <assert.h>
18072#endif
18073
18074#undef shl_load
18075
18076/* Override any gcc2 internal prototype to avoid an error.  */
18077#ifdef __cplusplus
18078extern "C"
18079{
18080#endif
18081/* We use char because int might match the return type of a gcc2
18082   builtin and then its argument prototype would still apply.  */
18083char shl_load ();
18084/* The GNU C library defines this for functions which it implements
18085    to always fail with ENOSYS.  Some functions are actually named
18086    something starting with __ and the normal name is an alias.  */
18087#if defined (__stub_shl_load) || defined (__stub___shl_load)
18088choke me
18089#else
18090char (*f) () = shl_load;
18091#endif
18092#ifdef __cplusplus
18093}
18094#endif
18095
18096int
18097main ()
18098{
18099return f != shl_load;
18100  ;
18101  return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext conftest$ac_exeext
18105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106  (eval $ac_link) 2>conftest.er1
18107  ac_status=$?
18108  grep -v '^ *+' conftest.er1 >conftest.err
18109  rm -f conftest.er1
18110  cat conftest.err >&5
18111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112  (exit $ac_status); } &&
18113	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115  (eval $ac_try) 2>&5
18116  ac_status=$?
18117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118  (exit $ac_status); }; } &&
18119	 { ac_try='test -s conftest$ac_exeext'
18120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121  (eval $ac_try) 2>&5
18122  ac_status=$?
18123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124  (exit $ac_status); }; }; then
18125  ac_cv_func_shl_load=yes
18126else
18127  echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130ac_cv_func_shl_load=no
18131fi
18132rm -f conftest.err conftest.$ac_objext \
18133      conftest$ac_exeext conftest.$ac_ext
18134fi
18135echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18136echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18137if test $ac_cv_func_shl_load = yes; then
18138  lt_cv_dlopen="shl_load"
18139else
18140  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18141echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18142if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18143  echo $ECHO_N "(cached) $ECHO_C" >&6
18144else
18145  ac_check_lib_save_LIBS=$LIBS
18146LIBS="-ldld  $LIBS"
18147cat >conftest.$ac_ext <<_ACEOF
18148/* confdefs.h.  */
18149_ACEOF
18150cat confdefs.h >>conftest.$ac_ext
18151cat >>conftest.$ac_ext <<_ACEOF
18152/* end confdefs.h.  */
18153
18154/* Override any gcc2 internal prototype to avoid an error.  */
18155#ifdef __cplusplus
18156extern "C"
18157#endif
18158/* We use char because int might match the return type of a gcc2
18159   builtin and then its argument prototype would still apply.  */
18160char shl_load ();
18161int
18162main ()
18163{
18164shl_load ();
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169rm -f conftest.$ac_objext conftest$ac_exeext
18170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18171  (eval $ac_link) 2>conftest.er1
18172  ac_status=$?
18173  grep -v '^ *+' conftest.er1 >conftest.err
18174  rm -f conftest.er1
18175  cat conftest.err >&5
18176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177  (exit $ac_status); } &&
18178	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180  (eval $ac_try) 2>&5
18181  ac_status=$?
18182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183  (exit $ac_status); }; } &&
18184	 { ac_try='test -s conftest$ac_exeext'
18185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186  (eval $ac_try) 2>&5
18187  ac_status=$?
18188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189  (exit $ac_status); }; }; then
18190  ac_cv_lib_dld_shl_load=yes
18191else
18192  echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195ac_cv_lib_dld_shl_load=no
18196fi
18197rm -f conftest.err conftest.$ac_objext \
18198      conftest$ac_exeext conftest.$ac_ext
18199LIBS=$ac_check_lib_save_LIBS
18200fi
18201echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18202echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18203if test $ac_cv_lib_dld_shl_load = yes; then
18204  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18205else
18206  echo "$as_me:$LINENO: checking for dlopen" >&5
18207echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18208if test "${ac_cv_func_dlopen+set}" = set; then
18209  echo $ECHO_N "(cached) $ECHO_C" >&6
18210else
18211  cat >conftest.$ac_ext <<_ACEOF
18212/* confdefs.h.  */
18213_ACEOF
18214cat confdefs.h >>conftest.$ac_ext
18215cat >>conftest.$ac_ext <<_ACEOF
18216/* end confdefs.h.  */
18217/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18218   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18219#define dlopen innocuous_dlopen
18220
18221/* System header to define __stub macros and hopefully few prototypes,
18222    which can conflict with char dlopen (); below.
18223    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18224    <limits.h> exists even on freestanding compilers.  */
18225
18226#ifdef __STDC__
18227# include <limits.h>
18228#else
18229# include <assert.h>
18230#endif
18231
18232#undef dlopen
18233
18234/* Override any gcc2 internal prototype to avoid an error.  */
18235#ifdef __cplusplus
18236extern "C"
18237{
18238#endif
18239/* We use char because int might match the return type of a gcc2
18240   builtin and then its argument prototype would still apply.  */
18241char dlopen ();
18242/* The GNU C library defines this for functions which it implements
18243    to always fail with ENOSYS.  Some functions are actually named
18244    something starting with __ and the normal name is an alias.  */
18245#if defined (__stub_dlopen) || defined (__stub___dlopen)
18246choke me
18247#else
18248char (*f) () = dlopen;
18249#endif
18250#ifdef __cplusplus
18251}
18252#endif
18253
18254int
18255main ()
18256{
18257return f != dlopen;
18258  ;
18259  return 0;
18260}
18261_ACEOF
18262rm -f conftest.$ac_objext conftest$ac_exeext
18263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264  (eval $ac_link) 2>conftest.er1
18265  ac_status=$?
18266  grep -v '^ *+' conftest.er1 >conftest.err
18267  rm -f conftest.er1
18268  cat conftest.err >&5
18269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); } &&
18271	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273  (eval $ac_try) 2>&5
18274  ac_status=$?
18275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276  (exit $ac_status); }; } &&
18277	 { ac_try='test -s conftest$ac_exeext'
18278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279  (eval $ac_try) 2>&5
18280  ac_status=$?
18281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282  (exit $ac_status); }; }; then
18283  ac_cv_func_dlopen=yes
18284else
18285  echo "$as_me: failed program was:" >&5
18286sed 's/^/| /' conftest.$ac_ext >&5
18287
18288ac_cv_func_dlopen=no
18289fi
18290rm -f conftest.err conftest.$ac_objext \
18291      conftest$ac_exeext conftest.$ac_ext
18292fi
18293echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18294echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18295if test $ac_cv_func_dlopen = yes; then
18296  lt_cv_dlopen="dlopen"
18297else
18298  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18299echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18300if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18301  echo $ECHO_N "(cached) $ECHO_C" >&6
18302else
18303  ac_check_lib_save_LIBS=$LIBS
18304LIBS="-ldl  $LIBS"
18305cat >conftest.$ac_ext <<_ACEOF
18306/* confdefs.h.  */
18307_ACEOF
18308cat confdefs.h >>conftest.$ac_ext
18309cat >>conftest.$ac_ext <<_ACEOF
18310/* end confdefs.h.  */
18311
18312/* Override any gcc2 internal prototype to avoid an error.  */
18313#ifdef __cplusplus
18314extern "C"
18315#endif
18316/* We use char because int might match the return type of a gcc2
18317   builtin and then its argument prototype would still apply.  */
18318char dlopen ();
18319int
18320main ()
18321{
18322dlopen ();
18323  ;
18324  return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext conftest$ac_exeext
18328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329  (eval $ac_link) 2>conftest.er1
18330  ac_status=$?
18331  grep -v '^ *+' conftest.er1 >conftest.err
18332  rm -f conftest.er1
18333  cat conftest.err >&5
18334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335  (exit $ac_status); } &&
18336	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338  (eval $ac_try) 2>&5
18339  ac_status=$?
18340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341  (exit $ac_status); }; } &&
18342	 { ac_try='test -s conftest$ac_exeext'
18343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344  (eval $ac_try) 2>&5
18345  ac_status=$?
18346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347  (exit $ac_status); }; }; then
18348  ac_cv_lib_dl_dlopen=yes
18349else
18350  echo "$as_me: failed program was:" >&5
18351sed 's/^/| /' conftest.$ac_ext >&5
18352
18353ac_cv_lib_dl_dlopen=no
18354fi
18355rm -f conftest.err conftest.$ac_objext \
18356      conftest$ac_exeext conftest.$ac_ext
18357LIBS=$ac_check_lib_save_LIBS
18358fi
18359echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18360echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18361if test $ac_cv_lib_dl_dlopen = yes; then
18362  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18363else
18364  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18365echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18366if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18367  echo $ECHO_N "(cached) $ECHO_C" >&6
18368else
18369  ac_check_lib_save_LIBS=$LIBS
18370LIBS="-lsvld  $LIBS"
18371cat >conftest.$ac_ext <<_ACEOF
18372/* confdefs.h.  */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
18376/* end confdefs.h.  */
18377
18378/* Override any gcc2 internal prototype to avoid an error.  */
18379#ifdef __cplusplus
18380extern "C"
18381#endif
18382/* We use char because int might match the return type of a gcc2
18383   builtin and then its argument prototype would still apply.  */
18384char dlopen ();
18385int
18386main ()
18387{
18388dlopen ();
18389  ;
18390  return 0;
18391}
18392_ACEOF
18393rm -f conftest.$ac_objext conftest$ac_exeext
18394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18395  (eval $ac_link) 2>conftest.er1
18396  ac_status=$?
18397  grep -v '^ *+' conftest.er1 >conftest.err
18398  rm -f conftest.er1
18399  cat conftest.err >&5
18400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401  (exit $ac_status); } &&
18402	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404  (eval $ac_try) 2>&5
18405  ac_status=$?
18406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407  (exit $ac_status); }; } &&
18408	 { ac_try='test -s conftest$ac_exeext'
18409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410  (eval $ac_try) 2>&5
18411  ac_status=$?
18412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413  (exit $ac_status); }; }; then
18414  ac_cv_lib_svld_dlopen=yes
18415else
18416  echo "$as_me: failed program was:" >&5
18417sed 's/^/| /' conftest.$ac_ext >&5
18418
18419ac_cv_lib_svld_dlopen=no
18420fi
18421rm -f conftest.err conftest.$ac_objext \
18422      conftest$ac_exeext conftest.$ac_ext
18423LIBS=$ac_check_lib_save_LIBS
18424fi
18425echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18426echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18427if test $ac_cv_lib_svld_dlopen = yes; then
18428  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18429else
18430  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18431echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18432if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18433  echo $ECHO_N "(cached) $ECHO_C" >&6
18434else
18435  ac_check_lib_save_LIBS=$LIBS
18436LIBS="-ldld  $LIBS"
18437cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h.  */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h.  */
18443
18444/* Override any gcc2 internal prototype to avoid an error.  */
18445#ifdef __cplusplus
18446extern "C"
18447#endif
18448/* We use char because int might match the return type of a gcc2
18449   builtin and then its argument prototype would still apply.  */
18450char dld_link ();
18451int
18452main ()
18453{
18454dld_link ();
18455  ;
18456  return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext conftest$ac_exeext
18460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18461  (eval $ac_link) 2>conftest.er1
18462  ac_status=$?
18463  grep -v '^ *+' conftest.er1 >conftest.err
18464  rm -f conftest.er1
18465  cat conftest.err >&5
18466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467  (exit $ac_status); } &&
18468	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470  (eval $ac_try) 2>&5
18471  ac_status=$?
18472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473  (exit $ac_status); }; } &&
18474	 { ac_try='test -s conftest$ac_exeext'
18475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476  (eval $ac_try) 2>&5
18477  ac_status=$?
18478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479  (exit $ac_status); }; }; then
18480  ac_cv_lib_dld_dld_link=yes
18481else
18482  echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485ac_cv_lib_dld_dld_link=no
18486fi
18487rm -f conftest.err conftest.$ac_objext \
18488      conftest$ac_exeext conftest.$ac_ext
18489LIBS=$ac_check_lib_save_LIBS
18490fi
18491echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18492echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18493if test $ac_cv_lib_dld_dld_link = yes; then
18494  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18495fi
18496
18497
18498fi
18499
18500
18501fi
18502
18503
18504fi
18505
18506
18507fi
18508
18509
18510fi
18511
18512    ;;
18513  esac
18514
18515  if test "x$lt_cv_dlopen" != xno; then
18516    enable_dlopen=yes
18517  else
18518    enable_dlopen=no
18519  fi
18520
18521  case $lt_cv_dlopen in
18522  dlopen)
18523    save_CPPFLAGS="$CPPFLAGS"
18524    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18525
18526    save_LDFLAGS="$LDFLAGS"
18527    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18528
18529    save_LIBS="$LIBS"
18530    LIBS="$lt_cv_dlopen_libs $LIBS"
18531
18532    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18533echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18534if test "${lt_cv_dlopen_self+set}" = set; then
18535  echo $ECHO_N "(cached) $ECHO_C" >&6
18536else
18537  	  if test "$cross_compiling" = yes; then :
18538  lt_cv_dlopen_self=cross
18539else
18540  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18541  lt_status=$lt_dlunknown
18542  cat > conftest.$ac_ext <<EOF
18543#line 18543 "configure"
18544#include "confdefs.h"
18545
18546#if HAVE_DLFCN_H
18547#include <dlfcn.h>
18548#endif
18549
18550#include <stdio.h>
18551
18552#ifdef RTLD_GLOBAL
18553#  define LT_DLGLOBAL		RTLD_GLOBAL
18554#else
18555#  ifdef DL_GLOBAL
18556#    define LT_DLGLOBAL		DL_GLOBAL
18557#  else
18558#    define LT_DLGLOBAL		0
18559#  endif
18560#endif
18561
18562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18563   find out it does not work in some platform. */
18564#ifndef LT_DLLAZY_OR_NOW
18565#  ifdef RTLD_LAZY
18566#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18567#  else
18568#    ifdef DL_LAZY
18569#      define LT_DLLAZY_OR_NOW		DL_LAZY
18570#    else
18571#      ifdef RTLD_NOW
18572#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18573#      else
18574#        ifdef DL_NOW
18575#          define LT_DLLAZY_OR_NOW	DL_NOW
18576#        else
18577#          define LT_DLLAZY_OR_NOW	0
18578#        endif
18579#      endif
18580#    endif
18581#  endif
18582#endif
18583
18584#ifdef __cplusplus
18585extern "C" void exit (int);
18586#endif
18587
18588void fnord() { int i=42;}
18589int main ()
18590{
18591  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18592  int status = $lt_dlunknown;
18593
18594  if (self)
18595    {
18596      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18597      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18598      /* dlclose (self); */
18599    }
18600
18601    exit (status);
18602}
18603EOF
18604  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605  (eval $ac_link) 2>&5
18606  ac_status=$?
18607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18609    (./conftest; exit; ) >&5 2>/dev/null
18610    lt_status=$?
18611    case x$lt_status in
18612      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18613      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18614      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18615    esac
18616  else :
18617    # compilation failed
18618    lt_cv_dlopen_self=no
18619  fi
18620fi
18621rm -fr conftest*
18622
18623
18624fi
18625echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18626echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18627
18628    if test "x$lt_cv_dlopen_self" = xyes; then
18629      LDFLAGS="$LDFLAGS $link_static_flag"
18630      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18631echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18632if test "${lt_cv_dlopen_self_static+set}" = set; then
18633  echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635  	  if test "$cross_compiling" = yes; then :
18636  lt_cv_dlopen_self_static=cross
18637else
18638  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18639  lt_status=$lt_dlunknown
18640  cat > conftest.$ac_ext <<EOF
18641#line 18641 "configure"
18642#include "confdefs.h"
18643
18644#if HAVE_DLFCN_H
18645#include <dlfcn.h>
18646#endif
18647
18648#include <stdio.h>
18649
18650#ifdef RTLD_GLOBAL
18651#  define LT_DLGLOBAL		RTLD_GLOBAL
18652#else
18653#  ifdef DL_GLOBAL
18654#    define LT_DLGLOBAL		DL_GLOBAL
18655#  else
18656#    define LT_DLGLOBAL		0
18657#  endif
18658#endif
18659
18660/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18661   find out it does not work in some platform. */
18662#ifndef LT_DLLAZY_OR_NOW
18663#  ifdef RTLD_LAZY
18664#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18665#  else
18666#    ifdef DL_LAZY
18667#      define LT_DLLAZY_OR_NOW		DL_LAZY
18668#    else
18669#      ifdef RTLD_NOW
18670#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18671#      else
18672#        ifdef DL_NOW
18673#          define LT_DLLAZY_OR_NOW	DL_NOW
18674#        else
18675#          define LT_DLLAZY_OR_NOW	0
18676#        endif
18677#      endif
18678#    endif
18679#  endif
18680#endif
18681
18682#ifdef __cplusplus
18683extern "C" void exit (int);
18684#endif
18685
18686void fnord() { int i=42;}
18687int main ()
18688{
18689  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18690  int status = $lt_dlunknown;
18691
18692  if (self)
18693    {
18694      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18695      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18696      /* dlclose (self); */
18697    }
18698
18699    exit (status);
18700}
18701EOF
18702  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18703  (eval $ac_link) 2>&5
18704  ac_status=$?
18705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18707    (./conftest; exit; ) >&5 2>/dev/null
18708    lt_status=$?
18709    case x$lt_status in
18710      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18711      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18712      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18713    esac
18714  else :
18715    # compilation failed
18716    lt_cv_dlopen_self_static=no
18717  fi
18718fi
18719rm -fr conftest*
18720
18721
18722fi
18723echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18724echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18725    fi
18726
18727    CPPFLAGS="$save_CPPFLAGS"
18728    LDFLAGS="$save_LDFLAGS"
18729    LIBS="$save_LIBS"
18730    ;;
18731  esac
18732
18733  case $lt_cv_dlopen_self in
18734  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18735  *) enable_dlopen_self=unknown ;;
18736  esac
18737
18738  case $lt_cv_dlopen_self_static in
18739  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18740  *) enable_dlopen_self_static=unknown ;;
18741  esac
18742fi
18743
18744
18745# The else clause should only fire when bootstrapping the
18746# libtool distribution, otherwise you forgot to ship ltmain.sh
18747# with your package, and you will get complaints that there are
18748# no rules to generate ltmain.sh.
18749if test -f "$ltmain"; then
18750  # See if we are running on zsh, and set the options which allow our commands through
18751  # without removal of \ escapes.
18752  if test -n "${ZSH_VERSION+set}" ; then
18753    setopt NO_GLOB_SUBST
18754  fi
18755  # Now quote all the things that may contain metacharacters while being
18756  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18757  # variables and quote the copies for generation of the libtool script.
18758  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18759    SED SHELL STRIP \
18760    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18761    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18762    deplibs_check_method reload_flag reload_cmds need_locks \
18763    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18764    lt_cv_sys_global_symbol_to_c_name_address \
18765    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18766    old_postinstall_cmds old_postuninstall_cmds \
18767    compiler_GCJ \
18768    CC_GCJ \
18769    LD_GCJ \
18770    lt_prog_compiler_wl_GCJ \
18771    lt_prog_compiler_pic_GCJ \
18772    lt_prog_compiler_static_GCJ \
18773    lt_prog_compiler_no_builtin_flag_GCJ \
18774    export_dynamic_flag_spec_GCJ \
18775    thread_safe_flag_spec_GCJ \
18776    whole_archive_flag_spec_GCJ \
18777    enable_shared_with_static_runtimes_GCJ \
18778    old_archive_cmds_GCJ \
18779    old_archive_from_new_cmds_GCJ \
18780    predep_objects_GCJ \
18781    postdep_objects_GCJ \
18782    predeps_GCJ \
18783    postdeps_GCJ \
18784    compiler_lib_search_path_GCJ \
18785    archive_cmds_GCJ \
18786    archive_expsym_cmds_GCJ \
18787    postinstall_cmds_GCJ \
18788    postuninstall_cmds_GCJ \
18789    old_archive_from_expsyms_cmds_GCJ \
18790    allow_undefined_flag_GCJ \
18791    no_undefined_flag_GCJ \
18792    export_symbols_cmds_GCJ \
18793    hardcode_libdir_flag_spec_GCJ \
18794    hardcode_libdir_flag_spec_ld_GCJ \
18795    hardcode_libdir_separator_GCJ \
18796    hardcode_automatic_GCJ \
18797    module_cmds_GCJ \
18798    module_expsym_cmds_GCJ \
18799    lt_cv_prog_compiler_c_o_GCJ \
18800    exclude_expsyms_GCJ \
18801    include_expsyms_GCJ; do
18802
18803    case $var in
18804    old_archive_cmds_GCJ | \
18805    old_archive_from_new_cmds_GCJ | \
18806    archive_cmds_GCJ | \
18807    archive_expsym_cmds_GCJ | \
18808    module_cmds_GCJ | \
18809    module_expsym_cmds_GCJ | \
18810    old_archive_from_expsyms_cmds_GCJ | \
18811    export_symbols_cmds_GCJ | \
18812    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18813    postinstall_cmds | postuninstall_cmds | \
18814    old_postinstall_cmds | old_postuninstall_cmds | \
18815    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18816      # Double-quote double-evaled strings.
18817      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18818      ;;
18819    *)
18820      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18821      ;;
18822    esac
18823  done
18824
18825  case $lt_echo in
18826  *'\$0 --fallback-echo"')
18827    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18828    ;;
18829  esac
18830
18831cfgfile="$ofile"
18832
18833  cat <<__EOF__ >> "$cfgfile"
18834# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18835
18836# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18837
18838# Shell to use when invoking shell scripts.
18839SHELL=$lt_SHELL
18840
18841# Whether or not to build shared libraries.
18842build_libtool_libs=$enable_shared
18843
18844# Whether or not to build static libraries.
18845build_old_libs=$enable_static
18846
18847# Whether or not to add -lc for building shared libraries.
18848build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18849
18850# Whether or not to disallow shared libs when runtime libs are static
18851allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18852
18853# Whether or not to optimize for fast installation.
18854fast_install=$enable_fast_install
18855
18856# The host system.
18857host_alias=$host_alias
18858host=$host
18859host_os=$host_os
18860
18861# The build system.
18862build_alias=$build_alias
18863build=$build
18864build_os=$build_os
18865
18866# An echo program that does not interpret backslashes.
18867echo=$lt_echo
18868
18869# The archiver.
18870AR=$lt_AR
18871AR_FLAGS=$lt_AR_FLAGS
18872
18873# A C compiler.
18874LTCC=$lt_LTCC
18875
18876# A language-specific compiler.
18877CC=$lt_compiler_GCJ
18878
18879# Is the compiler the GNU C compiler?
18880with_gcc=$GCC_GCJ
18881
18882# An ERE matcher.
18883EGREP=$lt_EGREP
18884
18885# The linker used to build libraries.
18886LD=$lt_LD_GCJ
18887
18888# Whether we need hard or soft links.
18889LN_S=$lt_LN_S
18890
18891# A BSD-compatible nm program.
18892NM=$lt_NM
18893
18894# A symbol stripping program
18895STRIP=$lt_STRIP
18896
18897# Used to examine libraries when file_magic_cmd begins "file"
18898MAGIC_CMD=$MAGIC_CMD
18899
18900# Used on cygwin: DLL creation program.
18901DLLTOOL="$DLLTOOL"
18902
18903# Used on cygwin: object dumper.
18904OBJDUMP="$OBJDUMP"
18905
18906# Used on cygwin: assembler.
18907AS="$AS"
18908
18909# The name of the directory that contains temporary libtool files.
18910objdir=$objdir
18911
18912# How to create reloadable object files.
18913reload_flag=$lt_reload_flag
18914reload_cmds=$lt_reload_cmds
18915
18916# How to pass a linker flag through the compiler.
18917wl=$lt_lt_prog_compiler_wl_GCJ
18918
18919# Object file suffix (normally "o").
18920objext="$ac_objext"
18921
18922# Old archive suffix (normally "a").
18923libext="$libext"
18924
18925# Shared library suffix (normally ".so").
18926shrext_cmds='$shrext_cmds'
18927
18928# Executable file suffix (normally "").
18929exeext="$exeext"
18930
18931# Additional compiler flags for building library objects.
18932pic_flag=$lt_lt_prog_compiler_pic_GCJ
18933pic_mode=$pic_mode
18934
18935# What is the maximum length of a command?
18936max_cmd_len=$lt_cv_sys_max_cmd_len
18937
18938# Does compiler simultaneously support -c and -o options?
18939compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18940
18941# Must we lock files when doing compilation?
18942need_locks=$lt_need_locks
18943
18944# Do we need the lib prefix for modules?
18945need_lib_prefix=$need_lib_prefix
18946
18947# Do we need a version for libraries?
18948need_version=$need_version
18949
18950# Whether dlopen is supported.
18951dlopen_support=$enable_dlopen
18952
18953# Whether dlopen of programs is supported.
18954dlopen_self=$enable_dlopen_self
18955
18956# Whether dlopen of statically linked programs is supported.
18957dlopen_self_static=$enable_dlopen_self_static
18958
18959# Compiler flag to prevent dynamic linking.
18960link_static_flag=$lt_lt_prog_compiler_static_GCJ
18961
18962# Compiler flag to turn off builtin functions.
18963no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18964
18965# Compiler flag to allow reflexive dlopens.
18966export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18967
18968# Compiler flag to generate shared objects directly from archives.
18969whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18970
18971# Compiler flag to generate thread-safe objects.
18972thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18973
18974# Library versioning type.
18975version_type=$version_type
18976
18977# Format of library name prefix.
18978libname_spec=$lt_libname_spec
18979
18980# List of archive names.  First name is the real one, the rest are links.
18981# The last name is the one that the linker finds with -lNAME.
18982library_names_spec=$lt_library_names_spec
18983
18984# The coded name of the library, if different from the real name.
18985soname_spec=$lt_soname_spec
18986
18987# Commands used to build and install an old-style archive.
18988RANLIB=$lt_RANLIB
18989old_archive_cmds=$lt_old_archive_cmds_GCJ
18990old_postinstall_cmds=$lt_old_postinstall_cmds
18991old_postuninstall_cmds=$lt_old_postuninstall_cmds
18992
18993# Create an old-style archive from a shared archive.
18994old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18995
18996# Create a temporary old-style archive to link instead of a shared archive.
18997old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18998
18999# Commands used to build and install a shared archive.
19000archive_cmds=$lt_archive_cmds_GCJ
19001archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19002postinstall_cmds=$lt_postinstall_cmds
19003postuninstall_cmds=$lt_postuninstall_cmds
19004
19005# Commands used to build a loadable module (assumed same as above if empty)
19006module_cmds=$lt_module_cmds_GCJ
19007module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19008
19009# Commands to strip libraries.
19010old_striplib=$lt_old_striplib
19011striplib=$lt_striplib
19012
19013# Dependencies to place before the objects being linked to create a
19014# shared library.
19015predep_objects=$lt_predep_objects_GCJ
19016
19017# Dependencies to place after the objects being linked to create a
19018# shared library.
19019postdep_objects=$lt_postdep_objects_GCJ
19020
19021# Dependencies to place before the objects being linked to create a
19022# shared library.
19023predeps=$lt_predeps_GCJ
19024
19025# Dependencies to place after the objects being linked to create a
19026# shared library.
19027postdeps=$lt_postdeps_GCJ
19028
19029# The library search path used internally by the compiler when linking
19030# a shared library.
19031compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19032
19033# Method to check whether dependent libraries are shared objects.
19034deplibs_check_method=$lt_deplibs_check_method
19035
19036# Command to use when deplibs_check_method == file_magic.
19037file_magic_cmd=$lt_file_magic_cmd
19038
19039# Flag that allows shared libraries with undefined symbols to be built.
19040allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19041
19042# Flag that forces no undefined symbols.
19043no_undefined_flag=$lt_no_undefined_flag_GCJ
19044
19045# Commands used to finish a libtool library installation in a directory.
19046finish_cmds=$lt_finish_cmds
19047
19048# Same as above, but a single script fragment to be evaled but not shown.
19049finish_eval=$lt_finish_eval
19050
19051# Take the output of nm and produce a listing of raw symbols and C names.
19052global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19053
19054# Transform the output of nm in a proper C declaration
19055global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19056
19057# Transform the output of nm in a C name address pair
19058global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19059
19060# This is the shared library runtime path variable.
19061runpath_var=$runpath_var
19062
19063# This is the shared library path variable.
19064shlibpath_var=$shlibpath_var
19065
19066# Is shlibpath searched before the hard-coded library search path?
19067shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19068
19069# How to hardcode a shared library path into an executable.
19070hardcode_action=$hardcode_action_GCJ
19071
19072# Whether we should hardcode library paths into libraries.
19073hardcode_into_libs=$hardcode_into_libs
19074
19075# Flag to hardcode \$libdir into a binary during linking.
19076# This must work even if \$libdir does not exist.
19077hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19078
19079# If ld is used when linking, flag to hardcode \$libdir into
19080# a binary during linking. This must work even if \$libdir does
19081# not exist.
19082hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19083
19084# Whether we need a single -rpath flag with a separated argument.
19085hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19086
19087# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19088# resulting binary.
19089hardcode_direct=$hardcode_direct_GCJ
19090
19091# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19092# resulting binary.
19093hardcode_minus_L=$hardcode_minus_L_GCJ
19094
19095# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19096# the resulting binary.
19097hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19098
19099# Set to yes if building a shared library automatically hardcodes DIR into the library
19100# and all subsequent libraries and executables linked against it.
19101hardcode_automatic=$hardcode_automatic_GCJ
19102
19103# Variables whose values should be saved in libtool wrapper scripts and
19104# restored at relink time.
19105variables_saved_for_relink="$variables_saved_for_relink"
19106
19107# Whether libtool must link a program against all its dependency libraries.
19108link_all_deplibs=$link_all_deplibs_GCJ
19109
19110# Compile-time system search path for libraries
19111sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19112
19113# Run-time system search path for libraries
19114sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19115
19116# Fix the shell variable \$srcfile for the compiler.
19117fix_srcfile_path="$fix_srcfile_path_GCJ"
19118
19119# Set to yes if exported symbols are required.
19120always_export_symbols=$always_export_symbols_GCJ
19121
19122# The commands to list exported symbols.
19123export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19124
19125# The commands to extract the exported symbol list from a shared archive.
19126extract_expsyms_cmds=$lt_extract_expsyms_cmds
19127
19128# Symbols that should not be listed in the preloaded symbols.
19129exclude_expsyms=$lt_exclude_expsyms_GCJ
19130
19131# Symbols that must always be exported.
19132include_expsyms=$lt_include_expsyms_GCJ
19133
19134# ### END LIBTOOL TAG CONFIG: $tagname
19135
19136__EOF__
19137
19138
19139else
19140  # If there is no Makefile yet, we rely on a make rule to execute
19141  # `config.status --recheck' to rerun these tests and create the
19142  # libtool script then.
19143  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19144  if test -f "$ltmain_in"; then
19145    test -f Makefile && make "$ltmain"
19146  fi
19147fi
19148
19149
19150ac_ext=c
19151ac_cpp='$CPP $CPPFLAGS'
19152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19154ac_compiler_gnu=$ac_cv_c_compiler_gnu
19155
19156CC="$lt_save_CC"
19157
19158	else
19159	  tagname=""
19160	fi
19161	;;
19162
19163      RC)
19164
19165
19166
19167# Source file extension for RC test sources.
19168ac_ext=rc
19169
19170# Object file extension for compiled RC test sources.
19171objext=o
19172objext_RC=$objext
19173
19174# Code to be used in simple compile tests
19175lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19176
19177# Code to be used in simple link tests
19178lt_simple_link_test_code="$lt_simple_compile_test_code"
19179
19180# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19181
19182# If no C compiler was specified, use CC.
19183LTCC=${LTCC-"$CC"}
19184
19185# Allow CC to be a program name with arguments.
19186compiler=$CC
19187
19188
19189# save warnings/boilerplate of simple test code
19190ac_outfile=conftest.$ac_objext
19191printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19193_lt_compiler_boilerplate=`cat conftest.err`
19194$rm conftest*
19195
19196ac_outfile=conftest.$ac_objext
19197printf "$lt_simple_link_test_code" >conftest.$ac_ext
19198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19199_lt_linker_boilerplate=`cat conftest.err`
19200$rm conftest*
19201
19202
19203# Allow CC to be a program name with arguments.
19204lt_save_CC="$CC"
19205CC=${RC-"windres"}
19206compiler=$CC
19207compiler_RC=$CC
19208for cc_temp in $compiler""; do
19209  case $cc_temp in
19210    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19211    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19212    \-*) ;;
19213    *) break;;
19214  esac
19215done
19216cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19217
19218lt_cv_prog_compiler_c_o_RC=yes
19219
19220# The else clause should only fire when bootstrapping the
19221# libtool distribution, otherwise you forgot to ship ltmain.sh
19222# with your package, and you will get complaints that there are
19223# no rules to generate ltmain.sh.
19224if test -f "$ltmain"; then
19225  # See if we are running on zsh, and set the options which allow our commands through
19226  # without removal of \ escapes.
19227  if test -n "${ZSH_VERSION+set}" ; then
19228    setopt NO_GLOB_SUBST
19229  fi
19230  # Now quote all the things that may contain metacharacters while being
19231  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19232  # variables and quote the copies for generation of the libtool script.
19233  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19234    SED SHELL STRIP \
19235    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19236    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19237    deplibs_check_method reload_flag reload_cmds need_locks \
19238    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19239    lt_cv_sys_global_symbol_to_c_name_address \
19240    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19241    old_postinstall_cmds old_postuninstall_cmds \
19242    compiler_RC \
19243    CC_RC \
19244    LD_RC \
19245    lt_prog_compiler_wl_RC \
19246    lt_prog_compiler_pic_RC \
19247    lt_prog_compiler_static_RC \
19248    lt_prog_compiler_no_builtin_flag_RC \
19249    export_dynamic_flag_spec_RC \
19250    thread_safe_flag_spec_RC \
19251    whole_archive_flag_spec_RC \
19252    enable_shared_with_static_runtimes_RC \
19253    old_archive_cmds_RC \
19254    old_archive_from_new_cmds_RC \
19255    predep_objects_RC \
19256    postdep_objects_RC \
19257    predeps_RC \
19258    postdeps_RC \
19259    compiler_lib_search_path_RC \
19260    archive_cmds_RC \
19261    archive_expsym_cmds_RC \
19262    postinstall_cmds_RC \
19263    postuninstall_cmds_RC \
19264    old_archive_from_expsyms_cmds_RC \
19265    allow_undefined_flag_RC \
19266    no_undefined_flag_RC \
19267    export_symbols_cmds_RC \
19268    hardcode_libdir_flag_spec_RC \
19269    hardcode_libdir_flag_spec_ld_RC \
19270    hardcode_libdir_separator_RC \
19271    hardcode_automatic_RC \
19272    module_cmds_RC \
19273    module_expsym_cmds_RC \
19274    lt_cv_prog_compiler_c_o_RC \
19275    exclude_expsyms_RC \
19276    include_expsyms_RC; do
19277
19278    case $var in
19279    old_archive_cmds_RC | \
19280    old_archive_from_new_cmds_RC | \
19281    archive_cmds_RC | \
19282    archive_expsym_cmds_RC | \
19283    module_cmds_RC | \
19284    module_expsym_cmds_RC | \
19285    old_archive_from_expsyms_cmds_RC | \
19286    export_symbols_cmds_RC | \
19287    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19288    postinstall_cmds | postuninstall_cmds | \
19289    old_postinstall_cmds | old_postuninstall_cmds | \
19290    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19291      # Double-quote double-evaled strings.
19292      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19293      ;;
19294    *)
19295      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19296      ;;
19297    esac
19298  done
19299
19300  case $lt_echo in
19301  *'\$0 --fallback-echo"')
19302    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19303    ;;
19304  esac
19305
19306cfgfile="$ofile"
19307
19308  cat <<__EOF__ >> "$cfgfile"
19309# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19310
19311# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19312
19313# Shell to use when invoking shell scripts.
19314SHELL=$lt_SHELL
19315
19316# Whether or not to build shared libraries.
19317build_libtool_libs=$enable_shared
19318
19319# Whether or not to build static libraries.
19320build_old_libs=$enable_static
19321
19322# Whether or not to add -lc for building shared libraries.
19323build_libtool_need_lc=$archive_cmds_need_lc_RC
19324
19325# Whether or not to disallow shared libs when runtime libs are static
19326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19327
19328# Whether or not to optimize for fast installation.
19329fast_install=$enable_fast_install
19330
19331# The host system.
19332host_alias=$host_alias
19333host=$host
19334host_os=$host_os
19335
19336# The build system.
19337build_alias=$build_alias
19338build=$build
19339build_os=$build_os
19340
19341# An echo program that does not interpret backslashes.
19342echo=$lt_echo
19343
19344# The archiver.
19345AR=$lt_AR
19346AR_FLAGS=$lt_AR_FLAGS
19347
19348# A C compiler.
19349LTCC=$lt_LTCC
19350
19351# A language-specific compiler.
19352CC=$lt_compiler_RC
19353
19354# Is the compiler the GNU C compiler?
19355with_gcc=$GCC_RC
19356
19357# An ERE matcher.
19358EGREP=$lt_EGREP
19359
19360# The linker used to build libraries.
19361LD=$lt_LD_RC
19362
19363# Whether we need hard or soft links.
19364LN_S=$lt_LN_S
19365
19366# A BSD-compatible nm program.
19367NM=$lt_NM
19368
19369# A symbol stripping program
19370STRIP=$lt_STRIP
19371
19372# Used to examine libraries when file_magic_cmd begins "file"
19373MAGIC_CMD=$MAGIC_CMD
19374
19375# Used on cygwin: DLL creation program.
19376DLLTOOL="$DLLTOOL"
19377
19378# Used on cygwin: object dumper.
19379OBJDUMP="$OBJDUMP"
19380
19381# Used on cygwin: assembler.
19382AS="$AS"
19383
19384# The name of the directory that contains temporary libtool files.
19385objdir=$objdir
19386
19387# How to create reloadable object files.
19388reload_flag=$lt_reload_flag
19389reload_cmds=$lt_reload_cmds
19390
19391# How to pass a linker flag through the compiler.
19392wl=$lt_lt_prog_compiler_wl_RC
19393
19394# Object file suffix (normally "o").
19395objext="$ac_objext"
19396
19397# Old archive suffix (normally "a").
19398libext="$libext"
19399
19400# Shared library suffix (normally ".so").
19401shrext_cmds='$shrext_cmds'
19402
19403# Executable file suffix (normally "").
19404exeext="$exeext"
19405
19406# Additional compiler flags for building library objects.
19407pic_flag=$lt_lt_prog_compiler_pic_RC
19408pic_mode=$pic_mode
19409
19410# What is the maximum length of a command?
19411max_cmd_len=$lt_cv_sys_max_cmd_len
19412
19413# Does compiler simultaneously support -c and -o options?
19414compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19415
19416# Must we lock files when doing compilation?
19417need_locks=$lt_need_locks
19418
19419# Do we need the lib prefix for modules?
19420need_lib_prefix=$need_lib_prefix
19421
19422# Do we need a version for libraries?
19423need_version=$need_version
19424
19425# Whether dlopen is supported.
19426dlopen_support=$enable_dlopen
19427
19428# Whether dlopen of programs is supported.
19429dlopen_self=$enable_dlopen_self
19430
19431# Whether dlopen of statically linked programs is supported.
19432dlopen_self_static=$enable_dlopen_self_static
19433
19434# Compiler flag to prevent dynamic linking.
19435link_static_flag=$lt_lt_prog_compiler_static_RC
19436
19437# Compiler flag to turn off builtin functions.
19438no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19439
19440# Compiler flag to allow reflexive dlopens.
19441export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19442
19443# Compiler flag to generate shared objects directly from archives.
19444whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19445
19446# Compiler flag to generate thread-safe objects.
19447thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19448
19449# Library versioning type.
19450version_type=$version_type
19451
19452# Format of library name prefix.
19453libname_spec=$lt_libname_spec
19454
19455# List of archive names.  First name is the real one, the rest are links.
19456# The last name is the one that the linker finds with -lNAME.
19457library_names_spec=$lt_library_names_spec
19458
19459# The coded name of the library, if different from the real name.
19460soname_spec=$lt_soname_spec
19461
19462# Commands used to build and install an old-style archive.
19463RANLIB=$lt_RANLIB
19464old_archive_cmds=$lt_old_archive_cmds_RC
19465old_postinstall_cmds=$lt_old_postinstall_cmds
19466old_postuninstall_cmds=$lt_old_postuninstall_cmds
19467
19468# Create an old-style archive from a shared archive.
19469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19470
19471# Create a temporary old-style archive to link instead of a shared archive.
19472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19473
19474# Commands used to build and install a shared archive.
19475archive_cmds=$lt_archive_cmds_RC
19476archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19477postinstall_cmds=$lt_postinstall_cmds
19478postuninstall_cmds=$lt_postuninstall_cmds
19479
19480# Commands used to build a loadable module (assumed same as above if empty)
19481module_cmds=$lt_module_cmds_RC
19482module_expsym_cmds=$lt_module_expsym_cmds_RC
19483
19484# Commands to strip libraries.
19485old_striplib=$lt_old_striplib
19486striplib=$lt_striplib
19487
19488# Dependencies to place before the objects being linked to create a
19489# shared library.
19490predep_objects=$lt_predep_objects_RC
19491
19492# Dependencies to place after the objects being linked to create a
19493# shared library.
19494postdep_objects=$lt_postdep_objects_RC
19495
19496# Dependencies to place before the objects being linked to create a
19497# shared library.
19498predeps=$lt_predeps_RC
19499
19500# Dependencies to place after the objects being linked to create a
19501# shared library.
19502postdeps=$lt_postdeps_RC
19503
19504# The library search path used internally by the compiler when linking
19505# a shared library.
19506compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19507
19508# Method to check whether dependent libraries are shared objects.
19509deplibs_check_method=$lt_deplibs_check_method
19510
19511# Command to use when deplibs_check_method == file_magic.
19512file_magic_cmd=$lt_file_magic_cmd
19513
19514# Flag that allows shared libraries with undefined symbols to be built.
19515allow_undefined_flag=$lt_allow_undefined_flag_RC
19516
19517# Flag that forces no undefined symbols.
19518no_undefined_flag=$lt_no_undefined_flag_RC
19519
19520# Commands used to finish a libtool library installation in a directory.
19521finish_cmds=$lt_finish_cmds
19522
19523# Same as above, but a single script fragment to be evaled but not shown.
19524finish_eval=$lt_finish_eval
19525
19526# Take the output of nm and produce a listing of raw symbols and C names.
19527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19528
19529# Transform the output of nm in a proper C declaration
19530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19531
19532# Transform the output of nm in a C name address pair
19533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19534
19535# This is the shared library runtime path variable.
19536runpath_var=$runpath_var
19537
19538# This is the shared library path variable.
19539shlibpath_var=$shlibpath_var
19540
19541# Is shlibpath searched before the hard-coded library search path?
19542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19543
19544# How to hardcode a shared library path into an executable.
19545hardcode_action=$hardcode_action_RC
19546
19547# Whether we should hardcode library paths into libraries.
19548hardcode_into_libs=$hardcode_into_libs
19549
19550# Flag to hardcode \$libdir into a binary during linking.
19551# This must work even if \$libdir does not exist.
19552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19553
19554# If ld is used when linking, flag to hardcode \$libdir into
19555# a binary during linking. This must work even if \$libdir does
19556# not exist.
19557hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19558
19559# Whether we need a single -rpath flag with a separated argument.
19560hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19561
19562# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19563# resulting binary.
19564hardcode_direct=$hardcode_direct_RC
19565
19566# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19567# resulting binary.
19568hardcode_minus_L=$hardcode_minus_L_RC
19569
19570# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19571# the resulting binary.
19572hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19573
19574# Set to yes if building a shared library automatically hardcodes DIR into the library
19575# and all subsequent libraries and executables linked against it.
19576hardcode_automatic=$hardcode_automatic_RC
19577
19578# Variables whose values should be saved in libtool wrapper scripts and
19579# restored at relink time.
19580variables_saved_for_relink="$variables_saved_for_relink"
19581
19582# Whether libtool must link a program against all its dependency libraries.
19583link_all_deplibs=$link_all_deplibs_RC
19584
19585# Compile-time system search path for libraries
19586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19587
19588# Run-time system search path for libraries
19589sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19590
19591# Fix the shell variable \$srcfile for the compiler.
19592fix_srcfile_path="$fix_srcfile_path_RC"
19593
19594# Set to yes if exported symbols are required.
19595always_export_symbols=$always_export_symbols_RC
19596
19597# The commands to list exported symbols.
19598export_symbols_cmds=$lt_export_symbols_cmds_RC
19599
19600# The commands to extract the exported symbol list from a shared archive.
19601extract_expsyms_cmds=$lt_extract_expsyms_cmds
19602
19603# Symbols that should not be listed in the preloaded symbols.
19604exclude_expsyms=$lt_exclude_expsyms_RC
19605
19606# Symbols that must always be exported.
19607include_expsyms=$lt_include_expsyms_RC
19608
19609# ### END LIBTOOL TAG CONFIG: $tagname
19610
19611__EOF__
19612
19613
19614else
19615  # If there is no Makefile yet, we rely on a make rule to execute
19616  # `config.status --recheck' to rerun these tests and create the
19617  # libtool script then.
19618  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19619  if test -f "$ltmain_in"; then
19620    test -f Makefile && make "$ltmain"
19621  fi
19622fi
19623
19624
19625ac_ext=c
19626ac_cpp='$CPP $CPPFLAGS'
19627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631CC="$lt_save_CC"
19632
19633	;;
19634
19635      *)
19636	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19637echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19638   { (exit 1); exit 1; }; }
19639	;;
19640      esac
19641
19642      # Append the new tag name to the list of available tags.
19643      if test -n "$tagname" ; then
19644      available_tags="$available_tags $tagname"
19645    fi
19646    fi
19647  done
19648  IFS="$lt_save_ifs"
19649
19650  # Now substitute the updated list of available tags.
19651  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19652    mv "${ofile}T" "$ofile"
19653    chmod +x "$ofile"
19654  else
19655    rm -f "${ofile}T"
19656    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19657echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19658   { (exit 1); exit 1; }; }
19659  fi
19660fi
19661
19662
19663
19664# This can be used to rebuild libtool when needed
19665LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19666
19667# Always use our own libtool.
19668LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19669
19670# Prevent multiple expansion
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692ac_ext=c
19693ac_cpp='$CPP $CPPFLAGS'
19694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696ac_compiler_gnu=$ac_cv_c_compiler_gnu
19697echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19698echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
19699# On Suns, sometimes $CPP names a directory.
19700if test -n "$CPP" && test -d "$CPP"; then
19701  CPP=
19702fi
19703if test -z "$CPP"; then
19704  if test "${ac_cv_prog_CPP+set}" = set; then
19705  echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707      # Double quotes because CPP needs to be expanded
19708    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19709    do
19710      ac_preproc_ok=false
19711for ac_c_preproc_warn_flag in '' yes
19712do
19713  # Use a header file that comes with gcc, so configuring glibc
19714  # with a fresh cross-compiler works.
19715  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19716  # <limits.h> exists even on freestanding compilers.
19717  # On the NeXT, cc -E runs the code through the compiler's parser,
19718  # not just through cpp. "Syntax error" is here to catch this case.
19719  cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h.  */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h.  */
19725#ifdef __STDC__
19726# include <limits.h>
19727#else
19728# include <assert.h>
19729#endif
19730		     Syntax error
19731_ACEOF
19732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19733  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19734  ac_status=$?
19735  grep -v '^ *+' conftest.er1 >conftest.err
19736  rm -f conftest.er1
19737  cat conftest.err >&5
19738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739  (exit $ac_status); } >/dev/null; then
19740  if test -s conftest.err; then
19741    ac_cpp_err=$ac_c_preproc_warn_flag
19742    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19743  else
19744    ac_cpp_err=
19745  fi
19746else
19747  ac_cpp_err=yes
19748fi
19749if test -z "$ac_cpp_err"; then
19750  :
19751else
19752  echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755  # Broken: fails on valid input.
19756continue
19757fi
19758rm -f conftest.err conftest.$ac_ext
19759
19760  # OK, works on sane cases.  Now check whether non-existent headers
19761  # can be detected and how.
19762  cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h.  */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
19767/* end confdefs.h.  */
19768#include <ac_nonexistent.h>
19769_ACEOF
19770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19771  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19772  ac_status=$?
19773  grep -v '^ *+' conftest.er1 >conftest.err
19774  rm -f conftest.er1
19775  cat conftest.err >&5
19776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777  (exit $ac_status); } >/dev/null; then
19778  if test -s conftest.err; then
19779    ac_cpp_err=$ac_c_preproc_warn_flag
19780    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19781  else
19782    ac_cpp_err=
19783  fi
19784else
19785  ac_cpp_err=yes
19786fi
19787if test -z "$ac_cpp_err"; then
19788  # Broken: success on invalid input.
19789continue
19790else
19791  echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794  # Passes both tests.
19795ac_preproc_ok=:
19796break
19797fi
19798rm -f conftest.err conftest.$ac_ext
19799
19800done
19801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19802rm -f conftest.err conftest.$ac_ext
19803if $ac_preproc_ok; then
19804  break
19805fi
19806
19807    done
19808    ac_cv_prog_CPP=$CPP
19809
19810fi
19811  CPP=$ac_cv_prog_CPP
19812else
19813  ac_cv_prog_CPP=$CPP
19814fi
19815echo "$as_me:$LINENO: result: $CPP" >&5
19816echo "${ECHO_T}$CPP" >&6
19817ac_preproc_ok=false
19818for ac_c_preproc_warn_flag in '' yes
19819do
19820  # Use a header file that comes with gcc, so configuring glibc
19821  # with a fresh cross-compiler works.
19822  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19823  # <limits.h> exists even on freestanding compilers.
19824  # On the NeXT, cc -E runs the code through the compiler's parser,
19825  # not just through cpp. "Syntax error" is here to catch this case.
19826  cat >conftest.$ac_ext <<_ACEOF
19827/* confdefs.h.  */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h.  */
19832#ifdef __STDC__
19833# include <limits.h>
19834#else
19835# include <assert.h>
19836#endif
19837		     Syntax error
19838_ACEOF
19839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19840  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19841  ac_status=$?
19842  grep -v '^ *+' conftest.er1 >conftest.err
19843  rm -f conftest.er1
19844  cat conftest.err >&5
19845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846  (exit $ac_status); } >/dev/null; then
19847  if test -s conftest.err; then
19848    ac_cpp_err=$ac_c_preproc_warn_flag
19849    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19850  else
19851    ac_cpp_err=
19852  fi
19853else
19854  ac_cpp_err=yes
19855fi
19856if test -z "$ac_cpp_err"; then
19857  :
19858else
19859  echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
19862  # Broken: fails on valid input.
19863continue
19864fi
19865rm -f conftest.err conftest.$ac_ext
19866
19867  # OK, works on sane cases.  Now check whether non-existent headers
19868  # can be detected and how.
19869  cat >conftest.$ac_ext <<_ACEOF
19870/* confdefs.h.  */
19871_ACEOF
19872cat confdefs.h >>conftest.$ac_ext
19873cat >>conftest.$ac_ext <<_ACEOF
19874/* end confdefs.h.  */
19875#include <ac_nonexistent.h>
19876_ACEOF
19877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19879  ac_status=$?
19880  grep -v '^ *+' conftest.er1 >conftest.err
19881  rm -f conftest.er1
19882  cat conftest.err >&5
19883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884  (exit $ac_status); } >/dev/null; then
19885  if test -s conftest.err; then
19886    ac_cpp_err=$ac_c_preproc_warn_flag
19887    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19888  else
19889    ac_cpp_err=
19890  fi
19891else
19892  ac_cpp_err=yes
19893fi
19894if test -z "$ac_cpp_err"; then
19895  # Broken: success on invalid input.
19896continue
19897else
19898  echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901  # Passes both tests.
19902ac_preproc_ok=:
19903break
19904fi
19905rm -f conftest.err conftest.$ac_ext
19906
19907done
19908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19909rm -f conftest.err conftest.$ac_ext
19910if $ac_preproc_ok; then
19911  :
19912else
19913  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19914See \`config.log' for more details." >&5
19915echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19916See \`config.log' for more details." >&2;}
19917   { (exit 1); exit 1; }; }
19918fi
19919
19920ac_ext=c
19921ac_cpp='$CPP $CPPFLAGS'
19922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926ac_ext=cc
19927ac_cpp='$CXXCPP $CPPFLAGS'
19928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19931if test -n "$ac_tool_prefix"; then
19932  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19933  do
19934    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19936echo "$as_me:$LINENO: checking for $ac_word" >&5
19937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19938if test "${ac_cv_prog_CXX+set}" = set; then
19939  echo $ECHO_N "(cached) $ECHO_C" >&6
19940else
19941  if test -n "$CXX"; then
19942  ac_cv_prog_CXX="$CXX" # Let the user override the test.
19943else
19944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19945for as_dir in $PATH
19946do
19947  IFS=$as_save_IFS
19948  test -z "$as_dir" && as_dir=.
19949  for ac_exec_ext in '' $ac_executable_extensions; do
19950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19951    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19953    break 2
19954  fi
19955done
19956done
19957
19958fi
19959fi
19960CXX=$ac_cv_prog_CXX
19961if test -n "$CXX"; then
19962  echo "$as_me:$LINENO: result: $CXX" >&5
19963echo "${ECHO_T}$CXX" >&6
19964else
19965  echo "$as_me:$LINENO: result: no" >&5
19966echo "${ECHO_T}no" >&6
19967fi
19968
19969    test -n "$CXX" && break
19970  done
19971fi
19972if test -z "$CXX"; then
19973  ac_ct_CXX=$CXX
19974  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19975do
19976  # Extract the first word of "$ac_prog", so it can be a program name with args.
19977set dummy $ac_prog; ac_word=$2
19978echo "$as_me:$LINENO: checking for $ac_word" >&5
19979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19980if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19981  echo $ECHO_N "(cached) $ECHO_C" >&6
19982else
19983  if test -n "$ac_ct_CXX"; then
19984  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19985else
19986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19987for as_dir in $PATH
19988do
19989  IFS=$as_save_IFS
19990  test -z "$as_dir" && as_dir=.
19991  for ac_exec_ext in '' $ac_executable_extensions; do
19992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19993    ac_cv_prog_ac_ct_CXX="$ac_prog"
19994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19995    break 2
19996  fi
19997done
19998done
19999
20000fi
20001fi
20002ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20003if test -n "$ac_ct_CXX"; then
20004  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20005echo "${ECHO_T}$ac_ct_CXX" >&6
20006else
20007  echo "$as_me:$LINENO: result: no" >&5
20008echo "${ECHO_T}no" >&6
20009fi
20010
20011  test -n "$ac_ct_CXX" && break
20012done
20013test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
20014
20015  CXX=$ac_ct_CXX
20016fi
20017
20018
20019# Provide some information about the compiler.
20020echo "$as_me:$LINENO:" \
20021     "checking for C++ compiler version" >&5
20022ac_compiler=`set X $ac_compile; echo $2`
20023{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20024  (eval $ac_compiler --version </dev/null >&5) 2>&5
20025  ac_status=$?
20026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027  (exit $ac_status); }
20028{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20029  (eval $ac_compiler -v </dev/null >&5) 2>&5
20030  ac_status=$?
20031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032  (exit $ac_status); }
20033{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20034  (eval $ac_compiler -V </dev/null >&5) 2>&5
20035  ac_status=$?
20036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037  (exit $ac_status); }
20038
20039echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20040echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
20041if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20042  echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044  cat >conftest.$ac_ext <<_ACEOF
20045/* confdefs.h.  */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h.  */
20050
20051int
20052main ()
20053{
20054#ifndef __GNUC__
20055       choke me
20056#endif
20057
20058  ;
20059  return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext
20063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064  (eval $ac_compile) 2>conftest.er1
20065  ac_status=$?
20066  grep -v '^ *+' conftest.er1 >conftest.err
20067  rm -f conftest.er1
20068  cat conftest.err >&5
20069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070  (exit $ac_status); } &&
20071	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073  (eval $ac_try) 2>&5
20074  ac_status=$?
20075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076  (exit $ac_status); }; } &&
20077	 { ac_try='test -s conftest.$ac_objext'
20078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079  (eval $ac_try) 2>&5
20080  ac_status=$?
20081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082  (exit $ac_status); }; }; then
20083  ac_compiler_gnu=yes
20084else
20085  echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088ac_compiler_gnu=no
20089fi
20090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20092
20093fi
20094echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20095echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
20096GXX=`test $ac_compiler_gnu = yes && echo yes`
20097ac_test_CXXFLAGS=${CXXFLAGS+set}
20098ac_save_CXXFLAGS=$CXXFLAGS
20099CXXFLAGS="-g"
20100echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20101echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
20102if test "${ac_cv_prog_cxx_g+set}" = set; then
20103  echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105  cat >conftest.$ac_ext <<_ACEOF
20106/* confdefs.h.  */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h.  */
20111
20112int
20113main ()
20114{
20115
20116  ;
20117  return 0;
20118}
20119_ACEOF
20120rm -f conftest.$ac_objext
20121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20122  (eval $ac_compile) 2>conftest.er1
20123  ac_status=$?
20124  grep -v '^ *+' conftest.er1 >conftest.err
20125  rm -f conftest.er1
20126  cat conftest.err >&5
20127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128  (exit $ac_status); } &&
20129	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131  (eval $ac_try) 2>&5
20132  ac_status=$?
20133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134  (exit $ac_status); }; } &&
20135	 { ac_try='test -s conftest.$ac_objext'
20136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137  (eval $ac_try) 2>&5
20138  ac_status=$?
20139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140  (exit $ac_status); }; }; then
20141  ac_cv_prog_cxx_g=yes
20142else
20143  echo "$as_me: failed program was:" >&5
20144sed 's/^/| /' conftest.$ac_ext >&5
20145
20146ac_cv_prog_cxx_g=no
20147fi
20148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20149fi
20150echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20151echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
20152if test "$ac_test_CXXFLAGS" = set; then
20153  CXXFLAGS=$ac_save_CXXFLAGS
20154elif test $ac_cv_prog_cxx_g = yes; then
20155  if test "$GXX" = yes; then
20156    CXXFLAGS="-g -O2"
20157  else
20158    CXXFLAGS="-g"
20159  fi
20160else
20161  if test "$GXX" = yes; then
20162    CXXFLAGS="-O2"
20163  else
20164    CXXFLAGS=
20165  fi
20166fi
20167for ac_declaration in \
20168   '' \
20169   'extern "C" void std::exit (int) throw (); using std::exit;' \
20170   'extern "C" void std::exit (int); using std::exit;' \
20171   'extern "C" void exit (int) throw ();' \
20172   'extern "C" void exit (int);' \
20173   'void exit (int);'
20174do
20175  cat >conftest.$ac_ext <<_ACEOF
20176/* confdefs.h.  */
20177_ACEOF
20178cat confdefs.h >>conftest.$ac_ext
20179cat >>conftest.$ac_ext <<_ACEOF
20180/* end confdefs.h.  */
20181$ac_declaration
20182#include <stdlib.h>
20183int
20184main ()
20185{
20186exit (42);
20187  ;
20188  return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20193  (eval $ac_compile) 2>conftest.er1
20194  ac_status=$?
20195  grep -v '^ *+' conftest.er1 >conftest.err
20196  rm -f conftest.er1
20197  cat conftest.err >&5
20198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199  (exit $ac_status); } &&
20200	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202  (eval $ac_try) 2>&5
20203  ac_status=$?
20204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205  (exit $ac_status); }; } &&
20206	 { ac_try='test -s conftest.$ac_objext'
20207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208  (eval $ac_try) 2>&5
20209  ac_status=$?
20210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211  (exit $ac_status); }; }; then
20212  :
20213else
20214  echo "$as_me: failed program was:" >&5
20215sed 's/^/| /' conftest.$ac_ext >&5
20216
20217continue
20218fi
20219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20220  cat >conftest.$ac_ext <<_ACEOF
20221/* confdefs.h.  */
20222_ACEOF
20223cat confdefs.h >>conftest.$ac_ext
20224cat >>conftest.$ac_ext <<_ACEOF
20225/* end confdefs.h.  */
20226$ac_declaration
20227int
20228main ()
20229{
20230exit (42);
20231  ;
20232  return 0;
20233}
20234_ACEOF
20235rm -f conftest.$ac_objext
20236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237  (eval $ac_compile) 2>conftest.er1
20238  ac_status=$?
20239  grep -v '^ *+' conftest.er1 >conftest.err
20240  rm -f conftest.er1
20241  cat conftest.err >&5
20242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243  (exit $ac_status); } &&
20244	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
20245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246  (eval $ac_try) 2>&5
20247  ac_status=$?
20248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249  (exit $ac_status); }; } &&
20250	 { ac_try='test -s conftest.$ac_objext'
20251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252  (eval $ac_try) 2>&5
20253  ac_status=$?
20254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255  (exit $ac_status); }; }; then
20256  break
20257else
20258  echo "$as_me: failed program was:" >&5
20259sed 's/^/| /' conftest.$ac_ext >&5
20260
20261fi
20262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20263done
20264rm -f conftest*
20265if test -n "$ac_declaration"; then
20266  echo '#ifdef __cplusplus' >>confdefs.h
20267  echo $ac_declaration      >>confdefs.h
20268  echo '#endif'             >>confdefs.h
20269fi
20270
20271ac_ext=c
20272ac_cpp='$CPP $CPPFLAGS'
20273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20275ac_compiler_gnu=$ac_cv_c_compiler_gnu
20276
20277depcc="$CXX"  am_compiler_list=
20278
20279echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20280echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20281if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20282  echo $ECHO_N "(cached) $ECHO_C" >&6
20283else
20284  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20285  # We make a subdir and do the tests there.  Otherwise we can end up
20286  # making bogus files that we don't know about and never remove.  For
20287  # instance it was reported that on HP-UX the gcc test will end up
20288  # making a dummy file named `D' -- because `-MD' means `put the output
20289  # in D'.
20290  mkdir conftest.dir
20291  # Copy depcomp to subdir because otherwise we won't find it if we're
20292  # using a relative directory.
20293  cp "$am_depcomp" conftest.dir
20294  cd conftest.dir
20295  # We will build objects and dependencies in a subdirectory because
20296  # it helps to detect inapplicable dependency modes.  For instance
20297  # both Tru64's cc and ICC support -MD to output dependencies as a
20298  # side effect of compilation, but ICC will put the dependencies in
20299  # the current directory while Tru64 will put them in the object
20300  # directory.
20301  mkdir sub
20302
20303  am_cv_CXX_dependencies_compiler_type=none
20304  if test "$am_compiler_list" = ""; then
20305     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20306  fi
20307  for depmode in $am_compiler_list; do
20308    # Setup a source with many dependencies, because some compilers
20309    # like to wrap large dependency lists on column 80 (with \), and
20310    # we should not choose a depcomp mode which is confused by this.
20311    #
20312    # We need to recreate these files for each test, as the compiler may
20313    # overwrite some of them when testing with obscure command lines.
20314    # This happens at least with the AIX C compiler.
20315    : > sub/conftest.c
20316    for i in 1 2 3 4 5 6; do
20317      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20318      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20319      # Solaris 8's {/usr,}/bin/sh.
20320      touch sub/conftst$i.h
20321    done
20322    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20323
20324    case $depmode in
20325    nosideeffect)
20326      # after this tag, mechanisms are not by side-effect, so they'll
20327      # only be used when explicitly requested
20328      if test "x$enable_dependency_tracking" = xyes; then
20329	continue
20330      else
20331	break
20332      fi
20333      ;;
20334    none) break ;;
20335    esac
20336    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20337    # mode.  It turns out that the SunPro C++ compiler does not properly
20338    # handle `-M -o', and we need to detect this.
20339    if depmode=$depmode \
20340       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20341       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20342       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20343         >/dev/null 2>conftest.err &&
20344       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20345       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20346       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20347      # icc doesn't choke on unknown options, it will just issue warnings
20348      # or remarks (even with -Werror).  So we grep stderr for any message
20349      # that says an option was ignored or not supported.
20350      # When given -MP, icc 7.0 and 7.1 complain thusly:
20351      #   icc: Command line warning: ignoring option '-M'; no argument required
20352      # The diagnosis changed in icc 8.0:
20353      #   icc: Command line remark: option '-MP' not supported
20354      if (grep 'ignoring option' conftest.err ||
20355          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20356        am_cv_CXX_dependencies_compiler_type=$depmode
20357        break
20358      fi
20359    fi
20360  done
20361
20362  cd ..
20363  rm -rf conftest.dir
20364else
20365  am_cv_CXX_dependencies_compiler_type=none
20366fi
20367
20368fi
20369echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20370echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
20371CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20372
20373
20374
20375if
20376  test "x$enable_dependency_tracking" != xno \
20377  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20378  am__fastdepCXX_TRUE=
20379  am__fastdepCXX_FALSE='#'
20380else
20381  am__fastdepCXX_TRUE='#'
20382  am__fastdepCXX_FALSE=
20383fi
20384
20385
20386
20387if test "$cross_compiling" = yes; then
20388  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20389See \`config.log' for more details." >&5
20390echo "$as_me: error: cannot run test program while cross compiling
20391See \`config.log' for more details." >&2;}
20392   { (exit 1); exit 1; }; }
20393else
20394  cat >conftest.$ac_ext <<_ACEOF
20395/* confdefs.h.  */
20396_ACEOF
20397cat confdefs.h >>conftest.$ac_ext
20398cat >>conftest.$ac_ext <<_ACEOF
20399/* end confdefs.h.  */
20400
20401#include <unistd.h>
20402main()
20403{
20404#if defined(__GNUC__) && \
20405    ! (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
20406    return 1;
20407#endif
20408  return 0;
20409}
20410
20411_ACEOF
20412rm -f conftest$ac_exeext
20413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414  (eval $ac_link) 2>&5
20415  ac_status=$?
20416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419  (eval $ac_try) 2>&5
20420  ac_status=$?
20421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422  (exit $ac_status); }; }; then
20423  :
20424else
20425  echo "$as_me: program exited with status $ac_status" >&5
20426echo "$as_me: failed program was:" >&5
20427sed 's/^/| /' conftest.$ac_ext >&5
20428
20429( exit $ac_status )
20430echo "need at least gcc 2.95 to compile correctly"
20431exit 1
20432fi
20433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20434fi
20435
20436# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20437# for constant arguments.  Useless!
20438echo "$as_me:$LINENO: checking for working alloca.h" >&5
20439echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20440if test "${ac_cv_working_alloca_h+set}" = set; then
20441  echo $ECHO_N "(cached) $ECHO_C" >&6
20442else
20443  cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h.  */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h.  */
20449#include <alloca.h>
20450int
20451main ()
20452{
20453char *p = (char *) alloca (2 * sizeof (int));
20454  ;
20455  return 0;
20456}
20457_ACEOF
20458rm -f conftest.$ac_objext conftest$ac_exeext
20459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20460  (eval $ac_link) 2>conftest.er1
20461  ac_status=$?
20462  grep -v '^ *+' conftest.er1 >conftest.err
20463  rm -f conftest.er1
20464  cat conftest.err >&5
20465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466  (exit $ac_status); } &&
20467	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469  (eval $ac_try) 2>&5
20470  ac_status=$?
20471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472  (exit $ac_status); }; } &&
20473	 { ac_try='test -s conftest$ac_exeext'
20474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475  (eval $ac_try) 2>&5
20476  ac_status=$?
20477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478  (exit $ac_status); }; }; then
20479  ac_cv_working_alloca_h=yes
20480else
20481  echo "$as_me: failed program was:" >&5
20482sed 's/^/| /' conftest.$ac_ext >&5
20483
20484ac_cv_working_alloca_h=no
20485fi
20486rm -f conftest.err conftest.$ac_objext \
20487      conftest$ac_exeext conftest.$ac_ext
20488fi
20489echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20490echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20491if test $ac_cv_working_alloca_h = yes; then
20492
20493cat >>confdefs.h <<\_ACEOF
20494#define HAVE_ALLOCA_H 1
20495_ACEOF
20496
20497fi
20498
20499echo "$as_me:$LINENO: checking for alloca" >&5
20500echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20501if test "${ac_cv_func_alloca_works+set}" = set; then
20502  echo $ECHO_N "(cached) $ECHO_C" >&6
20503else
20504  cat >conftest.$ac_ext <<_ACEOF
20505/* confdefs.h.  */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h.  */
20510#ifdef __GNUC__
20511# define alloca __builtin_alloca
20512#else
20513# ifdef _MSC_VER
20514#  include <malloc.h>
20515#  define alloca _alloca
20516# else
20517#  if HAVE_ALLOCA_H
20518#   include <alloca.h>
20519#  else
20520#   ifdef _AIX
20521 #pragma alloca
20522#   else
20523#    ifndef alloca /* predefined by HP cc +Olibcalls */
20524char *alloca ();
20525#    endif
20526#   endif
20527#  endif
20528# endif
20529#endif
20530
20531int
20532main ()
20533{
20534char *p = (char *) alloca (1);
20535  ;
20536  return 0;
20537}
20538_ACEOF
20539rm -f conftest.$ac_objext conftest$ac_exeext
20540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541  (eval $ac_link) 2>conftest.er1
20542  ac_status=$?
20543  grep -v '^ *+' conftest.er1 >conftest.err
20544  rm -f conftest.er1
20545  cat conftest.err >&5
20546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547  (exit $ac_status); } &&
20548	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550  (eval $ac_try) 2>&5
20551  ac_status=$?
20552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553  (exit $ac_status); }; } &&
20554	 { ac_try='test -s conftest$ac_exeext'
20555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556  (eval $ac_try) 2>&5
20557  ac_status=$?
20558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559  (exit $ac_status); }; }; then
20560  ac_cv_func_alloca_works=yes
20561else
20562  echo "$as_me: failed program was:" >&5
20563sed 's/^/| /' conftest.$ac_ext >&5
20564
20565ac_cv_func_alloca_works=no
20566fi
20567rm -f conftest.err conftest.$ac_objext \
20568      conftest$ac_exeext conftest.$ac_ext
20569fi
20570echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20571echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20572
20573if test $ac_cv_func_alloca_works = yes; then
20574
20575cat >>confdefs.h <<\_ACEOF
20576#define HAVE_ALLOCA 1
20577_ACEOF
20578
20579else
20580  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20581# that cause trouble.  Some versions do not even contain alloca or
20582# contain a buggy version.  If you still want to use their alloca,
20583# use ar to extract alloca.o from them instead of compiling alloca.c.
20584
20585ALLOCA=alloca.$ac_objext
20586
20587cat >>confdefs.h <<\_ACEOF
20588#define C_ALLOCA 1
20589_ACEOF
20590
20591
20592echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20593echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20594if test "${ac_cv_os_cray+set}" = set; then
20595  echo $ECHO_N "(cached) $ECHO_C" >&6
20596else
20597  cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h.  */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h.  */
20603#if defined(CRAY) && ! defined(CRAY2)
20604webecray
20605#else
20606wenotbecray
20607#endif
20608
20609_ACEOF
20610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20611  $EGREP "webecray" >/dev/null 2>&1; then
20612  ac_cv_os_cray=yes
20613else
20614  ac_cv_os_cray=no
20615fi
20616rm -f conftest*
20617
20618fi
20619echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20620echo "${ECHO_T}$ac_cv_os_cray" >&6
20621if test $ac_cv_os_cray = yes; then
20622  for ac_func in _getb67 GETB67 getb67; do
20623    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20624echo "$as_me:$LINENO: checking for $ac_func" >&5
20625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20626if eval "test \"\${$as_ac_var+set}\" = set"; then
20627  echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629  cat >conftest.$ac_ext <<_ACEOF
20630/* confdefs.h.  */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h.  */
20635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20636   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20637#define $ac_func innocuous_$ac_func
20638
20639/* System header to define __stub macros and hopefully few prototypes,
20640    which can conflict with char $ac_func (); below.
20641    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642    <limits.h> exists even on freestanding compilers.  */
20643
20644#ifdef __STDC__
20645# include <limits.h>
20646#else
20647# include <assert.h>
20648#endif
20649
20650#undef $ac_func
20651
20652/* Override any gcc2 internal prototype to avoid an error.  */
20653#ifdef __cplusplus
20654extern "C"
20655{
20656#endif
20657/* We use char because int might match the return type of a gcc2
20658   builtin and then its argument prototype would still apply.  */
20659char $ac_func ();
20660/* The GNU C library defines this for functions which it implements
20661    to always fail with ENOSYS.  Some functions are actually named
20662    something starting with __ and the normal name is an alias.  */
20663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20664choke me
20665#else
20666char (*f) () = $ac_func;
20667#endif
20668#ifdef __cplusplus
20669}
20670#endif
20671
20672int
20673main ()
20674{
20675return f != $ac_func;
20676  ;
20677  return 0;
20678}
20679_ACEOF
20680rm -f conftest.$ac_objext conftest$ac_exeext
20681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20682  (eval $ac_link) 2>conftest.er1
20683  ac_status=$?
20684  grep -v '^ *+' conftest.er1 >conftest.err
20685  rm -f conftest.er1
20686  cat conftest.err >&5
20687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688  (exit $ac_status); } &&
20689	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691  (eval $ac_try) 2>&5
20692  ac_status=$?
20693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); }; } &&
20695	 { ac_try='test -s conftest$ac_exeext'
20696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697  (eval $ac_try) 2>&5
20698  ac_status=$?
20699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700  (exit $ac_status); }; }; then
20701  eval "$as_ac_var=yes"
20702else
20703  echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
20706eval "$as_ac_var=no"
20707fi
20708rm -f conftest.err conftest.$ac_objext \
20709      conftest$ac_exeext conftest.$ac_ext
20710fi
20711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20713if test `eval echo '${'$as_ac_var'}'` = yes; then
20714
20715cat >>confdefs.h <<_ACEOF
20716#define CRAY_STACKSEG_END $ac_func
20717_ACEOF
20718
20719    break
20720fi
20721
20722  done
20723fi
20724
20725echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20726echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20727if test "${ac_cv_c_stack_direction+set}" = set; then
20728  echo $ECHO_N "(cached) $ECHO_C" >&6
20729else
20730  if test "$cross_compiling" = yes; then
20731  ac_cv_c_stack_direction=0
20732else
20733  cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h.  */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h.  */
20739int
20740find_stack_direction ()
20741{
20742  static char *addr = 0;
20743  auto char dummy;
20744  if (addr == 0)
20745    {
20746      addr = &dummy;
20747      return find_stack_direction ();
20748    }
20749  else
20750    return (&dummy > addr) ? 1 : -1;
20751}
20752
20753int
20754main ()
20755{
20756  exit (find_stack_direction () < 0);
20757}
20758_ACEOF
20759rm -f conftest$ac_exeext
20760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761  (eval $ac_link) 2>&5
20762  ac_status=$?
20763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766  (eval $ac_try) 2>&5
20767  ac_status=$?
20768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769  (exit $ac_status); }; }; then
20770  ac_cv_c_stack_direction=1
20771else
20772  echo "$as_me: program exited with status $ac_status" >&5
20773echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776( exit $ac_status )
20777ac_cv_c_stack_direction=-1
20778fi
20779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20780fi
20781fi
20782echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20783echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20784
20785cat >>confdefs.h <<_ACEOF
20786#define STACK_DIRECTION $ac_cv_c_stack_direction
20787_ACEOF
20788
20789
20790fi
20791
20792
20793echo "$as_me:$LINENO: checking for getopt_long in -lc" >&5
20794echo $ECHO_N "checking for getopt_long in -lc... $ECHO_C" >&6
20795if test "${ac_cv_lib_c_getopt_long+set}" = set; then
20796  echo $ECHO_N "(cached) $ECHO_C" >&6
20797else
20798  ac_check_lib_save_LIBS=$LIBS
20799LIBS="-lc  $LIBS"
20800cat >conftest.$ac_ext <<_ACEOF
20801/* confdefs.h.  */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h.  */
20806
20807/* Override any gcc2 internal prototype to avoid an error.  */
20808#ifdef __cplusplus
20809extern "C"
20810#endif
20811/* We use char because int might match the return type of a gcc2
20812   builtin and then its argument prototype would still apply.  */
20813char getopt_long ();
20814int
20815main ()
20816{
20817getopt_long ();
20818  ;
20819  return 0;
20820}
20821_ACEOF
20822rm -f conftest.$ac_objext conftest$ac_exeext
20823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824  (eval $ac_link) 2>conftest.er1
20825  ac_status=$?
20826  grep -v '^ *+' conftest.er1 >conftest.err
20827  rm -f conftest.er1
20828  cat conftest.err >&5
20829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830  (exit $ac_status); } &&
20831	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833  (eval $ac_try) 2>&5
20834  ac_status=$?
20835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836  (exit $ac_status); }; } &&
20837	 { ac_try='test -s conftest$ac_exeext'
20838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839  (eval $ac_try) 2>&5
20840  ac_status=$?
20841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842  (exit $ac_status); }; }; then
20843  ac_cv_lib_c_getopt_long=yes
20844else
20845  echo "$as_me: failed program was:" >&5
20846sed 's/^/| /' conftest.$ac_ext >&5
20847
20848ac_cv_lib_c_getopt_long=no
20849fi
20850rm -f conftest.err conftest.$ac_objext \
20851      conftest$ac_exeext conftest.$ac_ext
20852LIBS=$ac_check_lib_save_LIBS
20853fi
20854echo "$as_me:$LINENO: result: $ac_cv_lib_c_getopt_long" >&5
20855echo "${ECHO_T}$ac_cv_lib_c_getopt_long" >&6
20856if test $ac_cv_lib_c_getopt_long = yes; then
20857  cat >>confdefs.h <<\_ACEOF
20858#define HAVE_GETOPT_LONG 1
20859_ACEOF
20860
20861fi
20862
20863
20864echo "$as_me:$LINENO: checking for alarm in -lc" >&5
20865echo $ECHO_N "checking for alarm in -lc... $ECHO_C" >&6
20866if test "${ac_cv_lib_c_alarm+set}" = set; then
20867  echo $ECHO_N "(cached) $ECHO_C" >&6
20868else
20869  ac_check_lib_save_LIBS=$LIBS
20870LIBS="-lc  $LIBS"
20871cat >conftest.$ac_ext <<_ACEOF
20872/* confdefs.h.  */
20873_ACEOF
20874cat confdefs.h >>conftest.$ac_ext
20875cat >>conftest.$ac_ext <<_ACEOF
20876/* end confdefs.h.  */
20877
20878/* Override any gcc2 internal prototype to avoid an error.  */
20879#ifdef __cplusplus
20880extern "C"
20881#endif
20882/* We use char because int might match the return type of a gcc2
20883   builtin and then its argument prototype would still apply.  */
20884char alarm ();
20885int
20886main ()
20887{
20888alarm ();
20889  ;
20890  return 0;
20891}
20892_ACEOF
20893rm -f conftest.$ac_objext conftest$ac_exeext
20894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895  (eval $ac_link) 2>conftest.er1
20896  ac_status=$?
20897  grep -v '^ *+' conftest.er1 >conftest.err
20898  rm -f conftest.er1
20899  cat conftest.err >&5
20900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901  (exit $ac_status); } &&
20902	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904  (eval $ac_try) 2>&5
20905  ac_status=$?
20906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907  (exit $ac_status); }; } &&
20908	 { ac_try='test -s conftest$ac_exeext'
20909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910  (eval $ac_try) 2>&5
20911  ac_status=$?
20912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913  (exit $ac_status); }; }; then
20914  ac_cv_lib_c_alarm=yes
20915else
20916  echo "$as_me: failed program was:" >&5
20917sed 's/^/| /' conftest.$ac_ext >&5
20918
20919ac_cv_lib_c_alarm=no
20920fi
20921rm -f conftest.err conftest.$ac_objext \
20922      conftest$ac_exeext conftest.$ac_ext
20923LIBS=$ac_check_lib_save_LIBS
20924fi
20925echo "$as_me:$LINENO: result: $ac_cv_lib_c_alarm" >&5
20926echo "${ECHO_T}$ac_cv_lib_c_alarm" >&6
20927if test $ac_cv_lib_c_alarm = yes; then
20928  cat >>confdefs.h <<\_ACEOF
20929#define HAVE_ALARM 1
20930_ACEOF
20931
20932fi
20933
20934
20935
20936for ac_header in netinet/in.h
20937do
20938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20939if eval "test \"\${$as_ac_Header+set}\" = set"; then
20940  echo "$as_me:$LINENO: checking for $ac_header" >&5
20941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20942if eval "test \"\${$as_ac_Header+set}\" = set"; then
20943  echo $ECHO_N "(cached) $ECHO_C" >&6
20944fi
20945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20947else
20948  # Is the header compilable?
20949echo "$as_me:$LINENO: checking $ac_header usability" >&5
20950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20951cat >conftest.$ac_ext <<_ACEOF
20952/* confdefs.h.  */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h.  */
20957$ac_includes_default
20958#include <$ac_header>
20959_ACEOF
20960rm -f conftest.$ac_objext
20961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20962  (eval $ac_compile) 2>conftest.er1
20963  ac_status=$?
20964  grep -v '^ *+' conftest.er1 >conftest.err
20965  rm -f conftest.er1
20966  cat conftest.err >&5
20967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968  (exit $ac_status); } &&
20969	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971  (eval $ac_try) 2>&5
20972  ac_status=$?
20973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974  (exit $ac_status); }; } &&
20975	 { ac_try='test -s conftest.$ac_objext'
20976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977  (eval $ac_try) 2>&5
20978  ac_status=$?
20979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980  (exit $ac_status); }; }; then
20981  ac_header_compiler=yes
20982else
20983  echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986ac_header_compiler=no
20987fi
20988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20990echo "${ECHO_T}$ac_header_compiler" >&6
20991
20992# Is the header present?
20993echo "$as_me:$LINENO: checking $ac_header presence" >&5
20994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20995cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h.  */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h.  */
21001#include <$ac_header>
21002_ACEOF
21003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21004  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21005  ac_status=$?
21006  grep -v '^ *+' conftest.er1 >conftest.err
21007  rm -f conftest.er1
21008  cat conftest.err >&5
21009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010  (exit $ac_status); } >/dev/null; then
21011  if test -s conftest.err; then
21012    ac_cpp_err=$ac_c_preproc_warn_flag
21013    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21014  else
21015    ac_cpp_err=
21016  fi
21017else
21018  ac_cpp_err=yes
21019fi
21020if test -z "$ac_cpp_err"; then
21021  ac_header_preproc=yes
21022else
21023  echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
21026  ac_header_preproc=no
21027fi
21028rm -f conftest.err conftest.$ac_ext
21029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21030echo "${ECHO_T}$ac_header_preproc" >&6
21031
21032# So?  What about this header?
21033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21034  yes:no: )
21035    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21039    ac_header_preproc=yes
21040    ;;
21041  no:yes:* )
21042    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21044    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21045echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21046    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21048    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21049echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21052    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21054    (
21055      cat <<\_ASBOX
21056## ------------------------------------------ ##
21057## Report this to the AC_PACKAGE_NAME lists.  ##
21058## ------------------------------------------ ##
21059_ASBOX
21060    ) |
21061      sed "s/^/$as_me: WARNING:     /" >&2
21062    ;;
21063esac
21064echo "$as_me:$LINENO: checking for $ac_header" >&5
21065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21066if eval "test \"\${$as_ac_Header+set}\" = set"; then
21067  echo $ECHO_N "(cached) $ECHO_C" >&6
21068else
21069  eval "$as_ac_Header=\$ac_header_preproc"
21070fi
21071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21073
21074fi
21075if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076  cat >>confdefs.h <<_ACEOF
21077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078_ACEOF
21079
21080fi
21081
21082done
21083
21084
21085
21086for ac_header in string.h
21087do
21088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21089if eval "test \"\${$as_ac_Header+set}\" = set"; then
21090  echo "$as_me:$LINENO: checking for $ac_header" >&5
21091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21092if eval "test \"\${$as_ac_Header+set}\" = set"; then
21093  echo $ECHO_N "(cached) $ECHO_C" >&6
21094fi
21095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21097else
21098  # Is the header compilable?
21099echo "$as_me:$LINENO: checking $ac_header usability" >&5
21100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21101cat >conftest.$ac_ext <<_ACEOF
21102/* confdefs.h.  */
21103_ACEOF
21104cat confdefs.h >>conftest.$ac_ext
21105cat >>conftest.$ac_ext <<_ACEOF
21106/* end confdefs.h.  */
21107$ac_includes_default
21108#include <$ac_header>
21109_ACEOF
21110rm -f conftest.$ac_objext
21111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21112  (eval $ac_compile) 2>conftest.er1
21113  ac_status=$?
21114  grep -v '^ *+' conftest.er1 >conftest.err
21115  rm -f conftest.er1
21116  cat conftest.err >&5
21117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118  (exit $ac_status); } &&
21119	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121  (eval $ac_try) 2>&5
21122  ac_status=$?
21123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124  (exit $ac_status); }; } &&
21125	 { ac_try='test -s conftest.$ac_objext'
21126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127  (eval $ac_try) 2>&5
21128  ac_status=$?
21129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130  (exit $ac_status); }; }; then
21131  ac_header_compiler=yes
21132else
21133  echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136ac_header_compiler=no
21137fi
21138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21139echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21140echo "${ECHO_T}$ac_header_compiler" >&6
21141
21142# Is the header present?
21143echo "$as_me:$LINENO: checking $ac_header presence" >&5
21144echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21145cat >conftest.$ac_ext <<_ACEOF
21146/* confdefs.h.  */
21147_ACEOF
21148cat confdefs.h >>conftest.$ac_ext
21149cat >>conftest.$ac_ext <<_ACEOF
21150/* end confdefs.h.  */
21151#include <$ac_header>
21152_ACEOF
21153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21154  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21155  ac_status=$?
21156  grep -v '^ *+' conftest.er1 >conftest.err
21157  rm -f conftest.er1
21158  cat conftest.err >&5
21159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160  (exit $ac_status); } >/dev/null; then
21161  if test -s conftest.err; then
21162    ac_cpp_err=$ac_c_preproc_warn_flag
21163    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21164  else
21165    ac_cpp_err=
21166  fi
21167else
21168  ac_cpp_err=yes
21169fi
21170if test -z "$ac_cpp_err"; then
21171  ac_header_preproc=yes
21172else
21173  echo "$as_me: failed program was:" >&5
21174sed 's/^/| /' conftest.$ac_ext >&5
21175
21176  ac_header_preproc=no
21177fi
21178rm -f conftest.err conftest.$ac_ext
21179echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21180echo "${ECHO_T}$ac_header_preproc" >&6
21181
21182# So?  What about this header?
21183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21184  yes:no: )
21185    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21187    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21189    ac_header_preproc=yes
21190    ;;
21191  no:yes:* )
21192    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21194    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21195echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21196    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21198    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21199echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21200    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21202    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21204    (
21205      cat <<\_ASBOX
21206## ------------------------------------------ ##
21207## Report this to the AC_PACKAGE_NAME lists.  ##
21208## ------------------------------------------ ##
21209_ASBOX
21210    ) |
21211      sed "s/^/$as_me: WARNING:     /" >&2
21212    ;;
21213esac
21214echo "$as_me:$LINENO: checking for $ac_header" >&5
21215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21216if eval "test \"\${$as_ac_Header+set}\" = set"; then
21217  echo $ECHO_N "(cached) $ECHO_C" >&6
21218else
21219  eval "$as_ac_Header=\$ac_header_preproc"
21220fi
21221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21223
21224fi
21225if test `eval echo '${'$as_ac_Header'}'` = yes; then
21226  cat >>confdefs.h <<_ACEOF
21227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21228_ACEOF
21229
21230fi
21231
21232done
21233
21234
21235
21236for ac_header in libintl.h
21237do
21238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21239if eval "test \"\${$as_ac_Header+set}\" = set"; then
21240  echo "$as_me:$LINENO: checking for $ac_header" >&5
21241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21242if eval "test \"\${$as_ac_Header+set}\" = set"; then
21243  echo $ECHO_N "(cached) $ECHO_C" >&6
21244fi
21245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21247else
21248  # Is the header compilable?
21249echo "$as_me:$LINENO: checking $ac_header usability" >&5
21250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21251cat >conftest.$ac_ext <<_ACEOF
21252/* confdefs.h.  */
21253_ACEOF
21254cat confdefs.h >>conftest.$ac_ext
21255cat >>conftest.$ac_ext <<_ACEOF
21256/* end confdefs.h.  */
21257$ac_includes_default
21258#include <$ac_header>
21259_ACEOF
21260rm -f conftest.$ac_objext
21261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262  (eval $ac_compile) 2>conftest.er1
21263  ac_status=$?
21264  grep -v '^ *+' conftest.er1 >conftest.err
21265  rm -f conftest.er1
21266  cat conftest.err >&5
21267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268  (exit $ac_status); } &&
21269	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271  (eval $ac_try) 2>&5
21272  ac_status=$?
21273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274  (exit $ac_status); }; } &&
21275	 { ac_try='test -s conftest.$ac_objext'
21276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277  (eval $ac_try) 2>&5
21278  ac_status=$?
21279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280  (exit $ac_status); }; }; then
21281  ac_header_compiler=yes
21282else
21283  echo "$as_me: failed program was:" >&5
21284sed 's/^/| /' conftest.$ac_ext >&5
21285
21286ac_header_compiler=no
21287fi
21288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290echo "${ECHO_T}$ac_header_compiler" >&6
21291
21292# Is the header present?
21293echo "$as_me:$LINENO: checking $ac_header presence" >&5
21294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21295cat >conftest.$ac_ext <<_ACEOF
21296/* confdefs.h.  */
21297_ACEOF
21298cat confdefs.h >>conftest.$ac_ext
21299cat >>conftest.$ac_ext <<_ACEOF
21300/* end confdefs.h.  */
21301#include <$ac_header>
21302_ACEOF
21303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21304  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21305  ac_status=$?
21306  grep -v '^ *+' conftest.er1 >conftest.err
21307  rm -f conftest.er1
21308  cat conftest.err >&5
21309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310  (exit $ac_status); } >/dev/null; then
21311  if test -s conftest.err; then
21312    ac_cpp_err=$ac_c_preproc_warn_flag
21313    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21314  else
21315    ac_cpp_err=
21316  fi
21317else
21318  ac_cpp_err=yes
21319fi
21320if test -z "$ac_cpp_err"; then
21321  ac_header_preproc=yes
21322else
21323  echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326  ac_header_preproc=no
21327fi
21328rm -f conftest.err conftest.$ac_ext
21329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21330echo "${ECHO_T}$ac_header_preproc" >&6
21331
21332# So?  What about this header?
21333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334  yes:no: )
21335    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21337    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21339    ac_header_preproc=yes
21340    ;;
21341  no:yes:* )
21342    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21344    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21345echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21346    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21348    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21349echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21350    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21352    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21354    (
21355      cat <<\_ASBOX
21356## ------------------------------------------ ##
21357## Report this to the AC_PACKAGE_NAME lists.  ##
21358## ------------------------------------------ ##
21359_ASBOX
21360    ) |
21361      sed "s/^/$as_me: WARNING:     /" >&2
21362    ;;
21363esac
21364echo "$as_me:$LINENO: checking for $ac_header" >&5
21365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21366if eval "test \"\${$as_ac_Header+set}\" = set"; then
21367  echo $ECHO_N "(cached) $ECHO_C" >&6
21368else
21369  eval "$as_ac_Header=\$ac_header_preproc"
21370fi
21371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21373
21374fi
21375if test `eval echo '${'$as_ac_Header'}'` = yes; then
21376  cat >>confdefs.h <<_ACEOF
21377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21378_ACEOF
21379
21380fi
21381
21382done
21383
21384
21385echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21386echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21387if test "${ac_cv_c_const+set}" = set; then
21388  echo $ECHO_N "(cached) $ECHO_C" >&6
21389else
21390  cat >conftest.$ac_ext <<_ACEOF
21391/* confdefs.h.  */
21392_ACEOF
21393cat confdefs.h >>conftest.$ac_ext
21394cat >>conftest.$ac_ext <<_ACEOF
21395/* end confdefs.h.  */
21396
21397int
21398main ()
21399{
21400/* FIXME: Include the comments suggested by Paul. */
21401#ifndef __cplusplus
21402  /* Ultrix mips cc rejects this.  */
21403  typedef int charset[2];
21404  const charset x;
21405  /* SunOS 4.1.1 cc rejects this.  */
21406  char const *const *ccp;
21407  char **p;
21408  /* NEC SVR4.0.2 mips cc rejects this.  */
21409  struct point {int x, y;};
21410  static struct point const zero = {0,0};
21411  /* AIX XL C 1.02.0.0 rejects this.
21412     It does not let you subtract one const X* pointer from another in
21413     an arm of an if-expression whose if-part is not a constant
21414     expression */
21415  const char *g = "string";
21416  ccp = &g + (g ? g-g : 0);
21417  /* HPUX 7.0 cc rejects these. */
21418  ++ccp;
21419  p = (char**) ccp;
21420  ccp = (char const *const *) p;
21421  { /* SCO 3.2v4 cc rejects this.  */
21422    char *t;
21423    char const *s = 0 ? (char *) 0 : (char const *) 0;
21424
21425    *t++ = 0;
21426  }
21427  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21428    int x[] = {25, 17};
21429    const int *foo = &x[0];
21430    ++foo;
21431  }
21432  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21433    typedef const int *iptr;
21434    iptr p = 0;
21435    ++p;
21436  }
21437  { /* AIX XL C 1.02.0.0 rejects this saying
21438       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21439    struct s { int j; const int *ap[3]; };
21440    struct s *b; b->j = 5;
21441  }
21442  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21443    const int foo = 10;
21444  }
21445#endif
21446
21447  ;
21448  return 0;
21449}
21450_ACEOF
21451rm -f conftest.$ac_objext
21452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21453  (eval $ac_compile) 2>conftest.er1
21454  ac_status=$?
21455  grep -v '^ *+' conftest.er1 >conftest.err
21456  rm -f conftest.er1
21457  cat conftest.err >&5
21458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459  (exit $ac_status); } &&
21460	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462  (eval $ac_try) 2>&5
21463  ac_status=$?
21464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465  (exit $ac_status); }; } &&
21466	 { ac_try='test -s conftest.$ac_objext'
21467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468  (eval $ac_try) 2>&5
21469  ac_status=$?
21470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471  (exit $ac_status); }; }; then
21472  ac_cv_c_const=yes
21473else
21474  echo "$as_me: failed program was:" >&5
21475sed 's/^/| /' conftest.$ac_ext >&5
21476
21477ac_cv_c_const=no
21478fi
21479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21480fi
21481echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21482echo "${ECHO_T}$ac_cv_c_const" >&6
21483if test $ac_cv_c_const = no; then
21484
21485cat >>confdefs.h <<\_ACEOF
21486#define const
21487_ACEOF
21488
21489fi
21490
21491
21492cat >conftest.$ac_ext <<_ACEOF
21493/* confdefs.h.  */
21494_ACEOF
21495cat confdefs.h >>conftest.$ac_ext
21496cat >>conftest.$ac_ext <<_ACEOF
21497/* end confdefs.h.  */
21498#include <stdio.h>
21499
21500_ACEOF
21501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21502  $EGREP "vsnprintf" >/dev/null 2>&1; then
21503  cat >>confdefs.h <<\_ACEOF
21504#define HAVE_VSNPRINTF 1
21505_ACEOF
21506
21507fi
21508rm -f conftest*
21509
21510
21511echo "$as_me:$LINENO: checking for unsigned short int" >&5
21512echo $ECHO_N "checking for unsigned short int... $ECHO_C" >&6
21513if test "${ac_cv_type_unsigned_short_int+set}" = set; then
21514  echo $ECHO_N "(cached) $ECHO_C" >&6
21515else
21516  cat >conftest.$ac_ext <<_ACEOF
21517/* confdefs.h.  */
21518_ACEOF
21519cat confdefs.h >>conftest.$ac_ext
21520cat >>conftest.$ac_ext <<_ACEOF
21521/* end confdefs.h.  */
21522$ac_includes_default
21523int
21524main ()
21525{
21526if ((unsigned short int *) 0)
21527  return 0;
21528if (sizeof (unsigned short int))
21529  return 0;
21530  ;
21531  return 0;
21532}
21533_ACEOF
21534rm -f conftest.$ac_objext
21535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21536  (eval $ac_compile) 2>conftest.er1
21537  ac_status=$?
21538  grep -v '^ *+' conftest.er1 >conftest.err
21539  rm -f conftest.er1
21540  cat conftest.err >&5
21541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); } &&
21543	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545  (eval $ac_try) 2>&5
21546  ac_status=$?
21547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548  (exit $ac_status); }; } &&
21549	 { ac_try='test -s conftest.$ac_objext'
21550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551  (eval $ac_try) 2>&5
21552  ac_status=$?
21553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554  (exit $ac_status); }; }; then
21555  ac_cv_type_unsigned_short_int=yes
21556else
21557  echo "$as_me: failed program was:" >&5
21558sed 's/^/| /' conftest.$ac_ext >&5
21559
21560ac_cv_type_unsigned_short_int=no
21561fi
21562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21563fi
21564echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short_int" >&5
21565echo "${ECHO_T}$ac_cv_type_unsigned_short_int" >&6
21566
21567echo "$as_me:$LINENO: checking size of unsigned short int" >&5
21568echo $ECHO_N "checking size of unsigned short int... $ECHO_C" >&6
21569if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
21570  echo $ECHO_N "(cached) $ECHO_C" >&6
21571else
21572  if test "$ac_cv_type_unsigned_short_int" = yes; then
21573  # The cast to unsigned long works around a bug in the HP C Compiler
21574  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21575  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21576  # This bug is HP SR number 8606223364.
21577  if test "$cross_compiling" = yes; then
21578  # Depending upon the size, compute the lo and hi bounds.
21579cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h.  */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h.  */
21585$ac_includes_default
21586int
21587main ()
21588{
21589static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= 0)];
21590test_array [0] = 0
21591
21592  ;
21593  return 0;
21594}
21595_ACEOF
21596rm -f conftest.$ac_objext
21597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21598  (eval $ac_compile) 2>conftest.er1
21599  ac_status=$?
21600  grep -v '^ *+' conftest.er1 >conftest.err
21601  rm -f conftest.er1
21602  cat conftest.err >&5
21603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604  (exit $ac_status); } &&
21605	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607  (eval $ac_try) 2>&5
21608  ac_status=$?
21609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610  (exit $ac_status); }; } &&
21611	 { ac_try='test -s conftest.$ac_objext'
21612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613  (eval $ac_try) 2>&5
21614  ac_status=$?
21615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616  (exit $ac_status); }; }; then
21617  ac_lo=0 ac_mid=0
21618  while :; do
21619    cat >conftest.$ac_ext <<_ACEOF
21620/* confdefs.h.  */
21621_ACEOF
21622cat confdefs.h >>conftest.$ac_ext
21623cat >>conftest.$ac_ext <<_ACEOF
21624/* end confdefs.h.  */
21625$ac_includes_default
21626int
21627main ()
21628{
21629static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
21630test_array [0] = 0
21631
21632  ;
21633  return 0;
21634}
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638  (eval $ac_compile) 2>conftest.er1
21639  ac_status=$?
21640  grep -v '^ *+' conftest.er1 >conftest.err
21641  rm -f conftest.er1
21642  cat conftest.err >&5
21643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644  (exit $ac_status); } &&
21645	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647  (eval $ac_try) 2>&5
21648  ac_status=$?
21649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650  (exit $ac_status); }; } &&
21651	 { ac_try='test -s conftest.$ac_objext'
21652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653  (eval $ac_try) 2>&5
21654  ac_status=$?
21655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656  (exit $ac_status); }; }; then
21657  ac_hi=$ac_mid; break
21658else
21659  echo "$as_me: failed program was:" >&5
21660sed 's/^/| /' conftest.$ac_ext >&5
21661
21662ac_lo=`expr $ac_mid + 1`
21663		    if test $ac_lo -le $ac_mid; then
21664		      ac_lo= ac_hi=
21665		      break
21666		    fi
21667		    ac_mid=`expr 2 '*' $ac_mid + 1`
21668fi
21669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21670  done
21671else
21672  echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5
21674
21675cat >conftest.$ac_ext <<_ACEOF
21676/* confdefs.h.  */
21677_ACEOF
21678cat confdefs.h >>conftest.$ac_ext
21679cat >>conftest.$ac_ext <<_ACEOF
21680/* end confdefs.h.  */
21681$ac_includes_default
21682int
21683main ()
21684{
21685static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) < 0)];
21686test_array [0] = 0
21687
21688  ;
21689  return 0;
21690}
21691_ACEOF
21692rm -f conftest.$ac_objext
21693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21694  (eval $ac_compile) 2>conftest.er1
21695  ac_status=$?
21696  grep -v '^ *+' conftest.er1 >conftest.err
21697  rm -f conftest.er1
21698  cat conftest.err >&5
21699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700  (exit $ac_status); } &&
21701	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703  (eval $ac_try) 2>&5
21704  ac_status=$?
21705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706  (exit $ac_status); }; } &&
21707	 { ac_try='test -s conftest.$ac_objext'
21708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709  (eval $ac_try) 2>&5
21710  ac_status=$?
21711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712  (exit $ac_status); }; }; then
21713  ac_hi=-1 ac_mid=-1
21714  while :; do
21715    cat >conftest.$ac_ext <<_ACEOF
21716/* confdefs.h.  */
21717_ACEOF
21718cat confdefs.h >>conftest.$ac_ext
21719cat >>conftest.$ac_ext <<_ACEOF
21720/* end confdefs.h.  */
21721$ac_includes_default
21722int
21723main ()
21724{
21725static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) >= $ac_mid)];
21726test_array [0] = 0
21727
21728  ;
21729  return 0;
21730}
21731_ACEOF
21732rm -f conftest.$ac_objext
21733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21734  (eval $ac_compile) 2>conftest.er1
21735  ac_status=$?
21736  grep -v '^ *+' conftest.er1 >conftest.err
21737  rm -f conftest.er1
21738  cat conftest.err >&5
21739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740  (exit $ac_status); } &&
21741	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743  (eval $ac_try) 2>&5
21744  ac_status=$?
21745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746  (exit $ac_status); }; } &&
21747	 { ac_try='test -s conftest.$ac_objext'
21748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749  (eval $ac_try) 2>&5
21750  ac_status=$?
21751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752  (exit $ac_status); }; }; then
21753  ac_lo=$ac_mid; break
21754else
21755  echo "$as_me: failed program was:" >&5
21756sed 's/^/| /' conftest.$ac_ext >&5
21757
21758ac_hi=`expr '(' $ac_mid ')' - 1`
21759		       if test $ac_mid -le $ac_hi; then
21760			 ac_lo= ac_hi=
21761			 break
21762		       fi
21763		       ac_mid=`expr 2 '*' $ac_mid`
21764fi
21765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21766  done
21767else
21768  echo "$as_me: failed program was:" >&5
21769sed 's/^/| /' conftest.$ac_ext >&5
21770
21771ac_lo= ac_hi=
21772fi
21773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21774fi
21775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21776# Binary search between lo and hi bounds.
21777while test "x$ac_lo" != "x$ac_hi"; do
21778  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21779  cat >conftest.$ac_ext <<_ACEOF
21780/* confdefs.h.  */
21781_ACEOF
21782cat confdefs.h >>conftest.$ac_ext
21783cat >>conftest.$ac_ext <<_ACEOF
21784/* end confdefs.h.  */
21785$ac_includes_default
21786int
21787main ()
21788{
21789static int test_array [1 - 2 * !(((long) (sizeof (unsigned short int))) <= $ac_mid)];
21790test_array [0] = 0
21791
21792  ;
21793  return 0;
21794}
21795_ACEOF
21796rm -f conftest.$ac_objext
21797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798  (eval $ac_compile) 2>conftest.er1
21799  ac_status=$?
21800  grep -v '^ *+' conftest.er1 >conftest.err
21801  rm -f conftest.er1
21802  cat conftest.err >&5
21803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804  (exit $ac_status); } &&
21805	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807  (eval $ac_try) 2>&5
21808  ac_status=$?
21809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810  (exit $ac_status); }; } &&
21811	 { ac_try='test -s conftest.$ac_objext'
21812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813  (eval $ac_try) 2>&5
21814  ac_status=$?
21815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816  (exit $ac_status); }; }; then
21817  ac_hi=$ac_mid
21818else
21819  echo "$as_me: failed program was:" >&5
21820sed 's/^/| /' conftest.$ac_ext >&5
21821
21822ac_lo=`expr '(' $ac_mid ')' + 1`
21823fi
21824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21825done
21826case $ac_lo in
21827?*) ac_cv_sizeof_unsigned_short_int=$ac_lo;;
21828'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
21829See \`config.log' for more details." >&5
21830echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
21831See \`config.log' for more details." >&2;}
21832   { (exit 1); exit 1; }; } ;;
21833esac
21834else
21835  if test "$cross_compiling" = yes; then
21836  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21837echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21838   { (exit 1); exit 1; }; }
21839else
21840  cat >conftest.$ac_ext <<_ACEOF
21841/* confdefs.h.  */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h.  */
21846$ac_includes_default
21847long longval () { return (long) (sizeof (unsigned short int)); }
21848unsigned long ulongval () { return (long) (sizeof (unsigned short int)); }
21849#include <stdio.h>
21850#include <stdlib.h>
21851int
21852main ()
21853{
21854
21855  FILE *f = fopen ("conftest.val", "w");
21856  if (! f)
21857    exit (1);
21858  if (((long) (sizeof (unsigned short int))) < 0)
21859    {
21860      long i = longval ();
21861      if (i != ((long) (sizeof (unsigned short int))))
21862	exit (1);
21863      fprintf (f, "%ld\n", i);
21864    }
21865  else
21866    {
21867      unsigned long i = ulongval ();
21868      if (i != ((long) (sizeof (unsigned short int))))
21869	exit (1);
21870      fprintf (f, "%lu\n", i);
21871    }
21872  exit (ferror (f) || fclose (f) != 0);
21873
21874  ;
21875  return 0;
21876}
21877_ACEOF
21878rm -f conftest$ac_exeext
21879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21880  (eval $ac_link) 2>&5
21881  ac_status=$?
21882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885  (eval $ac_try) 2>&5
21886  ac_status=$?
21887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888  (exit $ac_status); }; }; then
21889  ac_cv_sizeof_unsigned_short_int=`cat conftest.val`
21890else
21891  echo "$as_me: program exited with status $ac_status" >&5
21892echo "$as_me: failed program was:" >&5
21893sed 's/^/| /' conftest.$ac_ext >&5
21894
21895( exit $ac_status )
21896{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short int), 77
21897See \`config.log' for more details." >&5
21898echo "$as_me: error: cannot compute sizeof (unsigned short int), 77
21899See \`config.log' for more details." >&2;}
21900   { (exit 1); exit 1; }; }
21901fi
21902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21903fi
21904fi
21905rm -f conftest.val
21906else
21907  ac_cv_sizeof_unsigned_short_int=0
21908fi
21909fi
21910echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
21911echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
21912cat >>confdefs.h <<_ACEOF
21913#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
21914_ACEOF
21915
21916
21917echo "$as_me:$LINENO: checking for unsigned long int" >&5
21918echo $ECHO_N "checking for unsigned long int... $ECHO_C" >&6
21919if test "${ac_cv_type_unsigned_long_int+set}" = set; then
21920  echo $ECHO_N "(cached) $ECHO_C" >&6
21921else
21922  cat >conftest.$ac_ext <<_ACEOF
21923/* confdefs.h.  */
21924_ACEOF
21925cat confdefs.h >>conftest.$ac_ext
21926cat >>conftest.$ac_ext <<_ACEOF
21927/* end confdefs.h.  */
21928$ac_includes_default
21929int
21930main ()
21931{
21932if ((unsigned long int *) 0)
21933  return 0;
21934if (sizeof (unsigned long int))
21935  return 0;
21936  ;
21937  return 0;
21938}
21939_ACEOF
21940rm -f conftest.$ac_objext
21941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21942  (eval $ac_compile) 2>conftest.er1
21943  ac_status=$?
21944  grep -v '^ *+' conftest.er1 >conftest.err
21945  rm -f conftest.er1
21946  cat conftest.err >&5
21947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948  (exit $ac_status); } &&
21949	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951  (eval $ac_try) 2>&5
21952  ac_status=$?
21953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954  (exit $ac_status); }; } &&
21955	 { ac_try='test -s conftest.$ac_objext'
21956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957  (eval $ac_try) 2>&5
21958  ac_status=$?
21959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960  (exit $ac_status); }; }; then
21961  ac_cv_type_unsigned_long_int=yes
21962else
21963  echo "$as_me: failed program was:" >&5
21964sed 's/^/| /' conftest.$ac_ext >&5
21965
21966ac_cv_type_unsigned_long_int=no
21967fi
21968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21969fi
21970echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_int" >&5
21971echo "${ECHO_T}$ac_cv_type_unsigned_long_int" >&6
21972
21973echo "$as_me:$LINENO: checking size of unsigned long int" >&5
21974echo $ECHO_N "checking size of unsigned long int... $ECHO_C" >&6
21975if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
21976  echo $ECHO_N "(cached) $ECHO_C" >&6
21977else
21978  if test "$ac_cv_type_unsigned_long_int" = yes; then
21979  # The cast to unsigned long works around a bug in the HP C Compiler
21980  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21981  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21982  # This bug is HP SR number 8606223364.
21983  if test "$cross_compiling" = yes; then
21984  # Depending upon the size, compute the lo and hi bounds.
21985cat >conftest.$ac_ext <<_ACEOF
21986/* confdefs.h.  */
21987_ACEOF
21988cat confdefs.h >>conftest.$ac_ext
21989cat >>conftest.$ac_ext <<_ACEOF
21990/* end confdefs.h.  */
21991$ac_includes_default
21992int
21993main ()
21994{
21995static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= 0)];
21996test_array [0] = 0
21997
21998  ;
21999  return 0;
22000}
22001_ACEOF
22002rm -f conftest.$ac_objext
22003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004  (eval $ac_compile) 2>conftest.er1
22005  ac_status=$?
22006  grep -v '^ *+' conftest.er1 >conftest.err
22007  rm -f conftest.er1
22008  cat conftest.err >&5
22009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010  (exit $ac_status); } &&
22011	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013  (eval $ac_try) 2>&5
22014  ac_status=$?
22015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016  (exit $ac_status); }; } &&
22017	 { ac_try='test -s conftest.$ac_objext'
22018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019  (eval $ac_try) 2>&5
22020  ac_status=$?
22021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022  (exit $ac_status); }; }; then
22023  ac_lo=0 ac_mid=0
22024  while :; do
22025    cat >conftest.$ac_ext <<_ACEOF
22026/* confdefs.h.  */
22027_ACEOF
22028cat confdefs.h >>conftest.$ac_ext
22029cat >>conftest.$ac_ext <<_ACEOF
22030/* end confdefs.h.  */
22031$ac_includes_default
22032int
22033main ()
22034{
22035static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
22036test_array [0] = 0
22037
22038  ;
22039  return 0;
22040}
22041_ACEOF
22042rm -f conftest.$ac_objext
22043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22044  (eval $ac_compile) 2>conftest.er1
22045  ac_status=$?
22046  grep -v '^ *+' conftest.er1 >conftest.err
22047  rm -f conftest.er1
22048  cat conftest.err >&5
22049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050  (exit $ac_status); } &&
22051	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053  (eval $ac_try) 2>&5
22054  ac_status=$?
22055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056  (exit $ac_status); }; } &&
22057	 { ac_try='test -s conftest.$ac_objext'
22058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059  (eval $ac_try) 2>&5
22060  ac_status=$?
22061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062  (exit $ac_status); }; }; then
22063  ac_hi=$ac_mid; break
22064else
22065  echo "$as_me: failed program was:" >&5
22066sed 's/^/| /' conftest.$ac_ext >&5
22067
22068ac_lo=`expr $ac_mid + 1`
22069		    if test $ac_lo -le $ac_mid; then
22070		      ac_lo= ac_hi=
22071		      break
22072		    fi
22073		    ac_mid=`expr 2 '*' $ac_mid + 1`
22074fi
22075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076  done
22077else
22078  echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
22081cat >conftest.$ac_ext <<_ACEOF
22082/* confdefs.h.  */
22083_ACEOF
22084cat confdefs.h >>conftest.$ac_ext
22085cat >>conftest.$ac_ext <<_ACEOF
22086/* end confdefs.h.  */
22087$ac_includes_default
22088int
22089main ()
22090{
22091static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) < 0)];
22092test_array [0] = 0
22093
22094  ;
22095  return 0;
22096}
22097_ACEOF
22098rm -f conftest.$ac_objext
22099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22100  (eval $ac_compile) 2>conftest.er1
22101  ac_status=$?
22102  grep -v '^ *+' conftest.er1 >conftest.err
22103  rm -f conftest.er1
22104  cat conftest.err >&5
22105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106  (exit $ac_status); } &&
22107	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109  (eval $ac_try) 2>&5
22110  ac_status=$?
22111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112  (exit $ac_status); }; } &&
22113	 { ac_try='test -s conftest.$ac_objext'
22114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115  (eval $ac_try) 2>&5
22116  ac_status=$?
22117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118  (exit $ac_status); }; }; then
22119  ac_hi=-1 ac_mid=-1
22120  while :; do
22121    cat >conftest.$ac_ext <<_ACEOF
22122/* confdefs.h.  */
22123_ACEOF
22124cat confdefs.h >>conftest.$ac_ext
22125cat >>conftest.$ac_ext <<_ACEOF
22126/* end confdefs.h.  */
22127$ac_includes_default
22128int
22129main ()
22130{
22131static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) >= $ac_mid)];
22132test_array [0] = 0
22133
22134  ;
22135  return 0;
22136}
22137_ACEOF
22138rm -f conftest.$ac_objext
22139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22140  (eval $ac_compile) 2>conftest.er1
22141  ac_status=$?
22142  grep -v '^ *+' conftest.er1 >conftest.err
22143  rm -f conftest.er1
22144  cat conftest.err >&5
22145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146  (exit $ac_status); } &&
22147	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149  (eval $ac_try) 2>&5
22150  ac_status=$?
22151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152  (exit $ac_status); }; } &&
22153	 { ac_try='test -s conftest.$ac_objext'
22154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155  (eval $ac_try) 2>&5
22156  ac_status=$?
22157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158  (exit $ac_status); }; }; then
22159  ac_lo=$ac_mid; break
22160else
22161  echo "$as_me: failed program was:" >&5
22162sed 's/^/| /' conftest.$ac_ext >&5
22163
22164ac_hi=`expr '(' $ac_mid ')' - 1`
22165		       if test $ac_mid -le $ac_hi; then
22166			 ac_lo= ac_hi=
22167			 break
22168		       fi
22169		       ac_mid=`expr 2 '*' $ac_mid`
22170fi
22171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22172  done
22173else
22174  echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177ac_lo= ac_hi=
22178fi
22179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22180fi
22181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22182# Binary search between lo and hi bounds.
22183while test "x$ac_lo" != "x$ac_hi"; do
22184  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22185  cat >conftest.$ac_ext <<_ACEOF
22186/* confdefs.h.  */
22187_ACEOF
22188cat confdefs.h >>conftest.$ac_ext
22189cat >>conftest.$ac_ext <<_ACEOF
22190/* end confdefs.h.  */
22191$ac_includes_default
22192int
22193main ()
22194{
22195static int test_array [1 - 2 * !(((long) (sizeof (unsigned long int))) <= $ac_mid)];
22196test_array [0] = 0
22197
22198  ;
22199  return 0;
22200}
22201_ACEOF
22202rm -f conftest.$ac_objext
22203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22204  (eval $ac_compile) 2>conftest.er1
22205  ac_status=$?
22206  grep -v '^ *+' conftest.er1 >conftest.err
22207  rm -f conftest.er1
22208  cat conftest.err >&5
22209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210  (exit $ac_status); } &&
22211	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213  (eval $ac_try) 2>&5
22214  ac_status=$?
22215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216  (exit $ac_status); }; } &&
22217	 { ac_try='test -s conftest.$ac_objext'
22218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219  (eval $ac_try) 2>&5
22220  ac_status=$?
22221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222  (exit $ac_status); }; }; then
22223  ac_hi=$ac_mid
22224else
22225  echo "$as_me: failed program was:" >&5
22226sed 's/^/| /' conftest.$ac_ext >&5
22227
22228ac_lo=`expr '(' $ac_mid ')' + 1`
22229fi
22230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22231done
22232case $ac_lo in
22233?*) ac_cv_sizeof_unsigned_long_int=$ac_lo;;
22234'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
22235See \`config.log' for more details." >&5
22236echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
22237See \`config.log' for more details." >&2;}
22238   { (exit 1); exit 1; }; } ;;
22239esac
22240else
22241  if test "$cross_compiling" = yes; then
22242  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22243echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22244   { (exit 1); exit 1; }; }
22245else
22246  cat >conftest.$ac_ext <<_ACEOF
22247/* confdefs.h.  */
22248_ACEOF
22249cat confdefs.h >>conftest.$ac_ext
22250cat >>conftest.$ac_ext <<_ACEOF
22251/* end confdefs.h.  */
22252$ac_includes_default
22253long longval () { return (long) (sizeof (unsigned long int)); }
22254unsigned long ulongval () { return (long) (sizeof (unsigned long int)); }
22255#include <stdio.h>
22256#include <stdlib.h>
22257int
22258main ()
22259{
22260
22261  FILE *f = fopen ("conftest.val", "w");
22262  if (! f)
22263    exit (1);
22264  if (((long) (sizeof (unsigned long int))) < 0)
22265    {
22266      long i = longval ();
22267      if (i != ((long) (sizeof (unsigned long int))))
22268	exit (1);
22269      fprintf (f, "%ld\n", i);
22270    }
22271  else
22272    {
22273      unsigned long i = ulongval ();
22274      if (i != ((long) (sizeof (unsigned long int))))
22275	exit (1);
22276      fprintf (f, "%lu\n", i);
22277    }
22278  exit (ferror (f) || fclose (f) != 0);
22279
22280  ;
22281  return 0;
22282}
22283_ACEOF
22284rm -f conftest$ac_exeext
22285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22286  (eval $ac_link) 2>&5
22287  ac_status=$?
22288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291  (eval $ac_try) 2>&5
22292  ac_status=$?
22293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294  (exit $ac_status); }; }; then
22295  ac_cv_sizeof_unsigned_long_int=`cat conftest.val`
22296else
22297  echo "$as_me: program exited with status $ac_status" >&5
22298echo "$as_me: failed program was:" >&5
22299sed 's/^/| /' conftest.$ac_ext >&5
22300
22301( exit $ac_status )
22302{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long int), 77
22303See \`config.log' for more details." >&5
22304echo "$as_me: error: cannot compute sizeof (unsigned long int), 77
22305See \`config.log' for more details." >&2;}
22306   { (exit 1); exit 1; }; }
22307fi
22308rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22309fi
22310fi
22311rm -f conftest.val
22312else
22313  ac_cv_sizeof_unsigned_long_int=0
22314fi
22315fi
22316echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22317echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22318cat >>confdefs.h <<_ACEOF
22319#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
22320_ACEOF
22321
22322
22323echo "$as_me:$LINENO: checking for unsigned int" >&5
22324echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
22325if test "${ac_cv_type_unsigned_int+set}" = set; then
22326  echo $ECHO_N "(cached) $ECHO_C" >&6
22327else
22328  cat >conftest.$ac_ext <<_ACEOF
22329/* confdefs.h.  */
22330_ACEOF
22331cat confdefs.h >>conftest.$ac_ext
22332cat >>conftest.$ac_ext <<_ACEOF
22333/* end confdefs.h.  */
22334$ac_includes_default
22335int
22336main ()
22337{
22338if ((unsigned int *) 0)
22339  return 0;
22340if (sizeof (unsigned int))
22341  return 0;
22342  ;
22343  return 0;
22344}
22345_ACEOF
22346rm -f conftest.$ac_objext
22347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22348  (eval $ac_compile) 2>conftest.er1
22349  ac_status=$?
22350  grep -v '^ *+' conftest.er1 >conftest.err
22351  rm -f conftest.er1
22352  cat conftest.err >&5
22353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354  (exit $ac_status); } &&
22355	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357  (eval $ac_try) 2>&5
22358  ac_status=$?
22359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360  (exit $ac_status); }; } &&
22361	 { ac_try='test -s conftest.$ac_objext'
22362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363  (eval $ac_try) 2>&5
22364  ac_status=$?
22365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366  (exit $ac_status); }; }; then
22367  ac_cv_type_unsigned_int=yes
22368else
22369  echo "$as_me: failed program was:" >&5
22370sed 's/^/| /' conftest.$ac_ext >&5
22371
22372ac_cv_type_unsigned_int=no
22373fi
22374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22375fi
22376echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
22377echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
22378
22379echo "$as_me:$LINENO: checking size of unsigned int" >&5
22380echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
22381if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22382  echo $ECHO_N "(cached) $ECHO_C" >&6
22383else
22384  if test "$ac_cv_type_unsigned_int" = yes; then
22385  # The cast to unsigned long works around a bug in the HP C Compiler
22386  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22387  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22388  # This bug is HP SR number 8606223364.
22389  if test "$cross_compiling" = yes; then
22390  # Depending upon the size, compute the lo and hi bounds.
22391cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h.  */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h.  */
22397$ac_includes_default
22398int
22399main ()
22400{
22401static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
22402test_array [0] = 0
22403
22404  ;
22405  return 0;
22406}
22407_ACEOF
22408rm -f conftest.$ac_objext
22409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22410  (eval $ac_compile) 2>conftest.er1
22411  ac_status=$?
22412  grep -v '^ *+' conftest.er1 >conftest.err
22413  rm -f conftest.er1
22414  cat conftest.err >&5
22415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416  (exit $ac_status); } &&
22417	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419  (eval $ac_try) 2>&5
22420  ac_status=$?
22421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422  (exit $ac_status); }; } &&
22423	 { ac_try='test -s conftest.$ac_objext'
22424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22425  (eval $ac_try) 2>&5
22426  ac_status=$?
22427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428  (exit $ac_status); }; }; then
22429  ac_lo=0 ac_mid=0
22430  while :; do
22431    cat >conftest.$ac_ext <<_ACEOF
22432/* confdefs.h.  */
22433_ACEOF
22434cat confdefs.h >>conftest.$ac_ext
22435cat >>conftest.$ac_ext <<_ACEOF
22436/* end confdefs.h.  */
22437$ac_includes_default
22438int
22439main ()
22440{
22441static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
22442test_array [0] = 0
22443
22444  ;
22445  return 0;
22446}
22447_ACEOF
22448rm -f conftest.$ac_objext
22449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22450  (eval $ac_compile) 2>conftest.er1
22451  ac_status=$?
22452  grep -v '^ *+' conftest.er1 >conftest.err
22453  rm -f conftest.er1
22454  cat conftest.err >&5
22455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456  (exit $ac_status); } &&
22457	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459  (eval $ac_try) 2>&5
22460  ac_status=$?
22461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462  (exit $ac_status); }; } &&
22463	 { ac_try='test -s conftest.$ac_objext'
22464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465  (eval $ac_try) 2>&5
22466  ac_status=$?
22467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468  (exit $ac_status); }; }; then
22469  ac_hi=$ac_mid; break
22470else
22471  echo "$as_me: failed program was:" >&5
22472sed 's/^/| /' conftest.$ac_ext >&5
22473
22474ac_lo=`expr $ac_mid + 1`
22475		    if test $ac_lo -le $ac_mid; then
22476		      ac_lo= ac_hi=
22477		      break
22478		    fi
22479		    ac_mid=`expr 2 '*' $ac_mid + 1`
22480fi
22481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22482  done
22483else
22484  echo "$as_me: failed program was:" >&5
22485sed 's/^/| /' conftest.$ac_ext >&5
22486
22487cat >conftest.$ac_ext <<_ACEOF
22488/* confdefs.h.  */
22489_ACEOF
22490cat confdefs.h >>conftest.$ac_ext
22491cat >>conftest.$ac_ext <<_ACEOF
22492/* end confdefs.h.  */
22493$ac_includes_default
22494int
22495main ()
22496{
22497static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
22498test_array [0] = 0
22499
22500  ;
22501  return 0;
22502}
22503_ACEOF
22504rm -f conftest.$ac_objext
22505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22506  (eval $ac_compile) 2>conftest.er1
22507  ac_status=$?
22508  grep -v '^ *+' conftest.er1 >conftest.err
22509  rm -f conftest.er1
22510  cat conftest.err >&5
22511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512  (exit $ac_status); } &&
22513	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515  (eval $ac_try) 2>&5
22516  ac_status=$?
22517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518  (exit $ac_status); }; } &&
22519	 { ac_try='test -s conftest.$ac_objext'
22520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521  (eval $ac_try) 2>&5
22522  ac_status=$?
22523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524  (exit $ac_status); }; }; then
22525  ac_hi=-1 ac_mid=-1
22526  while :; do
22527    cat >conftest.$ac_ext <<_ACEOF
22528/* confdefs.h.  */
22529_ACEOF
22530cat confdefs.h >>conftest.$ac_ext
22531cat >>conftest.$ac_ext <<_ACEOF
22532/* end confdefs.h.  */
22533$ac_includes_default
22534int
22535main ()
22536{
22537static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
22538test_array [0] = 0
22539
22540  ;
22541  return 0;
22542}
22543_ACEOF
22544rm -f conftest.$ac_objext
22545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546  (eval $ac_compile) 2>conftest.er1
22547  ac_status=$?
22548  grep -v '^ *+' conftest.er1 >conftest.err
22549  rm -f conftest.er1
22550  cat conftest.err >&5
22551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552  (exit $ac_status); } &&
22553	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555  (eval $ac_try) 2>&5
22556  ac_status=$?
22557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558  (exit $ac_status); }; } &&
22559	 { ac_try='test -s conftest.$ac_objext'
22560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561  (eval $ac_try) 2>&5
22562  ac_status=$?
22563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564  (exit $ac_status); }; }; then
22565  ac_lo=$ac_mid; break
22566else
22567  echo "$as_me: failed program was:" >&5
22568sed 's/^/| /' conftest.$ac_ext >&5
22569
22570ac_hi=`expr '(' $ac_mid ')' - 1`
22571		       if test $ac_mid -le $ac_hi; then
22572			 ac_lo= ac_hi=
22573			 break
22574		       fi
22575		       ac_mid=`expr 2 '*' $ac_mid`
22576fi
22577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22578  done
22579else
22580  echo "$as_me: failed program was:" >&5
22581sed 's/^/| /' conftest.$ac_ext >&5
22582
22583ac_lo= ac_hi=
22584fi
22585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22586fi
22587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22588# Binary search between lo and hi bounds.
22589while test "x$ac_lo" != "x$ac_hi"; do
22590  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22591  cat >conftest.$ac_ext <<_ACEOF
22592/* confdefs.h.  */
22593_ACEOF
22594cat confdefs.h >>conftest.$ac_ext
22595cat >>conftest.$ac_ext <<_ACEOF
22596/* end confdefs.h.  */
22597$ac_includes_default
22598int
22599main ()
22600{
22601static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
22602test_array [0] = 0
22603
22604  ;
22605  return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext
22609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610  (eval $ac_compile) 2>conftest.er1
22611  ac_status=$?
22612  grep -v '^ *+' conftest.er1 >conftest.err
22613  rm -f conftest.er1
22614  cat conftest.err >&5
22615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616  (exit $ac_status); } &&
22617	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
22618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619  (eval $ac_try) 2>&5
22620  ac_status=$?
22621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622  (exit $ac_status); }; } &&
22623	 { ac_try='test -s conftest.$ac_objext'
22624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625  (eval $ac_try) 2>&5
22626  ac_status=$?
22627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628  (exit $ac_status); }; }; then
22629  ac_hi=$ac_mid
22630else
22631  echo "$as_me: failed program was:" >&5
22632sed 's/^/| /' conftest.$ac_ext >&5
22633
22634ac_lo=`expr '(' $ac_mid ')' + 1`
22635fi
22636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22637done
22638case $ac_lo in
22639?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
22640'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
22641See \`config.log' for more details." >&5
22642echo "$as_me: error: cannot compute sizeof (unsigned int), 77
22643See \`config.log' for more details." >&2;}
22644   { (exit 1); exit 1; }; } ;;
22645esac
22646else
22647  if test "$cross_compiling" = yes; then
22648  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22649echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22650   { (exit 1); exit 1; }; }
22651else
22652  cat >conftest.$ac_ext <<_ACEOF
22653/* confdefs.h.  */
22654_ACEOF
22655cat confdefs.h >>conftest.$ac_ext
22656cat >>conftest.$ac_ext <<_ACEOF
22657/* end confdefs.h.  */
22658$ac_includes_default
22659long longval () { return (long) (sizeof (unsigned int)); }
22660unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
22661#include <stdio.h>
22662#include <stdlib.h>
22663int
22664main ()
22665{
22666
22667  FILE *f = fopen ("conftest.val", "w");
22668  if (! f)
22669    exit (1);
22670  if (((long) (sizeof (unsigned int))) < 0)
22671    {
22672      long i = longval ();
22673      if (i != ((long) (sizeof (unsigned int))))
22674	exit (1);
22675      fprintf (f, "%ld\n", i);
22676    }
22677  else
22678    {
22679      unsigned long i = ulongval ();
22680      if (i != ((long) (sizeof (unsigned int))))
22681	exit (1);
22682      fprintf (f, "%lu\n", i);
22683    }
22684  exit (ferror (f) || fclose (f) != 0);
22685
22686  ;
22687  return 0;
22688}
22689_ACEOF
22690rm -f conftest$ac_exeext
22691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22692  (eval $ac_link) 2>&5
22693  ac_status=$?
22694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22697  (eval $ac_try) 2>&5
22698  ac_status=$?
22699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700  (exit $ac_status); }; }; then
22701  ac_cv_sizeof_unsigned_int=`cat conftest.val`
22702else
22703  echo "$as_me: program exited with status $ac_status" >&5
22704echo "$as_me: failed program was:" >&5
22705sed 's/^/| /' conftest.$ac_ext >&5
22706
22707( exit $ac_status )
22708{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
22709See \`config.log' for more details." >&5
22710echo "$as_me: error: cannot compute sizeof (unsigned int), 77
22711See \`config.log' for more details." >&2;}
22712   { (exit 1); exit 1; }; }
22713fi
22714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22715fi
22716fi
22717rm -f conftest.val
22718else
22719  ac_cv_sizeof_unsigned_int=0
22720fi
22721fi
22722echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22723echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22724cat >>confdefs.h <<_ACEOF
22725#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22726_ACEOF
22727
22728
22729
22730GSM_VERSION="1:4:0"
22731
22732
22733LINGUAS="de"
22734ALL_LINGUAS=$LINGUAS
22735
22736
22737        MKINSTALLDIRS=
22738  if test -n "$ac_aux_dir"; then
22739    case "$ac_aux_dir" in
22740      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
22741      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
22742    esac
22743  fi
22744  if test -z "$MKINSTALLDIRS"; then
22745    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
22746  fi
22747
22748
22749
22750  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22751echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
22752    # Check whether --enable-nls or --disable-nls was given.
22753if test "${enable_nls+set}" = set; then
22754  enableval="$enable_nls"
22755  USE_NLS=$enableval
22756else
22757  USE_NLS=yes
22758fi;
22759  echo "$as_me:$LINENO: result: $USE_NLS" >&5
22760echo "${ECHO_T}$USE_NLS" >&6
22761
22762
22763
22764
22765
22766
22767# Prepare PATH_SEPARATOR.
22768# The user is always right.
22769if test "${PATH_SEPARATOR+set}" != set; then
22770  echo "#! /bin/sh" >conf$$.sh
22771  echo  "exit 0"   >>conf$$.sh
22772  chmod +x conf$$.sh
22773  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22774    PATH_SEPARATOR=';'
22775  else
22776    PATH_SEPARATOR=:
22777  fi
22778  rm -f conf$$.sh
22779fi
22780
22781# Find out how to test for executable files. Don't use a zero-byte file,
22782# as systems may use methods other than mode bits to determine executability.
22783cat >conf$$.file <<_ASEOF
22784#! /bin/sh
22785exit 0
22786_ASEOF
22787chmod +x conf$$.file
22788if test -x conf$$.file >/dev/null 2>&1; then
22789  ac_executable_p="test -x"
22790else
22791  ac_executable_p="test -f"
22792fi
22793rm -f conf$$.file
22794
22795# Extract the first word of "msgfmt", so it can be a program name with args.
22796set dummy msgfmt; ac_word=$2
22797echo "$as_me:$LINENO: checking for $ac_word" >&5
22798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22799if test "${ac_cv_path_MSGFMT+set}" = set; then
22800  echo $ECHO_N "(cached) $ECHO_C" >&6
22801else
22802  case "$MSGFMT" in
22803  [\\/]* | ?:[\\/]*)
22804    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22805    ;;
22806  *)
22807    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22808    for ac_dir in $PATH; do
22809      IFS="$ac_save_IFS"
22810      test -z "$ac_dir" && ac_dir=.
22811      for ac_exec_ext in '' $ac_executable_extensions; do
22812        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22813          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22814          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
22815     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22816            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22817            break 2
22818          fi
22819        fi
22820      done
22821    done
22822    IFS="$ac_save_IFS"
22823  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22824    ;;
22825esac
22826fi
22827MSGFMT="$ac_cv_path_MSGFMT"
22828if test "$MSGFMT" != ":"; then
22829  echo "$as_me:$LINENO: result: $MSGFMT" >&5
22830echo "${ECHO_T}$MSGFMT" >&6
22831else
22832  echo "$as_me:$LINENO: result: no" >&5
22833echo "${ECHO_T}no" >&6
22834fi
22835
22836  # Extract the first word of "gmsgfmt", so it can be a program name with args.
22837set dummy gmsgfmt; ac_word=$2
22838echo "$as_me:$LINENO: checking for $ac_word" >&5
22839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22840if test "${ac_cv_path_GMSGFMT+set}" = set; then
22841  echo $ECHO_N "(cached) $ECHO_C" >&6
22842else
22843  case $GMSGFMT in
22844  [\\/]* | ?:[\\/]*)
22845  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22846  ;;
22847  *)
22848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22849for as_dir in $PATH
22850do
22851  IFS=$as_save_IFS
22852  test -z "$as_dir" && as_dir=.
22853  for ac_exec_ext in '' $ac_executable_extensions; do
22854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22855    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22857    break 2
22858  fi
22859done
22860done
22861
22862  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22863  ;;
22864esac
22865fi
22866GMSGFMT=$ac_cv_path_GMSGFMT
22867
22868if test -n "$GMSGFMT"; then
22869  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22870echo "${ECHO_T}$GMSGFMT" >&6
22871else
22872  echo "$as_me:$LINENO: result: no" >&5
22873echo "${ECHO_T}no" >&6
22874fi
22875
22876
22877
22878# Prepare PATH_SEPARATOR.
22879# The user is always right.
22880if test "${PATH_SEPARATOR+set}" != set; then
22881  echo "#! /bin/sh" >conf$$.sh
22882  echo  "exit 0"   >>conf$$.sh
22883  chmod +x conf$$.sh
22884  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22885    PATH_SEPARATOR=';'
22886  else
22887    PATH_SEPARATOR=:
22888  fi
22889  rm -f conf$$.sh
22890fi
22891
22892# Find out how to test for executable files. Don't use a zero-byte file,
22893# as systems may use methods other than mode bits to determine executability.
22894cat >conf$$.file <<_ASEOF
22895#! /bin/sh
22896exit 0
22897_ASEOF
22898chmod +x conf$$.file
22899if test -x conf$$.file >/dev/null 2>&1; then
22900  ac_executable_p="test -x"
22901else
22902  ac_executable_p="test -f"
22903fi
22904rm -f conf$$.file
22905
22906# Extract the first word of "xgettext", so it can be a program name with args.
22907set dummy xgettext; ac_word=$2
22908echo "$as_me:$LINENO: checking for $ac_word" >&5
22909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22910if test "${ac_cv_path_XGETTEXT+set}" = set; then
22911  echo $ECHO_N "(cached) $ECHO_C" >&6
22912else
22913  case "$XGETTEXT" in
22914  [\\/]* | ?:[\\/]*)
22915    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22916    ;;
22917  *)
22918    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22919    for ac_dir in $PATH; do
22920      IFS="$ac_save_IFS"
22921      test -z "$ac_dir" && ac_dir=.
22922      for ac_exec_ext in '' $ac_executable_extensions; do
22923        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22924          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22925          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
22926     (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
22927            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22928            break 2
22929          fi
22930        fi
22931      done
22932    done
22933    IFS="$ac_save_IFS"
22934  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22935    ;;
22936esac
22937fi
22938XGETTEXT="$ac_cv_path_XGETTEXT"
22939if test "$XGETTEXT" != ":"; then
22940  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22941echo "${ECHO_T}$XGETTEXT" >&6
22942else
22943  echo "$as_me:$LINENO: result: no" >&5
22944echo "${ECHO_T}no" >&6
22945fi
22946
22947    rm -f messages.po
22948
22949
22950# Prepare PATH_SEPARATOR.
22951# The user is always right.
22952if test "${PATH_SEPARATOR+set}" != set; then
22953  echo "#! /bin/sh" >conf$$.sh
22954  echo  "exit 0"   >>conf$$.sh
22955  chmod +x conf$$.sh
22956  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22957    PATH_SEPARATOR=';'
22958  else
22959    PATH_SEPARATOR=:
22960  fi
22961  rm -f conf$$.sh
22962fi
22963
22964# Find out how to test for executable files. Don't use a zero-byte file,
22965# as systems may use methods other than mode bits to determine executability.
22966cat >conf$$.file <<_ASEOF
22967#! /bin/sh
22968exit 0
22969_ASEOF
22970chmod +x conf$$.file
22971if test -x conf$$.file >/dev/null 2>&1; then
22972  ac_executable_p="test -x"
22973else
22974  ac_executable_p="test -f"
22975fi
22976rm -f conf$$.file
22977
22978# Extract the first word of "msgmerge", so it can be a program name with args.
22979set dummy msgmerge; ac_word=$2
22980echo "$as_me:$LINENO: checking for $ac_word" >&5
22981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22982if test "${ac_cv_path_MSGMERGE+set}" = set; then
22983  echo $ECHO_N "(cached) $ECHO_C" >&6
22984else
22985  case "$MSGMERGE" in
22986  [\\/]* | ?:[\\/]*)
22987    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
22988    ;;
22989  *)
22990    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22991    for ac_dir in $PATH; do
22992      IFS="$ac_save_IFS"
22993      test -z "$ac_dir" && ac_dir=.
22994      for ac_exec_ext in '' $ac_executable_extensions; do
22995        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22996          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22997          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
22998            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
22999            break 2
23000          fi
23001        fi
23002      done
23003    done
23004    IFS="$ac_save_IFS"
23005  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
23006    ;;
23007esac
23008fi
23009MSGMERGE="$ac_cv_path_MSGMERGE"
23010if test "$MSGMERGE" != ":"; then
23011  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23012echo "${ECHO_T}$MSGMERGE" >&6
23013else
23014  echo "$as_me:$LINENO: result: no" >&5
23015echo "${ECHO_T}no" >&6
23016fi
23017
23018
23019      if test "$GMSGFMT" != ":"; then
23020            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
23021       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23022      : ;
23023    else
23024      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
23025      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
23026echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
23027      GMSGFMT=":"
23028    fi
23029  fi
23030
23031      if test "$XGETTEXT" != ":"; then
23032            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
23033       (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
23034      : ;
23035    else
23036      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
23037echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
23038      XGETTEXT=":"
23039    fi
23040        rm -f messages.po
23041  fi
23042
23043            ac_config_commands="$ac_config_commands default-1"
23044
23045
23046
23047    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
23048echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
23049if test "${ac_cv_gnu_library_2+set}" = set; then
23050  echo $ECHO_N "(cached) $ECHO_C" >&6
23051else
23052  cat >conftest.$ac_ext <<_ACEOF
23053/* confdefs.h.  */
23054_ACEOF
23055cat confdefs.h >>conftest.$ac_ext
23056cat >>conftest.$ac_ext <<_ACEOF
23057/* end confdefs.h.  */
23058
23059#include <features.h>
23060#ifdef __GNU_LIBRARY__
23061 #if (__GLIBC__ >= 2)
23062  Lucky GNU user
23063 #endif
23064#endif
23065
23066_ACEOF
23067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23068  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
23069  ac_cv_gnu_library_2=yes
23070else
23071  ac_cv_gnu_library_2=no
23072fi
23073rm -f conftest*
23074
23075
23076
23077fi
23078echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
23079echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
23080
23081    GLIBC2="$ac_cv_gnu_library_2"
23082
23083
23084if test -n "$ac_tool_prefix"; then
23085  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
23086set dummy ${ac_tool_prefix}ranlib; ac_word=$2
23087echo "$as_me:$LINENO: checking for $ac_word" >&5
23088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23089if test "${ac_cv_prog_RANLIB+set}" = set; then
23090  echo $ECHO_N "(cached) $ECHO_C" >&6
23091else
23092  if test -n "$RANLIB"; then
23093  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
23094else
23095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23096for as_dir in $PATH
23097do
23098  IFS=$as_save_IFS
23099  test -z "$as_dir" && as_dir=.
23100  for ac_exec_ext in '' $ac_executable_extensions; do
23101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23102    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
23103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23104    break 2
23105  fi
23106done
23107done
23108
23109fi
23110fi
23111RANLIB=$ac_cv_prog_RANLIB
23112if test -n "$RANLIB"; then
23113  echo "$as_me:$LINENO: result: $RANLIB" >&5
23114echo "${ECHO_T}$RANLIB" >&6
23115else
23116  echo "$as_me:$LINENO: result: no" >&5
23117echo "${ECHO_T}no" >&6
23118fi
23119
23120fi
23121if test -z "$ac_cv_prog_RANLIB"; then
23122  ac_ct_RANLIB=$RANLIB
23123  # Extract the first word of "ranlib", so it can be a program name with args.
23124set dummy ranlib; ac_word=$2
23125echo "$as_me:$LINENO: checking for $ac_word" >&5
23126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23127if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
23128  echo $ECHO_N "(cached) $ECHO_C" >&6
23129else
23130  if test -n "$ac_ct_RANLIB"; then
23131  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
23132else
23133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23134for as_dir in $PATH
23135do
23136  IFS=$as_save_IFS
23137  test -z "$as_dir" && as_dir=.
23138  for ac_exec_ext in '' $ac_executable_extensions; do
23139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23140    ac_cv_prog_ac_ct_RANLIB="ranlib"
23141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23142    break 2
23143  fi
23144done
23145done
23146
23147  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
23148fi
23149fi
23150ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
23151if test -n "$ac_ct_RANLIB"; then
23152  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
23153echo "${ECHO_T}$ac_ct_RANLIB" >&6
23154else
23155  echo "$as_me:$LINENO: result: no" >&5
23156echo "${ECHO_T}no" >&6
23157fi
23158
23159  RANLIB=$ac_ct_RANLIB
23160else
23161  RANLIB="$ac_cv_prog_RANLIB"
23162fi
23163
23164echo "$as_me:$LINENO: checking for library containing strerror" >&5
23165echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
23166if test "${ac_cv_search_strerror+set}" = set; then
23167  echo $ECHO_N "(cached) $ECHO_C" >&6
23168else
23169  ac_func_search_save_LIBS=$LIBS
23170ac_cv_search_strerror=no
23171cat >conftest.$ac_ext <<_ACEOF
23172/* confdefs.h.  */
23173_ACEOF
23174cat confdefs.h >>conftest.$ac_ext
23175cat >>conftest.$ac_ext <<_ACEOF
23176/* end confdefs.h.  */
23177
23178/* Override any gcc2 internal prototype to avoid an error.  */
23179#ifdef __cplusplus
23180extern "C"
23181#endif
23182/* We use char because int might match the return type of a gcc2
23183   builtin and then its argument prototype would still apply.  */
23184char strerror ();
23185int
23186main ()
23187{
23188strerror ();
23189  ;
23190  return 0;
23191}
23192_ACEOF
23193rm -f conftest.$ac_objext conftest$ac_exeext
23194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195  (eval $ac_link) 2>conftest.er1
23196  ac_status=$?
23197  grep -v '^ *+' conftest.er1 >conftest.err
23198  rm -f conftest.er1
23199  cat conftest.err >&5
23200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201  (exit $ac_status); } &&
23202	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204  (eval $ac_try) 2>&5
23205  ac_status=$?
23206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207  (exit $ac_status); }; } &&
23208	 { ac_try='test -s conftest$ac_exeext'
23209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210  (eval $ac_try) 2>&5
23211  ac_status=$?
23212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213  (exit $ac_status); }; }; then
23214  ac_cv_search_strerror="none required"
23215else
23216  echo "$as_me: failed program was:" >&5
23217sed 's/^/| /' conftest.$ac_ext >&5
23218
23219fi
23220rm -f conftest.err conftest.$ac_objext \
23221      conftest$ac_exeext conftest.$ac_ext
23222if test "$ac_cv_search_strerror" = no; then
23223  for ac_lib in cposix; do
23224    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23225    cat >conftest.$ac_ext <<_ACEOF
23226/* confdefs.h.  */
23227_ACEOF
23228cat confdefs.h >>conftest.$ac_ext
23229cat >>conftest.$ac_ext <<_ACEOF
23230/* end confdefs.h.  */
23231
23232/* Override any gcc2 internal prototype to avoid an error.  */
23233#ifdef __cplusplus
23234extern "C"
23235#endif
23236/* We use char because int might match the return type of a gcc2
23237   builtin and then its argument prototype would still apply.  */
23238char strerror ();
23239int
23240main ()
23241{
23242strerror ();
23243  ;
23244  return 0;
23245}
23246_ACEOF
23247rm -f conftest.$ac_objext conftest$ac_exeext
23248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249  (eval $ac_link) 2>conftest.er1
23250  ac_status=$?
23251  grep -v '^ *+' conftest.er1 >conftest.err
23252  rm -f conftest.er1
23253  cat conftest.err >&5
23254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255  (exit $ac_status); } &&
23256	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258  (eval $ac_try) 2>&5
23259  ac_status=$?
23260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261  (exit $ac_status); }; } &&
23262	 { ac_try='test -s conftest$ac_exeext'
23263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264  (eval $ac_try) 2>&5
23265  ac_status=$?
23266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267  (exit $ac_status); }; }; then
23268  ac_cv_search_strerror="-l$ac_lib"
23269break
23270else
23271  echo "$as_me: failed program was:" >&5
23272sed 's/^/| /' conftest.$ac_ext >&5
23273
23274fi
23275rm -f conftest.err conftest.$ac_objext \
23276      conftest$ac_exeext conftest.$ac_ext
23277  done
23278fi
23279LIBS=$ac_func_search_save_LIBS
23280fi
23281echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
23282echo "${ECHO_T}$ac_cv_search_strerror" >&6
23283if test "$ac_cv_search_strerror" != no; then
23284  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
23285
23286fi
23287
23288
23289  echo "$as_me:$LINENO: checking for signed" >&5
23290echo $ECHO_N "checking for signed... $ECHO_C" >&6
23291if test "${bh_cv_c_signed+set}" = set; then
23292  echo $ECHO_N "(cached) $ECHO_C" >&6
23293else
23294  cat >conftest.$ac_ext <<_ACEOF
23295/* confdefs.h.  */
23296_ACEOF
23297cat confdefs.h >>conftest.$ac_ext
23298cat >>conftest.$ac_ext <<_ACEOF
23299/* end confdefs.h.  */
23300
23301int
23302main ()
23303{
23304signed char x;
23305  ;
23306  return 0;
23307}
23308_ACEOF
23309rm -f conftest.$ac_objext
23310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311  (eval $ac_compile) 2>conftest.er1
23312  ac_status=$?
23313  grep -v '^ *+' conftest.er1 >conftest.err
23314  rm -f conftest.er1
23315  cat conftest.err >&5
23316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317  (exit $ac_status); } &&
23318	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320  (eval $ac_try) 2>&5
23321  ac_status=$?
23322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323  (exit $ac_status); }; } &&
23324	 { ac_try='test -s conftest.$ac_objext'
23325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326  (eval $ac_try) 2>&5
23327  ac_status=$?
23328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329  (exit $ac_status); }; }; then
23330  bh_cv_c_signed=yes
23331else
23332  echo "$as_me: failed program was:" >&5
23333sed 's/^/| /' conftest.$ac_ext >&5
23334
23335bh_cv_c_signed=no
23336fi
23337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23338fi
23339echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
23340echo "${ECHO_T}$bh_cv_c_signed" >&6
23341  if test $bh_cv_c_signed = no; then
23342
23343cat >>confdefs.h <<\_ACEOF
23344#define signed
23345_ACEOF
23346
23347  fi
23348
23349echo "$as_me:$LINENO: checking for inline" >&5
23350echo $ECHO_N "checking for inline... $ECHO_C" >&6
23351if test "${ac_cv_c_inline+set}" = set; then
23352  echo $ECHO_N "(cached) $ECHO_C" >&6
23353else
23354  ac_cv_c_inline=no
23355for ac_kw in inline __inline__ __inline; do
23356  cat >conftest.$ac_ext <<_ACEOF
23357/* confdefs.h.  */
23358_ACEOF
23359cat confdefs.h >>conftest.$ac_ext
23360cat >>conftest.$ac_ext <<_ACEOF
23361/* end confdefs.h.  */
23362#ifndef __cplusplus
23363typedef int foo_t;
23364static $ac_kw foo_t static_foo () {return 0; }
23365$ac_kw foo_t foo () {return 0; }
23366#endif
23367
23368_ACEOF
23369rm -f conftest.$ac_objext
23370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371  (eval $ac_compile) 2>conftest.er1
23372  ac_status=$?
23373  grep -v '^ *+' conftest.er1 >conftest.err
23374  rm -f conftest.er1
23375  cat conftest.err >&5
23376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377  (exit $ac_status); } &&
23378	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380  (eval $ac_try) 2>&5
23381  ac_status=$?
23382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383  (exit $ac_status); }; } &&
23384	 { ac_try='test -s conftest.$ac_objext'
23385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386  (eval $ac_try) 2>&5
23387  ac_status=$?
23388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389  (exit $ac_status); }; }; then
23390  ac_cv_c_inline=$ac_kw; break
23391else
23392  echo "$as_me: failed program was:" >&5
23393sed 's/^/| /' conftest.$ac_ext >&5
23394
23395fi
23396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23397done
23398
23399fi
23400echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23401echo "${ECHO_T}$ac_cv_c_inline" >&6
23402
23403
23404case $ac_cv_c_inline in
23405  inline | yes) ;;
23406  *)
23407    case $ac_cv_c_inline in
23408      no) ac_val=;;
23409      *) ac_val=$ac_cv_c_inline;;
23410    esac
23411    cat >>confdefs.h <<_ACEOF
23412#ifndef __cplusplus
23413#define inline $ac_val
23414#endif
23415_ACEOF
23416    ;;
23417esac
23418
23419echo "$as_me:$LINENO: checking for off_t" >&5
23420echo $ECHO_N "checking for off_t... $ECHO_C" >&6
23421if test "${ac_cv_type_off_t+set}" = set; then
23422  echo $ECHO_N "(cached) $ECHO_C" >&6
23423else
23424  cat >conftest.$ac_ext <<_ACEOF
23425/* confdefs.h.  */
23426_ACEOF
23427cat confdefs.h >>conftest.$ac_ext
23428cat >>conftest.$ac_ext <<_ACEOF
23429/* end confdefs.h.  */
23430$ac_includes_default
23431int
23432main ()
23433{
23434if ((off_t *) 0)
23435  return 0;
23436if (sizeof (off_t))
23437  return 0;
23438  ;
23439  return 0;
23440}
23441_ACEOF
23442rm -f conftest.$ac_objext
23443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23444  (eval $ac_compile) 2>conftest.er1
23445  ac_status=$?
23446  grep -v '^ *+' conftest.er1 >conftest.err
23447  rm -f conftest.er1
23448  cat conftest.err >&5
23449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450  (exit $ac_status); } &&
23451	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453  (eval $ac_try) 2>&5
23454  ac_status=$?
23455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456  (exit $ac_status); }; } &&
23457	 { ac_try='test -s conftest.$ac_objext'
23458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459  (eval $ac_try) 2>&5
23460  ac_status=$?
23461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462  (exit $ac_status); }; }; then
23463  ac_cv_type_off_t=yes
23464else
23465  echo "$as_me: failed program was:" >&5
23466sed 's/^/| /' conftest.$ac_ext >&5
23467
23468ac_cv_type_off_t=no
23469fi
23470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23471fi
23472echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23473echo "${ECHO_T}$ac_cv_type_off_t" >&6
23474if test $ac_cv_type_off_t = yes; then
23475  :
23476else
23477
23478cat >>confdefs.h <<_ACEOF
23479#define off_t long
23480_ACEOF
23481
23482fi
23483
23484echo "$as_me:$LINENO: checking for size_t" >&5
23485echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23486if test "${ac_cv_type_size_t+set}" = set; then
23487  echo $ECHO_N "(cached) $ECHO_C" >&6
23488else
23489  cat >conftest.$ac_ext <<_ACEOF
23490/* confdefs.h.  */
23491_ACEOF
23492cat confdefs.h >>conftest.$ac_ext
23493cat >>conftest.$ac_ext <<_ACEOF
23494/* end confdefs.h.  */
23495$ac_includes_default
23496int
23497main ()
23498{
23499if ((size_t *) 0)
23500  return 0;
23501if (sizeof (size_t))
23502  return 0;
23503  ;
23504  return 0;
23505}
23506_ACEOF
23507rm -f conftest.$ac_objext
23508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23509  (eval $ac_compile) 2>conftest.er1
23510  ac_status=$?
23511  grep -v '^ *+' conftest.er1 >conftest.err
23512  rm -f conftest.er1
23513  cat conftest.err >&5
23514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515  (exit $ac_status); } &&
23516	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518  (eval $ac_try) 2>&5
23519  ac_status=$?
23520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521  (exit $ac_status); }; } &&
23522	 { ac_try='test -s conftest.$ac_objext'
23523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524  (eval $ac_try) 2>&5
23525  ac_status=$?
23526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527  (exit $ac_status); }; }; then
23528  ac_cv_type_size_t=yes
23529else
23530  echo "$as_me: failed program was:" >&5
23531sed 's/^/| /' conftest.$ac_ext >&5
23532
23533ac_cv_type_size_t=no
23534fi
23535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536fi
23537echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23538echo "${ECHO_T}$ac_cv_type_size_t" >&6
23539if test $ac_cv_type_size_t = yes; then
23540  :
23541else
23542
23543cat >>confdefs.h <<_ACEOF
23544#define size_t unsigned
23545_ACEOF
23546
23547fi
23548
23549
23550  echo "$as_me:$LINENO: checking for long long" >&5
23551echo $ECHO_N "checking for long long... $ECHO_C" >&6
23552if test "${ac_cv_type_long_long+set}" = set; then
23553  echo $ECHO_N "(cached) $ECHO_C" >&6
23554else
23555  cat >conftest.$ac_ext <<_ACEOF
23556/* confdefs.h.  */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h.  */
23561long long ll = 1LL; int i = 63;
23562int
23563main ()
23564{
23565long long llmax = (long long) -1;
23566     return ll << i | ll >> i | llmax / ll | llmax % ll;
23567  ;
23568  return 0;
23569}
23570_ACEOF
23571rm -f conftest.$ac_objext conftest$ac_exeext
23572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573  (eval $ac_link) 2>conftest.er1
23574  ac_status=$?
23575  grep -v '^ *+' conftest.er1 >conftest.err
23576  rm -f conftest.er1
23577  cat conftest.err >&5
23578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579  (exit $ac_status); } &&
23580	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582  (eval $ac_try) 2>&5
23583  ac_status=$?
23584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585  (exit $ac_status); }; } &&
23586	 { ac_try='test -s conftest$ac_exeext'
23587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588  (eval $ac_try) 2>&5
23589  ac_status=$?
23590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591  (exit $ac_status); }; }; then
23592  ac_cv_type_long_long=yes
23593else
23594  echo "$as_me: failed program was:" >&5
23595sed 's/^/| /' conftest.$ac_ext >&5
23596
23597ac_cv_type_long_long=no
23598fi
23599rm -f conftest.err conftest.$ac_objext \
23600      conftest$ac_exeext conftest.$ac_ext
23601fi
23602echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23603echo "${ECHO_T}$ac_cv_type_long_long" >&6
23604  if test $ac_cv_type_long_long = yes; then
23605
23606cat >>confdefs.h <<\_ACEOF
23607#define HAVE_LONG_LONG 1
23608_ACEOF
23609
23610  fi
23611
23612
23613  echo "$as_me:$LINENO: checking for long double" >&5
23614echo $ECHO_N "checking for long double... $ECHO_C" >&6
23615if test "${gt_cv_c_long_double+set}" = set; then
23616  echo $ECHO_N "(cached) $ECHO_C" >&6
23617else
23618  if test "$GCC" = yes; then
23619       gt_cv_c_long_double=yes
23620     else
23621       cat >conftest.$ac_ext <<_ACEOF
23622/* confdefs.h.  */
23623_ACEOF
23624cat confdefs.h >>conftest.$ac_ext
23625cat >>conftest.$ac_ext <<_ACEOF
23626/* end confdefs.h.  */
23627
23628         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
23629         long double foo = 0.0;
23630         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23631         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23632
23633int
23634main ()
23635{
23636
23637  ;
23638  return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext
23642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23643  (eval $ac_compile) 2>conftest.er1
23644  ac_status=$?
23645  grep -v '^ *+' conftest.er1 >conftest.err
23646  rm -f conftest.er1
23647  cat conftest.err >&5
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); } &&
23650	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
23656	 { ac_try='test -s conftest.$ac_objext'
23657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658  (eval $ac_try) 2>&5
23659  ac_status=$?
23660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661  (exit $ac_status); }; }; then
23662  gt_cv_c_long_double=yes
23663else
23664  echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667gt_cv_c_long_double=no
23668fi
23669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23670     fi
23671fi
23672echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
23673echo "${ECHO_T}$gt_cv_c_long_double" >&6
23674  if test $gt_cv_c_long_double = yes; then
23675
23676cat >>confdefs.h <<\_ACEOF
23677#define HAVE_LONG_DOUBLE 1
23678_ACEOF
23679
23680  fi
23681
23682
23683  echo "$as_me:$LINENO: checking for wchar_t" >&5
23684echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
23685if test "${gt_cv_c_wchar_t+set}" = set; then
23686  echo $ECHO_N "(cached) $ECHO_C" >&6
23687else
23688  cat >conftest.$ac_ext <<_ACEOF
23689/* confdefs.h.  */
23690_ACEOF
23691cat confdefs.h >>conftest.$ac_ext
23692cat >>conftest.$ac_ext <<_ACEOF
23693/* end confdefs.h.  */
23694#include <stddef.h>
23695       wchar_t foo = (wchar_t)'\0';
23696int
23697main ()
23698{
23699
23700  ;
23701  return 0;
23702}
23703_ACEOF
23704rm -f conftest.$ac_objext
23705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23706  (eval $ac_compile) 2>conftest.er1
23707  ac_status=$?
23708  grep -v '^ *+' conftest.er1 >conftest.err
23709  rm -f conftest.er1
23710  cat conftest.err >&5
23711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712  (exit $ac_status); } &&
23713	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715  (eval $ac_try) 2>&5
23716  ac_status=$?
23717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718  (exit $ac_status); }; } &&
23719	 { ac_try='test -s conftest.$ac_objext'
23720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721  (eval $ac_try) 2>&5
23722  ac_status=$?
23723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724  (exit $ac_status); }; }; then
23725  gt_cv_c_wchar_t=yes
23726else
23727  echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730gt_cv_c_wchar_t=no
23731fi
23732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23733fi
23734echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
23735echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
23736  if test $gt_cv_c_wchar_t = yes; then
23737
23738cat >>confdefs.h <<\_ACEOF
23739#define HAVE_WCHAR_T 1
23740_ACEOF
23741
23742  fi
23743
23744
23745  echo "$as_me:$LINENO: checking for wint_t" >&5
23746echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
23747if test "${gt_cv_c_wint_t+set}" = set; then
23748  echo $ECHO_N "(cached) $ECHO_C" >&6
23749else
23750  cat >conftest.$ac_ext <<_ACEOF
23751/* confdefs.h.  */
23752_ACEOF
23753cat confdefs.h >>conftest.$ac_ext
23754cat >>conftest.$ac_ext <<_ACEOF
23755/* end confdefs.h.  */
23756#include <wchar.h>
23757       wint_t foo = (wchar_t)'\0';
23758int
23759main ()
23760{
23761
23762  ;
23763  return 0;
23764}
23765_ACEOF
23766rm -f conftest.$ac_objext
23767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768  (eval $ac_compile) 2>conftest.er1
23769  ac_status=$?
23770  grep -v '^ *+' conftest.er1 >conftest.err
23771  rm -f conftest.er1
23772  cat conftest.err >&5
23773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774  (exit $ac_status); } &&
23775	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777  (eval $ac_try) 2>&5
23778  ac_status=$?
23779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780  (exit $ac_status); }; } &&
23781	 { ac_try='test -s conftest.$ac_objext'
23782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783  (eval $ac_try) 2>&5
23784  ac_status=$?
23785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786  (exit $ac_status); }; }; then
23787  gt_cv_c_wint_t=yes
23788else
23789  echo "$as_me: failed program was:" >&5
23790sed 's/^/| /' conftest.$ac_ext >&5
23791
23792gt_cv_c_wint_t=no
23793fi
23794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23795fi
23796echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
23797echo "${ECHO_T}$gt_cv_c_wint_t" >&6
23798  if test $gt_cv_c_wint_t = yes; then
23799
23800cat >>confdefs.h <<\_ACEOF
23801#define HAVE_WINT_T 1
23802_ACEOF
23803
23804  fi
23805
23806
23807  echo "$as_me:$LINENO: checking for inttypes.h" >&5
23808echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
23809if test "${gl_cv_header_inttypes_h+set}" = set; then
23810  echo $ECHO_N "(cached) $ECHO_C" >&6
23811else
23812  cat >conftest.$ac_ext <<_ACEOF
23813/* confdefs.h.  */
23814_ACEOF
23815cat confdefs.h >>conftest.$ac_ext
23816cat >>conftest.$ac_ext <<_ACEOF
23817/* end confdefs.h.  */
23818#include <sys/types.h>
23819#include <inttypes.h>
23820int
23821main ()
23822{
23823uintmax_t i = (uintmax_t) -1;
23824  ;
23825  return 0;
23826}
23827_ACEOF
23828rm -f conftest.$ac_objext
23829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23830  (eval $ac_compile) 2>conftest.er1
23831  ac_status=$?
23832  grep -v '^ *+' conftest.er1 >conftest.err
23833  rm -f conftest.er1
23834  cat conftest.err >&5
23835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836  (exit $ac_status); } &&
23837	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23839  (eval $ac_try) 2>&5
23840  ac_status=$?
23841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842  (exit $ac_status); }; } &&
23843	 { ac_try='test -s conftest.$ac_objext'
23844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23845  (eval $ac_try) 2>&5
23846  ac_status=$?
23847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848  (exit $ac_status); }; }; then
23849  gl_cv_header_inttypes_h=yes
23850else
23851  echo "$as_me: failed program was:" >&5
23852sed 's/^/| /' conftest.$ac_ext >&5
23853
23854gl_cv_header_inttypes_h=no
23855fi
23856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23857fi
23858echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
23859echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
23860  if test $gl_cv_header_inttypes_h = yes; then
23861
23862cat >>confdefs.h <<_ACEOF
23863#define HAVE_INTTYPES_H_WITH_UINTMAX 1
23864_ACEOF
23865
23866  fi
23867
23868
23869  echo "$as_me:$LINENO: checking for stdint.h" >&5
23870echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
23871if test "${gl_cv_header_stdint_h+set}" = set; then
23872  echo $ECHO_N "(cached) $ECHO_C" >&6
23873else
23874  cat >conftest.$ac_ext <<_ACEOF
23875/* confdefs.h.  */
23876_ACEOF
23877cat confdefs.h >>conftest.$ac_ext
23878cat >>conftest.$ac_ext <<_ACEOF
23879/* end confdefs.h.  */
23880#include <sys/types.h>
23881#include <stdint.h>
23882int
23883main ()
23884{
23885uintmax_t i = (uintmax_t) -1;
23886  ;
23887  return 0;
23888}
23889_ACEOF
23890rm -f conftest.$ac_objext
23891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23892  (eval $ac_compile) 2>conftest.er1
23893  ac_status=$?
23894  grep -v '^ *+' conftest.er1 >conftest.err
23895  rm -f conftest.er1
23896  cat conftest.err >&5
23897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898  (exit $ac_status); } &&
23899	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901  (eval $ac_try) 2>&5
23902  ac_status=$?
23903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904  (exit $ac_status); }; } &&
23905	 { ac_try='test -s conftest.$ac_objext'
23906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907  (eval $ac_try) 2>&5
23908  ac_status=$?
23909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910  (exit $ac_status); }; }; then
23911  gl_cv_header_stdint_h=yes
23912else
23913  echo "$as_me: failed program was:" >&5
23914sed 's/^/| /' conftest.$ac_ext >&5
23915
23916gl_cv_header_stdint_h=no
23917fi
23918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23919fi
23920echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23921echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
23922  if test $gl_cv_header_stdint_h = yes; then
23923
23924cat >>confdefs.h <<_ACEOF
23925#define HAVE_STDINT_H_WITH_UINTMAX 1
23926_ACEOF
23927
23928  fi
23929
23930
23931
23932
23933  echo "$as_me:$LINENO: checking for intmax_t" >&5
23934echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23935if test "${gt_cv_c_intmax_t+set}" = set; then
23936  echo $ECHO_N "(cached) $ECHO_C" >&6
23937else
23938  cat >conftest.$ac_ext <<_ACEOF
23939/* confdefs.h.  */
23940_ACEOF
23941cat confdefs.h >>conftest.$ac_ext
23942cat >>conftest.$ac_ext <<_ACEOF
23943/* end confdefs.h.  */
23944
23945#include <stddef.h>
23946#include <stdlib.h>
23947#if HAVE_STDINT_H_WITH_UINTMAX
23948#include <stdint.h>
23949#endif
23950#if HAVE_INTTYPES_H_WITH_UINTMAX
23951#include <inttypes.h>
23952#endif
23953
23954int
23955main ()
23956{
23957intmax_t x = -1;
23958  ;
23959  return 0;
23960}
23961_ACEOF
23962rm -f conftest.$ac_objext
23963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23964  (eval $ac_compile) 2>conftest.er1
23965  ac_status=$?
23966  grep -v '^ *+' conftest.er1 >conftest.err
23967  rm -f conftest.er1
23968  cat conftest.err >&5
23969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970  (exit $ac_status); } &&
23971	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
23972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973  (eval $ac_try) 2>&5
23974  ac_status=$?
23975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976  (exit $ac_status); }; } &&
23977	 { ac_try='test -s conftest.$ac_objext'
23978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23979  (eval $ac_try) 2>&5
23980  ac_status=$?
23981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23982  (exit $ac_status); }; }; then
23983  gt_cv_c_intmax_t=yes
23984else
23985  echo "$as_me: failed program was:" >&5
23986sed 's/^/| /' conftest.$ac_ext >&5
23987
23988gt_cv_c_intmax_t=no
23989fi
23990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23991fi
23992echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
23993echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
23994  if test $gt_cv_c_intmax_t = yes; then
23995
23996cat >>confdefs.h <<\_ACEOF
23997#define HAVE_INTMAX_T 1
23998_ACEOF
23999
24000  fi
24001
24002
24003
24004  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
24005echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
24006if test "${gt_cv_func_printf_posix+set}" = set; then
24007  echo $ECHO_N "(cached) $ECHO_C" >&6
24008else
24009
24010      if test "$cross_compiling" = yes; then
24011
24012        cat >conftest.$ac_ext <<_ACEOF
24013/* confdefs.h.  */
24014_ACEOF
24015cat confdefs.h >>conftest.$ac_ext
24016cat >>conftest.$ac_ext <<_ACEOF
24017/* end confdefs.h.  */
24018
24019#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
24020  notposix
24021#endif
24022
24023_ACEOF
24024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24025  $EGREP "notposix" >/dev/null 2>&1; then
24026  gt_cv_func_printf_posix="guessing no"
24027else
24028  gt_cv_func_printf_posix="guessing yes"
24029fi
24030rm -f conftest*
24031
24032
24033else
24034  cat >conftest.$ac_ext <<_ACEOF
24035/* confdefs.h.  */
24036_ACEOF
24037cat confdefs.h >>conftest.$ac_ext
24038cat >>conftest.$ac_ext <<_ACEOF
24039/* end confdefs.h.  */
24040
24041#include <stdio.h>
24042#include <string.h>
24043/* The string "%2$d %1$d", with dollar characters protected from the shell's
24044   dollar expansion (possibly an autoconf bug).  */
24045static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
24046static char buf[100];
24047int main ()
24048{
24049  sprintf (buf, format, 33, 55);
24050  return (strcmp (buf, "55 33") != 0);
24051}
24052_ACEOF
24053rm -f conftest$ac_exeext
24054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24055  (eval $ac_link) 2>&5
24056  ac_status=$?
24057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060  (eval $ac_try) 2>&5
24061  ac_status=$?
24062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063  (exit $ac_status); }; }; then
24064  gt_cv_func_printf_posix=yes
24065else
24066  echo "$as_me: program exited with status $ac_status" >&5
24067echo "$as_me: failed program was:" >&5
24068sed 's/^/| /' conftest.$ac_ext >&5
24069
24070( exit $ac_status )
24071gt_cv_func_printf_posix=no
24072fi
24073rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24074fi
24075
24076fi
24077echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
24078echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
24079  case $gt_cv_func_printf_posix in
24080    *yes)
24081
24082cat >>confdefs.h <<\_ACEOF
24083#define HAVE_POSIX_PRINTF 1
24084_ACEOF
24085
24086      ;;
24087  esac
24088
24089
24090
24091for ac_header in stdlib.h unistd.h
24092do
24093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24094if eval "test \"\${$as_ac_Header+set}\" = set"; then
24095  echo "$as_me:$LINENO: checking for $ac_header" >&5
24096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24097if eval "test \"\${$as_ac_Header+set}\" = set"; then
24098  echo $ECHO_N "(cached) $ECHO_C" >&6
24099fi
24100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24102else
24103  # Is the header compilable?
24104echo "$as_me:$LINENO: checking $ac_header usability" >&5
24105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24106cat >conftest.$ac_ext <<_ACEOF
24107/* confdefs.h.  */
24108_ACEOF
24109cat confdefs.h >>conftest.$ac_ext
24110cat >>conftest.$ac_ext <<_ACEOF
24111/* end confdefs.h.  */
24112$ac_includes_default
24113#include <$ac_header>
24114_ACEOF
24115rm -f conftest.$ac_objext
24116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24117  (eval $ac_compile) 2>conftest.er1
24118  ac_status=$?
24119  grep -v '^ *+' conftest.er1 >conftest.err
24120  rm -f conftest.er1
24121  cat conftest.err >&5
24122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123  (exit $ac_status); } &&
24124	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126  (eval $ac_try) 2>&5
24127  ac_status=$?
24128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129  (exit $ac_status); }; } &&
24130	 { ac_try='test -s conftest.$ac_objext'
24131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132  (eval $ac_try) 2>&5
24133  ac_status=$?
24134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135  (exit $ac_status); }; }; then
24136  ac_header_compiler=yes
24137else
24138  echo "$as_me: failed program was:" >&5
24139sed 's/^/| /' conftest.$ac_ext >&5
24140
24141ac_header_compiler=no
24142fi
24143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24145echo "${ECHO_T}$ac_header_compiler" >&6
24146
24147# Is the header present?
24148echo "$as_me:$LINENO: checking $ac_header presence" >&5
24149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24150cat >conftest.$ac_ext <<_ACEOF
24151/* confdefs.h.  */
24152_ACEOF
24153cat confdefs.h >>conftest.$ac_ext
24154cat >>conftest.$ac_ext <<_ACEOF
24155/* end confdefs.h.  */
24156#include <$ac_header>
24157_ACEOF
24158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24159  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24160  ac_status=$?
24161  grep -v '^ *+' conftest.er1 >conftest.err
24162  rm -f conftest.er1
24163  cat conftest.err >&5
24164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165  (exit $ac_status); } >/dev/null; then
24166  if test -s conftest.err; then
24167    ac_cpp_err=$ac_c_preproc_warn_flag
24168    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24169  else
24170    ac_cpp_err=
24171  fi
24172else
24173  ac_cpp_err=yes
24174fi
24175if test -z "$ac_cpp_err"; then
24176  ac_header_preproc=yes
24177else
24178  echo "$as_me: failed program was:" >&5
24179sed 's/^/| /' conftest.$ac_ext >&5
24180
24181  ac_header_preproc=no
24182fi
24183rm -f conftest.err conftest.$ac_ext
24184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24185echo "${ECHO_T}$ac_header_preproc" >&6
24186
24187# So?  What about this header?
24188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24189  yes:no: )
24190    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24192    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24194    ac_header_preproc=yes
24195    ;;
24196  no:yes:* )
24197    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24199    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24200echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24201    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24203    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24204echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24207    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24209    (
24210      cat <<\_ASBOX
24211## ------------------------------------------ ##
24212## Report this to the AC_PACKAGE_NAME lists.  ##
24213## ------------------------------------------ ##
24214_ASBOX
24215    ) |
24216      sed "s/^/$as_me: WARNING:     /" >&2
24217    ;;
24218esac
24219echo "$as_me:$LINENO: checking for $ac_header" >&5
24220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24221if eval "test \"\${$as_ac_Header+set}\" = set"; then
24222  echo $ECHO_N "(cached) $ECHO_C" >&6
24223else
24224  eval "$as_ac_Header=\$ac_header_preproc"
24225fi
24226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24228
24229fi
24230if test `eval echo '${'$as_ac_Header'}'` = yes; then
24231  cat >>confdefs.h <<_ACEOF
24232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24233_ACEOF
24234
24235fi
24236
24237done
24238
24239
24240for ac_func in getpagesize
24241do
24242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24243echo "$as_me:$LINENO: checking for $ac_func" >&5
24244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24245if eval "test \"\${$as_ac_var+set}\" = set"; then
24246  echo $ECHO_N "(cached) $ECHO_C" >&6
24247else
24248  cat >conftest.$ac_ext <<_ACEOF
24249/* confdefs.h.  */
24250_ACEOF
24251cat confdefs.h >>conftest.$ac_ext
24252cat >>conftest.$ac_ext <<_ACEOF
24253/* end confdefs.h.  */
24254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24255   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24256#define $ac_func innocuous_$ac_func
24257
24258/* System header to define __stub macros and hopefully few prototypes,
24259    which can conflict with char $ac_func (); below.
24260    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24261    <limits.h> exists even on freestanding compilers.  */
24262
24263#ifdef __STDC__
24264# include <limits.h>
24265#else
24266# include <assert.h>
24267#endif
24268
24269#undef $ac_func
24270
24271/* Override any gcc2 internal prototype to avoid an error.  */
24272#ifdef __cplusplus
24273extern "C"
24274{
24275#endif
24276/* We use char because int might match the return type of a gcc2
24277   builtin and then its argument prototype would still apply.  */
24278char $ac_func ();
24279/* The GNU C library defines this for functions which it implements
24280    to always fail with ENOSYS.  Some functions are actually named
24281    something starting with __ and the normal name is an alias.  */
24282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24283choke me
24284#else
24285char (*f) () = $ac_func;
24286#endif
24287#ifdef __cplusplus
24288}
24289#endif
24290
24291int
24292main ()
24293{
24294return f != $ac_func;
24295  ;
24296  return 0;
24297}
24298_ACEOF
24299rm -f conftest.$ac_objext conftest$ac_exeext
24300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24301  (eval $ac_link) 2>conftest.er1
24302  ac_status=$?
24303  grep -v '^ *+' conftest.er1 >conftest.err
24304  rm -f conftest.er1
24305  cat conftest.err >&5
24306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307  (exit $ac_status); } &&
24308	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310  (eval $ac_try) 2>&5
24311  ac_status=$?
24312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313  (exit $ac_status); }; } &&
24314	 { ac_try='test -s conftest$ac_exeext'
24315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316  (eval $ac_try) 2>&5
24317  ac_status=$?
24318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319  (exit $ac_status); }; }; then
24320  eval "$as_ac_var=yes"
24321else
24322  echo "$as_me: failed program was:" >&5
24323sed 's/^/| /' conftest.$ac_ext >&5
24324
24325eval "$as_ac_var=no"
24326fi
24327rm -f conftest.err conftest.$ac_objext \
24328      conftest$ac_exeext conftest.$ac_ext
24329fi
24330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24332if test `eval echo '${'$as_ac_var'}'` = yes; then
24333  cat >>confdefs.h <<_ACEOF
24334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24335_ACEOF
24336
24337fi
24338done
24339
24340echo "$as_me:$LINENO: checking for working mmap" >&5
24341echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
24342if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24343  echo $ECHO_N "(cached) $ECHO_C" >&6
24344else
24345  if test "$cross_compiling" = yes; then
24346  ac_cv_func_mmap_fixed_mapped=no
24347else
24348  cat >conftest.$ac_ext <<_ACEOF
24349/* confdefs.h.  */
24350_ACEOF
24351cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF
24353/* end confdefs.h.  */
24354$ac_includes_default
24355/* malloc might have been renamed as rpl_malloc. */
24356#undef malloc
24357
24358/* Thanks to Mike Haertel and Jim Avera for this test.
24359   Here is a matrix of mmap possibilities:
24360	mmap private not fixed
24361	mmap private fixed at somewhere currently unmapped
24362	mmap private fixed at somewhere already mapped
24363	mmap shared not fixed
24364	mmap shared fixed at somewhere currently unmapped
24365	mmap shared fixed at somewhere already mapped
24366   For private mappings, we should verify that changes cannot be read()
24367   back from the file, nor mmap's back from the file at a different
24368   address.  (There have been systems where private was not correctly
24369   implemented like the infamous i386 svr4.0, and systems where the
24370   VM page cache was not coherent with the file system buffer cache
24371   like early versions of FreeBSD and possibly contemporary NetBSD.)
24372   For shared mappings, we should conversely verify that changes get
24373   propagated back to all the places they're supposed to be.
24374
24375   Grep wants private fixed already mapped.
24376   The main things grep needs to know about mmap are:
24377   * does it exist and is it safe to write into the mmap'd area
24378   * how to use it (BSD variants)  */
24379
24380#include <fcntl.h>
24381#include <sys/mman.h>
24382
24383#if !STDC_HEADERS && !HAVE_STDLIB_H
24384char *malloc ();
24385#endif
24386
24387/* This mess was copied from the GNU getpagesize.h.  */
24388#if !HAVE_GETPAGESIZE
24389/* Assume that all systems that can run configure have sys/param.h.  */
24390# if !HAVE_SYS_PARAM_H
24391#  define HAVE_SYS_PARAM_H 1
24392# endif
24393
24394# ifdef _SC_PAGESIZE
24395#  define getpagesize() sysconf(_SC_PAGESIZE)
24396# else /* no _SC_PAGESIZE */
24397#  if HAVE_SYS_PARAM_H
24398#   include <sys/param.h>
24399#   ifdef EXEC_PAGESIZE
24400#    define getpagesize() EXEC_PAGESIZE
24401#   else /* no EXEC_PAGESIZE */
24402#    ifdef NBPG
24403#     define getpagesize() NBPG * CLSIZE
24404#     ifndef CLSIZE
24405#      define CLSIZE 1
24406#     endif /* no CLSIZE */
24407#    else /* no NBPG */
24408#     ifdef NBPC
24409#      define getpagesize() NBPC
24410#     else /* no NBPC */
24411#      ifdef PAGESIZE
24412#       define getpagesize() PAGESIZE
24413#      endif /* PAGESIZE */
24414#     endif /* no NBPC */
24415#    endif /* no NBPG */
24416#   endif /* no EXEC_PAGESIZE */
24417#  else /* no HAVE_SYS_PARAM_H */
24418#   define getpagesize() 8192	/* punt totally */
24419#  endif /* no HAVE_SYS_PARAM_H */
24420# endif /* no _SC_PAGESIZE */
24421
24422#endif /* no HAVE_GETPAGESIZE */
24423
24424int
24425main ()
24426{
24427  char *data, *data2, *data3;
24428  int i, pagesize;
24429  int fd;
24430
24431  pagesize = getpagesize ();
24432
24433  /* First, make a file with some known garbage in it. */
24434  data = (char *) malloc (pagesize);
24435  if (!data)
24436    exit (1);
24437  for (i = 0; i < pagesize; ++i)
24438    *(data + i) = rand ();
24439  umask (0);
24440  fd = creat ("conftest.mmap", 0600);
24441  if (fd < 0)
24442    exit (1);
24443  if (write (fd, data, pagesize) != pagesize)
24444    exit (1);
24445  close (fd);
24446
24447  /* Next, try to mmap the file at a fixed address which already has
24448     something else allocated at it.  If we can, also make sure that
24449     we see the same garbage.  */
24450  fd = open ("conftest.mmap", O_RDWR);
24451  if (fd < 0)
24452    exit (1);
24453  data2 = (char *) malloc (2 * pagesize);
24454  if (!data2)
24455    exit (1);
24456  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
24457  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24458		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24459    exit (1);
24460  for (i = 0; i < pagesize; ++i)
24461    if (*(data + i) != *(data2 + i))
24462      exit (1);
24463
24464  /* Finally, make sure that changes to the mapped area do not
24465     percolate back to the file as seen by read().  (This is a bug on
24466     some variants of i386 svr4.0.)  */
24467  for (i = 0; i < pagesize; ++i)
24468    *(data2 + i) = *(data2 + i) + 1;
24469  data3 = (char *) malloc (pagesize);
24470  if (!data3)
24471    exit (1);
24472  if (read (fd, data3, pagesize) != pagesize)
24473    exit (1);
24474  for (i = 0; i < pagesize; ++i)
24475    if (*(data + i) != *(data3 + i))
24476      exit (1);
24477  close (fd);
24478  exit (0);
24479}
24480_ACEOF
24481rm -f conftest$ac_exeext
24482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24483  (eval $ac_link) 2>&5
24484  ac_status=$?
24485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488  (eval $ac_try) 2>&5
24489  ac_status=$?
24490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491  (exit $ac_status); }; }; then
24492  ac_cv_func_mmap_fixed_mapped=yes
24493else
24494  echo "$as_me: program exited with status $ac_status" >&5
24495echo "$as_me: failed program was:" >&5
24496sed 's/^/| /' conftest.$ac_ext >&5
24497
24498( exit $ac_status )
24499ac_cv_func_mmap_fixed_mapped=no
24500fi
24501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24502fi
24503fi
24504echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24505echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
24506if test $ac_cv_func_mmap_fixed_mapped = yes; then
24507
24508cat >>confdefs.h <<\_ACEOF
24509#define HAVE_MMAP 1
24510_ACEOF
24511
24512fi
24513rm -f conftest.mmap
24514
24515
24516    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
24517echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
24518if test "${ac_cv_gnu_library_2_1+set}" = set; then
24519  echo $ECHO_N "(cached) $ECHO_C" >&6
24520else
24521  cat >conftest.$ac_ext <<_ACEOF
24522/* confdefs.h.  */
24523_ACEOF
24524cat confdefs.h >>conftest.$ac_ext
24525cat >>conftest.$ac_ext <<_ACEOF
24526/* end confdefs.h.  */
24527
24528#include <features.h>
24529#ifdef __GNU_LIBRARY__
24530 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
24531  Lucky GNU user
24532 #endif
24533#endif
24534
24535_ACEOF
24536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24537  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
24538  ac_cv_gnu_library_2_1=yes
24539else
24540  ac_cv_gnu_library_2_1=no
24541fi
24542rm -f conftest*
24543
24544
24545
24546fi
24547echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
24548echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
24549
24550    GLIBC21="$ac_cv_gnu_library_2_1"
24551
24552
24553
24554
24555  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
24556echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
24557if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
24558  echo $ECHO_N "(cached) $ECHO_C" >&6
24559else
24560
24561      if test "$cross_compiling" = yes; then
24562
24563          # Guess based on the CPU.
24564          case "$host_cpu" in
24565            alpha* | i3456786 | m68k | s390*)
24566              gt_cv_int_divbyzero_sigfpe="guessing yes";;
24567            *)
24568              gt_cv_int_divbyzero_sigfpe="guessing no";;
24569          esac
24570
24571else
24572  cat >conftest.$ac_ext <<_ACEOF
24573/* confdefs.h.  */
24574_ACEOF
24575cat confdefs.h >>conftest.$ac_ext
24576cat >>conftest.$ac_ext <<_ACEOF
24577/* end confdefs.h.  */
24578
24579#include <stdlib.h>
24580#include <signal.h>
24581
24582static void
24583#ifdef __cplusplus
24584sigfpe_handler (int sig)
24585#else
24586sigfpe_handler (sig) int sig;
24587#endif
24588{
24589  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
24590  exit (sig != SIGFPE);
24591}
24592
24593int x = 1;
24594int y = 0;
24595int z;
24596int nan;
24597
24598int main ()
24599{
24600  signal (SIGFPE, sigfpe_handler);
24601/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
24602#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
24603  signal (SIGTRAP, sigfpe_handler);
24604#endif
24605/* Linux/SPARC yields signal SIGILL.  */
24606#if defined (__sparc__) && defined (__linux__)
24607  signal (SIGILL, sigfpe_handler);
24608#endif
24609
24610  z = x / y;
24611  nan = y / y;
24612  exit (1);
24613}
24614
24615_ACEOF
24616rm -f conftest$ac_exeext
24617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24618  (eval $ac_link) 2>&5
24619  ac_status=$?
24620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623  (eval $ac_try) 2>&5
24624  ac_status=$?
24625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626  (exit $ac_status); }; }; then
24627  gt_cv_int_divbyzero_sigfpe=yes
24628else
24629  echo "$as_me: program exited with status $ac_status" >&5
24630echo "$as_me: failed program was:" >&5
24631sed 's/^/| /' conftest.$ac_ext >&5
24632
24633( exit $ac_status )
24634gt_cv_int_divbyzero_sigfpe=no
24635fi
24636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24637fi
24638
24639fi
24640echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
24641echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
24642  case "$gt_cv_int_divbyzero_sigfpe" in
24643    *yes) value=1;;
24644    *) value=0;;
24645  esac
24646
24647cat >>confdefs.h <<_ACEOF
24648#define INTDIV0_RAISES_SIGFPE $value
24649_ACEOF
24650
24651
24652
24653  echo "$as_me:$LINENO: checking for unsigned long long" >&5
24654echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
24655if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24656  echo $ECHO_N "(cached) $ECHO_C" >&6
24657else
24658  cat >conftest.$ac_ext <<_ACEOF
24659/* confdefs.h.  */
24660_ACEOF
24661cat confdefs.h >>conftest.$ac_ext
24662cat >>conftest.$ac_ext <<_ACEOF
24663/* end confdefs.h.  */
24664unsigned long long ull = 1ULL; int i = 63;
24665int
24666main ()
24667{
24668unsigned long long ullmax = (unsigned long long) -1;
24669     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
24670  ;
24671  return 0;
24672}
24673_ACEOF
24674rm -f conftest.$ac_objext conftest$ac_exeext
24675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24676  (eval $ac_link) 2>conftest.er1
24677  ac_status=$?
24678  grep -v '^ *+' conftest.er1 >conftest.err
24679  rm -f conftest.er1
24680  cat conftest.err >&5
24681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682  (exit $ac_status); } &&
24683	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24685  (eval $ac_try) 2>&5
24686  ac_status=$?
24687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688  (exit $ac_status); }; } &&
24689	 { ac_try='test -s conftest$ac_exeext'
24690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691  (eval $ac_try) 2>&5
24692  ac_status=$?
24693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694  (exit $ac_status); }; }; then
24695  ac_cv_type_unsigned_long_long=yes
24696else
24697  echo "$as_me: failed program was:" >&5
24698sed 's/^/| /' conftest.$ac_ext >&5
24699
24700ac_cv_type_unsigned_long_long=no
24701fi
24702rm -f conftest.err conftest.$ac_objext \
24703      conftest$ac_exeext conftest.$ac_ext
24704fi
24705echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24706echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
24707  if test $ac_cv_type_unsigned_long_long = yes; then
24708
24709cat >>confdefs.h <<\_ACEOF
24710#define HAVE_UNSIGNED_LONG_LONG 1
24711_ACEOF
24712
24713  fi
24714
24715
24716
24717
24718  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24719
24720    test $ac_cv_type_unsigned_long_long = yes \
24721      && ac_type='unsigned long long' \
24722      || ac_type='unsigned long'
24723
24724cat >>confdefs.h <<_ACEOF
24725#define uintmax_t $ac_type
24726_ACEOF
24727
24728  else
24729
24730cat >>confdefs.h <<\_ACEOF
24731#define HAVE_UINTMAX_T 1
24732_ACEOF
24733
24734  fi
24735
24736
24737  echo "$as_me:$LINENO: checking for inttypes.h" >&5
24738echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
24739if test "${gt_cv_header_inttypes_h+set}" = set; then
24740  echo $ECHO_N "(cached) $ECHO_C" >&6
24741else
24742
24743    cat >conftest.$ac_ext <<_ACEOF
24744/* confdefs.h.  */
24745_ACEOF
24746cat confdefs.h >>conftest.$ac_ext
24747cat >>conftest.$ac_ext <<_ACEOF
24748/* end confdefs.h.  */
24749#include <sys/types.h>
24750#include <inttypes.h>
24751int
24752main ()
24753{
24754
24755  ;
24756  return 0;
24757}
24758_ACEOF
24759rm -f conftest.$ac_objext
24760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24761  (eval $ac_compile) 2>conftest.er1
24762  ac_status=$?
24763  grep -v '^ *+' conftest.er1 >conftest.err
24764  rm -f conftest.er1
24765  cat conftest.err >&5
24766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767  (exit $ac_status); } &&
24768	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24770  (eval $ac_try) 2>&5
24771  ac_status=$?
24772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773  (exit $ac_status); }; } &&
24774	 { ac_try='test -s conftest.$ac_objext'
24775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24776  (eval $ac_try) 2>&5
24777  ac_status=$?
24778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779  (exit $ac_status); }; }; then
24780  gt_cv_header_inttypes_h=yes
24781else
24782  echo "$as_me: failed program was:" >&5
24783sed 's/^/| /' conftest.$ac_ext >&5
24784
24785gt_cv_header_inttypes_h=no
24786fi
24787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24788
24789fi
24790echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
24791echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
24792  if test $gt_cv_header_inttypes_h = yes; then
24793
24794cat >>confdefs.h <<_ACEOF
24795#define HAVE_INTTYPES_H 1
24796_ACEOF
24797
24798  fi
24799
24800
24801
24802  if test $gt_cv_header_inttypes_h = yes; then
24803    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
24804echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
24805if test "${gt_cv_inttypes_pri_broken+set}" = set; then
24806  echo $ECHO_N "(cached) $ECHO_C" >&6
24807else
24808
24809        cat >conftest.$ac_ext <<_ACEOF
24810/* confdefs.h.  */
24811_ACEOF
24812cat confdefs.h >>conftest.$ac_ext
24813cat >>conftest.$ac_ext <<_ACEOF
24814/* end confdefs.h.  */
24815#include <inttypes.h>
24816#ifdef PRId32
24817char *p = PRId32;
24818#endif
24819
24820int
24821main ()
24822{
24823
24824  ;
24825  return 0;
24826}
24827_ACEOF
24828rm -f conftest.$ac_objext
24829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24830  (eval $ac_compile) 2>conftest.er1
24831  ac_status=$?
24832  grep -v '^ *+' conftest.er1 >conftest.err
24833  rm -f conftest.er1
24834  cat conftest.err >&5
24835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836  (exit $ac_status); } &&
24837	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839  (eval $ac_try) 2>&5
24840  ac_status=$?
24841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842  (exit $ac_status); }; } &&
24843	 { ac_try='test -s conftest.$ac_objext'
24844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845  (eval $ac_try) 2>&5
24846  ac_status=$?
24847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848  (exit $ac_status); }; }; then
24849  gt_cv_inttypes_pri_broken=no
24850else
24851  echo "$as_me: failed program was:" >&5
24852sed 's/^/| /' conftest.$ac_ext >&5
24853
24854gt_cv_inttypes_pri_broken=yes
24855fi
24856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24857
24858fi
24859echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
24860echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
24861  fi
24862  if test "$gt_cv_inttypes_pri_broken" = yes; then
24863
24864cat >>confdefs.h <<_ACEOF
24865#define PRI_MACROS_BROKEN 1
24866_ACEOF
24867
24868  fi
24869
24870
24871
24872for ac_header in stdint.h
24873do
24874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24875if eval "test \"\${$as_ac_Header+set}\" = set"; then
24876  echo "$as_me:$LINENO: checking for $ac_header" >&5
24877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24878if eval "test \"\${$as_ac_Header+set}\" = set"; then
24879  echo $ECHO_N "(cached) $ECHO_C" >&6
24880fi
24881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24882echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24883else
24884  # Is the header compilable?
24885echo "$as_me:$LINENO: checking $ac_header usability" >&5
24886echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24887cat >conftest.$ac_ext <<_ACEOF
24888/* confdefs.h.  */
24889_ACEOF
24890cat confdefs.h >>conftest.$ac_ext
24891cat >>conftest.$ac_ext <<_ACEOF
24892/* end confdefs.h.  */
24893$ac_includes_default
24894#include <$ac_header>
24895_ACEOF
24896rm -f conftest.$ac_objext
24897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24898  (eval $ac_compile) 2>conftest.er1
24899  ac_status=$?
24900  grep -v '^ *+' conftest.er1 >conftest.err
24901  rm -f conftest.er1
24902  cat conftest.err >&5
24903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904  (exit $ac_status); } &&
24905	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
24906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907  (eval $ac_try) 2>&5
24908  ac_status=$?
24909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910  (exit $ac_status); }; } &&
24911	 { ac_try='test -s conftest.$ac_objext'
24912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913  (eval $ac_try) 2>&5
24914  ac_status=$?
24915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916  (exit $ac_status); }; }; then
24917  ac_header_compiler=yes
24918else
24919  echo "$as_me: failed program was:" >&5
24920sed 's/^/| /' conftest.$ac_ext >&5
24921
24922ac_header_compiler=no
24923fi
24924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24926echo "${ECHO_T}$ac_header_compiler" >&6
24927
24928# Is the header present?
24929echo "$as_me:$LINENO: checking $ac_header presence" >&5
24930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24931cat >conftest.$ac_ext <<_ACEOF
24932/* confdefs.h.  */
24933_ACEOF
24934cat confdefs.h >>conftest.$ac_ext
24935cat >>conftest.$ac_ext <<_ACEOF
24936/* end confdefs.h.  */
24937#include <$ac_header>
24938_ACEOF
24939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24940  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24941  ac_status=$?
24942  grep -v '^ *+' conftest.er1 >conftest.err
24943  rm -f conftest.er1
24944  cat conftest.err >&5
24945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946  (exit $ac_status); } >/dev/null; then
24947  if test -s conftest.err; then
24948    ac_cpp_err=$ac_c_preproc_warn_flag
24949    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24950  else
24951    ac_cpp_err=
24952  fi
24953else
24954  ac_cpp_err=yes
24955fi
24956if test -z "$ac_cpp_err"; then
24957  ac_header_preproc=yes
24958else
24959  echo "$as_me: failed program was:" >&5
24960sed 's/^/| /' conftest.$ac_ext >&5
24961
24962  ac_header_preproc=no
24963fi
24964rm -f conftest.err conftest.$ac_ext
24965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24966echo "${ECHO_T}$ac_header_preproc" >&6
24967
24968# So?  What about this header?
24969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24970  yes:no: )
24971    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24973    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24975    ac_header_preproc=yes
24976    ;;
24977  no:yes:* )
24978    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24980    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24981echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24982    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24984    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24985echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24986    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24988    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24990    (
24991      cat <<\_ASBOX
24992## ------------------------------------------ ##
24993## Report this to the AC_PACKAGE_NAME lists.  ##
24994## ------------------------------------------ ##
24995_ASBOX
24996    ) |
24997      sed "s/^/$as_me: WARNING:     /" >&2
24998    ;;
24999esac
25000echo "$as_me:$LINENO: checking for $ac_header" >&5
25001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25002if eval "test \"\${$as_ac_Header+set}\" = set"; then
25003  echo $ECHO_N "(cached) $ECHO_C" >&6
25004else
25005  eval "$as_ac_Header=\$ac_header_preproc"
25006fi
25007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25009
25010fi
25011if test `eval echo '${'$as_ac_Header'}'` = yes; then
25012  cat >>confdefs.h <<_ACEOF
25013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25014_ACEOF
25015
25016fi
25017
25018done
25019
25020    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
25021echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
25022  result=
25023  cat >conftest.$ac_ext <<_ACEOF
25024/* confdefs.h.  */
25025_ACEOF
25026cat confdefs.h >>conftest.$ac_ext
25027cat >>conftest.$ac_ext <<_ACEOF
25028/* end confdefs.h.  */
25029
25030#include <limits.h>
25031#if HAVE_STDINT_H
25032#include <stdint.h>
25033#endif
25034#ifdef SIZE_MAX
25035Found it
25036#endif
25037
25038_ACEOF
25039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25040  $EGREP "Found it" >/dev/null 2>&1; then
25041  result=yes
25042fi
25043rm -f conftest*
25044
25045  if test -z "$result"; then
25046                    if test "$cross_compiling" = yes; then
25047  # Depending upon the size, compute the lo and hi bounds.
25048cat >conftest.$ac_ext <<_ACEOF
25049/* confdefs.h.  */
25050_ACEOF
25051cat confdefs.h >>conftest.$ac_ext
25052cat >>conftest.$ac_ext <<_ACEOF
25053/* end confdefs.h.  */
25054#include <stddef.h>
25055int
25056main ()
25057{
25058static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
25059test_array [0] = 0
25060
25061  ;
25062  return 0;
25063}
25064_ACEOF
25065rm -f conftest.$ac_objext
25066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25067  (eval $ac_compile) 2>conftest.er1
25068  ac_status=$?
25069  grep -v '^ *+' conftest.er1 >conftest.err
25070  rm -f conftest.er1
25071  cat conftest.err >&5
25072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073  (exit $ac_status); } &&
25074	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076  (eval $ac_try) 2>&5
25077  ac_status=$?
25078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079  (exit $ac_status); }; } &&
25080	 { ac_try='test -s conftest.$ac_objext'
25081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25082  (eval $ac_try) 2>&5
25083  ac_status=$?
25084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085  (exit $ac_status); }; }; then
25086  ac_lo=0 ac_mid=0
25087  while :; do
25088    cat >conftest.$ac_ext <<_ACEOF
25089/* confdefs.h.  */
25090_ACEOF
25091cat confdefs.h >>conftest.$ac_ext
25092cat >>conftest.$ac_ext <<_ACEOF
25093/* end confdefs.h.  */
25094#include <stddef.h>
25095int
25096main ()
25097{
25098static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
25099test_array [0] = 0
25100
25101  ;
25102  return 0;
25103}
25104_ACEOF
25105rm -f conftest.$ac_objext
25106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25107  (eval $ac_compile) 2>conftest.er1
25108  ac_status=$?
25109  grep -v '^ *+' conftest.er1 >conftest.err
25110  rm -f conftest.er1
25111  cat conftest.err >&5
25112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113  (exit $ac_status); } &&
25114	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116  (eval $ac_try) 2>&5
25117  ac_status=$?
25118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119  (exit $ac_status); }; } &&
25120	 { ac_try='test -s conftest.$ac_objext'
25121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122  (eval $ac_try) 2>&5
25123  ac_status=$?
25124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125  (exit $ac_status); }; }; then
25126  ac_hi=$ac_mid; break
25127else
25128  echo "$as_me: failed program was:" >&5
25129sed 's/^/| /' conftest.$ac_ext >&5
25130
25131ac_lo=`expr $ac_mid + 1`
25132		    if test $ac_lo -le $ac_mid; then
25133		      ac_lo= ac_hi=
25134		      break
25135		    fi
25136		    ac_mid=`expr 2 '*' $ac_mid + 1`
25137fi
25138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25139  done
25140else
25141  echo "$as_me: failed program was:" >&5
25142sed 's/^/| /' conftest.$ac_ext >&5
25143
25144cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h.  */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
25149/* end confdefs.h.  */
25150#include <stddef.h>
25151int
25152main ()
25153{
25154static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
25155test_array [0] = 0
25156
25157  ;
25158  return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext
25162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25163  (eval $ac_compile) 2>conftest.er1
25164  ac_status=$?
25165  grep -v '^ *+' conftest.er1 >conftest.err
25166  rm -f conftest.er1
25167  cat conftest.err >&5
25168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169  (exit $ac_status); } &&
25170	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172  (eval $ac_try) 2>&5
25173  ac_status=$?
25174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175  (exit $ac_status); }; } &&
25176	 { ac_try='test -s conftest.$ac_objext'
25177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178  (eval $ac_try) 2>&5
25179  ac_status=$?
25180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181  (exit $ac_status); }; }; then
25182  ac_hi=-1 ac_mid=-1
25183  while :; do
25184    cat >conftest.$ac_ext <<_ACEOF
25185/* confdefs.h.  */
25186_ACEOF
25187cat confdefs.h >>conftest.$ac_ext
25188cat >>conftest.$ac_ext <<_ACEOF
25189/* end confdefs.h.  */
25190#include <stddef.h>
25191int
25192main ()
25193{
25194static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
25195test_array [0] = 0
25196
25197  ;
25198  return 0;
25199}
25200_ACEOF
25201rm -f conftest.$ac_objext
25202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25203  (eval $ac_compile) 2>conftest.er1
25204  ac_status=$?
25205  grep -v '^ *+' conftest.er1 >conftest.err
25206  rm -f conftest.er1
25207  cat conftest.err >&5
25208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209  (exit $ac_status); } &&
25210	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212  (eval $ac_try) 2>&5
25213  ac_status=$?
25214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215  (exit $ac_status); }; } &&
25216	 { ac_try='test -s conftest.$ac_objext'
25217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218  (eval $ac_try) 2>&5
25219  ac_status=$?
25220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221  (exit $ac_status); }; }; then
25222  ac_lo=$ac_mid; break
25223else
25224  echo "$as_me: failed program was:" >&5
25225sed 's/^/| /' conftest.$ac_ext >&5
25226
25227ac_hi=`expr '(' $ac_mid ')' - 1`
25228		       if test $ac_mid -le $ac_hi; then
25229			 ac_lo= ac_hi=
25230			 break
25231		       fi
25232		       ac_mid=`expr 2 '*' $ac_mid`
25233fi
25234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25235  done
25236else
25237  echo "$as_me: failed program was:" >&5
25238sed 's/^/| /' conftest.$ac_ext >&5
25239
25240ac_lo= ac_hi=
25241fi
25242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25243fi
25244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25245# Binary search between lo and hi bounds.
25246while test "x$ac_lo" != "x$ac_hi"; do
25247  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 <stddef.h>
25255int
25256main ()
25257{
25258static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
25259test_array [0] = 0
25260
25261  ;
25262  return 0;
25263}
25264_ACEOF
25265rm -f conftest.$ac_objext
25266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25267  (eval $ac_compile) 2>conftest.er1
25268  ac_status=$?
25269  grep -v '^ *+' conftest.er1 >conftest.err
25270  rm -f conftest.er1
25271  cat conftest.err >&5
25272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273  (exit $ac_status); } &&
25274	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276  (eval $ac_try) 2>&5
25277  ac_status=$?
25278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279  (exit $ac_status); }; } &&
25280	 { ac_try='test -s conftest.$ac_objext'
25281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282  (eval $ac_try) 2>&5
25283  ac_status=$?
25284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285  (exit $ac_status); }; }; then
25286  ac_hi=$ac_mid
25287else
25288  echo "$as_me: failed program was:" >&5
25289sed 's/^/| /' conftest.$ac_ext >&5
25290
25291ac_lo=`expr '(' $ac_mid ')' + 1`
25292fi
25293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25294done
25295case $ac_lo in
25296?*) res_hi=$ac_lo;;
25297'') result=? ;;
25298esac
25299else
25300  if test "$cross_compiling" = yes; then
25301  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25302echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25303   { (exit 1); exit 1; }; }
25304else
25305  cat >conftest.$ac_ext <<_ACEOF
25306/* confdefs.h.  */
25307_ACEOF
25308cat confdefs.h >>conftest.$ac_ext
25309cat >>conftest.$ac_ext <<_ACEOF
25310/* end confdefs.h.  */
25311#include <stddef.h>
25312long longval () { return ~(size_t)0 / 10; }
25313unsigned long ulongval () { return ~(size_t)0 / 10; }
25314#include <stdio.h>
25315#include <stdlib.h>
25316int
25317main ()
25318{
25319
25320  FILE *f = fopen ("conftest.val", "w");
25321  if (! f)
25322    exit (1);
25323  if ((~(size_t)0 / 10) < 0)
25324    {
25325      long i = longval ();
25326      if (i != (~(size_t)0 / 10))
25327	exit (1);
25328      fprintf (f, "%ld\n", i);
25329    }
25330  else
25331    {
25332      unsigned long i = ulongval ();
25333      if (i != (~(size_t)0 / 10))
25334	exit (1);
25335      fprintf (f, "%lu\n", i);
25336    }
25337  exit (ferror (f) || fclose (f) != 0);
25338
25339  ;
25340  return 0;
25341}
25342_ACEOF
25343rm -f conftest$ac_exeext
25344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25345  (eval $ac_link) 2>&5
25346  ac_status=$?
25347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350  (eval $ac_try) 2>&5
25351  ac_status=$?
25352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353  (exit $ac_status); }; }; then
25354  res_hi=`cat conftest.val`
25355else
25356  echo "$as_me: program exited with status $ac_status" >&5
25357echo "$as_me: failed program was:" >&5
25358sed 's/^/| /' conftest.$ac_ext >&5
25359
25360( exit $ac_status )
25361result=?
25362fi
25363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25364fi
25365fi
25366rm -f conftest.val
25367    if test "$cross_compiling" = yes; then
25368  # Depending upon the size, compute the lo and hi bounds.
25369cat >conftest.$ac_ext <<_ACEOF
25370/* confdefs.h.  */
25371_ACEOF
25372cat confdefs.h >>conftest.$ac_ext
25373cat >>conftest.$ac_ext <<_ACEOF
25374/* end confdefs.h.  */
25375#include <stddef.h>
25376int
25377main ()
25378{
25379static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
25380test_array [0] = 0
25381
25382  ;
25383  return 0;
25384}
25385_ACEOF
25386rm -f conftest.$ac_objext
25387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25388  (eval $ac_compile) 2>conftest.er1
25389  ac_status=$?
25390  grep -v '^ *+' conftest.er1 >conftest.err
25391  rm -f conftest.er1
25392  cat conftest.err >&5
25393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394  (exit $ac_status); } &&
25395	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397  (eval $ac_try) 2>&5
25398  ac_status=$?
25399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400  (exit $ac_status); }; } &&
25401	 { ac_try='test -s conftest.$ac_objext'
25402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403  (eval $ac_try) 2>&5
25404  ac_status=$?
25405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406  (exit $ac_status); }; }; then
25407  ac_lo=0 ac_mid=0
25408  while :; do
25409    cat >conftest.$ac_ext <<_ACEOF
25410/* confdefs.h.  */
25411_ACEOF
25412cat confdefs.h >>conftest.$ac_ext
25413cat >>conftest.$ac_ext <<_ACEOF
25414/* end confdefs.h.  */
25415#include <stddef.h>
25416int
25417main ()
25418{
25419static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
25420test_array [0] = 0
25421
25422  ;
25423  return 0;
25424}
25425_ACEOF
25426rm -f conftest.$ac_objext
25427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25428  (eval $ac_compile) 2>conftest.er1
25429  ac_status=$?
25430  grep -v '^ *+' conftest.er1 >conftest.err
25431  rm -f conftest.er1
25432  cat conftest.err >&5
25433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434  (exit $ac_status); } &&
25435	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437  (eval $ac_try) 2>&5
25438  ac_status=$?
25439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440  (exit $ac_status); }; } &&
25441	 { ac_try='test -s conftest.$ac_objext'
25442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443  (eval $ac_try) 2>&5
25444  ac_status=$?
25445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446  (exit $ac_status); }; }; then
25447  ac_hi=$ac_mid; break
25448else
25449  echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452ac_lo=`expr $ac_mid + 1`
25453		    if test $ac_lo -le $ac_mid; then
25454		      ac_lo= ac_hi=
25455		      break
25456		    fi
25457		    ac_mid=`expr 2 '*' $ac_mid + 1`
25458fi
25459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25460  done
25461else
25462  echo "$as_me: failed program was:" >&5
25463sed 's/^/| /' conftest.$ac_ext >&5
25464
25465cat >conftest.$ac_ext <<_ACEOF
25466/* confdefs.h.  */
25467_ACEOF
25468cat confdefs.h >>conftest.$ac_ext
25469cat >>conftest.$ac_ext <<_ACEOF
25470/* end confdefs.h.  */
25471#include <stddef.h>
25472int
25473main ()
25474{
25475static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
25476test_array [0] = 0
25477
25478  ;
25479  return 0;
25480}
25481_ACEOF
25482rm -f conftest.$ac_objext
25483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25484  (eval $ac_compile) 2>conftest.er1
25485  ac_status=$?
25486  grep -v '^ *+' conftest.er1 >conftest.err
25487  rm -f conftest.er1
25488  cat conftest.err >&5
25489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490  (exit $ac_status); } &&
25491	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
25497	 { ac_try='test -s conftest.$ac_objext'
25498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499  (eval $ac_try) 2>&5
25500  ac_status=$?
25501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502  (exit $ac_status); }; }; then
25503  ac_hi=-1 ac_mid=-1
25504  while :; do
25505    cat >conftest.$ac_ext <<_ACEOF
25506/* confdefs.h.  */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h.  */
25511#include <stddef.h>
25512int
25513main ()
25514{
25515static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
25516test_array [0] = 0
25517
25518  ;
25519  return 0;
25520}
25521_ACEOF
25522rm -f conftest.$ac_objext
25523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25524  (eval $ac_compile) 2>conftest.er1
25525  ac_status=$?
25526  grep -v '^ *+' conftest.er1 >conftest.err
25527  rm -f conftest.er1
25528  cat conftest.err >&5
25529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530  (exit $ac_status); } &&
25531	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533  (eval $ac_try) 2>&5
25534  ac_status=$?
25535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536  (exit $ac_status); }; } &&
25537	 { ac_try='test -s conftest.$ac_objext'
25538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539  (eval $ac_try) 2>&5
25540  ac_status=$?
25541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542  (exit $ac_status); }; }; then
25543  ac_lo=$ac_mid; break
25544else
25545  echo "$as_me: failed program was:" >&5
25546sed 's/^/| /' conftest.$ac_ext >&5
25547
25548ac_hi=`expr '(' $ac_mid ')' - 1`
25549		       if test $ac_mid -le $ac_hi; then
25550			 ac_lo= ac_hi=
25551			 break
25552		       fi
25553		       ac_mid=`expr 2 '*' $ac_mid`
25554fi
25555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25556  done
25557else
25558  echo "$as_me: failed program was:" >&5
25559sed 's/^/| /' conftest.$ac_ext >&5
25560
25561ac_lo= ac_hi=
25562fi
25563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25564fi
25565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25566# Binary search between lo and hi bounds.
25567while test "x$ac_lo" != "x$ac_hi"; do
25568  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25569  cat >conftest.$ac_ext <<_ACEOF
25570/* confdefs.h.  */
25571_ACEOF
25572cat confdefs.h >>conftest.$ac_ext
25573cat >>conftest.$ac_ext <<_ACEOF
25574/* end confdefs.h.  */
25575#include <stddef.h>
25576int
25577main ()
25578{
25579static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
25580test_array [0] = 0
25581
25582  ;
25583  return 0;
25584}
25585_ACEOF
25586rm -f conftest.$ac_objext
25587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25588  (eval $ac_compile) 2>conftest.er1
25589  ac_status=$?
25590  grep -v '^ *+' conftest.er1 >conftest.err
25591  rm -f conftest.er1
25592  cat conftest.err >&5
25593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594  (exit $ac_status); } &&
25595	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597  (eval $ac_try) 2>&5
25598  ac_status=$?
25599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600  (exit $ac_status); }; } &&
25601	 { ac_try='test -s conftest.$ac_objext'
25602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603  (eval $ac_try) 2>&5
25604  ac_status=$?
25605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606  (exit $ac_status); }; }; then
25607  ac_hi=$ac_mid
25608else
25609  echo "$as_me: failed program was:" >&5
25610sed 's/^/| /' conftest.$ac_ext >&5
25611
25612ac_lo=`expr '(' $ac_mid ')' + 1`
25613fi
25614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25615done
25616case $ac_lo in
25617?*) res_lo=$ac_lo;;
25618'') result=? ;;
25619esac
25620else
25621  if test "$cross_compiling" = yes; then
25622  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25623echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25624   { (exit 1); exit 1; }; }
25625else
25626  cat >conftest.$ac_ext <<_ACEOF
25627/* confdefs.h.  */
25628_ACEOF
25629cat confdefs.h >>conftest.$ac_ext
25630cat >>conftest.$ac_ext <<_ACEOF
25631/* end confdefs.h.  */
25632#include <stddef.h>
25633long longval () { return ~(size_t)0 % 10; }
25634unsigned long ulongval () { return ~(size_t)0 % 10; }
25635#include <stdio.h>
25636#include <stdlib.h>
25637int
25638main ()
25639{
25640
25641  FILE *f = fopen ("conftest.val", "w");
25642  if (! f)
25643    exit (1);
25644  if ((~(size_t)0 % 10) < 0)
25645    {
25646      long i = longval ();
25647      if (i != (~(size_t)0 % 10))
25648	exit (1);
25649      fprintf (f, "%ld\n", i);
25650    }
25651  else
25652    {
25653      unsigned long i = ulongval ();
25654      if (i != (~(size_t)0 % 10))
25655	exit (1);
25656      fprintf (f, "%lu\n", i);
25657    }
25658  exit (ferror (f) || fclose (f) != 0);
25659
25660  ;
25661  return 0;
25662}
25663_ACEOF
25664rm -f conftest$ac_exeext
25665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25666  (eval $ac_link) 2>&5
25667  ac_status=$?
25668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671  (eval $ac_try) 2>&5
25672  ac_status=$?
25673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674  (exit $ac_status); }; }; then
25675  res_lo=`cat conftest.val`
25676else
25677  echo "$as_me: program exited with status $ac_status" >&5
25678echo "$as_me: failed program was:" >&5
25679sed 's/^/| /' conftest.$ac_ext >&5
25680
25681( exit $ac_status )
25682result=?
25683fi
25684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25685fi
25686fi
25687rm -f conftest.val
25688    if test "$cross_compiling" = yes; then
25689  # Depending upon the size, compute the lo and hi bounds.
25690cat >conftest.$ac_ext <<_ACEOF
25691/* confdefs.h.  */
25692_ACEOF
25693cat confdefs.h >>conftest.$ac_ext
25694cat >>conftest.$ac_ext <<_ACEOF
25695/* end confdefs.h.  */
25696#include <stddef.h>
25697int
25698main ()
25699{
25700static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
25701test_array [0] = 0
25702
25703  ;
25704  return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext
25708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709  (eval $ac_compile) 2>conftest.er1
25710  ac_status=$?
25711  grep -v '^ *+' conftest.er1 >conftest.err
25712  rm -f conftest.er1
25713  cat conftest.err >&5
25714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715  (exit $ac_status); } &&
25716	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718  (eval $ac_try) 2>&5
25719  ac_status=$?
25720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721  (exit $ac_status); }; } &&
25722	 { ac_try='test -s conftest.$ac_objext'
25723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724  (eval $ac_try) 2>&5
25725  ac_status=$?
25726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727  (exit $ac_status); }; }; then
25728  ac_lo=0 ac_mid=0
25729  while :; do
25730    cat >conftest.$ac_ext <<_ACEOF
25731/* confdefs.h.  */
25732_ACEOF
25733cat confdefs.h >>conftest.$ac_ext
25734cat >>conftest.$ac_ext <<_ACEOF
25735/* end confdefs.h.  */
25736#include <stddef.h>
25737int
25738main ()
25739{
25740static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
25741test_array [0] = 0
25742
25743  ;
25744  return 0;
25745}
25746_ACEOF
25747rm -f conftest.$ac_objext
25748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25749  (eval $ac_compile) 2>conftest.er1
25750  ac_status=$?
25751  grep -v '^ *+' conftest.er1 >conftest.err
25752  rm -f conftest.er1
25753  cat conftest.err >&5
25754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755  (exit $ac_status); } &&
25756	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758  (eval $ac_try) 2>&5
25759  ac_status=$?
25760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761  (exit $ac_status); }; } &&
25762	 { ac_try='test -s conftest.$ac_objext'
25763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764  (eval $ac_try) 2>&5
25765  ac_status=$?
25766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767  (exit $ac_status); }; }; then
25768  ac_hi=$ac_mid; break
25769else
25770  echo "$as_me: failed program was:" >&5
25771sed 's/^/| /' conftest.$ac_ext >&5
25772
25773ac_lo=`expr $ac_mid + 1`
25774		    if test $ac_lo -le $ac_mid; then
25775		      ac_lo= ac_hi=
25776		      break
25777		    fi
25778		    ac_mid=`expr 2 '*' $ac_mid + 1`
25779fi
25780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25781  done
25782else
25783  echo "$as_me: failed program was:" >&5
25784sed 's/^/| /' conftest.$ac_ext >&5
25785
25786cat >conftest.$ac_ext <<_ACEOF
25787/* confdefs.h.  */
25788_ACEOF
25789cat confdefs.h >>conftest.$ac_ext
25790cat >>conftest.$ac_ext <<_ACEOF
25791/* end confdefs.h.  */
25792#include <stddef.h>
25793int
25794main ()
25795{
25796static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
25797test_array [0] = 0
25798
25799  ;
25800  return 0;
25801}
25802_ACEOF
25803rm -f conftest.$ac_objext
25804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25805  (eval $ac_compile) 2>conftest.er1
25806  ac_status=$?
25807  grep -v '^ *+' conftest.er1 >conftest.err
25808  rm -f conftest.er1
25809  cat conftest.err >&5
25810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811  (exit $ac_status); } &&
25812	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814  (eval $ac_try) 2>&5
25815  ac_status=$?
25816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817  (exit $ac_status); }; } &&
25818	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25824  ac_hi=-1 ac_mid=-1
25825  while :; do
25826    cat >conftest.$ac_ext <<_ACEOF
25827/* confdefs.h.  */
25828_ACEOF
25829cat confdefs.h >>conftest.$ac_ext
25830cat >>conftest.$ac_ext <<_ACEOF
25831/* end confdefs.h.  */
25832#include <stddef.h>
25833int
25834main ()
25835{
25836static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
25837test_array [0] = 0
25838
25839  ;
25840  return 0;
25841}
25842_ACEOF
25843rm -f conftest.$ac_objext
25844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845  (eval $ac_compile) 2>conftest.er1
25846  ac_status=$?
25847  grep -v '^ *+' conftest.er1 >conftest.err
25848  rm -f conftest.er1
25849  cat conftest.err >&5
25850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851  (exit $ac_status); } &&
25852	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854  (eval $ac_try) 2>&5
25855  ac_status=$?
25856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857  (exit $ac_status); }; } &&
25858	 { ac_try='test -s conftest.$ac_objext'
25859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25860  (eval $ac_try) 2>&5
25861  ac_status=$?
25862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863  (exit $ac_status); }; }; then
25864  ac_lo=$ac_mid; break
25865else
25866  echo "$as_me: failed program was:" >&5
25867sed 's/^/| /' conftest.$ac_ext >&5
25868
25869ac_hi=`expr '(' $ac_mid ')' - 1`
25870		       if test $ac_mid -le $ac_hi; then
25871			 ac_lo= ac_hi=
25872			 break
25873		       fi
25874		       ac_mid=`expr 2 '*' $ac_mid`
25875fi
25876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877  done
25878else
25879  echo "$as_me: failed program was:" >&5
25880sed 's/^/| /' conftest.$ac_ext >&5
25881
25882ac_lo= ac_hi=
25883fi
25884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25885fi
25886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887# Binary search between lo and hi bounds.
25888while test "x$ac_lo" != "x$ac_hi"; do
25889  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25890  cat >conftest.$ac_ext <<_ACEOF
25891/* confdefs.h.  */
25892_ACEOF
25893cat confdefs.h >>conftest.$ac_ext
25894cat >>conftest.$ac_ext <<_ACEOF
25895/* end confdefs.h.  */
25896#include <stddef.h>
25897int
25898main ()
25899{
25900static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
25901test_array [0] = 0
25902
25903  ;
25904  return 0;
25905}
25906_ACEOF
25907rm -f conftest.$ac_objext
25908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909  (eval $ac_compile) 2>conftest.er1
25910  ac_status=$?
25911  grep -v '^ *+' conftest.er1 >conftest.err
25912  rm -f conftest.er1
25913  cat conftest.err >&5
25914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915  (exit $ac_status); } &&
25916	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
25917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25918  (eval $ac_try) 2>&5
25919  ac_status=$?
25920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921  (exit $ac_status); }; } &&
25922	 { ac_try='test -s conftest.$ac_objext'
25923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924  (eval $ac_try) 2>&5
25925  ac_status=$?
25926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927  (exit $ac_status); }; }; then
25928  ac_hi=$ac_mid
25929else
25930  echo "$as_me: failed program was:" >&5
25931sed 's/^/| /' conftest.$ac_ext >&5
25932
25933ac_lo=`expr '(' $ac_mid ')' + 1`
25934fi
25935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25936done
25937case $ac_lo in
25938?*) fits_in_uint=$ac_lo;;
25939'') result=? ;;
25940esac
25941else
25942  if test "$cross_compiling" = yes; then
25943  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25944echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25945   { (exit 1); exit 1; }; }
25946else
25947  cat >conftest.$ac_ext <<_ACEOF
25948/* confdefs.h.  */
25949_ACEOF
25950cat confdefs.h >>conftest.$ac_ext
25951cat >>conftest.$ac_ext <<_ACEOF
25952/* end confdefs.h.  */
25953#include <stddef.h>
25954long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
25955unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
25956#include <stdio.h>
25957#include <stdlib.h>
25958int
25959main ()
25960{
25961
25962  FILE *f = fopen ("conftest.val", "w");
25963  if (! f)
25964    exit (1);
25965  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
25966    {
25967      long i = longval ();
25968      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
25969	exit (1);
25970      fprintf (f, "%ld\n", i);
25971    }
25972  else
25973    {
25974      unsigned long i = ulongval ();
25975      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
25976	exit (1);
25977      fprintf (f, "%lu\n", i);
25978    }
25979  exit (ferror (f) || fclose (f) != 0);
25980
25981  ;
25982  return 0;
25983}
25984_ACEOF
25985rm -f conftest$ac_exeext
25986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25987  (eval $ac_link) 2>&5
25988  ac_status=$?
25989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992  (eval $ac_try) 2>&5
25993  ac_status=$?
25994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995  (exit $ac_status); }; }; then
25996  fits_in_uint=`cat conftest.val`
25997else
25998  echo "$as_me: program exited with status $ac_status" >&5
25999echo "$as_me: failed program was:" >&5
26000sed 's/^/| /' conftest.$ac_ext >&5
26001
26002( exit $ac_status )
26003result=?
26004fi
26005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26006fi
26007fi
26008rm -f conftest.val
26009    if test "$fits_in_uint" = 1; then
26010                  cat >conftest.$ac_ext <<_ACEOF
26011/* confdefs.h.  */
26012_ACEOF
26013cat confdefs.h >>conftest.$ac_ext
26014cat >>conftest.$ac_ext <<_ACEOF
26015/* end confdefs.h.  */
26016#include <stddef.h>
26017        extern size_t foo;
26018        extern unsigned long foo;
26019
26020int
26021main ()
26022{
26023
26024  ;
26025  return 0;
26026}
26027_ACEOF
26028rm -f conftest.$ac_objext
26029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26030  (eval $ac_compile) 2>conftest.er1
26031  ac_status=$?
26032  grep -v '^ *+' conftest.er1 >conftest.err
26033  rm -f conftest.er1
26034  cat conftest.err >&5
26035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036  (exit $ac_status); } &&
26037	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039  (eval $ac_try) 2>&5
26040  ac_status=$?
26041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042  (exit $ac_status); }; } &&
26043	 { ac_try='test -s conftest.$ac_objext'
26044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045  (eval $ac_try) 2>&5
26046  ac_status=$?
26047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048  (exit $ac_status); }; }; then
26049  fits_in_uint=0
26050else
26051  echo "$as_me: failed program was:" >&5
26052sed 's/^/| /' conftest.$ac_ext >&5
26053
26054fi
26055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26056    fi
26057    if test -z "$result"; then
26058      if test "$fits_in_uint" = 1; then
26059        result="$res_hi$res_lo"U
26060      else
26061        result="$res_hi$res_lo"UL
26062      fi
26063    else
26064            result='~(size_t)0'
26065    fi
26066  fi
26067  echo "$as_me:$LINENO: result: $result" >&5
26068echo "${ECHO_T}$result" >&6
26069  if test "$result" != yes; then
26070
26071cat >>confdefs.h <<_ACEOF
26072#define SIZE_MAX $result
26073_ACEOF
26074
26075  fi
26076
26077
26078
26079
26080
26081for ac_header in stdint.h
26082do
26083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26084if eval "test \"\${$as_ac_Header+set}\" = set"; then
26085  echo "$as_me:$LINENO: checking for $ac_header" >&5
26086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26087if eval "test \"\${$as_ac_Header+set}\" = set"; then
26088  echo $ECHO_N "(cached) $ECHO_C" >&6
26089fi
26090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26092else
26093  # Is the header compilable?
26094echo "$as_me:$LINENO: checking $ac_header usability" >&5
26095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26096cat >conftest.$ac_ext <<_ACEOF
26097/* confdefs.h.  */
26098_ACEOF
26099cat confdefs.h >>conftest.$ac_ext
26100cat >>conftest.$ac_ext <<_ACEOF
26101/* end confdefs.h.  */
26102$ac_includes_default
26103#include <$ac_header>
26104_ACEOF
26105rm -f conftest.$ac_objext
26106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26107  (eval $ac_compile) 2>conftest.er1
26108  ac_status=$?
26109  grep -v '^ *+' conftest.er1 >conftest.err
26110  rm -f conftest.er1
26111  cat conftest.err >&5
26112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113  (exit $ac_status); } &&
26114	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116  (eval $ac_try) 2>&5
26117  ac_status=$?
26118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119  (exit $ac_status); }; } &&
26120	 { ac_try='test -s conftest.$ac_objext'
26121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122  (eval $ac_try) 2>&5
26123  ac_status=$?
26124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125  (exit $ac_status); }; }; then
26126  ac_header_compiler=yes
26127else
26128  echo "$as_me: failed program was:" >&5
26129sed 's/^/| /' conftest.$ac_ext >&5
26130
26131ac_header_compiler=no
26132fi
26133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26135echo "${ECHO_T}$ac_header_compiler" >&6
26136
26137# Is the header present?
26138echo "$as_me:$LINENO: checking $ac_header presence" >&5
26139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26140cat >conftest.$ac_ext <<_ACEOF
26141/* confdefs.h.  */
26142_ACEOF
26143cat confdefs.h >>conftest.$ac_ext
26144cat >>conftest.$ac_ext <<_ACEOF
26145/* end confdefs.h.  */
26146#include <$ac_header>
26147_ACEOF
26148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26150  ac_status=$?
26151  grep -v '^ *+' conftest.er1 >conftest.err
26152  rm -f conftest.er1
26153  cat conftest.err >&5
26154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155  (exit $ac_status); } >/dev/null; then
26156  if test -s conftest.err; then
26157    ac_cpp_err=$ac_c_preproc_warn_flag
26158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26159  else
26160    ac_cpp_err=
26161  fi
26162else
26163  ac_cpp_err=yes
26164fi
26165if test -z "$ac_cpp_err"; then
26166  ac_header_preproc=yes
26167else
26168  echo "$as_me: failed program was:" >&5
26169sed 's/^/| /' conftest.$ac_ext >&5
26170
26171  ac_header_preproc=no
26172fi
26173rm -f conftest.err conftest.$ac_ext
26174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26175echo "${ECHO_T}$ac_header_preproc" >&6
26176
26177# So?  What about this header?
26178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26179  yes:no: )
26180    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26184    ac_header_preproc=yes
26185    ;;
26186  no:yes:* )
26187    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26189    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26190echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26191    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26193    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26194echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26197    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26199    (
26200      cat <<\_ASBOX
26201## ------------------------------------------ ##
26202## Report this to the AC_PACKAGE_NAME lists.  ##
26203## ------------------------------------------ ##
26204_ASBOX
26205    ) |
26206      sed "s/^/$as_me: WARNING:     /" >&2
26207    ;;
26208esac
26209echo "$as_me:$LINENO: checking for $ac_header" >&5
26210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26211if eval "test \"\${$as_ac_Header+set}\" = set"; then
26212  echo $ECHO_N "(cached) $ECHO_C" >&6
26213else
26214  eval "$as_ac_Header=\$ac_header_preproc"
26215fi
26216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26218
26219fi
26220if test `eval echo '${'$as_ac_Header'}'` = yes; then
26221  cat >>confdefs.h <<_ACEOF
26222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26223_ACEOF
26224
26225fi
26226
26227done
26228
26229
26230
26231    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26232echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
26233if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26234  echo $ECHO_N "(cached) $ECHO_C" >&6
26235else
26236  gt_save_CPPFLAGS="$CPPFLAGS"
26237     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26238     gt_save_LIBS="$LIBS"
26239     LIBS="$LIBS -framework CoreFoundation"
26240     cat >conftest.$ac_ext <<_ACEOF
26241/* confdefs.h.  */
26242_ACEOF
26243cat confdefs.h >>conftest.$ac_ext
26244cat >>conftest.$ac_ext <<_ACEOF
26245/* end confdefs.h.  */
26246#include <CFPreferences.h>
26247int
26248main ()
26249{
26250CFPreferencesCopyAppValue(NULL, NULL)
26251  ;
26252  return 0;
26253}
26254_ACEOF
26255rm -f conftest.$ac_objext conftest$ac_exeext
26256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26257  (eval $ac_link) 2>conftest.er1
26258  ac_status=$?
26259  grep -v '^ *+' conftest.er1 >conftest.err
26260  rm -f conftest.er1
26261  cat conftest.err >&5
26262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263  (exit $ac_status); } &&
26264	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266  (eval $ac_try) 2>&5
26267  ac_status=$?
26268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269  (exit $ac_status); }; } &&
26270	 { ac_try='test -s conftest$ac_exeext'
26271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272  (eval $ac_try) 2>&5
26273  ac_status=$?
26274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275  (exit $ac_status); }; }; then
26276  gt_cv_func_CFPreferencesCopyAppValue=yes
26277else
26278  echo "$as_me: failed program was:" >&5
26279sed 's/^/| /' conftest.$ac_ext >&5
26280
26281gt_cv_func_CFPreferencesCopyAppValue=no
26282fi
26283rm -f conftest.err conftest.$ac_objext \
26284      conftest$ac_exeext conftest.$ac_ext
26285     CPPFLAGS="$gt_save_CPPFLAGS"
26286     LIBS="$gt_save_LIBS"
26287fi
26288echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
26289echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
26290  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
26291
26292cat >>confdefs.h <<\_ACEOF
26293#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
26294_ACEOF
26295
26296  fi
26297    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
26298echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
26299if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
26300  echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302  gt_save_CPPFLAGS="$CPPFLAGS"
26303     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
26304     gt_save_LIBS="$LIBS"
26305     LIBS="$LIBS -framework CoreFoundation"
26306     cat >conftest.$ac_ext <<_ACEOF
26307/* confdefs.h.  */
26308_ACEOF
26309cat confdefs.h >>conftest.$ac_ext
26310cat >>conftest.$ac_ext <<_ACEOF
26311/* end confdefs.h.  */
26312#include <CFLocale.h>
26313int
26314main ()
26315{
26316CFLocaleCopyCurrent();
26317  ;
26318  return 0;
26319}
26320_ACEOF
26321rm -f conftest.$ac_objext conftest$ac_exeext
26322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26323  (eval $ac_link) 2>conftest.er1
26324  ac_status=$?
26325  grep -v '^ *+' conftest.er1 >conftest.err
26326  rm -f conftest.er1
26327  cat conftest.err >&5
26328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329  (exit $ac_status); } &&
26330	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332  (eval $ac_try) 2>&5
26333  ac_status=$?
26334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335  (exit $ac_status); }; } &&
26336	 { ac_try='test -s conftest$ac_exeext'
26337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338  (eval $ac_try) 2>&5
26339  ac_status=$?
26340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341  (exit $ac_status); }; }; then
26342  gt_cv_func_CFLocaleCopyCurrent=yes
26343else
26344  echo "$as_me: failed program was:" >&5
26345sed 's/^/| /' conftest.$ac_ext >&5
26346
26347gt_cv_func_CFLocaleCopyCurrent=no
26348fi
26349rm -f conftest.err conftest.$ac_objext \
26350      conftest$ac_exeext conftest.$ac_ext
26351     CPPFLAGS="$gt_save_CPPFLAGS"
26352     LIBS="$gt_save_LIBS"
26353fi
26354echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
26355echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
26356  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26357
26358cat >>confdefs.h <<\_ACEOF
26359#define HAVE_CFLOCALECOPYCURRENT 1
26360_ACEOF
26361
26362  fi
26363  INTL_MACOSX_LIBS=
26364  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
26365    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
26366  fi
26367
26368
26369
26370      if test "X$prefix" = "XNONE"; then
26371    acl_final_prefix="$ac_default_prefix"
26372  else
26373    acl_final_prefix="$prefix"
26374  fi
26375  if test "X$exec_prefix" = "XNONE"; then
26376    acl_final_exec_prefix='${prefix}'
26377  else
26378    acl_final_exec_prefix="$exec_prefix"
26379  fi
26380  acl_save_prefix="$prefix"
26381  prefix="$acl_final_prefix"
26382  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
26383  prefix="$acl_save_prefix"
26384
26385
26386# Check whether --with-gnu-ld or --without-gnu-ld was given.
26387if test "${with_gnu_ld+set}" = set; then
26388  withval="$with_gnu_ld"
26389  test "$withval" = no || with_gnu_ld=yes
26390else
26391  with_gnu_ld=no
26392fi;
26393# Prepare PATH_SEPARATOR.
26394# The user is always right.
26395if test "${PATH_SEPARATOR+set}" != set; then
26396  echo "#! /bin/sh" >conf$$.sh
26397  echo  "exit 0"   >>conf$$.sh
26398  chmod +x conf$$.sh
26399  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26400    PATH_SEPARATOR=';'
26401  else
26402    PATH_SEPARATOR=:
26403  fi
26404  rm -f conf$$.sh
26405fi
26406ac_prog=ld
26407if test "$GCC" = yes; then
26408  # Check if gcc -print-prog-name=ld gives a path.
26409  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
26410echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
26411  case $host in
26412  *-*-mingw*)
26413    # gcc leaves a trailing carriage return which upsets mingw
26414    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26415  *)
26416    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26417  esac
26418  case $ac_prog in
26419    # Accept absolute paths.
26420    [\\/]* | [A-Za-z]:[\\/]*)
26421      re_direlt='/[^/][^/]*/\.\./'
26422      # Canonicalize the path of ld
26423      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26424      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26425	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26426      done
26427      test -z "$LD" && LD="$ac_prog"
26428      ;;
26429  "")
26430    # If it fails, then pretend we aren't using GCC.
26431    ac_prog=ld
26432    ;;
26433  *)
26434    # If it is relative, then search for the first ld in PATH.
26435    with_gnu_ld=unknown
26436    ;;
26437  esac
26438elif test "$with_gnu_ld" = yes; then
26439  echo "$as_me:$LINENO: checking for GNU ld" >&5
26440echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
26441else
26442  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
26443echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
26444fi
26445if test "${acl_cv_path_LD+set}" = set; then
26446  echo $ECHO_N "(cached) $ECHO_C" >&6
26447else
26448  if test -z "$LD"; then
26449  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26450  for ac_dir in $PATH; do
26451    test -z "$ac_dir" && ac_dir=.
26452    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26453      acl_cv_path_LD="$ac_dir/$ac_prog"
26454      # Check to see if the program is GNU ld.  I'd rather use --version,
26455      # but apparently some GNU ld's only accept -v.
26456      # Break only if it was the GNU/non-GNU ld that we prefer.
26457      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
26458      *GNU* | *'with BFD'*)
26459	test "$with_gnu_ld" != no && break ;;
26460      *)
26461	test "$with_gnu_ld" != yes && break ;;
26462      esac
26463    fi
26464  done
26465  IFS="$ac_save_ifs"
26466else
26467  acl_cv_path_LD="$LD" # Let the user override the test with a path.
26468fi
26469fi
26470
26471LD="$acl_cv_path_LD"
26472if test -n "$LD"; then
26473  echo "$as_me:$LINENO: result: $LD" >&5
26474echo "${ECHO_T}$LD" >&6
26475else
26476  echo "$as_me:$LINENO: result: no" >&5
26477echo "${ECHO_T}no" >&6
26478fi
26479test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
26480echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
26481   { (exit 1); exit 1; }; }
26482echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
26483echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
26484if test "${acl_cv_prog_gnu_ld+set}" = set; then
26485  echo $ECHO_N "(cached) $ECHO_C" >&6
26486else
26487  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26488case `$LD -v 2>&1 </dev/null` in
26489*GNU* | *'with BFD'*)
26490  acl_cv_prog_gnu_ld=yes ;;
26491*)
26492  acl_cv_prog_gnu_ld=no ;;
26493esac
26494fi
26495echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
26496echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
26497with_gnu_ld=$acl_cv_prog_gnu_ld
26498
26499
26500
26501
26502                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
26503echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
26504if test "${acl_cv_rpath+set}" = set; then
26505  echo $ECHO_N "(cached) $ECHO_C" >&6
26506else
26507
26508    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26509    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26510    . ./conftest.sh
26511    rm -f ./conftest.sh
26512    acl_cv_rpath=done
26513
26514fi
26515echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
26516echo "${ECHO_T}$acl_cv_rpath" >&6
26517  wl="$acl_cv_wl"
26518  libext="$acl_cv_libext"
26519  shlibext="$acl_cv_shlibext"
26520  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26521  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26522  hardcode_direct="$acl_cv_hardcode_direct"
26523  hardcode_minus_L="$acl_cv_hardcode_minus_L"
26524    # Check whether --enable-rpath or --disable-rpath was given.
26525if test "${enable_rpath+set}" = set; then
26526  enableval="$enable_rpath"
26527  :
26528else
26529  enable_rpath=yes
26530fi;
26531
26532
26533
26534
26535
26536
26537
26538    use_additional=yes
26539
26540  acl_save_prefix="$prefix"
26541  prefix="$acl_final_prefix"
26542  acl_save_exec_prefix="$exec_prefix"
26543  exec_prefix="$acl_final_exec_prefix"
26544
26545    eval additional_includedir=\"$includedir\"
26546    eval additional_libdir=\"$libdir\"
26547
26548  exec_prefix="$acl_save_exec_prefix"
26549  prefix="$acl_save_prefix"
26550
26551
26552# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26553if test "${with_libiconv_prefix+set}" = set; then
26554  withval="$with_libiconv_prefix"
26555
26556    if test "X$withval" = "Xno"; then
26557      use_additional=no
26558    else
26559      if test "X$withval" = "X"; then
26560
26561  acl_save_prefix="$prefix"
26562  prefix="$acl_final_prefix"
26563  acl_save_exec_prefix="$exec_prefix"
26564  exec_prefix="$acl_final_exec_prefix"
26565
26566          eval additional_includedir=\"$includedir\"
26567          eval additional_libdir=\"$libdir\"
26568
26569  exec_prefix="$acl_save_exec_prefix"
26570  prefix="$acl_save_prefix"
26571
26572      else
26573        additional_includedir="$withval/include"
26574        additional_libdir="$withval/lib"
26575      fi
26576    fi
26577
26578fi;
26579      LIBICONV=
26580  LTLIBICONV=
26581  INCICONV=
26582  rpathdirs=
26583  ltrpathdirs=
26584  names_already_handled=
26585  names_next_round='iconv '
26586  while test -n "$names_next_round"; do
26587    names_this_round="$names_next_round"
26588    names_next_round=
26589    for name in $names_this_round; do
26590      already_handled=
26591      for n in $names_already_handled; do
26592        if test "$n" = "$name"; then
26593          already_handled=yes
26594          break
26595        fi
26596      done
26597      if test -z "$already_handled"; then
26598        names_already_handled="$names_already_handled $name"
26599                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26600        eval value=\"\$HAVE_LIB$uppername\"
26601        if test -n "$value"; then
26602          if test "$value" = yes; then
26603            eval value=\"\$LIB$uppername\"
26604            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26605            eval value=\"\$LTLIB$uppername\"
26606            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26607          else
26608                                    :
26609          fi
26610        else
26611                              found_dir=
26612          found_la=
26613          found_so=
26614          found_a=
26615          if test $use_additional = yes; then
26616            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26617              found_dir="$additional_libdir"
26618              found_so="$additional_libdir/lib$name.$shlibext"
26619              if test -f "$additional_libdir/lib$name.la"; then
26620                found_la="$additional_libdir/lib$name.la"
26621              fi
26622            else
26623              if test -f "$additional_libdir/lib$name.$libext"; then
26624                found_dir="$additional_libdir"
26625                found_a="$additional_libdir/lib$name.$libext"
26626                if test -f "$additional_libdir/lib$name.la"; then
26627                  found_la="$additional_libdir/lib$name.la"
26628                fi
26629              fi
26630            fi
26631          fi
26632          if test "X$found_dir" = "X"; then
26633            for x in $LDFLAGS $LTLIBICONV; do
26634
26635  acl_save_prefix="$prefix"
26636  prefix="$acl_final_prefix"
26637  acl_save_exec_prefix="$exec_prefix"
26638  exec_prefix="$acl_final_exec_prefix"
26639  eval x=\"$x\"
26640  exec_prefix="$acl_save_exec_prefix"
26641  prefix="$acl_save_prefix"
26642
26643              case "$x" in
26644                -L*)
26645                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26646                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26647                    found_dir="$dir"
26648                    found_so="$dir/lib$name.$shlibext"
26649                    if test -f "$dir/lib$name.la"; then
26650                      found_la="$dir/lib$name.la"
26651                    fi
26652                  else
26653                    if test -f "$dir/lib$name.$libext"; then
26654                      found_dir="$dir"
26655                      found_a="$dir/lib$name.$libext"
26656                      if test -f "$dir/lib$name.la"; then
26657                        found_la="$dir/lib$name.la"
26658                      fi
26659                    fi
26660                  fi
26661                  ;;
26662              esac
26663              if test "X$found_dir" != "X"; then
26664                break
26665              fi
26666            done
26667          fi
26668          if test "X$found_dir" != "X"; then
26669                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26670            if test "X$found_so" != "X"; then
26671                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26672                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26673              else
26674                                                                                haveit=
26675                for x in $ltrpathdirs; do
26676                  if test "X$x" = "X$found_dir"; then
26677                    haveit=yes
26678                    break
26679                  fi
26680                done
26681                if test -z "$haveit"; then
26682                  ltrpathdirs="$ltrpathdirs $found_dir"
26683                fi
26684                                if test "$hardcode_direct" = yes; then
26685                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26686                else
26687                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26688                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26689                                                            haveit=
26690                    for x in $rpathdirs; do
26691                      if test "X$x" = "X$found_dir"; then
26692                        haveit=yes
26693                        break
26694                      fi
26695                    done
26696                    if test -z "$haveit"; then
26697                      rpathdirs="$rpathdirs $found_dir"
26698                    fi
26699                  else
26700                                                                                haveit=
26701                    for x in $LDFLAGS $LIBICONV; do
26702
26703  acl_save_prefix="$prefix"
26704  prefix="$acl_final_prefix"
26705  acl_save_exec_prefix="$exec_prefix"
26706  exec_prefix="$acl_final_exec_prefix"
26707  eval x=\"$x\"
26708  exec_prefix="$acl_save_exec_prefix"
26709  prefix="$acl_save_prefix"
26710
26711                      if test "X$x" = "X-L$found_dir"; then
26712                        haveit=yes
26713                        break
26714                      fi
26715                    done
26716                    if test -z "$haveit"; then
26717                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26718                    fi
26719                    if test "$hardcode_minus_L" != no; then
26720                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26721                    else
26722                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26723                    fi
26724                  fi
26725                fi
26726              fi
26727            else
26728              if test "X$found_a" != "X"; then
26729                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26730              else
26731                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26732              fi
26733            fi
26734                        additional_includedir=
26735            case "$found_dir" in
26736              */lib | */lib/)
26737                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26738                additional_includedir="$basedir/include"
26739                ;;
26740            esac
26741            if test "X$additional_includedir" != "X"; then
26742                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26743                haveit=
26744                if test "X$additional_includedir" = "X/usr/local/include"; then
26745                  if test -n "$GCC"; then
26746                    case $host_os in
26747                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26748                    esac
26749                  fi
26750                fi
26751                if test -z "$haveit"; then
26752                  for x in $CPPFLAGS $INCICONV; do
26753
26754  acl_save_prefix="$prefix"
26755  prefix="$acl_final_prefix"
26756  acl_save_exec_prefix="$exec_prefix"
26757  exec_prefix="$acl_final_exec_prefix"
26758  eval x=\"$x\"
26759  exec_prefix="$acl_save_exec_prefix"
26760  prefix="$acl_save_prefix"
26761
26762                    if test "X$x" = "X-I$additional_includedir"; then
26763                      haveit=yes
26764                      break
26765                    fi
26766                  done
26767                  if test -z "$haveit"; then
26768                    if test -d "$additional_includedir"; then
26769                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26770                    fi
26771                  fi
26772                fi
26773              fi
26774            fi
26775                        if test -n "$found_la"; then
26776                                                        save_libdir="$libdir"
26777              case "$found_la" in
26778                */* | *\\*) . "$found_la" ;;
26779                *) . "./$found_la" ;;
26780              esac
26781              libdir="$save_libdir"
26782                            for dep in $dependency_libs; do
26783                case "$dep" in
26784                  -L*)
26785                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26786                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
26787                      haveit=
26788                      if test "X$additional_libdir" = "X/usr/local/lib"; then
26789                        if test -n "$GCC"; then
26790                          case $host_os in
26791                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26792                          esac
26793                        fi
26794                      fi
26795                      if test -z "$haveit"; then
26796                        haveit=
26797                        for x in $LDFLAGS $LIBICONV; do
26798
26799  acl_save_prefix="$prefix"
26800  prefix="$acl_final_prefix"
26801  acl_save_exec_prefix="$exec_prefix"
26802  exec_prefix="$acl_final_exec_prefix"
26803  eval x=\"$x\"
26804  exec_prefix="$acl_save_exec_prefix"
26805  prefix="$acl_save_prefix"
26806
26807                          if test "X$x" = "X-L$additional_libdir"; then
26808                            haveit=yes
26809                            break
26810                          fi
26811                        done
26812                        if test -z "$haveit"; then
26813                          if test -d "$additional_libdir"; then
26814                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26815                          fi
26816                        fi
26817                        haveit=
26818                        for x in $LDFLAGS $LTLIBICONV; do
26819
26820  acl_save_prefix="$prefix"
26821  prefix="$acl_final_prefix"
26822  acl_save_exec_prefix="$exec_prefix"
26823  exec_prefix="$acl_final_exec_prefix"
26824  eval x=\"$x\"
26825  exec_prefix="$acl_save_exec_prefix"
26826  prefix="$acl_save_prefix"
26827
26828                          if test "X$x" = "X-L$additional_libdir"; then
26829                            haveit=yes
26830                            break
26831                          fi
26832                        done
26833                        if test -z "$haveit"; then
26834                          if test -d "$additional_libdir"; then
26835                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26836                          fi
26837                        fi
26838                      fi
26839                    fi
26840                    ;;
26841                  -R*)
26842                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26843                    if test "$enable_rpath" != no; then
26844                                                                  haveit=
26845                      for x in $rpathdirs; do
26846                        if test "X$x" = "X$dir"; then
26847                          haveit=yes
26848                          break
26849                        fi
26850                      done
26851                      if test -z "$haveit"; then
26852                        rpathdirs="$rpathdirs $dir"
26853                      fi
26854                                                                  haveit=
26855                      for x in $ltrpathdirs; do
26856                        if test "X$x" = "X$dir"; then
26857                          haveit=yes
26858                          break
26859                        fi
26860                      done
26861                      if test -z "$haveit"; then
26862                        ltrpathdirs="$ltrpathdirs $dir"
26863                      fi
26864                    fi
26865                    ;;
26866                  -l*)
26867                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26868                    ;;
26869                  *.la)
26870                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26871                    ;;
26872                  *)
26873                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26874                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26875                    ;;
26876                esac
26877              done
26878            fi
26879          else
26880                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26881            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26882          fi
26883        fi
26884      fi
26885    done
26886  done
26887  if test "X$rpathdirs" != "X"; then
26888    if test -n "$hardcode_libdir_separator"; then
26889                        alldirs=
26890      for found_dir in $rpathdirs; do
26891        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26892      done
26893            acl_save_libdir="$libdir"
26894      libdir="$alldirs"
26895      eval flag=\"$hardcode_libdir_flag_spec\"
26896      libdir="$acl_save_libdir"
26897      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26898    else
26899            for found_dir in $rpathdirs; do
26900        acl_save_libdir="$libdir"
26901        libdir="$found_dir"
26902        eval flag=\"$hardcode_libdir_flag_spec\"
26903        libdir="$acl_save_libdir"
26904        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26905      done
26906    fi
26907  fi
26908  if test "X$ltrpathdirs" != "X"; then
26909            for found_dir in $ltrpathdirs; do
26910      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26911    done
26912  fi
26913
26914
26915
26916
26917
26918
26919
26920
26921  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26922echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
26923if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26924  echo $ECHO_N "(cached) $ECHO_C" >&6
26925else
26926  cat >conftest.$ac_ext <<_ACEOF
26927/* confdefs.h.  */
26928_ACEOF
26929cat confdefs.h >>conftest.$ac_ext
26930cat >>conftest.$ac_ext <<_ACEOF
26931/* end confdefs.h.  */
26932$ac_includes_default
26933int
26934main ()
26935{
26936if ((ptrdiff_t *) 0)
26937  return 0;
26938if (sizeof (ptrdiff_t))
26939  return 0;
26940  ;
26941  return 0;
26942}
26943_ACEOF
26944rm -f conftest.$ac_objext
26945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26946  (eval $ac_compile) 2>conftest.er1
26947  ac_status=$?
26948  grep -v '^ *+' conftest.er1 >conftest.err
26949  rm -f conftest.er1
26950  cat conftest.err >&5
26951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952  (exit $ac_status); } &&
26953	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
26954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955  (eval $ac_try) 2>&5
26956  ac_status=$?
26957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958  (exit $ac_status); }; } &&
26959	 { ac_try='test -s conftest.$ac_objext'
26960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961  (eval $ac_try) 2>&5
26962  ac_status=$?
26963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964  (exit $ac_status); }; }; then
26965  ac_cv_type_ptrdiff_t=yes
26966else
26967  echo "$as_me: failed program was:" >&5
26968sed 's/^/| /' conftest.$ac_ext >&5
26969
26970ac_cv_type_ptrdiff_t=no
26971fi
26972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26973fi
26974echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26975echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
26976if test $ac_cv_type_ptrdiff_t = yes; then
26977  :
26978else
26979
26980cat >>confdefs.h <<\_ACEOF
26981#define ptrdiff_t long
26982_ACEOF
26983
26984
26985fi
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
26998stdlib.h string.h unistd.h sys/param.h
26999do
27000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27001if eval "test \"\${$as_ac_Header+set}\" = set"; then
27002  echo "$as_me:$LINENO: checking for $ac_header" >&5
27003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27004if eval "test \"\${$as_ac_Header+set}\" = set"; then
27005  echo $ECHO_N "(cached) $ECHO_C" >&6
27006fi
27007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27009else
27010  # Is the header compilable?
27011echo "$as_me:$LINENO: checking $ac_header usability" >&5
27012echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27013cat >conftest.$ac_ext <<_ACEOF
27014/* confdefs.h.  */
27015_ACEOF
27016cat confdefs.h >>conftest.$ac_ext
27017cat >>conftest.$ac_ext <<_ACEOF
27018/* end confdefs.h.  */
27019$ac_includes_default
27020#include <$ac_header>
27021_ACEOF
27022rm -f conftest.$ac_objext
27023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27024  (eval $ac_compile) 2>conftest.er1
27025  ac_status=$?
27026  grep -v '^ *+' conftest.er1 >conftest.err
27027  rm -f conftest.er1
27028  cat conftest.err >&5
27029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030  (exit $ac_status); } &&
27031	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033  (eval $ac_try) 2>&5
27034  ac_status=$?
27035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036  (exit $ac_status); }; } &&
27037	 { ac_try='test -s conftest.$ac_objext'
27038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039  (eval $ac_try) 2>&5
27040  ac_status=$?
27041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042  (exit $ac_status); }; }; then
27043  ac_header_compiler=yes
27044else
27045  echo "$as_me: failed program was:" >&5
27046sed 's/^/| /' conftest.$ac_ext >&5
27047
27048ac_header_compiler=no
27049fi
27050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27052echo "${ECHO_T}$ac_header_compiler" >&6
27053
27054# Is the header present?
27055echo "$as_me:$LINENO: checking $ac_header presence" >&5
27056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27057cat >conftest.$ac_ext <<_ACEOF
27058/* confdefs.h.  */
27059_ACEOF
27060cat confdefs.h >>conftest.$ac_ext
27061cat >>conftest.$ac_ext <<_ACEOF
27062/* end confdefs.h.  */
27063#include <$ac_header>
27064_ACEOF
27065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27066  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27067  ac_status=$?
27068  grep -v '^ *+' conftest.er1 >conftest.err
27069  rm -f conftest.er1
27070  cat conftest.err >&5
27071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072  (exit $ac_status); } >/dev/null; then
27073  if test -s conftest.err; then
27074    ac_cpp_err=$ac_c_preproc_warn_flag
27075    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27076  else
27077    ac_cpp_err=
27078  fi
27079else
27080  ac_cpp_err=yes
27081fi
27082if test -z "$ac_cpp_err"; then
27083  ac_header_preproc=yes
27084else
27085  echo "$as_me: failed program was:" >&5
27086sed 's/^/| /' conftest.$ac_ext >&5
27087
27088  ac_header_preproc=no
27089fi
27090rm -f conftest.err conftest.$ac_ext
27091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27092echo "${ECHO_T}$ac_header_preproc" >&6
27093
27094# So?  What about this header?
27095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27096  yes:no: )
27097    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27099    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27101    ac_header_preproc=yes
27102    ;;
27103  no:yes:* )
27104    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27106    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27107echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27108    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27110    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27111echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27112    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27114    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27116    (
27117      cat <<\_ASBOX
27118## ------------------------------------------ ##
27119## Report this to the AC_PACKAGE_NAME lists.  ##
27120## ------------------------------------------ ##
27121_ASBOX
27122    ) |
27123      sed "s/^/$as_me: WARNING:     /" >&2
27124    ;;
27125esac
27126echo "$as_me:$LINENO: checking for $ac_header" >&5
27127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27128if eval "test \"\${$as_ac_Header+set}\" = set"; then
27129  echo $ECHO_N "(cached) $ECHO_C" >&6
27130else
27131  eval "$as_ac_Header=\$ac_header_preproc"
27132fi
27133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27135
27136fi
27137if test `eval echo '${'$as_ac_Header'}'` = yes; then
27138  cat >>confdefs.h <<_ACEOF
27139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27140_ACEOF
27141
27142fi
27143
27144done
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
27170mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
27171strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
27172__fsetlocking
27173do
27174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27175echo "$as_me:$LINENO: checking for $ac_func" >&5
27176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27177if eval "test \"\${$as_ac_var+set}\" = set"; then
27178  echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180  cat >conftest.$ac_ext <<_ACEOF
27181/* confdefs.h.  */
27182_ACEOF
27183cat confdefs.h >>conftest.$ac_ext
27184cat >>conftest.$ac_ext <<_ACEOF
27185/* end confdefs.h.  */
27186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27188#define $ac_func innocuous_$ac_func
27189
27190/* System header to define __stub macros and hopefully few prototypes,
27191    which can conflict with char $ac_func (); below.
27192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27193    <limits.h> exists even on freestanding compilers.  */
27194
27195#ifdef __STDC__
27196# include <limits.h>
27197#else
27198# include <assert.h>
27199#endif
27200
27201#undef $ac_func
27202
27203/* Override any gcc2 internal prototype to avoid an error.  */
27204#ifdef __cplusplus
27205extern "C"
27206{
27207#endif
27208/* We use char because int might match the return type of a gcc2
27209   builtin and then its argument prototype would still apply.  */
27210char $ac_func ();
27211/* The GNU C library defines this for functions which it implements
27212    to always fail with ENOSYS.  Some functions are actually named
27213    something starting with __ and the normal name is an alias.  */
27214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27215choke me
27216#else
27217char (*f) () = $ac_func;
27218#endif
27219#ifdef __cplusplus
27220}
27221#endif
27222
27223int
27224main ()
27225{
27226return f != $ac_func;
27227  ;
27228  return 0;
27229}
27230_ACEOF
27231rm -f conftest.$ac_objext conftest$ac_exeext
27232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27233  (eval $ac_link) 2>conftest.er1
27234  ac_status=$?
27235  grep -v '^ *+' conftest.er1 >conftest.err
27236  rm -f conftest.er1
27237  cat conftest.err >&5
27238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239  (exit $ac_status); } &&
27240	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242  (eval $ac_try) 2>&5
27243  ac_status=$?
27244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245  (exit $ac_status); }; } &&
27246	 { ac_try='test -s conftest$ac_exeext'
27247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248  (eval $ac_try) 2>&5
27249  ac_status=$?
27250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251  (exit $ac_status); }; }; then
27252  eval "$as_ac_var=yes"
27253else
27254  echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
27257eval "$as_ac_var=no"
27258fi
27259rm -f conftest.err conftest.$ac_objext \
27260      conftest$ac_exeext conftest.$ac_ext
27261fi
27262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27264if test `eval echo '${'$as_ac_var'}'` = yes; then
27265  cat >>confdefs.h <<_ACEOF
27266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27267_ACEOF
27268
27269fi
27270done
27271
27272
27273
27274  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
27275echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
27276if test "${ac_cv_have_decl__snprintf+set}" = set; then
27277  echo $ECHO_N "(cached) $ECHO_C" >&6
27278else
27279  cat >conftest.$ac_ext <<_ACEOF
27280/* confdefs.h.  */
27281_ACEOF
27282cat confdefs.h >>conftest.$ac_ext
27283cat >>conftest.$ac_ext <<_ACEOF
27284/* end confdefs.h.  */
27285#include <stdio.h>
27286int
27287main ()
27288{
27289
27290#ifndef _snprintf
27291  char *p = (char *) _snprintf;
27292#endif
27293
27294  ;
27295  return 0;
27296}
27297_ACEOF
27298rm -f conftest.$ac_objext
27299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27300  (eval $ac_compile) 2>conftest.er1
27301  ac_status=$?
27302  grep -v '^ *+' conftest.er1 >conftest.err
27303  rm -f conftest.er1
27304  cat conftest.err >&5
27305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306  (exit $ac_status); } &&
27307	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309  (eval $ac_try) 2>&5
27310  ac_status=$?
27311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312  (exit $ac_status); }; } &&
27313	 { ac_try='test -s conftest.$ac_objext'
27314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315  (eval $ac_try) 2>&5
27316  ac_status=$?
27317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318  (exit $ac_status); }; }; then
27319  ac_cv_have_decl__snprintf=yes
27320else
27321  echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324ac_cv_have_decl__snprintf=no
27325fi
27326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27327fi
27328echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
27329echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
27330  if test $ac_cv_have_decl__snprintf = yes; then
27331    gt_value=1
27332  else
27333    gt_value=0
27334  fi
27335
27336cat >>confdefs.h <<_ACEOF
27337#define HAVE_DECL__SNPRINTF $gt_value
27338_ACEOF
27339
27340
27341
27342  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
27343echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
27344if test "${ac_cv_have_decl__snwprintf+set}" = set; then
27345  echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347  cat >conftest.$ac_ext <<_ACEOF
27348/* confdefs.h.  */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h.  */
27353#include <stdio.h>
27354int
27355main ()
27356{
27357
27358#ifndef _snwprintf
27359  char *p = (char *) _snwprintf;
27360#endif
27361
27362  ;
27363  return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext
27367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27368  (eval $ac_compile) 2>conftest.er1
27369  ac_status=$?
27370  grep -v '^ *+' conftest.er1 >conftest.err
27371  rm -f conftest.er1
27372  cat conftest.err >&5
27373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374  (exit $ac_status); } &&
27375	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377  (eval $ac_try) 2>&5
27378  ac_status=$?
27379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380  (exit $ac_status); }; } &&
27381	 { ac_try='test -s conftest.$ac_objext'
27382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383  (eval $ac_try) 2>&5
27384  ac_status=$?
27385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386  (exit $ac_status); }; }; then
27387  ac_cv_have_decl__snwprintf=yes
27388else
27389  echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392ac_cv_have_decl__snwprintf=no
27393fi
27394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395fi
27396echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
27397echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
27398  if test $ac_cv_have_decl__snwprintf = yes; then
27399    gt_value=1
27400  else
27401    gt_value=0
27402  fi
27403
27404cat >>confdefs.h <<_ACEOF
27405#define HAVE_DECL__SNWPRINTF $gt_value
27406_ACEOF
27407
27408
27409
27410
27411  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
27412echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
27413if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
27414  echo $ECHO_N "(cached) $ECHO_C" >&6
27415else
27416  cat >conftest.$ac_ext <<_ACEOF
27417/* confdefs.h.  */
27418_ACEOF
27419cat confdefs.h >>conftest.$ac_ext
27420cat >>conftest.$ac_ext <<_ACEOF
27421/* end confdefs.h.  */
27422#include <stdio.h>
27423int
27424main ()
27425{
27426
27427#ifndef feof_unlocked
27428  char *p = (char *) feof_unlocked;
27429#endif
27430
27431  ;
27432  return 0;
27433}
27434_ACEOF
27435rm -f conftest.$ac_objext
27436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27437  (eval $ac_compile) 2>conftest.er1
27438  ac_status=$?
27439  grep -v '^ *+' conftest.er1 >conftest.err
27440  rm -f conftest.er1
27441  cat conftest.err >&5
27442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443  (exit $ac_status); } &&
27444	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446  (eval $ac_try) 2>&5
27447  ac_status=$?
27448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449  (exit $ac_status); }; } &&
27450	 { ac_try='test -s conftest.$ac_objext'
27451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452  (eval $ac_try) 2>&5
27453  ac_status=$?
27454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455  (exit $ac_status); }; }; then
27456  ac_cv_have_decl_feof_unlocked=yes
27457else
27458  echo "$as_me: failed program was:" >&5
27459sed 's/^/| /' conftest.$ac_ext >&5
27460
27461ac_cv_have_decl_feof_unlocked=no
27462fi
27463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27464fi
27465echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
27466echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
27467  if test $ac_cv_have_decl_feof_unlocked = yes; then
27468    gt_value=1
27469  else
27470    gt_value=0
27471  fi
27472
27473cat >>confdefs.h <<_ACEOF
27474#define HAVE_DECL_FEOF_UNLOCKED $gt_value
27475_ACEOF
27476
27477
27478
27479  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
27480echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
27481if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
27482  echo $ECHO_N "(cached) $ECHO_C" >&6
27483else
27484  cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h.  */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h.  */
27490#include <stdio.h>
27491int
27492main ()
27493{
27494
27495#ifndef fgets_unlocked
27496  char *p = (char *) fgets_unlocked;
27497#endif
27498
27499  ;
27500  return 0;
27501}
27502_ACEOF
27503rm -f conftest.$ac_objext
27504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27505  (eval $ac_compile) 2>conftest.er1
27506  ac_status=$?
27507  grep -v '^ *+' conftest.er1 >conftest.err
27508  rm -f conftest.er1
27509  cat conftest.err >&5
27510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511  (exit $ac_status); } &&
27512	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27514  (eval $ac_try) 2>&5
27515  ac_status=$?
27516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517  (exit $ac_status); }; } &&
27518	 { ac_try='test -s conftest.$ac_objext'
27519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520  (eval $ac_try) 2>&5
27521  ac_status=$?
27522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523  (exit $ac_status); }; }; then
27524  ac_cv_have_decl_fgets_unlocked=yes
27525else
27526  echo "$as_me: failed program was:" >&5
27527sed 's/^/| /' conftest.$ac_ext >&5
27528
27529ac_cv_have_decl_fgets_unlocked=no
27530fi
27531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27532fi
27533echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
27534echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
27535  if test $ac_cv_have_decl_fgets_unlocked = yes; then
27536    gt_value=1
27537  else
27538    gt_value=0
27539  fi
27540
27541cat >>confdefs.h <<_ACEOF
27542#define HAVE_DECL_FGETS_UNLOCKED $gt_value
27543_ACEOF
27544
27545
27546
27547  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27548echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
27549if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27550  echo $ECHO_N "(cached) $ECHO_C" >&6
27551else
27552  cat >conftest.$ac_ext <<_ACEOF
27553/* confdefs.h.  */
27554_ACEOF
27555cat confdefs.h >>conftest.$ac_ext
27556cat >>conftest.$ac_ext <<_ACEOF
27557/* end confdefs.h.  */
27558#include <stdio.h>
27559int
27560main ()
27561{
27562
27563#ifndef getc_unlocked
27564  char *p = (char *) getc_unlocked;
27565#endif
27566
27567  ;
27568  return 0;
27569}
27570_ACEOF
27571rm -f conftest.$ac_objext
27572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27573  (eval $ac_compile) 2>conftest.er1
27574  ac_status=$?
27575  grep -v '^ *+' conftest.er1 >conftest.err
27576  rm -f conftest.er1
27577  cat conftest.err >&5
27578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579  (exit $ac_status); } &&
27580	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582  (eval $ac_try) 2>&5
27583  ac_status=$?
27584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585  (exit $ac_status); }; } &&
27586	 { ac_try='test -s conftest.$ac_objext'
27587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588  (eval $ac_try) 2>&5
27589  ac_status=$?
27590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591  (exit $ac_status); }; }; then
27592  ac_cv_have_decl_getc_unlocked=yes
27593else
27594  echo "$as_me: failed program was:" >&5
27595sed 's/^/| /' conftest.$ac_ext >&5
27596
27597ac_cv_have_decl_getc_unlocked=no
27598fi
27599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27600fi
27601echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
27602echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
27603  if test $ac_cv_have_decl_getc_unlocked = yes; then
27604    gt_value=1
27605  else
27606    gt_value=0
27607  fi
27608
27609cat >>confdefs.h <<_ACEOF
27610#define HAVE_DECL_GETC_UNLOCKED $gt_value
27611_ACEOF
27612
27613
27614
27615  case $gt_cv_func_printf_posix in
27616    *yes) HAVE_POSIX_PRINTF=1 ;;
27617    *) HAVE_POSIX_PRINTF=0 ;;
27618  esac
27619
27620  if test "$ac_cv_func_asprintf" = yes; then
27621    HAVE_ASPRINTF=1
27622  else
27623    HAVE_ASPRINTF=0
27624  fi
27625
27626  if test "$ac_cv_func_snprintf" = yes; then
27627    HAVE_SNPRINTF=1
27628  else
27629    HAVE_SNPRINTF=0
27630  fi
27631
27632  if test "$ac_cv_func_wprintf" = yes; then
27633    HAVE_WPRINTF=1
27634  else
27635    HAVE_WPRINTF=0
27636  fi
27637
27638
27639
27640
27641
27642
27643
27644          am_save_CPPFLAGS="$CPPFLAGS"
27645
27646  for element in $INCICONV; do
27647    haveit=
27648    for x in $CPPFLAGS; do
27649
27650  acl_save_prefix="$prefix"
27651  prefix="$acl_final_prefix"
27652  acl_save_exec_prefix="$exec_prefix"
27653  exec_prefix="$acl_final_exec_prefix"
27654  eval x=\"$x\"
27655  exec_prefix="$acl_save_exec_prefix"
27656  prefix="$acl_save_prefix"
27657
27658      if test "X$x" = "X$element"; then
27659        haveit=yes
27660        break
27661      fi
27662    done
27663    if test -z "$haveit"; then
27664      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27665    fi
27666  done
27667
27668
27669  echo "$as_me:$LINENO: checking for iconv" >&5
27670echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27671if test "${am_cv_func_iconv+set}" = set; then
27672  echo $ECHO_N "(cached) $ECHO_C" >&6
27673else
27674
27675    am_cv_func_iconv="no, consider installing GNU libiconv"
27676    am_cv_lib_iconv=no
27677    cat >conftest.$ac_ext <<_ACEOF
27678/* confdefs.h.  */
27679_ACEOF
27680cat confdefs.h >>conftest.$ac_ext
27681cat >>conftest.$ac_ext <<_ACEOF
27682/* end confdefs.h.  */
27683#include <stdlib.h>
27684#include <iconv.h>
27685int
27686main ()
27687{
27688iconv_t cd = iconv_open("","");
27689       iconv(cd,NULL,NULL,NULL,NULL);
27690       iconv_close(cd);
27691  ;
27692  return 0;
27693}
27694_ACEOF
27695rm -f conftest.$ac_objext conftest$ac_exeext
27696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27697  (eval $ac_link) 2>conftest.er1
27698  ac_status=$?
27699  grep -v '^ *+' conftest.er1 >conftest.err
27700  rm -f conftest.er1
27701  cat conftest.err >&5
27702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703  (exit $ac_status); } &&
27704	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706  (eval $ac_try) 2>&5
27707  ac_status=$?
27708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709  (exit $ac_status); }; } &&
27710	 { ac_try='test -s conftest$ac_exeext'
27711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712  (eval $ac_try) 2>&5
27713  ac_status=$?
27714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715  (exit $ac_status); }; }; then
27716  am_cv_func_iconv=yes
27717else
27718  echo "$as_me: failed program was:" >&5
27719sed 's/^/| /' conftest.$ac_ext >&5
27720
27721fi
27722rm -f conftest.err conftest.$ac_objext \
27723      conftest$ac_exeext conftest.$ac_ext
27724    if test "$am_cv_func_iconv" != yes; then
27725      am_save_LIBS="$LIBS"
27726      LIBS="$LIBS $LIBICONV"
27727      cat >conftest.$ac_ext <<_ACEOF
27728/* confdefs.h.  */
27729_ACEOF
27730cat confdefs.h >>conftest.$ac_ext
27731cat >>conftest.$ac_ext <<_ACEOF
27732/* end confdefs.h.  */
27733#include <stdlib.h>
27734#include <iconv.h>
27735int
27736main ()
27737{
27738iconv_t cd = iconv_open("","");
27739         iconv(cd,NULL,NULL,NULL,NULL);
27740         iconv_close(cd);
27741  ;
27742  return 0;
27743}
27744_ACEOF
27745rm -f conftest.$ac_objext conftest$ac_exeext
27746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747  (eval $ac_link) 2>conftest.er1
27748  ac_status=$?
27749  grep -v '^ *+' conftest.er1 >conftest.err
27750  rm -f conftest.er1
27751  cat conftest.err >&5
27752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753  (exit $ac_status); } &&
27754	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756  (eval $ac_try) 2>&5
27757  ac_status=$?
27758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759  (exit $ac_status); }; } &&
27760	 { ac_try='test -s conftest$ac_exeext'
27761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762  (eval $ac_try) 2>&5
27763  ac_status=$?
27764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765  (exit $ac_status); }; }; then
27766  am_cv_lib_iconv=yes
27767        am_cv_func_iconv=yes
27768else
27769  echo "$as_me: failed program was:" >&5
27770sed 's/^/| /' conftest.$ac_ext >&5
27771
27772fi
27773rm -f conftest.err conftest.$ac_objext \
27774      conftest$ac_exeext conftest.$ac_ext
27775      LIBS="$am_save_LIBS"
27776    fi
27777
27778fi
27779echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27780echo "${ECHO_T}$am_cv_func_iconv" >&6
27781  if test "$am_cv_func_iconv" = yes; then
27782
27783cat >>confdefs.h <<\_ACEOF
27784#define HAVE_ICONV 1
27785_ACEOF
27786
27787  fi
27788  if test "$am_cv_lib_iconv" = yes; then
27789    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
27790echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
27791    echo "$as_me:$LINENO: result: $LIBICONV" >&5
27792echo "${ECHO_T}$LIBICONV" >&6
27793  else
27794            CPPFLAGS="$am_save_CPPFLAGS"
27795    LIBICONV=
27796    LTLIBICONV=
27797  fi
27798
27799
27800
27801  if test "$am_cv_func_iconv" = yes; then
27802    echo "$as_me:$LINENO: checking for iconv declaration" >&5
27803echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
27804    if test "${am_cv_proto_iconv+set}" = set; then
27805  echo $ECHO_N "(cached) $ECHO_C" >&6
27806else
27807
27808      cat >conftest.$ac_ext <<_ACEOF
27809/* confdefs.h.  */
27810_ACEOF
27811cat confdefs.h >>conftest.$ac_ext
27812cat >>conftest.$ac_ext <<_ACEOF
27813/* end confdefs.h.  */
27814
27815#include <stdlib.h>
27816#include <iconv.h>
27817extern
27818#ifdef __cplusplus
27819"C"
27820#endif
27821#if defined(__STDC__) || defined(__cplusplus)
27822size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27823#else
27824size_t iconv();
27825#endif
27826
27827int
27828main ()
27829{
27830
27831  ;
27832  return 0;
27833}
27834_ACEOF
27835rm -f conftest.$ac_objext
27836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27837  (eval $ac_compile) 2>conftest.er1
27838  ac_status=$?
27839  grep -v '^ *+' conftest.er1 >conftest.err
27840  rm -f conftest.er1
27841  cat conftest.err >&5
27842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843  (exit $ac_status); } &&
27844	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846  (eval $ac_try) 2>&5
27847  ac_status=$?
27848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849  (exit $ac_status); }; } &&
27850	 { ac_try='test -s conftest.$ac_objext'
27851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852  (eval $ac_try) 2>&5
27853  ac_status=$?
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); }; }; then
27856  am_cv_proto_iconv_arg1=""
27857else
27858  echo "$as_me: failed program was:" >&5
27859sed 's/^/| /' conftest.$ac_ext >&5
27860
27861am_cv_proto_iconv_arg1="const"
27862fi
27863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27864      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);"
27865fi
27866
27867    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
27868    echo "$as_me:$LINENO: result: ${ac_t:-
27869         }$am_cv_proto_iconv" >&5
27870echo "${ECHO_T}${ac_t:-
27871         }$am_cv_proto_iconv" >&6
27872
27873cat >>confdefs.h <<_ACEOF
27874#define ICONV_CONST $am_cv_proto_iconv_arg1
27875_ACEOF
27876
27877  fi
27878
27879
27880  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
27881echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
27882if test "${am_cv_langinfo_codeset+set}" = set; then
27883  echo $ECHO_N "(cached) $ECHO_C" >&6
27884else
27885  cat >conftest.$ac_ext <<_ACEOF
27886/* confdefs.h.  */
27887_ACEOF
27888cat confdefs.h >>conftest.$ac_ext
27889cat >>conftest.$ac_ext <<_ACEOF
27890/* end confdefs.h.  */
27891#include <langinfo.h>
27892int
27893main ()
27894{
27895char* cs = nl_langinfo(CODESET);
27896  ;
27897  return 0;
27898}
27899_ACEOF
27900rm -f conftest.$ac_objext conftest$ac_exeext
27901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27902  (eval $ac_link) 2>conftest.er1
27903  ac_status=$?
27904  grep -v '^ *+' conftest.er1 >conftest.err
27905  rm -f conftest.er1
27906  cat conftest.err >&5
27907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908  (exit $ac_status); } &&
27909	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27911  (eval $ac_try) 2>&5
27912  ac_status=$?
27913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914  (exit $ac_status); }; } &&
27915	 { ac_try='test -s conftest$ac_exeext'
27916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27917  (eval $ac_try) 2>&5
27918  ac_status=$?
27919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920  (exit $ac_status); }; }; then
27921  am_cv_langinfo_codeset=yes
27922else
27923  echo "$as_me: failed program was:" >&5
27924sed 's/^/| /' conftest.$ac_ext >&5
27925
27926am_cv_langinfo_codeset=no
27927fi
27928rm -f conftest.err conftest.$ac_objext \
27929      conftest$ac_exeext conftest.$ac_ext
27930
27931fi
27932echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
27933echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
27934  if test $am_cv_langinfo_codeset = yes; then
27935
27936cat >>confdefs.h <<\_ACEOF
27937#define HAVE_LANGINFO_CODESET 1
27938_ACEOF
27939
27940  fi
27941
27942  if test $ac_cv_header_locale_h = yes; then
27943
27944  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27945echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
27946if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
27947  echo $ECHO_N "(cached) $ECHO_C" >&6
27948else
27949  cat >conftest.$ac_ext <<_ACEOF
27950/* confdefs.h.  */
27951_ACEOF
27952cat confdefs.h >>conftest.$ac_ext
27953cat >>conftest.$ac_ext <<_ACEOF
27954/* end confdefs.h.  */
27955#include <locale.h>
27956int
27957main ()
27958{
27959return LC_MESSAGES
27960  ;
27961  return 0;
27962}
27963_ACEOF
27964rm -f conftest.$ac_objext conftest$ac_exeext
27965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27966  (eval $ac_link) 2>conftest.er1
27967  ac_status=$?
27968  grep -v '^ *+' conftest.er1 >conftest.err
27969  rm -f conftest.er1
27970  cat conftest.err >&5
27971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972  (exit $ac_status); } &&
27973	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
27974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975  (eval $ac_try) 2>&5
27976  ac_status=$?
27977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978  (exit $ac_status); }; } &&
27979	 { ac_try='test -s conftest$ac_exeext'
27980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981  (eval $ac_try) 2>&5
27982  ac_status=$?
27983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984  (exit $ac_status); }; }; then
27985  gt_cv_val_LC_MESSAGES=yes
27986else
27987  echo "$as_me: failed program was:" >&5
27988sed 's/^/| /' conftest.$ac_ext >&5
27989
27990gt_cv_val_LC_MESSAGES=no
27991fi
27992rm -f conftest.err conftest.$ac_objext \
27993      conftest$ac_exeext conftest.$ac_ext
27994fi
27995echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
27996echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
27997  if test $gt_cv_val_LC_MESSAGES = yes; then
27998
27999cat >>confdefs.h <<\_ACEOF
28000#define HAVE_LC_MESSAGES 1
28001_ACEOF
28002
28003  fi
28004
28005  fi
28006
28007  if test -n "$INTL_MACOSX_LIBS"; then
28008    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
28009  fi
28010
28011                      for ac_prog in bison
28012do
28013  # Extract the first word of "$ac_prog", so it can be a program name with args.
28014set dummy $ac_prog; ac_word=$2
28015echo "$as_me:$LINENO: checking for $ac_word" >&5
28016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28017if test "${ac_cv_prog_INTLBISON+set}" = set; then
28018  echo $ECHO_N "(cached) $ECHO_C" >&6
28019else
28020  if test -n "$INTLBISON"; then
28021  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
28022else
28023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28024for as_dir in $PATH
28025do
28026  IFS=$as_save_IFS
28027  test -z "$as_dir" && as_dir=.
28028  for ac_exec_ext in '' $ac_executable_extensions; do
28029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28030    ac_cv_prog_INTLBISON="$ac_prog"
28031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28032    break 2
28033  fi
28034done
28035done
28036
28037fi
28038fi
28039INTLBISON=$ac_cv_prog_INTLBISON
28040if test -n "$INTLBISON"; then
28041  echo "$as_me:$LINENO: result: $INTLBISON" >&5
28042echo "${ECHO_T}$INTLBISON" >&6
28043else
28044  echo "$as_me:$LINENO: result: no" >&5
28045echo "${ECHO_T}no" >&6
28046fi
28047
28048  test -n "$INTLBISON" && break
28049done
28050
28051  if test -z "$INTLBISON"; then
28052    ac_verc_fail=yes
28053  else
28054        echo "$as_me:$LINENO: checking version of bison" >&5
28055echo $ECHO_N "checking version of bison... $ECHO_C" >&6
28056    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
28057    case $ac_prog_version in
28058      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
28059      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
28060         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
28061      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
28062    esac
28063    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
28064echo "${ECHO_T}$ac_prog_version" >&6
28065  fi
28066  if test $ac_verc_fail = yes; then
28067    INTLBISON=:
28068  fi
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
28086echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
28087if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
28088  echo $ECHO_N "(cached) $ECHO_C" >&6
28089else
28090  gt_save_CPPFLAGS="$CPPFLAGS"
28091     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
28092     gt_save_LIBS="$LIBS"
28093     LIBS="$LIBS -framework CoreFoundation"
28094     cat >conftest.$ac_ext <<_ACEOF
28095/* confdefs.h.  */
28096_ACEOF
28097cat confdefs.h >>conftest.$ac_ext
28098cat >>conftest.$ac_ext <<_ACEOF
28099/* end confdefs.h.  */
28100#include <CFPreferences.h>
28101int
28102main ()
28103{
28104CFPreferencesCopyAppValue(NULL, NULL)
28105  ;
28106  return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext conftest$ac_exeext
28110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28111  (eval $ac_link) 2>conftest.er1
28112  ac_status=$?
28113  grep -v '^ *+' conftest.er1 >conftest.err
28114  rm -f conftest.er1
28115  cat conftest.err >&5
28116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117  (exit $ac_status); } &&
28118	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120  (eval $ac_try) 2>&5
28121  ac_status=$?
28122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123  (exit $ac_status); }; } &&
28124	 { ac_try='test -s conftest$ac_exeext'
28125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126  (eval $ac_try) 2>&5
28127  ac_status=$?
28128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129  (exit $ac_status); }; }; then
28130  gt_cv_func_CFPreferencesCopyAppValue=yes
28131else
28132  echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135gt_cv_func_CFPreferencesCopyAppValue=no
28136fi
28137rm -f conftest.err conftest.$ac_objext \
28138      conftest$ac_exeext conftest.$ac_ext
28139     CPPFLAGS="$gt_save_CPPFLAGS"
28140     LIBS="$gt_save_LIBS"
28141fi
28142echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
28143echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
28144  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
28145
28146cat >>confdefs.h <<\_ACEOF
28147#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
28148_ACEOF
28149
28150  fi
28151    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
28152echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
28153if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
28154  echo $ECHO_N "(cached) $ECHO_C" >&6
28155else
28156  gt_save_CPPFLAGS="$CPPFLAGS"
28157     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
28158     gt_save_LIBS="$LIBS"
28159     LIBS="$LIBS -framework CoreFoundation"
28160     cat >conftest.$ac_ext <<_ACEOF
28161/* confdefs.h.  */
28162_ACEOF
28163cat confdefs.h >>conftest.$ac_ext
28164cat >>conftest.$ac_ext <<_ACEOF
28165/* end confdefs.h.  */
28166#include <CFLocale.h>
28167int
28168main ()
28169{
28170CFLocaleCopyCurrent();
28171  ;
28172  return 0;
28173}
28174_ACEOF
28175rm -f conftest.$ac_objext conftest$ac_exeext
28176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28177  (eval $ac_link) 2>conftest.er1
28178  ac_status=$?
28179  grep -v '^ *+' conftest.er1 >conftest.err
28180  rm -f conftest.er1
28181  cat conftest.err >&5
28182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183  (exit $ac_status); } &&
28184	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186  (eval $ac_try) 2>&5
28187  ac_status=$?
28188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189  (exit $ac_status); }; } &&
28190	 { ac_try='test -s conftest$ac_exeext'
28191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192  (eval $ac_try) 2>&5
28193  ac_status=$?
28194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195  (exit $ac_status); }; }; then
28196  gt_cv_func_CFLocaleCopyCurrent=yes
28197else
28198  echo "$as_me: failed program was:" >&5
28199sed 's/^/| /' conftest.$ac_ext >&5
28200
28201gt_cv_func_CFLocaleCopyCurrent=no
28202fi
28203rm -f conftest.err conftest.$ac_objext \
28204      conftest$ac_exeext conftest.$ac_ext
28205     CPPFLAGS="$gt_save_CPPFLAGS"
28206     LIBS="$gt_save_LIBS"
28207fi
28208echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
28209echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
28210  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
28211
28212cat >>confdefs.h <<\_ACEOF
28213#define HAVE_CFLOCALECOPYCURRENT 1
28214_ACEOF
28215
28216  fi
28217  INTL_MACOSX_LIBS=
28218  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
28219    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
28220  fi
28221
28222
28223
28224
28225  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
28226echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
28227    # Check whether --enable-nls or --disable-nls was given.
28228if test "${enable_nls+set}" = set; then
28229  enableval="$enable_nls"
28230  USE_NLS=$enableval
28231else
28232  USE_NLS=yes
28233fi;
28234  echo "$as_me:$LINENO: result: $USE_NLS" >&5
28235echo "${ECHO_T}$USE_NLS" >&6
28236
28237
28238
28239
28240    BUILD_INCLUDED_LIBINTL=no
28241    USE_INCLUDED_LIBINTL=no
28242
28243  LIBINTL=
28244  LTLIBINTL=
28245  POSUB=
28246
28247    if test "$USE_NLS" = "yes"; then
28248    gt_use_preinstalled_gnugettext=no
28249
28250      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
28251echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
28252
28253# Check whether --with-included-gettext or --without-included-gettext was given.
28254if test "${with_included_gettext+set}" = set; then
28255  withval="$with_included_gettext"
28256  nls_cv_force_use_gnu_gettext=$withval
28257else
28258  nls_cv_force_use_gnu_gettext=no
28259fi;
28260      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
28261echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
28262
28263      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
28264      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
28265
28266
28267
28268
28269
28270
28271        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
28272echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
28273if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
28274  echo $ECHO_N "(cached) $ECHO_C" >&6
28275else
28276  cat >conftest.$ac_ext <<_ACEOF
28277/* confdefs.h.  */
28278_ACEOF
28279cat confdefs.h >>conftest.$ac_ext
28280cat >>conftest.$ac_ext <<_ACEOF
28281/* end confdefs.h.  */
28282#include <libintl.h>
28283extern int _nl_msg_cat_cntr;
28284extern int *_nl_domain_bindings;
28285int
28286main ()
28287{
28288bindtextdomain ("", "");
28289return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
28290  ;
28291  return 0;
28292}
28293_ACEOF
28294rm -f conftest.$ac_objext conftest$ac_exeext
28295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296  (eval $ac_link) 2>conftest.er1
28297  ac_status=$?
28298  grep -v '^ *+' conftest.er1 >conftest.err
28299  rm -f conftest.er1
28300  cat conftest.err >&5
28301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302  (exit $ac_status); } &&
28303	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305  (eval $ac_try) 2>&5
28306  ac_status=$?
28307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308  (exit $ac_status); }; } &&
28309	 { ac_try='test -s conftest$ac_exeext'
28310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311  (eval $ac_try) 2>&5
28312  ac_status=$?
28313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314  (exit $ac_status); }; }; then
28315  gt_cv_func_gnugettext1_libc=yes
28316else
28317  echo "$as_me: failed program was:" >&5
28318sed 's/^/| /' conftest.$ac_ext >&5
28319
28320gt_cv_func_gnugettext1_libc=no
28321fi
28322rm -f conftest.err conftest.$ac_objext \
28323      conftest$ac_exeext conftest.$ac_ext
28324fi
28325echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
28326echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
28327
28328        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
28329
28330
28331
28332    use_additional=yes
28333
28334  acl_save_prefix="$prefix"
28335  prefix="$acl_final_prefix"
28336  acl_save_exec_prefix="$exec_prefix"
28337  exec_prefix="$acl_final_exec_prefix"
28338
28339    eval additional_includedir=\"$includedir\"
28340    eval additional_libdir=\"$libdir\"
28341
28342  exec_prefix="$acl_save_exec_prefix"
28343  prefix="$acl_save_prefix"
28344
28345
28346# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
28347if test "${with_libintl_prefix+set}" = set; then
28348  withval="$with_libintl_prefix"
28349
28350    if test "X$withval" = "Xno"; then
28351      use_additional=no
28352    else
28353      if test "X$withval" = "X"; then
28354
28355  acl_save_prefix="$prefix"
28356  prefix="$acl_final_prefix"
28357  acl_save_exec_prefix="$exec_prefix"
28358  exec_prefix="$acl_final_exec_prefix"
28359
28360          eval additional_includedir=\"$includedir\"
28361          eval additional_libdir=\"$libdir\"
28362
28363  exec_prefix="$acl_save_exec_prefix"
28364  prefix="$acl_save_prefix"
28365
28366      else
28367        additional_includedir="$withval/include"
28368        additional_libdir="$withval/lib"
28369      fi
28370    fi
28371
28372fi;
28373      LIBINTL=
28374  LTLIBINTL=
28375  INCINTL=
28376  rpathdirs=
28377  ltrpathdirs=
28378  names_already_handled=
28379  names_next_round='intl '
28380  while test -n "$names_next_round"; do
28381    names_this_round="$names_next_round"
28382    names_next_round=
28383    for name in $names_this_round; do
28384      already_handled=
28385      for n in $names_already_handled; do
28386        if test "$n" = "$name"; then
28387          already_handled=yes
28388          break
28389        fi
28390      done
28391      if test -z "$already_handled"; then
28392        names_already_handled="$names_already_handled $name"
28393                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28394        eval value=\"\$HAVE_LIB$uppername\"
28395        if test -n "$value"; then
28396          if test "$value" = yes; then
28397            eval value=\"\$LIB$uppername\"
28398            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28399            eval value=\"\$LTLIB$uppername\"
28400            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28401          else
28402                                    :
28403          fi
28404        else
28405                              found_dir=
28406          found_la=
28407          found_so=
28408          found_a=
28409          if test $use_additional = yes; then
28410            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28411              found_dir="$additional_libdir"
28412              found_so="$additional_libdir/lib$name.$shlibext"
28413              if test -f "$additional_libdir/lib$name.la"; then
28414                found_la="$additional_libdir/lib$name.la"
28415              fi
28416            else
28417              if test -f "$additional_libdir/lib$name.$libext"; then
28418                found_dir="$additional_libdir"
28419                found_a="$additional_libdir/lib$name.$libext"
28420                if test -f "$additional_libdir/lib$name.la"; then
28421                  found_la="$additional_libdir/lib$name.la"
28422                fi
28423              fi
28424            fi
28425          fi
28426          if test "X$found_dir" = "X"; then
28427            for x in $LDFLAGS $LTLIBINTL; do
28428
28429  acl_save_prefix="$prefix"
28430  prefix="$acl_final_prefix"
28431  acl_save_exec_prefix="$exec_prefix"
28432  exec_prefix="$acl_final_exec_prefix"
28433  eval x=\"$x\"
28434  exec_prefix="$acl_save_exec_prefix"
28435  prefix="$acl_save_prefix"
28436
28437              case "$x" in
28438                -L*)
28439                  dir=`echo "X$x" | sed -e 's/^X-L//'`
28440                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28441                    found_dir="$dir"
28442                    found_so="$dir/lib$name.$shlibext"
28443                    if test -f "$dir/lib$name.la"; then
28444                      found_la="$dir/lib$name.la"
28445                    fi
28446                  else
28447                    if test -f "$dir/lib$name.$libext"; then
28448                      found_dir="$dir"
28449                      found_a="$dir/lib$name.$libext"
28450                      if test -f "$dir/lib$name.la"; then
28451                        found_la="$dir/lib$name.la"
28452                      fi
28453                    fi
28454                  fi
28455                  ;;
28456              esac
28457              if test "X$found_dir" != "X"; then
28458                break
28459              fi
28460            done
28461          fi
28462          if test "X$found_dir" != "X"; then
28463                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28464            if test "X$found_so" != "X"; then
28465                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28466                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28467              else
28468                                                                                haveit=
28469                for x in $ltrpathdirs; do
28470                  if test "X$x" = "X$found_dir"; then
28471                    haveit=yes
28472                    break
28473                  fi
28474                done
28475                if test -z "$haveit"; then
28476                  ltrpathdirs="$ltrpathdirs $found_dir"
28477                fi
28478                                if test "$hardcode_direct" = yes; then
28479                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28480                else
28481                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28482                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28483                                                            haveit=
28484                    for x in $rpathdirs; do
28485                      if test "X$x" = "X$found_dir"; then
28486                        haveit=yes
28487                        break
28488                      fi
28489                    done
28490                    if test -z "$haveit"; then
28491                      rpathdirs="$rpathdirs $found_dir"
28492                    fi
28493                  else
28494                                                                                haveit=
28495                    for x in $LDFLAGS $LIBINTL; do
28496
28497  acl_save_prefix="$prefix"
28498  prefix="$acl_final_prefix"
28499  acl_save_exec_prefix="$exec_prefix"
28500  exec_prefix="$acl_final_exec_prefix"
28501  eval x=\"$x\"
28502  exec_prefix="$acl_save_exec_prefix"
28503  prefix="$acl_save_prefix"
28504
28505                      if test "X$x" = "X-L$found_dir"; then
28506                        haveit=yes
28507                        break
28508                      fi
28509                    done
28510                    if test -z "$haveit"; then
28511                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28512                    fi
28513                    if test "$hardcode_minus_L" != no; then
28514                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28515                    else
28516                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28517                    fi
28518                  fi
28519                fi
28520              fi
28521            else
28522              if test "X$found_a" != "X"; then
28523                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28524              else
28525                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28526              fi
28527            fi
28528                        additional_includedir=
28529            case "$found_dir" in
28530              */lib | */lib/)
28531                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28532                additional_includedir="$basedir/include"
28533                ;;
28534            esac
28535            if test "X$additional_includedir" != "X"; then
28536                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
28537                haveit=
28538                if test "X$additional_includedir" = "X/usr/local/include"; then
28539                  if test -n "$GCC"; then
28540                    case $host_os in
28541                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28542                    esac
28543                  fi
28544                fi
28545                if test -z "$haveit"; then
28546                  for x in $CPPFLAGS $INCINTL; do
28547
28548  acl_save_prefix="$prefix"
28549  prefix="$acl_final_prefix"
28550  acl_save_exec_prefix="$exec_prefix"
28551  exec_prefix="$acl_final_exec_prefix"
28552  eval x=\"$x\"
28553  exec_prefix="$acl_save_exec_prefix"
28554  prefix="$acl_save_prefix"
28555
28556                    if test "X$x" = "X-I$additional_includedir"; then
28557                      haveit=yes
28558                      break
28559                    fi
28560                  done
28561                  if test -z "$haveit"; then
28562                    if test -d "$additional_includedir"; then
28563                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28564                    fi
28565                  fi
28566                fi
28567              fi
28568            fi
28569                        if test -n "$found_la"; then
28570                                                        save_libdir="$libdir"
28571              case "$found_la" in
28572                */* | *\\*) . "$found_la" ;;
28573                *) . "./$found_la" ;;
28574              esac
28575              libdir="$save_libdir"
28576                            for dep in $dependency_libs; do
28577                case "$dep" in
28578                  -L*)
28579                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28580                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
28581                      haveit=
28582                      if test "X$additional_libdir" = "X/usr/local/lib"; then
28583                        if test -n "$GCC"; then
28584                          case $host_os in
28585                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28586                          esac
28587                        fi
28588                      fi
28589                      if test -z "$haveit"; then
28590                        haveit=
28591                        for x in $LDFLAGS $LIBINTL; do
28592
28593  acl_save_prefix="$prefix"
28594  prefix="$acl_final_prefix"
28595  acl_save_exec_prefix="$exec_prefix"
28596  exec_prefix="$acl_final_exec_prefix"
28597  eval x=\"$x\"
28598  exec_prefix="$acl_save_exec_prefix"
28599  prefix="$acl_save_prefix"
28600
28601                          if test "X$x" = "X-L$additional_libdir"; then
28602                            haveit=yes
28603                            break
28604                          fi
28605                        done
28606                        if test -z "$haveit"; then
28607                          if test -d "$additional_libdir"; then
28608                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28609                          fi
28610                        fi
28611                        haveit=
28612                        for x in $LDFLAGS $LTLIBINTL; do
28613
28614  acl_save_prefix="$prefix"
28615  prefix="$acl_final_prefix"
28616  acl_save_exec_prefix="$exec_prefix"
28617  exec_prefix="$acl_final_exec_prefix"
28618  eval x=\"$x\"
28619  exec_prefix="$acl_save_exec_prefix"
28620  prefix="$acl_save_prefix"
28621
28622                          if test "X$x" = "X-L$additional_libdir"; then
28623                            haveit=yes
28624                            break
28625                          fi
28626                        done
28627                        if test -z "$haveit"; then
28628                          if test -d "$additional_libdir"; then
28629                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28630                          fi
28631                        fi
28632                      fi
28633                    fi
28634                    ;;
28635                  -R*)
28636                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
28637                    if test "$enable_rpath" != no; then
28638                                                                  haveit=
28639                      for x in $rpathdirs; do
28640                        if test "X$x" = "X$dir"; then
28641                          haveit=yes
28642                          break
28643                        fi
28644                      done
28645                      if test -z "$haveit"; then
28646                        rpathdirs="$rpathdirs $dir"
28647                      fi
28648                                                                  haveit=
28649                      for x in $ltrpathdirs; do
28650                        if test "X$x" = "X$dir"; then
28651                          haveit=yes
28652                          break
28653                        fi
28654                      done
28655                      if test -z "$haveit"; then
28656                        ltrpathdirs="$ltrpathdirs $dir"
28657                      fi
28658                    fi
28659                    ;;
28660                  -l*)
28661                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28662                    ;;
28663                  *.la)
28664                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28665                    ;;
28666                  *)
28667                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28668                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28669                    ;;
28670                esac
28671              done
28672            fi
28673          else
28674                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28675            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28676          fi
28677        fi
28678      fi
28679    done
28680  done
28681  if test "X$rpathdirs" != "X"; then
28682    if test -n "$hardcode_libdir_separator"; then
28683                        alldirs=
28684      for found_dir in $rpathdirs; do
28685        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28686      done
28687            acl_save_libdir="$libdir"
28688      libdir="$alldirs"
28689      eval flag=\"$hardcode_libdir_flag_spec\"
28690      libdir="$acl_save_libdir"
28691      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28692    else
28693            for found_dir in $rpathdirs; do
28694        acl_save_libdir="$libdir"
28695        libdir="$found_dir"
28696        eval flag=\"$hardcode_libdir_flag_spec\"
28697        libdir="$acl_save_libdir"
28698        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28699      done
28700    fi
28701  fi
28702  if test "X$ltrpathdirs" != "X"; then
28703            for found_dir in $ltrpathdirs; do
28704      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28705    done
28706  fi
28707
28708          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28709echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
28710if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
28711  echo $ECHO_N "(cached) $ECHO_C" >&6
28712else
28713  gt_save_CPPFLAGS="$CPPFLAGS"
28714            CPPFLAGS="$CPPFLAGS $INCINTL"
28715            gt_save_LIBS="$LIBS"
28716            LIBS="$LIBS $LIBINTL"
28717                        cat >conftest.$ac_ext <<_ACEOF
28718/* confdefs.h.  */
28719_ACEOF
28720cat confdefs.h >>conftest.$ac_ext
28721cat >>conftest.$ac_ext <<_ACEOF
28722/* end confdefs.h.  */
28723#include <libintl.h>
28724extern int _nl_msg_cat_cntr;
28725extern
28726#ifdef __cplusplus
28727"C"
28728#endif
28729const char *_nl_expand_alias (const char *);
28730int
28731main ()
28732{
28733bindtextdomain ("", "");
28734return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28735  ;
28736  return 0;
28737}
28738_ACEOF
28739rm -f conftest.$ac_objext conftest$ac_exeext
28740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28741  (eval $ac_link) 2>conftest.er1
28742  ac_status=$?
28743  grep -v '^ *+' conftest.er1 >conftest.err
28744  rm -f conftest.er1
28745  cat conftest.err >&5
28746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747  (exit $ac_status); } &&
28748	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750  (eval $ac_try) 2>&5
28751  ac_status=$?
28752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753  (exit $ac_status); }; } &&
28754	 { ac_try='test -s conftest$ac_exeext'
28755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756  (eval $ac_try) 2>&5
28757  ac_status=$?
28758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759  (exit $ac_status); }; }; then
28760  gt_cv_func_gnugettext1_libintl=yes
28761else
28762  echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
28765gt_cv_func_gnugettext1_libintl=no
28766fi
28767rm -f conftest.err conftest.$ac_objext \
28768      conftest$ac_exeext conftest.$ac_ext
28769                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
28770              LIBS="$LIBS $LIBICONV"
28771              cat >conftest.$ac_ext <<_ACEOF
28772/* confdefs.h.  */
28773_ACEOF
28774cat confdefs.h >>conftest.$ac_ext
28775cat >>conftest.$ac_ext <<_ACEOF
28776/* end confdefs.h.  */
28777#include <libintl.h>
28778extern int _nl_msg_cat_cntr;
28779extern
28780#ifdef __cplusplus
28781"C"
28782#endif
28783const char *_nl_expand_alias (const char *);
28784int
28785main ()
28786{
28787bindtextdomain ("", "");
28788return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28789  ;
28790  return 0;
28791}
28792_ACEOF
28793rm -f conftest.$ac_objext conftest$ac_exeext
28794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28795  (eval $ac_link) 2>conftest.er1
28796  ac_status=$?
28797  grep -v '^ *+' conftest.er1 >conftest.err
28798  rm -f conftest.er1
28799  cat conftest.err >&5
28800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801  (exit $ac_status); } &&
28802	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
28803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804  (eval $ac_try) 2>&5
28805  ac_status=$?
28806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807  (exit $ac_status); }; } &&
28808	 { ac_try='test -s conftest$ac_exeext'
28809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28810  (eval $ac_try) 2>&5
28811  ac_status=$?
28812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813  (exit $ac_status); }; }; then
28814  LIBINTL="$LIBINTL $LIBICONV"
28815                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28816                gt_cv_func_gnugettext1_libintl=yes
28817
28818else
28819  echo "$as_me: failed program was:" >&5
28820sed 's/^/| /' conftest.$ac_ext >&5
28821
28822fi
28823rm -f conftest.err conftest.$ac_objext \
28824      conftest$ac_exeext conftest.$ac_ext
28825            fi
28826            CPPFLAGS="$gt_save_CPPFLAGS"
28827            LIBS="$gt_save_LIBS"
28828fi
28829echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
28830echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
28831        fi
28832
28833                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
28834           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
28835                && test "$PACKAGE" != gettext-runtime \
28836                && test "$PACKAGE" != gettext-tools; }; then
28837          gt_use_preinstalled_gnugettext=yes
28838        else
28839                    LIBINTL=
28840          LTLIBINTL=
28841          INCINTL=
28842        fi
28843
28844
28845        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
28846                              nls_cv_use_gnu_gettext=yes
28847        fi
28848      fi
28849
28850      if test "$nls_cv_use_gnu_gettext" = "yes"; then
28851                BUILD_INCLUDED_LIBINTL=yes
28852        USE_INCLUDED_LIBINTL=yes
28853        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
28854        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
28855        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
28856      fi
28857
28858      CATOBJEXT=
28859      if test "$gt_use_preinstalled_gnugettext" = "yes" \
28860         || test "$nls_cv_use_gnu_gettext" = "yes"; then
28861                CATOBJEXT=.gmo
28862      fi
28863
28864
28865    if test -n "$INTL_MACOSX_LIBS"; then
28866      if test "$gt_use_preinstalled_gnugettext" = "yes" \
28867         || test "$nls_cv_use_gnu_gettext" = "yes"; then
28868                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28869        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28870      fi
28871    fi
28872
28873    if test "$gt_use_preinstalled_gnugettext" = "yes" \
28874       || test "$nls_cv_use_gnu_gettext" = "yes"; then
28875
28876cat >>confdefs.h <<\_ACEOF
28877#define ENABLE_NLS 1
28878_ACEOF
28879
28880    else
28881      USE_NLS=no
28882    fi
28883  fi
28884
28885  echo "$as_me:$LINENO: checking whether to use NLS" >&5
28886echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
28887  echo "$as_me:$LINENO: result: $USE_NLS" >&5
28888echo "${ECHO_T}$USE_NLS" >&6
28889  if test "$USE_NLS" = "yes"; then
28890    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28891echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
28892    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28893      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28894        gt_source="external libintl"
28895      else
28896        gt_source="libc"
28897      fi
28898    else
28899      gt_source="included intl directory"
28900    fi
28901    echo "$as_me:$LINENO: result: $gt_source" >&5
28902echo "${ECHO_T}$gt_source" >&6
28903  fi
28904
28905  if test "$USE_NLS" = "yes"; then
28906
28907    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28908      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
28909        echo "$as_me:$LINENO: checking how to link with libintl" >&5
28910echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
28911        echo "$as_me:$LINENO: result: $LIBINTL" >&5
28912echo "${ECHO_T}$LIBINTL" >&6
28913
28914  for element in $INCINTL; do
28915    haveit=
28916    for x in $CPPFLAGS; do
28917
28918  acl_save_prefix="$prefix"
28919  prefix="$acl_final_prefix"
28920  acl_save_exec_prefix="$exec_prefix"
28921  exec_prefix="$acl_final_exec_prefix"
28922  eval x=\"$x\"
28923  exec_prefix="$acl_save_exec_prefix"
28924  prefix="$acl_save_prefix"
28925
28926      if test "X$x" = "X$element"; then
28927        haveit=yes
28928        break
28929      fi
28930    done
28931    if test -z "$haveit"; then
28932      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28933    fi
28934  done
28935
28936      fi
28937
28938
28939cat >>confdefs.h <<\_ACEOF
28940#define HAVE_GETTEXT 1
28941_ACEOF
28942
28943
28944cat >>confdefs.h <<\_ACEOF
28945#define HAVE_DCGETTEXT 1
28946_ACEOF
28947
28948    fi
28949
28950        POSUB=po
28951  fi
28952
28953
28954            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
28955      BUILD_INCLUDED_LIBINTL=yes
28956    fi
28957
28958
28959
28960
28961
28962        nls_cv_header_intl=
28963    nls_cv_header_libgt=
28964
28965        DATADIRNAME=share
28966
28967
28968        INSTOBJEXT=.mo
28969
28970
28971        GENCAT=gencat
28972
28973
28974        INTLOBJS=
28975    if test "$USE_INCLUDED_LIBINTL" = yes; then
28976      INTLOBJS="\$(GETTOBJS)"
28977    fi
28978
28979
28980        INTL_LIBTOOL_SUFFIX_PREFIX=
28981
28982
28983
28984    INTLLIBS="$LIBINTL"
28985
28986
28987
28988
28989
28990
28991
28992_localedir=`eval "echo $datadir/locale"`
28993if test "$_localedir" = "NONE/share/locale"; then
28994   cat >>confdefs.h <<_ACEOF
28995#define LOCALEDIR "/usr/local/share/locale"
28996_ACEOF
28997
28998else
28999   _localedir=`echo \"$_localedir\"`
29000   cat >>confdefs.h <<_ACEOF
29001#define LOCALEDIR $_localedir
29002_ACEOF
29003
29004fi
29005
29006
29007
29008if test x$USE_INCLUDED_LIBINTL = xyes; then
29009  COMPILE_INTL_TRUE=
29010  COMPILE_INTL_FALSE='#'
29011else
29012  COMPILE_INTL_TRUE='#'
29013  COMPILE_INTL_FALSE=
29014fi
29015
29016
29017                                                                                                    ac_config_files="$ac_config_files Makefile gsmlib/Makefile tests/Makefile apps/Makefile win32/Makefile doc/Makefile scripts/Makefile intl/Makefile po/Makefile.in ext/Makefile"
29018          ac_config_commands="$ac_config_commands default"
29019cat >confcache <<\_ACEOF
29020# This file is a shell script that caches the results of configure
29021# tests run on this system so they can be shared between configure
29022# scripts and configure runs, see configure's option --config-cache.
29023# It is not useful on other systems.  If it contains results you don't
29024# want to keep, you may remove or edit it.
29025#
29026# config.status only pays attention to the cache file if you give it
29027# the --recheck option to rerun configure.
29028#
29029# `ac_cv_env_foo' variables (set or unset) will be overridden when
29030# loading this file, other *unset* `ac_cv_foo' will be assigned the
29031# following values.
29032
29033_ACEOF
29034
29035# The following way of writing the cache mishandles newlines in values,
29036# but we know of no workaround that is simple, portable, and efficient.
29037# So, don't put newlines in cache variables' values.
29038# Ultrix sh set writes to stderr and can't be redirected directly,
29039# and sets the high bit in the cache file unless we assign to the vars.
29040{
29041  (set) 2>&1 |
29042    case `(ac_space=' '; set | grep ac_space) 2>&1` in
29043    *ac_space=\ *)
29044      # `set' does not quote correctly, so add quotes (double-quote
29045      # substitution turns \\\\ into \\, and sed turns \\ into \).
29046      sed -n \
29047	"s/'/'\\\\''/g;
29048	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29049      ;;
29050    *)
29051      # `set' quotes correctly as required by POSIX, so do not add quotes.
29052      sed -n \
29053	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29054      ;;
29055    esac;
29056} |
29057  sed '
29058     t clear
29059     : clear
29060     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29061     t end
29062     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29063     : end' >>confcache
29064if diff $cache_file confcache >/dev/null 2>&1; then :; else
29065  if test -w $cache_file; then
29066    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29067    cat confcache >$cache_file
29068  else
29069    echo "not updating unwritable cache $cache_file"
29070  fi
29071fi
29072rm -f confcache
29073
29074test "x$prefix" = xNONE && prefix=$ac_default_prefix
29075# Let make expand exec_prefix.
29076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29077
29078# VPATH may cause trouble with some makes, so we remove $(srcdir),
29079# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29080# trailing colons and then remove the whole line if VPATH becomes empty
29081# (actually we leave an empty line to preserve line numbers).
29082if test "x$srcdir" = x.; then
29083  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29084s/:*\$(srcdir):*/:/;
29085s/:*\${srcdir}:*/:/;
29086s/:*@srcdir@:*/:/;
29087s/^\([^=]*=[	 ]*\):*/\1/;
29088s/:*$//;
29089s/^[^=]*=[	 ]*$//;
29090}'
29091fi
29092
29093DEFS=-DHAVE_CONFIG_H
29094
29095ac_libobjs=
29096ac_ltlibobjs=
29097for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29098  # 1. Remove the extension, and $U if already installed.
29099  ac_i=`echo "$ac_i" |
29100	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29101  # 2. Add them.
29102  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29103  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29104done
29105LIBOBJS=$ac_libobjs
29106
29107LTLIBOBJS=$ac_ltlibobjs
29108
29109
29110if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29111  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29112Usually this means the macro was only invoked conditionally." >&5
29113echo "$as_me: error: conditional \"AMDEP\" was never defined.
29114Usually this means the macro was only invoked conditionally." >&2;}
29115   { (exit 1); exit 1; }; }
29116fi
29117if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29118  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29119Usually this means the macro was only invoked conditionally." >&5
29120echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29121Usually this means the macro was only invoked conditionally." >&2;}
29122   { (exit 1); exit 1; }; }
29123fi
29124if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29125  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29126Usually this means the macro was only invoked conditionally." >&5
29127echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29128Usually this means the macro was only invoked conditionally." >&2;}
29129   { (exit 1); exit 1; }; }
29130fi
29131if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29132  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29133Usually this means the macro was only invoked conditionally." >&5
29134echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29135Usually this means the macro was only invoked conditionally." >&2;}
29136   { (exit 1); exit 1; }; }
29137fi
29138if test -z "${COMPILE_INTL_TRUE}" && test -z "${COMPILE_INTL_FALSE}"; then
29139  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_INTL\" was never defined.
29140Usually this means the macro was only invoked conditionally." >&5
29141echo "$as_me: error: conditional \"COMPILE_INTL\" was never defined.
29142Usually this means the macro was only invoked conditionally." >&2;}
29143   { (exit 1); exit 1; }; }
29144fi
29145
29146: ${CONFIG_STATUS=./config.status}
29147ac_clean_files_save=$ac_clean_files
29148ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29149{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29150echo "$as_me: creating $CONFIG_STATUS" >&6;}
29151cat >$CONFIG_STATUS <<_ACEOF
29152#! $SHELL
29153# Generated by $as_me.
29154# Run this file to recreate the current configuration.
29155# Compiler output produced by configure, useful for debugging
29156# configure, is in config.log if it exists.
29157
29158debug=false
29159ac_cs_recheck=false
29160ac_cs_silent=false
29161SHELL=\${CONFIG_SHELL-$SHELL}
29162_ACEOF
29163
29164cat >>$CONFIG_STATUS <<\_ACEOF
29165## --------------------- ##
29166## M4sh Initialization.  ##
29167## --------------------- ##
29168
29169# Be Bourne compatible
29170if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29171  emulate sh
29172  NULLCMD=:
29173  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29174  # is contrary to our usage.  Disable this feature.
29175  alias -g '${1+"$@"}'='"$@"'
29176elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29177  set -o posix
29178fi
29179DUALCASE=1; export DUALCASE # for MKS sh
29180
29181# Support unset when possible.
29182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29183  as_unset=unset
29184else
29185  as_unset=false
29186fi
29187
29188
29189# Work around bugs in pre-3.0 UWIN ksh.
29190$as_unset ENV MAIL MAILPATH
29191PS1='$ '
29192PS2='> '
29193PS4='+ '
29194
29195# NLS nuisances.
29196for as_var in \
29197  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29198  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29199  LC_TELEPHONE LC_TIME
29200do
29201  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29202    eval $as_var=C; export $as_var
29203  else
29204    $as_unset $as_var
29205  fi
29206done
29207
29208# Required to use basename.
29209if expr a : '\(a\)' >/dev/null 2>&1; then
29210  as_expr=expr
29211else
29212  as_expr=false
29213fi
29214
29215if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29216  as_basename=basename
29217else
29218  as_basename=false
29219fi
29220
29221
29222# Name of the executable.
29223as_me=`$as_basename "$0" ||
29224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29225	 X"$0" : 'X\(//\)$' \| \
29226	 X"$0" : 'X\(/\)$' \| \
29227	 .     : '\(.\)' 2>/dev/null ||
29228echo X/"$0" |
29229    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29230  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
29231  	  /^X\/\(\/\).*/{ s//\1/; q; }
29232  	  s/.*/./; q'`
29233
29234
29235# PATH needs CR, and LINENO needs CR and PATH.
29236# Avoid depending upon Character Ranges.
29237as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29238as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29239as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29240as_cr_digits='0123456789'
29241as_cr_alnum=$as_cr_Letters$as_cr_digits
29242
29243# The user is always right.
29244if test "${PATH_SEPARATOR+set}" != set; then
29245  echo "#! /bin/sh" >conf$$.sh
29246  echo  "exit 0"   >>conf$$.sh
29247  chmod +x conf$$.sh
29248  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29249    PATH_SEPARATOR=';'
29250  else
29251    PATH_SEPARATOR=:
29252  fi
29253  rm -f conf$$.sh
29254fi
29255
29256
29257  as_lineno_1=$LINENO
29258  as_lineno_2=$LINENO
29259  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29260  test "x$as_lineno_1" != "x$as_lineno_2" &&
29261  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
29262  # Find who we are.  Look in the path if we contain no path at all
29263  # relative or not.
29264  case $0 in
29265    *[\\/]* ) as_myself=$0 ;;
29266    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29267for as_dir in $PATH
29268do
29269  IFS=$as_save_IFS
29270  test -z "$as_dir" && as_dir=.
29271  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29272done
29273
29274       ;;
29275  esac
29276  # We did not find ourselves, most probably we were run as `sh COMMAND'
29277  # in which case we are not to be found in the path.
29278  if test "x$as_myself" = x; then
29279    as_myself=$0
29280  fi
29281  if test ! -f "$as_myself"; then
29282    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29283echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29284   { (exit 1); exit 1; }; }
29285  fi
29286  case $CONFIG_SHELL in
29287  '')
29288    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29289for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29290do
29291  IFS=$as_save_IFS
29292  test -z "$as_dir" && as_dir=.
29293  for as_base in sh bash ksh sh5; do
29294	 case $as_dir in
29295	 /*)
29296	   if ("$as_dir/$as_base" -c '
29297  as_lineno_1=$LINENO
29298  as_lineno_2=$LINENO
29299  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29300  test "x$as_lineno_1" != "x$as_lineno_2" &&
29301  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
29302	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29303	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29304	     CONFIG_SHELL=$as_dir/$as_base
29305	     export CONFIG_SHELL
29306	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29307	   fi;;
29308	 esac
29309       done
29310done
29311;;
29312  esac
29313
29314  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29315  # uniformly replaced by the line number.  The first 'sed' inserts a
29316  # line-number line before each line; the second 'sed' does the real
29317  # work.  The second script uses 'N' to pair each line-number line
29318  # with the numbered line, and appends trailing '-' during
29319  # substitution so that $LINENO is not a special case at line end.
29320  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29321  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
29322  sed '=' <$as_myself |
29323    sed '
29324      N
29325      s,$,-,
29326      : loop
29327      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29328      t loop
29329      s,-$,,
29330      s,^['$as_cr_digits']*\n,,
29331    ' >$as_me.lineno &&
29332  chmod +x $as_me.lineno ||
29333    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29334echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29335   { (exit 1); exit 1; }; }
29336
29337  # Don't try to exec as it changes $[0], causing all sort of problems
29338  # (the dirname of $[0] is not the place where we might find the
29339  # original and so on.  Autoconf is especially sensible to this).
29340  . ./$as_me.lineno
29341  # Exit status is that of the last command.
29342  exit
29343}
29344
29345
29346case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29347  *c*,-n*) ECHO_N= ECHO_C='
29348' ECHO_T='	' ;;
29349  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29350  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
29351esac
29352
29353if expr a : '\(a\)' >/dev/null 2>&1; then
29354  as_expr=expr
29355else
29356  as_expr=false
29357fi
29358
29359rm -f conf$$ conf$$.exe conf$$.file
29360echo >conf$$.file
29361if ln -s conf$$.file conf$$ 2>/dev/null; then
29362  # We could just check for DJGPP; but this test a) works b) is more generic
29363  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29364  if test -f conf$$.exe; then
29365    # Don't use ln at all; we don't have any links
29366    as_ln_s='cp -p'
29367  else
29368    as_ln_s='ln -s'
29369  fi
29370elif ln conf$$.file conf$$ 2>/dev/null; then
29371  as_ln_s=ln
29372else
29373  as_ln_s='cp -p'
29374fi
29375rm -f conf$$ conf$$.exe conf$$.file
29376
29377if mkdir -p . 2>/dev/null; then
29378  as_mkdir_p=:
29379else
29380  test -d ./-p && rmdir ./-p
29381  as_mkdir_p=false
29382fi
29383
29384as_executable_p="test -f"
29385
29386# Sed expression to map a string onto a valid CPP name.
29387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29388
29389# Sed expression to map a string onto a valid variable name.
29390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29391
29392
29393# IFS
29394# We need space, tab and new line, in precisely that order.
29395as_nl='
29396'
29397IFS=" 	$as_nl"
29398
29399# CDPATH.
29400$as_unset CDPATH
29401
29402exec 6>&1
29403
29404# Open the log real soon, to keep \$[0] and so on meaningful, and to
29405# report actual input values of CONFIG_FILES etc. instead of their
29406# values after options handling.  Logging --version etc. is OK.
29407exec 5>>config.log
29408{
29409  echo
29410  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29411## Running $as_me. ##
29412_ASBOX
29413} >&5
29414cat >&5 <<_CSEOF
29415
29416This file was extended by $as_me, which was
29417generated by GNU Autoconf 2.59.  Invocation command line was
29418
29419  CONFIG_FILES    = $CONFIG_FILES
29420  CONFIG_HEADERS  = $CONFIG_HEADERS
29421  CONFIG_LINKS    = $CONFIG_LINKS
29422  CONFIG_COMMANDS = $CONFIG_COMMANDS
29423  $ $0 $@
29424
29425_CSEOF
29426echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29427echo >&5
29428_ACEOF
29429
29430# Files that config.status was made for.
29431if test -n "$ac_config_files"; then
29432  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29433fi
29434
29435if test -n "$ac_config_headers"; then
29436  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29437fi
29438
29439if test -n "$ac_config_links"; then
29440  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29441fi
29442
29443if test -n "$ac_config_commands"; then
29444  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29445fi
29446
29447cat >>$CONFIG_STATUS <<\_ACEOF
29448
29449ac_cs_usage="\
29450\`$as_me' instantiates files from templates according to the
29451current configuration.
29452
29453Usage: $0 [OPTIONS] [FILE]...
29454
29455  -h, --help       print this help, then exit
29456  -V, --version    print version number, then exit
29457  -q, --quiet      do not print progress messages
29458  -d, --debug      don't remove temporary files
29459      --recheck    update $as_me by reconfiguring in the same conditions
29460  --file=FILE[:TEMPLATE]
29461		   instantiate the configuration file FILE
29462  --header=FILE[:TEMPLATE]
29463		   instantiate the configuration header FILE
29464
29465Configuration files:
29466$config_files
29467
29468Configuration headers:
29469$config_headers
29470
29471Configuration commands:
29472$config_commands
29473
29474Report bugs to <bug-autoconf@gnu.org>."
29475_ACEOF
29476
29477cat >>$CONFIG_STATUS <<_ACEOF
29478ac_cs_version="\\
29479config.status
29480configured by $0, generated by GNU Autoconf 2.59,
29481  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29482
29483Copyright (C) 2003 Free Software Foundation, Inc.
29484This config.status script is free software; the Free Software Foundation
29485gives unlimited permission to copy, distribute and modify it."
29486srcdir=$srcdir
29487INSTALL="$INSTALL"
29488_ACEOF
29489
29490cat >>$CONFIG_STATUS <<\_ACEOF
29491# If no file are specified by the user, then we need to provide default
29492# value.  By we need to know if files were specified by the user.
29493ac_need_defaults=:
29494while test $# != 0
29495do
29496  case $1 in
29497  --*=*)
29498    ac_option=`expr "x$1" : 'x\([^=]*\)='`
29499    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29500    ac_shift=:
29501    ;;
29502  -*)
29503    ac_option=$1
29504    ac_optarg=$2
29505    ac_shift=shift
29506    ;;
29507  *) # This is not an option, so the user has probably given explicit
29508     # arguments.
29509     ac_option=$1
29510     ac_need_defaults=false;;
29511  esac
29512
29513  case $ac_option in
29514  # Handling of the options.
29515_ACEOF
29516cat >>$CONFIG_STATUS <<\_ACEOF
29517  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29518    ac_cs_recheck=: ;;
29519  --version | --vers* | -V )
29520    echo "$ac_cs_version"; exit 0 ;;
29521  --he | --h)
29522    # Conflict between --help and --header
29523    { { echo "$as_me:$LINENO: error: ambiguous option: $1
29524Try \`$0 --help' for more information." >&5
29525echo "$as_me: error: ambiguous option: $1
29526Try \`$0 --help' for more information." >&2;}
29527   { (exit 1); exit 1; }; };;
29528  --help | --hel | -h )
29529    echo "$ac_cs_usage"; exit 0 ;;
29530  --debug | --d* | -d )
29531    debug=: ;;
29532  --file | --fil | --fi | --f )
29533    $ac_shift
29534    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29535    ac_need_defaults=false;;
29536  --header | --heade | --head | --hea )
29537    $ac_shift
29538    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29539    ac_need_defaults=false;;
29540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29541  | -silent | --silent | --silen | --sile | --sil | --si | --s)
29542    ac_cs_silent=: ;;
29543
29544  # This is an error.
29545  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29546Try \`$0 --help' for more information." >&5
29547echo "$as_me: error: unrecognized option: $1
29548Try \`$0 --help' for more information." >&2;}
29549   { (exit 1); exit 1; }; } ;;
29550
29551  *) ac_config_targets="$ac_config_targets $1" ;;
29552
29553  esac
29554  shift
29555done
29556
29557ac_configure_extra_args=
29558
29559if $ac_cs_silent; then
29560  exec 6>/dev/null
29561  ac_configure_extra_args="$ac_configure_extra_args --silent"
29562fi
29563
29564_ACEOF
29565cat >>$CONFIG_STATUS <<_ACEOF
29566if \$ac_cs_recheck; then
29567  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29568  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29569fi
29570
29571_ACEOF
29572
29573cat >>$CONFIG_STATUS <<_ACEOF
29574#
29575# INIT-COMMANDS section.
29576#
29577
29578AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29579# Capture the value of obsolete ALL_LINGUAS because we need it to compute
29580    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
29581    # from automake.
29582    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
29583    # Capture the value of LINGUAS because we need it to compute CATALOGS.
29584    LINGUAS="${LINGUAS-%UNSET%}"
29585
29586
29587_ACEOF
29588
29589
29590
29591cat >>$CONFIG_STATUS <<\_ACEOF
29592for ac_config_target in $ac_config_targets
29593do
29594  case "$ac_config_target" in
29595  # Handling of arguments.
29596  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29597  "gsmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gsmlib/Makefile" ;;
29598  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29599  "apps/Makefile" ) CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
29600  "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
29601  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29602  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
29603  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
29604  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
29605  "ext/Makefile" ) CONFIG_FILES="$CONFIG_FILES ext/Makefile" ;;
29606  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29607  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29608  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29609  "gsm_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gsm_config.h" ;;
29610  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29611echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29612   { (exit 1); exit 1; }; };;
29613  esac
29614done
29615
29616# If the user did not use the arguments to specify the items to instantiate,
29617# then the envvar interface is used.  Set only those that are not.
29618# We use the long form for the default assignment because of an extremely
29619# bizarre bug on SunOS 4.1.3.
29620if $ac_need_defaults; then
29621  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29622  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29623  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29624fi
29625
29626# Have a temporary directory for convenience.  Make it in the build tree
29627# simply because there is no reason to put it here, and in addition,
29628# creating and moving files from /tmp can sometimes cause problems.
29629# Create a temporary directory, and hook for its removal unless debugging.
29630$debug ||
29631{
29632  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29633  trap '{ (exit 1); exit 1; }' 1 2 13 15
29634}
29635
29636# Create a (secure) tmp directory for tmp files.
29637
29638{
29639  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29640  test -n "$tmp" && test -d "$tmp"
29641}  ||
29642{
29643  tmp=./confstat$$-$RANDOM
29644  (umask 077 && mkdir $tmp)
29645} ||
29646{
29647   echo "$me: cannot create a temporary directory in ." >&2
29648   { (exit 1); exit 1; }
29649}
29650
29651_ACEOF
29652
29653cat >>$CONFIG_STATUS <<_ACEOF
29654
29655#
29656# CONFIG_FILES section.
29657#
29658
29659# No need to generate the scripts if there are no CONFIG_FILES.
29660# This happens for instance when ./config.status config.h
29661if test -n "\$CONFIG_FILES"; then
29662  # Protect against being on the right side of a sed subst in config.status.
29663  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29664   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29665s,@SHELL@,$SHELL,;t t
29666s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29667s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29668s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29669s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29670s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29671s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29672s,@exec_prefix@,$exec_prefix,;t t
29673s,@prefix@,$prefix,;t t
29674s,@program_transform_name@,$program_transform_name,;t t
29675s,@bindir@,$bindir,;t t
29676s,@sbindir@,$sbindir,;t t
29677s,@libexecdir@,$libexecdir,;t t
29678s,@datadir@,$datadir,;t t
29679s,@sysconfdir@,$sysconfdir,;t t
29680s,@sharedstatedir@,$sharedstatedir,;t t
29681s,@localstatedir@,$localstatedir,;t t
29682s,@libdir@,$libdir,;t t
29683s,@includedir@,$includedir,;t t
29684s,@oldincludedir@,$oldincludedir,;t t
29685s,@infodir@,$infodir,;t t
29686s,@mandir@,$mandir,;t t
29687s,@build_alias@,$build_alias,;t t
29688s,@host_alias@,$host_alias,;t t
29689s,@target_alias@,$target_alias,;t t
29690s,@DEFS@,$DEFS,;t t
29691s,@ECHO_C@,$ECHO_C,;t t
29692s,@ECHO_N@,$ECHO_N,;t t
29693s,@ECHO_T@,$ECHO_T,;t t
29694s,@LIBS@,$LIBS,;t t
29695s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29696s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29697s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29698s,@CC@,$CC,;t t
29699s,@CFLAGS@,$CFLAGS,;t t
29700s,@LDFLAGS@,$LDFLAGS,;t t
29701s,@CPPFLAGS@,$CPPFLAGS,;t t
29702s,@ac_ct_CC@,$ac_ct_CC,;t t
29703s,@EXEEXT@,$EXEEXT,;t t
29704s,@OBJEXT@,$OBJEXT,;t t
29705s,@CYGPATH_W@,$CYGPATH_W,;t t
29706s,@PACKAGE@,$PACKAGE,;t t
29707s,@VERSION@,$VERSION,;t t
29708s,@ACLOCAL@,$ACLOCAL,;t t
29709s,@AUTOCONF@,$AUTOCONF,;t t
29710s,@AUTOMAKE@,$AUTOMAKE,;t t
29711s,@AUTOHEADER@,$AUTOHEADER,;t t
29712s,@MAKEINFO@,$MAKEINFO,;t t
29713s,@install_sh@,$install_sh,;t t
29714s,@STRIP@,$STRIP,;t t
29715s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29716s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29717s,@mkdir_p@,$mkdir_p,;t t
29718s,@AWK@,$AWK,;t t
29719s,@SET_MAKE@,$SET_MAKE,;t t
29720s,@am__leading_dot@,$am__leading_dot,;t t
29721s,@AMTAR@,$AMTAR,;t t
29722s,@am__tar@,$am__tar,;t t
29723s,@am__untar@,$am__untar,;t t
29724s,@DEPDIR@,$DEPDIR,;t t
29725s,@am__include@,$am__include,;t t
29726s,@am__quote@,$am__quote,;t t
29727s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29728s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29729s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29730s,@CCDEPMODE@,$CCDEPMODE,;t t
29731s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29732s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29733s,@build@,$build,;t t
29734s,@build_cpu@,$build_cpu,;t t
29735s,@build_vendor@,$build_vendor,;t t
29736s,@build_os@,$build_os,;t t
29737s,@host@,$host,;t t
29738s,@host_cpu@,$host_cpu,;t t
29739s,@host_vendor@,$host_vendor,;t t
29740s,@host_os@,$host_os,;t t
29741s,@EGREP@,$EGREP,;t t
29742s,@LN_S@,$LN_S,;t t
29743s,@ECHO@,$ECHO,;t t
29744s,@AR@,$AR,;t t
29745s,@ac_ct_AR@,$ac_ct_AR,;t t
29746s,@RANLIB@,$RANLIB,;t t
29747s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29748s,@CPP@,$CPP,;t t
29749s,@CXX@,$CXX,;t t
29750s,@CXXFLAGS@,$CXXFLAGS,;t t
29751s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29752s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29753s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29754s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29755s,@CXXCPP@,$CXXCPP,;t t
29756s,@F77@,$F77,;t t
29757s,@FFLAGS@,$FFLAGS,;t t
29758s,@ac_ct_F77@,$ac_ct_F77,;t t
29759s,@LIBTOOL@,$LIBTOOL,;t t
29760s,@ALLOCA@,$ALLOCA,;t t
29761s,@GSM_VERSION@,$GSM_VERSION,;t t
29762s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
29763s,@USE_NLS@,$USE_NLS,;t t
29764s,@MSGFMT@,$MSGFMT,;t t
29765s,@GMSGFMT@,$GMSGFMT,;t t
29766s,@XGETTEXT@,$XGETTEXT,;t t
29767s,@MSGMERGE@,$MSGMERGE,;t t
29768s,@GLIBC2@,$GLIBC2,;t t
29769s,@GLIBC21@,$GLIBC21,;t t
29770s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
29771s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
29772s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
29773s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
29774s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
29775s,@LIBICONV@,$LIBICONV,;t t
29776s,@LTLIBICONV@,$LTLIBICONV,;t t
29777s,@INTLBISON@,$INTLBISON,;t t
29778s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
29779s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
29780s,@CATOBJEXT@,$CATOBJEXT,;t t
29781s,@DATADIRNAME@,$DATADIRNAME,;t t
29782s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29783s,@GENCAT@,$GENCAT,;t t
29784s,@INTLOBJS@,$INTLOBJS,;t t
29785s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
29786s,@INTLLIBS@,$INTLLIBS,;t t
29787s,@LIBINTL@,$LIBINTL,;t t
29788s,@LTLIBINTL@,$LTLIBINTL,;t t
29789s,@POSUB@,$POSUB,;t t
29790s,@COMPILE_INTL_TRUE@,$COMPILE_INTL_TRUE,;t t
29791s,@COMPILE_INTL_FALSE@,$COMPILE_INTL_FALSE,;t t
29792s,@LIBOBJS@,$LIBOBJS,;t t
29793s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29794CEOF
29795
29796_ACEOF
29797
29798  cat >>$CONFIG_STATUS <<\_ACEOF
29799  # Split the substitutions into bite-sized pieces for seds with
29800  # small command number limits, like on Digital OSF/1 and HP-UX.
29801  ac_max_sed_lines=48
29802  ac_sed_frag=1 # Number of current file.
29803  ac_beg=1 # First line for current file.
29804  ac_end=$ac_max_sed_lines # Line after last line for current file.
29805  ac_more_lines=:
29806  ac_sed_cmds=
29807  while $ac_more_lines; do
29808    if test $ac_beg -gt 1; then
29809      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29810    else
29811      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29812    fi
29813    if test ! -s $tmp/subs.frag; then
29814      ac_more_lines=false
29815    else
29816      # The purpose of the label and of the branching condition is to
29817      # speed up the sed processing (if there are no `@' at all, there
29818      # is no need to browse any of the substitutions).
29819      # These are the two extra sed commands mentioned above.
29820      (echo ':t
29821  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29822      if test -z "$ac_sed_cmds"; then
29823	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29824      else
29825	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29826      fi
29827      ac_sed_frag=`expr $ac_sed_frag + 1`
29828      ac_beg=$ac_end
29829      ac_end=`expr $ac_end + $ac_max_sed_lines`
29830    fi
29831  done
29832  if test -z "$ac_sed_cmds"; then
29833    ac_sed_cmds=cat
29834  fi
29835fi # test -n "$CONFIG_FILES"
29836
29837_ACEOF
29838cat >>$CONFIG_STATUS <<\_ACEOF
29839for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29840  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29841  case $ac_file in
29842  - | *:- | *:-:* ) # input from stdin
29843	cat >$tmp/stdin
29844	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29845	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29846  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29847	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29848  * )   ac_file_in=$ac_file.in ;;
29849  esac
29850
29851  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29852  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29853$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29854	 X"$ac_file" : 'X\(//\)[^/]' \| \
29855	 X"$ac_file" : 'X\(//\)$' \| \
29856	 X"$ac_file" : 'X\(/\)' \| \
29857	 .     : '\(.\)' 2>/dev/null ||
29858echo X"$ac_file" |
29859    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29860  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29861  	  /^X\(\/\/\)$/{ s//\1/; q; }
29862  	  /^X\(\/\).*/{ s//\1/; q; }
29863  	  s/.*/./; q'`
29864  { if $as_mkdir_p; then
29865    mkdir -p "$ac_dir"
29866  else
29867    as_dir="$ac_dir"
29868    as_dirs=
29869    while test ! -d "$as_dir"; do
29870      as_dirs="$as_dir $as_dirs"
29871      as_dir=`(dirname "$as_dir") 2>/dev/null ||
29872$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29873	 X"$as_dir" : 'X\(//\)[^/]' \| \
29874	 X"$as_dir" : 'X\(//\)$' \| \
29875	 X"$as_dir" : 'X\(/\)' \| \
29876	 .     : '\(.\)' 2>/dev/null ||
29877echo X"$as_dir" |
29878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29879  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29880  	  /^X\(\/\/\)$/{ s//\1/; q; }
29881  	  /^X\(\/\).*/{ s//\1/; q; }
29882  	  s/.*/./; q'`
29883    done
29884    test ! -n "$as_dirs" || mkdir $as_dirs
29885  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29886echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29887   { (exit 1); exit 1; }; }; }
29888
29889  ac_builddir=.
29890
29891if test "$ac_dir" != .; then
29892  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29893  # A "../" for each directory in $ac_dir_suffix.
29894  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29895else
29896  ac_dir_suffix= ac_top_builddir=
29897fi
29898
29899case $srcdir in
29900  .)  # No --srcdir option.  We are building in place.
29901    ac_srcdir=.
29902    if test -z "$ac_top_builddir"; then
29903       ac_top_srcdir=.
29904    else
29905       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29906    fi ;;
29907  [\\/]* | ?:[\\/]* )  # Absolute path.
29908    ac_srcdir=$srcdir$ac_dir_suffix;
29909    ac_top_srcdir=$srcdir ;;
29910  *) # Relative path.
29911    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29912    ac_top_srcdir=$ac_top_builddir$srcdir ;;
29913esac
29914
29915# Do not use `cd foo && pwd` to compute absolute paths, because
29916# the directories may not exist.
29917case `pwd` in
29918.) ac_abs_builddir="$ac_dir";;
29919*)
29920  case "$ac_dir" in
29921  .) ac_abs_builddir=`pwd`;;
29922  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29923  *) ac_abs_builddir=`pwd`/"$ac_dir";;
29924  esac;;
29925esac
29926case $ac_abs_builddir in
29927.) ac_abs_top_builddir=${ac_top_builddir}.;;
29928*)
29929  case ${ac_top_builddir}. in
29930  .) ac_abs_top_builddir=$ac_abs_builddir;;
29931  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29932  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29933  esac;;
29934esac
29935case $ac_abs_builddir in
29936.) ac_abs_srcdir=$ac_srcdir;;
29937*)
29938  case $ac_srcdir in
29939  .) ac_abs_srcdir=$ac_abs_builddir;;
29940  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29941  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29942  esac;;
29943esac
29944case $ac_abs_builddir in
29945.) ac_abs_top_srcdir=$ac_top_srcdir;;
29946*)
29947  case $ac_top_srcdir in
29948  .) ac_abs_top_srcdir=$ac_abs_builddir;;
29949  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29950  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29951  esac;;
29952esac
29953
29954
29955  case $INSTALL in
29956  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29957  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29958  esac
29959
29960  # Let's still pretend it is `configure' which instantiates (i.e., don't
29961  # use $as_me), people would be surprised to read:
29962  #    /* config.h.  Generated by config.status.  */
29963  if test x"$ac_file" = x-; then
29964    configure_input=
29965  else
29966    configure_input="$ac_file.  "
29967  fi
29968  configure_input=$configure_input"Generated from `echo $ac_file_in |
29969				     sed 's,.*/,,'` by configure."
29970
29971  # First look for the input files in the build tree, otherwise in the
29972  # src tree.
29973  ac_file_inputs=`IFS=:
29974    for f in $ac_file_in; do
29975      case $f in
29976      -) echo $tmp/stdin ;;
29977      [\\/$]*)
29978	 # Absolute (can't be DOS-style, as IFS=:)
29979	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29980echo "$as_me: error: cannot find input file: $f" >&2;}
29981   { (exit 1); exit 1; }; }
29982	 echo "$f";;
29983      *) # Relative
29984	 if test -f "$f"; then
29985	   # Build tree
29986	   echo "$f"
29987	 elif test -f "$srcdir/$f"; then
29988	   # Source tree
29989	   echo "$srcdir/$f"
29990	 else
29991	   # /dev/null tree
29992	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29993echo "$as_me: error: cannot find input file: $f" >&2;}
29994   { (exit 1); exit 1; }; }
29995	 fi;;
29996      esac
29997    done` || { (exit 1); exit 1; }
29998
29999  if test x"$ac_file" != x-; then
30000    { echo "$as_me:$LINENO: creating $ac_file" >&5
30001echo "$as_me: creating $ac_file" >&6;}
30002    rm -f "$ac_file"
30003  fi
30004_ACEOF
30005cat >>$CONFIG_STATUS <<_ACEOF
30006  sed "$ac_vpsub
30007$extrasub
30008_ACEOF
30009cat >>$CONFIG_STATUS <<\_ACEOF
30010:t
30011/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30012s,@configure_input@,$configure_input,;t t
30013s,@srcdir@,$ac_srcdir,;t t
30014s,@abs_srcdir@,$ac_abs_srcdir,;t t
30015s,@top_srcdir@,$ac_top_srcdir,;t t
30016s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30017s,@builddir@,$ac_builddir,;t t
30018s,@abs_builddir@,$ac_abs_builddir,;t t
30019s,@top_builddir@,$ac_top_builddir,;t t
30020s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30021s,@INSTALL@,$ac_INSTALL,;t t
30022" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30023  rm -f $tmp/stdin
30024  if test x"$ac_file" != x-; then
30025    mv $tmp/out $ac_file
30026  else
30027    cat $tmp/out
30028    rm -f $tmp/out
30029  fi
30030
30031done
30032_ACEOF
30033cat >>$CONFIG_STATUS <<\_ACEOF
30034
30035#
30036# CONFIG_HEADER section.
30037#
30038
30039# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30040# NAME is the cpp macro being defined and VALUE is the value it is being given.
30041#
30042# ac_d sets the value in "#define NAME VALUE" lines.
30043ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
30044ac_dB='[	 ].*$,\1#\2'
30045ac_dC=' '
30046ac_dD=',;t'
30047# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30048ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
30049ac_uB='$,\1#\2define\3'
30050ac_uC=' '
30051ac_uD=',;t'
30052
30053for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30054  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30055  case $ac_file in
30056  - | *:- | *:-:* ) # input from stdin
30057	cat >$tmp/stdin
30058	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30059	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30060  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30061	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30062  * )   ac_file_in=$ac_file.in ;;
30063  esac
30064
30065  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30066echo "$as_me: creating $ac_file" >&6;}
30067
30068  # First look for the input files in the build tree, otherwise in the
30069  # src tree.
30070  ac_file_inputs=`IFS=:
30071    for f in $ac_file_in; do
30072      case $f in
30073      -) echo $tmp/stdin ;;
30074      [\\/$]*)
30075	 # Absolute (can't be DOS-style, as IFS=:)
30076	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30077echo "$as_me: error: cannot find input file: $f" >&2;}
30078   { (exit 1); exit 1; }; }
30079	 # Do quote $f, to prevent DOS paths from being IFS'd.
30080	 echo "$f";;
30081      *) # Relative
30082	 if test -f "$f"; then
30083	   # Build tree
30084	   echo "$f"
30085	 elif test -f "$srcdir/$f"; then
30086	   # Source tree
30087	   echo "$srcdir/$f"
30088	 else
30089	   # /dev/null tree
30090	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30091echo "$as_me: error: cannot find input file: $f" >&2;}
30092   { (exit 1); exit 1; }; }
30093	 fi;;
30094      esac
30095    done` || { (exit 1); exit 1; }
30096  # Remove the trailing spaces.
30097  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
30098
30099_ACEOF
30100
30101# Transform confdefs.h into two sed scripts, `conftest.defines' and
30102# `conftest.undefs', that substitutes the proper values into
30103# config.h.in to produce config.h.  The first handles `#define'
30104# templates, and the second `#undef' templates.
30105# And first: Protect against being on the right side of a sed subst in
30106# config.status.  Protect against being in an unquoted here document
30107# in config.status.
30108rm -f conftest.defines conftest.undefs
30109# Using a here document instead of a string reduces the quoting nightmare.
30110# Putting comments in sed scripts is not portable.
30111#
30112# `end' is used to avoid that the second main sed command (meant for
30113# 0-ary CPP macros) applies to n-ary macro definitions.
30114# See the Autoconf documentation for `clear'.
30115cat >confdef2sed.sed <<\_ACEOF
30116s/[\\&,]/\\&/g
30117s,[\\$`],\\&,g
30118t clear
30119: clear
30120s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30121t end
30122s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30123: end
30124_ACEOF
30125# If some macros were called several times there might be several times
30126# the same #defines, which is useless.  Nevertheless, we may not want to
30127# sort them, since we want the *last* AC-DEFINE to be honored.
30128uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30129sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30130rm -f confdef2sed.sed
30131
30132# This sed command replaces #undef with comments.  This is necessary, for
30133# example, in the case of _POSIX_SOURCE, which is predefined and required
30134# on some systems where configure will not decide to define it.
30135cat >>conftest.undefs <<\_ACEOF
30136s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30137_ACEOF
30138
30139# Break up conftest.defines because some shells have a limit on the size
30140# of here documents, and old seds have small limits too (100 cmds).
30141echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30142echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30143echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30144echo '  :' >>$CONFIG_STATUS
30145rm -f conftest.tail
30146while grep . conftest.defines >/dev/null
30147do
30148  # Write a limited-size here document to $tmp/defines.sed.
30149  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30150  # Speed up: don't consider the non `#define' lines.
30151  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
30152  # Work around the forget-to-reset-the-flag bug.
30153  echo 't clr' >>$CONFIG_STATUS
30154  echo ': clr' >>$CONFIG_STATUS
30155  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30156  echo 'CEOF
30157  sed -f $tmp/defines.sed $tmp/in >$tmp/out
30158  rm -f $tmp/in
30159  mv $tmp/out $tmp/in
30160' >>$CONFIG_STATUS
30161  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30162  rm -f conftest.defines
30163  mv conftest.tail conftest.defines
30164done
30165rm -f conftest.defines
30166echo '  fi # grep' >>$CONFIG_STATUS
30167echo >>$CONFIG_STATUS
30168
30169# Break up conftest.undefs because some shells have a limit on the size
30170# of here documents, and old seds have small limits too (100 cmds).
30171echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30172rm -f conftest.tail
30173while grep . conftest.undefs >/dev/null
30174do
30175  # Write a limited-size here document to $tmp/undefs.sed.
30176  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30177  # Speed up: don't consider the non `#undef'
30178  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
30179  # Work around the forget-to-reset-the-flag bug.
30180  echo 't clr' >>$CONFIG_STATUS
30181  echo ': clr' >>$CONFIG_STATUS
30182  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30183  echo 'CEOF
30184  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30185  rm -f $tmp/in
30186  mv $tmp/out $tmp/in
30187' >>$CONFIG_STATUS
30188  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30189  rm -f conftest.undefs
30190  mv conftest.tail conftest.undefs
30191done
30192rm -f conftest.undefs
30193
30194cat >>$CONFIG_STATUS <<\_ACEOF
30195  # Let's still pretend it is `configure' which instantiates (i.e., don't
30196  # use $as_me), people would be surprised to read:
30197  #    /* config.h.  Generated by config.status.  */
30198  if test x"$ac_file" = x-; then
30199    echo "/* Generated by configure.  */" >$tmp/config.h
30200  else
30201    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30202  fi
30203  cat $tmp/in >>$tmp/config.h
30204  rm -f $tmp/in
30205  if test x"$ac_file" != x-; then
30206    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30207      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30208echo "$as_me: $ac_file is unchanged" >&6;}
30209    else
30210      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30212	 X"$ac_file" : 'X\(//\)[^/]' \| \
30213	 X"$ac_file" : 'X\(//\)$' \| \
30214	 X"$ac_file" : 'X\(/\)' \| \
30215	 .     : '\(.\)' 2>/dev/null ||
30216echo X"$ac_file" |
30217    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30218  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30219  	  /^X\(\/\/\)$/{ s//\1/; q; }
30220  	  /^X\(\/\).*/{ s//\1/; q; }
30221  	  s/.*/./; q'`
30222      { if $as_mkdir_p; then
30223    mkdir -p "$ac_dir"
30224  else
30225    as_dir="$ac_dir"
30226    as_dirs=
30227    while test ! -d "$as_dir"; do
30228      as_dirs="$as_dir $as_dirs"
30229      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30230$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30231	 X"$as_dir" : 'X\(//\)[^/]' \| \
30232	 X"$as_dir" : 'X\(//\)$' \| \
30233	 X"$as_dir" : 'X\(/\)' \| \
30234	 .     : '\(.\)' 2>/dev/null ||
30235echo X"$as_dir" |
30236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30237  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30238  	  /^X\(\/\/\)$/{ s//\1/; q; }
30239  	  /^X\(\/\).*/{ s//\1/; q; }
30240  	  s/.*/./; q'`
30241    done
30242    test ! -n "$as_dirs" || mkdir $as_dirs
30243  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30244echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30245   { (exit 1); exit 1; }; }; }
30246
30247      rm -f $ac_file
30248      mv $tmp/config.h $ac_file
30249    fi
30250  else
30251    cat $tmp/config.h
30252    rm -f $tmp/config.h
30253  fi
30254# Compute $ac_file's index in $config_headers.
30255_am_stamp_count=1
30256for _am_header in $config_headers :; do
30257  case $_am_header in
30258    $ac_file | $ac_file:* )
30259      break ;;
30260    * )
30261      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30262  esac
30263done
30264echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30265$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30266	 X$ac_file : 'X\(//\)[^/]' \| \
30267	 X$ac_file : 'X\(//\)$' \| \
30268	 X$ac_file : 'X\(/\)' \| \
30269	 .     : '\(.\)' 2>/dev/null ||
30270echo X$ac_file |
30271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30272  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30273  	  /^X\(\/\/\)$/{ s//\1/; q; }
30274  	  /^X\(\/\).*/{ s//\1/; q; }
30275  	  s/.*/./; q'`/stamp-h$_am_stamp_count
30276done
30277_ACEOF
30278cat >>$CONFIG_STATUS <<\_ACEOF
30279
30280#
30281# CONFIG_COMMANDS section.
30282#
30283for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30284  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30285  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30286  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30287$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30288	 X"$ac_dest" : 'X\(//\)[^/]' \| \
30289	 X"$ac_dest" : 'X\(//\)$' \| \
30290	 X"$ac_dest" : 'X\(/\)' \| \
30291	 .     : '\(.\)' 2>/dev/null ||
30292echo X"$ac_dest" |
30293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30294  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30295  	  /^X\(\/\/\)$/{ s//\1/; q; }
30296  	  /^X\(\/\).*/{ s//\1/; q; }
30297  	  s/.*/./; q'`
30298  { if $as_mkdir_p; then
30299    mkdir -p "$ac_dir"
30300  else
30301    as_dir="$ac_dir"
30302    as_dirs=
30303    while test ! -d "$as_dir"; do
30304      as_dirs="$as_dir $as_dirs"
30305      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30307	 X"$as_dir" : 'X\(//\)[^/]' \| \
30308	 X"$as_dir" : 'X\(//\)$' \| \
30309	 X"$as_dir" : 'X\(/\)' \| \
30310	 .     : '\(.\)' 2>/dev/null ||
30311echo X"$as_dir" |
30312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30313  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30314  	  /^X\(\/\/\)$/{ s//\1/; q; }
30315  	  /^X\(\/\).*/{ s//\1/; q; }
30316  	  s/.*/./; q'`
30317    done
30318    test ! -n "$as_dirs" || mkdir $as_dirs
30319  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30320echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30321   { (exit 1); exit 1; }; }; }
30322
30323  ac_builddir=.
30324
30325if test "$ac_dir" != .; then
30326  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30327  # A "../" for each directory in $ac_dir_suffix.
30328  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30329else
30330  ac_dir_suffix= ac_top_builddir=
30331fi
30332
30333case $srcdir in
30334  .)  # No --srcdir option.  We are building in place.
30335    ac_srcdir=.
30336    if test -z "$ac_top_builddir"; then
30337       ac_top_srcdir=.
30338    else
30339       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30340    fi ;;
30341  [\\/]* | ?:[\\/]* )  # Absolute path.
30342    ac_srcdir=$srcdir$ac_dir_suffix;
30343    ac_top_srcdir=$srcdir ;;
30344  *) # Relative path.
30345    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30346    ac_top_srcdir=$ac_top_builddir$srcdir ;;
30347esac
30348
30349# Do not use `cd foo && pwd` to compute absolute paths, because
30350# the directories may not exist.
30351case `pwd` in
30352.) ac_abs_builddir="$ac_dir";;
30353*)
30354  case "$ac_dir" in
30355  .) ac_abs_builddir=`pwd`;;
30356  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30357  *) ac_abs_builddir=`pwd`/"$ac_dir";;
30358  esac;;
30359esac
30360case $ac_abs_builddir in
30361.) ac_abs_top_builddir=${ac_top_builddir}.;;
30362*)
30363  case ${ac_top_builddir}. in
30364  .) ac_abs_top_builddir=$ac_abs_builddir;;
30365  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30366  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30367  esac;;
30368esac
30369case $ac_abs_builddir in
30370.) ac_abs_srcdir=$ac_srcdir;;
30371*)
30372  case $ac_srcdir in
30373  .) ac_abs_srcdir=$ac_abs_builddir;;
30374  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30375  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30376  esac;;
30377esac
30378case $ac_abs_builddir in
30379.) ac_abs_top_srcdir=$ac_top_srcdir;;
30380*)
30381  case $ac_top_srcdir in
30382  .) ac_abs_top_srcdir=$ac_abs_builddir;;
30383  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30384  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30385  esac;;
30386esac
30387
30388
30389  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30390echo "$as_me: executing $ac_dest commands" >&6;}
30391  case $ac_dest in
30392    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30393  # Strip MF so we end up with the name of the file.
30394  mf=`echo "$mf" | sed -e 's/:.*$//'`
30395  # Check whether this is an Automake generated Makefile or not.
30396  # We used to match only the files named `Makefile.in', but
30397  # some people rename them; so instead we look at the file content.
30398  # Grep'ing the first line is not enough: some people post-process
30399  # each Makefile.in and add a new line on top of each file to say so.
30400  # So let's grep whole file.
30401  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30402    dirpart=`(dirname "$mf") 2>/dev/null ||
30403$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30404	 X"$mf" : 'X\(//\)[^/]' \| \
30405	 X"$mf" : 'X\(//\)$' \| \
30406	 X"$mf" : 'X\(/\)' \| \
30407	 .     : '\(.\)' 2>/dev/null ||
30408echo X"$mf" |
30409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30410  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30411  	  /^X\(\/\/\)$/{ s//\1/; q; }
30412  	  /^X\(\/\).*/{ s//\1/; q; }
30413  	  s/.*/./; q'`
30414  else
30415    continue
30416  fi
30417  # Extract the definition of DEPDIR, am__include, and am__quote
30418  # from the Makefile without running `make'.
30419  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30420  test -z "$DEPDIR" && continue
30421  am__include=`sed -n 's/^am__include = //p' < "$mf"`
30422  test -z "am__include" && continue
30423  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30424  # When using ansi2knr, U may be empty or an underscore; expand it
30425  U=`sed -n 's/^U = //p' < "$mf"`
30426  # Find all dependency output files, they are included files with
30427  # $(DEPDIR) in their names.  We invoke sed twice because it is the
30428  # simplest approach to changing $(DEPDIR) to its actual value in the
30429  # expansion.
30430  for file in `sed -n "
30431    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30432       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30433    # Make sure the directory exists.
30434    test -f "$dirpart/$file" && continue
30435    fdir=`(dirname "$file") 2>/dev/null ||
30436$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30437	 X"$file" : 'X\(//\)[^/]' \| \
30438	 X"$file" : 'X\(//\)$' \| \
30439	 X"$file" : 'X\(/\)' \| \
30440	 .     : '\(.\)' 2>/dev/null ||
30441echo X"$file" |
30442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30443  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30444  	  /^X\(\/\/\)$/{ s//\1/; q; }
30445  	  /^X\(\/\).*/{ s//\1/; q; }
30446  	  s/.*/./; q'`
30447    { if $as_mkdir_p; then
30448    mkdir -p $dirpart/$fdir
30449  else
30450    as_dir=$dirpart/$fdir
30451    as_dirs=
30452    while test ! -d "$as_dir"; do
30453      as_dirs="$as_dir $as_dirs"
30454      as_dir=`(dirname "$as_dir") 2>/dev/null ||
30455$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30456	 X"$as_dir" : 'X\(//\)[^/]' \| \
30457	 X"$as_dir" : 'X\(//\)$' \| \
30458	 X"$as_dir" : 'X\(/\)' \| \
30459	 .     : '\(.\)' 2>/dev/null ||
30460echo X"$as_dir" |
30461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30462  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30463  	  /^X\(\/\/\)$/{ s//\1/; q; }
30464  	  /^X\(\/\).*/{ s//\1/; q; }
30465  	  s/.*/./; q'`
30466    done
30467    test ! -n "$as_dirs" || mkdir $as_dirs
30468  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30469echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30470   { (exit 1); exit 1; }; }; }
30471
30472    # echo "creating $dirpart/$file"
30473    echo '# dummy' > "$dirpart/$file"
30474  done
30475done
30476 ;;
30477    default-1 )
30478    for ac_file in $CONFIG_FILES; do
30479      # Support "outfile[:infile[:infile...]]"
30480      case "$ac_file" in
30481        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30482      esac
30483      # PO directories have a Makefile.in generated from Makefile.in.in.
30484      case "$ac_file" in */Makefile.in)
30485        # Adjust a relative srcdir.
30486        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30487        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
30488        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30489        # In autoconf-2.13 it is called $ac_given_srcdir.
30490        # In autoconf-2.50 it is called $srcdir.
30491        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30492        case "$ac_given_srcdir" in
30493          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30494          /*) top_srcdir="$ac_given_srcdir" ;;
30495          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
30496        esac
30497        # Treat a directory as a PO directory if and only if it has a
30498        # POTFILES.in file. This allows packages to have multiple PO
30499        # directories under different names or in different locations.
30500        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30501          rm -f "$ac_dir/POTFILES"
30502          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
30503          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30504          POMAKEFILEDEPS="POTFILES.in"
30505          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30506          # on $ac_dir but don't depend on user-specified configuration
30507          # parameters.
30508          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30509            # The LINGUAS file contains the set of available languages.
30510            if test -n "$OBSOLETE_ALL_LINGUAS"; then
30511              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30512            fi
30513            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30514            # Hide the ALL_LINGUAS assigment from automake.
30515            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30516            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30517          else
30518            # The set of available languages was given in configure.in.
30519            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30520          fi
30521          # Compute POFILES
30522          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30523          # Compute UPDATEPOFILES
30524          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30525          # Compute DUMMYPOFILES
30526          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30527          # Compute GMOFILES
30528          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30529          case "$ac_given_srcdir" in
30530            .) srcdirpre= ;;
30531            *) srcdirpre='$(srcdir)/' ;;
30532          esac
30533          POFILES=
30534          UPDATEPOFILES=
30535          DUMMYPOFILES=
30536          GMOFILES=
30537          for lang in $ALL_LINGUAS; do
30538            POFILES="$POFILES $srcdirpre$lang.po"
30539            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30540            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30541            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30542          done
30543          # CATALOGS depends on both $ac_dir and the user's LINGUAS
30544          # environment variable.
30545          INST_LINGUAS=
30546          if test -n "$ALL_LINGUAS"; then
30547            for presentlang in $ALL_LINGUAS; do
30548              useit=no
30549              if test "%UNSET%" != "$LINGUAS"; then
30550                desiredlanguages="$LINGUAS"
30551              else
30552                desiredlanguages="$ALL_LINGUAS"
30553              fi
30554              for desiredlang in $desiredlanguages; do
30555                # Use the presentlang catalog if desiredlang is
30556                #   a. equal to presentlang, or
30557                #   b. a variant of presentlang (because in this case,
30558                #      presentlang can be used as a fallback for messages
30559                #      which are not translated in the desiredlang catalog).
30560                case "$desiredlang" in
30561                  "$presentlang"*) useit=yes;;
30562                esac
30563              done
30564              if test $useit = yes; then
30565                INST_LINGUAS="$INST_LINGUAS $presentlang"
30566              fi
30567            done
30568          fi
30569          CATALOGS=
30570          if test -n "$INST_LINGUAS"; then
30571            for lang in $INST_LINGUAS; do
30572              CATALOGS="$CATALOGS $lang.gmo"
30573            done
30574          fi
30575          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30576          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"
30577          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30578            if test -f "$f"; then
30579              case "$f" in
30580                *.orig | *.bak | *~) ;;
30581                *) cat "$f" >> "$ac_dir/Makefile" ;;
30582              esac
30583            fi
30584          done
30585        fi
30586        ;;
30587      esac
30588    done ;;
30589    default ) echo timestamp > stamp-h ;;
30590  esac
30591done
30592_ACEOF
30593
30594cat >>$CONFIG_STATUS <<\_ACEOF
30595
30596{ (exit 0); exit 0; }
30597_ACEOF
30598chmod +x $CONFIG_STATUS
30599ac_clean_files=$ac_clean_files_save
30600
30601
30602# configure is writing to config.log, and then calls config.status.
30603# config.status does its own redirection, appending to config.log.
30604# Unfortunately, on DOS this fails, as config.log is still kept open
30605# by configure, so config.status won't be able to write to it; its
30606# output is simply discarded.  So we exec the FD to /dev/null,
30607# effectively closing config.log, so it can be properly (re)opened and
30608# appended to by config.status.  When coming back to configure, we
30609# need to make the FD available again.
30610if test "$no_create" != yes; then
30611  ac_cs_success=:
30612  ac_config_status_args=
30613  test "$silent" = yes &&
30614    ac_config_status_args="$ac_config_status_args --quiet"
30615  exec 5>/dev/null
30616  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30617  exec 5>>config.log
30618  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30619  # would make configure fail if this is the last instruction.
30620  $ac_cs_success || { (exit 1); exit 1; }
30621fi
30622
30623
30624