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="editor/cooledit.c"
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CATALOGS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PYTHON_LIBS PYTHON_INCLUDES rxvt_int16_typedef rxvt_u_int16_typedef rxvt_int32_typedef rxvt_u_int32_typedef rxvt_int64_typedef rxvt_u_int64_typedef rxvt_intp_define rxvt_u_intp_define ALLOCA PTYS_ARE_NUMERIC PTYS_ARE_PTMX PTYS_ARE_SEARCHED PTYS_ARE_PTC PTYS_ARE__GETPTY PTYS_ARE_GETPTY PTYS_ARE_GETPT PTYS_ARE_CLONE DEBUG DLIB DINCLUDE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB 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
1013X features:
1014  --x-includes=DIR    X include files are in DIR
1015  --x-libraries=DIR   X library files are in DIR
1016
1017System types:
1018  --build=BUILD     configure for building on BUILD [guessed]
1019  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1020  --target=TARGET   configure for building compilers for TARGET [HOST]
1021_ACEOF
1022fi
1023
1024if test -n "$ac_init_help"; then
1025
1026  cat <<\_ACEOF
1027
1028Optional Features:
1029  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1030  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1031  --disable-dependency-tracking  speeds up one-time build
1032  --enable-dependency-tracking   do not reject slow dependency extractors
1033  --enable-shared[=PKGS]
1034                          build shared libraries [default=yes]
1035  --enable-static[=PKGS]
1036                          build static libraries [default=yes]
1037  --enable-fast-install[=PKGS]
1038                          optimize for fast installation [default=yes]
1039  --disable-libtool-lock  avoid locking (might break parallel builds)
1040  --enable-NeXT-look      NeXT ish look of the coolwidgets no
1041  --disable-rpath         do not hardcode runtime library paths
1042  --disable-nls           do not use Native Language Support
1043
1044Optional Packages:
1045  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048  --with-pic              try to use only PIC/non-PIC objects [default=use
1049                          both]
1050  --with-tags[=TAGS]
1051                          include additional configurations [automatic]
1052  --with-x                use the X Window System
1053  --with-libs='lib1 ...'  link against additional libs
1054  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1055  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1056  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1057  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
1058  --without-libintl-prefix     don't search for libintl in includedir and libdir
1059
1060Some influential environment variables:
1061  CC          C compiler command
1062  CFLAGS      C compiler flags
1063  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064              nonstandard directory <lib dir>
1065  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066              headers in a nonstandard directory <include dir>
1067  CPP         C preprocessor
1068  CXX         C++ compiler command
1069  CXXFLAGS    C++ compiler flags
1070  CXXCPP      C++ preprocessor
1071  F77         Fortran 77 compiler command
1072  FFLAGS      Fortran 77 compiler flags
1073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081  # If there are subdirs, report their specific --help.
1082  ac_popdir=`pwd`
1083  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084    test -d $ac_dir || continue
1085    ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089  # A "../" for each directory in $ac_dir_suffix.
1090  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092  ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096  .)  # No --srcdir option.  We are building in place.
1097    ac_srcdir=.
1098    if test -z "$ac_top_builddir"; then
1099       ac_top_srcdir=.
1100    else
1101       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102    fi ;;
1103  [\\/]* | ?:[\\/]* )  # Absolute path.
1104    ac_srcdir=$srcdir$ac_dir_suffix;
1105    ac_top_srcdir=$srcdir ;;
1106  *) # Relative path.
1107    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
1110
1111# Do not use `cd foo && pwd` to compute absolute paths, because
1112# the directories may not exist.
1113case `pwd` in
1114.) ac_abs_builddir="$ac_dir";;
1115*)
1116  case "$ac_dir" in
1117  .) ac_abs_builddir=`pwd`;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120  esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_builddir=${ac_top_builddir}.;;
1124*)
1125  case ${ac_top_builddir}. in
1126  .) ac_abs_top_builddir=$ac_abs_builddir;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_srcdir=$ac_srcdir;;
1133*)
1134  case $ac_srcdir in
1135  .) ac_abs_srcdir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138  esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_srcdir=$ac_top_srcdir;;
1142*)
1143  case $ac_top_srcdir in
1144  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147  esac;;
1148esac
1149
1150    cd $ac_dir
1151    # Check for guested configure; otherwise get Cygnus style configure.
1152    if test -f $ac_srcdir/configure.gnu; then
1153      echo
1154      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1155    elif test -f $ac_srcdir/configure; then
1156      echo
1157      $SHELL $ac_srcdir/configure  --help=recursive
1158    elif test -f $ac_srcdir/configure.ac ||
1159	   test -f $ac_srcdir/configure.in; then
1160      echo
1161      $ac_configure --help
1162    else
1163      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164    fi
1165    cd $ac_popdir
1166  done
1167fi
1168
1169test -n "$ac_init_help" && exit 0
1170if $ac_init_version; then
1171  cat <<\_ACEOF
1172
1173Copyright (C) 2003 Free Software Foundation, Inc.
1174This configure script is free software; the Free Software Foundation
1175gives unlimited permission to copy, distribute and modify it.
1176_ACEOF
1177  exit 0
1178fi
1179exec 5>config.log
1180cat >&5 <<_ACEOF
1181This file contains any messages produced by compilers while
1182running configure, to aid debugging if configure makes a mistake.
1183
1184It was created by $as_me, which was
1185generated by GNU Autoconf 2.59.  Invocation command line was
1186
1187  $ $0 $@
1188
1189_ACEOF
1190{
1191cat <<_ASUNAME
1192## --------- ##
1193## Platform. ##
1194## --------- ##
1195
1196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201
1202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1204
1205/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1206/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1209/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1210/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1211/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1212
1213_ASUNAME
1214
1215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1216for as_dir in $PATH
1217do
1218  IFS=$as_save_IFS
1219  test -z "$as_dir" && as_dir=.
1220  echo "PATH: $as_dir"
1221done
1222
1223} >&5
1224
1225cat >&5 <<_ACEOF
1226
1227
1228## ----------- ##
1229## Core tests. ##
1230## ----------- ##
1231
1232_ACEOF
1233
1234
1235# Keep a trace of the command line.
1236# Strip out --no-create and --no-recursion so they do not pile up.
1237# Strip out --silent because we don't want to record it for future runs.
1238# Also quote any args containing shell meta-characters.
1239# Make two passes to allow for proper duplicate-argument suppression.
1240ac_configure_args=
1241ac_configure_args0=
1242ac_configure_args1=
1243ac_sep=
1244ac_must_keep_next=false
1245for ac_pass in 1 2
1246do
1247  for ac_arg
1248  do
1249    case $ac_arg in
1250    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252    | -silent | --silent | --silen | --sile | --sil)
1253      continue ;;
1254    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256    esac
1257    case $ac_pass in
1258    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259    2)
1260      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261      if test $ac_must_keep_next = true; then
1262	ac_must_keep_next=false # Got value, back to normal.
1263      else
1264	case $ac_arg in
1265	  *=* | --config-cache | -C | -disable-* | --disable-* \
1266	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268	  | -with-* | --with-* | -without-* | --without-* | --x)
1269	    case "$ac_configure_args0 " in
1270	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271	    esac
1272	    ;;
1273	  -* ) ac_must_keep_next=true ;;
1274	esac
1275      fi
1276      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277      # Get rid of the leading space.
1278      ac_sep=" "
1279      ;;
1280    esac
1281  done
1282done
1283$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285
1286# When interrupted or exit'd, cleanup temporary files, and complete
1287# config.log.  We remove comments because anyway the quotes in there
1288# would cause problems or look ugly.
1289# WARNING: Be sure not to use single quotes in there, as some shells,
1290# such as our DU 5.0 friend, will then `close' the trap.
1291trap 'exit_status=$?
1292  # Save into config.log some information that might help in debugging.
1293  {
1294    echo
1295
1296    cat <<\_ASBOX
1297## ---------------- ##
1298## Cache variables. ##
1299## ---------------- ##
1300_ASBOX
1301    echo
1302    # The following way of writing the cache mishandles newlines in values,
1303{
1304  (set) 2>&1 |
1305    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306    *ac_space=\ *)
1307      sed -n \
1308	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1310      ;;
1311    *)
1312      sed -n \
1313	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1314      ;;
1315    esac;
1316}
1317    echo
1318
1319    cat <<\_ASBOX
1320## ----------------- ##
1321## Output variables. ##
1322## ----------------- ##
1323_ASBOX
1324    echo
1325    for ac_var in $ac_subst_vars
1326    do
1327      eval ac_val=$`echo $ac_var`
1328      echo "$ac_var='"'"'$ac_val'"'"'"
1329    done | sort
1330    echo
1331
1332    if test -n "$ac_subst_files"; then
1333      cat <<\_ASBOX
1334## ------------- ##
1335## Output files. ##
1336## ------------- ##
1337_ASBOX
1338      echo
1339      for ac_var in $ac_subst_files
1340      do
1341	eval ac_val=$`echo $ac_var`
1342	echo "$ac_var='"'"'$ac_val'"'"'"
1343      done | sort
1344      echo
1345    fi
1346
1347    if test -s confdefs.h; then
1348      cat <<\_ASBOX
1349## ----------- ##
1350## confdefs.h. ##
1351## ----------- ##
1352_ASBOX
1353      echo
1354      sed "/^$/d" confdefs.h | sort
1355      echo
1356    fi
1357    test "$ac_signal" != 0 &&
1358      echo "$as_me: caught signal $ac_signal"
1359    echo "$as_me: exit $exit_status"
1360  } >&5
1361  rm -f core *.core &&
1362  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363    exit $exit_status
1364     ' 0
1365for ac_signal in 1 2 13 15; do
1366  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1367done
1368ac_signal=0
1369
1370# confdefs.h avoids OS command line length limits that DEFS can exceed.
1371rm -rf conftest* confdefs.h
1372# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373echo >confdefs.h
1374
1375# Predefined preprocessor variables.
1376
1377cat >>confdefs.h <<_ACEOF
1378#define PACKAGE_NAME "$PACKAGE_NAME"
1379_ACEOF
1380
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_VERSION "$PACKAGE_VERSION"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_STRING "$PACKAGE_STRING"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1399_ACEOF
1400
1401
1402# Let the site file select an alternate cache file if it wants to.
1403# Prefer explicitly selected file to automatically selected ones.
1404if test -z "$CONFIG_SITE"; then
1405  if test "x$prefix" != xNONE; then
1406    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407  else
1408    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409  fi
1410fi
1411for ac_site_file in $CONFIG_SITE; do
1412  if test -r "$ac_site_file"; then
1413    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414echo "$as_me: loading site script $ac_site_file" >&6;}
1415    sed 's/^/| /' "$ac_site_file" >&5
1416    . "$ac_site_file"
1417  fi
1418done
1419
1420if test -r "$cache_file"; then
1421  # Some versions of bash will fail to source /dev/null (special
1422  # files actually), so we avoid doing that.
1423  if test -f "$cache_file"; then
1424    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425echo "$as_me: loading cache $cache_file" >&6;}
1426    case $cache_file in
1427      [\\/]* | ?:[\\/]* ) . $cache_file;;
1428      *)                      . ./$cache_file;;
1429    esac
1430  fi
1431else
1432  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433echo "$as_me: creating cache $cache_file" >&6;}
1434  >$cache_file
1435fi
1436
1437# Check that the precious variables saved in the cache have kept the same
1438# value.
1439ac_cache_corrupted=false
1440for ac_var in `(set) 2>&1 |
1441	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1442  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443  eval ac_new_set=\$ac_env_${ac_var}_set
1444  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445  eval ac_new_val="\$ac_env_${ac_var}_value"
1446  case $ac_old_set,$ac_new_set in
1447    set,)
1448      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450      ac_cache_corrupted=: ;;
1451    ,set)
1452      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454      ac_cache_corrupted=: ;;
1455    ,);;
1456    *)
1457      if test "x$ac_old_val" != "x$ac_new_val"; then
1458	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1461echo "$as_me:   former value:  $ac_old_val" >&2;}
1462	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1463echo "$as_me:   current value: $ac_new_val" >&2;}
1464	ac_cache_corrupted=:
1465      fi;;
1466  esac
1467  # Pass precious variables to config.status.
1468  if test "$ac_new_set" = set; then
1469    case $ac_new_val in
1470    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472    *) ac_arg=$ac_var=$ac_new_val ;;
1473    esac
1474    case " $ac_configure_args " in
1475      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1476      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1477    esac
1478  fi
1479done
1480if $ac_cache_corrupted; then
1481  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485   { (exit 1); exit 1; }; }
1486fi
1487
1488ac_ext=c
1489ac_cpp='$CPP $CPPFLAGS'
1490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492ac_compiler_gnu=$ac_cv_c_compiler_gnu
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513ac_aux_dir=
1514for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1515  if test -f $ac_dir/install-sh; then
1516    ac_aux_dir=$ac_dir
1517    ac_install_sh="$ac_aux_dir/install-sh -c"
1518    break
1519  elif test -f $ac_dir/install.sh; then
1520    ac_aux_dir=$ac_dir
1521    ac_install_sh="$ac_aux_dir/install.sh -c"
1522    break
1523  elif test -f $ac_dir/shtool; then
1524    ac_aux_dir=$ac_dir
1525    ac_install_sh="$ac_aux_dir/shtool install -c"
1526    break
1527  fi
1528done
1529if test -z "$ac_aux_dir"; then
1530  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1531echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1532   { (exit 1); exit 1; }; }
1533fi
1534ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1535ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1536ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1537
1538# Make sure we can run config.sub.
1539$ac_config_sub sun4 >/dev/null 2>&1 ||
1540  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1541echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1542   { (exit 1); exit 1; }; }
1543
1544echo "$as_me:$LINENO: checking build system type" >&5
1545echo $ECHO_N "checking build system type... $ECHO_C" >&6
1546if test "${ac_cv_build+set}" = set; then
1547  echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549  ac_cv_build_alias=$build_alias
1550test -z "$ac_cv_build_alias" &&
1551  ac_cv_build_alias=`$ac_config_guess`
1552test -z "$ac_cv_build_alias" &&
1553  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1554echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1555   { (exit 1); exit 1; }; }
1556ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1557  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1558echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1559   { (exit 1); exit 1; }; }
1560
1561fi
1562echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1563echo "${ECHO_T}$ac_cv_build" >&6
1564build=$ac_cv_build
1565build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
1569
1570echo "$as_me:$LINENO: checking host system type" >&5
1571echo $ECHO_N "checking host system type... $ECHO_C" >&6
1572if test "${ac_cv_host+set}" = set; then
1573  echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575  ac_cv_host_alias=$host_alias
1576test -z "$ac_cv_host_alias" &&
1577  ac_cv_host_alias=$ac_cv_build_alias
1578ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1579  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1580echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1581   { (exit 1); exit 1; }; }
1582
1583fi
1584echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1585echo "${ECHO_T}$ac_cv_host" >&6
1586host=$ac_cv_host
1587host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592echo "$as_me:$LINENO: checking target system type" >&5
1593echo $ECHO_N "checking target system type... $ECHO_C" >&6
1594if test "${ac_cv_target+set}" = set; then
1595  echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597  ac_cv_target_alias=$target_alias
1598test "x$ac_cv_target_alias" = "x" &&
1599  ac_cv_target_alias=$ac_cv_host_alias
1600ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1601  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1603   { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1607echo "${ECHO_T}$ac_cv_target" >&6
1608target=$ac_cv_target
1609target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614# The aliases save the names the user supplied, while $host etc.
1615# will get canonicalized.
1616test -n "$target_alias" &&
1617  test "$program_prefix$program_suffix$program_transform_name" = \
1618    NONENONEs,x,x, &&
1619  program_prefix=${target_alias}-
1620
1621cat >>confdefs.h <<_ACEOF
1622#define TARGET_MACHINE "${target_cpu}-${target_vendor}-${target_os}"
1623_ACEOF
1624
1625
1626am__api_version="1.9"
1627# Find a good install program.  We prefer a C program (faster),
1628# so one script is as good as another.  But avoid the broken or
1629# incompatible versions:
1630# SysV /etc/install, /usr/sbin/install
1631# SunOS /usr/etc/install
1632# IRIX /sbin/install
1633# AIX /bin/install
1634# AmigaOS /C/install, which installs bootblocks on floppy discs
1635# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1636# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1637# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1638# OS/2's system install, which has a completely different semantic
1639# ./install, which can be erroneously created by make from ./install.sh.
1640echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1641echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1642if test -z "$INSTALL"; then
1643if test "${ac_cv_path_install+set}" = set; then
1644  echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649  IFS=$as_save_IFS
1650  test -z "$as_dir" && as_dir=.
1651  # Account for people who put trailing slashes in PATH elements.
1652case $as_dir/ in
1653  ./ | .// | /cC/* | \
1654  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1655  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1656  /usr/ucb/* ) ;;
1657  *)
1658    # OSF1 and SCO ODT 3.0 have their own names for install.
1659    # Don't use installbsd from OSF since it installs stuff as root
1660    # by default.
1661    for ac_prog in ginstall scoinst install; do
1662      for ac_exec_ext in '' $ac_executable_extensions; do
1663	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1664	  if test $ac_prog = install &&
1665	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1666	    # AIX install.  It has an incompatible calling convention.
1667	    :
1668	  elif test $ac_prog = install &&
1669	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1670	    # program-specific install script used by HP pwplus--don't use.
1671	    :
1672	  else
1673	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1674	    break 3
1675	  fi
1676	fi
1677      done
1678    done
1679    ;;
1680esac
1681done
1682
1683
1684fi
1685  if test "${ac_cv_path_install+set}" = set; then
1686    INSTALL=$ac_cv_path_install
1687  else
1688    # As a last resort, use the slow shell script.  We don't cache a
1689    # path for INSTALL within a source directory, because that will
1690    # break other packages using the cache if that directory is
1691    # removed, or if the path is relative.
1692    INSTALL=$ac_install_sh
1693  fi
1694fi
1695echo "$as_me:$LINENO: result: $INSTALL" >&5
1696echo "${ECHO_T}$INSTALL" >&6
1697
1698# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1699# It thinks the first close brace ends the variable substitution.
1700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1701
1702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1703
1704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1705
1706echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1707echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1708# Just in case
1709sleep 1
1710echo timestamp > conftest.file
1711# Do `set' in a subshell so we don't clobber the current shell's
1712# arguments.  Must try -L first in case configure is actually a
1713# symlink; some systems play weird games with the mod time of symlinks
1714# (eg FreeBSD returns the mod time of the symlink's containing
1715# directory).
1716if (
1717   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1718   if test "$*" = "X"; then
1719      # -L didn't work.
1720      set X `ls -t $srcdir/configure conftest.file`
1721   fi
1722   rm -f conftest.file
1723   if test "$*" != "X $srcdir/configure conftest.file" \
1724      && test "$*" != "X conftest.file $srcdir/configure"; then
1725
1726      # If neither matched, then we have a broken ls.  This can happen
1727      # if, for instance, CONFIG_SHELL is bash and it inherits a
1728      # broken ls alias from the environment.  This has actually
1729      # happened.  Such a system could not be considered "sane".
1730      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1731alias in your environment" >&5
1732echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1733alias in your environment" >&2;}
1734   { (exit 1); exit 1; }; }
1735   fi
1736
1737   test "$2" = conftest.file
1738   )
1739then
1740   # Ok.
1741   :
1742else
1743   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1744Check your system clock" >&5
1745echo "$as_me: error: newly created file is older than distributed files!
1746Check your system clock" >&2;}
1747   { (exit 1); exit 1; }; }
1748fi
1749echo "$as_me:$LINENO: result: yes" >&5
1750echo "${ECHO_T}yes" >&6
1751test "$program_prefix" != NONE &&
1752  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1753# Use a double $ so make ignores it.
1754test "$program_suffix" != NONE &&
1755  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1756# Double any \ or $.  echo might interpret backslashes.
1757# By default was `s,x,x', remove it if useless.
1758cat <<\_ACEOF >conftest.sed
1759s/[\\$]/&&/g;s/;s,x,x,$//
1760_ACEOF
1761program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1762rm conftest.sed
1763
1764# expand $ac_aux_dir to an absolute path
1765am_aux_dir=`cd $ac_aux_dir && pwd`
1766
1767test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1768# Use eval to expand $SHELL
1769if eval "$MISSING --run true"; then
1770  am_missing_run="$MISSING --run "
1771else
1772  am_missing_run=
1773  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1774echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1775fi
1776
1777if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1778  # We used to keeping the `.' as first argument, in order to
1779  # allow $(mkdir_p) to be used without argument.  As in
1780  #   $(mkdir_p) $(somedir)
1781  # where $(somedir) is conditionally defined.  However this is wrong
1782  # for two reasons:
1783  #  1. if the package is installed by a user who cannot write `.'
1784  #     make install will fail,
1785  #  2. the above comment should most certainly read
1786  #     $(mkdir_p) $(DESTDIR)$(somedir)
1787  #     so it does not work when $(somedir) is undefined and
1788  #     $(DESTDIR) is not.
1789  #  To support the latter case, we have to write
1790  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1791  #  so the `.' trick is pointless.
1792  mkdir_p='mkdir -p --'
1793else
1794  # On NextStep and OpenStep, the `mkdir' command does not
1795  # recognize any option.  It will interpret all options as
1796  # directories to create, and then abort because `.' already
1797  # exists.
1798  for d in ./-p ./--version;
1799  do
1800    test -d $d && rmdir $d
1801  done
1802  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1803  if test -f "$ac_aux_dir/mkinstalldirs"; then
1804    mkdir_p='$(mkinstalldirs)'
1805  else
1806    mkdir_p='$(install_sh) -d'
1807  fi
1808fi
1809
1810for ac_prog in gawk mawk nawk awk
1811do
1812  # Extract the first word of "$ac_prog", so it can be a program name with args.
1813set dummy $ac_prog; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_AWK+set}" = set; then
1817  echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819  if test -n "$AWK"; then
1820  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825  IFS=$as_save_IFS
1826  test -z "$as_dir" && as_dir=.
1827  for ac_exec_ext in '' $ac_executable_extensions; do
1828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829    ac_cv_prog_AWK="$ac_prog"
1830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831    break 2
1832  fi
1833done
1834done
1835
1836fi
1837fi
1838AWK=$ac_cv_prog_AWK
1839if test -n "$AWK"; then
1840  echo "$as_me:$LINENO: result: $AWK" >&5
1841echo "${ECHO_T}$AWK" >&6
1842else
1843  echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847  test -n "$AWK" && break
1848done
1849
1850echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1851echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1852set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1853if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1854  echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856  cat >conftest.make <<\_ACEOF
1857all:
1858	@echo 'ac_maketemp="$(MAKE)"'
1859_ACEOF
1860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1861eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1862if test -n "$ac_maketemp"; then
1863  eval ac_cv_prog_make_${ac_make}_set=yes
1864else
1865  eval ac_cv_prog_make_${ac_make}_set=no
1866fi
1867rm -f conftest.make
1868fi
1869if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1870  echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6
1872  SET_MAKE=
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876  SET_MAKE="MAKE=${MAKE-make}"
1877fi
1878
1879rm -rf .tst 2>/dev/null
1880mkdir .tst 2>/dev/null
1881if test -d .tst; then
1882  am__leading_dot=.
1883else
1884  am__leading_dot=_
1885fi
1886rmdir .tst 2>/dev/null
1887
1888# test to see if srcdir already configured
1889if test "`cd $srcdir && pwd`" != "`pwd`" &&
1890   test -f $srcdir/config.status; then
1891  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1892echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1893   { (exit 1); exit 1; }; }
1894fi
1895
1896# test whether we have cygpath
1897if test -z "$CYGPATH_W"; then
1898  if (cygpath --version) >/dev/null 2>/dev/null; then
1899    CYGPATH_W='cygpath -w'
1900  else
1901    CYGPATH_W=echo
1902  fi
1903fi
1904
1905
1906# Define the identity of the package.
1907 PACKAGE=cooledit
1908 VERSION=3.17.20
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE "$PACKAGE"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define VERSION "$VERSION"
1918_ACEOF
1919
1920# Some tools Automake needs.
1921
1922ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1923
1924
1925AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1926
1927
1928AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1929
1930
1931AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1932
1933
1934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1935
1936install_sh=${install_sh-"$am_aux_dir/install-sh"}
1937
1938# Installed binaries are usually stripped using `strip' when the user
1939# run `make install-strip'.  However `strip' might not be the right
1940# tool to use in cross-compilation environments, therefore Automake
1941# will honor the `STRIP' environment variable to overrule this program.
1942if test "$cross_compiling" != no; then
1943  if test -n "$ac_tool_prefix"; then
1944  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1945set dummy ${ac_tool_prefix}strip; ac_word=$2
1946echo "$as_me:$LINENO: checking for $ac_word" >&5
1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948if test "${ac_cv_prog_STRIP+set}" = set; then
1949  echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951  if test -n "$STRIP"; then
1952  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1953else
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963    break 2
1964  fi
1965done
1966done
1967
1968fi
1969fi
1970STRIP=$ac_cv_prog_STRIP
1971if test -n "$STRIP"; then
1972  echo "$as_me:$LINENO: result: $STRIP" >&5
1973echo "${ECHO_T}$STRIP" >&6
1974else
1975  echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6
1977fi
1978
1979fi
1980if test -z "$ac_cv_prog_STRIP"; then
1981  ac_ct_STRIP=$STRIP
1982  # Extract the first word of "strip", so it can be a program name with args.
1983set dummy strip; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  if test -n "$ac_ct_STRIP"; then
1990  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  for ac_exec_ext in '' $ac_executable_extensions; do
1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999    ac_cv_prog_ac_ct_STRIP="strip"
2000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001    break 2
2002  fi
2003done
2004done
2005
2006  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2007fi
2008fi
2009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2010if test -n "$ac_ct_STRIP"; then
2011  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2012echo "${ECHO_T}$ac_ct_STRIP" >&6
2013else
2014  echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018  STRIP=$ac_ct_STRIP
2019else
2020  STRIP="$ac_cv_prog_STRIP"
2021fi
2022
2023fi
2024INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2025
2026# We need awk for the "check" target.  The system "awk" is bad on
2027# some platforms.
2028# Always define AMTAR for backward compatibility.
2029
2030AMTAR=${AMTAR-"${am_missing_run}tar"}
2031
2032am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2033
2034
2035
2036
2037
2038          ac_config_headers="$ac_config_headers config.h"
2039
2040
2041echo
2042echo "Now configuring $PACKAGE-$VERSION"
2043echo
2044
2045
2046if test -n "`echo ${target_os} | grep sunos`" ; then
2047
2048cat >>confdefs.h <<\_ACEOF
2049#define CRASHES_ON_STARTUP 1
2050_ACEOF
2051
2052fi
2053
2054if test -n "`echo ${target_os} | grep 'powerpc.*linux'`" ; then
2055
2056cat >>confdefs.h <<\_ACEOF
2057#define CRASHES_ON_STARTUP 1
2058_ACEOF
2059
2060fi
2061
2062DEPDIR="${am__leading_dot}deps"
2063
2064          ac_config_commands="$ac_config_commands depfiles"
2065
2066
2067am_make=${MAKE-make}
2068cat > confinc << 'END'
2069am__doit:
2070	@echo done
2071.PHONY: am__doit
2072END
2073# If we don't find an include directive, just comment out the code.
2074echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2075echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2076am__include="#"
2077am__quote=
2078_am_result=none
2079# First try GNU make style include.
2080echo "include confinc" > confmf
2081# We grep out `Entering directory' and `Leaving directory'
2082# messages which can occur if `w' ends up in MAKEFLAGS.
2083# In particular we don't look at `^make:' because GNU make might
2084# be invoked under some other name (usually "gmake"), in which
2085# case it prints its new name instead of `make'.
2086if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2087   am__include=include
2088   am__quote=
2089   _am_result=GNU
2090fi
2091# Now try BSD make style include.
2092if test "$am__include" = "#"; then
2093   echo '.include "confinc"' > confmf
2094   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2095      am__include=.include
2096      am__quote="\""
2097      _am_result=BSD
2098   fi
2099fi
2100
2101
2102echo "$as_me:$LINENO: result: $_am_result" >&5
2103echo "${ECHO_T}$_am_result" >&6
2104rm -f confinc confmf
2105
2106# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2107if test "${enable_dependency_tracking+set}" = set; then
2108  enableval="$enable_dependency_tracking"
2109
2110fi;
2111if test "x$enable_dependency_tracking" != xno; then
2112  am_depcomp="$ac_aux_dir/depcomp"
2113  AMDEPBACKSLASH='\'
2114fi
2115
2116
2117if test "x$enable_dependency_tracking" != xno; then
2118  AMDEP_TRUE=
2119  AMDEP_FALSE='#'
2120else
2121  AMDEP_TRUE='#'
2122  AMDEP_FALSE=
2123fi
2124
2125
2126
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132if test -n "$ac_tool_prefix"; then
2133  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2134set dummy ${ac_tool_prefix}gcc; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_CC+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test -n "$CC"; then
2141  ac_cv_prog_CC="$CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152    break 2
2153  fi
2154done
2155done
2156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
2161  echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6
2163else
2164  echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168fi
2169if test -z "$ac_cv_prog_CC"; then
2170  ac_ct_CC=$CC
2171  # Extract the first word of "gcc", so it can be a program name with args.
2172set dummy gcc; ac_word=$2
2173echo "$as_me:$LINENO: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176  echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178  if test -n "$ac_ct_CC"; then
2179  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180else
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184  IFS=$as_save_IFS
2185  test -z "$as_dir" && as_dir=.
2186  for ac_exec_ext in '' $ac_executable_extensions; do
2187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188    ac_cv_prog_ac_ct_CC="gcc"
2189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190    break 2
2191  fi
2192done
2193done
2194
2195fi
2196fi
2197ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198if test -n "$ac_ct_CC"; then
2199  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200echo "${ECHO_T}$ac_ct_CC" >&6
2201else
2202  echo "$as_me:$LINENO: result: no" >&5
2203echo "${ECHO_T}no" >&6
2204fi
2205
2206  CC=$ac_ct_CC
2207else
2208  CC="$ac_cv_prog_CC"
2209fi
2210
2211if test -z "$CC"; then
2212  if test -n "$ac_tool_prefix"; then
2213  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2214set dummy ${ac_tool_prefix}cc; ac_word=$2
2215echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217if test "${ac_cv_prog_CC+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$CC"; then
2221  ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230    ac_cv_prog_CC="${ac_tool_prefix}cc"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236
2237fi
2238fi
2239CC=$ac_cv_prog_CC
2240if test -n "$CC"; then
2241  echo "$as_me:$LINENO: result: $CC" >&5
2242echo "${ECHO_T}$CC" >&6
2243else
2244  echo "$as_me:$LINENO: result: no" >&5
2245echo "${ECHO_T}no" >&6
2246fi
2247
2248fi
2249if test -z "$ac_cv_prog_CC"; then
2250  ac_ct_CC=$CC
2251  # Extract the first word of "cc", so it can be a program name with args.
2252set dummy cc; ac_word=$2
2253echo "$as_me:$LINENO: checking for $ac_word" >&5
2254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256  echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
2258  if test -n "$ac_ct_CC"; then
2259  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260else
2261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262for as_dir in $PATH
2263do
2264  IFS=$as_save_IFS
2265  test -z "$as_dir" && as_dir=.
2266  for ac_exec_ext in '' $ac_executable_extensions; do
2267  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268    ac_cv_prog_ac_ct_CC="cc"
2269    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270    break 2
2271  fi
2272done
2273done
2274
2275fi
2276fi
2277ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278if test -n "$ac_ct_CC"; then
2279  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280echo "${ECHO_T}$ac_ct_CC" >&6
2281else
2282  echo "$as_me:$LINENO: result: no" >&5
2283echo "${ECHO_T}no" >&6
2284fi
2285
2286  CC=$ac_ct_CC
2287else
2288  CC="$ac_cv_prog_CC"
2289fi
2290
2291fi
2292if test -z "$CC"; then
2293  # Extract the first word of "cc", so it can be a program name with args.
2294set dummy cc; ac_word=$2
2295echo "$as_me:$LINENO: checking for $ac_word" >&5
2296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297if test "${ac_cv_prog_CC+set}" = set; then
2298  echo $ECHO_N "(cached) $ECHO_C" >&6
2299else
2300  if test -n "$CC"; then
2301  ac_cv_prog_CC="$CC" # Let the user override the test.
2302else
2303  ac_prog_rejected=no
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307  IFS=$as_save_IFS
2308  test -z "$as_dir" && as_dir=.
2309  for ac_exec_ext in '' $ac_executable_extensions; do
2310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2312       ac_prog_rejected=yes
2313       continue
2314     fi
2315    ac_cv_prog_CC="cc"
2316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317    break 2
2318  fi
2319done
2320done
2321
2322if test $ac_prog_rejected = yes; then
2323  # We found a bogon in the path, so make sure we never use it.
2324  set dummy $ac_cv_prog_CC
2325  shift
2326  if test $# != 0; then
2327    # We chose a different compiler from the bogus one.
2328    # However, it has the same basename, so the bogon will be chosen
2329    # first if we set CC to just the basename; use the full file name.
2330    shift
2331    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2332  fi
2333fi
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
2338  echo "$as_me:$LINENO: result: $CC" >&5
2339echo "${ECHO_T}$CC" >&6
2340else
2341  echo "$as_me:$LINENO: result: no" >&5
2342echo "${ECHO_T}no" >&6
2343fi
2344
2345fi
2346if test -z "$CC"; then
2347  if test -n "$ac_tool_prefix"; then
2348  for ac_prog in cl
2349  do
2350    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2352echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354if test "${ac_cv_prog_CC+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  if test -n "$CC"; then
2358  ac_cv_prog_CC="$CC" # Let the user override the test.
2359else
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363  IFS=$as_save_IFS
2364  test -z "$as_dir" && as_dir=.
2365  for ac_exec_ext in '' $ac_executable_extensions; do
2366  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2368    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369    break 2
2370  fi
2371done
2372done
2373
2374fi
2375fi
2376CC=$ac_cv_prog_CC
2377if test -n "$CC"; then
2378  echo "$as_me:$LINENO: result: $CC" >&5
2379echo "${ECHO_T}$CC" >&6
2380else
2381  echo "$as_me:$LINENO: result: no" >&5
2382echo "${ECHO_T}no" >&6
2383fi
2384
2385    test -n "$CC" && break
2386  done
2387fi
2388if test -z "$CC"; then
2389  ac_ct_CC=$CC
2390  for ac_prog in cl
2391do
2392  # Extract the first word of "$ac_prog", so it can be a program name with args.
2393set dummy $ac_prog; ac_word=$2
2394echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  if test -n "$ac_ct_CC"; then
2400  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407  for ac_exec_ext in '' $ac_executable_extensions; do
2408  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409    ac_cv_prog_ac_ct_CC="$ac_prog"
2410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411    break 2
2412  fi
2413done
2414done
2415
2416fi
2417fi
2418ac_ct_CC=$ac_cv_prog_ac_ct_CC
2419if test -n "$ac_ct_CC"; then
2420  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2421echo "${ECHO_T}$ac_ct_CC" >&6
2422else
2423  echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6
2425fi
2426
2427  test -n "$ac_ct_CC" && break
2428done
2429
2430  CC=$ac_ct_CC
2431fi
2432
2433fi
2434
2435
2436test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2437See \`config.log' for more details." >&5
2438echo "$as_me: error: no acceptable C compiler found in \$PATH
2439See \`config.log' for more details." >&2;}
2440   { (exit 1); exit 1; }; }
2441
2442# Provide some information about the compiler.
2443echo "$as_me:$LINENO:" \
2444     "checking for C compiler version" >&5
2445ac_compiler=`set X $ac_compile; echo $2`
2446{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2447  (eval $ac_compiler --version </dev/null >&5) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }
2451{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2452  (eval $ac_compiler -v </dev/null >&5) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }
2456{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2457  (eval $ac_compiler -V </dev/null >&5) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }
2461
2462cat >conftest.$ac_ext <<_ACEOF
2463/* confdefs.h.  */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h.  */
2468
2469int
2470main ()
2471{
2472
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477ac_clean_files_save=$ac_clean_files
2478ac_clean_files="$ac_clean_files a.out a.exe b.out"
2479# Try to create an executable without -o first, disregard a.out.
2480# It will help us diagnose broken compilers, and finding out an intuition
2481# of exeext.
2482echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2483echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2484ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2486  (eval $ac_link_default) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; then
2490  # Find the output, starting from the most likely.  This scheme is
2491# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2492# resort.
2493
2494# Be careful to initialize this variable, since it used to be cached.
2495# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2496ac_cv_exeext=
2497# b.out is created by i960 compilers.
2498for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2499do
2500  test -f "$ac_file" || continue
2501  case $ac_file in
2502    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2503	;;
2504    conftest.$ac_ext )
2505	# This is the source file.
2506	;;
2507    [ab].out )
2508	# We found the default executable, but exeext='' is most
2509	# certainly right.
2510	break;;
2511    *.* )
2512	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513	# FIXME: I believe we export ac_cv_exeext for Libtool,
2514	# but it would be cool to find out if it's true.  Does anybody
2515	# maintain Libtool? --akim.
2516	export ac_cv_exeext
2517	break;;
2518    * )
2519	break;;
2520  esac
2521done
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: C compiler cannot create executables
2529See \`config.log' for more details." >&2;}
2530   { (exit 77); exit 77; }; }
2531fi
2532
2533ac_exeext=$ac_cv_exeext
2534echo "$as_me:$LINENO: result: $ac_file" >&5
2535echo "${ECHO_T}$ac_file" >&6
2536
2537# Check the compiler produces executables we can run.  If not, either
2538# the compiler is broken, or we cross compile.
2539echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2541# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542# If not cross compiling, check that we can run a simple program.
2543if test "$cross_compiling" != yes; then
2544  if { ac_try='./$ac_file'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; }; then
2550    cross_compiling=no
2551  else
2552    if test "$cross_compiling" = maybe; then
2553	cross_compiling=yes
2554    else
2555	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2556If you meant to cross compile, use \`--host'.
2557See \`config.log' for more details." >&5
2558echo "$as_me: error: cannot run C compiled programs.
2559If you meant to cross compile, use \`--host'.
2560See \`config.log' for more details." >&2;}
2561   { (exit 1); exit 1; }; }
2562    fi
2563  fi
2564fi
2565echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567
2568rm -f a.out a.exe conftest$ac_cv_exeext b.out
2569ac_clean_files=$ac_clean_files_save
2570# Check the compiler produces executables we can run.  If not, either
2571# the compiler is broken, or we cross compile.
2572echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2573echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2574echo "$as_me:$LINENO: result: $cross_compiling" >&5
2575echo "${ECHO_T}$cross_compiling" >&6
2576
2577echo "$as_me:$LINENO: checking for suffix of executables" >&5
2578echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580  (eval $ac_link) 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; then
2584  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2585# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2586# work properly (i.e., refer to `conftest.exe'), while it won't with
2587# `rm'.
2588for ac_file in conftest.exe conftest conftest.*; do
2589  test -f "$ac_file" || continue
2590  case $ac_file in
2591    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2592    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593	  export ac_cv_exeext
2594	  break;;
2595    * ) break;;
2596  esac
2597done
2598else
2599  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602See \`config.log' for more details." >&2;}
2603   { (exit 1); exit 1; }; }
2604fi
2605
2606rm -f conftest$ac_cv_exeext
2607echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608echo "${ECHO_T}$ac_cv_exeext" >&6
2609
2610rm -f conftest.$ac_ext
2611EXEEXT=$ac_cv_exeext
2612ac_exeext=$EXEEXT
2613echo "$as_me:$LINENO: checking for suffix of object files" >&5
2614echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2615if test "${ac_cv_objext+set}" = set; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624
2625int
2626main ()
2627{
2628
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.o conftest.obj
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; then
2639  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2640  case $ac_file in
2641    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2642    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2643       break;;
2644  esac
2645done
2646else
2647  echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2651See \`config.log' for more details." >&5
2652echo "$as_me: error: cannot compute suffix of object files: cannot compile
2653See \`config.log' for more details." >&2;}
2654   { (exit 1); exit 1; }; }
2655fi
2656
2657rm -f conftest.$ac_cv_objext conftest.$ac_ext
2658fi
2659echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2660echo "${ECHO_T}$ac_cv_objext" >&6
2661OBJEXT=$ac_cv_objext
2662ac_objext=$OBJEXT
2663echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2664echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2665if test "${ac_cv_c_compiler_gnu+set}" = set; then
2666  echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674
2675int
2676main ()
2677{
2678#ifndef __GNUC__
2679       choke me
2680#endif
2681
2682  ;
2683  return 0;
2684}
2685_ACEOF
2686rm -f conftest.$ac_objext
2687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688  (eval $ac_compile) 2>conftest.er1
2689  ac_status=$?
2690  grep -v '^ *+' conftest.er1 >conftest.err
2691  rm -f conftest.er1
2692  cat conftest.err >&5
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); } &&
2695	 { ac_try='test -z "$ac_c_werror_flag"
2696			 || test ! -s conftest.err'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; } &&
2702	 { ac_try='test -s conftest.$ac_objext'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; }; then
2708  ac_compiler_gnu=yes
2709else
2710  echo "$as_me: failed program was:" >&5
2711sed 's/^/| /' conftest.$ac_ext >&5
2712
2713ac_compiler_gnu=no
2714fi
2715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716ac_cv_c_compiler_gnu=$ac_compiler_gnu
2717
2718fi
2719echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2720echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2721GCC=`test $ac_compiler_gnu = yes && echo yes`
2722ac_test_CFLAGS=${CFLAGS+set}
2723ac_save_CFLAGS=$CFLAGS
2724CFLAGS="-g"
2725echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2726echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2727if test "${ac_cv_prog_cc_g+set}" = set; then
2728  echo $ECHO_N "(cached) $ECHO_C" >&6
2729else
2730  cat >conftest.$ac_ext <<_ACEOF
2731/* confdefs.h.  */
2732_ACEOF
2733cat confdefs.h >>conftest.$ac_ext
2734cat >>conftest.$ac_ext <<_ACEOF
2735/* end confdefs.h.  */
2736
2737int
2738main ()
2739{
2740
2741  ;
2742  return 0;
2743}
2744_ACEOF
2745rm -f conftest.$ac_objext
2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747  (eval $ac_compile) 2>conftest.er1
2748  ac_status=$?
2749  grep -v '^ *+' conftest.er1 >conftest.err
2750  rm -f conftest.er1
2751  cat conftest.err >&5
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); } &&
2754	 { ac_try='test -z "$ac_c_werror_flag"
2755			 || test ! -s conftest.err'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; } &&
2761	 { ac_try='test -s conftest.$ac_objext'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; }; then
2767  ac_cv_prog_cc_g=yes
2768else
2769  echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772ac_cv_prog_cc_g=no
2773fi
2774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775fi
2776echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2777echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2778if test "$ac_test_CFLAGS" = set; then
2779  CFLAGS=$ac_save_CFLAGS
2780elif test $ac_cv_prog_cc_g = yes; then
2781  if test "$GCC" = yes; then
2782    CFLAGS="-g -O2"
2783  else
2784    CFLAGS="-g"
2785  fi
2786else
2787  if test "$GCC" = yes; then
2788    CFLAGS="-O2"
2789  else
2790    CFLAGS=
2791  fi
2792fi
2793echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2794echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2795if test "${ac_cv_prog_cc_stdc+set}" = set; then
2796  echo $ECHO_N "(cached) $ECHO_C" >&6
2797else
2798  ac_cv_prog_cc_stdc=no
2799ac_save_CC=$CC
2800cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806#include <stdarg.h>
2807#include <stdio.h>
2808#include <sys/types.h>
2809#include <sys/stat.h>
2810/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2811struct buf { int x; };
2812FILE * (*rcsopen) (struct buf *, struct stat *, int);
2813static char *e (p, i)
2814     char **p;
2815     int i;
2816{
2817  return p[i];
2818}
2819static char *f (char * (*g) (char **, int), char **p, ...)
2820{
2821  char *s;
2822  va_list v;
2823  va_start (v,p);
2824  s = g (p, va_arg (v,int));
2825  va_end (v);
2826  return s;
2827}
2828
2829/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2830   function prototypes and stuff, but not '\xHH' hex character constants.
2831   These don't provoke an error unfortunately, instead are silently treated
2832   as 'x'.  The following induces an error, until -std1 is added to get
2833   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2834   array size at least.  It's necessary to write '\x00'==0 to get something
2835   that's true only with -std1.  */
2836int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2837
2838int test (int i, double x);
2839struct s1 {int (*f) (int a);};
2840struct s2 {int (*f) (double a);};
2841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2842int argc;
2843char **argv;
2844int
2845main ()
2846{
2847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2848  ;
2849  return 0;
2850}
2851_ACEOF
2852# Don't try gcc -ansi; that turns off useful extensions and
2853# breaks some systems' header files.
2854# AIX			-qlanglvl=ansi
2855# Ultrix and OSF/1	-std1
2856# HP-UX 10.20 and later	-Ae
2857# HP-UX older versions	-Aa -D_HPUX_SOURCE
2858# SVR4			-Xc -D__EXTENSIONS__
2859for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2860do
2861  CC="$ac_save_CC $ac_arg"
2862  rm -f conftest.$ac_objext
2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864  (eval $ac_compile) 2>conftest.er1
2865  ac_status=$?
2866  grep -v '^ *+' conftest.er1 >conftest.err
2867  rm -f conftest.er1
2868  cat conftest.err >&5
2869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870  (exit $ac_status); } &&
2871	 { ac_try='test -z "$ac_c_werror_flag"
2872			 || test ! -s conftest.err'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; } &&
2878	 { ac_try='test -s conftest.$ac_objext'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; }; then
2884  ac_cv_prog_cc_stdc=$ac_arg
2885break
2886else
2887  echo "$as_me: failed program was:" >&5
2888sed 's/^/| /' conftest.$ac_ext >&5
2889
2890fi
2891rm -f conftest.err conftest.$ac_objext
2892done
2893rm -f conftest.$ac_ext conftest.$ac_objext
2894CC=$ac_save_CC
2895
2896fi
2897
2898case "x$ac_cv_prog_cc_stdc" in
2899  x|xno)
2900    echo "$as_me:$LINENO: result: none needed" >&5
2901echo "${ECHO_T}none needed" >&6 ;;
2902  *)
2903    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2904echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2905    CC="$CC $ac_cv_prog_cc_stdc" ;;
2906esac
2907
2908# Some people use a C++ compiler to compile C.  Since we use `exit',
2909# in C++ we need to declare it.  In case someone uses the same compiler
2910# for both compiling C and C++ we need to have the C++ compiler decide
2911# the declaration of exit, since it's the most demanding environment.
2912cat >conftest.$ac_ext <<_ACEOF
2913#ifndef __cplusplus
2914  choke me
2915#endif
2916_ACEOF
2917rm -f conftest.$ac_objext
2918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919  (eval $ac_compile) 2>conftest.er1
2920  ac_status=$?
2921  grep -v '^ *+' conftest.er1 >conftest.err
2922  rm -f conftest.er1
2923  cat conftest.err >&5
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); } &&
2926	 { ac_try='test -z "$ac_c_werror_flag"
2927			 || test ! -s conftest.err'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; } &&
2933	 { ac_try='test -s conftest.$ac_objext'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; }; then
2939  for ac_declaration in \
2940   '' \
2941   'extern "C" void std::exit (int) throw (); using std::exit;' \
2942   'extern "C" void std::exit (int); using std::exit;' \
2943   'extern "C" void exit (int) throw ();' \
2944   'extern "C" void exit (int);' \
2945   'void exit (int);'
2946do
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953$ac_declaration
2954#include <stdlib.h>
2955int
2956main ()
2957{
2958exit (42);
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
2964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965  (eval $ac_compile) 2>conftest.er1
2966  ac_status=$?
2967  grep -v '^ *+' conftest.er1 >conftest.err
2968  rm -f conftest.er1
2969  cat conftest.err >&5
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); } &&
2972	 { ac_try='test -z "$ac_c_werror_flag"
2973			 || test ! -s conftest.err'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; } &&
2979	 { ac_try='test -s conftest.$ac_objext'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; }; then
2985  :
2986else
2987  echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990continue
2991fi
2992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2993  cat >conftest.$ac_ext <<_ACEOF
2994/* confdefs.h.  */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h.  */
2999$ac_declaration
3000int
3001main ()
3002{
3003exit (42);
3004  ;
3005  return 0;
3006}
3007_ACEOF
3008rm -f conftest.$ac_objext
3009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010  (eval $ac_compile) 2>conftest.er1
3011  ac_status=$?
3012  grep -v '^ *+' conftest.er1 >conftest.err
3013  rm -f conftest.er1
3014  cat conftest.err >&5
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); } &&
3017	 { ac_try='test -z "$ac_c_werror_flag"
3018			 || test ! -s conftest.err'
3019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020  (eval $ac_try) 2>&5
3021  ac_status=$?
3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023  (exit $ac_status); }; } &&
3024	 { ac_try='test -s conftest.$ac_objext'
3025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026  (eval $ac_try) 2>&5
3027  ac_status=$?
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); }; }; then
3030  break
3031else
3032  echo "$as_me: failed program was:" >&5
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
3035fi
3036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3037done
3038rm -f conftest*
3039if test -n "$ac_declaration"; then
3040  echo '#ifdef __cplusplus' >>confdefs.h
3041  echo $ac_declaration      >>confdefs.h
3042  echo '#endif'             >>confdefs.h
3043fi
3044
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049fi
3050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051ac_ext=c
3052ac_cpp='$CPP $CPPFLAGS'
3053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056
3057depcc="$CC"   am_compiler_list=
3058
3059echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3060echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3061if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3062  echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3065  # We make a subdir and do the tests there.  Otherwise we can end up
3066  # making bogus files that we don't know about and never remove.  For
3067  # instance it was reported that on HP-UX the gcc test will end up
3068  # making a dummy file named `D' -- because `-MD' means `put the output
3069  # in D'.
3070  mkdir conftest.dir
3071  # Copy depcomp to subdir because otherwise we won't find it if we're
3072  # using a relative directory.
3073  cp "$am_depcomp" conftest.dir
3074  cd conftest.dir
3075  # We will build objects and dependencies in a subdirectory because
3076  # it helps to detect inapplicable dependency modes.  For instance
3077  # both Tru64's cc and ICC support -MD to output dependencies as a
3078  # side effect of compilation, but ICC will put the dependencies in
3079  # the current directory while Tru64 will put them in the object
3080  # directory.
3081  mkdir sub
3082
3083  am_cv_CC_dependencies_compiler_type=none
3084  if test "$am_compiler_list" = ""; then
3085     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3086  fi
3087  for depmode in $am_compiler_list; do
3088    # Setup a source with many dependencies, because some compilers
3089    # like to wrap large dependency lists on column 80 (with \), and
3090    # we should not choose a depcomp mode which is confused by this.
3091    #
3092    # We need to recreate these files for each test, as the compiler may
3093    # overwrite some of them when testing with obscure command lines.
3094    # This happens at least with the AIX C compiler.
3095    : > sub/conftest.c
3096    for i in 1 2 3 4 5 6; do
3097      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3098      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3099      # Solaris 8's {/usr,}/bin/sh.
3100      touch sub/conftst$i.h
3101    done
3102    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3103
3104    case $depmode in
3105    nosideeffect)
3106      # after this tag, mechanisms are not by side-effect, so they'll
3107      # only be used when explicitly requested
3108      if test "x$enable_dependency_tracking" = xyes; then
3109	continue
3110      else
3111	break
3112      fi
3113      ;;
3114    none) break ;;
3115    esac
3116    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3117    # mode.  It turns out that the SunPro C++ compiler does not properly
3118    # handle `-M -o', and we need to detect this.
3119    if depmode=$depmode \
3120       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3121       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3122       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3123         >/dev/null 2>conftest.err &&
3124       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3125       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3126       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3127      # icc doesn't choke on unknown options, it will just issue warnings
3128      # or remarks (even with -Werror).  So we grep stderr for any message
3129      # that says an option was ignored or not supported.
3130      # When given -MP, icc 7.0 and 7.1 complain thusly:
3131      #   icc: Command line warning: ignoring option '-M'; no argument required
3132      # The diagnosis changed in icc 8.0:
3133      #   icc: Command line remark: option '-MP' not supported
3134      if (grep 'ignoring option' conftest.err ||
3135          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3136        am_cv_CC_dependencies_compiler_type=$depmode
3137        break
3138      fi
3139    fi
3140  done
3141
3142  cd ..
3143  rm -rf conftest.dir
3144else
3145  am_cv_CC_dependencies_compiler_type=none
3146fi
3147
3148fi
3149echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3150echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3151CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3152
3153
3154
3155if
3156  test "x$enable_dependency_tracking" != xno \
3157  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3158  am__fastdepCC_TRUE=
3159  am__fastdepCC_FALSE='#'
3160else
3161  am__fastdepCC_TRUE='#'
3162  am__fastdepCC_FALSE=
3163fi
3164
3165
3166
3167ac_ext=c
3168ac_cpp='$CPP $CPPFLAGS'
3169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3173echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3174# On Suns, sometimes $CPP names a directory.
3175if test -n "$CPP" && test -d "$CPP"; then
3176  CPP=
3177fi
3178if test -z "$CPP"; then
3179  if test "${ac_cv_prog_CPP+set}" = set; then
3180  echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182      # Double quotes because CPP needs to be expanded
3183    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3184    do
3185      ac_preproc_ok=false
3186for ac_c_preproc_warn_flag in '' yes
3187do
3188  # Use a header file that comes with gcc, so configuring glibc
3189  # with a fresh cross-compiler works.
3190  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191  # <limits.h> exists even on freestanding compilers.
3192  # On the NeXT, cc -E runs the code through the compiler's parser,
3193  # not just through cpp. "Syntax error" is here to catch this case.
3194  cat >conftest.$ac_ext <<_ACEOF
3195/* confdefs.h.  */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h.  */
3200#ifdef __STDC__
3201# include <limits.h>
3202#else
3203# include <assert.h>
3204#endif
3205		     Syntax error
3206_ACEOF
3207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209  ac_status=$?
3210  grep -v '^ *+' conftest.er1 >conftest.err
3211  rm -f conftest.er1
3212  cat conftest.err >&5
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); } >/dev/null; then
3215  if test -s conftest.err; then
3216    ac_cpp_err=$ac_c_preproc_warn_flag
3217    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218  else
3219    ac_cpp_err=
3220  fi
3221else
3222  ac_cpp_err=yes
3223fi
3224if test -z "$ac_cpp_err"; then
3225  :
3226else
3227  echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230  # Broken: fails on valid input.
3231continue
3232fi
3233rm -f conftest.err conftest.$ac_ext
3234
3235  # OK, works on sane cases.  Now check whether non-existent headers
3236  # can be detected and how.
3237  cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h.  */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h.  */
3243#include <ac_nonexistent.h>
3244_ACEOF
3245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247  ac_status=$?
3248  grep -v '^ *+' conftest.er1 >conftest.err
3249  rm -f conftest.er1
3250  cat conftest.err >&5
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); } >/dev/null; then
3253  if test -s conftest.err; then
3254    ac_cpp_err=$ac_c_preproc_warn_flag
3255    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256  else
3257    ac_cpp_err=
3258  fi
3259else
3260  ac_cpp_err=yes
3261fi
3262if test -z "$ac_cpp_err"; then
3263  # Broken: success on invalid input.
3264continue
3265else
3266  echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269  # Passes both tests.
3270ac_preproc_ok=:
3271break
3272fi
3273rm -f conftest.err conftest.$ac_ext
3274
3275done
3276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277rm -f conftest.err conftest.$ac_ext
3278if $ac_preproc_ok; then
3279  break
3280fi
3281
3282    done
3283    ac_cv_prog_CPP=$CPP
3284
3285fi
3286  CPP=$ac_cv_prog_CPP
3287else
3288  ac_cv_prog_CPP=$CPP
3289fi
3290echo "$as_me:$LINENO: result: $CPP" >&5
3291echo "${ECHO_T}$CPP" >&6
3292ac_preproc_ok=false
3293for ac_c_preproc_warn_flag in '' yes
3294do
3295  # Use a header file that comes with gcc, so configuring glibc
3296  # with a fresh cross-compiler works.
3297  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3298  # <limits.h> exists even on freestanding compilers.
3299  # On the NeXT, cc -E runs the code through the compiler's parser,
3300  # not just through cpp. "Syntax error" is here to catch this case.
3301  cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h.  */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h.  */
3307#ifdef __STDC__
3308# include <limits.h>
3309#else
3310# include <assert.h>
3311#endif
3312		     Syntax error
3313_ACEOF
3314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316  ac_status=$?
3317  grep -v '^ *+' conftest.er1 >conftest.err
3318  rm -f conftest.er1
3319  cat conftest.err >&5
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); } >/dev/null; then
3322  if test -s conftest.err; then
3323    ac_cpp_err=$ac_c_preproc_warn_flag
3324    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325  else
3326    ac_cpp_err=
3327  fi
3328else
3329  ac_cpp_err=yes
3330fi
3331if test -z "$ac_cpp_err"; then
3332  :
3333else
3334  echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337  # Broken: fails on valid input.
3338continue
3339fi
3340rm -f conftest.err conftest.$ac_ext
3341
3342  # OK, works on sane cases.  Now check whether non-existent headers
3343  # can be detected and how.
3344  cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350#include <ac_nonexistent.h>
3351_ACEOF
3352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3354  ac_status=$?
3355  grep -v '^ *+' conftest.er1 >conftest.err
3356  rm -f conftest.er1
3357  cat conftest.err >&5
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); } >/dev/null; then
3360  if test -s conftest.err; then
3361    ac_cpp_err=$ac_c_preproc_warn_flag
3362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3363  else
3364    ac_cpp_err=
3365  fi
3366else
3367  ac_cpp_err=yes
3368fi
3369if test -z "$ac_cpp_err"; then
3370  # Broken: success on invalid input.
3371continue
3372else
3373  echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376  # Passes both tests.
3377ac_preproc_ok=:
3378break
3379fi
3380rm -f conftest.err conftest.$ac_ext
3381
3382done
3383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3384rm -f conftest.err conftest.$ac_ext
3385if $ac_preproc_ok; then
3386  :
3387else
3388  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3389See \`config.log' for more details." >&5
3390echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3391See \`config.log' for more details." >&2;}
3392   { (exit 1); exit 1; }; }
3393fi
3394
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401
3402echo "$as_me:$LINENO: checking for egrep" >&5
3403echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3404if test "${ac_cv_prog_egrep+set}" = set; then
3405  echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3408    then ac_cv_prog_egrep='grep -E'
3409    else ac_cv_prog_egrep='egrep'
3410    fi
3411fi
3412echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3413echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3414 EGREP=$ac_cv_prog_egrep
3415
3416
3417
3418echo "$as_me:$LINENO: checking for AIX" >&5
3419echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3420cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h.  */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h.  */
3426#ifdef _AIX
3427  yes
3428#endif
3429
3430_ACEOF
3431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3432  $EGREP "yes" >/dev/null 2>&1; then
3433  echo "$as_me:$LINENO: result: yes" >&5
3434echo "${ECHO_T}yes" >&6
3435cat >>confdefs.h <<\_ACEOF
3436#define _ALL_SOURCE 1
3437_ACEOF
3438
3439else
3440  echo "$as_me:$LINENO: result: no" >&5
3441echo "${ECHO_T}no" >&6
3442fi
3443rm -f conftest*
3444
3445
3446
3447# Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449  enableval="$enable_shared"
3450  p=${PACKAGE-default}
3451    case $enableval in
3452    yes) enable_shared=yes ;;
3453    no) enable_shared=no ;;
3454    *)
3455      enable_shared=no
3456      # Look at the argument we got.  We use all the common list separators.
3457      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3458      for pkg in $enableval; do
3459	IFS="$lt_save_ifs"
3460	if test "X$pkg" = "X$p"; then
3461	  enable_shared=yes
3462	fi
3463      done
3464      IFS="$lt_save_ifs"
3465      ;;
3466    esac
3467else
3468  enable_shared=yes
3469fi;
3470
3471# Check whether --enable-static or --disable-static was given.
3472if test "${enable_static+set}" = set; then
3473  enableval="$enable_static"
3474  p=${PACKAGE-default}
3475    case $enableval in
3476    yes) enable_static=yes ;;
3477    no) enable_static=no ;;
3478    *)
3479     enable_static=no
3480      # Look at the argument we got.  We use all the common list separators.
3481      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3482      for pkg in $enableval; do
3483	IFS="$lt_save_ifs"
3484	if test "X$pkg" = "X$p"; then
3485	  enable_static=yes
3486	fi
3487      done
3488      IFS="$lt_save_ifs"
3489      ;;
3490    esac
3491else
3492  enable_static=yes
3493fi;
3494
3495# Check whether --enable-fast-install or --disable-fast-install was given.
3496if test "${enable_fast_install+set}" = set; then
3497  enableval="$enable_fast_install"
3498  p=${PACKAGE-default}
3499    case $enableval in
3500    yes) enable_fast_install=yes ;;
3501    no) enable_fast_install=no ;;
3502    *)
3503      enable_fast_install=no
3504      # Look at the argument we got.  We use all the common list separators.
3505      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3506      for pkg in $enableval; do
3507	IFS="$lt_save_ifs"
3508	if test "X$pkg" = "X$p"; then
3509	  enable_fast_install=yes
3510	fi
3511      done
3512      IFS="$lt_save_ifs"
3513      ;;
3514    esac
3515else
3516  enable_fast_install=yes
3517fi;
3518
3519echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3520echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3521if test "${lt_cv_path_SED+set}" = set; then
3522  echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524  # Loop through the user's path and test for sed and gsed.
3525# Then use that list of sed's as ones to test for truncation.
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529  IFS=$as_save_IFS
3530  test -z "$as_dir" && as_dir=.
3531  for lt_ac_prog in sed gsed; do
3532    for ac_exec_ext in '' $ac_executable_extensions; do
3533      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3534        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3535      fi
3536    done
3537  done
3538done
3539lt_ac_max=0
3540lt_ac_count=0
3541# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3542# along with /bin/sed that truncates output.
3543for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3544  test ! -f $lt_ac_sed && break
3545  cat /dev/null > conftest.in
3546  lt_ac_count=0
3547  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3548  # Check for GNU sed and select it if it is found.
3549  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3550    lt_cv_path_SED=$lt_ac_sed
3551    break
3552  fi
3553  while true; do
3554    cat conftest.in conftest.in >conftest.tmp
3555    mv conftest.tmp conftest.in
3556    cp conftest.in conftest.nl
3557    echo >>conftest.nl
3558    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3559    cmp -s conftest.out conftest.nl || break
3560    # 10000 chars as input seems more than enough
3561    test $lt_ac_count -gt 10 && break
3562    lt_ac_count=`expr $lt_ac_count + 1`
3563    if test $lt_ac_count -gt $lt_ac_max; then
3564      lt_ac_max=$lt_ac_count
3565      lt_cv_path_SED=$lt_ac_sed
3566    fi
3567  done
3568done
3569
3570fi
3571
3572SED=$lt_cv_path_SED
3573echo "$as_me:$LINENO: result: $SED" >&5
3574echo "${ECHO_T}$SED" >&6
3575
3576
3577# Check whether --with-gnu-ld or --without-gnu-ld was given.
3578if test "${with_gnu_ld+set}" = set; then
3579  withval="$with_gnu_ld"
3580  test "$withval" = no || with_gnu_ld=yes
3581else
3582  with_gnu_ld=no
3583fi;
3584ac_prog=ld
3585if test "$GCC" = yes; then
3586  # Check if gcc -print-prog-name=ld gives a path.
3587  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3588echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3589  case $host in
3590  *-*-mingw*)
3591    # gcc leaves a trailing carriage return which upsets mingw
3592    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3593  *)
3594    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3595  esac
3596  case $ac_prog in
3597    # Accept absolute paths.
3598    [\\/]* | ?:[\\/]*)
3599      re_direlt='/[^/][^/]*/\.\./'
3600      # Canonicalize the pathname of ld
3601      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3602      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3603	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3604      done
3605      test -z "$LD" && LD="$ac_prog"
3606      ;;
3607  "")
3608    # If it fails, then pretend we aren't using GCC.
3609    ac_prog=ld
3610    ;;
3611  *)
3612    # If it is relative, then search for the first ld in PATH.
3613    with_gnu_ld=unknown
3614    ;;
3615  esac
3616elif test "$with_gnu_ld" = yes; then
3617  echo "$as_me:$LINENO: checking for GNU ld" >&5
3618echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3619else
3620  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3621echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3622fi
3623if test "${lt_cv_path_LD+set}" = set; then
3624  echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626  if test -z "$LD"; then
3627  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3628  for ac_dir in $PATH; do
3629    IFS="$lt_save_ifs"
3630    test -z "$ac_dir" && ac_dir=.
3631    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3632      lt_cv_path_LD="$ac_dir/$ac_prog"
3633      # Check to see if the program is GNU ld.  I'd rather use --version,
3634      # but apparently some GNU ld's only accept -v.
3635      # Break only if it was the GNU/non-GNU ld that we prefer.
3636      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3637      *GNU* | *'with BFD'*)
3638	test "$with_gnu_ld" != no && break
3639	;;
3640      *)
3641	test "$with_gnu_ld" != yes && break
3642	;;
3643      esac
3644    fi
3645  done
3646  IFS="$lt_save_ifs"
3647else
3648  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3649fi
3650fi
3651
3652LD="$lt_cv_path_LD"
3653if test -n "$LD"; then
3654  echo "$as_me:$LINENO: result: $LD" >&5
3655echo "${ECHO_T}$LD" >&6
3656else
3657  echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659fi
3660test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3661echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3662   { (exit 1); exit 1; }; }
3663echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3664echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3665if test "${lt_cv_prog_gnu_ld+set}" = set; then
3666  echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3669case `$LD -v 2>&1 </dev/null` in
3670*GNU* | *'with BFD'*)
3671  lt_cv_prog_gnu_ld=yes
3672  ;;
3673*)
3674  lt_cv_prog_gnu_ld=no
3675  ;;
3676esac
3677fi
3678echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3679echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3680with_gnu_ld=$lt_cv_prog_gnu_ld
3681
3682
3683echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3684echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3685if test "${lt_cv_ld_reload_flag+set}" = set; then
3686  echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688  lt_cv_ld_reload_flag='-r'
3689fi
3690echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3691echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3692reload_flag=$lt_cv_ld_reload_flag
3693case $reload_flag in
3694"" | " "*) ;;
3695*) reload_flag=" $reload_flag" ;;
3696esac
3697reload_cmds='$LD$reload_flag -o $output$reload_objs'
3698case $host_os in
3699  darwin*)
3700    if test "$GCC" = yes; then
3701      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3702    else
3703      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3704    fi
3705    ;;
3706esac
3707
3708echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3709echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3710if test "${lt_cv_path_NM+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  if test -n "$NM"; then
3714  # Let the user override the test.
3715  lt_cv_path_NM="$NM"
3716else
3717  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3718  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3719    IFS="$lt_save_ifs"
3720    test -z "$ac_dir" && ac_dir=.
3721    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3722    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3723      # Check to see if the nm accepts a BSD-compat flag.
3724      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3725      #   nm: unknown option "B" ignored
3726      # Tru64's nm complains that /dev/null is an invalid object file
3727      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3728      */dev/null* | *'Invalid file or object type'*)
3729	lt_cv_path_NM="$tmp_nm -B"
3730	break
3731        ;;
3732      *)
3733	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3734	*/dev/null*)
3735	  lt_cv_path_NM="$tmp_nm -p"
3736	  break
3737	  ;;
3738	*)
3739	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3740	  continue # so that we can try to find one that supports BSD flags
3741	  ;;
3742	esac
3743      esac
3744    fi
3745  done
3746  IFS="$lt_save_ifs"
3747  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3748fi
3749fi
3750echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3751echo "${ECHO_T}$lt_cv_path_NM" >&6
3752NM="$lt_cv_path_NM"
3753
3754echo "$as_me:$LINENO: checking whether ln -s works" >&5
3755echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3756LN_S=$as_ln_s
3757if test "$LN_S" = "ln -s"; then
3758  echo "$as_me:$LINENO: result: yes" >&5
3759echo "${ECHO_T}yes" >&6
3760else
3761  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3762echo "${ECHO_T}no, using $LN_S" >&6
3763fi
3764
3765echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3766echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3767if test "${lt_cv_deplibs_check_method+set}" = set; then
3768  echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770  lt_cv_file_magic_cmd='$MAGIC_CMD'
3771lt_cv_file_magic_test_file=
3772lt_cv_deplibs_check_method='unknown'
3773# Need to set the preceding variable on all platforms that support
3774# interlibrary dependencies.
3775# 'none' -- dependencies not supported.
3776# `unknown' -- same as none, but documents that we really don't know.
3777# 'pass_all' -- all dependencies passed with no checks.
3778# 'test_compile' -- check by making test program.
3779# 'file_magic [[regex]]' -- check by looking for files in library path
3780# which responds to the $file_magic_cmd with a given extended regex.
3781# If you have `file' or equivalent on your system and you're not sure
3782# whether `pass_all' will *always* work, you probably want this one.
3783
3784case $host_os in
3785aix4* | aix5*)
3786  lt_cv_deplibs_check_method=pass_all
3787  ;;
3788
3789beos*)
3790  lt_cv_deplibs_check_method=pass_all
3791  ;;
3792
3793bsdi[45]*)
3794  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3795  lt_cv_file_magic_cmd='/usr/bin/file -L'
3796  lt_cv_file_magic_test_file=/shlib/libc.so
3797  ;;
3798
3799cygwin*)
3800  # func_win32_libid is a shell function defined in ltmain.sh
3801  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3802  lt_cv_file_magic_cmd='func_win32_libid'
3803  ;;
3804
3805mingw* | pw32*)
3806  # Base MSYS/MinGW do not provide the 'file' command needed by
3807  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3808  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3809  lt_cv_file_magic_cmd='$OBJDUMP -f'
3810  ;;
3811
3812darwin* | rhapsody*)
3813  lt_cv_deplibs_check_method=pass_all
3814  ;;
3815
3816freebsd* | kfreebsd*-gnu)
3817  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3818    case $host_cpu in
3819    i*86 )
3820      # Not sure whether the presence of OpenBSD here was a mistake.
3821      # Let's accept both of them until this is cleared up.
3822      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3823      lt_cv_file_magic_cmd=/usr/bin/file
3824      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3825      ;;
3826    esac
3827  else
3828    lt_cv_deplibs_check_method=pass_all
3829  fi
3830  ;;
3831
3832gnu*)
3833  lt_cv_deplibs_check_method=pass_all
3834  ;;
3835
3836hpux10.20* | hpux11*)
3837  lt_cv_file_magic_cmd=/usr/bin/file
3838  case "$host_cpu" in
3839  ia64*)
3840    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3841    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3842    ;;
3843  hppa*64*)
3844    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]'
3845    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3846    ;;
3847  *)
3848    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3849    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3850    ;;
3851  esac
3852  ;;
3853
3854irix5* | irix6* | nonstopux*)
3855  case $LD in
3856  *-32|*"-32 ") libmagic=32-bit;;
3857  *-n32|*"-n32 ") libmagic=N32;;
3858  *-64|*"-64 ") libmagic=64-bit;;
3859  *) libmagic=never-match;;
3860  esac
3861  lt_cv_deplibs_check_method=pass_all
3862  ;;
3863
3864# This must be Linux ELF.
3865linux*)
3866  lt_cv_deplibs_check_method=pass_all
3867  ;;
3868
3869netbsd*)
3870  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3871    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3872  else
3873    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3874  fi
3875  ;;
3876
3877newos6*)
3878  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3879  lt_cv_file_magic_cmd=/usr/bin/file
3880  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3881  ;;
3882
3883nto-qnx*)
3884  lt_cv_deplibs_check_method=unknown
3885  ;;
3886
3887openbsd*)
3888  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3889    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3890  else
3891    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3892  fi
3893  ;;
3894
3895osf3* | osf4* | osf5*)
3896  lt_cv_deplibs_check_method=pass_all
3897  ;;
3898
3899sco3.2v5*)
3900  lt_cv_deplibs_check_method=pass_all
3901  ;;
3902
3903solaris*)
3904  lt_cv_deplibs_check_method=pass_all
3905  ;;
3906
3907sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3908  case $host_vendor in
3909  motorola)
3910    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]'
3911    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3912    ;;
3913  ncr)
3914    lt_cv_deplibs_check_method=pass_all
3915    ;;
3916  sequent)
3917    lt_cv_file_magic_cmd='/bin/file'
3918    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3919    ;;
3920  sni)
3921    lt_cv_file_magic_cmd='/bin/file'
3922    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3923    lt_cv_file_magic_test_file=/lib/libc.so
3924    ;;
3925  siemens)
3926    lt_cv_deplibs_check_method=pass_all
3927    ;;
3928  esac
3929  ;;
3930
3931sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3932  lt_cv_deplibs_check_method=pass_all
3933  ;;
3934esac
3935
3936fi
3937echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3938echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3939file_magic_cmd=$lt_cv_file_magic_cmd
3940deplibs_check_method=$lt_cv_deplibs_check_method
3941test -z "$deplibs_check_method" && deplibs_check_method=unknown
3942
3943
3944
3945
3946# If no C compiler was specified, use CC.
3947LTCC=${LTCC-"$CC"}
3948
3949# Allow CC to be a program name with arguments.
3950compiler=$CC
3951
3952# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3953if test "${enable_libtool_lock+set}" = set; then
3954  enableval="$enable_libtool_lock"
3955
3956fi;
3957test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3958
3959# Some flags need to be propagated to the compiler or linker for good
3960# libtool support.
3961case $host in
3962ia64-*-hpux*)
3963  # Find out which ABI we are using.
3964  echo 'int i;' > conftest.$ac_ext
3965  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966  (eval $ac_compile) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; then
3970    case `/usr/bin/file conftest.$ac_objext` in
3971    *ELF-32*)
3972      HPUX_IA64_MODE="32"
3973      ;;
3974    *ELF-64*)
3975      HPUX_IA64_MODE="64"
3976      ;;
3977    esac
3978  fi
3979  rm -rf conftest*
3980  ;;
3981*-*-irix6*)
3982  # Find out which ABI we are using.
3983  echo '#line 3983 "configure"' > conftest.$ac_ext
3984  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985  (eval $ac_compile) 2>&5
3986  ac_status=$?
3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988  (exit $ac_status); }; then
3989   if test "$lt_cv_prog_gnu_ld" = yes; then
3990    case `/usr/bin/file conftest.$ac_objext` in
3991    *32-bit*)
3992      LD="${LD-ld} -melf32bsmip"
3993      ;;
3994    *N32*)
3995      LD="${LD-ld} -melf32bmipn32"
3996      ;;
3997    *64-bit*)
3998      LD="${LD-ld} -melf64bmip"
3999      ;;
4000    esac
4001   else
4002    case `/usr/bin/file conftest.$ac_objext` in
4003    *32-bit*)
4004      LD="${LD-ld} -32"
4005      ;;
4006    *N32*)
4007      LD="${LD-ld} -n32"
4008      ;;
4009    *64-bit*)
4010      LD="${LD-ld} -64"
4011      ;;
4012    esac
4013   fi
4014  fi
4015  rm -rf conftest*
4016  ;;
4017
4018x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4019  # Find out which ABI we are using.
4020  echo 'int i;' > conftest.$ac_ext
4021  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022  (eval $ac_compile) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; then
4026    case "`/usr/bin/file conftest.o`" in
4027    *32-bit*)
4028      case $host in
4029        x86_64-*linux*)
4030          LD="${LD-ld} -m elf_i386"
4031          ;;
4032        ppc64-*linux*|powerpc64-*linux*)
4033          LD="${LD-ld} -m elf32ppclinux"
4034          ;;
4035        s390x-*linux*)
4036          LD="${LD-ld} -m elf_s390"
4037          ;;
4038        sparc64-*linux*)
4039          LD="${LD-ld} -m elf32_sparc"
4040          ;;
4041      esac
4042      ;;
4043    *64-bit*)
4044      case $host in
4045        x86_64-*linux*)
4046          LD="${LD-ld} -m elf_x86_64"
4047          ;;
4048        ppc*-*linux*|powerpc*-*linux*)
4049          LD="${LD-ld} -m elf64ppc"
4050          ;;
4051        s390*-*linux*)
4052          LD="${LD-ld} -m elf64_s390"
4053          ;;
4054        sparc*-*linux*)
4055          LD="${LD-ld} -m elf64_sparc"
4056          ;;
4057      esac
4058      ;;
4059    esac
4060  fi
4061  rm -rf conftest*
4062  ;;
4063
4064*-*-sco3.2v5*)
4065  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4066  SAVE_CFLAGS="$CFLAGS"
4067  CFLAGS="$CFLAGS -belf"
4068  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4069echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4070if test "${lt_cv_cc_needs_belf+set}" = set; then
4071  echo $ECHO_N "(cached) $ECHO_C" >&6
4072else
4073  ac_ext=c
4074ac_cpp='$CPP $CPPFLAGS'
4075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
4079     cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h.  */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h.  */
4085
4086int
4087main ()
4088{
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext conftest$ac_exeext
4095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4096  (eval $ac_link) 2>conftest.er1
4097  ac_status=$?
4098  grep -v '^ *+' conftest.er1 >conftest.err
4099  rm -f conftest.er1
4100  cat conftest.err >&5
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } &&
4103	 { ac_try='test -z "$ac_c_werror_flag"
4104			 || test ! -s conftest.err'
4105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106  (eval $ac_try) 2>&5
4107  ac_status=$?
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); }; } &&
4110	 { ac_try='test -s conftest$ac_exeext'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; }; then
4116  lt_cv_cc_needs_belf=yes
4117else
4118  echo "$as_me: failed program was:" >&5
4119sed 's/^/| /' conftest.$ac_ext >&5
4120
4121lt_cv_cc_needs_belf=no
4122fi
4123rm -f conftest.err conftest.$ac_objext \
4124      conftest$ac_exeext conftest.$ac_ext
4125     ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131fi
4132echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4133echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4134  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4135    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4136    CFLAGS="$SAVE_CFLAGS"
4137  fi
4138  ;;
4139
4140esac
4141
4142need_locks="$enable_libtool_lock"
4143
4144
4145echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147if test "${ac_cv_header_stdc+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156#include <stdlib.h>
4157#include <stdarg.h>
4158#include <string.h>
4159#include <float.h>
4160
4161int
4162main ()
4163{
4164
4165  ;
4166  return 0;
4167}
4168_ACEOF
4169rm -f conftest.$ac_objext
4170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171  (eval $ac_compile) 2>conftest.er1
4172  ac_status=$?
4173  grep -v '^ *+' conftest.er1 >conftest.err
4174  rm -f conftest.er1
4175  cat conftest.err >&5
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); } &&
4178	 { ac_try='test -z "$ac_c_werror_flag"
4179			 || test ! -s conftest.err'
4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181  (eval $ac_try) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }; } &&
4185	 { ac_try='test -s conftest.$ac_objext'
4186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187  (eval $ac_try) 2>&5
4188  ac_status=$?
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); }; }; then
4191  ac_cv_header_stdc=yes
4192else
4193  echo "$as_me: failed program was:" >&5
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
4196ac_cv_header_stdc=no
4197fi
4198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200if test $ac_cv_header_stdc = yes; then
4201  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202  cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h.  */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h.  */
4208#include <string.h>
4209
4210_ACEOF
4211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212  $EGREP "memchr" >/dev/null 2>&1; then
4213  :
4214else
4215  ac_cv_header_stdc=no
4216fi
4217rm -f conftest*
4218
4219fi
4220
4221if test $ac_cv_header_stdc = yes; then
4222  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223  cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h.  */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h.  */
4229#include <stdlib.h>
4230
4231_ACEOF
4232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233  $EGREP "free" >/dev/null 2>&1; then
4234  :
4235else
4236  ac_cv_header_stdc=no
4237fi
4238rm -f conftest*
4239
4240fi
4241
4242if test $ac_cv_header_stdc = yes; then
4243  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244  if test "$cross_compiling" = yes; then
4245  :
4246else
4247  cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h.  */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h.  */
4253#include <ctype.h>
4254#if ((' ' & 0x0FF) == 0x020)
4255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257#else
4258# define ISLOWER(c) \
4259		   (('a' <= (c) && (c) <= 'i') \
4260		     || ('j' <= (c) && (c) <= 'r') \
4261		     || ('s' <= (c) && (c) <= 'z'))
4262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263#endif
4264
4265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266int
4267main ()
4268{
4269  int i;
4270  for (i = 0; i < 256; i++)
4271    if (XOR (islower (i), ISLOWER (i))
4272	|| toupper (i) != TOUPPER (i))
4273      exit(2);
4274  exit (0);
4275}
4276_ACEOF
4277rm -f conftest$ac_exeext
4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279  (eval $ac_link) 2>&5
4280  ac_status=$?
4281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284  (eval $ac_try) 2>&5
4285  ac_status=$?
4286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287  (exit $ac_status); }; }; then
4288  :
4289else
4290  echo "$as_me: program exited with status $ac_status" >&5
4291echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294( exit $ac_status )
4295ac_cv_header_stdc=no
4296fi
4297rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298fi
4299fi
4300fi
4301echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302echo "${ECHO_T}$ac_cv_header_stdc" >&6
4303if test $ac_cv_header_stdc = yes; then
4304
4305cat >>confdefs.h <<\_ACEOF
4306#define STDC_HEADERS 1
4307_ACEOF
4308
4309fi
4310
4311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322		  inttypes.h stdint.h unistd.h
4323do
4324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325echo "$as_me:$LINENO: checking for $ac_header" >&5
4326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4327if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h.  */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h.  */
4336$ac_includes_default
4337
4338#include <$ac_header>
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342  (eval $ac_compile) 2>conftest.er1
4343  ac_status=$?
4344  grep -v '^ *+' conftest.er1 >conftest.err
4345  rm -f conftest.er1
4346  cat conftest.err >&5
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); } &&
4349	 { ac_try='test -z "$ac_c_werror_flag"
4350			 || test ! -s conftest.err'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; } &&
4356	 { ac_try='test -s conftest.$ac_objext'
4357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358  (eval $ac_try) 2>&5
4359  ac_status=$?
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); }; }; then
4362  eval "$as_ac_Header=yes"
4363else
4364  echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367eval "$as_ac_Header=no"
4368fi
4369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370fi
4371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4373if test `eval echo '${'$as_ac_Header'}'` = yes; then
4374  cat >>confdefs.h <<_ACEOF
4375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376_ACEOF
4377
4378fi
4379
4380done
4381
4382
4383
4384for ac_header in dlfcn.h
4385do
4386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387if eval "test \"\${$as_ac_Header+set}\" = set"; then
4388  echo "$as_me:$LINENO: checking for $ac_header" >&5
4389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4390if eval "test \"\${$as_ac_Header+set}\" = set"; then
4391  echo $ECHO_N "(cached) $ECHO_C" >&6
4392fi
4393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4395else
4396  # Is the header compilable?
4397echo "$as_me:$LINENO: checking $ac_header usability" >&5
4398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4399cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405$ac_includes_default
4406#include <$ac_header>
4407_ACEOF
4408rm -f conftest.$ac_objext
4409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410  (eval $ac_compile) 2>conftest.er1
4411  ac_status=$?
4412  grep -v '^ *+' conftest.er1 >conftest.err
4413  rm -f conftest.er1
4414  cat conftest.err >&5
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); } &&
4417	 { ac_try='test -z "$ac_c_werror_flag"
4418			 || test ! -s conftest.err'
4419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420  (eval $ac_try) 2>&5
4421  ac_status=$?
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); }; } &&
4424	 { ac_try='test -s conftest.$ac_objext'
4425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426  (eval $ac_try) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; }; then
4430  ac_header_compiler=yes
4431else
4432  echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
4435ac_header_compiler=no
4436fi
4437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4439echo "${ECHO_T}$ac_header_compiler" >&6
4440
4441# Is the header present?
4442echo "$as_me:$LINENO: checking $ac_header presence" >&5
4443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4444cat >conftest.$ac_ext <<_ACEOF
4445/* confdefs.h.  */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h.  */
4450#include <$ac_header>
4451_ACEOF
4452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4453  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454  ac_status=$?
4455  grep -v '^ *+' conftest.er1 >conftest.err
4456  rm -f conftest.er1
4457  cat conftest.err >&5
4458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459  (exit $ac_status); } >/dev/null; then
4460  if test -s conftest.err; then
4461    ac_cpp_err=$ac_c_preproc_warn_flag
4462    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4463  else
4464    ac_cpp_err=
4465  fi
4466else
4467  ac_cpp_err=yes
4468fi
4469if test -z "$ac_cpp_err"; then
4470  ac_header_preproc=yes
4471else
4472  echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475  ac_header_preproc=no
4476fi
4477rm -f conftest.err conftest.$ac_ext
4478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479echo "${ECHO_T}$ac_header_preproc" >&6
4480
4481# So?  What about this header?
4482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4483  yes:no: )
4484    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4488    ac_header_preproc=yes
4489    ;;
4490  no:yes:* )
4491    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4493    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4494echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4495    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4497    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4498echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4501    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4503    (
4504      cat <<\_ASBOX
4505## ------------------------------------------ ##
4506## Report this to the AC_PACKAGE_NAME lists.  ##
4507## ------------------------------------------ ##
4508_ASBOX
4509    ) |
4510      sed "s/^/$as_me: WARNING:     /" >&2
4511    ;;
4512esac
4513echo "$as_me:$LINENO: checking for $ac_header" >&5
4514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4515if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518  eval "$as_ac_Header=\$ac_header_preproc"
4519fi
4520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4522
4523fi
4524if test `eval echo '${'$as_ac_Header'}'` = yes; then
4525  cat >>confdefs.h <<_ACEOF
4526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4527_ACEOF
4528
4529fi
4530
4531done
4532
4533ac_ext=cc
4534ac_cpp='$CXXCPP $CPPFLAGS'
4535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4538if test -n "$ac_tool_prefix"; then
4539  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4540  do
4541    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545if test "${ac_cv_prog_CXX+set}" = set; then
4546  echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548  if test -n "$CXX"; then
4549  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556  for ac_exec_ext in '' $ac_executable_extensions; do
4557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560    break 2
4561  fi
4562done
4563done
4564
4565fi
4566fi
4567CXX=$ac_cv_prog_CXX
4568if test -n "$CXX"; then
4569  echo "$as_me:$LINENO: result: $CXX" >&5
4570echo "${ECHO_T}$CXX" >&6
4571else
4572  echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574fi
4575
4576    test -n "$CXX" && break
4577  done
4578fi
4579if test -z "$CXX"; then
4580  ac_ct_CXX=$CXX
4581  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4582do
4583  # Extract the first word of "$ac_prog", so it can be a program name with args.
4584set dummy $ac_prog; ac_word=$2
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4588  echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590  if test -n "$ac_ct_CXX"; then
4591  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596  IFS=$as_save_IFS
4597  test -z "$as_dir" && as_dir=.
4598  for ac_exec_ext in '' $ac_executable_extensions; do
4599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600    ac_cv_prog_ac_ct_CXX="$ac_prog"
4601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602    break 2
4603  fi
4604done
4605done
4606
4607fi
4608fi
4609ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4610if test -n "$ac_ct_CXX"; then
4611  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4612echo "${ECHO_T}$ac_ct_CXX" >&6
4613else
4614  echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617
4618  test -n "$ac_ct_CXX" && break
4619done
4620test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4621
4622  CXX=$ac_ct_CXX
4623fi
4624
4625
4626# Provide some information about the compiler.
4627echo "$as_me:$LINENO:" \
4628     "checking for C++ compiler version" >&5
4629ac_compiler=`set X $ac_compile; echo $2`
4630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4631  (eval $ac_compiler --version </dev/null >&5) 2>&5
4632  ac_status=$?
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); }
4635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4636  (eval $ac_compiler -v </dev/null >&5) 2>&5
4637  ac_status=$?
4638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639  (exit $ac_status); }
4640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4641  (eval $ac_compiler -V </dev/null >&5) 2>&5
4642  ac_status=$?
4643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }
4645
4646echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4647echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4648if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4649  echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651  cat >conftest.$ac_ext <<_ACEOF
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657
4658int
4659main ()
4660{
4661#ifndef __GNUC__
4662       choke me
4663#endif
4664
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669rm -f conftest.$ac_objext
4670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671  (eval $ac_compile) 2>conftest.er1
4672  ac_status=$?
4673  grep -v '^ *+' conftest.er1 >conftest.err
4674  rm -f conftest.er1
4675  cat conftest.err >&5
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); } &&
4678	 { ac_try='test -z "$ac_cxx_werror_flag"
4679			 || test ! -s conftest.err'
4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681  (eval $ac_try) 2>&5
4682  ac_status=$?
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); }; } &&
4685	 { ac_try='test -s conftest.$ac_objext'
4686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687  (eval $ac_try) 2>&5
4688  ac_status=$?
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); }; }; then
4691  ac_compiler_gnu=yes
4692else
4693  echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696ac_compiler_gnu=no
4697fi
4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4700
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4703echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4704GXX=`test $ac_compiler_gnu = yes && echo yes`
4705ac_test_CXXFLAGS=${CXXFLAGS+set}
4706ac_save_CXXFLAGS=$CXXFLAGS
4707CXXFLAGS="-g"
4708echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4709echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4710if test "${ac_cv_prog_cxx_g+set}" = set; then
4711  echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713  cat >conftest.$ac_ext <<_ACEOF
4714/* confdefs.h.  */
4715_ACEOF
4716cat confdefs.h >>conftest.$ac_ext
4717cat >>conftest.$ac_ext <<_ACEOF
4718/* end confdefs.h.  */
4719
4720int
4721main ()
4722{
4723
4724  ;
4725  return 0;
4726}
4727_ACEOF
4728rm -f conftest.$ac_objext
4729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730  (eval $ac_compile) 2>conftest.er1
4731  ac_status=$?
4732  grep -v '^ *+' conftest.er1 >conftest.err
4733  rm -f conftest.er1
4734  cat conftest.err >&5
4735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736  (exit $ac_status); } &&
4737	 { ac_try='test -z "$ac_cxx_werror_flag"
4738			 || test ! -s conftest.err'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; } &&
4744	 { ac_try='test -s conftest.$ac_objext'
4745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746  (eval $ac_try) 2>&5
4747  ac_status=$?
4748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749  (exit $ac_status); }; }; then
4750  ac_cv_prog_cxx_g=yes
4751else
4752  echo "$as_me: failed program was:" >&5
4753sed 's/^/| /' conftest.$ac_ext >&5
4754
4755ac_cv_prog_cxx_g=no
4756fi
4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758fi
4759echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4760echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4761if test "$ac_test_CXXFLAGS" = set; then
4762  CXXFLAGS=$ac_save_CXXFLAGS
4763elif test $ac_cv_prog_cxx_g = yes; then
4764  if test "$GXX" = yes; then
4765    CXXFLAGS="-g -O2"
4766  else
4767    CXXFLAGS="-g"
4768  fi
4769else
4770  if test "$GXX" = yes; then
4771    CXXFLAGS="-O2"
4772  else
4773    CXXFLAGS=
4774  fi
4775fi
4776for ac_declaration in \
4777   '' \
4778   'extern "C" void std::exit (int) throw (); using std::exit;' \
4779   'extern "C" void std::exit (int); using std::exit;' \
4780   'extern "C" void exit (int) throw ();' \
4781   'extern "C" void exit (int);' \
4782   'void exit (int);'
4783do
4784  cat >conftest.$ac_ext <<_ACEOF
4785/* confdefs.h.  */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h.  */
4790$ac_declaration
4791#include <stdlib.h>
4792int
4793main ()
4794{
4795exit (42);
4796  ;
4797  return 0;
4798}
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802  (eval $ac_compile) 2>conftest.er1
4803  ac_status=$?
4804  grep -v '^ *+' conftest.er1 >conftest.err
4805  rm -f conftest.er1
4806  cat conftest.err >&5
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); } &&
4809	 { ac_try='test -z "$ac_cxx_werror_flag"
4810			 || test ! -s conftest.err'
4811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812  (eval $ac_try) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }; } &&
4816	 { ac_try='test -s conftest.$ac_objext'
4817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818  (eval $ac_try) 2>&5
4819  ac_status=$?
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); }; }; then
4822  :
4823else
4824  echo "$as_me: failed program was:" >&5
4825sed 's/^/| /' conftest.$ac_ext >&5
4826
4827continue
4828fi
4829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830  cat >conftest.$ac_ext <<_ACEOF
4831/* confdefs.h.  */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h.  */
4836$ac_declaration
4837int
4838main ()
4839{
4840exit (42);
4841  ;
4842  return 0;
4843}
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847  (eval $ac_compile) 2>conftest.er1
4848  ac_status=$?
4849  grep -v '^ *+' conftest.er1 >conftest.err
4850  rm -f conftest.er1
4851  cat conftest.err >&5
4852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853  (exit $ac_status); } &&
4854	 { ac_try='test -z "$ac_cxx_werror_flag"
4855			 || test ! -s conftest.err'
4856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857  (eval $ac_try) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; } &&
4861	 { ac_try='test -s conftest.$ac_objext'
4862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863  (eval $ac_try) 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  break
4868else
4869  echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
4872fi
4873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874done
4875rm -f conftest*
4876if test -n "$ac_declaration"; then
4877  echo '#ifdef __cplusplus' >>confdefs.h
4878  echo $ac_declaration      >>confdefs.h
4879  echo '#endif'             >>confdefs.h
4880fi
4881
4882ac_ext=cc
4883ac_cpp='$CXXCPP $CPPFLAGS'
4884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4887
4888depcc="$CXX"  am_compiler_list=
4889
4890echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4891echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4892if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4893  echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896  # We make a subdir and do the tests there.  Otherwise we can end up
4897  # making bogus files that we don't know about and never remove.  For
4898  # instance it was reported that on HP-UX the gcc test will end up
4899  # making a dummy file named `D' -- because `-MD' means `put the output
4900  # in D'.
4901  mkdir conftest.dir
4902  # Copy depcomp to subdir because otherwise we won't find it if we're
4903  # using a relative directory.
4904  cp "$am_depcomp" conftest.dir
4905  cd conftest.dir
4906  # We will build objects and dependencies in a subdirectory because
4907  # it helps to detect inapplicable dependency modes.  For instance
4908  # both Tru64's cc and ICC support -MD to output dependencies as a
4909  # side effect of compilation, but ICC will put the dependencies in
4910  # the current directory while Tru64 will put them in the object
4911  # directory.
4912  mkdir sub
4913
4914  am_cv_CXX_dependencies_compiler_type=none
4915  if test "$am_compiler_list" = ""; then
4916     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4917  fi
4918  for depmode in $am_compiler_list; do
4919    # Setup a source with many dependencies, because some compilers
4920    # like to wrap large dependency lists on column 80 (with \), and
4921    # we should not choose a depcomp mode which is confused by this.
4922    #
4923    # We need to recreate these files for each test, as the compiler may
4924    # overwrite some of them when testing with obscure command lines.
4925    # This happens at least with the AIX C compiler.
4926    : > sub/conftest.c
4927    for i in 1 2 3 4 5 6; do
4928      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930      # Solaris 8's {/usr,}/bin/sh.
4931      touch sub/conftst$i.h
4932    done
4933    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935    case $depmode in
4936    nosideeffect)
4937      # after this tag, mechanisms are not by side-effect, so they'll
4938      # only be used when explicitly requested
4939      if test "x$enable_dependency_tracking" = xyes; then
4940	continue
4941      else
4942	break
4943      fi
4944      ;;
4945    none) break ;;
4946    esac
4947    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4948    # mode.  It turns out that the SunPro C++ compiler does not properly
4949    # handle `-M -o', and we need to detect this.
4950    if depmode=$depmode \
4951       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4952       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4954         >/dev/null 2>conftest.err &&
4955       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4956       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4957       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4958      # icc doesn't choke on unknown options, it will just issue warnings
4959      # or remarks (even with -Werror).  So we grep stderr for any message
4960      # that says an option was ignored or not supported.
4961      # When given -MP, icc 7.0 and 7.1 complain thusly:
4962      #   icc: Command line warning: ignoring option '-M'; no argument required
4963      # The diagnosis changed in icc 8.0:
4964      #   icc: Command line remark: option '-MP' not supported
4965      if (grep 'ignoring option' conftest.err ||
4966          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4967        am_cv_CXX_dependencies_compiler_type=$depmode
4968        break
4969      fi
4970    fi
4971  done
4972
4973  cd ..
4974  rm -rf conftest.dir
4975else
4976  am_cv_CXX_dependencies_compiler_type=none
4977fi
4978
4979fi
4980echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4981echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4982CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4983
4984
4985
4986if
4987  test "x$enable_dependency_tracking" != xno \
4988  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4989  am__fastdepCXX_TRUE=
4990  am__fastdepCXX_FALSE='#'
4991else
4992  am__fastdepCXX_TRUE='#'
4993  am__fastdepCXX_FALSE=
4994fi
4995
4996
4997
4998
4999if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5000    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5001    (test "X$CXX" != "Xg++"))) ; then
5002  ac_ext=cc
5003ac_cpp='$CXXCPP $CPPFLAGS'
5004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5008echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5009if test -z "$CXXCPP"; then
5010  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5011  echo $ECHO_N "(cached) $ECHO_C" >&6
5012else
5013      # Double quotes because CXXCPP needs to be expanded
5014    for CXXCPP in "$CXX -E" "/lib/cpp"
5015    do
5016      ac_preproc_ok=false
5017for ac_cxx_preproc_warn_flag in '' yes
5018do
5019  # Use a header file that comes with gcc, so configuring glibc
5020  # with a fresh cross-compiler works.
5021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022  # <limits.h> exists even on freestanding compilers.
5023  # On the NeXT, cc -E runs the code through the compiler's parser,
5024  # not just through cpp. "Syntax error" is here to catch this case.
5025  cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031#ifdef __STDC__
5032# include <limits.h>
5033#else
5034# include <assert.h>
5035#endif
5036		     Syntax error
5037_ACEOF
5038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040  ac_status=$?
5041  grep -v '^ *+' conftest.er1 >conftest.err
5042  rm -f conftest.er1
5043  cat conftest.err >&5
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } >/dev/null; then
5046  if test -s conftest.err; then
5047    ac_cpp_err=$ac_cxx_preproc_warn_flag
5048    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5049  else
5050    ac_cpp_err=
5051  fi
5052else
5053  ac_cpp_err=yes
5054fi
5055if test -z "$ac_cpp_err"; then
5056  :
5057else
5058  echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061  # Broken: fails on valid input.
5062continue
5063fi
5064rm -f conftest.err conftest.$ac_ext
5065
5066  # OK, works on sane cases.  Now check whether non-existent headers
5067  # can be detected and how.
5068  cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h.  */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h.  */
5074#include <ac_nonexistent.h>
5075_ACEOF
5076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078  ac_status=$?
5079  grep -v '^ *+' conftest.er1 >conftest.err
5080  rm -f conftest.er1
5081  cat conftest.err >&5
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } >/dev/null; then
5084  if test -s conftest.err; then
5085    ac_cpp_err=$ac_cxx_preproc_warn_flag
5086    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087  else
5088    ac_cpp_err=
5089  fi
5090else
5091  ac_cpp_err=yes
5092fi
5093if test -z "$ac_cpp_err"; then
5094  # Broken: success on invalid input.
5095continue
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100  # Passes both tests.
5101ac_preproc_ok=:
5102break
5103fi
5104rm -f conftest.err conftest.$ac_ext
5105
5106done
5107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108rm -f conftest.err conftest.$ac_ext
5109if $ac_preproc_ok; then
5110  break
5111fi
5112
5113    done
5114    ac_cv_prog_CXXCPP=$CXXCPP
5115
5116fi
5117  CXXCPP=$ac_cv_prog_CXXCPP
5118else
5119  ac_cv_prog_CXXCPP=$CXXCPP
5120fi
5121echo "$as_me:$LINENO: result: $CXXCPP" >&5
5122echo "${ECHO_T}$CXXCPP" >&6
5123ac_preproc_ok=false
5124for ac_cxx_preproc_warn_flag in '' yes
5125do
5126  # Use a header file that comes with gcc, so configuring glibc
5127  # with a fresh cross-compiler works.
5128  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129  # <limits.h> exists even on freestanding compilers.
5130  # On the NeXT, cc -E runs the code through the compiler's parser,
5131  # not just through cpp. "Syntax error" is here to catch this case.
5132  cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138#ifdef __STDC__
5139# include <limits.h>
5140#else
5141# include <assert.h>
5142#endif
5143		     Syntax error
5144_ACEOF
5145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147  ac_status=$?
5148  grep -v '^ *+' conftest.er1 >conftest.err
5149  rm -f conftest.er1
5150  cat conftest.err >&5
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); } >/dev/null; then
5153  if test -s conftest.err; then
5154    ac_cpp_err=$ac_cxx_preproc_warn_flag
5155    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5156  else
5157    ac_cpp_err=
5158  fi
5159else
5160  ac_cpp_err=yes
5161fi
5162if test -z "$ac_cpp_err"; then
5163  :
5164else
5165  echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168  # Broken: fails on valid input.
5169continue
5170fi
5171rm -f conftest.err conftest.$ac_ext
5172
5173  # OK, works on sane cases.  Now check whether non-existent headers
5174  # can be detected and how.
5175  cat >conftest.$ac_ext <<_ACEOF
5176/* confdefs.h.  */
5177_ACEOF
5178cat confdefs.h >>conftest.$ac_ext
5179cat >>conftest.$ac_ext <<_ACEOF
5180/* end confdefs.h.  */
5181#include <ac_nonexistent.h>
5182_ACEOF
5183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5184  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } >/dev/null; then
5191  if test -s conftest.err; then
5192    ac_cpp_err=$ac_cxx_preproc_warn_flag
5193    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5194  else
5195    ac_cpp_err=
5196  fi
5197else
5198  ac_cpp_err=yes
5199fi
5200if test -z "$ac_cpp_err"; then
5201  # Broken: success on invalid input.
5202continue
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207  # Passes both tests.
5208ac_preproc_ok=:
5209break
5210fi
5211rm -f conftest.err conftest.$ac_ext
5212
5213done
5214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215rm -f conftest.err conftest.$ac_ext
5216if $ac_preproc_ok; then
5217  :
5218else
5219  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5220See \`config.log' for more details." >&5
5221echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222See \`config.log' for more details." >&2;}
5223   { (exit 1); exit 1; }; }
5224fi
5225
5226ac_ext=cc
5227ac_cpp='$CXXCPP $CPPFLAGS'
5228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231
5232fi
5233
5234
5235ac_ext=f
5236ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5237ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5239if test -n "$ac_tool_prefix"; then
5240  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5241  do
5242    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_F77+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  if test -n "$F77"; then
5250  ac_cv_prog_F77="$F77" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257  for ac_exec_ext in '' $ac_executable_extensions; do
5258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264done
5265
5266fi
5267fi
5268F77=$ac_cv_prog_F77
5269if test -n "$F77"; then
5270  echo "$as_me:$LINENO: result: $F77" >&5
5271echo "${ECHO_T}$F77" >&6
5272else
5273  echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275fi
5276
5277    test -n "$F77" && break
5278  done
5279fi
5280if test -z "$F77"; then
5281  ac_ct_F77=$F77
5282  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5283do
5284  # Extract the first word of "$ac_prog", so it can be a program name with args.
5285set dummy $ac_prog; ac_word=$2
5286echo "$as_me:$LINENO: checking for $ac_word" >&5
5287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5289  echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291  if test -n "$ac_ct_F77"; then
5292  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5293else
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297  IFS=$as_save_IFS
5298  test -z "$as_dir" && as_dir=.
5299  for ac_exec_ext in '' $ac_executable_extensions; do
5300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301    ac_cv_prog_ac_ct_F77="$ac_prog"
5302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303    break 2
5304  fi
5305done
5306done
5307
5308fi
5309fi
5310ac_ct_F77=$ac_cv_prog_ac_ct_F77
5311if test -n "$ac_ct_F77"; then
5312  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5313echo "${ECHO_T}$ac_ct_F77" >&6
5314else
5315  echo "$as_me:$LINENO: result: no" >&5
5316echo "${ECHO_T}no" >&6
5317fi
5318
5319  test -n "$ac_ct_F77" && break
5320done
5321
5322  F77=$ac_ct_F77
5323fi
5324
5325
5326# Provide some information about the compiler.
5327echo "$as_me:5327:" \
5328     "checking for Fortran 77 compiler version" >&5
5329ac_compiler=`set X $ac_compile; echo $2`
5330{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5331  (eval $ac_compiler --version </dev/null >&5) 2>&5
5332  ac_status=$?
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); }
5335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5336  (eval $ac_compiler -v </dev/null >&5) 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }
5340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5341  (eval $ac_compiler -V </dev/null >&5) 2>&5
5342  ac_status=$?
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); }
5345rm -f a.out
5346
5347# If we don't use `.F' as extension, the preprocessor is not run on the
5348# input file.  (Note that this only needs to work for GNU compilers.)
5349ac_save_ext=$ac_ext
5350ac_ext=F
5351echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5352echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5353if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356  cat >conftest.$ac_ext <<_ACEOF
5357      program main
5358#ifndef __GNUC__
5359       choke me
5360#endif
5361
5362      end
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366  (eval $ac_compile) 2>conftest.er1
5367  ac_status=$?
5368  grep -v '^ *+' conftest.er1 >conftest.err
5369  rm -f conftest.er1
5370  cat conftest.err >&5
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); } &&
5373	 { ac_try='test -z "$ac_f77_werror_flag"
5374			 || test ! -s conftest.err'
5375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376  (eval $ac_try) 2>&5
5377  ac_status=$?
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); }; } &&
5380	 { ac_try='test -s conftest.$ac_objext'
5381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382  (eval $ac_try) 2>&5
5383  ac_status=$?
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; }; then
5386  ac_compiler_gnu=yes
5387else
5388  echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391ac_compiler_gnu=no
5392fi
5393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5395
5396fi
5397echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5398echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5399ac_ext=$ac_save_ext
5400ac_test_FFLAGS=${FFLAGS+set}
5401ac_save_FFLAGS=$FFLAGS
5402FFLAGS=
5403echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5404echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5405if test "${ac_cv_prog_f77_g+set}" = set; then
5406  echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408  FFLAGS=-g
5409cat >conftest.$ac_ext <<_ACEOF
5410      program main
5411
5412      end
5413_ACEOF
5414rm -f conftest.$ac_objext
5415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5416  (eval $ac_compile) 2>conftest.er1
5417  ac_status=$?
5418  grep -v '^ *+' conftest.er1 >conftest.err
5419  rm -f conftest.er1
5420  cat conftest.err >&5
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); } &&
5423	 { ac_try='test -z "$ac_f77_werror_flag"
5424			 || test ! -s conftest.err'
5425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426  (eval $ac_try) 2>&5
5427  ac_status=$?
5428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429  (exit $ac_status); }; } &&
5430	 { ac_try='test -s conftest.$ac_objext'
5431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432  (eval $ac_try) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; }; then
5436  ac_cv_prog_f77_g=yes
5437else
5438  echo "$as_me: failed program was:" >&5
5439sed 's/^/| /' conftest.$ac_ext >&5
5440
5441ac_cv_prog_f77_g=no
5442fi
5443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445fi
5446echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5447echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5448if test "$ac_test_FFLAGS" = set; then
5449  FFLAGS=$ac_save_FFLAGS
5450elif test $ac_cv_prog_f77_g = yes; then
5451  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5452    FFLAGS="-g -O2"
5453  else
5454    FFLAGS="-g"
5455  fi
5456else
5457  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5458    FFLAGS="-O2"
5459  else
5460    FFLAGS=
5461  fi
5462fi
5463
5464G77=`test $ac_compiler_gnu = yes && echo yes`
5465ac_ext=c
5466ac_cpp='$CPP $CPPFLAGS'
5467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470
5471
5472
5473# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5474
5475# find the maximum length of command line arguments
5476echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5477echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5478if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5479  echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481    i=0
5482  teststring="ABCD"
5483
5484  case $build_os in
5485  msdosdjgpp*)
5486    # On DJGPP, this test can blow up pretty badly due to problems in libc
5487    # (any single argument exceeding 2000 bytes causes a buffer overrun
5488    # during glob expansion).  Even if it were fixed, the result of this
5489    # check would be larger than it should be.
5490    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5491    ;;
5492
5493  gnu*)
5494    # Under GNU Hurd, this test is not required because there is
5495    # no limit to the length of command line arguments.
5496    # Libtool will interpret -1 as no limit whatsoever
5497    lt_cv_sys_max_cmd_len=-1;
5498    ;;
5499
5500  cygwin* | mingw*)
5501    # On Win9x/ME, this test blows up -- it succeeds, but takes
5502    # about 5 minutes as the teststring grows exponentially.
5503    # Worse, since 9x/ME are not pre-emptively multitasking,
5504    # you end up with a "frozen" computer, even though with patience
5505    # the test eventually succeeds (with a max line length of 256k).
5506    # Instead, let's just punt: use the minimum linelength reported by
5507    # all of the supported platforms: 8192 (on NT/2K/XP).
5508    lt_cv_sys_max_cmd_len=8192;
5509    ;;
5510
5511  amigaos*)
5512    # On AmigaOS with pdksh, this test takes hours, literally.
5513    # So we just punt and use a minimum line length of 8192.
5514    lt_cv_sys_max_cmd_len=8192;
5515    ;;
5516
5517  netbsd* | freebsd* | openbsd* | darwin* )
5518    # This has been around since 386BSD, at least.  Likely further.
5519    if test -x /sbin/sysctl; then
5520      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5521    elif test -x /usr/sbin/sysctl; then
5522      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5523    else
5524      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5525    fi
5526    # And add a safety zone
5527    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528    ;;
5529
5530 *)
5531    # If test is not a shell built-in, we'll probably end up computing a
5532    # maximum length that is only half of the actual maximum length, but
5533    # we can't tell.
5534    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5535    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5536	       = "XX$teststring") >/dev/null 2>&1 &&
5537	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5538	    lt_cv_sys_max_cmd_len=$new_result &&
5539	    test $i != 17 # 1/2 MB should be enough
5540    do
5541      i=`expr $i + 1`
5542      teststring=$teststring$teststring
5543    done
5544    teststring=
5545    # Add a significant safety factor because C++ compilers can tack on massive
5546    # amounts of additional arguments before passing them to the linker.
5547    # It appears as though 1/2 is a usable value.
5548    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549    ;;
5550  esac
5551
5552fi
5553
5554if test -n $lt_cv_sys_max_cmd_len ; then
5555  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5556echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5557else
5558  echo "$as_me:$LINENO: result: none" >&5
5559echo "${ECHO_T}none" >&6
5560fi
5561
5562
5563
5564
5565# Check for command to grab the raw symbol name followed by C symbol from nm.
5566echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5567echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5568if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571
5572# These are sane defaults that work on at least a few old systems.
5573# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5574
5575# Character class describing NM global symbol codes.
5576symcode='[BCDEGRST]'
5577
5578# Regexp to match symbols that can be accessed directly from C.
5579sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5580
5581# Transform the above into a raw symbol and a C symbol.
5582symxfrm='\1 \2\3 \3'
5583
5584# Transform an extracted symbol line into a proper C declaration
5585lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5586
5587# Transform an extracted symbol line into symbol name and symbol address
5588lt_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'"
5589
5590# Define system-specific variables.
5591case $host_os in
5592aix*)
5593  symcode='[BCDT]'
5594  ;;
5595cygwin* | mingw* | pw32*)
5596  symcode='[ABCDGISTW]'
5597  ;;
5598hpux*) # Its linker distinguishes data from code symbols
5599  if test "$host_cpu" = ia64; then
5600    symcode='[ABCDEGRST]'
5601  fi
5602  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5603  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'"
5604  ;;
5605linux*)
5606  if test "$host_cpu" = ia64; then
5607    symcode='[ABCDGIRSTW]'
5608    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5609    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'"
5610  fi
5611  ;;
5612irix* | nonstopux*)
5613  symcode='[BCDEGRST]'
5614  ;;
5615osf*)
5616  symcode='[BCDEGQRST]'
5617  ;;
5618solaris* | sysv5*)
5619  symcode='[BDRT]'
5620  ;;
5621sysv4)
5622  symcode='[DFNSTU]'
5623  ;;
5624esac
5625
5626# Handle CRLF in mingw tool chain
5627opt_cr=
5628case $build_os in
5629mingw*)
5630  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5631  ;;
5632esac
5633
5634# If we're using GNU nm, then use its standard symbol codes.
5635case `$NM -V 2>&1` in
5636*GNU* | *'with BFD'*)
5637  symcode='[ABCDGIRSTW]' ;;
5638esac
5639
5640# Try without a prefix undercore, then with it.
5641for ac_symprfx in "" "_"; do
5642
5643  # Write the raw and C identifiers.
5644  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5645
5646  # Check to see that the pipe works correctly.
5647  pipe_works=no
5648
5649  rm -f conftest*
5650  cat > conftest.$ac_ext <<EOF
5651#ifdef __cplusplus
5652extern "C" {
5653#endif
5654char nm_test_var;
5655void nm_test_func(){}
5656#ifdef __cplusplus
5657}
5658#endif
5659int main(){nm_test_var='a';nm_test_func();return(0);}
5660EOF
5661
5662  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663  (eval $ac_compile) 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); }; then
5667    # Now try to grab the symbols.
5668    nlist=conftest.nm
5669    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5670  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5671  ac_status=$?
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); } && test -s "$nlist"; then
5674      # Try sorting and uniquifying the output.
5675      if sort "$nlist" | uniq > "$nlist"T; then
5676	mv -f "$nlist"T "$nlist"
5677      else
5678	rm -f "$nlist"T
5679      fi
5680
5681      # Make sure that we snagged all the symbols we need.
5682      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5683	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5684	  cat <<EOF > conftest.$ac_ext
5685#ifdef __cplusplus
5686extern "C" {
5687#endif
5688
5689EOF
5690	  # Now generate the symbol file.
5691	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5692
5693	  cat <<EOF >> conftest.$ac_ext
5694#if defined (__STDC__) && __STDC__
5695# define lt_ptr_t void *
5696#else
5697# define lt_ptr_t char *
5698# define const
5699#endif
5700
5701/* The mapping between symbol names and symbols. */
5702const struct {
5703  const char *name;
5704  lt_ptr_t address;
5705}
5706lt_preloaded_symbols[] =
5707{
5708EOF
5709	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5710	  cat <<\EOF >> conftest.$ac_ext
5711  {0, (lt_ptr_t) 0}
5712};
5713
5714#ifdef __cplusplus
5715}
5716#endif
5717EOF
5718	  # Now try linking the two files.
5719	  mv conftest.$ac_objext conftstm.$ac_objext
5720	  lt_save_LIBS="$LIBS"
5721	  lt_save_CFLAGS="$CFLAGS"
5722	  LIBS="conftstm.$ac_objext"
5723	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5724	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725  (eval $ac_link) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5729	    pipe_works=yes
5730	  fi
5731	  LIBS="$lt_save_LIBS"
5732	  CFLAGS="$lt_save_CFLAGS"
5733	else
5734	  echo "cannot find nm_test_func in $nlist" >&5
5735	fi
5736      else
5737	echo "cannot find nm_test_var in $nlist" >&5
5738      fi
5739    else
5740      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5741    fi
5742  else
5743    echo "$progname: failed program was:" >&5
5744    cat conftest.$ac_ext >&5
5745  fi
5746  rm -f conftest* conftst*
5747
5748  # Do not use the global_symbol_pipe unless it works.
5749  if test "$pipe_works" = yes; then
5750    break
5751  else
5752    lt_cv_sys_global_symbol_pipe=
5753  fi
5754done
5755
5756fi
5757
5758if test -z "$lt_cv_sys_global_symbol_pipe"; then
5759  lt_cv_sys_global_symbol_to_cdecl=
5760fi
5761if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5762  echo "$as_me:$LINENO: result: failed" >&5
5763echo "${ECHO_T}failed" >&6
5764else
5765  echo "$as_me:$LINENO: result: ok" >&5
5766echo "${ECHO_T}ok" >&6
5767fi
5768
5769echo "$as_me:$LINENO: checking for objdir" >&5
5770echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5771if test "${lt_cv_objdir+set}" = set; then
5772  echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774  rm -f .libs 2>/dev/null
5775mkdir .libs 2>/dev/null
5776if test -d .libs; then
5777  lt_cv_objdir=.libs
5778else
5779  # MS-DOS does not allow filenames that begin with a dot.
5780  lt_cv_objdir=_libs
5781fi
5782rmdir .libs 2>/dev/null
5783fi
5784echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5785echo "${ECHO_T}$lt_cv_objdir" >&6
5786objdir=$lt_cv_objdir
5787
5788
5789
5790
5791
5792case $host_os in
5793aix3*)
5794  # AIX sometimes has problems with the GCC collect2 program.  For some
5795  # reason, if we set the COLLECT_NAMES environment variable, the problems
5796  # vanish in a puff of smoke.
5797  if test "X${COLLECT_NAMES+set}" != Xset; then
5798    COLLECT_NAMES=
5799    export COLLECT_NAMES
5800  fi
5801  ;;
5802esac
5803
5804# Sed substitution that helps us do robust quoting.  It backslashifies
5805# metacharacters that are still active within double-quoted strings.
5806Xsed='sed -e s/^X//'
5807sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5808
5809# Same as above, but do not quote variable references.
5810double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5811
5812# Sed substitution to delay expansion of an escaped shell variable in a
5813# double_quote_subst'ed string.
5814delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5815
5816# Sed substitution to avoid accidental globbing in evaled expressions
5817no_glob_subst='s/\*/\\\*/g'
5818
5819# Constants:
5820rm="rm -f"
5821
5822# Global variables:
5823default_ofile=libtool
5824can_build_shared=yes
5825
5826# All known linkers require a `.a' archive for static linking (except M$VC,
5827# which needs '.lib').
5828libext=a
5829ltmain="$ac_aux_dir/ltmain.sh"
5830ofile="$default_ofile"
5831with_gnu_ld="$lt_cv_prog_gnu_ld"
5832
5833if test -n "$ac_tool_prefix"; then
5834  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5835set dummy ${ac_tool_prefix}ar; ac_word=$2
5836echo "$as_me:$LINENO: checking for $ac_word" >&5
5837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838if test "${ac_cv_prog_AR+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841  if test -n "$AR"; then
5842  ac_cv_prog_AR="$AR" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847  IFS=$as_save_IFS
5848  test -z "$as_dir" && as_dir=.
5849  for ac_exec_ext in '' $ac_executable_extensions; do
5850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851    ac_cv_prog_AR="${ac_tool_prefix}ar"
5852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853    break 2
5854  fi
5855done
5856done
5857
5858fi
5859fi
5860AR=$ac_cv_prog_AR
5861if test -n "$AR"; then
5862  echo "$as_me:$LINENO: result: $AR" >&5
5863echo "${ECHO_T}$AR" >&6
5864else
5865  echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867fi
5868
5869fi
5870if test -z "$ac_cv_prog_AR"; then
5871  ac_ct_AR=$AR
5872  # Extract the first word of "ar", so it can be a program name with args.
5873set dummy ar; ac_word=$2
5874echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5877  echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879  if test -n "$ac_ct_AR"; then
5880  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  test -z "$as_dir" && as_dir=.
5887  for ac_exec_ext in '' $ac_executable_extensions; do
5888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889    ac_cv_prog_ac_ct_AR="ar"
5890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891    break 2
5892  fi
5893done
5894done
5895
5896  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5897fi
5898fi
5899ac_ct_AR=$ac_cv_prog_ac_ct_AR
5900if test -n "$ac_ct_AR"; then
5901  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5902echo "${ECHO_T}$ac_ct_AR" >&6
5903else
5904  echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6
5906fi
5907
5908  AR=$ac_ct_AR
5909else
5910  AR="$ac_cv_prog_AR"
5911fi
5912
5913if test -n "$ac_tool_prefix"; then
5914  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918if test "${ac_cv_prog_RANLIB+set}" = set; then
5919  echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921  if test -n "$RANLIB"; then
5922  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927  IFS=$as_save_IFS
5928  test -z "$as_dir" && as_dir=.
5929  for ac_exec_ext in '' $ac_executable_extensions; do
5930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933    break 2
5934  fi
5935done
5936done
5937
5938fi
5939fi
5940RANLIB=$ac_cv_prog_RANLIB
5941if test -n "$RANLIB"; then
5942  echo "$as_me:$LINENO: result: $RANLIB" >&5
5943echo "${ECHO_T}$RANLIB" >&6
5944else
5945  echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947fi
5948
5949fi
5950if test -z "$ac_cv_prog_RANLIB"; then
5951  ac_ct_RANLIB=$RANLIB
5952  # Extract the first word of "ranlib", so it can be a program name with args.
5953set dummy ranlib; ac_word=$2
5954echo "$as_me:$LINENO: checking for $ac_word" >&5
5955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  if test -n "$ac_ct_RANLIB"; then
5960  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5961else
5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963for as_dir in $PATH
5964do
5965  IFS=$as_save_IFS
5966  test -z "$as_dir" && as_dir=.
5967  for ac_exec_ext in '' $ac_executable_extensions; do
5968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969    ac_cv_prog_ac_ct_RANLIB="ranlib"
5970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974done
5975
5976  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5977fi
5978fi
5979ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5980if test -n "$ac_ct_RANLIB"; then
5981  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5982echo "${ECHO_T}$ac_ct_RANLIB" >&6
5983else
5984  echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986fi
5987
5988  RANLIB=$ac_ct_RANLIB
5989else
5990  RANLIB="$ac_cv_prog_RANLIB"
5991fi
5992
5993if test -n "$ac_tool_prefix"; then
5994  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5995set dummy ${ac_tool_prefix}strip; ac_word=$2
5996echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5998if test "${ac_cv_prog_STRIP+set}" = set; then
5999  echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001  if test -n "$STRIP"; then
6002  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007  IFS=$as_save_IFS
6008  test -z "$as_dir" && as_dir=.
6009  for ac_exec_ext in '' $ac_executable_extensions; do
6010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013    break 2
6014  fi
6015done
6016done
6017
6018fi
6019fi
6020STRIP=$ac_cv_prog_STRIP
6021if test -n "$STRIP"; then
6022  echo "$as_me:$LINENO: result: $STRIP" >&5
6023echo "${ECHO_T}$STRIP" >&6
6024else
6025  echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027fi
6028
6029fi
6030if test -z "$ac_cv_prog_STRIP"; then
6031  ac_ct_STRIP=$STRIP
6032  # Extract the first word of "strip", so it can be a program name with args.
6033set dummy strip; ac_word=$2
6034echo "$as_me:$LINENO: checking for $ac_word" >&5
6035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6037  echo $ECHO_N "(cached) $ECHO_C" >&6
6038else
6039  if test -n "$ac_ct_STRIP"; then
6040  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6041else
6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045  IFS=$as_save_IFS
6046  test -z "$as_dir" && as_dir=.
6047  for ac_exec_ext in '' $ac_executable_extensions; do
6048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049    ac_cv_prog_ac_ct_STRIP="strip"
6050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054done
6055
6056  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6057fi
6058fi
6059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6060if test -n "$ac_ct_STRIP"; then
6061  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6062echo "${ECHO_T}$ac_ct_STRIP" >&6
6063else
6064  echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066fi
6067
6068  STRIP=$ac_ct_STRIP
6069else
6070  STRIP="$ac_cv_prog_STRIP"
6071fi
6072
6073
6074old_CC="$CC"
6075old_CFLAGS="$CFLAGS"
6076
6077# Set sane defaults for various variables
6078test -z "$AR" && AR=ar
6079test -z "$AR_FLAGS" && AR_FLAGS=cru
6080test -z "$AS" && AS=as
6081test -z "$CC" && CC=cc
6082test -z "$LTCC" && LTCC=$CC
6083test -z "$DLLTOOL" && DLLTOOL=dlltool
6084test -z "$LD" && LD=ld
6085test -z "$LN_S" && LN_S="ln -s"
6086test -z "$MAGIC_CMD" && MAGIC_CMD=file
6087test -z "$NM" && NM=nm
6088test -z "$SED" && SED=sed
6089test -z "$OBJDUMP" && OBJDUMP=objdump
6090test -z "$RANLIB" && RANLIB=:
6091test -z "$STRIP" && STRIP=:
6092test -z "$ac_objext" && ac_objext=o
6093
6094# Determine commands to create old-style static archives.
6095old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6096old_postinstall_cmds='chmod 644 $oldlib'
6097old_postuninstall_cmds=
6098
6099if test -n "$RANLIB"; then
6100  case $host_os in
6101  openbsd*)
6102    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6103    ;;
6104  *)
6105    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6106    ;;
6107  esac
6108  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6109fi
6110
6111cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6112
6113# Only perform the check for file, if the check method requires it
6114case $deplibs_check_method in
6115file_magic*)
6116  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6117    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6118echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6119if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6120  echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122  case $MAGIC_CMD in
6123[\\/*] |  ?:[\\/]*)
6124  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6125  ;;
6126*)
6127  lt_save_MAGIC_CMD="$MAGIC_CMD"
6128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6129  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6130  for ac_dir in $ac_dummy; do
6131    IFS="$lt_save_ifs"
6132    test -z "$ac_dir" && ac_dir=.
6133    if test -f $ac_dir/${ac_tool_prefix}file; then
6134      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6135      if test -n "$file_magic_test_file"; then
6136	case $deplibs_check_method in
6137	"file_magic "*)
6138	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6139	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6140	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6141	    $EGREP "$file_magic_regex" > /dev/null; then
6142	    :
6143	  else
6144	    cat <<EOF 1>&2
6145
6146*** Warning: the command libtool uses to detect shared libraries,
6147*** $file_magic_cmd, produces output that libtool cannot recognize.
6148*** The result is that libtool may fail to recognize shared libraries
6149*** as such.  This will affect the creation of libtool libraries that
6150*** depend on shared libraries, but programs linked with such libtool
6151*** libraries will work regardless of this problem.  Nevertheless, you
6152*** may want to report the problem to your system manager and/or to
6153*** bug-libtool@gnu.org
6154
6155EOF
6156	  fi ;;
6157	esac
6158      fi
6159      break
6160    fi
6161  done
6162  IFS="$lt_save_ifs"
6163  MAGIC_CMD="$lt_save_MAGIC_CMD"
6164  ;;
6165esac
6166fi
6167
6168MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6169if test -n "$MAGIC_CMD"; then
6170  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6171echo "${ECHO_T}$MAGIC_CMD" >&6
6172else
6173  echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175fi
6176
6177if test -z "$lt_cv_path_MAGIC_CMD"; then
6178  if test -n "$ac_tool_prefix"; then
6179    echo "$as_me:$LINENO: checking for file" >&5
6180echo $ECHO_N "checking for file... $ECHO_C" >&6
6181if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6182  echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184  case $MAGIC_CMD in
6185[\\/*] |  ?:[\\/]*)
6186  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6187  ;;
6188*)
6189  lt_save_MAGIC_CMD="$MAGIC_CMD"
6190  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6191  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6192  for ac_dir in $ac_dummy; do
6193    IFS="$lt_save_ifs"
6194    test -z "$ac_dir" && ac_dir=.
6195    if test -f $ac_dir/file; then
6196      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6197      if test -n "$file_magic_test_file"; then
6198	case $deplibs_check_method in
6199	"file_magic "*)
6200	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6201	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6202	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6203	    $EGREP "$file_magic_regex" > /dev/null; then
6204	    :
6205	  else
6206	    cat <<EOF 1>&2
6207
6208*** Warning: the command libtool uses to detect shared libraries,
6209*** $file_magic_cmd, produces output that libtool cannot recognize.
6210*** The result is that libtool may fail to recognize shared libraries
6211*** as such.  This will affect the creation of libtool libraries that
6212*** depend on shared libraries, but programs linked with such libtool
6213*** libraries will work regardless of this problem.  Nevertheless, you
6214*** may want to report the problem to your system manager and/or to
6215*** bug-libtool@gnu.org
6216
6217EOF
6218	  fi ;;
6219	esac
6220      fi
6221      break
6222    fi
6223  done
6224  IFS="$lt_save_ifs"
6225  MAGIC_CMD="$lt_save_MAGIC_CMD"
6226  ;;
6227esac
6228fi
6229
6230MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6231if test -n "$MAGIC_CMD"; then
6232  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6233echo "${ECHO_T}$MAGIC_CMD" >&6
6234else
6235  echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6
6237fi
6238
6239  else
6240    MAGIC_CMD=:
6241  fi
6242fi
6243
6244  fi
6245  ;;
6246esac
6247
6248enable_dlopen=no
6249enable_win32_dll=no
6250
6251# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6252if test "${enable_libtool_lock+set}" = set; then
6253  enableval="$enable_libtool_lock"
6254
6255fi;
6256test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6257
6258
6259# Check whether --with-pic or --without-pic was given.
6260if test "${with_pic+set}" = set; then
6261  withval="$with_pic"
6262  pic_mode="$withval"
6263else
6264  pic_mode=default
6265fi;
6266test -z "$pic_mode" && pic_mode=default
6267
6268# Use C for the default configuration in the libtool script
6269tagname=
6270lt_save_CC="$CC"
6271ac_ext=c
6272ac_cpp='$CPP $CPPFLAGS'
6273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276
6277
6278# Source file extension for C test sources.
6279ac_ext=c
6280
6281# Object file extension for compiled C test sources.
6282objext=o
6283objext=$objext
6284
6285# Code to be used in simple compile tests
6286lt_simple_compile_test_code="int some_variable = 0;\n"
6287
6288# Code to be used in simple link tests
6289lt_simple_link_test_code='int main(){return(0);}\n'
6290
6291
6292# If no C compiler was specified, use CC.
6293LTCC=${LTCC-"$CC"}
6294
6295# Allow CC to be a program name with arguments.
6296compiler=$CC
6297
6298
6299#
6300# Check for any special shared library compilation flags.
6301#
6302lt_prog_cc_shlib=
6303if test "$GCC" = no; then
6304  case $host_os in
6305  sco3.2v5*)
6306    lt_prog_cc_shlib='-belf'
6307    ;;
6308  esac
6309fi
6310if test -n "$lt_prog_cc_shlib"; then
6311  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6312echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6313  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6314  else
6315    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6316echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6317    lt_cv_prog_cc_can_build_shared=no
6318  fi
6319fi
6320
6321
6322#
6323# Check to make sure the static flag actually works.
6324#
6325echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6326echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6327if test "${lt_prog_compiler_static_works+set}" = set; then
6328  echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330  lt_prog_compiler_static_works=no
6331   save_LDFLAGS="$LDFLAGS"
6332   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6333   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6334   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6335     # The compiler can only warn and ignore the option if not recognized
6336     # So say no if there are warnings
6337     if test -s conftest.err; then
6338       # Append any errors to the config.log.
6339       cat conftest.err 1>&5
6340     else
6341       lt_prog_compiler_static_works=yes
6342     fi
6343   fi
6344   $rm conftest*
6345   LDFLAGS="$save_LDFLAGS"
6346
6347fi
6348echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6349echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6350
6351if test x"$lt_prog_compiler_static_works" = xyes; then
6352    :
6353else
6354    lt_prog_compiler_static=
6355fi
6356
6357
6358
6359
6360lt_prog_compiler_no_builtin_flag=
6361
6362if test "$GCC" = yes; then
6363  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6364
6365
6366echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6367echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6368if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6369  echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371  lt_cv_prog_compiler_rtti_exceptions=no
6372  ac_outfile=conftest.$ac_objext
6373   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6374   lt_compiler_flag="-fno-rtti -fno-exceptions"
6375   # Insert the option either (1) after the last *FLAGS variable, or
6376   # (2) before a word containing "conftest.", or (3) at the end.
6377   # Note that $ac_compile itself does not contain backslashes and begins
6378   # with a dollar sign (not a hyphen), so the echo should work correctly.
6379   # The option is referenced via a variable to avoid confusing sed.
6380   lt_compile=`echo "$ac_compile" | $SED \
6381   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6382   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6383   -e 's:$: $lt_compiler_flag:'`
6384   (eval echo "\"\$as_me:6384: $lt_compile\"" >&5)
6385   (eval "$lt_compile" 2>conftest.err)
6386   ac_status=$?
6387   cat conftest.err >&5
6388   echo "$as_me:6388: \$? = $ac_status" >&5
6389   if (exit $ac_status) && test -s "$ac_outfile"; then
6390     # The compiler can only warn and ignore the option if not recognized
6391     # So say no if there are warnings
6392     if test ! -s conftest.err; then
6393       lt_cv_prog_compiler_rtti_exceptions=yes
6394     fi
6395   fi
6396   $rm conftest*
6397
6398fi
6399echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6400echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6401
6402if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6403    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6404else
6405    :
6406fi
6407
6408fi
6409
6410lt_prog_compiler_wl=
6411lt_prog_compiler_pic=
6412lt_prog_compiler_static=
6413
6414echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6415echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6416
6417  if test "$GCC" = yes; then
6418    lt_prog_compiler_wl='-Wl,'
6419    lt_prog_compiler_static='-static'
6420
6421    case $host_os in
6422      aix*)
6423      # All AIX code is PIC.
6424      if test "$host_cpu" = ia64; then
6425	# AIX 5 now supports IA64 processor
6426	lt_prog_compiler_static='-Bstatic'
6427      fi
6428      ;;
6429
6430    amigaos*)
6431      # FIXME: we need at least 68020 code to build shared libraries, but
6432      # adding the `-m68020' flag to GCC prevents building anything better,
6433      # like `-m68040'.
6434      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6435      ;;
6436
6437    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6438      # PIC is the default for these OSes.
6439      ;;
6440
6441    mingw* | pw32* | os2*)
6442      # This hack is so that the source file can tell whether it is being
6443      # built for inclusion in a dll (and should export symbols for example).
6444      lt_prog_compiler_pic='-DDLL_EXPORT'
6445      ;;
6446
6447    darwin* | rhapsody*)
6448      # PIC is the default on this platform
6449      # Common symbols not allowed in MH_DYLIB files
6450      lt_prog_compiler_pic='-fno-common'
6451      ;;
6452
6453    msdosdjgpp*)
6454      # Just because we use GCC doesn't mean we suddenly get shared libraries
6455      # on systems that don't support them.
6456      lt_prog_compiler_can_build_shared=no
6457      enable_shared=no
6458      ;;
6459
6460    sysv4*MP*)
6461      if test -d /usr/nec; then
6462	lt_prog_compiler_pic=-Kconform_pic
6463      fi
6464      ;;
6465
6466    hpux*)
6467      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6468      # not for PA HP-UX.
6469      case "$host_cpu" in
6470      hppa*64*|ia64*)
6471	# +Z the default
6472	;;
6473      *)
6474	lt_prog_compiler_pic='-fPIC'
6475	;;
6476      esac
6477      ;;
6478
6479    *)
6480      lt_prog_compiler_pic='-fPIC'
6481      ;;
6482    esac
6483  else
6484    # PORTME Check for flag to pass linker flags through the system compiler.
6485    case $host_os in
6486    aix*)
6487      lt_prog_compiler_wl='-Wl,'
6488      if test "$host_cpu" = ia64; then
6489	# AIX 5 now supports IA64 processor
6490	lt_prog_compiler_static='-Bstatic'
6491      else
6492	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6493      fi
6494      ;;
6495      darwin*)
6496        # PIC is the default on this platform
6497        # Common symbols not allowed in MH_DYLIB files
6498       case "$cc_basename" in
6499         xlc*)
6500         lt_prog_compiler_pic='-qnocommon'
6501         lt_prog_compiler_wl='-Wl,'
6502         ;;
6503       esac
6504       ;;
6505
6506    mingw* | pw32* | os2*)
6507      # This hack is so that the source file can tell whether it is being
6508      # built for inclusion in a dll (and should export symbols for example).
6509      lt_prog_compiler_pic='-DDLL_EXPORT'
6510      ;;
6511
6512    hpux9* | hpux10* | hpux11*)
6513      lt_prog_compiler_wl='-Wl,'
6514      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6515      # not for PA HP-UX.
6516      case "$host_cpu" in
6517      hppa*64*|ia64*)
6518	# +Z the default
6519	;;
6520      *)
6521	lt_prog_compiler_pic='+Z'
6522	;;
6523      esac
6524      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6525      lt_prog_compiler_static='${wl}-a ${wl}archive'
6526      ;;
6527
6528    irix5* | irix6* | nonstopux*)
6529      lt_prog_compiler_wl='-Wl,'
6530      # PIC (with -KPIC) is the default.
6531      lt_prog_compiler_static='-non_shared'
6532      ;;
6533
6534    newsos6)
6535      lt_prog_compiler_pic='-KPIC'
6536      lt_prog_compiler_static='-Bstatic'
6537      ;;
6538
6539    linux*)
6540      case $CC in
6541      icc* | ecc*)
6542	lt_prog_compiler_wl='-Wl,'
6543	lt_prog_compiler_pic='-KPIC'
6544	lt_prog_compiler_static='-static'
6545        ;;
6546      ccc*)
6547        lt_prog_compiler_wl='-Wl,'
6548        # All Alpha code is PIC.
6549        lt_prog_compiler_static='-non_shared'
6550        ;;
6551      esac
6552      ;;
6553
6554    osf3* | osf4* | osf5*)
6555      lt_prog_compiler_wl='-Wl,'
6556      # All OSF/1 code is PIC.
6557      lt_prog_compiler_static='-non_shared'
6558      ;;
6559
6560    sco3.2v5*)
6561      lt_prog_compiler_pic='-Kpic'
6562      lt_prog_compiler_static='-dn'
6563      ;;
6564
6565    solaris*)
6566      lt_prog_compiler_wl='-Wl,'
6567      lt_prog_compiler_pic='-KPIC'
6568      lt_prog_compiler_static='-Bstatic'
6569      ;;
6570
6571    sunos4*)
6572      lt_prog_compiler_wl='-Qoption ld '
6573      lt_prog_compiler_pic='-PIC'
6574      lt_prog_compiler_static='-Bstatic'
6575      ;;
6576
6577    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6578      lt_prog_compiler_wl='-Wl,'
6579      lt_prog_compiler_pic='-KPIC'
6580      lt_prog_compiler_static='-Bstatic'
6581      ;;
6582
6583    sysv4*MP*)
6584      if test -d /usr/nec ;then
6585	lt_prog_compiler_pic='-Kconform_pic'
6586	lt_prog_compiler_static='-Bstatic'
6587      fi
6588      ;;
6589
6590    uts4*)
6591      lt_prog_compiler_pic='-pic'
6592      lt_prog_compiler_static='-Bstatic'
6593      ;;
6594
6595    *)
6596      lt_prog_compiler_can_build_shared=no
6597      ;;
6598    esac
6599  fi
6600
6601echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6602echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6603
6604#
6605# Check to make sure the PIC flag actually works.
6606#
6607if test -n "$lt_prog_compiler_pic"; then
6608
6609echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6610echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6611if test "${lt_prog_compiler_pic_works+set}" = set; then
6612  echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614  lt_prog_compiler_pic_works=no
6615  ac_outfile=conftest.$ac_objext
6616   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6618   # Insert the option either (1) after the last *FLAGS variable, or
6619   # (2) before a word containing "conftest.", or (3) at the end.
6620   # Note that $ac_compile itself does not contain backslashes and begins
6621   # with a dollar sign (not a hyphen), so the echo should work correctly.
6622   # The option is referenced via a variable to avoid confusing sed.
6623   lt_compile=`echo "$ac_compile" | $SED \
6624   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6626   -e 's:$: $lt_compiler_flag:'`
6627   (eval echo "\"\$as_me:6627: $lt_compile\"" >&5)
6628   (eval "$lt_compile" 2>conftest.err)
6629   ac_status=$?
6630   cat conftest.err >&5
6631   echo "$as_me:6631: \$? = $ac_status" >&5
6632   if (exit $ac_status) && test -s "$ac_outfile"; then
6633     # The compiler can only warn and ignore the option if not recognized
6634     # So say no if there are warnings
6635     if test ! -s conftest.err; then
6636       lt_prog_compiler_pic_works=yes
6637     fi
6638   fi
6639   $rm conftest*
6640
6641fi
6642echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6643echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6644
6645if test x"$lt_prog_compiler_pic_works" = xyes; then
6646    case $lt_prog_compiler_pic in
6647     "" | " "*) ;;
6648     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6649     esac
6650else
6651    lt_prog_compiler_pic=
6652     lt_prog_compiler_can_build_shared=no
6653fi
6654
6655fi
6656case "$host_os" in
6657  # For platforms which do not support PIC, -DPIC is meaningless:
6658  *djgpp*)
6659    lt_prog_compiler_pic=
6660    ;;
6661  *)
6662    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6663    ;;
6664esac
6665
6666echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6667echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6668if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  lt_cv_prog_compiler_c_o=no
6672   $rm -r conftest 2>/dev/null
6673   mkdir conftest
6674   cd conftest
6675   mkdir out
6676   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6677
6678   lt_compiler_flag="-o out/conftest2.$ac_objext"
6679   # Insert the option either (1) after the last *FLAGS variable, or
6680   # (2) before a word containing "conftest.", or (3) at the end.
6681   # Note that $ac_compile itself does not contain backslashes and begins
6682   # with a dollar sign (not a hyphen), so the echo should work correctly.
6683   lt_compile=`echo "$ac_compile" | $SED \
6684   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6686   -e 's:$: $lt_compiler_flag:'`
6687   (eval echo "\"\$as_me:6687: $lt_compile\"" >&5)
6688   (eval "$lt_compile" 2>out/conftest.err)
6689   ac_status=$?
6690   cat out/conftest.err >&5
6691   echo "$as_me:6691: \$? = $ac_status" >&5
6692   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6693   then
6694     # The compiler can only warn and ignore the option if not recognized
6695     # So say no if there are warnings
6696     if test ! -s out/conftest.err; then
6697       lt_cv_prog_compiler_c_o=yes
6698     fi
6699   fi
6700   chmod u+w .
6701   $rm conftest*
6702   # SGI C++ compiler will create directory out/ii_files/ for
6703   # template instantiation
6704   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6705   $rm out/* && rmdir out
6706   cd ..
6707   rmdir conftest
6708   $rm conftest*
6709
6710fi
6711echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6712echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6713
6714
6715hard_links="nottested"
6716if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6717  # do not overwrite the value of need_locks provided by the user
6718  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6719echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6720  hard_links=yes
6721  $rm conftest*
6722  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6723  touch conftest.a
6724  ln conftest.a conftest.b 2>&5 || hard_links=no
6725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6726  echo "$as_me:$LINENO: result: $hard_links" >&5
6727echo "${ECHO_T}$hard_links" >&6
6728  if test "$hard_links" = no; then
6729    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6730echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6731    need_locks=warn
6732  fi
6733else
6734  need_locks=no
6735fi
6736
6737echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6738echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6739
6740  runpath_var=
6741  allow_undefined_flag=
6742  enable_shared_with_static_runtimes=no
6743  archive_cmds=
6744  archive_expsym_cmds=
6745  old_archive_From_new_cmds=
6746  old_archive_from_expsyms_cmds=
6747  export_dynamic_flag_spec=
6748  whole_archive_flag_spec=
6749  thread_safe_flag_spec=
6750  hardcode_libdir_flag_spec=
6751  hardcode_libdir_flag_spec_ld=
6752  hardcode_libdir_separator=
6753  hardcode_direct=no
6754  hardcode_minus_L=no
6755  hardcode_shlibpath_var=unsupported
6756  link_all_deplibs=unknown
6757  hardcode_automatic=no
6758  module_cmds=
6759  module_expsym_cmds=
6760  always_export_symbols=no
6761  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6762  # include_expsyms should be a list of space-separated symbols to be *always*
6763  # included in the symbol list
6764  include_expsyms=
6765  # exclude_expsyms can be an extended regexp of symbols to exclude
6766  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6767  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6768  # as well as any symbol that contains `d'.
6769  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6770  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6771  # platforms (ab)use it in PIC code, but their linkers get confused if
6772  # the symbol is explicitly referenced.  Since portable code cannot
6773  # rely on this symbol name, it's probably fine to never include it in
6774  # preloaded symbol tables.
6775  extract_expsyms_cmds=
6776
6777  case $host_os in
6778  cygwin* | mingw* | pw32*)
6779    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6780    # When not using gcc, we currently assume that we are using
6781    # Microsoft Visual C++.
6782    if test "$GCC" != yes; then
6783      with_gnu_ld=no
6784    fi
6785    ;;
6786  openbsd*)
6787    with_gnu_ld=no
6788    ;;
6789  esac
6790
6791  ld_shlibs=yes
6792  if test "$with_gnu_ld" = yes; then
6793    # If archive_cmds runs LD, not CC, wlarc should be empty
6794    wlarc='${wl}'
6795
6796    # See if GNU ld supports shared libraries.
6797    case $host_os in
6798    aix3* | aix4* | aix5*)
6799      # On AIX/PPC, the GNU linker is very broken
6800      if test "$host_cpu" != ia64; then
6801	ld_shlibs=no
6802	cat <<EOF 1>&2
6803
6804*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6805*** to be unable to reliably create shared libraries on AIX.
6806*** Therefore, libtool is disabling shared libraries support.  If you
6807*** really care for shared libraries, you may want to modify your PATH
6808*** so that a non-GNU linker is found, and then restart.
6809
6810EOF
6811      fi
6812      ;;
6813
6814    amigaos*)
6815      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)'
6816      hardcode_libdir_flag_spec='-L$libdir'
6817      hardcode_minus_L=yes
6818
6819      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6820      # that the semantics of dynamic libraries on AmigaOS, at least up
6821      # to version 4, is to share data among multiple programs linked
6822      # with the same dynamic library.  Since this doesn't match the
6823      # behavior of shared libraries on other platforms, we can't use
6824      # them.
6825      ld_shlibs=no
6826      ;;
6827
6828    beos*)
6829      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6830	allow_undefined_flag=unsupported
6831	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6832	# support --undefined.  This deserves some investigation.  FIXME
6833	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6834      else
6835	ld_shlibs=no
6836      fi
6837      ;;
6838
6839    cygwin* | mingw* | pw32*)
6840      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6841      # as there is no search path for DLLs.
6842      hardcode_libdir_flag_spec='-L$libdir'
6843      allow_undefined_flag=unsupported
6844      always_export_symbols=no
6845      enable_shared_with_static_runtimes=yes
6846      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6847
6848      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6849        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6850	# If the export-symbols file already is a .def file (1st line
6851	# is EXPORTS), use it as is; otherwise, prepend...
6852	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6853	  cp $export_symbols $output_objdir/$soname.def;
6854	else
6855	  echo EXPORTS > $output_objdir/$soname.def;
6856	  cat $export_symbols >> $output_objdir/$soname.def;
6857	fi~
6858	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6859      else
6860	ld_shlibs=no
6861      fi
6862      ;;
6863
6864    netbsd*)
6865      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6866	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6867	wlarc=
6868      else
6869	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6870	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6871      fi
6872      ;;
6873
6874    solaris* | sysv5*)
6875      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6876	ld_shlibs=no
6877	cat <<EOF 1>&2
6878
6879*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6880*** create shared libraries on Solaris systems.  Therefore, libtool
6881*** is disabling shared libraries support.  We urge you to upgrade GNU
6882*** binutils to release 2.9.1 or newer.  Another option is to modify
6883*** your PATH or compiler configuration so that the native linker is
6884*** used, and then restart.
6885
6886EOF
6887      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6888	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6889	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6890      else
6891	ld_shlibs=no
6892      fi
6893      ;;
6894
6895    sunos4*)
6896      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6897      wlarc=
6898      hardcode_direct=yes
6899      hardcode_shlibpath_var=no
6900      ;;
6901
6902  linux*)
6903    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6904        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6905	archive_cmds="$tmp_archive_cmds"
6906      supports_anon_versioning=no
6907      case `$LD -v 2>/dev/null` in
6908        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6909        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6910        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6911        *\ 2.11.*) ;; # other 2.11 versions
6912        *) supports_anon_versioning=yes ;;
6913      esac
6914      if test $supports_anon_versioning = yes; then
6915        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6916cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6917$echo "local: *; };" >> $output_objdir/$libname.ver~
6918        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6919      else
6920        archive_expsym_cmds="$tmp_archive_cmds"
6921      fi
6922    else
6923      ld_shlibs=no
6924    fi
6925    ;;
6926
6927    *)
6928      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6929	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6930	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6931      else
6932	ld_shlibs=no
6933      fi
6934      ;;
6935    esac
6936
6937    if test "$ld_shlibs" = yes; then
6938      runpath_var=LD_RUN_PATH
6939      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6940      export_dynamic_flag_spec='${wl}--export-dynamic'
6941      # ancient GNU ld didn't support --whole-archive et. al.
6942      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6943 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6944      else
6945  	whole_archive_flag_spec=
6946      fi
6947    fi
6948  else
6949    # PORTME fill in a description of your system's linker (not GNU ld)
6950    case $host_os in
6951    aix3*)
6952      allow_undefined_flag=unsupported
6953      always_export_symbols=yes
6954      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'
6955      # Note: this linker hardcodes the directories in LIBPATH if there
6956      # are no directories specified by -L.
6957      hardcode_minus_L=yes
6958      if test "$GCC" = yes && test -z "$link_static_flag"; then
6959	# Neither direct hardcoding nor static linking is supported with a
6960	# broken collect2.
6961	hardcode_direct=unsupported
6962      fi
6963      ;;
6964
6965    aix4* | aix5*)
6966      if test "$host_cpu" = ia64; then
6967	# On IA64, the linker does run time linking by default, so we don't
6968	# have to do anything special.
6969	aix_use_runtimelinking=no
6970	exp_sym_flag='-Bexport'
6971	no_entry_flag=""
6972      else
6973	# If we're using GNU nm, then we don't want the "-C" option.
6974	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6975	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6976	  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'
6977	else
6978	  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'
6979	fi
6980	aix_use_runtimelinking=no
6981
6982	# Test if we are trying to use run time linking or normal
6983	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6984	# need to do runtime linking.
6985	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6986	  for ld_flag in $LDFLAGS; do
6987  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6988  	    aix_use_runtimelinking=yes
6989  	    break
6990  	  fi
6991	  done
6992	esac
6993
6994	exp_sym_flag='-bexport'
6995	no_entry_flag='-bnoentry'
6996      fi
6997
6998      # When large executables or shared objects are built, AIX ld can
6999      # have problems creating the table of contents.  If linking a library
7000      # or program results in "error TOC overflow" add -mminimal-toc to
7001      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7002      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7003
7004      archive_cmds=''
7005      hardcode_direct=yes
7006      hardcode_libdir_separator=':'
7007      link_all_deplibs=yes
7008
7009      if test "$GCC" = yes; then
7010	case $host_os in aix4.012|aix4.012.*)
7011	# We only want to do this on AIX 4.2 and lower, the check
7012	# below for broken collect2 doesn't work under 4.3+
7013	  collect2name=`${CC} -print-prog-name=collect2`
7014	  if test -f "$collect2name" && \
7015  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7016	  then
7017  	  # We have reworked collect2
7018  	  hardcode_direct=yes
7019	  else
7020  	  # We have old collect2
7021  	  hardcode_direct=unsupported
7022  	  # It fails to find uninstalled libraries when the uninstalled
7023  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7024  	  # to unsupported forces relinking
7025  	  hardcode_minus_L=yes
7026  	  hardcode_libdir_flag_spec='-L$libdir'
7027  	  hardcode_libdir_separator=
7028	  fi
7029	esac
7030	shared_flag='-shared'
7031      else
7032	# not using gcc
7033	if test "$host_cpu" = ia64; then
7034  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7035  	# chokes on -Wl,-G. The following line is correct:
7036	  shared_flag='-G'
7037	else
7038  	if test "$aix_use_runtimelinking" = yes; then
7039	    shared_flag='${wl}-G'
7040	  else
7041	    shared_flag='${wl}-bM:SRE'
7042  	fi
7043	fi
7044      fi
7045
7046      # It seems that -bexpall does not export symbols beginning with
7047      # underscore (_), so it is better to generate a list of symbols to export.
7048      always_export_symbols=yes
7049      if test "$aix_use_runtimelinking" = yes; then
7050	# Warning - without using the other runtime loading flags (-brtl),
7051	# -berok will link without error, but may produce a broken library.
7052	allow_undefined_flag='-berok'
7053       # Determine the default libpath from the value encoded in an empty executable.
7054       cat >conftest.$ac_ext <<_ACEOF
7055/* confdefs.h.  */
7056_ACEOF
7057cat confdefs.h >>conftest.$ac_ext
7058cat >>conftest.$ac_ext <<_ACEOF
7059/* end confdefs.h.  */
7060
7061int
7062main ()
7063{
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069rm -f conftest.$ac_objext conftest$ac_exeext
7070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071  (eval $ac_link) 2>conftest.er1
7072  ac_status=$?
7073  grep -v '^ *+' conftest.er1 >conftest.err
7074  rm -f conftest.er1
7075  cat conftest.err >&5
7076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077  (exit $ac_status); } &&
7078	 { ac_try='test -z "$ac_c_werror_flag"
7079			 || test ! -s conftest.err'
7080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081  (eval $ac_try) 2>&5
7082  ac_status=$?
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); }; } &&
7085	 { ac_try='test -s conftest$ac_exeext'
7086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087  (eval $ac_try) 2>&5
7088  ac_status=$?
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); }; }; then
7091
7092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7093}'`
7094# Check for a 64-bit object if we didn't find anything.
7095if 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; }
7096}'`; fi
7097else
7098  echo "$as_me: failed program was:" >&5
7099sed 's/^/| /' conftest.$ac_ext >&5
7100
7101fi
7102rm -f conftest.err conftest.$ac_objext \
7103      conftest$ac_exeext conftest.$ac_ext
7104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7105
7106       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7107	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"
7108       else
7109	if test "$host_cpu" = ia64; then
7110	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7111	  allow_undefined_flag="-z nodefs"
7112	  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"
7113	else
7114	 # Determine the default libpath from the value encoded in an empty executable.
7115	 cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121
7122int
7123main ()
7124{
7125
7126  ;
7127  return 0;
7128}
7129_ACEOF
7130rm -f conftest.$ac_objext conftest$ac_exeext
7131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132  (eval $ac_link) 2>conftest.er1
7133  ac_status=$?
7134  grep -v '^ *+' conftest.er1 >conftest.err
7135  rm -f conftest.er1
7136  cat conftest.err >&5
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); } &&
7139	 { ac_try='test -z "$ac_c_werror_flag"
7140			 || test ! -s conftest.err'
7141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142  (eval $ac_try) 2>&5
7143  ac_status=$?
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); }; } &&
7146	 { ac_try='test -s conftest$ac_exeext'
7147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148  (eval $ac_try) 2>&5
7149  ac_status=$?
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); }; }; then
7152
7153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7154}'`
7155# Check for a 64-bit object if we didn't find anything.
7156if 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; }
7157}'`; fi
7158else
7159  echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162fi
7163rm -f conftest.err conftest.$ac_objext \
7164      conftest$ac_exeext conftest.$ac_ext
7165if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7166
7167	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7168	  # Warning - without using the other run time loading flags,
7169	  # -berok will link without error, but may produce a broken library.
7170	  no_undefined_flag=' ${wl}-bernotok'
7171	  allow_undefined_flag=' ${wl}-berok'
7172	  # -bexpall does not export symbols beginning with underscore (_)
7173	  always_export_symbols=yes
7174	  # Exported symbols can be pulled into shared objects from archives
7175	  whole_archive_flag_spec=' '
7176	  archive_cmds_need_lc=yes
7177	  # This is similar to how AIX traditionally builds it's shared libraries.
7178	  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'
7179	fi
7180      fi
7181      ;;
7182
7183    amigaos*)
7184      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)'
7185      hardcode_libdir_flag_spec='-L$libdir'
7186      hardcode_minus_L=yes
7187      # see comment about different semantics on the GNU ld section
7188      ld_shlibs=no
7189      ;;
7190
7191    bsdi[45]*)
7192      export_dynamic_flag_spec=-rdynamic
7193      ;;
7194
7195    cygwin* | mingw* | pw32*)
7196      # When not using gcc, we currently assume that we are using
7197      # Microsoft Visual C++.
7198      # hardcode_libdir_flag_spec is actually meaningless, as there is
7199      # no search path for DLLs.
7200      hardcode_libdir_flag_spec=' '
7201      allow_undefined_flag=unsupported
7202      # Tell ltmain to make .lib files, not .a files.
7203      libext=lib
7204      # Tell ltmain to make .dll files, not .so files.
7205      shrext_cmds=".dll"
7206      # FIXME: Setting linknames here is a bad hack.
7207      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7208      # The linker will automatically build a .lib file if we build a DLL.
7209      old_archive_From_new_cmds='true'
7210      # FIXME: Should let the user specify the lib program.
7211      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7212      fix_srcfile_path='`cygpath -w "$srcfile"`'
7213      enable_shared_with_static_runtimes=yes
7214      ;;
7215
7216    darwin* | rhapsody*)
7217      case "$host_os" in
7218        rhapsody* | darwin1.[012])
7219         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7220         ;;
7221       *) # Darwin 1.3 on
7222         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7223           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7224         else
7225           case ${MACOSX_DEPLOYMENT_TARGET} in
7226             10.[012])
7227               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7228               ;;
7229             10.*)
7230               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7231               ;;
7232           esac
7233         fi
7234         ;;
7235      esac
7236      archive_cmds_need_lc=no
7237      hardcode_direct=no
7238      hardcode_automatic=yes
7239      hardcode_shlibpath_var=unsupported
7240      whole_archive_flag_spec=''
7241      link_all_deplibs=yes
7242    if test "$GCC" = yes ; then
7243    	output_verbose_link_cmd='echo'
7244        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7245      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7246      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7247      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}'
7248      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}'
7249    else
7250      case "$cc_basename" in
7251        xlc*)
7252         output_verbose_link_cmd='echo'
7253         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7254         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7255          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7256         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}'
7257          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}'
7258          ;;
7259       *)
7260         ld_shlibs=no
7261          ;;
7262      esac
7263    fi
7264      ;;
7265
7266    dgux*)
7267      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268      hardcode_libdir_flag_spec='-L$libdir'
7269      hardcode_shlibpath_var=no
7270      ;;
7271
7272    freebsd1*)
7273      ld_shlibs=no
7274      ;;
7275
7276    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7277    # support.  Future versions do this automatically, but an explicit c++rt0.o
7278    # does not break anything, and helps significantly (at the cost of a little
7279    # extra space).
7280    freebsd2.2*)
7281      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7282      hardcode_libdir_flag_spec='-R$libdir'
7283      hardcode_direct=yes
7284      hardcode_shlibpath_var=no
7285      ;;
7286
7287    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7288    freebsd2*)
7289      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7290      hardcode_direct=yes
7291      hardcode_minus_L=yes
7292      hardcode_shlibpath_var=no
7293      ;;
7294
7295    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7296    freebsd* | kfreebsd*-gnu)
7297      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7298      hardcode_libdir_flag_spec='-R$libdir'
7299      hardcode_direct=yes
7300      hardcode_shlibpath_var=no
7301      ;;
7302
7303    hpux9*)
7304      if test "$GCC" = yes; then
7305	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'
7306      else
7307	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'
7308      fi
7309      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7310      hardcode_libdir_separator=:
7311      hardcode_direct=yes
7312
7313      # hardcode_minus_L: Not really in the search PATH,
7314      # but as the default location of the library.
7315      hardcode_minus_L=yes
7316      export_dynamic_flag_spec='${wl}-E'
7317      ;;
7318
7319    hpux10* | hpux11*)
7320      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7321	case "$host_cpu" in
7322	hppa*64*|ia64*)
7323	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7324	  ;;
7325	*)
7326	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7327	  ;;
7328	esac
7329      else
7330	case "$host_cpu" in
7331	hppa*64*|ia64*)
7332	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7333	  ;;
7334	*)
7335	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7336	  ;;
7337	esac
7338      fi
7339      if test "$with_gnu_ld" = no; then
7340	case "$host_cpu" in
7341	hppa*64*)
7342	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7343	  hardcode_libdir_flag_spec_ld='+b $libdir'
7344	  hardcode_libdir_separator=:
7345	  hardcode_direct=no
7346	  hardcode_shlibpath_var=no
7347	  ;;
7348	ia64*)
7349	  hardcode_libdir_flag_spec='-L$libdir'
7350	  hardcode_direct=no
7351	  hardcode_shlibpath_var=no
7352
7353	  # hardcode_minus_L: Not really in the search PATH,
7354	  # but as the default location of the library.
7355	  hardcode_minus_L=yes
7356	  ;;
7357	*)
7358	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7359	  hardcode_libdir_separator=:
7360	  hardcode_direct=yes
7361	  export_dynamic_flag_spec='${wl}-E'
7362
7363	  # hardcode_minus_L: Not really in the search PATH,
7364	  # but as the default location of the library.
7365	  hardcode_minus_L=yes
7366	  ;;
7367	esac
7368      fi
7369      ;;
7370
7371    irix5* | irix6* | nonstopux*)
7372      if test "$GCC" = yes; then
7373	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'
7374      else
7375	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'
7376	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7377      fi
7378      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7379      hardcode_libdir_separator=:
7380      link_all_deplibs=yes
7381      ;;
7382
7383    netbsd*)
7384      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7385	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7386      else
7387	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7388      fi
7389      hardcode_libdir_flag_spec='-R$libdir'
7390      hardcode_direct=yes
7391      hardcode_shlibpath_var=no
7392      ;;
7393
7394    newsos6)
7395      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396      hardcode_direct=yes
7397      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7398      hardcode_libdir_separator=:
7399      hardcode_shlibpath_var=no
7400      ;;
7401
7402    openbsd*)
7403      hardcode_direct=yes
7404      hardcode_shlibpath_var=no
7405      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7406	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7407	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7408	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7409	export_dynamic_flag_spec='${wl}-E'
7410      else
7411       case $host_os in
7412	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7413	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7414	   hardcode_libdir_flag_spec='-R$libdir'
7415	   ;;
7416	 *)
7417	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7418	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7419	   ;;
7420       esac
7421      fi
7422      ;;
7423
7424    os2*)
7425      hardcode_libdir_flag_spec='-L$libdir'
7426      hardcode_minus_L=yes
7427      allow_undefined_flag=unsupported
7428      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'
7429      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7430      ;;
7431
7432    osf3*)
7433      if test "$GCC" = yes; then
7434	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7435	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'
7436      else
7437	allow_undefined_flag=' -expect_unresolved \*'
7438	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'
7439      fi
7440      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7441      hardcode_libdir_separator=:
7442      ;;
7443
7444    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7445      if test "$GCC" = yes; then
7446	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7447	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'
7448	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7449      else
7450	allow_undefined_flag=' -expect_unresolved \*'
7451	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'
7452	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7453	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7454
7455	# Both c and cxx compiler support -rpath directly
7456	hardcode_libdir_flag_spec='-rpath $libdir'
7457      fi
7458      hardcode_libdir_separator=:
7459      ;;
7460
7461    sco3.2v5*)
7462      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7463      hardcode_shlibpath_var=no
7464      export_dynamic_flag_spec='${wl}-Bexport'
7465      runpath_var=LD_RUN_PATH
7466      hardcode_runpath_var=yes
7467      ;;
7468
7469    solaris*)
7470      no_undefined_flag=' -z text'
7471      if test "$GCC" = yes; then
7472	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7473	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7474	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7475      else
7476	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7477	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7478  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7479      fi
7480      hardcode_libdir_flag_spec='-R$libdir'
7481      hardcode_shlibpath_var=no
7482      case $host_os in
7483      solaris2.[0-5] | solaris2.[0-5].*) ;;
7484      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7485	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7486      esac
7487      link_all_deplibs=yes
7488      ;;
7489
7490    sunos4*)
7491      if test "x$host_vendor" = xsequent; then
7492	# Use $CC to link under sequent, because it throws in some extra .o
7493	# files that make .init and .fini sections work.
7494	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7495      else
7496	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7497      fi
7498      hardcode_libdir_flag_spec='-L$libdir'
7499      hardcode_direct=yes
7500      hardcode_minus_L=yes
7501      hardcode_shlibpath_var=no
7502      ;;
7503
7504    sysv4)
7505      case $host_vendor in
7506	sni)
7507	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7508	  hardcode_direct=yes # is this really true???
7509	;;
7510	siemens)
7511	  ## LD is ld it makes a PLAMLIB
7512	  ## CC just makes a GrossModule.
7513	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7514	  reload_cmds='$CC -r -o $output$reload_objs'
7515	  hardcode_direct=no
7516        ;;
7517	motorola)
7518	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7520	;;
7521      esac
7522      runpath_var='LD_RUN_PATH'
7523      hardcode_shlibpath_var=no
7524      ;;
7525
7526    sysv4.3*)
7527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7528      hardcode_shlibpath_var=no
7529      export_dynamic_flag_spec='-Bexport'
7530      ;;
7531
7532    sysv4*MP*)
7533      if test -d /usr/nec; then
7534	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535	hardcode_shlibpath_var=no
7536	runpath_var=LD_RUN_PATH
7537	hardcode_runpath_var=yes
7538	ld_shlibs=yes
7539      fi
7540      ;;
7541
7542    sysv4.2uw2*)
7543      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7544      hardcode_direct=yes
7545      hardcode_minus_L=no
7546      hardcode_shlibpath_var=no
7547      hardcode_runpath_var=yes
7548      runpath_var=LD_RUN_PATH
7549      ;;
7550
7551   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7552      no_undefined_flag='${wl}-z ${wl}text'
7553      if test "$GCC" = yes; then
7554	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7555      else
7556	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7557      fi
7558      runpath_var='LD_RUN_PATH'
7559      hardcode_shlibpath_var=no
7560      ;;
7561
7562    sysv5*)
7563      no_undefined_flag=' -z text'
7564      # $CC -shared without GNU ld will not create a library from C++
7565      # object files and a static libstdc++, better avoid it by now
7566      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7567      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7568  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7569      hardcode_libdir_flag_spec=
7570      hardcode_shlibpath_var=no
7571      runpath_var='LD_RUN_PATH'
7572      ;;
7573
7574    uts4*)
7575      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7576      hardcode_libdir_flag_spec='-L$libdir'
7577      hardcode_shlibpath_var=no
7578      ;;
7579
7580    *)
7581      ld_shlibs=no
7582      ;;
7583    esac
7584  fi
7585
7586echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7587echo "${ECHO_T}$ld_shlibs" >&6
7588test "$ld_shlibs" = no && can_build_shared=no
7589
7590variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7591if test "$GCC" = yes; then
7592  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7593fi
7594
7595#
7596# Do we need to explicitly link libc?
7597#
7598case "x$archive_cmds_need_lc" in
7599x|xyes)
7600  # Assume -lc should be added
7601  archive_cmds_need_lc=yes
7602
7603  if test "$enable_shared" = yes && test "$GCC" = yes; then
7604    case $archive_cmds in
7605    *'~'*)
7606      # FIXME: we may have to deal with multi-command sequences.
7607      ;;
7608    '$CC '*)
7609      # Test whether the compiler implicitly links with -lc since on some
7610      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7611      # to ld, don't add -lc before -lgcc.
7612      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7613echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7614      $rm conftest*
7615      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7616
7617      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7618  (eval $ac_compile) 2>&5
7619  ac_status=$?
7620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621  (exit $ac_status); } 2>conftest.err; then
7622        soname=conftest
7623        lib=conftest
7624        libobjs=conftest.$ac_objext
7625        deplibs=
7626        wl=$lt_prog_compiler_wl
7627        compiler_flags=-v
7628        linker_flags=-v
7629        verstring=
7630        output_objdir=.
7631        libname=conftest
7632        lt_save_allow_undefined_flag=$allow_undefined_flag
7633        allow_undefined_flag=
7634        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7635  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7636  ac_status=$?
7637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638  (exit $ac_status); }
7639        then
7640	  archive_cmds_need_lc=no
7641        else
7642	  archive_cmds_need_lc=yes
7643        fi
7644        allow_undefined_flag=$lt_save_allow_undefined_flag
7645      else
7646        cat conftest.err 1>&5
7647      fi
7648      $rm conftest*
7649      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7650echo "${ECHO_T}$archive_cmds_need_lc" >&6
7651      ;;
7652    esac
7653  fi
7654  ;;
7655esac
7656
7657echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7658echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7659library_names_spec=
7660libname_spec='lib$name'
7661soname_spec=
7662shrext_cmds=".so"
7663postinstall_cmds=
7664postuninstall_cmds=
7665finish_cmds=
7666finish_eval=
7667shlibpath_var=
7668shlibpath_overrides_runpath=unknown
7669version_type=none
7670dynamic_linker="$host_os ld.so"
7671sys_lib_dlsearch_path_spec="/lib /usr/lib"
7672if test "$GCC" = yes; then
7673  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7674  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7675    # if the path contains ";" then we assume it to be the separator
7676    # otherwise default to the standard path separator (i.e. ":") - it is
7677    # assumed that no part of a normal pathname contains ";" but that should
7678    # okay in the real world where ";" in dirpaths is itself problematic.
7679    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7680  else
7681    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7682  fi
7683else
7684  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7685fi
7686need_lib_prefix=unknown
7687hardcode_into_libs=no
7688
7689# when you set need_version to no, make sure it does not cause -set_version
7690# flags to be left without arguments
7691need_version=unknown
7692
7693case $host_os in
7694aix3*)
7695  version_type=linux
7696  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7697  shlibpath_var=LIBPATH
7698
7699  # AIX 3 has no versioning support, so we append a major version to the name.
7700  soname_spec='${libname}${release}${shared_ext}$major'
7701  ;;
7702
7703aix4* | aix5*)
7704  version_type=linux
7705  need_lib_prefix=no
7706  need_version=no
7707  hardcode_into_libs=yes
7708  if test "$host_cpu" = ia64; then
7709    # AIX 5 supports IA64
7710    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7711    shlibpath_var=LD_LIBRARY_PATH
7712  else
7713    # With GCC up to 2.95.x, collect2 would create an import file
7714    # for dependence libraries.  The import file would start with
7715    # the line `#! .'.  This would cause the generated library to
7716    # depend on `.', always an invalid library.  This was fixed in
7717    # development snapshots of GCC prior to 3.0.
7718    case $host_os in
7719      aix4 | aix4.[01] | aix4.[01].*)
7720      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7721	   echo ' yes '
7722	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7723	:
7724      else
7725	can_build_shared=no
7726      fi
7727      ;;
7728    esac
7729    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7730    # soname into executable. Probably we can add versioning support to
7731    # collect2, so additional links can be useful in future.
7732    if test "$aix_use_runtimelinking" = yes; then
7733      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7734      # instead of lib<name>.a to let people know that these are not
7735      # typical AIX shared libraries.
7736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7737    else
7738      # We preserve .a as extension for shared libraries through AIX4.2
7739      # and later when we are not doing run time linking.
7740      library_names_spec='${libname}${release}.a $libname.a'
7741      soname_spec='${libname}${release}${shared_ext}$major'
7742    fi
7743    shlibpath_var=LIBPATH
7744  fi
7745  ;;
7746
7747amigaos*)
7748  library_names_spec='$libname.ixlibrary $libname.a'
7749  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7750  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'
7751  ;;
7752
7753beos*)
7754  library_names_spec='${libname}${shared_ext}'
7755  dynamic_linker="$host_os ld.so"
7756  shlibpath_var=LIBRARY_PATH
7757  ;;
7758
7759bsdi[45]*)
7760  version_type=linux
7761  need_version=no
7762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763  soname_spec='${libname}${release}${shared_ext}$major'
7764  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7765  shlibpath_var=LD_LIBRARY_PATH
7766  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7767  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7768  # the default ld.so.conf also contains /usr/contrib/lib and
7769  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7770  # libtool to hard-code these into programs
7771  ;;
7772
7773cygwin* | mingw* | pw32*)
7774  version_type=windows
7775  shrext_cmds=".dll"
7776  need_version=no
7777  need_lib_prefix=no
7778
7779  case $GCC,$host_os in
7780  yes,cygwin* | yes,mingw* | yes,pw32*)
7781    library_names_spec='$libname.dll.a'
7782    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7783    postinstall_cmds='base_file=`basename \${file}`~
7784      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7785      dldir=$destdir/`dirname \$dlpath`~
7786      test -d \$dldir || mkdir -p \$dldir~
7787      $install_prog $dir/$dlname \$dldir/$dlname'
7788    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7789      dlpath=$dir/\$dldll~
7790       $rm \$dlpath'
7791    shlibpath_overrides_runpath=yes
7792
7793    case $host_os in
7794    cygwin*)
7795      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7796      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7797      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7798      ;;
7799    mingw*)
7800      # MinGW DLLs use traditional 'lib' prefix
7801      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7802      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7803      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7804        # It is most probably a Windows format PATH printed by
7805        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7806        # path with ; separators, and with drive letters. We can handle the
7807        # drive letters (cygwin fileutils understands them), so leave them,
7808        # especially as we might pass files found there to a mingw objdump,
7809        # which wouldn't understand a cygwinified path. Ahh.
7810        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7811      else
7812        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7813      fi
7814      ;;
7815    pw32*)
7816      # pw32 DLLs use 'pw' prefix rather than 'lib'
7817      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7818      ;;
7819    esac
7820    ;;
7821
7822  *)
7823    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7824    ;;
7825  esac
7826  dynamic_linker='Win32 ld.exe'
7827  # FIXME: first we should search . and the directory the executable is in
7828  shlibpath_var=PATH
7829  ;;
7830
7831darwin* | rhapsody*)
7832  dynamic_linker="$host_os dyld"
7833  version_type=darwin
7834  need_lib_prefix=no
7835  need_version=no
7836  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7837  soname_spec='${libname}${release}${major}$shared_ext'
7838  shlibpath_overrides_runpath=yes
7839  shlibpath_var=DYLD_LIBRARY_PATH
7840  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7841  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7842  if test "$GCC" = yes; then
7843    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"`
7844  else
7845    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7846  fi
7847  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7848  ;;
7849
7850dgux*)
7851  version_type=linux
7852  need_lib_prefix=no
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  shlibpath_var=LD_LIBRARY_PATH
7857  ;;
7858
7859freebsd1*)
7860  dynamic_linker=no
7861  ;;
7862
7863kfreebsd*-gnu)
7864  version_type=linux
7865  need_lib_prefix=no
7866  need_version=no
7867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7868  soname_spec='${libname}${release}${shared_ext}$major'
7869  shlibpath_var=LD_LIBRARY_PATH
7870  shlibpath_overrides_runpath=no
7871  hardcode_into_libs=yes
7872  dynamic_linker='GNU ld.so'
7873  ;;
7874
7875freebsd*)
7876  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7877  version_type=freebsd-$objformat
7878  case $version_type in
7879    freebsd-elf*)
7880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7881      need_version=no
7882      need_lib_prefix=no
7883      ;;
7884    freebsd-*)
7885      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7886      need_version=yes
7887      ;;
7888  esac
7889  shlibpath_var=LD_LIBRARY_PATH
7890  case $host_os in
7891  freebsd2*)
7892    shlibpath_overrides_runpath=yes
7893    ;;
7894  freebsd3.01* | freebsdelf3.01*)
7895    shlibpath_overrides_runpath=yes
7896    hardcode_into_libs=yes
7897    ;;
7898  *) # from 3.2 on
7899    shlibpath_overrides_runpath=no
7900    hardcode_into_libs=yes
7901    ;;
7902  esac
7903  ;;
7904
7905gnu*)
7906  version_type=linux
7907  need_lib_prefix=no
7908  need_version=no
7909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7910  soname_spec='${libname}${release}${shared_ext}$major'
7911  shlibpath_var=LD_LIBRARY_PATH
7912  hardcode_into_libs=yes
7913  ;;
7914
7915hpux9* | hpux10* | hpux11*)
7916  # Give a soname corresponding to the major version so that dld.sl refuses to
7917  # link against other versions.
7918  version_type=sunos
7919  need_lib_prefix=no
7920  need_version=no
7921  case "$host_cpu" in
7922  ia64*)
7923    shrext_cmds='.so'
7924    hardcode_into_libs=yes
7925    dynamic_linker="$host_os dld.so"
7926    shlibpath_var=LD_LIBRARY_PATH
7927    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7928    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929    soname_spec='${libname}${release}${shared_ext}$major'
7930    if test "X$HPUX_IA64_MODE" = X32; then
7931      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7932    else
7933      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7934    fi
7935    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7936    ;;
7937   hppa*64*)
7938     shrext_cmds='.sl'
7939     hardcode_into_libs=yes
7940     dynamic_linker="$host_os dld.sl"
7941     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7944     soname_spec='${libname}${release}${shared_ext}$major'
7945     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7947     ;;
7948   *)
7949    shrext_cmds='.sl'
7950    dynamic_linker="$host_os dld.sl"
7951    shlibpath_var=SHLIB_PATH
7952    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7953    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954    soname_spec='${libname}${release}${shared_ext}$major'
7955    ;;
7956  esac
7957  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7958  postinstall_cmds='chmod 555 $lib'
7959  ;;
7960
7961irix5* | irix6* | nonstopux*)
7962  case $host_os in
7963    nonstopux*) version_type=nonstopux ;;
7964    *)
7965	if test "$lt_cv_prog_gnu_ld" = yes; then
7966		version_type=linux
7967	else
7968		version_type=irix
7969	fi ;;
7970  esac
7971  need_lib_prefix=no
7972  need_version=no
7973  soname_spec='${libname}${release}${shared_ext}$major'
7974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7975  case $host_os in
7976  irix5* | nonstopux*)
7977    libsuff= shlibsuff=
7978    ;;
7979  *)
7980    case $LD in # libtool.m4 will add one of these switches to LD
7981    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7982      libsuff= shlibsuff= libmagic=32-bit;;
7983    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7984      libsuff=32 shlibsuff=N32 libmagic=N32;;
7985    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7986      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7987    *) libsuff= shlibsuff= libmagic=never-match;;
7988    esac
7989    ;;
7990  esac
7991  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7992  shlibpath_overrides_runpath=no
7993  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7994  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7995  hardcode_into_libs=yes
7996  ;;
7997
7998# No shared lib support for Linux oldld, aout, or coff.
7999linux*oldld* | linux*aout* | linux*coff*)
8000  dynamic_linker=no
8001  ;;
8002
8003# This must be Linux ELF.
8004linux*)
8005  version_type=linux
8006  need_lib_prefix=no
8007  need_version=no
8008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8009  soname_spec='${libname}${release}${shared_ext}$major'
8010  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8011  shlibpath_var=LD_LIBRARY_PATH
8012  shlibpath_overrides_runpath=no
8013  # This implies no fast_install, which is unacceptable.
8014  # Some rework will be needed to allow for fast_install
8015  # before this can be enabled.
8016  hardcode_into_libs=yes
8017
8018  # Append ld.so.conf contents to the search path
8019  if test -f /etc/ld.so.conf; then
8020    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8021    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8022  fi
8023
8024  # We used to test for /lib/ld.so.1 and disable shared libraries on
8025  # powerpc, because MkLinux only supported shared libraries with the
8026  # GNU dynamic linker.  Since this was broken with cross compilers,
8027  # most powerpc-linux boxes support dynamic linking these days and
8028  # people can always --disable-shared, the test was removed, and we
8029  # assume the GNU/Linux dynamic linker is in use.
8030  dynamic_linker='GNU/Linux ld.so'
8031  ;;
8032
8033knetbsd*-gnu)
8034  version_type=linux
8035  need_lib_prefix=no
8036  need_version=no
8037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8038  soname_spec='${libname}${release}${shared_ext}$major'
8039  shlibpath_var=LD_LIBRARY_PATH
8040  shlibpath_overrides_runpath=no
8041  hardcode_into_libs=yes
8042  dynamic_linker='GNU ld.so'
8043  ;;
8044
8045netbsd*)
8046  version_type=sunos
8047  need_lib_prefix=no
8048  need_version=no
8049  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8050    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8051    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8052    dynamic_linker='NetBSD (a.out) ld.so'
8053  else
8054    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8055    soname_spec='${libname}${release}${shared_ext}$major'
8056    dynamic_linker='NetBSD ld.elf_so'
8057  fi
8058  shlibpath_var=LD_LIBRARY_PATH
8059  shlibpath_overrides_runpath=yes
8060  hardcode_into_libs=yes
8061  ;;
8062
8063newsos6)
8064  version_type=linux
8065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8066  shlibpath_var=LD_LIBRARY_PATH
8067  shlibpath_overrides_runpath=yes
8068  ;;
8069
8070nto-qnx*)
8071  version_type=linux
8072  need_lib_prefix=no
8073  need_version=no
8074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8075  soname_spec='${libname}${release}${shared_ext}$major'
8076  shlibpath_var=LD_LIBRARY_PATH
8077  shlibpath_overrides_runpath=yes
8078  ;;
8079
8080openbsd*)
8081  version_type=sunos
8082  need_lib_prefix=no
8083  need_version=no
8084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8085  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8086  shlibpath_var=LD_LIBRARY_PATH
8087  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8088    case $host_os in
8089      openbsd2.[89] | openbsd2.[89].*)
8090	shlibpath_overrides_runpath=no
8091	;;
8092      *)
8093	shlibpath_overrides_runpath=yes
8094	;;
8095      esac
8096  else
8097    shlibpath_overrides_runpath=yes
8098  fi
8099  ;;
8100
8101os2*)
8102  libname_spec='$name'
8103  shrext_cmds=".dll"
8104  need_lib_prefix=no
8105  library_names_spec='$libname${shared_ext} $libname.a'
8106  dynamic_linker='OS/2 ld.exe'
8107  shlibpath_var=LIBPATH
8108  ;;
8109
8110osf3* | osf4* | osf5*)
8111  version_type=osf
8112  need_lib_prefix=no
8113  need_version=no
8114  soname_spec='${libname}${release}${shared_ext}$major'
8115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116  shlibpath_var=LD_LIBRARY_PATH
8117  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8118  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8119  ;;
8120
8121sco3.2v5*)
8122  version_type=osf
8123  soname_spec='${libname}${release}${shared_ext}$major'
8124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8125  shlibpath_var=LD_LIBRARY_PATH
8126  ;;
8127
8128solaris*)
8129  version_type=linux
8130  need_lib_prefix=no
8131  need_version=no
8132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8133  soname_spec='${libname}${release}${shared_ext}$major'
8134  shlibpath_var=LD_LIBRARY_PATH
8135  shlibpath_overrides_runpath=yes
8136  hardcode_into_libs=yes
8137  # ldd complains unless libraries are executable
8138  postinstall_cmds='chmod +x $lib'
8139  ;;
8140
8141sunos4*)
8142  version_type=sunos
8143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8144  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8145  shlibpath_var=LD_LIBRARY_PATH
8146  shlibpath_overrides_runpath=yes
8147  if test "$with_gnu_ld" = yes; then
8148    need_lib_prefix=no
8149  fi
8150  need_version=yes
8151  ;;
8152
8153sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8154  version_type=linux
8155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156  soname_spec='${libname}${release}${shared_ext}$major'
8157  shlibpath_var=LD_LIBRARY_PATH
8158  case $host_vendor in
8159    sni)
8160      shlibpath_overrides_runpath=no
8161      need_lib_prefix=no
8162      export_dynamic_flag_spec='${wl}-Blargedynsym'
8163      runpath_var=LD_RUN_PATH
8164      ;;
8165    siemens)
8166      need_lib_prefix=no
8167      ;;
8168    motorola)
8169      need_lib_prefix=no
8170      need_version=no
8171      shlibpath_overrides_runpath=no
8172      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8173      ;;
8174  esac
8175  ;;
8176
8177sysv4*MP*)
8178  if test -d /usr/nec ;then
8179    version_type=linux
8180    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8181    soname_spec='$libname${shared_ext}.$major'
8182    shlibpath_var=LD_LIBRARY_PATH
8183  fi
8184  ;;
8185
8186uts4*)
8187  version_type=linux
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  ;;
8192
8193*)
8194  dynamic_linker=no
8195  ;;
8196esac
8197echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8198echo "${ECHO_T}$dynamic_linker" >&6
8199test "$dynamic_linker" = no && can_build_shared=no
8200
8201echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8202echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8203hardcode_action=
8204if test -n "$hardcode_libdir_flag_spec" || \
8205   test -n "$runpath_var" || \
8206   test "X$hardcode_automatic" = "Xyes" ; then
8207
8208  # We can hardcode non-existant directories.
8209  if test "$hardcode_direct" != no &&
8210     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8211     # have to relink, otherwise we might link with an installed library
8212     # when we should be linking with a yet-to-be-installed one
8213     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8214     test "$hardcode_minus_L" != no; then
8215    # Linking always hardcodes the temporary library directory.
8216    hardcode_action=relink
8217  else
8218    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8219    hardcode_action=immediate
8220  fi
8221else
8222  # We cannot hardcode anything, or else we can only hardcode existing
8223  # directories.
8224  hardcode_action=unsupported
8225fi
8226echo "$as_me:$LINENO: result: $hardcode_action" >&5
8227echo "${ECHO_T}$hardcode_action" >&6
8228
8229if test "$hardcode_action" = relink; then
8230  # Fast installation is not supported
8231  enable_fast_install=no
8232elif test "$shlibpath_overrides_runpath" = yes ||
8233     test "$enable_shared" = no; then
8234  # Fast installation is not necessary
8235  enable_fast_install=needless
8236fi
8237
8238striplib=
8239old_striplib=
8240echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8241echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8242if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8243  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8244  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8245  echo "$as_me:$LINENO: result: yes" >&5
8246echo "${ECHO_T}yes" >&6
8247else
8248# FIXME - insert some real tests, host_os isn't really good enough
8249  case $host_os in
8250   darwin*)
8251       if test -n "$STRIP" ; then
8252         striplib="$STRIP -x"
8253         echo "$as_me:$LINENO: result: yes" >&5
8254echo "${ECHO_T}yes" >&6
8255       else
8256  echo "$as_me:$LINENO: result: no" >&5
8257echo "${ECHO_T}no" >&6
8258fi
8259       ;;
8260   *)
8261  echo "$as_me:$LINENO: result: no" >&5
8262echo "${ECHO_T}no" >&6
8263    ;;
8264  esac
8265fi
8266
8267if test "x$enable_dlopen" != xyes; then
8268  enable_dlopen=unknown
8269  enable_dlopen_self=unknown
8270  enable_dlopen_self_static=unknown
8271else
8272  lt_cv_dlopen=no
8273  lt_cv_dlopen_libs=
8274
8275  case $host_os in
8276  beos*)
8277    lt_cv_dlopen="load_add_on"
8278    lt_cv_dlopen_libs=
8279    lt_cv_dlopen_self=yes
8280    ;;
8281
8282  mingw* | pw32*)
8283    lt_cv_dlopen="LoadLibrary"
8284    lt_cv_dlopen_libs=
8285   ;;
8286
8287  cygwin*)
8288    lt_cv_dlopen="dlopen"
8289    lt_cv_dlopen_libs=
8290   ;;
8291
8292  darwin*)
8293  # if libdl is installed we need to link against it
8294    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8295echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8296if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8297  echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299  ac_check_lib_save_LIBS=$LIBS
8300LIBS="-ldl  $LIBS"
8301cat >conftest.$ac_ext <<_ACEOF
8302/* confdefs.h.  */
8303_ACEOF
8304cat confdefs.h >>conftest.$ac_ext
8305cat >>conftest.$ac_ext <<_ACEOF
8306/* end confdefs.h.  */
8307
8308/* Override any gcc2 internal prototype to avoid an error.  */
8309#ifdef __cplusplus
8310extern "C"
8311#endif
8312/* We use char because int might match the return type of a gcc2
8313   builtin and then its argument prototype would still apply.  */
8314char dlopen ();
8315int
8316main ()
8317{
8318dlopen ();
8319  ;
8320  return 0;
8321}
8322_ACEOF
8323rm -f conftest.$ac_objext conftest$ac_exeext
8324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325  (eval $ac_link) 2>conftest.er1
8326  ac_status=$?
8327  grep -v '^ *+' conftest.er1 >conftest.err
8328  rm -f conftest.er1
8329  cat conftest.err >&5
8330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331  (exit $ac_status); } &&
8332	 { ac_try='test -z "$ac_c_werror_flag"
8333			 || test ! -s conftest.err'
8334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335  (eval $ac_try) 2>&5
8336  ac_status=$?
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); }; } &&
8339	 { ac_try='test -s conftest$ac_exeext'
8340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341  (eval $ac_try) 2>&5
8342  ac_status=$?
8343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344  (exit $ac_status); }; }; then
8345  ac_cv_lib_dl_dlopen=yes
8346else
8347  echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350ac_cv_lib_dl_dlopen=no
8351fi
8352rm -f conftest.err conftest.$ac_objext \
8353      conftest$ac_exeext conftest.$ac_ext
8354LIBS=$ac_check_lib_save_LIBS
8355fi
8356echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8357echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8358if test $ac_cv_lib_dl_dlopen = yes; then
8359  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8360else
8361
8362    lt_cv_dlopen="dyld"
8363    lt_cv_dlopen_libs=
8364    lt_cv_dlopen_self=yes
8365
8366fi
8367
8368   ;;
8369
8370  *)
8371    echo "$as_me:$LINENO: checking for shl_load" >&5
8372echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8373if test "${ac_cv_func_shl_load+set}" = set; then
8374  echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376  cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h.  */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h.  */
8382/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8383   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8384#define shl_load innocuous_shl_load
8385
8386/* System header to define __stub macros and hopefully few prototypes,
8387    which can conflict with char shl_load (); below.
8388    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389    <limits.h> exists even on freestanding compilers.  */
8390
8391#ifdef __STDC__
8392# include <limits.h>
8393#else
8394# include <assert.h>
8395#endif
8396
8397#undef shl_load
8398
8399/* Override any gcc2 internal prototype to avoid an error.  */
8400#ifdef __cplusplus
8401extern "C"
8402{
8403#endif
8404/* We use char because int might match the return type of a gcc2
8405   builtin and then its argument prototype would still apply.  */
8406char shl_load ();
8407/* The GNU C library defines this for functions which it implements
8408    to always fail with ENOSYS.  Some functions are actually named
8409    something starting with __ and the normal name is an alias.  */
8410#if defined (__stub_shl_load) || defined (__stub___shl_load)
8411choke me
8412#else
8413char (*f) () = shl_load;
8414#endif
8415#ifdef __cplusplus
8416}
8417#endif
8418
8419int
8420main ()
8421{
8422return f != shl_load;
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429  (eval $ac_link) 2>conftest.er1
8430  ac_status=$?
8431  grep -v '^ *+' conftest.er1 >conftest.err
8432  rm -f conftest.er1
8433  cat conftest.err >&5
8434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435  (exit $ac_status); } &&
8436	 { ac_try='test -z "$ac_c_werror_flag"
8437			 || test ! -s conftest.err'
8438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439  (eval $ac_try) 2>&5
8440  ac_status=$?
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); }; } &&
8443	 { ac_try='test -s conftest$ac_exeext'
8444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445  (eval $ac_try) 2>&5
8446  ac_status=$?
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); }; }; then
8449  ac_cv_func_shl_load=yes
8450else
8451  echo "$as_me: failed program was:" >&5
8452sed 's/^/| /' conftest.$ac_ext >&5
8453
8454ac_cv_func_shl_load=no
8455fi
8456rm -f conftest.err conftest.$ac_objext \
8457      conftest$ac_exeext conftest.$ac_ext
8458fi
8459echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8460echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8461if test $ac_cv_func_shl_load = yes; then
8462  lt_cv_dlopen="shl_load"
8463else
8464  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8465echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8466if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8467  echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469  ac_check_lib_save_LIBS=$LIBS
8470LIBS="-ldld  $LIBS"
8471cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h.  */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h.  */
8477
8478/* Override any gcc2 internal prototype to avoid an error.  */
8479#ifdef __cplusplus
8480extern "C"
8481#endif
8482/* We use char because int might match the return type of a gcc2
8483   builtin and then its argument prototype would still apply.  */
8484char shl_load ();
8485int
8486main ()
8487{
8488shl_load ();
8489  ;
8490  return 0;
8491}
8492_ACEOF
8493rm -f conftest.$ac_objext conftest$ac_exeext
8494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495  (eval $ac_link) 2>conftest.er1
8496  ac_status=$?
8497  grep -v '^ *+' conftest.er1 >conftest.err
8498  rm -f conftest.er1
8499  cat conftest.err >&5
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } &&
8502	 { ac_try='test -z "$ac_c_werror_flag"
8503			 || test ! -s conftest.err'
8504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505  (eval $ac_try) 2>&5
8506  ac_status=$?
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; } &&
8509	 { ac_try='test -s conftest$ac_exeext'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; }; then
8515  ac_cv_lib_dld_shl_load=yes
8516else
8517  echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520ac_cv_lib_dld_shl_load=no
8521fi
8522rm -f conftest.err conftest.$ac_objext \
8523      conftest$ac_exeext conftest.$ac_ext
8524LIBS=$ac_check_lib_save_LIBS
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8527echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8528if test $ac_cv_lib_dld_shl_load = yes; then
8529  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8530else
8531  echo "$as_me:$LINENO: checking for dlopen" >&5
8532echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8533if test "${ac_cv_func_dlopen+set}" = set; then
8534  echo $ECHO_N "(cached) $ECHO_C" >&6
8535else
8536  cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h.  */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h.  */
8542/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8543   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8544#define dlopen innocuous_dlopen
8545
8546/* System header to define __stub macros and hopefully few prototypes,
8547    which can conflict with char dlopen (); below.
8548    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8549    <limits.h> exists even on freestanding compilers.  */
8550
8551#ifdef __STDC__
8552# include <limits.h>
8553#else
8554# include <assert.h>
8555#endif
8556
8557#undef dlopen
8558
8559/* Override any gcc2 internal prototype to avoid an error.  */
8560#ifdef __cplusplus
8561extern "C"
8562{
8563#endif
8564/* We use char because int might match the return type of a gcc2
8565   builtin and then its argument prototype would still apply.  */
8566char dlopen ();
8567/* The GNU C library defines this for functions which it implements
8568    to always fail with ENOSYS.  Some functions are actually named
8569    something starting with __ and the normal name is an alias.  */
8570#if defined (__stub_dlopen) || defined (__stub___dlopen)
8571choke me
8572#else
8573char (*f) () = dlopen;
8574#endif
8575#ifdef __cplusplus
8576}
8577#endif
8578
8579int
8580main ()
8581{
8582return f != dlopen;
8583  ;
8584  return 0;
8585}
8586_ACEOF
8587rm -f conftest.$ac_objext conftest$ac_exeext
8588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589  (eval $ac_link) 2>conftest.er1
8590  ac_status=$?
8591  grep -v '^ *+' conftest.er1 >conftest.err
8592  rm -f conftest.er1
8593  cat conftest.err >&5
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); } &&
8596	 { ac_try='test -z "$ac_c_werror_flag"
8597			 || test ! -s conftest.err'
8598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599  (eval $ac_try) 2>&5
8600  ac_status=$?
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); }; } &&
8603	 { ac_try='test -s conftest$ac_exeext'
8604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605  (eval $ac_try) 2>&5
8606  ac_status=$?
8607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608  (exit $ac_status); }; }; then
8609  ac_cv_func_dlopen=yes
8610else
8611  echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
8614ac_cv_func_dlopen=no
8615fi
8616rm -f conftest.err conftest.$ac_objext \
8617      conftest$ac_exeext conftest.$ac_ext
8618fi
8619echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8620echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8621if test $ac_cv_func_dlopen = yes; then
8622  lt_cv_dlopen="dlopen"
8623else
8624  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8625echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8626if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8627  echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629  ac_check_lib_save_LIBS=$LIBS
8630LIBS="-ldl  $LIBS"
8631cat >conftest.$ac_ext <<_ACEOF
8632/* confdefs.h.  */
8633_ACEOF
8634cat confdefs.h >>conftest.$ac_ext
8635cat >>conftest.$ac_ext <<_ACEOF
8636/* end confdefs.h.  */
8637
8638/* Override any gcc2 internal prototype to avoid an error.  */
8639#ifdef __cplusplus
8640extern "C"
8641#endif
8642/* We use char because int might match the return type of a gcc2
8643   builtin and then its argument prototype would still apply.  */
8644char dlopen ();
8645int
8646main ()
8647{
8648dlopen ();
8649  ;
8650  return 0;
8651}
8652_ACEOF
8653rm -f conftest.$ac_objext conftest$ac_exeext
8654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655  (eval $ac_link) 2>conftest.er1
8656  ac_status=$?
8657  grep -v '^ *+' conftest.er1 >conftest.err
8658  rm -f conftest.er1
8659  cat conftest.err >&5
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); } &&
8662	 { ac_try='test -z "$ac_c_werror_flag"
8663			 || test ! -s conftest.err'
8664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665  (eval $ac_try) 2>&5
8666  ac_status=$?
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); }; } &&
8669	 { ac_try='test -s conftest$ac_exeext'
8670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671  (eval $ac_try) 2>&5
8672  ac_status=$?
8673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674  (exit $ac_status); }; }; then
8675  ac_cv_lib_dl_dlopen=yes
8676else
8677  echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680ac_cv_lib_dl_dlopen=no
8681fi
8682rm -f conftest.err conftest.$ac_objext \
8683      conftest$ac_exeext conftest.$ac_ext
8684LIBS=$ac_check_lib_save_LIBS
8685fi
8686echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8687echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8688if test $ac_cv_lib_dl_dlopen = yes; then
8689  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8690else
8691  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8692echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8693if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8694  echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696  ac_check_lib_save_LIBS=$LIBS
8697LIBS="-lsvld  $LIBS"
8698cat >conftest.$ac_ext <<_ACEOF
8699/* confdefs.h.  */
8700_ACEOF
8701cat confdefs.h >>conftest.$ac_ext
8702cat >>conftest.$ac_ext <<_ACEOF
8703/* end confdefs.h.  */
8704
8705/* Override any gcc2 internal prototype to avoid an error.  */
8706#ifdef __cplusplus
8707extern "C"
8708#endif
8709/* We use char because int might match the return type of a gcc2
8710   builtin and then its argument prototype would still apply.  */
8711char dlopen ();
8712int
8713main ()
8714{
8715dlopen ();
8716  ;
8717  return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722  (eval $ac_link) 2>conftest.er1
8723  ac_status=$?
8724  grep -v '^ *+' conftest.er1 >conftest.err
8725  rm -f conftest.er1
8726  cat conftest.err >&5
8727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728  (exit $ac_status); } &&
8729	 { ac_try='test -z "$ac_c_werror_flag"
8730			 || test ! -s conftest.err'
8731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732  (eval $ac_try) 2>&5
8733  ac_status=$?
8734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735  (exit $ac_status); }; } &&
8736	 { ac_try='test -s conftest$ac_exeext'
8737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738  (eval $ac_try) 2>&5
8739  ac_status=$?
8740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741  (exit $ac_status); }; }; then
8742  ac_cv_lib_svld_dlopen=yes
8743else
8744  echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747ac_cv_lib_svld_dlopen=no
8748fi
8749rm -f conftest.err conftest.$ac_objext \
8750      conftest$ac_exeext conftest.$ac_ext
8751LIBS=$ac_check_lib_save_LIBS
8752fi
8753echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8754echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8755if test $ac_cv_lib_svld_dlopen = yes; then
8756  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8757else
8758  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8759echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8760if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8761  echo $ECHO_N "(cached) $ECHO_C" >&6
8762else
8763  ac_check_lib_save_LIBS=$LIBS
8764LIBS="-ldld  $LIBS"
8765cat >conftest.$ac_ext <<_ACEOF
8766/* confdefs.h.  */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h.  */
8771
8772/* Override any gcc2 internal prototype to avoid an error.  */
8773#ifdef __cplusplus
8774extern "C"
8775#endif
8776/* We use char because int might match the return type of a gcc2
8777   builtin and then its argument prototype would still apply.  */
8778char dld_link ();
8779int
8780main ()
8781{
8782dld_link ();
8783  ;
8784  return 0;
8785}
8786_ACEOF
8787rm -f conftest.$ac_objext conftest$ac_exeext
8788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789  (eval $ac_link) 2>conftest.er1
8790  ac_status=$?
8791  grep -v '^ *+' conftest.er1 >conftest.err
8792  rm -f conftest.er1
8793  cat conftest.err >&5
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); } &&
8796	 { ac_try='test -z "$ac_c_werror_flag"
8797			 || test ! -s conftest.err'
8798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799  (eval $ac_try) 2>&5
8800  ac_status=$?
8801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802  (exit $ac_status); }; } &&
8803	 { ac_try='test -s conftest$ac_exeext'
8804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805  (eval $ac_try) 2>&5
8806  ac_status=$?
8807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808  (exit $ac_status); }; }; then
8809  ac_cv_lib_dld_dld_link=yes
8810else
8811  echo "$as_me: failed program was:" >&5
8812sed 's/^/| /' conftest.$ac_ext >&5
8813
8814ac_cv_lib_dld_dld_link=no
8815fi
8816rm -f conftest.err conftest.$ac_objext \
8817      conftest$ac_exeext conftest.$ac_ext
8818LIBS=$ac_check_lib_save_LIBS
8819fi
8820echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8821echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8822if test $ac_cv_lib_dld_dld_link = yes; then
8823  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8824fi
8825
8826
8827fi
8828
8829
8830fi
8831
8832
8833fi
8834
8835
8836fi
8837
8838
8839fi
8840
8841    ;;
8842  esac
8843
8844  if test "x$lt_cv_dlopen" != xno; then
8845    enable_dlopen=yes
8846  else
8847    enable_dlopen=no
8848  fi
8849
8850  case $lt_cv_dlopen in
8851  dlopen)
8852    save_CPPFLAGS="$CPPFLAGS"
8853    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8854
8855    save_LDFLAGS="$LDFLAGS"
8856    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8857
8858    save_LIBS="$LIBS"
8859    LIBS="$lt_cv_dlopen_libs $LIBS"
8860
8861    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8862echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8863if test "${lt_cv_dlopen_self+set}" = set; then
8864  echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866  	  if test "$cross_compiling" = yes; then :
8867  lt_cv_dlopen_self=cross
8868else
8869  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8870  lt_status=$lt_dlunknown
8871  cat > conftest.$ac_ext <<EOF
8872#line 8872 "configure"
8873#include "confdefs.h"
8874
8875#if HAVE_DLFCN_H
8876#include <dlfcn.h>
8877#endif
8878
8879#include <stdio.h>
8880
8881#ifdef RTLD_GLOBAL
8882#  define LT_DLGLOBAL		RTLD_GLOBAL
8883#else
8884#  ifdef DL_GLOBAL
8885#    define LT_DLGLOBAL		DL_GLOBAL
8886#  else
8887#    define LT_DLGLOBAL		0
8888#  endif
8889#endif
8890
8891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8892   find out it does not work in some platform. */
8893#ifndef LT_DLLAZY_OR_NOW
8894#  ifdef RTLD_LAZY
8895#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8896#  else
8897#    ifdef DL_LAZY
8898#      define LT_DLLAZY_OR_NOW		DL_LAZY
8899#    else
8900#      ifdef RTLD_NOW
8901#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8902#      else
8903#        ifdef DL_NOW
8904#          define LT_DLLAZY_OR_NOW	DL_NOW
8905#        else
8906#          define LT_DLLAZY_OR_NOW	0
8907#        endif
8908#      endif
8909#    endif
8910#  endif
8911#endif
8912
8913#ifdef __cplusplus
8914extern "C" void exit (int);
8915#endif
8916
8917void fnord() { int i=42;}
8918int main ()
8919{
8920  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8921  int status = $lt_dlunknown;
8922
8923  if (self)
8924    {
8925      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8926      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8927      /* dlclose (self); */
8928    }
8929
8930    exit (status);
8931}
8932EOF
8933  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934  (eval $ac_link) 2>&5
8935  ac_status=$?
8936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8938    (./conftest; exit; ) 2>/dev/null
8939    lt_status=$?
8940    case x$lt_status in
8941      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8942      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8943      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8944    esac
8945  else :
8946    # compilation failed
8947    lt_cv_dlopen_self=no
8948  fi
8949fi
8950rm -fr conftest*
8951
8952
8953fi
8954echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8955echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8956
8957    if test "x$lt_cv_dlopen_self" = xyes; then
8958      LDFLAGS="$LDFLAGS $link_static_flag"
8959      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8960echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8961if test "${lt_cv_dlopen_self_static+set}" = set; then
8962  echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964  	  if test "$cross_compiling" = yes; then :
8965  lt_cv_dlopen_self_static=cross
8966else
8967  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8968  lt_status=$lt_dlunknown
8969  cat > conftest.$ac_ext <<EOF
8970#line 8970 "configure"
8971#include "confdefs.h"
8972
8973#if HAVE_DLFCN_H
8974#include <dlfcn.h>
8975#endif
8976
8977#include <stdio.h>
8978
8979#ifdef RTLD_GLOBAL
8980#  define LT_DLGLOBAL		RTLD_GLOBAL
8981#else
8982#  ifdef DL_GLOBAL
8983#    define LT_DLGLOBAL		DL_GLOBAL
8984#  else
8985#    define LT_DLGLOBAL		0
8986#  endif
8987#endif
8988
8989/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8990   find out it does not work in some platform. */
8991#ifndef LT_DLLAZY_OR_NOW
8992#  ifdef RTLD_LAZY
8993#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8994#  else
8995#    ifdef DL_LAZY
8996#      define LT_DLLAZY_OR_NOW		DL_LAZY
8997#    else
8998#      ifdef RTLD_NOW
8999#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9000#      else
9001#        ifdef DL_NOW
9002#          define LT_DLLAZY_OR_NOW	DL_NOW
9003#        else
9004#          define LT_DLLAZY_OR_NOW	0
9005#        endif
9006#      endif
9007#    endif
9008#  endif
9009#endif
9010
9011#ifdef __cplusplus
9012extern "C" void exit (int);
9013#endif
9014
9015void fnord() { int i=42;}
9016int main ()
9017{
9018  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9019  int status = $lt_dlunknown;
9020
9021  if (self)
9022    {
9023      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9024      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9025      /* dlclose (self); */
9026    }
9027
9028    exit (status);
9029}
9030EOF
9031  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032  (eval $ac_link) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9036    (./conftest; exit; ) 2>/dev/null
9037    lt_status=$?
9038    case x$lt_status in
9039      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9040      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9041      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9042    esac
9043  else :
9044    # compilation failed
9045    lt_cv_dlopen_self_static=no
9046  fi
9047fi
9048rm -fr conftest*
9049
9050
9051fi
9052echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9053echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9054    fi
9055
9056    CPPFLAGS="$save_CPPFLAGS"
9057    LDFLAGS="$save_LDFLAGS"
9058    LIBS="$save_LIBS"
9059    ;;
9060  esac
9061
9062  case $lt_cv_dlopen_self in
9063  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9064  *) enable_dlopen_self=unknown ;;
9065  esac
9066
9067  case $lt_cv_dlopen_self_static in
9068  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9069  *) enable_dlopen_self_static=unknown ;;
9070  esac
9071fi
9072
9073
9074# Report which librarie types wil actually be built
9075echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9076echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9077echo "$as_me:$LINENO: result: $can_build_shared" >&5
9078echo "${ECHO_T}$can_build_shared" >&6
9079
9080echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9081echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9082test "$can_build_shared" = "no" && enable_shared=no
9083
9084# On AIX, shared libraries and static libraries use the same namespace, and
9085# are all built from PIC.
9086case "$host_os" in
9087aix3*)
9088  test "$enable_shared" = yes && enable_static=no
9089  if test -n "$RANLIB"; then
9090    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9091    postinstall_cmds='$RANLIB $lib'
9092  fi
9093  ;;
9094
9095aix4* | aix5*)
9096  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9097    test "$enable_shared" = yes && enable_static=no
9098  fi
9099    ;;
9100esac
9101echo "$as_me:$LINENO: result: $enable_shared" >&5
9102echo "${ECHO_T}$enable_shared" >&6
9103
9104echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9105echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9106# Make sure either enable_shared or enable_static is yes.
9107test "$enable_shared" = yes || enable_static=yes
9108echo "$as_me:$LINENO: result: $enable_static" >&5
9109echo "${ECHO_T}$enable_static" >&6
9110
9111# The else clause should only fire when bootstrapping the
9112# libtool distribution, otherwise you forgot to ship ltmain.sh
9113# with your package, and you will get complaints that there are
9114# no rules to generate ltmain.sh.
9115if test -f "$ltmain"; then
9116  # See if we are running on zsh, and set the options which allow our commands through
9117  # without removal of \ escapes.
9118  if test -n "${ZSH_VERSION+set}" ; then
9119    setopt NO_GLOB_SUBST
9120  fi
9121  # Now quote all the things that may contain metacharacters while being
9122  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9123  # variables and quote the copies for generation of the libtool script.
9124  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9125    SED SHELL STRIP \
9126    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9127    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9128    deplibs_check_method reload_flag reload_cmds need_locks \
9129    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9130    lt_cv_sys_global_symbol_to_c_name_address \
9131    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9132    old_postinstall_cmds old_postuninstall_cmds \
9133    compiler \
9134    CC \
9135    LD \
9136    lt_prog_compiler_wl \
9137    lt_prog_compiler_pic \
9138    lt_prog_compiler_static \
9139    lt_prog_compiler_no_builtin_flag \
9140    export_dynamic_flag_spec \
9141    thread_safe_flag_spec \
9142    whole_archive_flag_spec \
9143    enable_shared_with_static_runtimes \
9144    old_archive_cmds \
9145    old_archive_from_new_cmds \
9146    predep_objects \
9147    postdep_objects \
9148    predeps \
9149    postdeps \
9150    compiler_lib_search_path \
9151    archive_cmds \
9152    archive_expsym_cmds \
9153    postinstall_cmds \
9154    postuninstall_cmds \
9155    old_archive_from_expsyms_cmds \
9156    allow_undefined_flag \
9157    no_undefined_flag \
9158    export_symbols_cmds \
9159    hardcode_libdir_flag_spec \
9160    hardcode_libdir_flag_spec_ld \
9161    hardcode_libdir_separator \
9162    hardcode_automatic \
9163    module_cmds \
9164    module_expsym_cmds \
9165    lt_cv_prog_compiler_c_o \
9166    exclude_expsyms \
9167    include_expsyms; do
9168
9169    case $var in
9170    old_archive_cmds | \
9171    old_archive_from_new_cmds | \
9172    archive_cmds | \
9173    archive_expsym_cmds | \
9174    module_cmds | \
9175    module_expsym_cmds | \
9176    old_archive_from_expsyms_cmds | \
9177    export_symbols_cmds | \
9178    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9179    postinstall_cmds | postuninstall_cmds | \
9180    old_postinstall_cmds | old_postuninstall_cmds | \
9181    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9182      # Double-quote double-evaled strings.
9183      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9184      ;;
9185    *)
9186      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9187      ;;
9188    esac
9189  done
9190
9191  case $lt_echo in
9192  *'\$0 --fallback-echo"')
9193    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9194    ;;
9195  esac
9196
9197cfgfile="${ofile}T"
9198  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9199  $rm -f "$cfgfile"
9200  { echo "$as_me:$LINENO: creating $ofile" >&5
9201echo "$as_me: creating $ofile" >&6;}
9202
9203  cat <<__EOF__ >> "$cfgfile"
9204#! $SHELL
9205
9206# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9207# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9208# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9209#
9210# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9211# Free Software Foundation, Inc.
9212#
9213# This file is part of GNU Libtool:
9214# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9215#
9216# This program is free software; you can redistribute it and/or modify
9217# it under the terms of the GNU General Public License as published by
9218# the Free Software Foundation; either version 2 of the License, or
9219# (at your option) any later version.
9220#
9221# This program is distributed in the hope that it will be useful, but
9222# WITHOUT ANY WARRANTY; without even the implied warranty of
9223# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9224# General Public License for more details.
9225#
9226# You should have received a copy of the GNU General Public License
9227# along with this program; if not, write to the Free Software
9228# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9229#
9230# As a special exception to the GNU General Public License, if you
9231# distribute this file as part of a program that contains a
9232# configuration script generated by Autoconf, you may include it under
9233# the same distribution terms that you use for the rest of that program.
9234
9235# A sed program that does not truncate output.
9236SED=$lt_SED
9237
9238# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9239Xsed="$SED -e s/^X//"
9240
9241# The HP-UX ksh and POSIX shell print the target directory to stdout
9242# if CDPATH is set.
9243(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9244
9245# The names of the tagged configurations supported by this script.
9246available_tags=
9247
9248# ### BEGIN LIBTOOL CONFIG
9249
9250# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9251
9252# Shell to use when invoking shell scripts.
9253SHELL=$lt_SHELL
9254
9255# Whether or not to build shared libraries.
9256build_libtool_libs=$enable_shared
9257
9258# Whether or not to build static libraries.
9259build_old_libs=$enable_static
9260
9261# Whether or not to add -lc for building shared libraries.
9262build_libtool_need_lc=$archive_cmds_need_lc
9263
9264# Whether or not to disallow shared libs when runtime libs are static
9265allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9266
9267# Whether or not to optimize for fast installation.
9268fast_install=$enable_fast_install
9269
9270# The host system.
9271host_alias=$host_alias
9272host=$host
9273
9274# An echo program that does not interpret backslashes.
9275echo=$lt_echo
9276
9277# The archiver.
9278AR=$lt_AR
9279AR_FLAGS=$lt_AR_FLAGS
9280
9281# A C compiler.
9282LTCC=$lt_LTCC
9283
9284# A language-specific compiler.
9285CC=$lt_compiler
9286
9287# Is the compiler the GNU C compiler?
9288with_gcc=$GCC
9289
9290# An ERE matcher.
9291EGREP=$lt_EGREP
9292
9293# The linker used to build libraries.
9294LD=$lt_LD
9295
9296# Whether we need hard or soft links.
9297LN_S=$lt_LN_S
9298
9299# A BSD-compatible nm program.
9300NM=$lt_NM
9301
9302# A symbol stripping program
9303STRIP=$lt_STRIP
9304
9305# Used to examine libraries when file_magic_cmd begins "file"
9306MAGIC_CMD=$MAGIC_CMD
9307
9308# Used on cygwin: DLL creation program.
9309DLLTOOL="$DLLTOOL"
9310
9311# Used on cygwin: object dumper.
9312OBJDUMP="$OBJDUMP"
9313
9314# Used on cygwin: assembler.
9315AS="$AS"
9316
9317# The name of the directory that contains temporary libtool files.
9318objdir=$objdir
9319
9320# How to create reloadable object files.
9321reload_flag=$lt_reload_flag
9322reload_cmds=$lt_reload_cmds
9323
9324# How to pass a linker flag through the compiler.
9325wl=$lt_lt_prog_compiler_wl
9326
9327# Object file suffix (normally "o").
9328objext="$ac_objext"
9329
9330# Old archive suffix (normally "a").
9331libext="$libext"
9332
9333# Shared library suffix (normally ".so").
9334shrext_cmds='$shrext_cmds'
9335
9336# Executable file suffix (normally "").
9337exeext="$exeext"
9338
9339# Additional compiler flags for building library objects.
9340pic_flag=$lt_lt_prog_compiler_pic
9341pic_mode=$pic_mode
9342
9343# What is the maximum length of a command?
9344max_cmd_len=$lt_cv_sys_max_cmd_len
9345
9346# Does compiler simultaneously support -c and -o options?
9347compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9348
9349# Must we lock files when doing compilation ?
9350need_locks=$lt_need_locks
9351
9352# Do we need the lib prefix for modules?
9353need_lib_prefix=$need_lib_prefix
9354
9355# Do we need a version for libraries?
9356need_version=$need_version
9357
9358# Whether dlopen is supported.
9359dlopen_support=$enable_dlopen
9360
9361# Whether dlopen of programs is supported.
9362dlopen_self=$enable_dlopen_self
9363
9364# Whether dlopen of statically linked programs is supported.
9365dlopen_self_static=$enable_dlopen_self_static
9366
9367# Compiler flag to prevent dynamic linking.
9368link_static_flag=$lt_lt_prog_compiler_static
9369
9370# Compiler flag to turn off builtin functions.
9371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9372
9373# Compiler flag to allow reflexive dlopens.
9374export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9375
9376# Compiler flag to generate shared objects directly from archives.
9377whole_archive_flag_spec=$lt_whole_archive_flag_spec
9378
9379# Compiler flag to generate thread-safe objects.
9380thread_safe_flag_spec=$lt_thread_safe_flag_spec
9381
9382# Library versioning type.
9383version_type=$version_type
9384
9385# Format of library name prefix.
9386libname_spec=$lt_libname_spec
9387
9388# List of archive names.  First name is the real one, the rest are links.
9389# The last name is the one that the linker finds with -lNAME.
9390library_names_spec=$lt_library_names_spec
9391
9392# The coded name of the library, if different from the real name.
9393soname_spec=$lt_soname_spec
9394
9395# Commands used to build and install an old-style archive.
9396RANLIB=$lt_RANLIB
9397old_archive_cmds=$lt_old_archive_cmds
9398old_postinstall_cmds=$lt_old_postinstall_cmds
9399old_postuninstall_cmds=$lt_old_postuninstall_cmds
9400
9401# Create an old-style archive from a shared archive.
9402old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9403
9404# Create a temporary old-style archive to link instead of a shared archive.
9405old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9406
9407# Commands used to build and install a shared archive.
9408archive_cmds=$lt_archive_cmds
9409archive_expsym_cmds=$lt_archive_expsym_cmds
9410postinstall_cmds=$lt_postinstall_cmds
9411postuninstall_cmds=$lt_postuninstall_cmds
9412
9413# Commands used to build a loadable module (assumed same as above if empty)
9414module_cmds=$lt_module_cmds
9415module_expsym_cmds=$lt_module_expsym_cmds
9416
9417# Commands to strip libraries.
9418old_striplib=$lt_old_striplib
9419striplib=$lt_striplib
9420
9421# Dependencies to place before the objects being linked to create a
9422# shared library.
9423predep_objects=$lt_predep_objects
9424
9425# Dependencies to place after the objects being linked to create a
9426# shared library.
9427postdep_objects=$lt_postdep_objects
9428
9429# Dependencies to place before the objects being linked to create a
9430# shared library.
9431predeps=$lt_predeps
9432
9433# Dependencies to place after the objects being linked to create a
9434# shared library.
9435postdeps=$lt_postdeps
9436
9437# The library search path used internally by the compiler when linking
9438# a shared library.
9439compiler_lib_search_path=$lt_compiler_lib_search_path
9440
9441# Method to check whether dependent libraries are shared objects.
9442deplibs_check_method=$lt_deplibs_check_method
9443
9444# Command to use when deplibs_check_method == file_magic.
9445file_magic_cmd=$lt_file_magic_cmd
9446
9447# Flag that allows shared libraries with undefined symbols to be built.
9448allow_undefined_flag=$lt_allow_undefined_flag
9449
9450# Flag that forces no undefined symbols.
9451no_undefined_flag=$lt_no_undefined_flag
9452
9453# Commands used to finish a libtool library installation in a directory.
9454finish_cmds=$lt_finish_cmds
9455
9456# Same as above, but a single script fragment to be evaled but not shown.
9457finish_eval=$lt_finish_eval
9458
9459# Take the output of nm and produce a listing of raw symbols and C names.
9460global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9461
9462# Transform the output of nm in a proper C declaration
9463global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9464
9465# Transform the output of nm in a C name address pair
9466global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9467
9468# This is the shared library runtime path variable.
9469runpath_var=$runpath_var
9470
9471# This is the shared library path variable.
9472shlibpath_var=$shlibpath_var
9473
9474# Is shlibpath searched before the hard-coded library search path?
9475shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9476
9477# How to hardcode a shared library path into an executable.
9478hardcode_action=$hardcode_action
9479
9480# Whether we should hardcode library paths into libraries.
9481hardcode_into_libs=$hardcode_into_libs
9482
9483# Flag to hardcode \$libdir into a binary during linking.
9484# This must work even if \$libdir does not exist.
9485hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9486
9487# If ld is used when linking, flag to hardcode \$libdir into
9488# a binary during linking. This must work even if \$libdir does
9489# not exist.
9490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9491
9492# Whether we need a single -rpath flag with a separated argument.
9493hardcode_libdir_separator=$lt_hardcode_libdir_separator
9494
9495# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9496# resulting binary.
9497hardcode_direct=$hardcode_direct
9498
9499# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9500# resulting binary.
9501hardcode_minus_L=$hardcode_minus_L
9502
9503# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9504# the resulting binary.
9505hardcode_shlibpath_var=$hardcode_shlibpath_var
9506
9507# Set to yes if building a shared library automatically hardcodes DIR into the library
9508# and all subsequent libraries and executables linked against it.
9509hardcode_automatic=$hardcode_automatic
9510
9511# Variables whose values should be saved in libtool wrapper scripts and
9512# restored at relink time.
9513variables_saved_for_relink="$variables_saved_for_relink"
9514
9515# Whether libtool must link a program against all its dependency libraries.
9516link_all_deplibs=$link_all_deplibs
9517
9518# Compile-time system search path for libraries
9519sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9520
9521# Run-time system search path for libraries
9522sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9523
9524# Fix the shell variable \$srcfile for the compiler.
9525fix_srcfile_path="$fix_srcfile_path"
9526
9527# Set to yes if exported symbols are required.
9528always_export_symbols=$always_export_symbols
9529
9530# The commands to list exported symbols.
9531export_symbols_cmds=$lt_export_symbols_cmds
9532
9533# The commands to extract the exported symbol list from a shared archive.
9534extract_expsyms_cmds=$lt_extract_expsyms_cmds
9535
9536# Symbols that should not be listed in the preloaded symbols.
9537exclude_expsyms=$lt_exclude_expsyms
9538
9539# Symbols that must always be exported.
9540include_expsyms=$lt_include_expsyms
9541
9542# ### END LIBTOOL CONFIG
9543
9544__EOF__
9545
9546
9547  case $host_os in
9548  aix3*)
9549    cat <<\EOF >> "$cfgfile"
9550
9551# AIX sometimes has problems with the GCC collect2 program.  For some
9552# reason, if we set the COLLECT_NAMES environment variable, the problems
9553# vanish in a puff of smoke.
9554if test "X${COLLECT_NAMES+set}" != Xset; then
9555  COLLECT_NAMES=
9556  export COLLECT_NAMES
9557fi
9558EOF
9559    ;;
9560  esac
9561
9562  # We use sed instead of cat because bash on DJGPP gets confused if
9563  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9564  # text mode, it properly converts lines to CR/LF.  This bash problem
9565  # is reportedly fixed, but why not run on old versions too?
9566  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9567
9568  mv -f "$cfgfile" "$ofile" || \
9569    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9570  chmod +x "$ofile"
9571
9572else
9573  # If there is no Makefile yet, we rely on a make rule to execute
9574  # `config.status --recheck' to rerun these tests and create the
9575  # libtool script then.
9576  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9577  if test -f "$ltmain_in"; then
9578    test -f Makefile && make "$ltmain"
9579  fi
9580fi
9581
9582
9583ac_ext=c
9584ac_cpp='$CPP $CPPFLAGS'
9585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587ac_compiler_gnu=$ac_cv_c_compiler_gnu
9588
9589CC="$lt_save_CC"
9590
9591
9592# Check whether --with-tags or --without-tags was given.
9593if test "${with_tags+set}" = set; then
9594  withval="$with_tags"
9595  tagnames="$withval"
9596fi;
9597
9598if test -f "$ltmain" && test -n "$tagnames"; then
9599  if test ! -f "${ofile}"; then
9600    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9601echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9602  fi
9603
9604  if test -z "$LTCC"; then
9605    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9606    if test -z "$LTCC"; then
9607      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9608echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9609    else
9610      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9611echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9612    fi
9613  fi
9614
9615  # Extract list of available tagged configurations in $ofile.
9616  # Note that this assumes the entire list is on one line.
9617  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9618
9619  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9620  for tagname in $tagnames; do
9621    IFS="$lt_save_ifs"
9622    # Check whether tagname contains only valid characters
9623    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9624    "") ;;
9625    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9626echo "$as_me: error: invalid tag name: $tagname" >&2;}
9627   { (exit 1); exit 1; }; }
9628	;;
9629    esac
9630
9631    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9632    then
9633      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9634echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9635   { (exit 1); exit 1; }; }
9636    fi
9637
9638    # Update the list of available tags.
9639    if test -n "$tagname"; then
9640      echo appending configuration tag \"$tagname\" to $ofile
9641
9642      case $tagname in
9643      CXX)
9644	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9645	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9646	    (test "X$CXX" != "Xg++"))) ; then
9647	  ac_ext=cc
9648ac_cpp='$CXXCPP $CPPFLAGS'
9649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9652
9653
9654
9655
9656archive_cmds_need_lc_CXX=no
9657allow_undefined_flag_CXX=
9658always_export_symbols_CXX=no
9659archive_expsym_cmds_CXX=
9660export_dynamic_flag_spec_CXX=
9661hardcode_direct_CXX=no
9662hardcode_libdir_flag_spec_CXX=
9663hardcode_libdir_flag_spec_ld_CXX=
9664hardcode_libdir_separator_CXX=
9665hardcode_minus_L_CXX=no
9666hardcode_automatic_CXX=no
9667module_cmds_CXX=
9668module_expsym_cmds_CXX=
9669link_all_deplibs_CXX=unknown
9670old_archive_cmds_CXX=$old_archive_cmds
9671no_undefined_flag_CXX=
9672whole_archive_flag_spec_CXX=
9673enable_shared_with_static_runtimes_CXX=no
9674
9675# Dependencies to place before and after the object being linked:
9676predep_objects_CXX=
9677postdep_objects_CXX=
9678predeps_CXX=
9679postdeps_CXX=
9680compiler_lib_search_path_CXX=
9681
9682# Source file extension for C++ test sources.
9683ac_ext=cc
9684
9685# Object file extension for compiled C++ test sources.
9686objext=o
9687objext_CXX=$objext
9688
9689# Code to be used in simple compile tests
9690lt_simple_compile_test_code="int some_variable = 0;\n"
9691
9692# Code to be used in simple link tests
9693lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9694
9695# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9696
9697# If no C compiler was specified, use CC.
9698LTCC=${LTCC-"$CC"}
9699
9700# Allow CC to be a program name with arguments.
9701compiler=$CC
9702
9703
9704# Allow CC to be a program name with arguments.
9705lt_save_CC=$CC
9706lt_save_LD=$LD
9707lt_save_GCC=$GCC
9708GCC=$GXX
9709lt_save_with_gnu_ld=$with_gnu_ld
9710lt_save_path_LD=$lt_cv_path_LD
9711if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9712  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9713else
9714  unset lt_cv_prog_gnu_ld
9715fi
9716if test -n "${lt_cv_path_LDCXX+set}"; then
9717  lt_cv_path_LD=$lt_cv_path_LDCXX
9718else
9719  unset lt_cv_path_LD
9720fi
9721test -z "${LDCXX+set}" || LD=$LDCXX
9722CC=${CXX-"c++"}
9723compiler=$CC
9724compiler_CXX=$CC
9725cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9726
9727# We don't want -fno-exception wen compiling C++ code, so set the
9728# no_builtin_flag separately
9729if test "$GXX" = yes; then
9730  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9731else
9732  lt_prog_compiler_no_builtin_flag_CXX=
9733fi
9734
9735if test "$GXX" = yes; then
9736  # Set up default GNU C++ configuration
9737
9738
9739# Check whether --with-gnu-ld or --without-gnu-ld was given.
9740if test "${with_gnu_ld+set}" = set; then
9741  withval="$with_gnu_ld"
9742  test "$withval" = no || with_gnu_ld=yes
9743else
9744  with_gnu_ld=no
9745fi;
9746ac_prog=ld
9747if test "$GCC" = yes; then
9748  # Check if gcc -print-prog-name=ld gives a path.
9749  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9750echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9751  case $host in
9752  *-*-mingw*)
9753    # gcc leaves a trailing carriage return which upsets mingw
9754    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9755  *)
9756    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9757  esac
9758  case $ac_prog in
9759    # Accept absolute paths.
9760    [\\/]* | ?:[\\/]*)
9761      re_direlt='/[^/][^/]*/\.\./'
9762      # Canonicalize the pathname of ld
9763      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9764      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9765	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9766      done
9767      test -z "$LD" && LD="$ac_prog"
9768      ;;
9769  "")
9770    # If it fails, then pretend we aren't using GCC.
9771    ac_prog=ld
9772    ;;
9773  *)
9774    # If it is relative, then search for the first ld in PATH.
9775    with_gnu_ld=unknown
9776    ;;
9777  esac
9778elif test "$with_gnu_ld" = yes; then
9779  echo "$as_me:$LINENO: checking for GNU ld" >&5
9780echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9781else
9782  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9783echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9784fi
9785if test "${lt_cv_path_LD+set}" = set; then
9786  echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788  if test -z "$LD"; then
9789  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9790  for ac_dir in $PATH; do
9791    IFS="$lt_save_ifs"
9792    test -z "$ac_dir" && ac_dir=.
9793    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9794      lt_cv_path_LD="$ac_dir/$ac_prog"
9795      # Check to see if the program is GNU ld.  I'd rather use --version,
9796      # but apparently some GNU ld's only accept -v.
9797      # Break only if it was the GNU/non-GNU ld that we prefer.
9798      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9799      *GNU* | *'with BFD'*)
9800	test "$with_gnu_ld" != no && break
9801	;;
9802      *)
9803	test "$with_gnu_ld" != yes && break
9804	;;
9805      esac
9806    fi
9807  done
9808  IFS="$lt_save_ifs"
9809else
9810  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9811fi
9812fi
9813
9814LD="$lt_cv_path_LD"
9815if test -n "$LD"; then
9816  echo "$as_me:$LINENO: result: $LD" >&5
9817echo "${ECHO_T}$LD" >&6
9818else
9819  echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821fi
9822test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9823echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9824   { (exit 1); exit 1; }; }
9825echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9826echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9827if test "${lt_cv_prog_gnu_ld+set}" = set; then
9828  echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9831case `$LD -v 2>&1 </dev/null` in
9832*GNU* | *'with BFD'*)
9833  lt_cv_prog_gnu_ld=yes
9834  ;;
9835*)
9836  lt_cv_prog_gnu_ld=no
9837  ;;
9838esac
9839fi
9840echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9841echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9842with_gnu_ld=$lt_cv_prog_gnu_ld
9843
9844
9845
9846  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9847  # archiving commands below assume that GNU ld is being used.
9848  if test "$with_gnu_ld" = yes; then
9849    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9850    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'
9851
9852    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9853    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9854
9855    # If archive_cmds runs LD, not CC, wlarc should be empty
9856    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9857    #     investigate it a little bit more. (MM)
9858    wlarc='${wl}'
9859
9860    # ancient GNU ld didn't support --whole-archive et. al.
9861    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9862	grep 'no-whole-archive' > /dev/null; then
9863      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9864    else
9865      whole_archive_flag_spec_CXX=
9866    fi
9867  else
9868    with_gnu_ld=no
9869    wlarc=
9870
9871    # A generic and very simple default shared library creation
9872    # command for GNU C++ for the case where it uses the native
9873    # linker, instead of GNU ld.  If possible, this setting should
9874    # overridden to take advantage of the native linker features on
9875    # the platform it is being used on.
9876    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9877  fi
9878
9879  # Commands to make compiler produce verbose output that lists
9880  # what "hidden" libraries, object files and flags are used when
9881  # linking a shared library.
9882  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9883
9884else
9885  GXX=no
9886  with_gnu_ld=no
9887  wlarc=
9888fi
9889
9890# PORTME: fill in a description of your system's C++ link characteristics
9891echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9892echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9893ld_shlibs_CXX=yes
9894case $host_os in
9895  aix3*)
9896    # FIXME: insert proper C++ library support
9897    ld_shlibs_CXX=no
9898    ;;
9899  aix4* | aix5*)
9900    if test "$host_cpu" = ia64; then
9901      # On IA64, the linker does run time linking by default, so we don't
9902      # have to do anything special.
9903      aix_use_runtimelinking=no
9904      exp_sym_flag='-Bexport'
9905      no_entry_flag=""
9906    else
9907      aix_use_runtimelinking=no
9908
9909      # Test if we are trying to use run time linking or normal
9910      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9911      # need to do runtime linking.
9912      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9913	for ld_flag in $LDFLAGS; do
9914	  case $ld_flag in
9915	  *-brtl*)
9916	    aix_use_runtimelinking=yes
9917	    break
9918	    ;;
9919	  esac
9920	done
9921      esac
9922
9923      exp_sym_flag='-bexport'
9924      no_entry_flag='-bnoentry'
9925    fi
9926
9927    # When large executables or shared objects are built, AIX ld can
9928    # have problems creating the table of contents.  If linking a library
9929    # or program results in "error TOC overflow" add -mminimal-toc to
9930    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9931    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9932
9933    archive_cmds_CXX=''
9934    hardcode_direct_CXX=yes
9935    hardcode_libdir_separator_CXX=':'
9936    link_all_deplibs_CXX=yes
9937
9938    if test "$GXX" = yes; then
9939      case $host_os in aix4.012|aix4.012.*)
9940      # We only want to do this on AIX 4.2 and lower, the check
9941      # below for broken collect2 doesn't work under 4.3+
9942	collect2name=`${CC} -print-prog-name=collect2`
9943	if test -f "$collect2name" && \
9944	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9945	then
9946	  # We have reworked collect2
9947	  hardcode_direct_CXX=yes
9948	else
9949	  # We have old collect2
9950	  hardcode_direct_CXX=unsupported
9951	  # It fails to find uninstalled libraries when the uninstalled
9952	  # path is not listed in the libpath.  Setting hardcode_minus_L
9953	  # to unsupported forces relinking
9954	  hardcode_minus_L_CXX=yes
9955	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9956	  hardcode_libdir_separator_CXX=
9957	fi
9958      esac
9959      shared_flag='-shared'
9960    else
9961      # not using gcc
9962      if test "$host_cpu" = ia64; then
9963	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9964	# chokes on -Wl,-G. The following line is correct:
9965	shared_flag='-G'
9966      else
9967	if test "$aix_use_runtimelinking" = yes; then
9968	  shared_flag='${wl}-G'
9969	else
9970	  shared_flag='${wl}-bM:SRE'
9971	fi
9972      fi
9973    fi
9974
9975    # It seems that -bexpall does not export symbols beginning with
9976    # underscore (_), so it is better to generate a list of symbols to export.
9977    always_export_symbols_CXX=yes
9978    if test "$aix_use_runtimelinking" = yes; then
9979      # Warning - without using the other runtime loading flags (-brtl),
9980      # -berok will link without error, but may produce a broken library.
9981      allow_undefined_flag_CXX='-berok'
9982      # Determine the default libpath from the value encoded in an empty executable.
9983      cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h.  */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h.  */
9989
9990int
9991main ()
9992{
9993
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext conftest$ac_exeext
9999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000  (eval $ac_link) 2>conftest.er1
10001  ac_status=$?
10002  grep -v '^ *+' conftest.er1 >conftest.err
10003  rm -f conftest.er1
10004  cat conftest.err >&5
10005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006  (exit $ac_status); } &&
10007	 { ac_try='test -z "$ac_cxx_werror_flag"
10008			 || test ! -s conftest.err'
10009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010  (eval $ac_try) 2>&5
10011  ac_status=$?
10012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013  (exit $ac_status); }; } &&
10014	 { ac_try='test -s conftest$ac_exeext'
10015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016  (eval $ac_try) 2>&5
10017  ac_status=$?
10018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019  (exit $ac_status); }; }; then
10020
10021aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10022}'`
10023# Check for a 64-bit object if we didn't find anything.
10024if 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; }
10025}'`; fi
10026else
10027  echo "$as_me: failed program was:" >&5
10028sed 's/^/| /' conftest.$ac_ext >&5
10029
10030fi
10031rm -f conftest.err conftest.$ac_objext \
10032      conftest$ac_exeext conftest.$ac_ext
10033if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10034
10035      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10036
10037      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"
10038     else
10039      if test "$host_cpu" = ia64; then
10040	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10041	allow_undefined_flag_CXX="-z nodefs"
10042	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"
10043      else
10044	# Determine the default libpath from the value encoded in an empty executable.
10045	cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h.  */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h.  */
10051
10052int
10053main ()
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060rm -f conftest.$ac_objext conftest$ac_exeext
10061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062  (eval $ac_link) 2>conftest.er1
10063  ac_status=$?
10064  grep -v '^ *+' conftest.er1 >conftest.err
10065  rm -f conftest.er1
10066  cat conftest.err >&5
10067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068  (exit $ac_status); } &&
10069	 { ac_try='test -z "$ac_cxx_werror_flag"
10070			 || test ! -s conftest.err'
10071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072  (eval $ac_try) 2>&5
10073  ac_status=$?
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); }; } &&
10076	 { ac_try='test -s conftest$ac_exeext'
10077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078  (eval $ac_try) 2>&5
10079  ac_status=$?
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); }; }; then
10082
10083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10084}'`
10085# Check for a 64-bit object if we didn't find anything.
10086if 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; }
10087}'`; fi
10088else
10089  echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092fi
10093rm -f conftest.err conftest.$ac_objext \
10094      conftest$ac_exeext conftest.$ac_ext
10095if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10096
10097	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10098	# Warning - without using the other run time loading flags,
10099	# -berok will link without error, but may produce a broken library.
10100	no_undefined_flag_CXX=' ${wl}-bernotok'
10101	allow_undefined_flag_CXX=' ${wl}-berok'
10102	# -bexpall does not export symbols beginning with underscore (_)
10103	always_export_symbols_CXX=yes
10104	# Exported symbols can be pulled into shared objects from archives
10105	whole_archive_flag_spec_CXX=' '
10106	archive_cmds_need_lc_CXX=yes
10107	# This is similar to how AIX traditionally builds it's shared libraries.
10108	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'
10109      fi
10110    fi
10111    ;;
10112  chorus*)
10113    case $cc_basename in
10114      *)
10115	# FIXME: insert proper C++ library support
10116	ld_shlibs_CXX=no
10117	;;
10118    esac
10119    ;;
10120
10121
10122  cygwin* | mingw* | pw32*)
10123    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10124    # as there is no search path for DLLs.
10125    hardcode_libdir_flag_spec_CXX='-L$libdir'
10126    allow_undefined_flag_CXX=unsupported
10127    always_export_symbols_CXX=no
10128    enable_shared_with_static_runtimes_CXX=yes
10129
10130    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10131      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'
10132      # If the export-symbols file already is a .def file (1st line
10133      # is EXPORTS), use it as is; otherwise, prepend...
10134      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10135	cp $export_symbols $output_objdir/$soname.def;
10136      else
10137	echo EXPORTS > $output_objdir/$soname.def;
10138	cat $export_symbols >> $output_objdir/$soname.def;
10139      fi~
10140      $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'
10141    else
10142      ld_shlibs_CXX=no
10143    fi
10144  ;;
10145      darwin* | rhapsody*)
10146        case "$host_os" in
10147        rhapsody* | darwin1.[012])
10148         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10149         ;;
10150       *) # Darwin 1.3 on
10151         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10152           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10153         else
10154           case ${MACOSX_DEPLOYMENT_TARGET} in
10155             10.[012])
10156               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10157               ;;
10158             10.*)
10159               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10160               ;;
10161           esac
10162         fi
10163         ;;
10164        esac
10165      archive_cmds_need_lc_CXX=no
10166      hardcode_direct_CXX=no
10167      hardcode_automatic_CXX=yes
10168      hardcode_shlibpath_var_CXX=unsupported
10169      whole_archive_flag_spec_CXX=''
10170      link_all_deplibs_CXX=yes
10171
10172    if test "$GXX" = yes ; then
10173      lt_int_apple_cc_single_mod=no
10174      output_verbose_link_cmd='echo'
10175      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10176       lt_int_apple_cc_single_mod=yes
10177      fi
10178      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10179       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10180      else
10181          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'
10182        fi
10183        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10184        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10185          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10186            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}'
10187          else
10188            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}'
10189          fi
10190            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}'
10191      else
10192      case "$cc_basename" in
10193        xlc*)
10194         output_verbose_link_cmd='echo'
10195          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'
10196          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10197          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10198          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}'
10199          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}'
10200          ;;
10201       *)
10202         ld_shlibs_CXX=no
10203          ;;
10204      esac
10205      fi
10206        ;;
10207
10208  dgux*)
10209    case $cc_basename in
10210      ec++)
10211	# FIXME: insert proper C++ library support
10212	ld_shlibs_CXX=no
10213	;;
10214      ghcx)
10215	# Green Hills C++ Compiler
10216	# FIXME: insert proper C++ library support
10217	ld_shlibs_CXX=no
10218	;;
10219      *)
10220	# FIXME: insert proper C++ library support
10221	ld_shlibs_CXX=no
10222	;;
10223    esac
10224    ;;
10225  freebsd12*)
10226    # C++ shared libraries reported to be fairly broken before switch to ELF
10227    ld_shlibs_CXX=no
10228    ;;
10229  freebsd-elf*)
10230    archive_cmds_need_lc_CXX=no
10231    ;;
10232  freebsd* | kfreebsd*-gnu)
10233    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10234    # conventions
10235    ld_shlibs_CXX=yes
10236    ;;
10237  gnu*)
10238    ;;
10239  hpux9*)
10240    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10241    hardcode_libdir_separator_CXX=:
10242    export_dynamic_flag_spec_CXX='${wl}-E'
10243    hardcode_direct_CXX=yes
10244    hardcode_minus_L_CXX=yes # Not in the search PATH,
10245				# but as the default
10246				# location of the library.
10247
10248    case $cc_basename in
10249    CC)
10250      # FIXME: insert proper C++ library support
10251      ld_shlibs_CXX=no
10252      ;;
10253    aCC)
10254      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'
10255      # Commands to make compiler produce verbose output that lists
10256      # what "hidden" libraries, object files and flags are used when
10257      # linking a shared library.
10258      #
10259      # There doesn't appear to be a way to prevent this compiler from
10260      # explicitly linking system object files so we need to strip them
10261      # from the output so that they don't get included in the library
10262      # dependencies.
10263      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'
10264      ;;
10265    *)
10266      if test "$GXX" = yes; then
10267        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'
10268      else
10269        # FIXME: insert proper C++ library support
10270        ld_shlibs_CXX=no
10271      fi
10272      ;;
10273    esac
10274    ;;
10275  hpux10*|hpux11*)
10276    if test $with_gnu_ld = no; then
10277      case "$host_cpu" in
10278      hppa*64*)
10279	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10280	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10281	hardcode_libdir_separator_CXX=:
10282        ;;
10283      ia64*)
10284	hardcode_libdir_flag_spec_CXX='-L$libdir'
10285        ;;
10286      *)
10287	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10288	hardcode_libdir_separator_CXX=:
10289	export_dynamic_flag_spec_CXX='${wl}-E'
10290        ;;
10291      esac
10292    fi
10293    case "$host_cpu" in
10294    hppa*64*)
10295      hardcode_direct_CXX=no
10296      hardcode_shlibpath_var_CXX=no
10297      ;;
10298    ia64*)
10299      hardcode_direct_CXX=no
10300      hardcode_shlibpath_var_CXX=no
10301      hardcode_minus_L_CXX=yes # Not in the search PATH,
10302					      # but as the default
10303					      # location of the library.
10304      ;;
10305    *)
10306      hardcode_direct_CXX=yes
10307      hardcode_minus_L_CXX=yes # Not in the search PATH,
10308					      # but as the default
10309					      # location of the library.
10310      ;;
10311    esac
10312
10313    case $cc_basename in
10314      CC)
10315	# FIXME: insert proper C++ library support
10316	ld_shlibs_CXX=no
10317	;;
10318      aCC)
10319	case "$host_cpu" in
10320	hppa*64*|ia64*)
10321	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10322	  ;;
10323	*)
10324	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10325	  ;;
10326	esac
10327	# Commands to make compiler produce verbose output that lists
10328	# what "hidden" libraries, object files and flags are used when
10329	# linking a shared library.
10330	#
10331	# There doesn't appear to be a way to prevent this compiler from
10332	# explicitly linking system object files so we need to strip them
10333	# from the output so that they don't get included in the library
10334	# dependencies.
10335	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'
10336	;;
10337      *)
10338	if test "$GXX" = yes; then
10339	  if test $with_gnu_ld = no; then
10340	    case "$host_cpu" in
10341	    ia64*|hppa*64*)
10342	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10343	      ;;
10344	    *)
10345	      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'
10346	      ;;
10347	    esac
10348	  fi
10349	else
10350	  # FIXME: insert proper C++ library support
10351	  ld_shlibs_CXX=no
10352	fi
10353	;;
10354    esac
10355    ;;
10356  irix5* | irix6*)
10357    case $cc_basename in
10358      CC)
10359	# SGI C++
10360	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 ${objdir}/so_locations -o $lib'
10361
10362	# Archives containing C++ object files must be created using
10363	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10364	# necessary to make sure instantiated templates are included
10365	# in the archive.
10366	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10367	;;
10368      *)
10369	if test "$GXX" = yes; then
10370	  if test "$with_gnu_ld" = no; then
10371	    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}${objdir}/so_locations -o $lib'
10372	  else
10373	    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'
10374	  fi
10375	fi
10376	link_all_deplibs_CXX=yes
10377	;;
10378    esac
10379    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10380    hardcode_libdir_separator_CXX=:
10381    ;;
10382  linux*)
10383    case $cc_basename in
10384      KCC)
10385	# Kuck and Associates, Inc. (KAI) C++ Compiler
10386
10387	# KCC will only create a shared library if the output file
10388	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10389	# to its proper name (with version) after linking.
10390	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'
10391	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'
10392	# Commands to make compiler produce verbose output that lists
10393	# what "hidden" libraries, object files and flags are used when
10394	# linking a shared library.
10395	#
10396	# There doesn't appear to be a way to prevent this compiler from
10397	# explicitly linking system object files so we need to strip them
10398	# from the output so that they don't get included in the library
10399	# dependencies.
10400	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'
10401
10402	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10403	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10404
10405	# Archives containing C++ object files must be created using
10406	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10407	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10408	;;
10409      icpc)
10410	# Intel C++
10411	with_gnu_ld=yes
10412	# version 8.0 and above of icpc choke on multiply defined symbols
10413	# if we add $predep_objects and $postdep_objects, however 7.1 and
10414	# earlier do not add the objects themselves.
10415	case `$CC -V 2>&1` in
10416	*"Version 7."*)
10417  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10418  	  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'
10419	  ;;
10420	*)  # Version 8.0 or newer
10421  	  archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422  	archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10423	  ;;
10424	esac
10425	archive_cmds_need_lc_CXX=no
10426	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10427	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10428	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10429	;;
10430      cxx)
10431	# Compaq C++
10432	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10433	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'
10434
10435	runpath_var=LD_RUN_PATH
10436	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10437	hardcode_libdir_separator_CXX=:
10438
10439	# Commands to make compiler produce verbose output that lists
10440	# what "hidden" libraries, object files and flags are used when
10441	# linking a shared library.
10442	#
10443	# There doesn't appear to be a way to prevent this compiler from
10444	# explicitly linking system object files so we need to strip them
10445	# from the output so that they don't get included in the library
10446	# dependencies.
10447	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'
10448	;;
10449    esac
10450    ;;
10451  lynxos*)
10452    # FIXME: insert proper C++ library support
10453    ld_shlibs_CXX=no
10454    ;;
10455  m88k*)
10456    # FIXME: insert proper C++ library support
10457    ld_shlibs_CXX=no
10458    ;;
10459  mvs*)
10460    case $cc_basename in
10461      cxx)
10462	# FIXME: insert proper C++ library support
10463	ld_shlibs_CXX=no
10464	;;
10465      *)
10466	# FIXME: insert proper C++ library support
10467	ld_shlibs_CXX=no
10468	;;
10469    esac
10470    ;;
10471  netbsd*)
10472    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10473      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10474      wlarc=
10475      hardcode_libdir_flag_spec_CXX='-R$libdir'
10476      hardcode_direct_CXX=yes
10477      hardcode_shlibpath_var_CXX=no
10478    fi
10479    # Workaround some broken pre-1.5 toolchains
10480    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10481    ;;
10482  openbsd2*)
10483    # C++ shared libraries are fairly broken
10484    ld_shlibs_CXX=no
10485    ;;
10486  openbsd*)
10487    hardcode_direct_CXX=yes
10488    hardcode_shlibpath_var_CXX=no
10489    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10490    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10491    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10492      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10493      export_dynamic_flag_spec_CXX='${wl}-E'
10494      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10495    fi
10496    output_verbose_link_cmd='echo'
10497    ;;
10498  osf3*)
10499    case $cc_basename in
10500      KCC)
10501	# Kuck and Associates, Inc. (KAI) C++ Compiler
10502
10503	# KCC will only create a shared library if the output file
10504	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10505	# to its proper name (with version) after linking.
10506	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'
10507
10508	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10509	hardcode_libdir_separator_CXX=:
10510
10511	# Archives containing C++ object files must be created using
10512	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10513	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10514
10515	;;
10516      RCC)
10517	# Rational C++ 2.4.1
10518	# FIXME: insert proper C++ library support
10519	ld_shlibs_CXX=no
10520	;;
10521      cxx)
10522	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10523	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 ${objdir}/so_locations -o $lib'
10524
10525	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10526	hardcode_libdir_separator_CXX=:
10527
10528	# Commands to make compiler produce verbose output that lists
10529	# what "hidden" libraries, object files and flags are used when
10530	# linking a shared library.
10531	#
10532	# There doesn't appear to be a way to prevent this compiler from
10533	# explicitly linking system object files so we need to strip them
10534	# from the output so that they don't get included in the library
10535	# dependencies.
10536	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'
10537	;;
10538      *)
10539	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10540	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10541	  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}${objdir}/so_locations -o $lib'
10542
10543	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10544	  hardcode_libdir_separator_CXX=:
10545
10546	  # Commands to make compiler produce verbose output that lists
10547	  # what "hidden" libraries, object files and flags are used when
10548	  # linking a shared library.
10549	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10550
10551	else
10552	  # FIXME: insert proper C++ library support
10553	  ld_shlibs_CXX=no
10554	fi
10555	;;
10556    esac
10557    ;;
10558  osf4* | osf5*)
10559    case $cc_basename in
10560      KCC)
10561	# Kuck and Associates, Inc. (KAI) C++ Compiler
10562
10563	# KCC will only create a shared library if the output file
10564	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10565	# to its proper name (with version) after linking.
10566	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'
10567
10568	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10569	hardcode_libdir_separator_CXX=:
10570
10571	# Archives containing C++ object files must be created using
10572	# the KAI C++ compiler.
10573	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10574	;;
10575      RCC)
10576	# Rational C++ 2.4.1
10577	# FIXME: insert proper C++ library support
10578	ld_shlibs_CXX=no
10579	;;
10580      cxx)
10581	allow_undefined_flag_CXX=' -expect_unresolved \*'
10582	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 ${objdir}/so_locations -o $lib'
10583	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10584	  echo "-hidden">> $lib.exp~
10585	  $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 $objdir/so_locations -o $lib~
10586	  $rm $lib.exp'
10587
10588	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10589	hardcode_libdir_separator_CXX=:
10590
10591	# Commands to make compiler produce verbose output that lists
10592	# what "hidden" libraries, object files and flags are used when
10593	# linking a shared library.
10594	#
10595	# There doesn't appear to be a way to prevent this compiler from
10596	# explicitly linking system object files so we need to strip them
10597	# from the output so that they don't get included in the library
10598	# dependencies.
10599	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'
10600	;;
10601      *)
10602	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10603	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10604	 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}${objdir}/so_locations -o $lib'
10605
10606	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10607	  hardcode_libdir_separator_CXX=:
10608
10609	  # Commands to make compiler produce verbose output that lists
10610	  # what "hidden" libraries, object files and flags are used when
10611	  # linking a shared library.
10612	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10613
10614	else
10615	  # FIXME: insert proper C++ library support
10616	  ld_shlibs_CXX=no
10617	fi
10618	;;
10619    esac
10620    ;;
10621  psos*)
10622    # FIXME: insert proper C++ library support
10623    ld_shlibs_CXX=no
10624    ;;
10625  sco*)
10626    archive_cmds_need_lc_CXX=no
10627    case $cc_basename in
10628      CC)
10629	# FIXME: insert proper C++ library support
10630	ld_shlibs_CXX=no
10631	;;
10632      *)
10633	# FIXME: insert proper C++ library support
10634	ld_shlibs_CXX=no
10635	;;
10636    esac
10637    ;;
10638  sunos4*)
10639    case $cc_basename in
10640      CC)
10641	# Sun C++ 4.x
10642	# FIXME: insert proper C++ library support
10643	ld_shlibs_CXX=no
10644	;;
10645      lcc)
10646	# Lucid
10647	# FIXME: insert proper C++ library support
10648	ld_shlibs_CXX=no
10649	;;
10650      *)
10651	# FIXME: insert proper C++ library support
10652	ld_shlibs_CXX=no
10653	;;
10654    esac
10655    ;;
10656  solaris*)
10657    case $cc_basename in
10658      CC)
10659	# Sun C++ 4.2, 5.x and Centerline C++
10660	no_undefined_flag_CXX=' -zdefs'
10661	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10662	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10663	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10664
10665	hardcode_libdir_flag_spec_CXX='-R$libdir'
10666	hardcode_shlibpath_var_CXX=no
10667	case $host_os in
10668	  solaris2.0-5 | solaris2.0-5.*) ;;
10669	  *)
10670	    # The C++ compiler is used as linker so we must use $wl
10671	    # flag to pass the commands to the underlying system
10672	    # linker.
10673	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10674	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10675	    ;;
10676	esac
10677	link_all_deplibs_CXX=yes
10678
10679	# Commands to make compiler produce verbose output that lists
10680	# what "hidden" libraries, object files and flags are used when
10681	# linking a shared library.
10682	#
10683	# There doesn't appear to be a way to prevent this compiler from
10684	# explicitly linking system object files so we need to strip them
10685	# from the output so that they don't get included in the library
10686	# dependencies.
10687	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10688
10689	# Archives containing C++ object files must be created using
10690	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10691	# necessary to make sure instantiated templates are included
10692	# in the archive.
10693	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10694	;;
10695      gcx)
10696	# Green Hills C++ Compiler
10697	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10698
10699	# The C++ compiler must be used to create the archive.
10700	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10701	;;
10702      *)
10703	# GNU C++ compiler with Solaris linker
10704	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10705	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10706	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10707	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10708	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10709		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10710
10711	    # Commands to make compiler produce verbose output that lists
10712	    # what "hidden" libraries, object files and flags are used when
10713	    # linking a shared library.
10714	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10715	  else
10716	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10717	    # platform.
10718	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10719	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10720		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10721
10722	    # Commands to make compiler produce verbose output that lists
10723	    # what "hidden" libraries, object files and flags are used when
10724	    # linking a shared library.
10725	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10726	  fi
10727
10728	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10729	fi
10730	;;
10731    esac
10732    ;;
10733  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10734    archive_cmds_need_lc_CXX=no
10735    ;;
10736  tandem*)
10737    case $cc_basename in
10738      NCC)
10739	# NonStop-UX NCC 3.20
10740	# FIXME: insert proper C++ library support
10741	ld_shlibs_CXX=no
10742	;;
10743      *)
10744	# FIXME: insert proper C++ library support
10745	ld_shlibs_CXX=no
10746	;;
10747    esac
10748    ;;
10749  vxworks*)
10750    # FIXME: insert proper C++ library support
10751    ld_shlibs_CXX=no
10752    ;;
10753  *)
10754    # FIXME: insert proper C++ library support
10755    ld_shlibs_CXX=no
10756    ;;
10757esac
10758echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10759echo "${ECHO_T}$ld_shlibs_CXX" >&6
10760test "$ld_shlibs_CXX" = no && can_build_shared=no
10761
10762GCC_CXX="$GXX"
10763LD_CXX="$LD"
10764
10765
10766cat > conftest.$ac_ext <<EOF
10767class Foo
10768{
10769public:
10770  Foo (void) { a = 0; }
10771private:
10772  int a;
10773};
10774EOF
10775
10776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777  (eval $ac_compile) 2>&5
10778  ac_status=$?
10779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780  (exit $ac_status); }; then
10781  # Parse the compiler output and extract the necessary
10782  # objects, libraries and library flags.
10783
10784  # Sentinel used to keep track of whether or not we are before
10785  # the conftest object file.
10786  pre_test_object_deps_done=no
10787
10788  # The `*' in the case matches for architectures that use `case' in
10789  # $output_verbose_cmd can trigger glob expansion during the loop
10790  # eval without this substitution.
10791  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10792
10793  for p in `eval $output_verbose_link_cmd`; do
10794    case $p in
10795
10796    -L* | -R* | -l*)
10797       # Some compilers place space between "-{L,R}" and the path.
10798       # Remove the space.
10799       if test $p = "-L" \
10800	  || test $p = "-R"; then
10801	 prev=$p
10802	 continue
10803       else
10804	 prev=
10805       fi
10806
10807       if test "$pre_test_object_deps_done" = no; then
10808	 case $p in
10809	 -L* | -R*)
10810	   # Internal compiler library paths should come after those
10811	   # provided the user.  The postdeps already come after the
10812	   # user supplied libs so there is no need to process them.
10813	   if test -z "$compiler_lib_search_path_CXX"; then
10814	     compiler_lib_search_path_CXX="${prev}${p}"
10815	   else
10816	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10817	   fi
10818	   ;;
10819	 # The "-l" case would never come before the object being
10820	 # linked, so don't bother handling this case.
10821	 esac
10822       else
10823	 if test -z "$postdeps_CXX"; then
10824	   postdeps_CXX="${prev}${p}"
10825	 else
10826	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10827	 fi
10828       fi
10829       ;;
10830
10831    *.$objext)
10832       # This assumes that the test object file only shows up
10833       # once in the compiler output.
10834       if test "$p" = "conftest.$objext"; then
10835	 pre_test_object_deps_done=yes
10836	 continue
10837       fi
10838
10839       if test "$pre_test_object_deps_done" = no; then
10840	 if test -z "$predep_objects_CXX"; then
10841	   predep_objects_CXX="$p"
10842	 else
10843	   predep_objects_CXX="$predep_objects_CXX $p"
10844	 fi
10845       else
10846	 if test -z "$postdep_objects_CXX"; then
10847	   postdep_objects_CXX="$p"
10848	 else
10849	   postdep_objects_CXX="$postdep_objects_CXX $p"
10850	 fi
10851       fi
10852       ;;
10853
10854    *) ;; # Ignore the rest.
10855
10856    esac
10857  done
10858
10859  # Clean up.
10860  rm -f a.out a.exe
10861else
10862  echo "libtool.m4: error: problem compiling CXX test program"
10863fi
10864
10865$rm -f confest.$objext
10866
10867case " $postdeps_CXX " in
10868*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10869esac
10870
10871lt_prog_compiler_wl_CXX=
10872lt_prog_compiler_pic_CXX=
10873lt_prog_compiler_static_CXX=
10874
10875echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10876echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10877
10878  # C++ specific cases for pic, static, wl, etc.
10879  if test "$GXX" = yes; then
10880    lt_prog_compiler_wl_CXX='-Wl,'
10881    lt_prog_compiler_static_CXX='-static'
10882
10883    case $host_os in
10884    aix*)
10885      # All AIX code is PIC.
10886      if test "$host_cpu" = ia64; then
10887	# AIX 5 now supports IA64 processor
10888	lt_prog_compiler_static_CXX='-Bstatic'
10889      fi
10890      ;;
10891    amigaos*)
10892      # FIXME: we need at least 68020 code to build shared libraries, but
10893      # adding the `-m68020' flag to GCC prevents building anything better,
10894      # like `-m68040'.
10895      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10896      ;;
10897    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10898      # PIC is the default for these OSes.
10899      ;;
10900    mingw* | os2* | pw32*)
10901      # This hack is so that the source file can tell whether it is being
10902      # built for inclusion in a dll (and should export symbols for example).
10903      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10904      ;;
10905    darwin* | rhapsody*)
10906      # PIC is the default on this platform
10907      # Common symbols not allowed in MH_DYLIB files
10908      lt_prog_compiler_pic_CXX='-fno-common'
10909      ;;
10910    *djgpp*)
10911      # DJGPP does not support shared libraries at all
10912      lt_prog_compiler_pic_CXX=
10913      ;;
10914    sysv4*MP*)
10915      if test -d /usr/nec; then
10916	lt_prog_compiler_pic_CXX=-Kconform_pic
10917      fi
10918      ;;
10919    hpux*)
10920      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10921      # not for PA HP-UX.
10922      case "$host_cpu" in
10923      hppa*64*|ia64*)
10924	;;
10925      *)
10926	lt_prog_compiler_pic_CXX='-fPIC'
10927	;;
10928      esac
10929      ;;
10930    *)
10931      lt_prog_compiler_pic_CXX='-fPIC'
10932      ;;
10933    esac
10934  else
10935    case $host_os in
10936      aix4* | aix5*)
10937	# All AIX code is PIC.
10938	if test "$host_cpu" = ia64; then
10939	  # AIX 5 now supports IA64 processor
10940	  lt_prog_compiler_static_CXX='-Bstatic'
10941	else
10942	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10943	fi
10944	;;
10945      chorus*)
10946	case $cc_basename in
10947	cxch68)
10948	  # Green Hills C++ Compiler
10949	  # _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"
10950	  ;;
10951	esac
10952	;;
10953       darwin*)
10954         # PIC is the default on this platform
10955         # Common symbols not allowed in MH_DYLIB files
10956         case "$cc_basename" in
10957           xlc*)
10958           lt_prog_compiler_pic_CXX='-qnocommon'
10959           lt_prog_compiler_wl_CXX='-Wl,'
10960           ;;
10961         esac
10962       ;;
10963      dgux*)
10964	case $cc_basename in
10965	  ec++)
10966	    lt_prog_compiler_pic_CXX='-KPIC'
10967	    ;;
10968	  ghcx)
10969	    # Green Hills C++ Compiler
10970	    lt_prog_compiler_pic_CXX='-pic'
10971	    ;;
10972	  *)
10973	    ;;
10974	esac
10975	;;
10976      freebsd* | kfreebsd*-gnu)
10977	# FreeBSD uses GNU C++
10978	;;
10979      hpux9* | hpux10* | hpux11*)
10980	case $cc_basename in
10981	  CC)
10982	    lt_prog_compiler_wl_CXX='-Wl,'
10983	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10984	    if test "$host_cpu" != ia64; then
10985	      lt_prog_compiler_pic_CXX='+Z'
10986	    fi
10987	    ;;
10988	  aCC)
10989	    lt_prog_compiler_wl_CXX='-Wl,'
10990	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10991	    case "$host_cpu" in
10992	    hppa*64*|ia64*)
10993	      # +Z the default
10994	      ;;
10995	    *)
10996	      lt_prog_compiler_pic_CXX='+Z'
10997	      ;;
10998	    esac
10999	    ;;
11000	  *)
11001	    ;;
11002	esac
11003	;;
11004      irix5* | irix6* | nonstopux*)
11005	case $cc_basename in
11006	  CC)
11007	    lt_prog_compiler_wl_CXX='-Wl,'
11008	    lt_prog_compiler_static_CXX='-non_shared'
11009	    # CC pic flag -KPIC is the default.
11010	    ;;
11011	  *)
11012	    ;;
11013	esac
11014	;;
11015      linux*)
11016	case $cc_basename in
11017	  KCC)
11018	    # KAI C++ Compiler
11019	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11020	    lt_prog_compiler_pic_CXX='-fPIC'
11021	    ;;
11022	  icpc)
11023	    # Intel C++
11024	    lt_prog_compiler_wl_CXX='-Wl,'
11025	    lt_prog_compiler_pic_CXX='-KPIC'
11026	    lt_prog_compiler_static_CXX='-static'
11027	    ;;
11028	  cxx)
11029	    # Compaq C++
11030	    # Make sure the PIC flag is empty.  It appears that all Alpha
11031	    # Linux and Compaq Tru64 Unix objects are PIC.
11032	    lt_prog_compiler_pic_CXX=
11033	    lt_prog_compiler_static_CXX='-non_shared'
11034	    ;;
11035	  *)
11036	    ;;
11037	esac
11038	;;
11039      lynxos*)
11040	;;
11041      m88k*)
11042	;;
11043      mvs*)
11044	case $cc_basename in
11045	  cxx)
11046	    lt_prog_compiler_pic_CXX='-W c,exportall'
11047	    ;;
11048	  *)
11049	    ;;
11050	esac
11051	;;
11052      netbsd*)
11053	;;
11054      osf3* | osf4* | osf5*)
11055	case $cc_basename in
11056	  KCC)
11057	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11058	    ;;
11059	  RCC)
11060	    # Rational C++ 2.4.1
11061	    lt_prog_compiler_pic_CXX='-pic'
11062	    ;;
11063	  cxx)
11064	    # Digital/Compaq C++
11065	    lt_prog_compiler_wl_CXX='-Wl,'
11066	    # Make sure the PIC flag is empty.  It appears that all Alpha
11067	    # Linux and Compaq Tru64 Unix objects are PIC.
11068	    lt_prog_compiler_pic_CXX=
11069	    lt_prog_compiler_static_CXX='-non_shared'
11070	    ;;
11071	  *)
11072	    ;;
11073	esac
11074	;;
11075      psos*)
11076	;;
11077      sco*)
11078	case $cc_basename in
11079	  CC)
11080	    lt_prog_compiler_pic_CXX='-fPIC'
11081	    ;;
11082	  *)
11083	    ;;
11084	esac
11085	;;
11086      solaris*)
11087	case $cc_basename in
11088	  CC)
11089	    # Sun C++ 4.2, 5.x and Centerline C++
11090	    lt_prog_compiler_pic_CXX='-KPIC'
11091	    lt_prog_compiler_static_CXX='-Bstatic'
11092	    lt_prog_compiler_wl_CXX='-Qoption ld '
11093	    ;;
11094	  gcx)
11095	    # Green Hills C++ Compiler
11096	    lt_prog_compiler_pic_CXX='-PIC'
11097	    ;;
11098	  *)
11099	    ;;
11100	esac
11101	;;
11102      sunos4*)
11103	case $cc_basename in
11104	  CC)
11105	    # Sun C++ 4.x
11106	    lt_prog_compiler_pic_CXX='-pic'
11107	    lt_prog_compiler_static_CXX='-Bstatic'
11108	    ;;
11109	  lcc)
11110	    # Lucid
11111	    lt_prog_compiler_pic_CXX='-pic'
11112	    ;;
11113	  *)
11114	    ;;
11115	esac
11116	;;
11117      tandem*)
11118	case $cc_basename in
11119	  NCC)
11120	    # NonStop-UX NCC 3.20
11121	    lt_prog_compiler_pic_CXX='-KPIC'
11122	    ;;
11123	  *)
11124	    ;;
11125	esac
11126	;;
11127      unixware*)
11128	;;
11129      vxworks*)
11130	;;
11131      *)
11132	lt_prog_compiler_can_build_shared_CXX=no
11133	;;
11134    esac
11135  fi
11136
11137echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11138echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11139
11140#
11141# Check to make sure the PIC flag actually works.
11142#
11143if test -n "$lt_prog_compiler_pic_CXX"; then
11144
11145echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11146echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11147if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11148  echo $ECHO_N "(cached) $ECHO_C" >&6
11149else
11150  lt_prog_compiler_pic_works_CXX=no
11151  ac_outfile=conftest.$ac_objext
11152   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11153   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11154   # Insert the option either (1) after the last *FLAGS variable, or
11155   # (2) before a word containing "conftest.", or (3) at the end.
11156   # Note that $ac_compile itself does not contain backslashes and begins
11157   # with a dollar sign (not a hyphen), so the echo should work correctly.
11158   # The option is referenced via a variable to avoid confusing sed.
11159   lt_compile=`echo "$ac_compile" | $SED \
11160   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11162   -e 's:$: $lt_compiler_flag:'`
11163   (eval echo "\"\$as_me:11163: $lt_compile\"" >&5)
11164   (eval "$lt_compile" 2>conftest.err)
11165   ac_status=$?
11166   cat conftest.err >&5
11167   echo "$as_me:11167: \$? = $ac_status" >&5
11168   if (exit $ac_status) && test -s "$ac_outfile"; then
11169     # The compiler can only warn and ignore the option if not recognized
11170     # So say no if there are warnings
11171     if test ! -s conftest.err; then
11172       lt_prog_compiler_pic_works_CXX=yes
11173     fi
11174   fi
11175   $rm conftest*
11176
11177fi
11178echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11179echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11180
11181if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11182    case $lt_prog_compiler_pic_CXX in
11183     "" | " "*) ;;
11184     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11185     esac
11186else
11187    lt_prog_compiler_pic_CXX=
11188     lt_prog_compiler_can_build_shared_CXX=no
11189fi
11190
11191fi
11192case "$host_os" in
11193  # For platforms which do not support PIC, -DPIC is meaningless:
11194  *djgpp*)
11195    lt_prog_compiler_pic_CXX=
11196    ;;
11197  *)
11198    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11199    ;;
11200esac
11201
11202echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11203echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11204if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11205  echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207  lt_cv_prog_compiler_c_o_CXX=no
11208   $rm -r conftest 2>/dev/null
11209   mkdir conftest
11210   cd conftest
11211   mkdir out
11212   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11213
11214   lt_compiler_flag="-o out/conftest2.$ac_objext"
11215   # Insert the option either (1) after the last *FLAGS variable, or
11216   # (2) before a word containing "conftest.", or (3) at the end.
11217   # Note that $ac_compile itself does not contain backslashes and begins
11218   # with a dollar sign (not a hyphen), so the echo should work correctly.
11219   lt_compile=`echo "$ac_compile" | $SED \
11220   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11221   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11222   -e 's:$: $lt_compiler_flag:'`
11223   (eval echo "\"\$as_me:11223: $lt_compile\"" >&5)
11224   (eval "$lt_compile" 2>out/conftest.err)
11225   ac_status=$?
11226   cat out/conftest.err >&5
11227   echo "$as_me:11227: \$? = $ac_status" >&5
11228   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11229   then
11230     # The compiler can only warn and ignore the option if not recognized
11231     # So say no if there are warnings
11232     if test ! -s out/conftest.err; then
11233       lt_cv_prog_compiler_c_o_CXX=yes
11234     fi
11235   fi
11236   chmod u+w .
11237   $rm conftest*
11238   # SGI C++ compiler will create directory out/ii_files/ for
11239   # template instantiation
11240   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11241   $rm out/* && rmdir out
11242   cd ..
11243   rmdir conftest
11244   $rm conftest*
11245
11246fi
11247echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11248echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11249
11250
11251hard_links="nottested"
11252if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11253  # do not overwrite the value of need_locks provided by the user
11254  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11255echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11256  hard_links=yes
11257  $rm conftest*
11258  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11259  touch conftest.a
11260  ln conftest.a conftest.b 2>&5 || hard_links=no
11261  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11262  echo "$as_me:$LINENO: result: $hard_links" >&5
11263echo "${ECHO_T}$hard_links" >&6
11264  if test "$hard_links" = no; then
11265    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11266echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11267    need_locks=warn
11268  fi
11269else
11270  need_locks=no
11271fi
11272
11273echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11274echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11275
11276  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11277  case $host_os in
11278  aix4* | aix5*)
11279    # If we're using GNU nm, then we don't want the "-C" option.
11280    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11281    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11282      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'
11283    else
11284      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'
11285    fi
11286    ;;
11287  pw32*)
11288    export_symbols_cmds_CXX="$ltdll_cmds"
11289  ;;
11290  cygwin* | mingw*)
11291    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11292  ;;
11293  *)
11294    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11295  ;;
11296  esac
11297
11298echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11299echo "${ECHO_T}$ld_shlibs_CXX" >&6
11300test "$ld_shlibs_CXX" = no && can_build_shared=no
11301
11302variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11303if test "$GCC" = yes; then
11304  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11305fi
11306
11307#
11308# Do we need to explicitly link libc?
11309#
11310case "x$archive_cmds_need_lc_CXX" in
11311x|xyes)
11312  # Assume -lc should be added
11313  archive_cmds_need_lc_CXX=yes
11314
11315  if test "$enable_shared" = yes && test "$GCC" = yes; then
11316    case $archive_cmds_CXX in
11317    *'~'*)
11318      # FIXME: we may have to deal with multi-command sequences.
11319      ;;
11320    '$CC '*)
11321      # Test whether the compiler implicitly links with -lc since on some
11322      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11323      # to ld, don't add -lc before -lgcc.
11324      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11325echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11326      $rm conftest*
11327      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11328
11329      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330  (eval $ac_compile) 2>&5
11331  ac_status=$?
11332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333  (exit $ac_status); } 2>conftest.err; then
11334        soname=conftest
11335        lib=conftest
11336        libobjs=conftest.$ac_objext
11337        deplibs=
11338        wl=$lt_prog_compiler_wl_CXX
11339        compiler_flags=-v
11340        linker_flags=-v
11341        verstring=
11342        output_objdir=.
11343        libname=conftest
11344        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11345        allow_undefined_flag_CXX=
11346        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11347  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11348  ac_status=$?
11349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350  (exit $ac_status); }
11351        then
11352	  archive_cmds_need_lc_CXX=no
11353        else
11354	  archive_cmds_need_lc_CXX=yes
11355        fi
11356        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11357      else
11358        cat conftest.err 1>&5
11359      fi
11360      $rm conftest*
11361      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11362echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11363      ;;
11364    esac
11365  fi
11366  ;;
11367esac
11368
11369echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11370echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11371library_names_spec=
11372libname_spec='lib$name'
11373soname_spec=
11374shrext_cmds=".so"
11375postinstall_cmds=
11376postuninstall_cmds=
11377finish_cmds=
11378finish_eval=
11379shlibpath_var=
11380shlibpath_overrides_runpath=unknown
11381version_type=none
11382dynamic_linker="$host_os ld.so"
11383sys_lib_dlsearch_path_spec="/lib /usr/lib"
11384if test "$GCC" = yes; then
11385  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11386  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11387    # if the path contains ";" then we assume it to be the separator
11388    # otherwise default to the standard path separator (i.e. ":") - it is
11389    # assumed that no part of a normal pathname contains ";" but that should
11390    # okay in the real world where ";" in dirpaths is itself problematic.
11391    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11392  else
11393    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11394  fi
11395else
11396  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11397fi
11398need_lib_prefix=unknown
11399hardcode_into_libs=no
11400
11401# when you set need_version to no, make sure it does not cause -set_version
11402# flags to be left without arguments
11403need_version=unknown
11404
11405case $host_os in
11406aix3*)
11407  version_type=linux
11408  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11409  shlibpath_var=LIBPATH
11410
11411  # AIX 3 has no versioning support, so we append a major version to the name.
11412  soname_spec='${libname}${release}${shared_ext}$major'
11413  ;;
11414
11415aix4* | aix5*)
11416  version_type=linux
11417  need_lib_prefix=no
11418  need_version=no
11419  hardcode_into_libs=yes
11420  if test "$host_cpu" = ia64; then
11421    # AIX 5 supports IA64
11422    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11423    shlibpath_var=LD_LIBRARY_PATH
11424  else
11425    # With GCC up to 2.95.x, collect2 would create an import file
11426    # for dependence libraries.  The import file would start with
11427    # the line `#! .'.  This would cause the generated library to
11428    # depend on `.', always an invalid library.  This was fixed in
11429    # development snapshots of GCC prior to 3.0.
11430    case $host_os in
11431      aix4 | aix4.[01] | aix4.[01].*)
11432      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11433	   echo ' yes '
11434	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11435	:
11436      else
11437	can_build_shared=no
11438      fi
11439      ;;
11440    esac
11441    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11442    # soname into executable. Probably we can add versioning support to
11443    # collect2, so additional links can be useful in future.
11444    if test "$aix_use_runtimelinking" = yes; then
11445      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11446      # instead of lib<name>.a to let people know that these are not
11447      # typical AIX shared libraries.
11448      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449    else
11450      # We preserve .a as extension for shared libraries through AIX4.2
11451      # and later when we are not doing run time linking.
11452      library_names_spec='${libname}${release}.a $libname.a'
11453      soname_spec='${libname}${release}${shared_ext}$major'
11454    fi
11455    shlibpath_var=LIBPATH
11456  fi
11457  ;;
11458
11459amigaos*)
11460  library_names_spec='$libname.ixlibrary $libname.a'
11461  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11462  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'
11463  ;;
11464
11465beos*)
11466  library_names_spec='${libname}${shared_ext}'
11467  dynamic_linker="$host_os ld.so"
11468  shlibpath_var=LIBRARY_PATH
11469  ;;
11470
11471bsdi[45]*)
11472  version_type=linux
11473  need_version=no
11474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11475  soname_spec='${libname}${release}${shared_ext}$major'
11476  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11477  shlibpath_var=LD_LIBRARY_PATH
11478  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11479  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11480  # the default ld.so.conf also contains /usr/contrib/lib and
11481  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11482  # libtool to hard-code these into programs
11483  ;;
11484
11485cygwin* | mingw* | pw32*)
11486  version_type=windows
11487  shrext_cmds=".dll"
11488  need_version=no
11489  need_lib_prefix=no
11490
11491  case $GCC,$host_os in
11492  yes,cygwin* | yes,mingw* | yes,pw32*)
11493    library_names_spec='$libname.dll.a'
11494    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11495    postinstall_cmds='base_file=`basename \${file}`~
11496      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11497      dldir=$destdir/`dirname \$dlpath`~
11498      test -d \$dldir || mkdir -p \$dldir~
11499      $install_prog $dir/$dlname \$dldir/$dlname'
11500    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11501      dlpath=$dir/\$dldll~
11502       $rm \$dlpath'
11503    shlibpath_overrides_runpath=yes
11504
11505    case $host_os in
11506    cygwin*)
11507      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11508      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11510      ;;
11511    mingw*)
11512      # MinGW DLLs use traditional 'lib' prefix
11513      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11514      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11515      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11516        # It is most probably a Windows format PATH printed by
11517        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11518        # path with ; separators, and with drive letters. We can handle the
11519        # drive letters (cygwin fileutils understands them), so leave them,
11520        # especially as we might pass files found there to a mingw objdump,
11521        # which wouldn't understand a cygwinified path. Ahh.
11522        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11523      else
11524        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11525      fi
11526      ;;
11527    pw32*)
11528      # pw32 DLLs use 'pw' prefix rather than 'lib'
11529      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11530      ;;
11531    esac
11532    ;;
11533
11534  *)
11535    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11536    ;;
11537  esac
11538  dynamic_linker='Win32 ld.exe'
11539  # FIXME: first we should search . and the directory the executable is in
11540  shlibpath_var=PATH
11541  ;;
11542
11543darwin* | rhapsody*)
11544  dynamic_linker="$host_os dyld"
11545  version_type=darwin
11546  need_lib_prefix=no
11547  need_version=no
11548  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11549  soname_spec='${libname}${release}${major}$shared_ext'
11550  shlibpath_overrides_runpath=yes
11551  shlibpath_var=DYLD_LIBRARY_PATH
11552  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11553  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11554  if test "$GCC" = yes; then
11555    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"`
11556  else
11557    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11558  fi
11559  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11560  ;;
11561
11562dgux*)
11563  version_type=linux
11564  need_lib_prefix=no
11565  need_version=no
11566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11567  soname_spec='${libname}${release}${shared_ext}$major'
11568  shlibpath_var=LD_LIBRARY_PATH
11569  ;;
11570
11571freebsd1*)
11572  dynamic_linker=no
11573  ;;
11574
11575kfreebsd*-gnu)
11576  version_type=linux
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11580  soname_spec='${libname}${release}${shared_ext}$major'
11581  shlibpath_var=LD_LIBRARY_PATH
11582  shlibpath_overrides_runpath=no
11583  hardcode_into_libs=yes
11584  dynamic_linker='GNU ld.so'
11585  ;;
11586
11587freebsd*)
11588  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11589  version_type=freebsd-$objformat
11590  case $version_type in
11591    freebsd-elf*)
11592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11593      need_version=no
11594      need_lib_prefix=no
11595      ;;
11596    freebsd-*)
11597      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11598      need_version=yes
11599      ;;
11600  esac
11601  shlibpath_var=LD_LIBRARY_PATH
11602  case $host_os in
11603  freebsd2*)
11604    shlibpath_overrides_runpath=yes
11605    ;;
11606  freebsd3.01* | freebsdelf3.01*)
11607    shlibpath_overrides_runpath=yes
11608    hardcode_into_libs=yes
11609    ;;
11610  *) # from 3.2 on
11611    shlibpath_overrides_runpath=no
11612    hardcode_into_libs=yes
11613    ;;
11614  esac
11615  ;;
11616
11617gnu*)
11618  version_type=linux
11619  need_lib_prefix=no
11620  need_version=no
11621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11622  soname_spec='${libname}${release}${shared_ext}$major'
11623  shlibpath_var=LD_LIBRARY_PATH
11624  hardcode_into_libs=yes
11625  ;;
11626
11627hpux9* | hpux10* | hpux11*)
11628  # Give a soname corresponding to the major version so that dld.sl refuses to
11629  # link against other versions.
11630  version_type=sunos
11631  need_lib_prefix=no
11632  need_version=no
11633  case "$host_cpu" in
11634  ia64*)
11635    shrext_cmds='.so'
11636    hardcode_into_libs=yes
11637    dynamic_linker="$host_os dld.so"
11638    shlibpath_var=LD_LIBRARY_PATH
11639    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11640    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641    soname_spec='${libname}${release}${shared_ext}$major'
11642    if test "X$HPUX_IA64_MODE" = X32; then
11643      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11644    else
11645      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11646    fi
11647    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11648    ;;
11649   hppa*64*)
11650     shrext_cmds='.sl'
11651     hardcode_into_libs=yes
11652     dynamic_linker="$host_os dld.sl"
11653     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11654     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656     soname_spec='${libname}${release}${shared_ext}$major'
11657     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11659     ;;
11660   *)
11661    shrext_cmds='.sl'
11662    dynamic_linker="$host_os dld.sl"
11663    shlibpath_var=SHLIB_PATH
11664    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666    soname_spec='${libname}${release}${shared_ext}$major'
11667    ;;
11668  esac
11669  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11670  postinstall_cmds='chmod 555 $lib'
11671  ;;
11672
11673irix5* | irix6* | nonstopux*)
11674  case $host_os in
11675    nonstopux*) version_type=nonstopux ;;
11676    *)
11677	if test "$lt_cv_prog_gnu_ld" = yes; then
11678		version_type=linux
11679	else
11680		version_type=irix
11681	fi ;;
11682  esac
11683  need_lib_prefix=no
11684  need_version=no
11685  soname_spec='${libname}${release}${shared_ext}$major'
11686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11687  case $host_os in
11688  irix5* | nonstopux*)
11689    libsuff= shlibsuff=
11690    ;;
11691  *)
11692    case $LD in # libtool.m4 will add one of these switches to LD
11693    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11694      libsuff= shlibsuff= libmagic=32-bit;;
11695    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11696      libsuff=32 shlibsuff=N32 libmagic=N32;;
11697    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11698      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11699    *) libsuff= shlibsuff= libmagic=never-match;;
11700    esac
11701    ;;
11702  esac
11703  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11704  shlibpath_overrides_runpath=no
11705  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11706  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11707  hardcode_into_libs=yes
11708  ;;
11709
11710# No shared lib support for Linux oldld, aout, or coff.
11711linux*oldld* | linux*aout* | linux*coff*)
11712  dynamic_linker=no
11713  ;;
11714
11715# This must be Linux ELF.
11716linux*)
11717  version_type=linux
11718  need_lib_prefix=no
11719  need_version=no
11720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721  soname_spec='${libname}${release}${shared_ext}$major'
11722  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11723  shlibpath_var=LD_LIBRARY_PATH
11724  shlibpath_overrides_runpath=no
11725  # This implies no fast_install, which is unacceptable.
11726  # Some rework will be needed to allow for fast_install
11727  # before this can be enabled.
11728  hardcode_into_libs=yes
11729
11730  # Append ld.so.conf contents to the search path
11731  if test -f /etc/ld.so.conf; then
11732    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11733    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11734  fi
11735
11736  # We used to test for /lib/ld.so.1 and disable shared libraries on
11737  # powerpc, because MkLinux only supported shared libraries with the
11738  # GNU dynamic linker.  Since this was broken with cross compilers,
11739  # most powerpc-linux boxes support dynamic linking these days and
11740  # people can always --disable-shared, the test was removed, and we
11741  # assume the GNU/Linux dynamic linker is in use.
11742  dynamic_linker='GNU/Linux ld.so'
11743  ;;
11744
11745knetbsd*-gnu)
11746  version_type=linux
11747  need_lib_prefix=no
11748  need_version=no
11749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11750  soname_spec='${libname}${release}${shared_ext}$major'
11751  shlibpath_var=LD_LIBRARY_PATH
11752  shlibpath_overrides_runpath=no
11753  hardcode_into_libs=yes
11754  dynamic_linker='GNU ld.so'
11755  ;;
11756
11757netbsd*)
11758  version_type=sunos
11759  need_lib_prefix=no
11760  need_version=no
11761  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11762    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11763    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11764    dynamic_linker='NetBSD (a.out) ld.so'
11765  else
11766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11767    soname_spec='${libname}${release}${shared_ext}$major'
11768    dynamic_linker='NetBSD ld.elf_so'
11769  fi
11770  shlibpath_var=LD_LIBRARY_PATH
11771  shlibpath_overrides_runpath=yes
11772  hardcode_into_libs=yes
11773  ;;
11774
11775newsos6)
11776  version_type=linux
11777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778  shlibpath_var=LD_LIBRARY_PATH
11779  shlibpath_overrides_runpath=yes
11780  ;;
11781
11782nto-qnx*)
11783  version_type=linux
11784  need_lib_prefix=no
11785  need_version=no
11786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787  soname_spec='${libname}${release}${shared_ext}$major'
11788  shlibpath_var=LD_LIBRARY_PATH
11789  shlibpath_overrides_runpath=yes
11790  ;;
11791
11792openbsd*)
11793  version_type=sunos
11794  need_lib_prefix=no
11795  need_version=no
11796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11797  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11798  shlibpath_var=LD_LIBRARY_PATH
11799  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11800    case $host_os in
11801      openbsd2.[89] | openbsd2.[89].*)
11802	shlibpath_overrides_runpath=no
11803	;;
11804      *)
11805	shlibpath_overrides_runpath=yes
11806	;;
11807      esac
11808  else
11809    shlibpath_overrides_runpath=yes
11810  fi
11811  ;;
11812
11813os2*)
11814  libname_spec='$name'
11815  shrext_cmds=".dll"
11816  need_lib_prefix=no
11817  library_names_spec='$libname${shared_ext} $libname.a'
11818  dynamic_linker='OS/2 ld.exe'
11819  shlibpath_var=LIBPATH
11820  ;;
11821
11822osf3* | osf4* | osf5*)
11823  version_type=osf
11824  need_lib_prefix=no
11825  need_version=no
11826  soname_spec='${libname}${release}${shared_ext}$major'
11827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828  shlibpath_var=LD_LIBRARY_PATH
11829  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11830  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11831  ;;
11832
11833sco3.2v5*)
11834  version_type=osf
11835  soname_spec='${libname}${release}${shared_ext}$major'
11836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837  shlibpath_var=LD_LIBRARY_PATH
11838  ;;
11839
11840solaris*)
11841  version_type=linux
11842  need_lib_prefix=no
11843  need_version=no
11844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845  soname_spec='${libname}${release}${shared_ext}$major'
11846  shlibpath_var=LD_LIBRARY_PATH
11847  shlibpath_overrides_runpath=yes
11848  hardcode_into_libs=yes
11849  # ldd complains unless libraries are executable
11850  postinstall_cmds='chmod +x $lib'
11851  ;;
11852
11853sunos4*)
11854  version_type=sunos
11855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11856  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11857  shlibpath_var=LD_LIBRARY_PATH
11858  shlibpath_overrides_runpath=yes
11859  if test "$with_gnu_ld" = yes; then
11860    need_lib_prefix=no
11861  fi
11862  need_version=yes
11863  ;;
11864
11865sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11866  version_type=linux
11867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868  soname_spec='${libname}${release}${shared_ext}$major'
11869  shlibpath_var=LD_LIBRARY_PATH
11870  case $host_vendor in
11871    sni)
11872      shlibpath_overrides_runpath=no
11873      need_lib_prefix=no
11874      export_dynamic_flag_spec='${wl}-Blargedynsym'
11875      runpath_var=LD_RUN_PATH
11876      ;;
11877    siemens)
11878      need_lib_prefix=no
11879      ;;
11880    motorola)
11881      need_lib_prefix=no
11882      need_version=no
11883      shlibpath_overrides_runpath=no
11884      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11885      ;;
11886  esac
11887  ;;
11888
11889sysv4*MP*)
11890  if test -d /usr/nec ;then
11891    version_type=linux
11892    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11893    soname_spec='$libname${shared_ext}.$major'
11894    shlibpath_var=LD_LIBRARY_PATH
11895  fi
11896  ;;
11897
11898uts4*)
11899  version_type=linux
11900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901  soname_spec='${libname}${release}${shared_ext}$major'
11902  shlibpath_var=LD_LIBRARY_PATH
11903  ;;
11904
11905*)
11906  dynamic_linker=no
11907  ;;
11908esac
11909echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11910echo "${ECHO_T}$dynamic_linker" >&6
11911test "$dynamic_linker" = no && can_build_shared=no
11912
11913echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11914echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11915hardcode_action_CXX=
11916if test -n "$hardcode_libdir_flag_spec_CXX" || \
11917   test -n "$runpath_var_CXX" || \
11918   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11919
11920  # We can hardcode non-existant directories.
11921  if test "$hardcode_direct_CXX" != no &&
11922     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11923     # have to relink, otherwise we might link with an installed library
11924     # when we should be linking with a yet-to-be-installed one
11925     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11926     test "$hardcode_minus_L_CXX" != no; then
11927    # Linking always hardcodes the temporary library directory.
11928    hardcode_action_CXX=relink
11929  else
11930    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11931    hardcode_action_CXX=immediate
11932  fi
11933else
11934  # We cannot hardcode anything, or else we can only hardcode existing
11935  # directories.
11936  hardcode_action_CXX=unsupported
11937fi
11938echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11939echo "${ECHO_T}$hardcode_action_CXX" >&6
11940
11941if test "$hardcode_action_CXX" = relink; then
11942  # Fast installation is not supported
11943  enable_fast_install=no
11944elif test "$shlibpath_overrides_runpath" = yes ||
11945     test "$enable_shared" = no; then
11946  # Fast installation is not necessary
11947  enable_fast_install=needless
11948fi
11949
11950striplib=
11951old_striplib=
11952echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11953echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11954if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11955  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11956  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11957  echo "$as_me:$LINENO: result: yes" >&5
11958echo "${ECHO_T}yes" >&6
11959else
11960# FIXME - insert some real tests, host_os isn't really good enough
11961  case $host_os in
11962   darwin*)
11963       if test -n "$STRIP" ; then
11964         striplib="$STRIP -x"
11965         echo "$as_me:$LINENO: result: yes" >&5
11966echo "${ECHO_T}yes" >&6
11967       else
11968  echo "$as_me:$LINENO: result: no" >&5
11969echo "${ECHO_T}no" >&6
11970fi
11971       ;;
11972   *)
11973  echo "$as_me:$LINENO: result: no" >&5
11974echo "${ECHO_T}no" >&6
11975    ;;
11976  esac
11977fi
11978
11979if test "x$enable_dlopen" != xyes; then
11980  enable_dlopen=unknown
11981  enable_dlopen_self=unknown
11982  enable_dlopen_self_static=unknown
11983else
11984  lt_cv_dlopen=no
11985  lt_cv_dlopen_libs=
11986
11987  case $host_os in
11988  beos*)
11989    lt_cv_dlopen="load_add_on"
11990    lt_cv_dlopen_libs=
11991    lt_cv_dlopen_self=yes
11992    ;;
11993
11994  mingw* | pw32*)
11995    lt_cv_dlopen="LoadLibrary"
11996    lt_cv_dlopen_libs=
11997   ;;
11998
11999  cygwin*)
12000    lt_cv_dlopen="dlopen"
12001    lt_cv_dlopen_libs=
12002   ;;
12003
12004  darwin*)
12005  # if libdl is installed we need to link against it
12006    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12007echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12008if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12009  echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
12011  ac_check_lib_save_LIBS=$LIBS
12012LIBS="-ldl  $LIBS"
12013cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h.  */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h.  */
12019
12020/* Override any gcc2 internal prototype to avoid an error.  */
12021#ifdef __cplusplus
12022extern "C"
12023#endif
12024/* We use char because int might match the return type of a gcc2
12025   builtin and then its argument prototype would still apply.  */
12026char dlopen ();
12027int
12028main ()
12029{
12030dlopen ();
12031  ;
12032  return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext conftest$ac_exeext
12036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037  (eval $ac_link) 2>conftest.er1
12038  ac_status=$?
12039  grep -v '^ *+' conftest.er1 >conftest.err
12040  rm -f conftest.er1
12041  cat conftest.err >&5
12042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043  (exit $ac_status); } &&
12044	 { ac_try='test -z "$ac_cxx_werror_flag"
12045			 || test ! -s conftest.err'
12046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047  (eval $ac_try) 2>&5
12048  ac_status=$?
12049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050  (exit $ac_status); }; } &&
12051	 { ac_try='test -s conftest$ac_exeext'
12052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053  (eval $ac_try) 2>&5
12054  ac_status=$?
12055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056  (exit $ac_status); }; }; then
12057  ac_cv_lib_dl_dlopen=yes
12058else
12059  echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062ac_cv_lib_dl_dlopen=no
12063fi
12064rm -f conftest.err conftest.$ac_objext \
12065      conftest$ac_exeext conftest.$ac_ext
12066LIBS=$ac_check_lib_save_LIBS
12067fi
12068echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12069echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12070if test $ac_cv_lib_dl_dlopen = yes; then
12071  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12072else
12073
12074    lt_cv_dlopen="dyld"
12075    lt_cv_dlopen_libs=
12076    lt_cv_dlopen_self=yes
12077
12078fi
12079
12080   ;;
12081
12082  *)
12083    echo "$as_me:$LINENO: checking for shl_load" >&5
12084echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12085if test "${ac_cv_func_shl_load+set}" = set; then
12086  echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088  cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h.  */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h.  */
12094/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12095   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12096#define shl_load innocuous_shl_load
12097
12098/* System header to define __stub macros and hopefully few prototypes,
12099    which can conflict with char shl_load (); below.
12100    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101    <limits.h> exists even on freestanding compilers.  */
12102
12103#ifdef __STDC__
12104# include <limits.h>
12105#else
12106# include <assert.h>
12107#endif
12108
12109#undef shl_load
12110
12111/* Override any gcc2 internal prototype to avoid an error.  */
12112#ifdef __cplusplus
12113extern "C"
12114{
12115#endif
12116/* We use char because int might match the return type of a gcc2
12117   builtin and then its argument prototype would still apply.  */
12118char shl_load ();
12119/* The GNU C library defines this for functions which it implements
12120    to always fail with ENOSYS.  Some functions are actually named
12121    something starting with __ and the normal name is an alias.  */
12122#if defined (__stub_shl_load) || defined (__stub___shl_load)
12123choke me
12124#else
12125char (*f) () = shl_load;
12126#endif
12127#ifdef __cplusplus
12128}
12129#endif
12130
12131int
12132main ()
12133{
12134return f != shl_load;
12135  ;
12136  return 0;
12137}
12138_ACEOF
12139rm -f conftest.$ac_objext conftest$ac_exeext
12140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12141  (eval $ac_link) 2>conftest.er1
12142  ac_status=$?
12143  grep -v '^ *+' conftest.er1 >conftest.err
12144  rm -f conftest.er1
12145  cat conftest.err >&5
12146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147  (exit $ac_status); } &&
12148	 { ac_try='test -z "$ac_cxx_werror_flag"
12149			 || test ! -s conftest.err'
12150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151  (eval $ac_try) 2>&5
12152  ac_status=$?
12153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154  (exit $ac_status); }; } &&
12155	 { ac_try='test -s conftest$ac_exeext'
12156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157  (eval $ac_try) 2>&5
12158  ac_status=$?
12159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160  (exit $ac_status); }; }; then
12161  ac_cv_func_shl_load=yes
12162else
12163  echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166ac_cv_func_shl_load=no
12167fi
12168rm -f conftest.err conftest.$ac_objext \
12169      conftest$ac_exeext conftest.$ac_ext
12170fi
12171echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12172echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12173if test $ac_cv_func_shl_load = yes; then
12174  lt_cv_dlopen="shl_load"
12175else
12176  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12177echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12178if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12179  echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181  ac_check_lib_save_LIBS=$LIBS
12182LIBS="-ldld  $LIBS"
12183cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h.  */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h.  */
12189
12190/* Override any gcc2 internal prototype to avoid an error.  */
12191#ifdef __cplusplus
12192extern "C"
12193#endif
12194/* We use char because int might match the return type of a gcc2
12195   builtin and then its argument prototype would still apply.  */
12196char shl_load ();
12197int
12198main ()
12199{
12200shl_load ();
12201  ;
12202  return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207  (eval $ac_link) 2>conftest.er1
12208  ac_status=$?
12209  grep -v '^ *+' conftest.er1 >conftest.err
12210  rm -f conftest.er1
12211  cat conftest.err >&5
12212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213  (exit $ac_status); } &&
12214	 { ac_try='test -z "$ac_cxx_werror_flag"
12215			 || test ! -s conftest.err'
12216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217  (eval $ac_try) 2>&5
12218  ac_status=$?
12219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220  (exit $ac_status); }; } &&
12221	 { ac_try='test -s conftest$ac_exeext'
12222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223  (eval $ac_try) 2>&5
12224  ac_status=$?
12225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226  (exit $ac_status); }; }; then
12227  ac_cv_lib_dld_shl_load=yes
12228else
12229  echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232ac_cv_lib_dld_shl_load=no
12233fi
12234rm -f conftest.err conftest.$ac_objext \
12235      conftest$ac_exeext conftest.$ac_ext
12236LIBS=$ac_check_lib_save_LIBS
12237fi
12238echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12239echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12240if test $ac_cv_lib_dld_shl_load = yes; then
12241  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12242else
12243  echo "$as_me:$LINENO: checking for dlopen" >&5
12244echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12245if test "${ac_cv_func_dlopen+set}" = set; then
12246  echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
12248  cat >conftest.$ac_ext <<_ACEOF
12249/* confdefs.h.  */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h.  */
12254/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12255   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12256#define dlopen innocuous_dlopen
12257
12258/* System header to define __stub macros and hopefully few prototypes,
12259    which can conflict with char dlopen (); below.
12260    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261    <limits.h> exists even on freestanding compilers.  */
12262
12263#ifdef __STDC__
12264# include <limits.h>
12265#else
12266# include <assert.h>
12267#endif
12268
12269#undef dlopen
12270
12271/* Override any gcc2 internal prototype to avoid an error.  */
12272#ifdef __cplusplus
12273extern "C"
12274{
12275#endif
12276/* We use char because int might match the return type of a gcc2
12277   builtin and then its argument prototype would still apply.  */
12278char dlopen ();
12279/* The GNU C library defines this for functions which it implements
12280    to always fail with ENOSYS.  Some functions are actually named
12281    something starting with __ and the normal name is an alias.  */
12282#if defined (__stub_dlopen) || defined (__stub___dlopen)
12283choke me
12284#else
12285char (*f) () = dlopen;
12286#endif
12287#ifdef __cplusplus
12288}
12289#endif
12290
12291int
12292main ()
12293{
12294return f != dlopen;
12295  ;
12296  return 0;
12297}
12298_ACEOF
12299rm -f conftest.$ac_objext conftest$ac_exeext
12300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301  (eval $ac_link) 2>conftest.er1
12302  ac_status=$?
12303  grep -v '^ *+' conftest.er1 >conftest.err
12304  rm -f conftest.er1
12305  cat conftest.err >&5
12306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307  (exit $ac_status); } &&
12308	 { ac_try='test -z "$ac_cxx_werror_flag"
12309			 || test ! -s conftest.err'
12310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311  (eval $ac_try) 2>&5
12312  ac_status=$?
12313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314  (exit $ac_status); }; } &&
12315	 { ac_try='test -s conftest$ac_exeext'
12316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317  (eval $ac_try) 2>&5
12318  ac_status=$?
12319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320  (exit $ac_status); }; }; then
12321  ac_cv_func_dlopen=yes
12322else
12323  echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326ac_cv_func_dlopen=no
12327fi
12328rm -f conftest.err conftest.$ac_objext \
12329      conftest$ac_exeext conftest.$ac_ext
12330fi
12331echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12332echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12333if test $ac_cv_func_dlopen = yes; then
12334  lt_cv_dlopen="dlopen"
12335else
12336  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12337echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12338if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12339  echo $ECHO_N "(cached) $ECHO_C" >&6
12340else
12341  ac_check_lib_save_LIBS=$LIBS
12342LIBS="-ldl  $LIBS"
12343cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h.  */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h.  */
12349
12350/* Override any gcc2 internal prototype to avoid an error.  */
12351#ifdef __cplusplus
12352extern "C"
12353#endif
12354/* We use char because int might match the return type of a gcc2
12355   builtin and then its argument prototype would still apply.  */
12356char dlopen ();
12357int
12358main ()
12359{
12360dlopen ();
12361  ;
12362  return 0;
12363}
12364_ACEOF
12365rm -f conftest.$ac_objext conftest$ac_exeext
12366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367  (eval $ac_link) 2>conftest.er1
12368  ac_status=$?
12369  grep -v '^ *+' conftest.er1 >conftest.err
12370  rm -f conftest.er1
12371  cat conftest.err >&5
12372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373  (exit $ac_status); } &&
12374	 { ac_try='test -z "$ac_cxx_werror_flag"
12375			 || test ! -s conftest.err'
12376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377  (eval $ac_try) 2>&5
12378  ac_status=$?
12379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380  (exit $ac_status); }; } &&
12381	 { ac_try='test -s conftest$ac_exeext'
12382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383  (eval $ac_try) 2>&5
12384  ac_status=$?
12385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386  (exit $ac_status); }; }; then
12387  ac_cv_lib_dl_dlopen=yes
12388else
12389  echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392ac_cv_lib_dl_dlopen=no
12393fi
12394rm -f conftest.err conftest.$ac_objext \
12395      conftest$ac_exeext conftest.$ac_ext
12396LIBS=$ac_check_lib_save_LIBS
12397fi
12398echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12399echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12400if test $ac_cv_lib_dl_dlopen = yes; then
12401  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12402else
12403  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12404echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12405if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12406  echo $ECHO_N "(cached) $ECHO_C" >&6
12407else
12408  ac_check_lib_save_LIBS=$LIBS
12409LIBS="-lsvld  $LIBS"
12410cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h.  */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h.  */
12416
12417/* Override any gcc2 internal prototype to avoid an error.  */
12418#ifdef __cplusplus
12419extern "C"
12420#endif
12421/* We use char because int might match the return type of a gcc2
12422   builtin and then its argument prototype would still apply.  */
12423char dlopen ();
12424int
12425main ()
12426{
12427dlopen ();
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext conftest$ac_exeext
12433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434  (eval $ac_link) 2>conftest.er1
12435  ac_status=$?
12436  grep -v '^ *+' conftest.er1 >conftest.err
12437  rm -f conftest.er1
12438  cat conftest.err >&5
12439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440  (exit $ac_status); } &&
12441	 { ac_try='test -z "$ac_cxx_werror_flag"
12442			 || test ! -s conftest.err'
12443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444  (eval $ac_try) 2>&5
12445  ac_status=$?
12446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447  (exit $ac_status); }; } &&
12448	 { ac_try='test -s conftest$ac_exeext'
12449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450  (eval $ac_try) 2>&5
12451  ac_status=$?
12452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453  (exit $ac_status); }; }; then
12454  ac_cv_lib_svld_dlopen=yes
12455else
12456  echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459ac_cv_lib_svld_dlopen=no
12460fi
12461rm -f conftest.err conftest.$ac_objext \
12462      conftest$ac_exeext conftest.$ac_ext
12463LIBS=$ac_check_lib_save_LIBS
12464fi
12465echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12466echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12467if test $ac_cv_lib_svld_dlopen = yes; then
12468  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12469else
12470  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12471echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12472if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12473  echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475  ac_check_lib_save_LIBS=$LIBS
12476LIBS="-ldld  $LIBS"
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h.  */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h.  */
12483
12484/* Override any gcc2 internal prototype to avoid an error.  */
12485#ifdef __cplusplus
12486extern "C"
12487#endif
12488/* We use char because int might match the return type of a gcc2
12489   builtin and then its argument prototype would still apply.  */
12490char dld_link ();
12491int
12492main ()
12493{
12494dld_link ();
12495  ;
12496  return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext conftest$ac_exeext
12500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12501  (eval $ac_link) 2>conftest.er1
12502  ac_status=$?
12503  grep -v '^ *+' conftest.er1 >conftest.err
12504  rm -f conftest.er1
12505  cat conftest.err >&5
12506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507  (exit $ac_status); } &&
12508	 { ac_try='test -z "$ac_cxx_werror_flag"
12509			 || 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_lib_dld_dld_link=yes
12522else
12523  echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526ac_cv_lib_dld_dld_link=no
12527fi
12528rm -f conftest.err conftest.$ac_objext \
12529      conftest$ac_exeext conftest.$ac_ext
12530LIBS=$ac_check_lib_save_LIBS
12531fi
12532echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12533echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12534if test $ac_cv_lib_dld_dld_link = yes; then
12535  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12536fi
12537
12538
12539fi
12540
12541
12542fi
12543
12544
12545fi
12546
12547
12548fi
12549
12550
12551fi
12552
12553    ;;
12554  esac
12555
12556  if test "x$lt_cv_dlopen" != xno; then
12557    enable_dlopen=yes
12558  else
12559    enable_dlopen=no
12560  fi
12561
12562  case $lt_cv_dlopen in
12563  dlopen)
12564    save_CPPFLAGS="$CPPFLAGS"
12565    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12566
12567    save_LDFLAGS="$LDFLAGS"
12568    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12569
12570    save_LIBS="$LIBS"
12571    LIBS="$lt_cv_dlopen_libs $LIBS"
12572
12573    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12574echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12575if test "${lt_cv_dlopen_self+set}" = set; then
12576  echo $ECHO_N "(cached) $ECHO_C" >&6
12577else
12578  	  if test "$cross_compiling" = yes; then :
12579  lt_cv_dlopen_self=cross
12580else
12581  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12582  lt_status=$lt_dlunknown
12583  cat > conftest.$ac_ext <<EOF
12584#line 12584 "configure"
12585#include "confdefs.h"
12586
12587#if HAVE_DLFCN_H
12588#include <dlfcn.h>
12589#endif
12590
12591#include <stdio.h>
12592
12593#ifdef RTLD_GLOBAL
12594#  define LT_DLGLOBAL		RTLD_GLOBAL
12595#else
12596#  ifdef DL_GLOBAL
12597#    define LT_DLGLOBAL		DL_GLOBAL
12598#  else
12599#    define LT_DLGLOBAL		0
12600#  endif
12601#endif
12602
12603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12604   find out it does not work in some platform. */
12605#ifndef LT_DLLAZY_OR_NOW
12606#  ifdef RTLD_LAZY
12607#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12608#  else
12609#    ifdef DL_LAZY
12610#      define LT_DLLAZY_OR_NOW		DL_LAZY
12611#    else
12612#      ifdef RTLD_NOW
12613#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12614#      else
12615#        ifdef DL_NOW
12616#          define LT_DLLAZY_OR_NOW	DL_NOW
12617#        else
12618#          define LT_DLLAZY_OR_NOW	0
12619#        endif
12620#      endif
12621#    endif
12622#  endif
12623#endif
12624
12625#ifdef __cplusplus
12626extern "C" void exit (int);
12627#endif
12628
12629void fnord() { int i=42;}
12630int main ()
12631{
12632  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12633  int status = $lt_dlunknown;
12634
12635  if (self)
12636    {
12637      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12638      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12639      /* dlclose (self); */
12640    }
12641
12642    exit (status);
12643}
12644EOF
12645  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646  (eval $ac_link) 2>&5
12647  ac_status=$?
12648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12650    (./conftest; exit; ) 2>/dev/null
12651    lt_status=$?
12652    case x$lt_status in
12653      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12654      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12655      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12656    esac
12657  else :
12658    # compilation failed
12659    lt_cv_dlopen_self=no
12660  fi
12661fi
12662rm -fr conftest*
12663
12664
12665fi
12666echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12667echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12668
12669    if test "x$lt_cv_dlopen_self" = xyes; then
12670      LDFLAGS="$LDFLAGS $link_static_flag"
12671      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12672echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12673if test "${lt_cv_dlopen_self_static+set}" = set; then
12674  echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676  	  if test "$cross_compiling" = yes; then :
12677  lt_cv_dlopen_self_static=cross
12678else
12679  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12680  lt_status=$lt_dlunknown
12681  cat > conftest.$ac_ext <<EOF
12682#line 12682 "configure"
12683#include "confdefs.h"
12684
12685#if HAVE_DLFCN_H
12686#include <dlfcn.h>
12687#endif
12688
12689#include <stdio.h>
12690
12691#ifdef RTLD_GLOBAL
12692#  define LT_DLGLOBAL		RTLD_GLOBAL
12693#else
12694#  ifdef DL_GLOBAL
12695#    define LT_DLGLOBAL		DL_GLOBAL
12696#  else
12697#    define LT_DLGLOBAL		0
12698#  endif
12699#endif
12700
12701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12702   find out it does not work in some platform. */
12703#ifndef LT_DLLAZY_OR_NOW
12704#  ifdef RTLD_LAZY
12705#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12706#  else
12707#    ifdef DL_LAZY
12708#      define LT_DLLAZY_OR_NOW		DL_LAZY
12709#    else
12710#      ifdef RTLD_NOW
12711#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12712#      else
12713#        ifdef DL_NOW
12714#          define LT_DLLAZY_OR_NOW	DL_NOW
12715#        else
12716#          define LT_DLLAZY_OR_NOW	0
12717#        endif
12718#      endif
12719#    endif
12720#  endif
12721#endif
12722
12723#ifdef __cplusplus
12724extern "C" void exit (int);
12725#endif
12726
12727void fnord() { int i=42;}
12728int main ()
12729{
12730  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12731  int status = $lt_dlunknown;
12732
12733  if (self)
12734    {
12735      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12736      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12737      /* dlclose (self); */
12738    }
12739
12740    exit (status);
12741}
12742EOF
12743  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12744  (eval $ac_link) 2>&5
12745  ac_status=$?
12746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12748    (./conftest; exit; ) 2>/dev/null
12749    lt_status=$?
12750    case x$lt_status in
12751      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12752      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12753      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12754    esac
12755  else :
12756    # compilation failed
12757    lt_cv_dlopen_self_static=no
12758  fi
12759fi
12760rm -fr conftest*
12761
12762
12763fi
12764echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12765echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12766    fi
12767
12768    CPPFLAGS="$save_CPPFLAGS"
12769    LDFLAGS="$save_LDFLAGS"
12770    LIBS="$save_LIBS"
12771    ;;
12772  esac
12773
12774  case $lt_cv_dlopen_self in
12775  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12776  *) enable_dlopen_self=unknown ;;
12777  esac
12778
12779  case $lt_cv_dlopen_self_static in
12780  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12781  *) enable_dlopen_self_static=unknown ;;
12782  esac
12783fi
12784
12785
12786# The else clause should only fire when bootstrapping the
12787# libtool distribution, otherwise you forgot to ship ltmain.sh
12788# with your package, and you will get complaints that there are
12789# no rules to generate ltmain.sh.
12790if test -f "$ltmain"; then
12791  # See if we are running on zsh, and set the options which allow our commands through
12792  # without removal of \ escapes.
12793  if test -n "${ZSH_VERSION+set}" ; then
12794    setopt NO_GLOB_SUBST
12795  fi
12796  # Now quote all the things that may contain metacharacters while being
12797  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12798  # variables and quote the copies for generation of the libtool script.
12799  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12800    SED SHELL STRIP \
12801    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12802    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12803    deplibs_check_method reload_flag reload_cmds need_locks \
12804    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12805    lt_cv_sys_global_symbol_to_c_name_address \
12806    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12807    old_postinstall_cmds old_postuninstall_cmds \
12808    compiler_CXX \
12809    CC_CXX \
12810    LD_CXX \
12811    lt_prog_compiler_wl_CXX \
12812    lt_prog_compiler_pic_CXX \
12813    lt_prog_compiler_static_CXX \
12814    lt_prog_compiler_no_builtin_flag_CXX \
12815    export_dynamic_flag_spec_CXX \
12816    thread_safe_flag_spec_CXX \
12817    whole_archive_flag_spec_CXX \
12818    enable_shared_with_static_runtimes_CXX \
12819    old_archive_cmds_CXX \
12820    old_archive_from_new_cmds_CXX \
12821    predep_objects_CXX \
12822    postdep_objects_CXX \
12823    predeps_CXX \
12824    postdeps_CXX \
12825    compiler_lib_search_path_CXX \
12826    archive_cmds_CXX \
12827    archive_expsym_cmds_CXX \
12828    postinstall_cmds_CXX \
12829    postuninstall_cmds_CXX \
12830    old_archive_from_expsyms_cmds_CXX \
12831    allow_undefined_flag_CXX \
12832    no_undefined_flag_CXX \
12833    export_symbols_cmds_CXX \
12834    hardcode_libdir_flag_spec_CXX \
12835    hardcode_libdir_flag_spec_ld_CXX \
12836    hardcode_libdir_separator_CXX \
12837    hardcode_automatic_CXX \
12838    module_cmds_CXX \
12839    module_expsym_cmds_CXX \
12840    lt_cv_prog_compiler_c_o_CXX \
12841    exclude_expsyms_CXX \
12842    include_expsyms_CXX; do
12843
12844    case $var in
12845    old_archive_cmds_CXX | \
12846    old_archive_from_new_cmds_CXX | \
12847    archive_cmds_CXX | \
12848    archive_expsym_cmds_CXX | \
12849    module_cmds_CXX | \
12850    module_expsym_cmds_CXX | \
12851    old_archive_from_expsyms_cmds_CXX | \
12852    export_symbols_cmds_CXX | \
12853    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12854    postinstall_cmds | postuninstall_cmds | \
12855    old_postinstall_cmds | old_postuninstall_cmds | \
12856    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12857      # Double-quote double-evaled strings.
12858      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12859      ;;
12860    *)
12861      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12862      ;;
12863    esac
12864  done
12865
12866  case $lt_echo in
12867  *'\$0 --fallback-echo"')
12868    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12869    ;;
12870  esac
12871
12872cfgfile="$ofile"
12873
12874  cat <<__EOF__ >> "$cfgfile"
12875# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12876
12877# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12878
12879# Shell to use when invoking shell scripts.
12880SHELL=$lt_SHELL
12881
12882# Whether or not to build shared libraries.
12883build_libtool_libs=$enable_shared
12884
12885# Whether or not to build static libraries.
12886build_old_libs=$enable_static
12887
12888# Whether or not to add -lc for building shared libraries.
12889build_libtool_need_lc=$archive_cmds_need_lc_CXX
12890
12891# Whether or not to disallow shared libs when runtime libs are static
12892allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12893
12894# Whether or not to optimize for fast installation.
12895fast_install=$enable_fast_install
12896
12897# The host system.
12898host_alias=$host_alias
12899host=$host
12900
12901# An echo program that does not interpret backslashes.
12902echo=$lt_echo
12903
12904# The archiver.
12905AR=$lt_AR
12906AR_FLAGS=$lt_AR_FLAGS
12907
12908# A C compiler.
12909LTCC=$lt_LTCC
12910
12911# A language-specific compiler.
12912CC=$lt_compiler_CXX
12913
12914# Is the compiler the GNU C compiler?
12915with_gcc=$GCC_CXX
12916
12917# An ERE matcher.
12918EGREP=$lt_EGREP
12919
12920# The linker used to build libraries.
12921LD=$lt_LD_CXX
12922
12923# Whether we need hard or soft links.
12924LN_S=$lt_LN_S
12925
12926# A BSD-compatible nm program.
12927NM=$lt_NM
12928
12929# A symbol stripping program
12930STRIP=$lt_STRIP
12931
12932# Used to examine libraries when file_magic_cmd begins "file"
12933MAGIC_CMD=$MAGIC_CMD
12934
12935# Used on cygwin: DLL creation program.
12936DLLTOOL="$DLLTOOL"
12937
12938# Used on cygwin: object dumper.
12939OBJDUMP="$OBJDUMP"
12940
12941# Used on cygwin: assembler.
12942AS="$AS"
12943
12944# The name of the directory that contains temporary libtool files.
12945objdir=$objdir
12946
12947# How to create reloadable object files.
12948reload_flag=$lt_reload_flag
12949reload_cmds=$lt_reload_cmds
12950
12951# How to pass a linker flag through the compiler.
12952wl=$lt_lt_prog_compiler_wl_CXX
12953
12954# Object file suffix (normally "o").
12955objext="$ac_objext"
12956
12957# Old archive suffix (normally "a").
12958libext="$libext"
12959
12960# Shared library suffix (normally ".so").
12961shrext_cmds='$shrext_cmds'
12962
12963# Executable file suffix (normally "").
12964exeext="$exeext"
12965
12966# Additional compiler flags for building library objects.
12967pic_flag=$lt_lt_prog_compiler_pic_CXX
12968pic_mode=$pic_mode
12969
12970# What is the maximum length of a command?
12971max_cmd_len=$lt_cv_sys_max_cmd_len
12972
12973# Does compiler simultaneously support -c and -o options?
12974compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12975
12976# Must we lock files when doing compilation ?
12977need_locks=$lt_need_locks
12978
12979# Do we need the lib prefix for modules?
12980need_lib_prefix=$need_lib_prefix
12981
12982# Do we need a version for libraries?
12983need_version=$need_version
12984
12985# Whether dlopen is supported.
12986dlopen_support=$enable_dlopen
12987
12988# Whether dlopen of programs is supported.
12989dlopen_self=$enable_dlopen_self
12990
12991# Whether dlopen of statically linked programs is supported.
12992dlopen_self_static=$enable_dlopen_self_static
12993
12994# Compiler flag to prevent dynamic linking.
12995link_static_flag=$lt_lt_prog_compiler_static_CXX
12996
12997# Compiler flag to turn off builtin functions.
12998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12999
13000# Compiler flag to allow reflexive dlopens.
13001export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13002
13003# Compiler flag to generate shared objects directly from archives.
13004whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13005
13006# Compiler flag to generate thread-safe objects.
13007thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13008
13009# Library versioning type.
13010version_type=$version_type
13011
13012# Format of library name prefix.
13013libname_spec=$lt_libname_spec
13014
13015# List of archive names.  First name is the real one, the rest are links.
13016# The last name is the one that the linker finds with -lNAME.
13017library_names_spec=$lt_library_names_spec
13018
13019# The coded name of the library, if different from the real name.
13020soname_spec=$lt_soname_spec
13021
13022# Commands used to build and install an old-style archive.
13023RANLIB=$lt_RANLIB
13024old_archive_cmds=$lt_old_archive_cmds_CXX
13025old_postinstall_cmds=$lt_old_postinstall_cmds
13026old_postuninstall_cmds=$lt_old_postuninstall_cmds
13027
13028# Create an old-style archive from a shared archive.
13029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13030
13031# Create a temporary old-style archive to link instead of a shared archive.
13032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13033
13034# Commands used to build and install a shared archive.
13035archive_cmds=$lt_archive_cmds_CXX
13036archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13037postinstall_cmds=$lt_postinstall_cmds
13038postuninstall_cmds=$lt_postuninstall_cmds
13039
13040# Commands used to build a loadable module (assumed same as above if empty)
13041module_cmds=$lt_module_cmds_CXX
13042module_expsym_cmds=$lt_module_expsym_cmds_CXX
13043
13044# Commands to strip libraries.
13045old_striplib=$lt_old_striplib
13046striplib=$lt_striplib
13047
13048# Dependencies to place before the objects being linked to create a
13049# shared library.
13050predep_objects=$lt_predep_objects_CXX
13051
13052# Dependencies to place after the objects being linked to create a
13053# shared library.
13054postdep_objects=$lt_postdep_objects_CXX
13055
13056# Dependencies to place before the objects being linked to create a
13057# shared library.
13058predeps=$lt_predeps_CXX
13059
13060# Dependencies to place after the objects being linked to create a
13061# shared library.
13062postdeps=$lt_postdeps_CXX
13063
13064# The library search path used internally by the compiler when linking
13065# a shared library.
13066compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13067
13068# Method to check whether dependent libraries are shared objects.
13069deplibs_check_method=$lt_deplibs_check_method
13070
13071# Command to use when deplibs_check_method == file_magic.
13072file_magic_cmd=$lt_file_magic_cmd
13073
13074# Flag that allows shared libraries with undefined symbols to be built.
13075allow_undefined_flag=$lt_allow_undefined_flag_CXX
13076
13077# Flag that forces no undefined symbols.
13078no_undefined_flag=$lt_no_undefined_flag_CXX
13079
13080# Commands used to finish a libtool library installation in a directory.
13081finish_cmds=$lt_finish_cmds
13082
13083# Same as above, but a single script fragment to be evaled but not shown.
13084finish_eval=$lt_finish_eval
13085
13086# Take the output of nm and produce a listing of raw symbols and C names.
13087global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13088
13089# Transform the output of nm in a proper C declaration
13090global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13091
13092# Transform the output of nm in a C name address pair
13093global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13094
13095# This is the shared library runtime path variable.
13096runpath_var=$runpath_var
13097
13098# This is the shared library path variable.
13099shlibpath_var=$shlibpath_var
13100
13101# Is shlibpath searched before the hard-coded library search path?
13102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13103
13104# How to hardcode a shared library path into an executable.
13105hardcode_action=$hardcode_action_CXX
13106
13107# Whether we should hardcode library paths into libraries.
13108hardcode_into_libs=$hardcode_into_libs
13109
13110# Flag to hardcode \$libdir into a binary during linking.
13111# This must work even if \$libdir does not exist.
13112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13113
13114# If ld is used when linking, flag to hardcode \$libdir into
13115# a binary during linking. This must work even if \$libdir does
13116# not exist.
13117hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13118
13119# Whether we need a single -rpath flag with a separated argument.
13120hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13121
13122# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13123# resulting binary.
13124hardcode_direct=$hardcode_direct_CXX
13125
13126# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13127# resulting binary.
13128hardcode_minus_L=$hardcode_minus_L_CXX
13129
13130# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13131# the resulting binary.
13132hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13133
13134# Set to yes if building a shared library automatically hardcodes DIR into the library
13135# and all subsequent libraries and executables linked against it.
13136hardcode_automatic=$hardcode_automatic_CXX
13137
13138# Variables whose values should be saved in libtool wrapper scripts and
13139# restored at relink time.
13140variables_saved_for_relink="$variables_saved_for_relink"
13141
13142# Whether libtool must link a program against all its dependency libraries.
13143link_all_deplibs=$link_all_deplibs_CXX
13144
13145# Compile-time system search path for libraries
13146sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13147
13148# Run-time system search path for libraries
13149sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13150
13151# Fix the shell variable \$srcfile for the compiler.
13152fix_srcfile_path="$fix_srcfile_path_CXX"
13153
13154# Set to yes if exported symbols are required.
13155always_export_symbols=$always_export_symbols_CXX
13156
13157# The commands to list exported symbols.
13158export_symbols_cmds=$lt_export_symbols_cmds_CXX
13159
13160# The commands to extract the exported symbol list from a shared archive.
13161extract_expsyms_cmds=$lt_extract_expsyms_cmds
13162
13163# Symbols that should not be listed in the preloaded symbols.
13164exclude_expsyms=$lt_exclude_expsyms_CXX
13165
13166# Symbols that must always be exported.
13167include_expsyms=$lt_include_expsyms_CXX
13168
13169# ### END LIBTOOL TAG CONFIG: $tagname
13170
13171__EOF__
13172
13173
13174else
13175  # If there is no Makefile yet, we rely on a make rule to execute
13176  # `config.status --recheck' to rerun these tests and create the
13177  # libtool script then.
13178  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13179  if test -f "$ltmain_in"; then
13180    test -f Makefile && make "$ltmain"
13181  fi
13182fi
13183
13184
13185ac_ext=c
13186ac_cpp='$CPP $CPPFLAGS'
13187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13189ac_compiler_gnu=$ac_cv_c_compiler_gnu
13190
13191CC=$lt_save_CC
13192LDCXX=$LD
13193LD=$lt_save_LD
13194GCC=$lt_save_GCC
13195with_gnu_ldcxx=$with_gnu_ld
13196with_gnu_ld=$lt_save_with_gnu_ld
13197lt_cv_path_LDCXX=$lt_cv_path_LD
13198lt_cv_path_LD=$lt_save_path_LD
13199lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13200lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13201
13202	else
13203	  tagname=""
13204	fi
13205	;;
13206
13207      F77)
13208	if test -n "$F77" && test "X$F77" != "Xno"; then
13209
13210ac_ext=f
13211ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13212ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13214
13215
13216archive_cmds_need_lc_F77=no
13217allow_undefined_flag_F77=
13218always_export_symbols_F77=no
13219archive_expsym_cmds_F77=
13220export_dynamic_flag_spec_F77=
13221hardcode_direct_F77=no
13222hardcode_libdir_flag_spec_F77=
13223hardcode_libdir_flag_spec_ld_F77=
13224hardcode_libdir_separator_F77=
13225hardcode_minus_L_F77=no
13226hardcode_automatic_F77=no
13227module_cmds_F77=
13228module_expsym_cmds_F77=
13229link_all_deplibs_F77=unknown
13230old_archive_cmds_F77=$old_archive_cmds
13231no_undefined_flag_F77=
13232whole_archive_flag_spec_F77=
13233enable_shared_with_static_runtimes_F77=no
13234
13235# Source file extension for f77 test sources.
13236ac_ext=f
13237
13238# Object file extension for compiled f77 test sources.
13239objext=o
13240objext_F77=$objext
13241
13242# Code to be used in simple compile tests
13243lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13244
13245# Code to be used in simple link tests
13246lt_simple_link_test_code="      program t\n      end\n"
13247
13248# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13249
13250# If no C compiler was specified, use CC.
13251LTCC=${LTCC-"$CC"}
13252
13253# Allow CC to be a program name with arguments.
13254compiler=$CC
13255
13256
13257# Allow CC to be a program name with arguments.
13258lt_save_CC="$CC"
13259CC=${F77-"f77"}
13260compiler=$CC
13261compiler_F77=$CC
13262cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13263
13264echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13265echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13266echo "$as_me:$LINENO: result: $can_build_shared" >&5
13267echo "${ECHO_T}$can_build_shared" >&6
13268
13269echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13270echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13271test "$can_build_shared" = "no" && enable_shared=no
13272
13273# On AIX, shared libraries and static libraries use the same namespace, and
13274# are all built from PIC.
13275case "$host_os" in
13276aix3*)
13277  test "$enable_shared" = yes && enable_static=no
13278  if test -n "$RANLIB"; then
13279    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13280    postinstall_cmds='$RANLIB $lib'
13281  fi
13282  ;;
13283aix4* | aix5*)
13284  test "$enable_shared" = yes && enable_static=no
13285  ;;
13286esac
13287echo "$as_me:$LINENO: result: $enable_shared" >&5
13288echo "${ECHO_T}$enable_shared" >&6
13289
13290echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13291echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13292# Make sure either enable_shared or enable_static is yes.
13293test "$enable_shared" = yes || enable_static=yes
13294echo "$as_me:$LINENO: result: $enable_static" >&5
13295echo "${ECHO_T}$enable_static" >&6
13296
13297test "$ld_shlibs_F77" = no && can_build_shared=no
13298
13299GCC_F77="$G77"
13300LD_F77="$LD"
13301
13302lt_prog_compiler_wl_F77=
13303lt_prog_compiler_pic_F77=
13304lt_prog_compiler_static_F77=
13305
13306echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13307echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13308
13309  if test "$GCC" = yes; then
13310    lt_prog_compiler_wl_F77='-Wl,'
13311    lt_prog_compiler_static_F77='-static'
13312
13313    case $host_os in
13314      aix*)
13315      # All AIX code is PIC.
13316      if test "$host_cpu" = ia64; then
13317	# AIX 5 now supports IA64 processor
13318	lt_prog_compiler_static_F77='-Bstatic'
13319      fi
13320      ;;
13321
13322    amigaos*)
13323      # FIXME: we need at least 68020 code to build shared libraries, but
13324      # adding the `-m68020' flag to GCC prevents building anything better,
13325      # like `-m68040'.
13326      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13327      ;;
13328
13329    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13330      # PIC is the default for these OSes.
13331      ;;
13332
13333    mingw* | pw32* | os2*)
13334      # This hack is so that the source file can tell whether it is being
13335      # built for inclusion in a dll (and should export symbols for example).
13336      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13337      ;;
13338
13339    darwin* | rhapsody*)
13340      # PIC is the default on this platform
13341      # Common symbols not allowed in MH_DYLIB files
13342      lt_prog_compiler_pic_F77='-fno-common'
13343      ;;
13344
13345    msdosdjgpp*)
13346      # Just because we use GCC doesn't mean we suddenly get shared libraries
13347      # on systems that don't support them.
13348      lt_prog_compiler_can_build_shared_F77=no
13349      enable_shared=no
13350      ;;
13351
13352    sysv4*MP*)
13353      if test -d /usr/nec; then
13354	lt_prog_compiler_pic_F77=-Kconform_pic
13355      fi
13356      ;;
13357
13358    hpux*)
13359      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13360      # not for PA HP-UX.
13361      case "$host_cpu" in
13362      hppa*64*|ia64*)
13363	# +Z the default
13364	;;
13365      *)
13366	lt_prog_compiler_pic_F77='-fPIC'
13367	;;
13368      esac
13369      ;;
13370
13371    *)
13372      lt_prog_compiler_pic_F77='-fPIC'
13373      ;;
13374    esac
13375  else
13376    # PORTME Check for flag to pass linker flags through the system compiler.
13377    case $host_os in
13378    aix*)
13379      lt_prog_compiler_wl_F77='-Wl,'
13380      if test "$host_cpu" = ia64; then
13381	# AIX 5 now supports IA64 processor
13382	lt_prog_compiler_static_F77='-Bstatic'
13383      else
13384	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13385      fi
13386      ;;
13387      darwin*)
13388        # PIC is the default on this platform
13389        # Common symbols not allowed in MH_DYLIB files
13390       case "$cc_basename" in
13391         xlc*)
13392         lt_prog_compiler_pic_F77='-qnocommon'
13393         lt_prog_compiler_wl_F77='-Wl,'
13394         ;;
13395       esac
13396       ;;
13397
13398    mingw* | pw32* | os2*)
13399      # This hack is so that the source file can tell whether it is being
13400      # built for inclusion in a dll (and should export symbols for example).
13401      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13402      ;;
13403
13404    hpux9* | hpux10* | hpux11*)
13405      lt_prog_compiler_wl_F77='-Wl,'
13406      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13407      # not for PA HP-UX.
13408      case "$host_cpu" in
13409      hppa*64*|ia64*)
13410	# +Z the default
13411	;;
13412      *)
13413	lt_prog_compiler_pic_F77='+Z'
13414	;;
13415      esac
13416      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13417      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13418      ;;
13419
13420    irix5* | irix6* | nonstopux*)
13421      lt_prog_compiler_wl_F77='-Wl,'
13422      # PIC (with -KPIC) is the default.
13423      lt_prog_compiler_static_F77='-non_shared'
13424      ;;
13425
13426    newsos6)
13427      lt_prog_compiler_pic_F77='-KPIC'
13428      lt_prog_compiler_static_F77='-Bstatic'
13429      ;;
13430
13431    linux*)
13432      case $CC in
13433      icc* | ecc*)
13434	lt_prog_compiler_wl_F77='-Wl,'
13435	lt_prog_compiler_pic_F77='-KPIC'
13436	lt_prog_compiler_static_F77='-static'
13437        ;;
13438      ccc*)
13439        lt_prog_compiler_wl_F77='-Wl,'
13440        # All Alpha code is PIC.
13441        lt_prog_compiler_static_F77='-non_shared'
13442        ;;
13443      esac
13444      ;;
13445
13446    osf3* | osf4* | osf5*)
13447      lt_prog_compiler_wl_F77='-Wl,'
13448      # All OSF/1 code is PIC.
13449      lt_prog_compiler_static_F77='-non_shared'
13450      ;;
13451
13452    sco3.2v5*)
13453      lt_prog_compiler_pic_F77='-Kpic'
13454      lt_prog_compiler_static_F77='-dn'
13455      ;;
13456
13457    solaris*)
13458      lt_prog_compiler_wl_F77='-Wl,'
13459      lt_prog_compiler_pic_F77='-KPIC'
13460      lt_prog_compiler_static_F77='-Bstatic'
13461      ;;
13462
13463    sunos4*)
13464      lt_prog_compiler_wl_F77='-Qoption ld '
13465      lt_prog_compiler_pic_F77='-PIC'
13466      lt_prog_compiler_static_F77='-Bstatic'
13467      ;;
13468
13469    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13470      lt_prog_compiler_wl_F77='-Wl,'
13471      lt_prog_compiler_pic_F77='-KPIC'
13472      lt_prog_compiler_static_F77='-Bstatic'
13473      ;;
13474
13475    sysv4*MP*)
13476      if test -d /usr/nec ;then
13477	lt_prog_compiler_pic_F77='-Kconform_pic'
13478	lt_prog_compiler_static_F77='-Bstatic'
13479      fi
13480      ;;
13481
13482    uts4*)
13483      lt_prog_compiler_pic_F77='-pic'
13484      lt_prog_compiler_static_F77='-Bstatic'
13485      ;;
13486
13487    *)
13488      lt_prog_compiler_can_build_shared_F77=no
13489      ;;
13490    esac
13491  fi
13492
13493echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13494echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13495
13496#
13497# Check to make sure the PIC flag actually works.
13498#
13499if test -n "$lt_prog_compiler_pic_F77"; then
13500
13501echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13502echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13503if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13504  echo $ECHO_N "(cached) $ECHO_C" >&6
13505else
13506  lt_prog_compiler_pic_works_F77=no
13507  ac_outfile=conftest.$ac_objext
13508   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13509   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13510   # Insert the option either (1) after the last *FLAGS variable, or
13511   # (2) before a word containing "conftest.", or (3) at the end.
13512   # Note that $ac_compile itself does not contain backslashes and begins
13513   # with a dollar sign (not a hyphen), so the echo should work correctly.
13514   # The option is referenced via a variable to avoid confusing sed.
13515   lt_compile=`echo "$ac_compile" | $SED \
13516   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13517   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13518   -e 's:$: $lt_compiler_flag:'`
13519   (eval echo "\"\$as_me:13519: $lt_compile\"" >&5)
13520   (eval "$lt_compile" 2>conftest.err)
13521   ac_status=$?
13522   cat conftest.err >&5
13523   echo "$as_me:13523: \$? = $ac_status" >&5
13524   if (exit $ac_status) && test -s "$ac_outfile"; then
13525     # The compiler can only warn and ignore the option if not recognized
13526     # So say no if there are warnings
13527     if test ! -s conftest.err; then
13528       lt_prog_compiler_pic_works_F77=yes
13529     fi
13530   fi
13531   $rm conftest*
13532
13533fi
13534echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13535echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13536
13537if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13538    case $lt_prog_compiler_pic_F77 in
13539     "" | " "*) ;;
13540     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13541     esac
13542else
13543    lt_prog_compiler_pic_F77=
13544     lt_prog_compiler_can_build_shared_F77=no
13545fi
13546
13547fi
13548case "$host_os" in
13549  # For platforms which do not support PIC, -DPIC is meaningless:
13550  *djgpp*)
13551    lt_prog_compiler_pic_F77=
13552    ;;
13553  *)
13554    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13555    ;;
13556esac
13557
13558echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13559echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13560if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13561  echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
13563  lt_cv_prog_compiler_c_o_F77=no
13564   $rm -r conftest 2>/dev/null
13565   mkdir conftest
13566   cd conftest
13567   mkdir out
13568   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13569
13570   lt_compiler_flag="-o out/conftest2.$ac_objext"
13571   # Insert the option either (1) after the last *FLAGS variable, or
13572   # (2) before a word containing "conftest.", or (3) at the end.
13573   # Note that $ac_compile itself does not contain backslashes and begins
13574   # with a dollar sign (not a hyphen), so the echo should work correctly.
13575   lt_compile=`echo "$ac_compile" | $SED \
13576   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13577   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13578   -e 's:$: $lt_compiler_flag:'`
13579   (eval echo "\"\$as_me:13579: $lt_compile\"" >&5)
13580   (eval "$lt_compile" 2>out/conftest.err)
13581   ac_status=$?
13582   cat out/conftest.err >&5
13583   echo "$as_me:13583: \$? = $ac_status" >&5
13584   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13585   then
13586     # The compiler can only warn and ignore the option if not recognized
13587     # So say no if there are warnings
13588     if test ! -s out/conftest.err; then
13589       lt_cv_prog_compiler_c_o_F77=yes
13590     fi
13591   fi
13592   chmod u+w .
13593   $rm conftest*
13594   # SGI C++ compiler will create directory out/ii_files/ for
13595   # template instantiation
13596   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13597   $rm out/* && rmdir out
13598   cd ..
13599   rmdir conftest
13600   $rm conftest*
13601
13602fi
13603echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13604echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13605
13606
13607hard_links="nottested"
13608if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13609  # do not overwrite the value of need_locks provided by the user
13610  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13611echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13612  hard_links=yes
13613  $rm conftest*
13614  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13615  touch conftest.a
13616  ln conftest.a conftest.b 2>&5 || hard_links=no
13617  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13618  echo "$as_me:$LINENO: result: $hard_links" >&5
13619echo "${ECHO_T}$hard_links" >&6
13620  if test "$hard_links" = no; then
13621    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13622echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13623    need_locks=warn
13624  fi
13625else
13626  need_locks=no
13627fi
13628
13629echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13630echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13631
13632  runpath_var=
13633  allow_undefined_flag_F77=
13634  enable_shared_with_static_runtimes_F77=no
13635  archive_cmds_F77=
13636  archive_expsym_cmds_F77=
13637  old_archive_From_new_cmds_F77=
13638  old_archive_from_expsyms_cmds_F77=
13639  export_dynamic_flag_spec_F77=
13640  whole_archive_flag_spec_F77=
13641  thread_safe_flag_spec_F77=
13642  hardcode_libdir_flag_spec_F77=
13643  hardcode_libdir_flag_spec_ld_F77=
13644  hardcode_libdir_separator_F77=
13645  hardcode_direct_F77=no
13646  hardcode_minus_L_F77=no
13647  hardcode_shlibpath_var_F77=unsupported
13648  link_all_deplibs_F77=unknown
13649  hardcode_automatic_F77=no
13650  module_cmds_F77=
13651  module_expsym_cmds_F77=
13652  always_export_symbols_F77=no
13653  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13654  # include_expsyms should be a list of space-separated symbols to be *always*
13655  # included in the symbol list
13656  include_expsyms_F77=
13657  # exclude_expsyms can be an extended regexp of symbols to exclude
13658  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13659  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13660  # as well as any symbol that contains `d'.
13661  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13662  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13663  # platforms (ab)use it in PIC code, but their linkers get confused if
13664  # the symbol is explicitly referenced.  Since portable code cannot
13665  # rely on this symbol name, it's probably fine to never include it in
13666  # preloaded symbol tables.
13667  extract_expsyms_cmds=
13668
13669  case $host_os in
13670  cygwin* | mingw* | pw32*)
13671    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13672    # When not using gcc, we currently assume that we are using
13673    # Microsoft Visual C++.
13674    if test "$GCC" != yes; then
13675      with_gnu_ld=no
13676    fi
13677    ;;
13678  openbsd*)
13679    with_gnu_ld=no
13680    ;;
13681  esac
13682
13683  ld_shlibs_F77=yes
13684  if test "$with_gnu_ld" = yes; then
13685    # If archive_cmds runs LD, not CC, wlarc should be empty
13686    wlarc='${wl}'
13687
13688    # See if GNU ld supports shared libraries.
13689    case $host_os in
13690    aix3* | aix4* | aix5*)
13691      # On AIX/PPC, the GNU linker is very broken
13692      if test "$host_cpu" != ia64; then
13693	ld_shlibs_F77=no
13694	cat <<EOF 1>&2
13695
13696*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13697*** to be unable to reliably create shared libraries on AIX.
13698*** Therefore, libtool is disabling shared libraries support.  If you
13699*** really care for shared libraries, you may want to modify your PATH
13700*** so that a non-GNU linker is found, and then restart.
13701
13702EOF
13703      fi
13704      ;;
13705
13706    amigaos*)
13707      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)'
13708      hardcode_libdir_flag_spec_F77='-L$libdir'
13709      hardcode_minus_L_F77=yes
13710
13711      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13712      # that the semantics of dynamic libraries on AmigaOS, at least up
13713      # to version 4, is to share data among multiple programs linked
13714      # with the same dynamic library.  Since this doesn't match the
13715      # behavior of shared libraries on other platforms, we can't use
13716      # them.
13717      ld_shlibs_F77=no
13718      ;;
13719
13720    beos*)
13721      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13722	allow_undefined_flag_F77=unsupported
13723	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13724	# support --undefined.  This deserves some investigation.  FIXME
13725	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13726      else
13727	ld_shlibs_F77=no
13728      fi
13729      ;;
13730
13731    cygwin* | mingw* | pw32*)
13732      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13733      # as there is no search path for DLLs.
13734      hardcode_libdir_flag_spec_F77='-L$libdir'
13735      allow_undefined_flag_F77=unsupported
13736      always_export_symbols_F77=no
13737      enable_shared_with_static_runtimes_F77=yes
13738      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13739
13740      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13741        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13742	# If the export-symbols file already is a .def file (1st line
13743	# is EXPORTS), use it as is; otherwise, prepend...
13744	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13745	  cp $export_symbols $output_objdir/$soname.def;
13746	else
13747	  echo EXPORTS > $output_objdir/$soname.def;
13748	  cat $export_symbols >> $output_objdir/$soname.def;
13749	fi~
13750	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13751      else
13752	ld_shlibs=no
13753      fi
13754      ;;
13755
13756    netbsd*)
13757      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13758	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13759	wlarc=
13760      else
13761	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13762	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13763      fi
13764      ;;
13765
13766    solaris* | sysv5*)
13767      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13768	ld_shlibs_F77=no
13769	cat <<EOF 1>&2
13770
13771*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13772*** create shared libraries on Solaris systems.  Therefore, libtool
13773*** is disabling shared libraries support.  We urge you to upgrade GNU
13774*** binutils to release 2.9.1 or newer.  Another option is to modify
13775*** your PATH or compiler configuration so that the native linker is
13776*** used, and then restart.
13777
13778EOF
13779      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13780	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13781	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13782      else
13783	ld_shlibs_F77=no
13784      fi
13785      ;;
13786
13787    sunos4*)
13788      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13789      wlarc=
13790      hardcode_direct_F77=yes
13791      hardcode_shlibpath_var_F77=no
13792      ;;
13793
13794  linux*)
13795    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13796        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13797	archive_cmds_F77="$tmp_archive_cmds"
13798      supports_anon_versioning=no
13799      case `$LD -v 2>/dev/null` in
13800        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13801        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13802        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13803        *\ 2.11.*) ;; # other 2.11 versions
13804        *) supports_anon_versioning=yes ;;
13805      esac
13806      if test $supports_anon_versioning = yes; then
13807        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13808cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13809$echo "local: *; };" >> $output_objdir/$libname.ver~
13810        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13811      else
13812        archive_expsym_cmds_F77="$tmp_archive_cmds"
13813      fi
13814    else
13815      ld_shlibs_F77=no
13816    fi
13817    ;;
13818
13819    *)
13820      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13821	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823      else
13824	ld_shlibs_F77=no
13825      fi
13826      ;;
13827    esac
13828
13829    if test "$ld_shlibs_F77" = yes; then
13830      runpath_var=LD_RUN_PATH
13831      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13832      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13833      # ancient GNU ld didn't support --whole-archive et. al.
13834      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13835 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13836      else
13837  	whole_archive_flag_spec_F77=
13838      fi
13839    fi
13840  else
13841    # PORTME fill in a description of your system's linker (not GNU ld)
13842    case $host_os in
13843    aix3*)
13844      allow_undefined_flag_F77=unsupported
13845      always_export_symbols_F77=yes
13846      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'
13847      # Note: this linker hardcodes the directories in LIBPATH if there
13848      # are no directories specified by -L.
13849      hardcode_minus_L_F77=yes
13850      if test "$GCC" = yes && test -z "$link_static_flag"; then
13851	# Neither direct hardcoding nor static linking is supported with a
13852	# broken collect2.
13853	hardcode_direct_F77=unsupported
13854      fi
13855      ;;
13856
13857    aix4* | aix5*)
13858      if test "$host_cpu" = ia64; then
13859	# On IA64, the linker does run time linking by default, so we don't
13860	# have to do anything special.
13861	aix_use_runtimelinking=no
13862	exp_sym_flag='-Bexport'
13863	no_entry_flag=""
13864      else
13865	# If we're using GNU nm, then we don't want the "-C" option.
13866	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13867	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13868	  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'
13869	else
13870	  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'
13871	fi
13872	aix_use_runtimelinking=no
13873
13874	# Test if we are trying to use run time linking or normal
13875	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13876	# need to do runtime linking.
13877	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13878	  for ld_flag in $LDFLAGS; do
13879  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13880  	    aix_use_runtimelinking=yes
13881  	    break
13882  	  fi
13883	  done
13884	esac
13885
13886	exp_sym_flag='-bexport'
13887	no_entry_flag='-bnoentry'
13888      fi
13889
13890      # When large executables or shared objects are built, AIX ld can
13891      # have problems creating the table of contents.  If linking a library
13892      # or program results in "error TOC overflow" add -mminimal-toc to
13893      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13894      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13895
13896      archive_cmds_F77=''
13897      hardcode_direct_F77=yes
13898      hardcode_libdir_separator_F77=':'
13899      link_all_deplibs_F77=yes
13900
13901      if test "$GCC" = yes; then
13902	case $host_os in aix4.012|aix4.012.*)
13903	# We only want to do this on AIX 4.2 and lower, the check
13904	# below for broken collect2 doesn't work under 4.3+
13905	  collect2name=`${CC} -print-prog-name=collect2`
13906	  if test -f "$collect2name" && \
13907  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13908	  then
13909  	  # We have reworked collect2
13910  	  hardcode_direct_F77=yes
13911	  else
13912  	  # We have old collect2
13913  	  hardcode_direct_F77=unsupported
13914  	  # It fails to find uninstalled libraries when the uninstalled
13915  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13916  	  # to unsupported forces relinking
13917  	  hardcode_minus_L_F77=yes
13918  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13919  	  hardcode_libdir_separator_F77=
13920	  fi
13921	esac
13922	shared_flag='-shared'
13923      else
13924	# not using gcc
13925	if test "$host_cpu" = ia64; then
13926  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13927  	# chokes on -Wl,-G. The following line is correct:
13928	  shared_flag='-G'
13929	else
13930  	if test "$aix_use_runtimelinking" = yes; then
13931	    shared_flag='${wl}-G'
13932	  else
13933	    shared_flag='${wl}-bM:SRE'
13934  	fi
13935	fi
13936      fi
13937
13938      # It seems that -bexpall does not export symbols beginning with
13939      # underscore (_), so it is better to generate a list of symbols to export.
13940      always_export_symbols_F77=yes
13941      if test "$aix_use_runtimelinking" = yes; then
13942	# Warning - without using the other runtime loading flags (-brtl),
13943	# -berok will link without error, but may produce a broken library.
13944	allow_undefined_flag_F77='-berok'
13945       # Determine the default libpath from the value encoded in an empty executable.
13946       cat >conftest.$ac_ext <<_ACEOF
13947      program main
13948
13949      end
13950_ACEOF
13951rm -f conftest.$ac_objext conftest$ac_exeext
13952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13953  (eval $ac_link) 2>conftest.er1
13954  ac_status=$?
13955  grep -v '^ *+' conftest.er1 >conftest.err
13956  rm -f conftest.er1
13957  cat conftest.err >&5
13958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959  (exit $ac_status); } &&
13960	 { ac_try='test -z "$ac_f77_werror_flag"
13961			 || test ! -s conftest.err'
13962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963  (eval $ac_try) 2>&5
13964  ac_status=$?
13965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966  (exit $ac_status); }; } &&
13967	 { ac_try='test -s conftest$ac_exeext'
13968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969  (eval $ac_try) 2>&5
13970  ac_status=$?
13971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972  (exit $ac_status); }; }; then
13973
13974aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13975}'`
13976# Check for a 64-bit object if we didn't find anything.
13977if 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; }
13978}'`; fi
13979else
13980  echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983fi
13984rm -f conftest.err conftest.$ac_objext \
13985      conftest$ac_exeext conftest.$ac_ext
13986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13987
13988       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13989	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"
13990       else
13991	if test "$host_cpu" = ia64; then
13992	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13993	  allow_undefined_flag_F77="-z nodefs"
13994	  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"
13995	else
13996	 # Determine the default libpath from the value encoded in an empty executable.
13997	 cat >conftest.$ac_ext <<_ACEOF
13998      program main
13999
14000      end
14001_ACEOF
14002rm -f conftest.$ac_objext conftest$ac_exeext
14003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14004  (eval $ac_link) 2>conftest.er1
14005  ac_status=$?
14006  grep -v '^ *+' conftest.er1 >conftest.err
14007  rm -f conftest.er1
14008  cat conftest.err >&5
14009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010  (exit $ac_status); } &&
14011	 { ac_try='test -z "$ac_f77_werror_flag"
14012			 || test ! -s conftest.err'
14013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014  (eval $ac_try) 2>&5
14015  ac_status=$?
14016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017  (exit $ac_status); }; } &&
14018	 { ac_try='test -s conftest$ac_exeext'
14019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020  (eval $ac_try) 2>&5
14021  ac_status=$?
14022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023  (exit $ac_status); }; }; then
14024
14025aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14026}'`
14027# Check for a 64-bit object if we didn't find anything.
14028if 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; }
14029}'`; fi
14030else
14031  echo "$as_me: failed program was:" >&5
14032sed 's/^/| /' conftest.$ac_ext >&5
14033
14034fi
14035rm -f conftest.err conftest.$ac_objext \
14036      conftest$ac_exeext conftest.$ac_ext
14037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14038
14039	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14040	  # Warning - without using the other run time loading flags,
14041	  # -berok will link without error, but may produce a broken library.
14042	  no_undefined_flag_F77=' ${wl}-bernotok'
14043	  allow_undefined_flag_F77=' ${wl}-berok'
14044	  # -bexpall does not export symbols beginning with underscore (_)
14045	  always_export_symbols_F77=yes
14046	  # Exported symbols can be pulled into shared objects from archives
14047	  whole_archive_flag_spec_F77=' '
14048	  archive_cmds_need_lc_F77=yes
14049	  # This is similar to how AIX traditionally builds it's shared libraries.
14050	  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'
14051	fi
14052      fi
14053      ;;
14054
14055    amigaos*)
14056      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)'
14057      hardcode_libdir_flag_spec_F77='-L$libdir'
14058      hardcode_minus_L_F77=yes
14059      # see comment about different semantics on the GNU ld section
14060      ld_shlibs_F77=no
14061      ;;
14062
14063    bsdi[45]*)
14064      export_dynamic_flag_spec_F77=-rdynamic
14065      ;;
14066
14067    cygwin* | mingw* | pw32*)
14068      # When not using gcc, we currently assume that we are using
14069      # Microsoft Visual C++.
14070      # hardcode_libdir_flag_spec is actually meaningless, as there is
14071      # no search path for DLLs.
14072      hardcode_libdir_flag_spec_F77=' '
14073      allow_undefined_flag_F77=unsupported
14074      # Tell ltmain to make .lib files, not .a files.
14075      libext=lib
14076      # Tell ltmain to make .dll files, not .so files.
14077      shrext_cmds=".dll"
14078      # FIXME: Setting linknames here is a bad hack.
14079      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14080      # The linker will automatically build a .lib file if we build a DLL.
14081      old_archive_From_new_cmds_F77='true'
14082      # FIXME: Should let the user specify the lib program.
14083      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14084      fix_srcfile_path='`cygpath -w "$srcfile"`'
14085      enable_shared_with_static_runtimes_F77=yes
14086      ;;
14087
14088    darwin* | rhapsody*)
14089      case "$host_os" in
14090        rhapsody* | darwin1.[012])
14091         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14092         ;;
14093       *) # Darwin 1.3 on
14094         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14095           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14096         else
14097           case ${MACOSX_DEPLOYMENT_TARGET} in
14098             10.[012])
14099               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14100               ;;
14101             10.*)
14102               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14103               ;;
14104           esac
14105         fi
14106         ;;
14107      esac
14108      archive_cmds_need_lc_F77=no
14109      hardcode_direct_F77=no
14110      hardcode_automatic_F77=yes
14111      hardcode_shlibpath_var_F77=unsupported
14112      whole_archive_flag_spec_F77=''
14113      link_all_deplibs_F77=yes
14114    if test "$GCC" = yes ; then
14115    	output_verbose_link_cmd='echo'
14116        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14117      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14118      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14119      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}'
14120      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}'
14121    else
14122      case "$cc_basename" in
14123        xlc*)
14124         output_verbose_link_cmd='echo'
14125         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14126         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14127          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14128         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}'
14129          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}'
14130          ;;
14131       *)
14132         ld_shlibs_F77=no
14133          ;;
14134      esac
14135    fi
14136      ;;
14137
14138    dgux*)
14139      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140      hardcode_libdir_flag_spec_F77='-L$libdir'
14141      hardcode_shlibpath_var_F77=no
14142      ;;
14143
14144    freebsd1*)
14145      ld_shlibs_F77=no
14146      ;;
14147
14148    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14149    # support.  Future versions do this automatically, but an explicit c++rt0.o
14150    # does not break anything, and helps significantly (at the cost of a little
14151    # extra space).
14152    freebsd2.2*)
14153      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14154      hardcode_libdir_flag_spec_F77='-R$libdir'
14155      hardcode_direct_F77=yes
14156      hardcode_shlibpath_var_F77=no
14157      ;;
14158
14159    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14160    freebsd2*)
14161      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14162      hardcode_direct_F77=yes
14163      hardcode_minus_L_F77=yes
14164      hardcode_shlibpath_var_F77=no
14165      ;;
14166
14167    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14168    freebsd* | kfreebsd*-gnu)
14169      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14170      hardcode_libdir_flag_spec_F77='-R$libdir'
14171      hardcode_direct_F77=yes
14172      hardcode_shlibpath_var_F77=no
14173      ;;
14174
14175    hpux9*)
14176      if test "$GCC" = yes; then
14177	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'
14178      else
14179	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'
14180      fi
14181      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14182      hardcode_libdir_separator_F77=:
14183      hardcode_direct_F77=yes
14184
14185      # hardcode_minus_L: Not really in the search PATH,
14186      # but as the default location of the library.
14187      hardcode_minus_L_F77=yes
14188      export_dynamic_flag_spec_F77='${wl}-E'
14189      ;;
14190
14191    hpux10* | hpux11*)
14192      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14193	case "$host_cpu" in
14194	hppa*64*|ia64*)
14195	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14196	  ;;
14197	*)
14198	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14199	  ;;
14200	esac
14201      else
14202	case "$host_cpu" in
14203	hppa*64*|ia64*)
14204	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14205	  ;;
14206	*)
14207	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14208	  ;;
14209	esac
14210      fi
14211      if test "$with_gnu_ld" = no; then
14212	case "$host_cpu" in
14213	hppa*64*)
14214	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14215	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14216	  hardcode_libdir_separator_F77=:
14217	  hardcode_direct_F77=no
14218	  hardcode_shlibpath_var_F77=no
14219	  ;;
14220	ia64*)
14221	  hardcode_libdir_flag_spec_F77='-L$libdir'
14222	  hardcode_direct_F77=no
14223	  hardcode_shlibpath_var_F77=no
14224
14225	  # hardcode_minus_L: Not really in the search PATH,
14226	  # but as the default location of the library.
14227	  hardcode_minus_L_F77=yes
14228	  ;;
14229	*)
14230	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14231	  hardcode_libdir_separator_F77=:
14232	  hardcode_direct_F77=yes
14233	  export_dynamic_flag_spec_F77='${wl}-E'
14234
14235	  # hardcode_minus_L: Not really in the search PATH,
14236	  # but as the default location of the library.
14237	  hardcode_minus_L_F77=yes
14238	  ;;
14239	esac
14240      fi
14241      ;;
14242
14243    irix5* | irix6* | nonstopux*)
14244      if test "$GCC" = yes; then
14245	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'
14246      else
14247	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'
14248	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14249      fi
14250      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14251      hardcode_libdir_separator_F77=:
14252      link_all_deplibs_F77=yes
14253      ;;
14254
14255    netbsd*)
14256      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14257	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14258      else
14259	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14260      fi
14261      hardcode_libdir_flag_spec_F77='-R$libdir'
14262      hardcode_direct_F77=yes
14263      hardcode_shlibpath_var_F77=no
14264      ;;
14265
14266    newsos6)
14267      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268      hardcode_direct_F77=yes
14269      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14270      hardcode_libdir_separator_F77=:
14271      hardcode_shlibpath_var_F77=no
14272      ;;
14273
14274    openbsd*)
14275      hardcode_direct_F77=yes
14276      hardcode_shlibpath_var_F77=no
14277      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14278	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14279	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14280	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14281	export_dynamic_flag_spec_F77='${wl}-E'
14282      else
14283       case $host_os in
14284	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14285	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14286	   hardcode_libdir_flag_spec_F77='-R$libdir'
14287	   ;;
14288	 *)
14289	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14290	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14291	   ;;
14292       esac
14293      fi
14294      ;;
14295
14296    os2*)
14297      hardcode_libdir_flag_spec_F77='-L$libdir'
14298      hardcode_minus_L_F77=yes
14299      allow_undefined_flag_F77=unsupported
14300      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'
14301      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14302      ;;
14303
14304    osf3*)
14305      if test "$GCC" = yes; then
14306	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14307	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'
14308      else
14309	allow_undefined_flag_F77=' -expect_unresolved \*'
14310	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'
14311      fi
14312      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14313      hardcode_libdir_separator_F77=:
14314      ;;
14315
14316    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14317      if test "$GCC" = yes; then
14318	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14319	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'
14320	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14321      else
14322	allow_undefined_flag_F77=' -expect_unresolved \*'
14323	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'
14324	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~
14325	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14326
14327	# Both c and cxx compiler support -rpath directly
14328	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14329      fi
14330      hardcode_libdir_separator_F77=:
14331      ;;
14332
14333    sco3.2v5*)
14334      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14335      hardcode_shlibpath_var_F77=no
14336      export_dynamic_flag_spec_F77='${wl}-Bexport'
14337      runpath_var=LD_RUN_PATH
14338      hardcode_runpath_var=yes
14339      ;;
14340
14341    solaris*)
14342      no_undefined_flag_F77=' -z text'
14343      if test "$GCC" = yes; then
14344	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14345	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14346	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14347      else
14348	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14350  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14351      fi
14352      hardcode_libdir_flag_spec_F77='-R$libdir'
14353      hardcode_shlibpath_var_F77=no
14354      case $host_os in
14355      solaris2.[0-5] | solaris2.[0-5].*) ;;
14356      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14357	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14358      esac
14359      link_all_deplibs_F77=yes
14360      ;;
14361
14362    sunos4*)
14363      if test "x$host_vendor" = xsequent; then
14364	# Use $CC to link under sequent, because it throws in some extra .o
14365	# files that make .init and .fini sections work.
14366	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14367      else
14368	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14369      fi
14370      hardcode_libdir_flag_spec_F77='-L$libdir'
14371      hardcode_direct_F77=yes
14372      hardcode_minus_L_F77=yes
14373      hardcode_shlibpath_var_F77=no
14374      ;;
14375
14376    sysv4)
14377      case $host_vendor in
14378	sni)
14379	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14380	  hardcode_direct_F77=yes # is this really true???
14381	;;
14382	siemens)
14383	  ## LD is ld it makes a PLAMLIB
14384	  ## CC just makes a GrossModule.
14385	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14386	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14387	  hardcode_direct_F77=no
14388        ;;
14389	motorola)
14390	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14391	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14392	;;
14393      esac
14394      runpath_var='LD_RUN_PATH'
14395      hardcode_shlibpath_var_F77=no
14396      ;;
14397
14398    sysv4.3*)
14399      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14400      hardcode_shlibpath_var_F77=no
14401      export_dynamic_flag_spec_F77='-Bexport'
14402      ;;
14403
14404    sysv4*MP*)
14405      if test -d /usr/nec; then
14406	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407	hardcode_shlibpath_var_F77=no
14408	runpath_var=LD_RUN_PATH
14409	hardcode_runpath_var=yes
14410	ld_shlibs_F77=yes
14411      fi
14412      ;;
14413
14414    sysv4.2uw2*)
14415      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14416      hardcode_direct_F77=yes
14417      hardcode_minus_L_F77=no
14418      hardcode_shlibpath_var_F77=no
14419      hardcode_runpath_var=yes
14420      runpath_var=LD_RUN_PATH
14421      ;;
14422
14423   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14424      no_undefined_flag_F77='${wl}-z ${wl}text'
14425      if test "$GCC" = yes; then
14426	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14427      else
14428	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14429      fi
14430      runpath_var='LD_RUN_PATH'
14431      hardcode_shlibpath_var_F77=no
14432      ;;
14433
14434    sysv5*)
14435      no_undefined_flag_F77=' -z text'
14436      # $CC -shared without GNU ld will not create a library from C++
14437      # object files and a static libstdc++, better avoid it by now
14438      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14439      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14440  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14441      hardcode_libdir_flag_spec_F77=
14442      hardcode_shlibpath_var_F77=no
14443      runpath_var='LD_RUN_PATH'
14444      ;;
14445
14446    uts4*)
14447      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14448      hardcode_libdir_flag_spec_F77='-L$libdir'
14449      hardcode_shlibpath_var_F77=no
14450      ;;
14451
14452    *)
14453      ld_shlibs_F77=no
14454      ;;
14455    esac
14456  fi
14457
14458echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14459echo "${ECHO_T}$ld_shlibs_F77" >&6
14460test "$ld_shlibs_F77" = no && can_build_shared=no
14461
14462variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14463if test "$GCC" = yes; then
14464  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14465fi
14466
14467#
14468# Do we need to explicitly link libc?
14469#
14470case "x$archive_cmds_need_lc_F77" in
14471x|xyes)
14472  # Assume -lc should be added
14473  archive_cmds_need_lc_F77=yes
14474
14475  if test "$enable_shared" = yes && test "$GCC" = yes; then
14476    case $archive_cmds_F77 in
14477    *'~'*)
14478      # FIXME: we may have to deal with multi-command sequences.
14479      ;;
14480    '$CC '*)
14481      # Test whether the compiler implicitly links with -lc since on some
14482      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14483      # to ld, don't add -lc before -lgcc.
14484      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14485echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14486      $rm conftest*
14487      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14488
14489      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490  (eval $ac_compile) 2>&5
14491  ac_status=$?
14492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493  (exit $ac_status); } 2>conftest.err; then
14494        soname=conftest
14495        lib=conftest
14496        libobjs=conftest.$ac_objext
14497        deplibs=
14498        wl=$lt_prog_compiler_wl_F77
14499        compiler_flags=-v
14500        linker_flags=-v
14501        verstring=
14502        output_objdir=.
14503        libname=conftest
14504        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14505        allow_undefined_flag_F77=
14506        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14507  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14508  ac_status=$?
14509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510  (exit $ac_status); }
14511        then
14512	  archive_cmds_need_lc_F77=no
14513        else
14514	  archive_cmds_need_lc_F77=yes
14515        fi
14516        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14517      else
14518        cat conftest.err 1>&5
14519      fi
14520      $rm conftest*
14521      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14522echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14523      ;;
14524    esac
14525  fi
14526  ;;
14527esac
14528
14529echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14530echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14531library_names_spec=
14532libname_spec='lib$name'
14533soname_spec=
14534shrext_cmds=".so"
14535postinstall_cmds=
14536postuninstall_cmds=
14537finish_cmds=
14538finish_eval=
14539shlibpath_var=
14540shlibpath_overrides_runpath=unknown
14541version_type=none
14542dynamic_linker="$host_os ld.so"
14543sys_lib_dlsearch_path_spec="/lib /usr/lib"
14544if test "$GCC" = yes; then
14545  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14546  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14547    # if the path contains ";" then we assume it to be the separator
14548    # otherwise default to the standard path separator (i.e. ":") - it is
14549    # assumed that no part of a normal pathname contains ";" but that should
14550    # okay in the real world where ";" in dirpaths is itself problematic.
14551    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14552  else
14553    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14554  fi
14555else
14556  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14557fi
14558need_lib_prefix=unknown
14559hardcode_into_libs=no
14560
14561# when you set need_version to no, make sure it does not cause -set_version
14562# flags to be left without arguments
14563need_version=unknown
14564
14565case $host_os in
14566aix3*)
14567  version_type=linux
14568  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14569  shlibpath_var=LIBPATH
14570
14571  # AIX 3 has no versioning support, so we append a major version to the name.
14572  soname_spec='${libname}${release}${shared_ext}$major'
14573  ;;
14574
14575aix4* | aix5*)
14576  version_type=linux
14577  need_lib_prefix=no
14578  need_version=no
14579  hardcode_into_libs=yes
14580  if test "$host_cpu" = ia64; then
14581    # AIX 5 supports IA64
14582    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14583    shlibpath_var=LD_LIBRARY_PATH
14584  else
14585    # With GCC up to 2.95.x, collect2 would create an import file
14586    # for dependence libraries.  The import file would start with
14587    # the line `#! .'.  This would cause the generated library to
14588    # depend on `.', always an invalid library.  This was fixed in
14589    # development snapshots of GCC prior to 3.0.
14590    case $host_os in
14591      aix4 | aix4.[01] | aix4.[01].*)
14592      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14593	   echo ' yes '
14594	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14595	:
14596      else
14597	can_build_shared=no
14598      fi
14599      ;;
14600    esac
14601    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14602    # soname into executable. Probably we can add versioning support to
14603    # collect2, so additional links can be useful in future.
14604    if test "$aix_use_runtimelinking" = yes; then
14605      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14606      # instead of lib<name>.a to let people know that these are not
14607      # typical AIX shared libraries.
14608      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609    else
14610      # We preserve .a as extension for shared libraries through AIX4.2
14611      # and later when we are not doing run time linking.
14612      library_names_spec='${libname}${release}.a $libname.a'
14613      soname_spec='${libname}${release}${shared_ext}$major'
14614    fi
14615    shlibpath_var=LIBPATH
14616  fi
14617  ;;
14618
14619amigaos*)
14620  library_names_spec='$libname.ixlibrary $libname.a'
14621  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14622  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'
14623  ;;
14624
14625beos*)
14626  library_names_spec='${libname}${shared_ext}'
14627  dynamic_linker="$host_os ld.so"
14628  shlibpath_var=LIBRARY_PATH
14629  ;;
14630
14631bsdi[45]*)
14632  version_type=linux
14633  need_version=no
14634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635  soname_spec='${libname}${release}${shared_ext}$major'
14636  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14637  shlibpath_var=LD_LIBRARY_PATH
14638  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14639  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14640  # the default ld.so.conf also contains /usr/contrib/lib and
14641  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14642  # libtool to hard-code these into programs
14643  ;;
14644
14645cygwin* | mingw* | pw32*)
14646  version_type=windows
14647  shrext_cmds=".dll"
14648  need_version=no
14649  need_lib_prefix=no
14650
14651  case $GCC,$host_os in
14652  yes,cygwin* | yes,mingw* | yes,pw32*)
14653    library_names_spec='$libname.dll.a'
14654    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14655    postinstall_cmds='base_file=`basename \${file}`~
14656      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14657      dldir=$destdir/`dirname \$dlpath`~
14658      test -d \$dldir || mkdir -p \$dldir~
14659      $install_prog $dir/$dlname \$dldir/$dlname'
14660    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14661      dlpath=$dir/\$dldll~
14662       $rm \$dlpath'
14663    shlibpath_overrides_runpath=yes
14664
14665    case $host_os in
14666    cygwin*)
14667      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14668      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14669      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14670      ;;
14671    mingw*)
14672      # MinGW DLLs use traditional 'lib' prefix
14673      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14674      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14675      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14676        # It is most probably a Windows format PATH printed by
14677        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14678        # path with ; separators, and with drive letters. We can handle the
14679        # drive letters (cygwin fileutils understands them), so leave them,
14680        # especially as we might pass files found there to a mingw objdump,
14681        # which wouldn't understand a cygwinified path. Ahh.
14682        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14683      else
14684        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14685      fi
14686      ;;
14687    pw32*)
14688      # pw32 DLLs use 'pw' prefix rather than 'lib'
14689      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14690      ;;
14691    esac
14692    ;;
14693
14694  *)
14695    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14696    ;;
14697  esac
14698  dynamic_linker='Win32 ld.exe'
14699  # FIXME: first we should search . and the directory the executable is in
14700  shlibpath_var=PATH
14701  ;;
14702
14703darwin* | rhapsody*)
14704  dynamic_linker="$host_os dyld"
14705  version_type=darwin
14706  need_lib_prefix=no
14707  need_version=no
14708  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14709  soname_spec='${libname}${release}${major}$shared_ext'
14710  shlibpath_overrides_runpath=yes
14711  shlibpath_var=DYLD_LIBRARY_PATH
14712  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14713  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14714  if test "$GCC" = yes; then
14715    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"`
14716  else
14717    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14718  fi
14719  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14720  ;;
14721
14722dgux*)
14723  version_type=linux
14724  need_lib_prefix=no
14725  need_version=no
14726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14727  soname_spec='${libname}${release}${shared_ext}$major'
14728  shlibpath_var=LD_LIBRARY_PATH
14729  ;;
14730
14731freebsd1*)
14732  dynamic_linker=no
14733  ;;
14734
14735kfreebsd*-gnu)
14736  version_type=linux
14737  need_lib_prefix=no
14738  need_version=no
14739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14740  soname_spec='${libname}${release}${shared_ext}$major'
14741  shlibpath_var=LD_LIBRARY_PATH
14742  shlibpath_overrides_runpath=no
14743  hardcode_into_libs=yes
14744  dynamic_linker='GNU ld.so'
14745  ;;
14746
14747freebsd*)
14748  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14749  version_type=freebsd-$objformat
14750  case $version_type in
14751    freebsd-elf*)
14752      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14753      need_version=no
14754      need_lib_prefix=no
14755      ;;
14756    freebsd-*)
14757      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14758      need_version=yes
14759      ;;
14760  esac
14761  shlibpath_var=LD_LIBRARY_PATH
14762  case $host_os in
14763  freebsd2*)
14764    shlibpath_overrides_runpath=yes
14765    ;;
14766  freebsd3.01* | freebsdelf3.01*)
14767    shlibpath_overrides_runpath=yes
14768    hardcode_into_libs=yes
14769    ;;
14770  *) # from 3.2 on
14771    shlibpath_overrides_runpath=no
14772    hardcode_into_libs=yes
14773    ;;
14774  esac
14775  ;;
14776
14777gnu*)
14778  version_type=linux
14779  need_lib_prefix=no
14780  need_version=no
14781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14782  soname_spec='${libname}${release}${shared_ext}$major'
14783  shlibpath_var=LD_LIBRARY_PATH
14784  hardcode_into_libs=yes
14785  ;;
14786
14787hpux9* | hpux10* | hpux11*)
14788  # Give a soname corresponding to the major version so that dld.sl refuses to
14789  # link against other versions.
14790  version_type=sunos
14791  need_lib_prefix=no
14792  need_version=no
14793  case "$host_cpu" in
14794  ia64*)
14795    shrext_cmds='.so'
14796    hardcode_into_libs=yes
14797    dynamic_linker="$host_os dld.so"
14798    shlibpath_var=LD_LIBRARY_PATH
14799    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801    soname_spec='${libname}${release}${shared_ext}$major'
14802    if test "X$HPUX_IA64_MODE" = X32; then
14803      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14804    else
14805      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14806    fi
14807    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14808    ;;
14809   hppa*64*)
14810     shrext_cmds='.sl'
14811     hardcode_into_libs=yes
14812     dynamic_linker="$host_os dld.sl"
14813     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14814     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14816     soname_spec='${libname}${release}${shared_ext}$major'
14817     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14818     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14819     ;;
14820   *)
14821    shrext_cmds='.sl'
14822    dynamic_linker="$host_os dld.sl"
14823    shlibpath_var=SHLIB_PATH
14824    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14825    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826    soname_spec='${libname}${release}${shared_ext}$major'
14827    ;;
14828  esac
14829  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14830  postinstall_cmds='chmod 555 $lib'
14831  ;;
14832
14833irix5* | irix6* | nonstopux*)
14834  case $host_os in
14835    nonstopux*) version_type=nonstopux ;;
14836    *)
14837	if test "$lt_cv_prog_gnu_ld" = yes; then
14838		version_type=linux
14839	else
14840		version_type=irix
14841	fi ;;
14842  esac
14843  need_lib_prefix=no
14844  need_version=no
14845  soname_spec='${libname}${release}${shared_ext}$major'
14846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14847  case $host_os in
14848  irix5* | nonstopux*)
14849    libsuff= shlibsuff=
14850    ;;
14851  *)
14852    case $LD in # libtool.m4 will add one of these switches to LD
14853    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14854      libsuff= shlibsuff= libmagic=32-bit;;
14855    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14856      libsuff=32 shlibsuff=N32 libmagic=N32;;
14857    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14858      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14859    *) libsuff= shlibsuff= libmagic=never-match;;
14860    esac
14861    ;;
14862  esac
14863  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14864  shlibpath_overrides_runpath=no
14865  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14866  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14867  hardcode_into_libs=yes
14868  ;;
14869
14870# No shared lib support for Linux oldld, aout, or coff.
14871linux*oldld* | linux*aout* | linux*coff*)
14872  dynamic_linker=no
14873  ;;
14874
14875# This must be Linux ELF.
14876linux*)
14877  version_type=linux
14878  need_lib_prefix=no
14879  need_version=no
14880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881  soname_spec='${libname}${release}${shared_ext}$major'
14882  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14883  shlibpath_var=LD_LIBRARY_PATH
14884  shlibpath_overrides_runpath=no
14885  # This implies no fast_install, which is unacceptable.
14886  # Some rework will be needed to allow for fast_install
14887  # before this can be enabled.
14888  hardcode_into_libs=yes
14889
14890  # Append ld.so.conf contents to the search path
14891  if test -f /etc/ld.so.conf; then
14892    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14893    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14894  fi
14895
14896  # We used to test for /lib/ld.so.1 and disable shared libraries on
14897  # powerpc, because MkLinux only supported shared libraries with the
14898  # GNU dynamic linker.  Since this was broken with cross compilers,
14899  # most powerpc-linux boxes support dynamic linking these days and
14900  # people can always --disable-shared, the test was removed, and we
14901  # assume the GNU/Linux dynamic linker is in use.
14902  dynamic_linker='GNU/Linux ld.so'
14903  ;;
14904
14905knetbsd*-gnu)
14906  version_type=linux
14907  need_lib_prefix=no
14908  need_version=no
14909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14910  soname_spec='${libname}${release}${shared_ext}$major'
14911  shlibpath_var=LD_LIBRARY_PATH
14912  shlibpath_overrides_runpath=no
14913  hardcode_into_libs=yes
14914  dynamic_linker='GNU ld.so'
14915  ;;
14916
14917netbsd*)
14918  version_type=sunos
14919  need_lib_prefix=no
14920  need_version=no
14921  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14922    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14923    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14924    dynamic_linker='NetBSD (a.out) ld.so'
14925  else
14926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14927    soname_spec='${libname}${release}${shared_ext}$major'
14928    dynamic_linker='NetBSD ld.elf_so'
14929  fi
14930  shlibpath_var=LD_LIBRARY_PATH
14931  shlibpath_overrides_runpath=yes
14932  hardcode_into_libs=yes
14933  ;;
14934
14935newsos6)
14936  version_type=linux
14937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938  shlibpath_var=LD_LIBRARY_PATH
14939  shlibpath_overrides_runpath=yes
14940  ;;
14941
14942nto-qnx*)
14943  version_type=linux
14944  need_lib_prefix=no
14945  need_version=no
14946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947  soname_spec='${libname}${release}${shared_ext}$major'
14948  shlibpath_var=LD_LIBRARY_PATH
14949  shlibpath_overrides_runpath=yes
14950  ;;
14951
14952openbsd*)
14953  version_type=sunos
14954  need_lib_prefix=no
14955  need_version=no
14956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14958  shlibpath_var=LD_LIBRARY_PATH
14959  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14960    case $host_os in
14961      openbsd2.[89] | openbsd2.[89].*)
14962	shlibpath_overrides_runpath=no
14963	;;
14964      *)
14965	shlibpath_overrides_runpath=yes
14966	;;
14967      esac
14968  else
14969    shlibpath_overrides_runpath=yes
14970  fi
14971  ;;
14972
14973os2*)
14974  libname_spec='$name'
14975  shrext_cmds=".dll"
14976  need_lib_prefix=no
14977  library_names_spec='$libname${shared_ext} $libname.a'
14978  dynamic_linker='OS/2 ld.exe'
14979  shlibpath_var=LIBPATH
14980  ;;
14981
14982osf3* | osf4* | osf5*)
14983  version_type=osf
14984  need_lib_prefix=no
14985  need_version=no
14986  soname_spec='${libname}${release}${shared_ext}$major'
14987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988  shlibpath_var=LD_LIBRARY_PATH
14989  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14990  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14991  ;;
14992
14993sco3.2v5*)
14994  version_type=osf
14995  soname_spec='${libname}${release}${shared_ext}$major'
14996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997  shlibpath_var=LD_LIBRARY_PATH
14998  ;;
14999
15000solaris*)
15001  version_type=linux
15002  need_lib_prefix=no
15003  need_version=no
15004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005  soname_spec='${libname}${release}${shared_ext}$major'
15006  shlibpath_var=LD_LIBRARY_PATH
15007  shlibpath_overrides_runpath=yes
15008  hardcode_into_libs=yes
15009  # ldd complains unless libraries are executable
15010  postinstall_cmds='chmod +x $lib'
15011  ;;
15012
15013sunos4*)
15014  version_type=sunos
15015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15016  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15017  shlibpath_var=LD_LIBRARY_PATH
15018  shlibpath_overrides_runpath=yes
15019  if test "$with_gnu_ld" = yes; then
15020    need_lib_prefix=no
15021  fi
15022  need_version=yes
15023  ;;
15024
15025sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15026  version_type=linux
15027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028  soname_spec='${libname}${release}${shared_ext}$major'
15029  shlibpath_var=LD_LIBRARY_PATH
15030  case $host_vendor in
15031    sni)
15032      shlibpath_overrides_runpath=no
15033      need_lib_prefix=no
15034      export_dynamic_flag_spec='${wl}-Blargedynsym'
15035      runpath_var=LD_RUN_PATH
15036      ;;
15037    siemens)
15038      need_lib_prefix=no
15039      ;;
15040    motorola)
15041      need_lib_prefix=no
15042      need_version=no
15043      shlibpath_overrides_runpath=no
15044      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15045      ;;
15046  esac
15047  ;;
15048
15049sysv4*MP*)
15050  if test -d /usr/nec ;then
15051    version_type=linux
15052    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15053    soname_spec='$libname${shared_ext}.$major'
15054    shlibpath_var=LD_LIBRARY_PATH
15055  fi
15056  ;;
15057
15058uts4*)
15059  version_type=linux
15060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061  soname_spec='${libname}${release}${shared_ext}$major'
15062  shlibpath_var=LD_LIBRARY_PATH
15063  ;;
15064
15065*)
15066  dynamic_linker=no
15067  ;;
15068esac
15069echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15070echo "${ECHO_T}$dynamic_linker" >&6
15071test "$dynamic_linker" = no && can_build_shared=no
15072
15073echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15074echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15075hardcode_action_F77=
15076if test -n "$hardcode_libdir_flag_spec_F77" || \
15077   test -n "$runpath_var_F77" || \
15078   test "X$hardcode_automatic_F77" = "Xyes" ; then
15079
15080  # We can hardcode non-existant directories.
15081  if test "$hardcode_direct_F77" != no &&
15082     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15083     # have to relink, otherwise we might link with an installed library
15084     # when we should be linking with a yet-to-be-installed one
15085     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15086     test "$hardcode_minus_L_F77" != no; then
15087    # Linking always hardcodes the temporary library directory.
15088    hardcode_action_F77=relink
15089  else
15090    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15091    hardcode_action_F77=immediate
15092  fi
15093else
15094  # We cannot hardcode anything, or else we can only hardcode existing
15095  # directories.
15096  hardcode_action_F77=unsupported
15097fi
15098echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15099echo "${ECHO_T}$hardcode_action_F77" >&6
15100
15101if test "$hardcode_action_F77" = relink; then
15102  # Fast installation is not supported
15103  enable_fast_install=no
15104elif test "$shlibpath_overrides_runpath" = yes ||
15105     test "$enable_shared" = no; then
15106  # Fast installation is not necessary
15107  enable_fast_install=needless
15108fi
15109
15110striplib=
15111old_striplib=
15112echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15113echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15114if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15115  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15116  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15117  echo "$as_me:$LINENO: result: yes" >&5
15118echo "${ECHO_T}yes" >&6
15119else
15120# FIXME - insert some real tests, host_os isn't really good enough
15121  case $host_os in
15122   darwin*)
15123       if test -n "$STRIP" ; then
15124         striplib="$STRIP -x"
15125         echo "$as_me:$LINENO: result: yes" >&5
15126echo "${ECHO_T}yes" >&6
15127       else
15128  echo "$as_me:$LINENO: result: no" >&5
15129echo "${ECHO_T}no" >&6
15130fi
15131       ;;
15132   *)
15133  echo "$as_me:$LINENO: result: no" >&5
15134echo "${ECHO_T}no" >&6
15135    ;;
15136  esac
15137fi
15138
15139
15140
15141# The else clause should only fire when bootstrapping the
15142# libtool distribution, otherwise you forgot to ship ltmain.sh
15143# with your package, and you will get complaints that there are
15144# no rules to generate ltmain.sh.
15145if test -f "$ltmain"; then
15146  # See if we are running on zsh, and set the options which allow our commands through
15147  # without removal of \ escapes.
15148  if test -n "${ZSH_VERSION+set}" ; then
15149    setopt NO_GLOB_SUBST
15150  fi
15151  # Now quote all the things that may contain metacharacters while being
15152  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15153  # variables and quote the copies for generation of the libtool script.
15154  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15155    SED SHELL STRIP \
15156    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15157    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15158    deplibs_check_method reload_flag reload_cmds need_locks \
15159    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15160    lt_cv_sys_global_symbol_to_c_name_address \
15161    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15162    old_postinstall_cmds old_postuninstall_cmds \
15163    compiler_F77 \
15164    CC_F77 \
15165    LD_F77 \
15166    lt_prog_compiler_wl_F77 \
15167    lt_prog_compiler_pic_F77 \
15168    lt_prog_compiler_static_F77 \
15169    lt_prog_compiler_no_builtin_flag_F77 \
15170    export_dynamic_flag_spec_F77 \
15171    thread_safe_flag_spec_F77 \
15172    whole_archive_flag_spec_F77 \
15173    enable_shared_with_static_runtimes_F77 \
15174    old_archive_cmds_F77 \
15175    old_archive_from_new_cmds_F77 \
15176    predep_objects_F77 \
15177    postdep_objects_F77 \
15178    predeps_F77 \
15179    postdeps_F77 \
15180    compiler_lib_search_path_F77 \
15181    archive_cmds_F77 \
15182    archive_expsym_cmds_F77 \
15183    postinstall_cmds_F77 \
15184    postuninstall_cmds_F77 \
15185    old_archive_from_expsyms_cmds_F77 \
15186    allow_undefined_flag_F77 \
15187    no_undefined_flag_F77 \
15188    export_symbols_cmds_F77 \
15189    hardcode_libdir_flag_spec_F77 \
15190    hardcode_libdir_flag_spec_ld_F77 \
15191    hardcode_libdir_separator_F77 \
15192    hardcode_automatic_F77 \
15193    module_cmds_F77 \
15194    module_expsym_cmds_F77 \
15195    lt_cv_prog_compiler_c_o_F77 \
15196    exclude_expsyms_F77 \
15197    include_expsyms_F77; do
15198
15199    case $var in
15200    old_archive_cmds_F77 | \
15201    old_archive_from_new_cmds_F77 | \
15202    archive_cmds_F77 | \
15203    archive_expsym_cmds_F77 | \
15204    module_cmds_F77 | \
15205    module_expsym_cmds_F77 | \
15206    old_archive_from_expsyms_cmds_F77 | \
15207    export_symbols_cmds_F77 | \
15208    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15209    postinstall_cmds | postuninstall_cmds | \
15210    old_postinstall_cmds | old_postuninstall_cmds | \
15211    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15212      # Double-quote double-evaled strings.
15213      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15214      ;;
15215    *)
15216      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15217      ;;
15218    esac
15219  done
15220
15221  case $lt_echo in
15222  *'\$0 --fallback-echo"')
15223    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15224    ;;
15225  esac
15226
15227cfgfile="$ofile"
15228
15229  cat <<__EOF__ >> "$cfgfile"
15230# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15231
15232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15233
15234# Shell to use when invoking shell scripts.
15235SHELL=$lt_SHELL
15236
15237# Whether or not to build shared libraries.
15238build_libtool_libs=$enable_shared
15239
15240# Whether or not to build static libraries.
15241build_old_libs=$enable_static
15242
15243# Whether or not to add -lc for building shared libraries.
15244build_libtool_need_lc=$archive_cmds_need_lc_F77
15245
15246# Whether or not to disallow shared libs when runtime libs are static
15247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15248
15249# Whether or not to optimize for fast installation.
15250fast_install=$enable_fast_install
15251
15252# The host system.
15253host_alias=$host_alias
15254host=$host
15255
15256# An echo program that does not interpret backslashes.
15257echo=$lt_echo
15258
15259# The archiver.
15260AR=$lt_AR
15261AR_FLAGS=$lt_AR_FLAGS
15262
15263# A C compiler.
15264LTCC=$lt_LTCC
15265
15266# A language-specific compiler.
15267CC=$lt_compiler_F77
15268
15269# Is the compiler the GNU C compiler?
15270with_gcc=$GCC_F77
15271
15272# An ERE matcher.
15273EGREP=$lt_EGREP
15274
15275# The linker used to build libraries.
15276LD=$lt_LD_F77
15277
15278# Whether we need hard or soft links.
15279LN_S=$lt_LN_S
15280
15281# A BSD-compatible nm program.
15282NM=$lt_NM
15283
15284# A symbol stripping program
15285STRIP=$lt_STRIP
15286
15287# Used to examine libraries when file_magic_cmd begins "file"
15288MAGIC_CMD=$MAGIC_CMD
15289
15290# Used on cygwin: DLL creation program.
15291DLLTOOL="$DLLTOOL"
15292
15293# Used on cygwin: object dumper.
15294OBJDUMP="$OBJDUMP"
15295
15296# Used on cygwin: assembler.
15297AS="$AS"
15298
15299# The name of the directory that contains temporary libtool files.
15300objdir=$objdir
15301
15302# How to create reloadable object files.
15303reload_flag=$lt_reload_flag
15304reload_cmds=$lt_reload_cmds
15305
15306# How to pass a linker flag through the compiler.
15307wl=$lt_lt_prog_compiler_wl_F77
15308
15309# Object file suffix (normally "o").
15310objext="$ac_objext"
15311
15312# Old archive suffix (normally "a").
15313libext="$libext"
15314
15315# Shared library suffix (normally ".so").
15316shrext_cmds='$shrext_cmds'
15317
15318# Executable file suffix (normally "").
15319exeext="$exeext"
15320
15321# Additional compiler flags for building library objects.
15322pic_flag=$lt_lt_prog_compiler_pic_F77
15323pic_mode=$pic_mode
15324
15325# What is the maximum length of a command?
15326max_cmd_len=$lt_cv_sys_max_cmd_len
15327
15328# Does compiler simultaneously support -c and -o options?
15329compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15330
15331# Must we lock files when doing compilation ?
15332need_locks=$lt_need_locks
15333
15334# Do we need the lib prefix for modules?
15335need_lib_prefix=$need_lib_prefix
15336
15337# Do we need a version for libraries?
15338need_version=$need_version
15339
15340# Whether dlopen is supported.
15341dlopen_support=$enable_dlopen
15342
15343# Whether dlopen of programs is supported.
15344dlopen_self=$enable_dlopen_self
15345
15346# Whether dlopen of statically linked programs is supported.
15347dlopen_self_static=$enable_dlopen_self_static
15348
15349# Compiler flag to prevent dynamic linking.
15350link_static_flag=$lt_lt_prog_compiler_static_F77
15351
15352# Compiler flag to turn off builtin functions.
15353no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15354
15355# Compiler flag to allow reflexive dlopens.
15356export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15357
15358# Compiler flag to generate shared objects directly from archives.
15359whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15360
15361# Compiler flag to generate thread-safe objects.
15362thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15363
15364# Library versioning type.
15365version_type=$version_type
15366
15367# Format of library name prefix.
15368libname_spec=$lt_libname_spec
15369
15370# List of archive names.  First name is the real one, the rest are links.
15371# The last name is the one that the linker finds with -lNAME.
15372library_names_spec=$lt_library_names_spec
15373
15374# The coded name of the library, if different from the real name.
15375soname_spec=$lt_soname_spec
15376
15377# Commands used to build and install an old-style archive.
15378RANLIB=$lt_RANLIB
15379old_archive_cmds=$lt_old_archive_cmds_F77
15380old_postinstall_cmds=$lt_old_postinstall_cmds
15381old_postuninstall_cmds=$lt_old_postuninstall_cmds
15382
15383# Create an old-style archive from a shared archive.
15384old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15385
15386# Create a temporary old-style archive to link instead of a shared archive.
15387old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15388
15389# Commands used to build and install a shared archive.
15390archive_cmds=$lt_archive_cmds_F77
15391archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15392postinstall_cmds=$lt_postinstall_cmds
15393postuninstall_cmds=$lt_postuninstall_cmds
15394
15395# Commands used to build a loadable module (assumed same as above if empty)
15396module_cmds=$lt_module_cmds_F77
15397module_expsym_cmds=$lt_module_expsym_cmds_F77
15398
15399# Commands to strip libraries.
15400old_striplib=$lt_old_striplib
15401striplib=$lt_striplib
15402
15403# Dependencies to place before the objects being linked to create a
15404# shared library.
15405predep_objects=$lt_predep_objects_F77
15406
15407# Dependencies to place after the objects being linked to create a
15408# shared library.
15409postdep_objects=$lt_postdep_objects_F77
15410
15411# Dependencies to place before the objects being linked to create a
15412# shared library.
15413predeps=$lt_predeps_F77
15414
15415# Dependencies to place after the objects being linked to create a
15416# shared library.
15417postdeps=$lt_postdeps_F77
15418
15419# The library search path used internally by the compiler when linking
15420# a shared library.
15421compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15422
15423# Method to check whether dependent libraries are shared objects.
15424deplibs_check_method=$lt_deplibs_check_method
15425
15426# Command to use when deplibs_check_method == file_magic.
15427file_magic_cmd=$lt_file_magic_cmd
15428
15429# Flag that allows shared libraries with undefined symbols to be built.
15430allow_undefined_flag=$lt_allow_undefined_flag_F77
15431
15432# Flag that forces no undefined symbols.
15433no_undefined_flag=$lt_no_undefined_flag_F77
15434
15435# Commands used to finish a libtool library installation in a directory.
15436finish_cmds=$lt_finish_cmds
15437
15438# Same as above, but a single script fragment to be evaled but not shown.
15439finish_eval=$lt_finish_eval
15440
15441# Take the output of nm and produce a listing of raw symbols and C names.
15442global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15443
15444# Transform the output of nm in a proper C declaration
15445global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15446
15447# Transform the output of nm in a C name address pair
15448global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15449
15450# This is the shared library runtime path variable.
15451runpath_var=$runpath_var
15452
15453# This is the shared library path variable.
15454shlibpath_var=$shlibpath_var
15455
15456# Is shlibpath searched before the hard-coded library search path?
15457shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15458
15459# How to hardcode a shared library path into an executable.
15460hardcode_action=$hardcode_action_F77
15461
15462# Whether we should hardcode library paths into libraries.
15463hardcode_into_libs=$hardcode_into_libs
15464
15465# Flag to hardcode \$libdir into a binary during linking.
15466# This must work even if \$libdir does not exist.
15467hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15468
15469# If ld is used when linking, flag to hardcode \$libdir into
15470# a binary during linking. This must work even if \$libdir does
15471# not exist.
15472hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15473
15474# Whether we need a single -rpath flag with a separated argument.
15475hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15476
15477# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15478# resulting binary.
15479hardcode_direct=$hardcode_direct_F77
15480
15481# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15482# resulting binary.
15483hardcode_minus_L=$hardcode_minus_L_F77
15484
15485# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15486# the resulting binary.
15487hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15488
15489# Set to yes if building a shared library automatically hardcodes DIR into the library
15490# and all subsequent libraries and executables linked against it.
15491hardcode_automatic=$hardcode_automatic_F77
15492
15493# Variables whose values should be saved in libtool wrapper scripts and
15494# restored at relink time.
15495variables_saved_for_relink="$variables_saved_for_relink"
15496
15497# Whether libtool must link a program against all its dependency libraries.
15498link_all_deplibs=$link_all_deplibs_F77
15499
15500# Compile-time system search path for libraries
15501sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15502
15503# Run-time system search path for libraries
15504sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15505
15506# Fix the shell variable \$srcfile for the compiler.
15507fix_srcfile_path="$fix_srcfile_path_F77"
15508
15509# Set to yes if exported symbols are required.
15510always_export_symbols=$always_export_symbols_F77
15511
15512# The commands to list exported symbols.
15513export_symbols_cmds=$lt_export_symbols_cmds_F77
15514
15515# The commands to extract the exported symbol list from a shared archive.
15516extract_expsyms_cmds=$lt_extract_expsyms_cmds
15517
15518# Symbols that should not be listed in the preloaded symbols.
15519exclude_expsyms=$lt_exclude_expsyms_F77
15520
15521# Symbols that must always be exported.
15522include_expsyms=$lt_include_expsyms_F77
15523
15524# ### END LIBTOOL TAG CONFIG: $tagname
15525
15526__EOF__
15527
15528
15529else
15530  # If there is no Makefile yet, we rely on a make rule to execute
15531  # `config.status --recheck' to rerun these tests and create the
15532  # libtool script then.
15533  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15534  if test -f "$ltmain_in"; then
15535    test -f Makefile && make "$ltmain"
15536  fi
15537fi
15538
15539
15540ac_ext=c
15541ac_cpp='$CPP $CPPFLAGS'
15542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15544ac_compiler_gnu=$ac_cv_c_compiler_gnu
15545
15546CC="$lt_save_CC"
15547
15548	else
15549	  tagname=""
15550	fi
15551	;;
15552
15553      GCJ)
15554	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15555
15556
15557
15558# Source file extension for Java test sources.
15559ac_ext=java
15560
15561# Object file extension for compiled Java test sources.
15562objext=o
15563objext_GCJ=$objext
15564
15565# Code to be used in simple compile tests
15566lt_simple_compile_test_code="class foo {}\n"
15567
15568# Code to be used in simple link tests
15569lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15570
15571# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15572
15573# If no C compiler was specified, use CC.
15574LTCC=${LTCC-"$CC"}
15575
15576# Allow CC to be a program name with arguments.
15577compiler=$CC
15578
15579
15580# Allow CC to be a program name with arguments.
15581lt_save_CC="$CC"
15582CC=${GCJ-"gcj"}
15583compiler=$CC
15584compiler_GCJ=$CC
15585
15586# GCJ did not exist at the time GCC didn't implicitly link libc in.
15587archive_cmds_need_lc_GCJ=no
15588
15589
15590lt_prog_compiler_no_builtin_flag_GCJ=
15591
15592if test "$GCC" = yes; then
15593  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15594
15595
15596echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15597echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15598if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15599  echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
15601  lt_cv_prog_compiler_rtti_exceptions=no
15602  ac_outfile=conftest.$ac_objext
15603   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15604   lt_compiler_flag="-fno-rtti -fno-exceptions"
15605   # Insert the option either (1) after the last *FLAGS variable, or
15606   # (2) before a word containing "conftest.", or (3) at the end.
15607   # Note that $ac_compile itself does not contain backslashes and begins
15608   # with a dollar sign (not a hyphen), so the echo should work correctly.
15609   # The option is referenced via a variable to avoid confusing sed.
15610   lt_compile=`echo "$ac_compile" | $SED \
15611   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15613   -e 's:$: $lt_compiler_flag:'`
15614   (eval echo "\"\$as_me:15614: $lt_compile\"" >&5)
15615   (eval "$lt_compile" 2>conftest.err)
15616   ac_status=$?
15617   cat conftest.err >&5
15618   echo "$as_me:15618: \$? = $ac_status" >&5
15619   if (exit $ac_status) && test -s "$ac_outfile"; then
15620     # The compiler can only warn and ignore the option if not recognized
15621     # So say no if there are warnings
15622     if test ! -s conftest.err; then
15623       lt_cv_prog_compiler_rtti_exceptions=yes
15624     fi
15625   fi
15626   $rm conftest*
15627
15628fi
15629echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15630echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15631
15632if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15633    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15634else
15635    :
15636fi
15637
15638fi
15639
15640lt_prog_compiler_wl_GCJ=
15641lt_prog_compiler_pic_GCJ=
15642lt_prog_compiler_static_GCJ=
15643
15644echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15645echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15646
15647  if test "$GCC" = yes; then
15648    lt_prog_compiler_wl_GCJ='-Wl,'
15649    lt_prog_compiler_static_GCJ='-static'
15650
15651    case $host_os in
15652      aix*)
15653      # All AIX code is PIC.
15654      if test "$host_cpu" = ia64; then
15655	# AIX 5 now supports IA64 processor
15656	lt_prog_compiler_static_GCJ='-Bstatic'
15657      fi
15658      ;;
15659
15660    amigaos*)
15661      # FIXME: we need at least 68020 code to build shared libraries, but
15662      # adding the `-m68020' flag to GCC prevents building anything better,
15663      # like `-m68040'.
15664      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15665      ;;
15666
15667    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15668      # PIC is the default for these OSes.
15669      ;;
15670
15671    mingw* | pw32* | os2*)
15672      # This hack is so that the source file can tell whether it is being
15673      # built for inclusion in a dll (and should export symbols for example).
15674      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15675      ;;
15676
15677    darwin* | rhapsody*)
15678      # PIC is the default on this platform
15679      # Common symbols not allowed in MH_DYLIB files
15680      lt_prog_compiler_pic_GCJ='-fno-common'
15681      ;;
15682
15683    msdosdjgpp*)
15684      # Just because we use GCC doesn't mean we suddenly get shared libraries
15685      # on systems that don't support them.
15686      lt_prog_compiler_can_build_shared_GCJ=no
15687      enable_shared=no
15688      ;;
15689
15690    sysv4*MP*)
15691      if test -d /usr/nec; then
15692	lt_prog_compiler_pic_GCJ=-Kconform_pic
15693      fi
15694      ;;
15695
15696    hpux*)
15697      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698      # not for PA HP-UX.
15699      case "$host_cpu" in
15700      hppa*64*|ia64*)
15701	# +Z the default
15702	;;
15703      *)
15704	lt_prog_compiler_pic_GCJ='-fPIC'
15705	;;
15706      esac
15707      ;;
15708
15709    *)
15710      lt_prog_compiler_pic_GCJ='-fPIC'
15711      ;;
15712    esac
15713  else
15714    # PORTME Check for flag to pass linker flags through the system compiler.
15715    case $host_os in
15716    aix*)
15717      lt_prog_compiler_wl_GCJ='-Wl,'
15718      if test "$host_cpu" = ia64; then
15719	# AIX 5 now supports IA64 processor
15720	lt_prog_compiler_static_GCJ='-Bstatic'
15721      else
15722	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15723      fi
15724      ;;
15725      darwin*)
15726        # PIC is the default on this platform
15727        # Common symbols not allowed in MH_DYLIB files
15728       case "$cc_basename" in
15729         xlc*)
15730         lt_prog_compiler_pic_GCJ='-qnocommon'
15731         lt_prog_compiler_wl_GCJ='-Wl,'
15732         ;;
15733       esac
15734       ;;
15735
15736    mingw* | pw32* | os2*)
15737      # This hack is so that the source file can tell whether it is being
15738      # built for inclusion in a dll (and should export symbols for example).
15739      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15740      ;;
15741
15742    hpux9* | hpux10* | hpux11*)
15743      lt_prog_compiler_wl_GCJ='-Wl,'
15744      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15745      # not for PA HP-UX.
15746      case "$host_cpu" in
15747      hppa*64*|ia64*)
15748	# +Z the default
15749	;;
15750      *)
15751	lt_prog_compiler_pic_GCJ='+Z'
15752	;;
15753      esac
15754      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15755      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15756      ;;
15757
15758    irix5* | irix6* | nonstopux*)
15759      lt_prog_compiler_wl_GCJ='-Wl,'
15760      # PIC (with -KPIC) is the default.
15761      lt_prog_compiler_static_GCJ='-non_shared'
15762      ;;
15763
15764    newsos6)
15765      lt_prog_compiler_pic_GCJ='-KPIC'
15766      lt_prog_compiler_static_GCJ='-Bstatic'
15767      ;;
15768
15769    linux*)
15770      case $CC in
15771      icc* | ecc*)
15772	lt_prog_compiler_wl_GCJ='-Wl,'
15773	lt_prog_compiler_pic_GCJ='-KPIC'
15774	lt_prog_compiler_static_GCJ='-static'
15775        ;;
15776      ccc*)
15777        lt_prog_compiler_wl_GCJ='-Wl,'
15778        # All Alpha code is PIC.
15779        lt_prog_compiler_static_GCJ='-non_shared'
15780        ;;
15781      esac
15782      ;;
15783
15784    osf3* | osf4* | osf5*)
15785      lt_prog_compiler_wl_GCJ='-Wl,'
15786      # All OSF/1 code is PIC.
15787      lt_prog_compiler_static_GCJ='-non_shared'
15788      ;;
15789
15790    sco3.2v5*)
15791      lt_prog_compiler_pic_GCJ='-Kpic'
15792      lt_prog_compiler_static_GCJ='-dn'
15793      ;;
15794
15795    solaris*)
15796      lt_prog_compiler_wl_GCJ='-Wl,'
15797      lt_prog_compiler_pic_GCJ='-KPIC'
15798      lt_prog_compiler_static_GCJ='-Bstatic'
15799      ;;
15800
15801    sunos4*)
15802      lt_prog_compiler_wl_GCJ='-Qoption ld '
15803      lt_prog_compiler_pic_GCJ='-PIC'
15804      lt_prog_compiler_static_GCJ='-Bstatic'
15805      ;;
15806
15807    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15808      lt_prog_compiler_wl_GCJ='-Wl,'
15809      lt_prog_compiler_pic_GCJ='-KPIC'
15810      lt_prog_compiler_static_GCJ='-Bstatic'
15811      ;;
15812
15813    sysv4*MP*)
15814      if test -d /usr/nec ;then
15815	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15816	lt_prog_compiler_static_GCJ='-Bstatic'
15817      fi
15818      ;;
15819
15820    uts4*)
15821      lt_prog_compiler_pic_GCJ='-pic'
15822      lt_prog_compiler_static_GCJ='-Bstatic'
15823      ;;
15824
15825    *)
15826      lt_prog_compiler_can_build_shared_GCJ=no
15827      ;;
15828    esac
15829  fi
15830
15831echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15832echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15833
15834#
15835# Check to make sure the PIC flag actually works.
15836#
15837if test -n "$lt_prog_compiler_pic_GCJ"; then
15838
15839echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15840echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15841if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15842  echo $ECHO_N "(cached) $ECHO_C" >&6
15843else
15844  lt_prog_compiler_pic_works_GCJ=no
15845  ac_outfile=conftest.$ac_objext
15846   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15847   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15848   # Insert the option either (1) after the last *FLAGS variable, or
15849   # (2) before a word containing "conftest.", or (3) at the end.
15850   # Note that $ac_compile itself does not contain backslashes and begins
15851   # with a dollar sign (not a hyphen), so the echo should work correctly.
15852   # The option is referenced via a variable to avoid confusing sed.
15853   lt_compile=`echo "$ac_compile" | $SED \
15854   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15855   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15856   -e 's:$: $lt_compiler_flag:'`
15857   (eval echo "\"\$as_me:15857: $lt_compile\"" >&5)
15858   (eval "$lt_compile" 2>conftest.err)
15859   ac_status=$?
15860   cat conftest.err >&5
15861   echo "$as_me:15861: \$? = $ac_status" >&5
15862   if (exit $ac_status) && test -s "$ac_outfile"; then
15863     # The compiler can only warn and ignore the option if not recognized
15864     # So say no if there are warnings
15865     if test ! -s conftest.err; then
15866       lt_prog_compiler_pic_works_GCJ=yes
15867     fi
15868   fi
15869   $rm conftest*
15870
15871fi
15872echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15873echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15874
15875if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15876    case $lt_prog_compiler_pic_GCJ in
15877     "" | " "*) ;;
15878     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15879     esac
15880else
15881    lt_prog_compiler_pic_GCJ=
15882     lt_prog_compiler_can_build_shared_GCJ=no
15883fi
15884
15885fi
15886case "$host_os" in
15887  # For platforms which do not support PIC, -DPIC is meaningless:
15888  *djgpp*)
15889    lt_prog_compiler_pic_GCJ=
15890    ;;
15891  *)
15892    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15893    ;;
15894esac
15895
15896echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15897echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15898if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15899  echo $ECHO_N "(cached) $ECHO_C" >&6
15900else
15901  lt_cv_prog_compiler_c_o_GCJ=no
15902   $rm -r conftest 2>/dev/null
15903   mkdir conftest
15904   cd conftest
15905   mkdir out
15906   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15907
15908   lt_compiler_flag="-o out/conftest2.$ac_objext"
15909   # Insert the option either (1) after the last *FLAGS variable, or
15910   # (2) before a word containing "conftest.", or (3) at the end.
15911   # Note that $ac_compile itself does not contain backslashes and begins
15912   # with a dollar sign (not a hyphen), so the echo should work correctly.
15913   lt_compile=`echo "$ac_compile" | $SED \
15914   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15915   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15916   -e 's:$: $lt_compiler_flag:'`
15917   (eval echo "\"\$as_me:15917: $lt_compile\"" >&5)
15918   (eval "$lt_compile" 2>out/conftest.err)
15919   ac_status=$?
15920   cat out/conftest.err >&5
15921   echo "$as_me:15921: \$? = $ac_status" >&5
15922   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15923   then
15924     # The compiler can only warn and ignore the option if not recognized
15925     # So say no if there are warnings
15926     if test ! -s out/conftest.err; then
15927       lt_cv_prog_compiler_c_o_GCJ=yes
15928     fi
15929   fi
15930   chmod u+w .
15931   $rm conftest*
15932   # SGI C++ compiler will create directory out/ii_files/ for
15933   # template instantiation
15934   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15935   $rm out/* && rmdir out
15936   cd ..
15937   rmdir conftest
15938   $rm conftest*
15939
15940fi
15941echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15942echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15943
15944
15945hard_links="nottested"
15946if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15947  # do not overwrite the value of need_locks provided by the user
15948  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15949echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15950  hard_links=yes
15951  $rm conftest*
15952  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15953  touch conftest.a
15954  ln conftest.a conftest.b 2>&5 || hard_links=no
15955  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15956  echo "$as_me:$LINENO: result: $hard_links" >&5
15957echo "${ECHO_T}$hard_links" >&6
15958  if test "$hard_links" = no; then
15959    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15960echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15961    need_locks=warn
15962  fi
15963else
15964  need_locks=no
15965fi
15966
15967echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15968echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15969
15970  runpath_var=
15971  allow_undefined_flag_GCJ=
15972  enable_shared_with_static_runtimes_GCJ=no
15973  archive_cmds_GCJ=
15974  archive_expsym_cmds_GCJ=
15975  old_archive_From_new_cmds_GCJ=
15976  old_archive_from_expsyms_cmds_GCJ=
15977  export_dynamic_flag_spec_GCJ=
15978  whole_archive_flag_spec_GCJ=
15979  thread_safe_flag_spec_GCJ=
15980  hardcode_libdir_flag_spec_GCJ=
15981  hardcode_libdir_flag_spec_ld_GCJ=
15982  hardcode_libdir_separator_GCJ=
15983  hardcode_direct_GCJ=no
15984  hardcode_minus_L_GCJ=no
15985  hardcode_shlibpath_var_GCJ=unsupported
15986  link_all_deplibs_GCJ=unknown
15987  hardcode_automatic_GCJ=no
15988  module_cmds_GCJ=
15989  module_expsym_cmds_GCJ=
15990  always_export_symbols_GCJ=no
15991  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15992  # include_expsyms should be a list of space-separated symbols to be *always*
15993  # included in the symbol list
15994  include_expsyms_GCJ=
15995  # exclude_expsyms can be an extended regexp of symbols to exclude
15996  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15997  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15998  # as well as any symbol that contains `d'.
15999  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16000  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16001  # platforms (ab)use it in PIC code, but their linkers get confused if
16002  # the symbol is explicitly referenced.  Since portable code cannot
16003  # rely on this symbol name, it's probably fine to never include it in
16004  # preloaded symbol tables.
16005  extract_expsyms_cmds=
16006
16007  case $host_os in
16008  cygwin* | mingw* | pw32*)
16009    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16010    # When not using gcc, we currently assume that we are using
16011    # Microsoft Visual C++.
16012    if test "$GCC" != yes; then
16013      with_gnu_ld=no
16014    fi
16015    ;;
16016  openbsd*)
16017    with_gnu_ld=no
16018    ;;
16019  esac
16020
16021  ld_shlibs_GCJ=yes
16022  if test "$with_gnu_ld" = yes; then
16023    # If archive_cmds runs LD, not CC, wlarc should be empty
16024    wlarc='${wl}'
16025
16026    # See if GNU ld supports shared libraries.
16027    case $host_os in
16028    aix3* | aix4* | aix5*)
16029      # On AIX/PPC, the GNU linker is very broken
16030      if test "$host_cpu" != ia64; then
16031	ld_shlibs_GCJ=no
16032	cat <<EOF 1>&2
16033
16034*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16035*** to be unable to reliably create shared libraries on AIX.
16036*** Therefore, libtool is disabling shared libraries support.  If you
16037*** really care for shared libraries, you may want to modify your PATH
16038*** so that a non-GNU linker is found, and then restart.
16039
16040EOF
16041      fi
16042      ;;
16043
16044    amigaos*)
16045      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)'
16046      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16047      hardcode_minus_L_GCJ=yes
16048
16049      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16050      # that the semantics of dynamic libraries on AmigaOS, at least up
16051      # to version 4, is to share data among multiple programs linked
16052      # with the same dynamic library.  Since this doesn't match the
16053      # behavior of shared libraries on other platforms, we can't use
16054      # them.
16055      ld_shlibs_GCJ=no
16056      ;;
16057
16058    beos*)
16059      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16060	allow_undefined_flag_GCJ=unsupported
16061	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16062	# support --undefined.  This deserves some investigation.  FIXME
16063	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16064      else
16065	ld_shlibs_GCJ=no
16066      fi
16067      ;;
16068
16069    cygwin* | mingw* | pw32*)
16070      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16071      # as there is no search path for DLLs.
16072      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16073      allow_undefined_flag_GCJ=unsupported
16074      always_export_symbols_GCJ=no
16075      enable_shared_with_static_runtimes_GCJ=yes
16076      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16077
16078      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16079        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16080	# If the export-symbols file already is a .def file (1st line
16081	# is EXPORTS), use it as is; otherwise, prepend...
16082	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16083	  cp $export_symbols $output_objdir/$soname.def;
16084	else
16085	  echo EXPORTS > $output_objdir/$soname.def;
16086	  cat $export_symbols >> $output_objdir/$soname.def;
16087	fi~
16088	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16089      else
16090	ld_shlibs=no
16091      fi
16092      ;;
16093
16094    netbsd*)
16095      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16096	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16097	wlarc=
16098      else
16099	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16101      fi
16102      ;;
16103
16104    solaris* | sysv5*)
16105      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16106	ld_shlibs_GCJ=no
16107	cat <<EOF 1>&2
16108
16109*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16110*** create shared libraries on Solaris systems.  Therefore, libtool
16111*** is disabling shared libraries support.  We urge you to upgrade GNU
16112*** binutils to release 2.9.1 or newer.  Another option is to modify
16113*** your PATH or compiler configuration so that the native linker is
16114*** used, and then restart.
16115
16116EOF
16117      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16118	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16119	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16120      else
16121	ld_shlibs_GCJ=no
16122      fi
16123      ;;
16124
16125    sunos4*)
16126      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16127      wlarc=
16128      hardcode_direct_GCJ=yes
16129      hardcode_shlibpath_var_GCJ=no
16130      ;;
16131
16132  linux*)
16133    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16134        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16135	archive_cmds_GCJ="$tmp_archive_cmds"
16136      supports_anon_versioning=no
16137      case `$LD -v 2>/dev/null` in
16138        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16139        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16140        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16141        *\ 2.11.*) ;; # other 2.11 versions
16142        *) supports_anon_versioning=yes ;;
16143      esac
16144      if test $supports_anon_versioning = yes; then
16145        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16146cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16147$echo "local: *; };" >> $output_objdir/$libname.ver~
16148        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16149      else
16150        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16151      fi
16152    else
16153      ld_shlibs_GCJ=no
16154    fi
16155    ;;
16156
16157    *)
16158      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16159	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16160	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16161      else
16162	ld_shlibs_GCJ=no
16163      fi
16164      ;;
16165    esac
16166
16167    if test "$ld_shlibs_GCJ" = yes; then
16168      runpath_var=LD_RUN_PATH
16169      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16170      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16171      # ancient GNU ld didn't support --whole-archive et. al.
16172      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16173 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16174      else
16175  	whole_archive_flag_spec_GCJ=
16176      fi
16177    fi
16178  else
16179    # PORTME fill in a description of your system's linker (not GNU ld)
16180    case $host_os in
16181    aix3*)
16182      allow_undefined_flag_GCJ=unsupported
16183      always_export_symbols_GCJ=yes
16184      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'
16185      # Note: this linker hardcodes the directories in LIBPATH if there
16186      # are no directories specified by -L.
16187      hardcode_minus_L_GCJ=yes
16188      if test "$GCC" = yes && test -z "$link_static_flag"; then
16189	# Neither direct hardcoding nor static linking is supported with a
16190	# broken collect2.
16191	hardcode_direct_GCJ=unsupported
16192      fi
16193      ;;
16194
16195    aix4* | aix5*)
16196      if test "$host_cpu" = ia64; then
16197	# On IA64, the linker does run time linking by default, so we don't
16198	# have to do anything special.
16199	aix_use_runtimelinking=no
16200	exp_sym_flag='-Bexport'
16201	no_entry_flag=""
16202      else
16203	# If we're using GNU nm, then we don't want the "-C" option.
16204	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16205	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16206	  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'
16207	else
16208	  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'
16209	fi
16210	aix_use_runtimelinking=no
16211
16212	# Test if we are trying to use run time linking or normal
16213	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16214	# need to do runtime linking.
16215	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16216	  for ld_flag in $LDFLAGS; do
16217  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16218  	    aix_use_runtimelinking=yes
16219  	    break
16220  	  fi
16221	  done
16222	esac
16223
16224	exp_sym_flag='-bexport'
16225	no_entry_flag='-bnoentry'
16226      fi
16227
16228      # When large executables or shared objects are built, AIX ld can
16229      # have problems creating the table of contents.  If linking a library
16230      # or program results in "error TOC overflow" add -mminimal-toc to
16231      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16232      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16233
16234      archive_cmds_GCJ=''
16235      hardcode_direct_GCJ=yes
16236      hardcode_libdir_separator_GCJ=':'
16237      link_all_deplibs_GCJ=yes
16238
16239      if test "$GCC" = yes; then
16240	case $host_os in aix4.012|aix4.012.*)
16241	# We only want to do this on AIX 4.2 and lower, the check
16242	# below for broken collect2 doesn't work under 4.3+
16243	  collect2name=`${CC} -print-prog-name=collect2`
16244	  if test -f "$collect2name" && \
16245  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16246	  then
16247  	  # We have reworked collect2
16248  	  hardcode_direct_GCJ=yes
16249	  else
16250  	  # We have old collect2
16251  	  hardcode_direct_GCJ=unsupported
16252  	  # It fails to find uninstalled libraries when the uninstalled
16253  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16254  	  # to unsupported forces relinking
16255  	  hardcode_minus_L_GCJ=yes
16256  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16257  	  hardcode_libdir_separator_GCJ=
16258	  fi
16259	esac
16260	shared_flag='-shared'
16261      else
16262	# not using gcc
16263	if test "$host_cpu" = ia64; then
16264  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16265  	# chokes on -Wl,-G. The following line is correct:
16266	  shared_flag='-G'
16267	else
16268  	if test "$aix_use_runtimelinking" = yes; then
16269	    shared_flag='${wl}-G'
16270	  else
16271	    shared_flag='${wl}-bM:SRE'
16272  	fi
16273	fi
16274      fi
16275
16276      # It seems that -bexpall does not export symbols beginning with
16277      # underscore (_), so it is better to generate a list of symbols to export.
16278      always_export_symbols_GCJ=yes
16279      if test "$aix_use_runtimelinking" = yes; then
16280	# Warning - without using the other runtime loading flags (-brtl),
16281	# -berok will link without error, but may produce a broken library.
16282	allow_undefined_flag_GCJ='-berok'
16283       # Determine the default libpath from the value encoded in an empty executable.
16284       cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h.  */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h.  */
16290
16291int
16292main ()
16293{
16294
16295  ;
16296  return 0;
16297}
16298_ACEOF
16299rm -f conftest.$ac_objext conftest$ac_exeext
16300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16301  (eval $ac_link) 2>conftest.er1
16302  ac_status=$?
16303  grep -v '^ *+' conftest.er1 >conftest.err
16304  rm -f conftest.er1
16305  cat conftest.err >&5
16306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307  (exit $ac_status); } &&
16308	 { ac_try='test -z "$ac_c_werror_flag"
16309			 || test ! -s conftest.err'
16310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311  (eval $ac_try) 2>&5
16312  ac_status=$?
16313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314  (exit $ac_status); }; } &&
16315	 { ac_try='test -s conftest$ac_exeext'
16316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317  (eval $ac_try) 2>&5
16318  ac_status=$?
16319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320  (exit $ac_status); }; }; then
16321
16322aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16323}'`
16324# Check for a 64-bit object if we didn't find anything.
16325if 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; }
16326}'`; fi
16327else
16328  echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331fi
16332rm -f conftest.err conftest.$ac_objext \
16333      conftest$ac_exeext conftest.$ac_ext
16334if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16335
16336       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16337	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"
16338       else
16339	if test "$host_cpu" = ia64; then
16340	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16341	  allow_undefined_flag_GCJ="-z nodefs"
16342	  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"
16343	else
16344	 # Determine the default libpath from the value encoded in an empty executable.
16345	 cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h.  */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h.  */
16351
16352int
16353main ()
16354{
16355
16356  ;
16357  return 0;
16358}
16359_ACEOF
16360rm -f conftest.$ac_objext conftest$ac_exeext
16361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16362  (eval $ac_link) 2>conftest.er1
16363  ac_status=$?
16364  grep -v '^ *+' conftest.er1 >conftest.err
16365  rm -f conftest.er1
16366  cat conftest.err >&5
16367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368  (exit $ac_status); } &&
16369	 { ac_try='test -z "$ac_c_werror_flag"
16370			 || test ! -s conftest.err'
16371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372  (eval $ac_try) 2>&5
16373  ac_status=$?
16374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375  (exit $ac_status); }; } &&
16376	 { ac_try='test -s conftest$ac_exeext'
16377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378  (eval $ac_try) 2>&5
16379  ac_status=$?
16380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381  (exit $ac_status); }; }; then
16382
16383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16384}'`
16385# Check for a 64-bit object if we didn't find anything.
16386if 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; }
16387}'`; fi
16388else
16389  echo "$as_me: failed program was:" >&5
16390sed 's/^/| /' conftest.$ac_ext >&5
16391
16392fi
16393rm -f conftest.err conftest.$ac_objext \
16394      conftest$ac_exeext conftest.$ac_ext
16395if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16396
16397	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16398	  # Warning - without using the other run time loading flags,
16399	  # -berok will link without error, but may produce a broken library.
16400	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16401	  allow_undefined_flag_GCJ=' ${wl}-berok'
16402	  # -bexpall does not export symbols beginning with underscore (_)
16403	  always_export_symbols_GCJ=yes
16404	  # Exported symbols can be pulled into shared objects from archives
16405	  whole_archive_flag_spec_GCJ=' '
16406	  archive_cmds_need_lc_GCJ=yes
16407	  # This is similar to how AIX traditionally builds it's shared libraries.
16408	  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'
16409	fi
16410      fi
16411      ;;
16412
16413    amigaos*)
16414      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)'
16415      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16416      hardcode_minus_L_GCJ=yes
16417      # see comment about different semantics on the GNU ld section
16418      ld_shlibs_GCJ=no
16419      ;;
16420
16421    bsdi[45]*)
16422      export_dynamic_flag_spec_GCJ=-rdynamic
16423      ;;
16424
16425    cygwin* | mingw* | pw32*)
16426      # When not using gcc, we currently assume that we are using
16427      # Microsoft Visual C++.
16428      # hardcode_libdir_flag_spec is actually meaningless, as there is
16429      # no search path for DLLs.
16430      hardcode_libdir_flag_spec_GCJ=' '
16431      allow_undefined_flag_GCJ=unsupported
16432      # Tell ltmain to make .lib files, not .a files.
16433      libext=lib
16434      # Tell ltmain to make .dll files, not .so files.
16435      shrext_cmds=".dll"
16436      # FIXME: Setting linknames here is a bad hack.
16437      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16438      # The linker will automatically build a .lib file if we build a DLL.
16439      old_archive_From_new_cmds_GCJ='true'
16440      # FIXME: Should let the user specify the lib program.
16441      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16442      fix_srcfile_path='`cygpath -w "$srcfile"`'
16443      enable_shared_with_static_runtimes_GCJ=yes
16444      ;;
16445
16446    darwin* | rhapsody*)
16447      case "$host_os" in
16448        rhapsody* | darwin1.[012])
16449         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16450         ;;
16451       *) # Darwin 1.3 on
16452         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16453           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16454         else
16455           case ${MACOSX_DEPLOYMENT_TARGET} in
16456             10.[012])
16457               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16458               ;;
16459             10.*)
16460               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16461               ;;
16462           esac
16463         fi
16464         ;;
16465      esac
16466      archive_cmds_need_lc_GCJ=no
16467      hardcode_direct_GCJ=no
16468      hardcode_automatic_GCJ=yes
16469      hardcode_shlibpath_var_GCJ=unsupported
16470      whole_archive_flag_spec_GCJ=''
16471      link_all_deplibs_GCJ=yes
16472    if test "$GCC" = yes ; then
16473    	output_verbose_link_cmd='echo'
16474        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16475      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16476      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16477      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}'
16478      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}'
16479    else
16480      case "$cc_basename" in
16481        xlc*)
16482         output_verbose_link_cmd='echo'
16483         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16484         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16485          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16486         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}'
16487          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}'
16488          ;;
16489       *)
16490         ld_shlibs_GCJ=no
16491          ;;
16492      esac
16493    fi
16494      ;;
16495
16496    dgux*)
16497      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16498      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16499      hardcode_shlibpath_var_GCJ=no
16500      ;;
16501
16502    freebsd1*)
16503      ld_shlibs_GCJ=no
16504      ;;
16505
16506    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16507    # support.  Future versions do this automatically, but an explicit c++rt0.o
16508    # does not break anything, and helps significantly (at the cost of a little
16509    # extra space).
16510    freebsd2.2*)
16511      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16512      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16513      hardcode_direct_GCJ=yes
16514      hardcode_shlibpath_var_GCJ=no
16515      ;;
16516
16517    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16518    freebsd2*)
16519      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16520      hardcode_direct_GCJ=yes
16521      hardcode_minus_L_GCJ=yes
16522      hardcode_shlibpath_var_GCJ=no
16523      ;;
16524
16525    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16526    freebsd* | kfreebsd*-gnu)
16527      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16528      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16529      hardcode_direct_GCJ=yes
16530      hardcode_shlibpath_var_GCJ=no
16531      ;;
16532
16533    hpux9*)
16534      if test "$GCC" = yes; then
16535	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'
16536      else
16537	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'
16538      fi
16539      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16540      hardcode_libdir_separator_GCJ=:
16541      hardcode_direct_GCJ=yes
16542
16543      # hardcode_minus_L: Not really in the search PATH,
16544      # but as the default location of the library.
16545      hardcode_minus_L_GCJ=yes
16546      export_dynamic_flag_spec_GCJ='${wl}-E'
16547      ;;
16548
16549    hpux10* | hpux11*)
16550      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16551	case "$host_cpu" in
16552	hppa*64*|ia64*)
16553	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16554	  ;;
16555	*)
16556	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16557	  ;;
16558	esac
16559      else
16560	case "$host_cpu" in
16561	hppa*64*|ia64*)
16562	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16563	  ;;
16564	*)
16565	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16566	  ;;
16567	esac
16568      fi
16569      if test "$with_gnu_ld" = no; then
16570	case "$host_cpu" in
16571	hppa*64*)
16572	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16573	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16574	  hardcode_libdir_separator_GCJ=:
16575	  hardcode_direct_GCJ=no
16576	  hardcode_shlibpath_var_GCJ=no
16577	  ;;
16578	ia64*)
16579	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16580	  hardcode_direct_GCJ=no
16581	  hardcode_shlibpath_var_GCJ=no
16582
16583	  # hardcode_minus_L: Not really in the search PATH,
16584	  # but as the default location of the library.
16585	  hardcode_minus_L_GCJ=yes
16586	  ;;
16587	*)
16588	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16589	  hardcode_libdir_separator_GCJ=:
16590	  hardcode_direct_GCJ=yes
16591	  export_dynamic_flag_spec_GCJ='${wl}-E'
16592
16593	  # hardcode_minus_L: Not really in the search PATH,
16594	  # but as the default location of the library.
16595	  hardcode_minus_L_GCJ=yes
16596	  ;;
16597	esac
16598      fi
16599      ;;
16600
16601    irix5* | irix6* | nonstopux*)
16602      if test "$GCC" = yes; then
16603	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'
16604      else
16605	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'
16606	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16607      fi
16608      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16609      hardcode_libdir_separator_GCJ=:
16610      link_all_deplibs_GCJ=yes
16611      ;;
16612
16613    netbsd*)
16614      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16615	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16616      else
16617	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16618      fi
16619      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16620      hardcode_direct_GCJ=yes
16621      hardcode_shlibpath_var_GCJ=no
16622      ;;
16623
16624    newsos6)
16625      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626      hardcode_direct_GCJ=yes
16627      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16628      hardcode_libdir_separator_GCJ=:
16629      hardcode_shlibpath_var_GCJ=no
16630      ;;
16631
16632    openbsd*)
16633      hardcode_direct_GCJ=yes
16634      hardcode_shlibpath_var_GCJ=no
16635      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16636	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16637	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16638	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16639	export_dynamic_flag_spec_GCJ='${wl}-E'
16640      else
16641       case $host_os in
16642	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16643	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16644	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16645	   ;;
16646	 *)
16647	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16648	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16649	   ;;
16650       esac
16651      fi
16652      ;;
16653
16654    os2*)
16655      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16656      hardcode_minus_L_GCJ=yes
16657      allow_undefined_flag_GCJ=unsupported
16658      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'
16659      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16660      ;;
16661
16662    osf3*)
16663      if test "$GCC" = yes; then
16664	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16665	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'
16666      else
16667	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16668	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'
16669      fi
16670      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16671      hardcode_libdir_separator_GCJ=:
16672      ;;
16673
16674    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16675      if test "$GCC" = yes; then
16676	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16677	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'
16678	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16679      else
16680	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16681	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'
16682	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~
16683	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16684
16685	# Both c and cxx compiler support -rpath directly
16686	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16687      fi
16688      hardcode_libdir_separator_GCJ=:
16689      ;;
16690
16691    sco3.2v5*)
16692      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16693      hardcode_shlibpath_var_GCJ=no
16694      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16695      runpath_var=LD_RUN_PATH
16696      hardcode_runpath_var=yes
16697      ;;
16698
16699    solaris*)
16700      no_undefined_flag_GCJ=' -z text'
16701      if test "$GCC" = yes; then
16702	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16703	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16704	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16705      else
16706	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16707	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16708  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16709      fi
16710      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16711      hardcode_shlibpath_var_GCJ=no
16712      case $host_os in
16713      solaris2.[0-5] | solaris2.[0-5].*) ;;
16714      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16715	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16716      esac
16717      link_all_deplibs_GCJ=yes
16718      ;;
16719
16720    sunos4*)
16721      if test "x$host_vendor" = xsequent; then
16722	# Use $CC to link under sequent, because it throws in some extra .o
16723	# files that make .init and .fini sections work.
16724	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16725      else
16726	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16727      fi
16728      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729      hardcode_direct_GCJ=yes
16730      hardcode_minus_L_GCJ=yes
16731      hardcode_shlibpath_var_GCJ=no
16732      ;;
16733
16734    sysv4)
16735      case $host_vendor in
16736	sni)
16737	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738	  hardcode_direct_GCJ=yes # is this really true???
16739	;;
16740	siemens)
16741	  ## LD is ld it makes a PLAMLIB
16742	  ## CC just makes a GrossModule.
16743	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16744	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16745	  hardcode_direct_GCJ=no
16746        ;;
16747	motorola)
16748	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16749	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16750	;;
16751      esac
16752      runpath_var='LD_RUN_PATH'
16753      hardcode_shlibpath_var_GCJ=no
16754      ;;
16755
16756    sysv4.3*)
16757      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758      hardcode_shlibpath_var_GCJ=no
16759      export_dynamic_flag_spec_GCJ='-Bexport'
16760      ;;
16761
16762    sysv4*MP*)
16763      if test -d /usr/nec; then
16764	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16765	hardcode_shlibpath_var_GCJ=no
16766	runpath_var=LD_RUN_PATH
16767	hardcode_runpath_var=yes
16768	ld_shlibs_GCJ=yes
16769      fi
16770      ;;
16771
16772    sysv4.2uw2*)
16773      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16774      hardcode_direct_GCJ=yes
16775      hardcode_minus_L_GCJ=no
16776      hardcode_shlibpath_var_GCJ=no
16777      hardcode_runpath_var=yes
16778      runpath_var=LD_RUN_PATH
16779      ;;
16780
16781   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16782      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16783      if test "$GCC" = yes; then
16784	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16785      else
16786	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16787      fi
16788      runpath_var='LD_RUN_PATH'
16789      hardcode_shlibpath_var_GCJ=no
16790      ;;
16791
16792    sysv5*)
16793      no_undefined_flag_GCJ=' -z text'
16794      # $CC -shared without GNU ld will not create a library from C++
16795      # object files and a static libstdc++, better avoid it by now
16796      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16797      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16798  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16799      hardcode_libdir_flag_spec_GCJ=
16800      hardcode_shlibpath_var_GCJ=no
16801      runpath_var='LD_RUN_PATH'
16802      ;;
16803
16804    uts4*)
16805      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16807      hardcode_shlibpath_var_GCJ=no
16808      ;;
16809
16810    *)
16811      ld_shlibs_GCJ=no
16812      ;;
16813    esac
16814  fi
16815
16816echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16817echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16818test "$ld_shlibs_GCJ" = no && can_build_shared=no
16819
16820variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16821if test "$GCC" = yes; then
16822  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16823fi
16824
16825#
16826# Do we need to explicitly link libc?
16827#
16828case "x$archive_cmds_need_lc_GCJ" in
16829x|xyes)
16830  # Assume -lc should be added
16831  archive_cmds_need_lc_GCJ=yes
16832
16833  if test "$enable_shared" = yes && test "$GCC" = yes; then
16834    case $archive_cmds_GCJ in
16835    *'~'*)
16836      # FIXME: we may have to deal with multi-command sequences.
16837      ;;
16838    '$CC '*)
16839      # Test whether the compiler implicitly links with -lc since on some
16840      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16841      # to ld, don't add -lc before -lgcc.
16842      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16843echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16844      $rm conftest*
16845      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16846
16847      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848  (eval $ac_compile) 2>&5
16849  ac_status=$?
16850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851  (exit $ac_status); } 2>conftest.err; then
16852        soname=conftest
16853        lib=conftest
16854        libobjs=conftest.$ac_objext
16855        deplibs=
16856        wl=$lt_prog_compiler_wl_GCJ
16857        compiler_flags=-v
16858        linker_flags=-v
16859        verstring=
16860        output_objdir=.
16861        libname=conftest
16862        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16863        allow_undefined_flag_GCJ=
16864        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16865  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16866  ac_status=$?
16867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868  (exit $ac_status); }
16869        then
16870	  archive_cmds_need_lc_GCJ=no
16871        else
16872	  archive_cmds_need_lc_GCJ=yes
16873        fi
16874        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16875      else
16876        cat conftest.err 1>&5
16877      fi
16878      $rm conftest*
16879      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16880echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16881      ;;
16882    esac
16883  fi
16884  ;;
16885esac
16886
16887echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16888echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16889library_names_spec=
16890libname_spec='lib$name'
16891soname_spec=
16892shrext_cmds=".so"
16893postinstall_cmds=
16894postuninstall_cmds=
16895finish_cmds=
16896finish_eval=
16897shlibpath_var=
16898shlibpath_overrides_runpath=unknown
16899version_type=none
16900dynamic_linker="$host_os ld.so"
16901sys_lib_dlsearch_path_spec="/lib /usr/lib"
16902if test "$GCC" = yes; then
16903  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16904  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16905    # if the path contains ";" then we assume it to be the separator
16906    # otherwise default to the standard path separator (i.e. ":") - it is
16907    # assumed that no part of a normal pathname contains ";" but that should
16908    # okay in the real world where ";" in dirpaths is itself problematic.
16909    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16910  else
16911    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16912  fi
16913else
16914  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16915fi
16916need_lib_prefix=unknown
16917hardcode_into_libs=no
16918
16919# when you set need_version to no, make sure it does not cause -set_version
16920# flags to be left without arguments
16921need_version=unknown
16922
16923case $host_os in
16924aix3*)
16925  version_type=linux
16926  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16927  shlibpath_var=LIBPATH
16928
16929  # AIX 3 has no versioning support, so we append a major version to the name.
16930  soname_spec='${libname}${release}${shared_ext}$major'
16931  ;;
16932
16933aix4* | aix5*)
16934  version_type=linux
16935  need_lib_prefix=no
16936  need_version=no
16937  hardcode_into_libs=yes
16938  if test "$host_cpu" = ia64; then
16939    # AIX 5 supports IA64
16940    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16941    shlibpath_var=LD_LIBRARY_PATH
16942  else
16943    # With GCC up to 2.95.x, collect2 would create an import file
16944    # for dependence libraries.  The import file would start with
16945    # the line `#! .'.  This would cause the generated library to
16946    # depend on `.', always an invalid library.  This was fixed in
16947    # development snapshots of GCC prior to 3.0.
16948    case $host_os in
16949      aix4 | aix4.[01] | aix4.[01].*)
16950      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16951	   echo ' yes '
16952	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16953	:
16954      else
16955	can_build_shared=no
16956      fi
16957      ;;
16958    esac
16959    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16960    # soname into executable. Probably we can add versioning support to
16961    # collect2, so additional links can be useful in future.
16962    if test "$aix_use_runtimelinking" = yes; then
16963      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16964      # instead of lib<name>.a to let people know that these are not
16965      # typical AIX shared libraries.
16966      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967    else
16968      # We preserve .a as extension for shared libraries through AIX4.2
16969      # and later when we are not doing run time linking.
16970      library_names_spec='${libname}${release}.a $libname.a'
16971      soname_spec='${libname}${release}${shared_ext}$major'
16972    fi
16973    shlibpath_var=LIBPATH
16974  fi
16975  ;;
16976
16977amigaos*)
16978  library_names_spec='$libname.ixlibrary $libname.a'
16979  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16980  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'
16981  ;;
16982
16983beos*)
16984  library_names_spec='${libname}${shared_ext}'
16985  dynamic_linker="$host_os ld.so"
16986  shlibpath_var=LIBRARY_PATH
16987  ;;
16988
16989bsdi[45]*)
16990  version_type=linux
16991  need_version=no
16992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993  soname_spec='${libname}${release}${shared_ext}$major'
16994  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16995  shlibpath_var=LD_LIBRARY_PATH
16996  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16997  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16998  # the default ld.so.conf also contains /usr/contrib/lib and
16999  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17000  # libtool to hard-code these into programs
17001  ;;
17002
17003cygwin* | mingw* | pw32*)
17004  version_type=windows
17005  shrext_cmds=".dll"
17006  need_version=no
17007  need_lib_prefix=no
17008
17009  case $GCC,$host_os in
17010  yes,cygwin* | yes,mingw* | yes,pw32*)
17011    library_names_spec='$libname.dll.a'
17012    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17013    postinstall_cmds='base_file=`basename \${file}`~
17014      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17015      dldir=$destdir/`dirname \$dlpath`~
17016      test -d \$dldir || mkdir -p \$dldir~
17017      $install_prog $dir/$dlname \$dldir/$dlname'
17018    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17019      dlpath=$dir/\$dldll~
17020       $rm \$dlpath'
17021    shlibpath_overrides_runpath=yes
17022
17023    case $host_os in
17024    cygwin*)
17025      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17026      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17028      ;;
17029    mingw*)
17030      # MinGW DLLs use traditional 'lib' prefix
17031      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17032      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17033      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17034        # It is most probably a Windows format PATH printed by
17035        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17036        # path with ; separators, and with drive letters. We can handle the
17037        # drive letters (cygwin fileutils understands them), so leave them,
17038        # especially as we might pass files found there to a mingw objdump,
17039        # which wouldn't understand a cygwinified path. Ahh.
17040        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17041      else
17042        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17043      fi
17044      ;;
17045    pw32*)
17046      # pw32 DLLs use 'pw' prefix rather than 'lib'
17047      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17048      ;;
17049    esac
17050    ;;
17051
17052  *)
17053    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17054    ;;
17055  esac
17056  dynamic_linker='Win32 ld.exe'
17057  # FIXME: first we should search . and the directory the executable is in
17058  shlibpath_var=PATH
17059  ;;
17060
17061darwin* | rhapsody*)
17062  dynamic_linker="$host_os dyld"
17063  version_type=darwin
17064  need_lib_prefix=no
17065  need_version=no
17066  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17067  soname_spec='${libname}${release}${major}$shared_ext'
17068  shlibpath_overrides_runpath=yes
17069  shlibpath_var=DYLD_LIBRARY_PATH
17070  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17071  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17072  if test "$GCC" = yes; then
17073    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"`
17074  else
17075    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17076  fi
17077  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17078  ;;
17079
17080dgux*)
17081  version_type=linux
17082  need_lib_prefix=no
17083  need_version=no
17084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17085  soname_spec='${libname}${release}${shared_ext}$major'
17086  shlibpath_var=LD_LIBRARY_PATH
17087  ;;
17088
17089freebsd1*)
17090  dynamic_linker=no
17091  ;;
17092
17093kfreebsd*-gnu)
17094  version_type=linux
17095  need_lib_prefix=no
17096  need_version=no
17097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17098  soname_spec='${libname}${release}${shared_ext}$major'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  shlibpath_overrides_runpath=no
17101  hardcode_into_libs=yes
17102  dynamic_linker='GNU ld.so'
17103  ;;
17104
17105freebsd*)
17106  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17107  version_type=freebsd-$objformat
17108  case $version_type in
17109    freebsd-elf*)
17110      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17111      need_version=no
17112      need_lib_prefix=no
17113      ;;
17114    freebsd-*)
17115      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17116      need_version=yes
17117      ;;
17118  esac
17119  shlibpath_var=LD_LIBRARY_PATH
17120  case $host_os in
17121  freebsd2*)
17122    shlibpath_overrides_runpath=yes
17123    ;;
17124  freebsd3.01* | freebsdelf3.01*)
17125    shlibpath_overrides_runpath=yes
17126    hardcode_into_libs=yes
17127    ;;
17128  *) # from 3.2 on
17129    shlibpath_overrides_runpath=no
17130    hardcode_into_libs=yes
17131    ;;
17132  esac
17133  ;;
17134
17135gnu*)
17136  version_type=linux
17137  need_lib_prefix=no
17138  need_version=no
17139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17140  soname_spec='${libname}${release}${shared_ext}$major'
17141  shlibpath_var=LD_LIBRARY_PATH
17142  hardcode_into_libs=yes
17143  ;;
17144
17145hpux9* | hpux10* | hpux11*)
17146  # Give a soname corresponding to the major version so that dld.sl refuses to
17147  # link against other versions.
17148  version_type=sunos
17149  need_lib_prefix=no
17150  need_version=no
17151  case "$host_cpu" in
17152  ia64*)
17153    shrext_cmds='.so'
17154    hardcode_into_libs=yes
17155    dynamic_linker="$host_os dld.so"
17156    shlibpath_var=LD_LIBRARY_PATH
17157    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159    soname_spec='${libname}${release}${shared_ext}$major'
17160    if test "X$HPUX_IA64_MODE" = X32; then
17161      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17162    else
17163      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17164    fi
17165    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17166    ;;
17167   hppa*64*)
17168     shrext_cmds='.sl'
17169     hardcode_into_libs=yes
17170     dynamic_linker="$host_os dld.sl"
17171     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17172     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17174     soname_spec='${libname}${release}${shared_ext}$major'
17175     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177     ;;
17178   *)
17179    shrext_cmds='.sl'
17180    dynamic_linker="$host_os dld.sl"
17181    shlibpath_var=SHLIB_PATH
17182    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17183    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184    soname_spec='${libname}${release}${shared_ext}$major'
17185    ;;
17186  esac
17187  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17188  postinstall_cmds='chmod 555 $lib'
17189  ;;
17190
17191irix5* | irix6* | nonstopux*)
17192  case $host_os in
17193    nonstopux*) version_type=nonstopux ;;
17194    *)
17195	if test "$lt_cv_prog_gnu_ld" = yes; then
17196		version_type=linux
17197	else
17198		version_type=irix
17199	fi ;;
17200  esac
17201  need_lib_prefix=no
17202  need_version=no
17203  soname_spec='${libname}${release}${shared_ext}$major'
17204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17205  case $host_os in
17206  irix5* | nonstopux*)
17207    libsuff= shlibsuff=
17208    ;;
17209  *)
17210    case $LD in # libtool.m4 will add one of these switches to LD
17211    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17212      libsuff= shlibsuff= libmagic=32-bit;;
17213    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17214      libsuff=32 shlibsuff=N32 libmagic=N32;;
17215    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17216      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17217    *) libsuff= shlibsuff= libmagic=never-match;;
17218    esac
17219    ;;
17220  esac
17221  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17222  shlibpath_overrides_runpath=no
17223  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17224  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17225  hardcode_into_libs=yes
17226  ;;
17227
17228# No shared lib support for Linux oldld, aout, or coff.
17229linux*oldld* | linux*aout* | linux*coff*)
17230  dynamic_linker=no
17231  ;;
17232
17233# This must be Linux ELF.
17234linux*)
17235  version_type=linux
17236  need_lib_prefix=no
17237  need_version=no
17238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17239  soname_spec='${libname}${release}${shared_ext}$major'
17240  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17241  shlibpath_var=LD_LIBRARY_PATH
17242  shlibpath_overrides_runpath=no
17243  # This implies no fast_install, which is unacceptable.
17244  # Some rework will be needed to allow for fast_install
17245  # before this can be enabled.
17246  hardcode_into_libs=yes
17247
17248  # Append ld.so.conf contents to the search path
17249  if test -f /etc/ld.so.conf; then
17250    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17251    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17252  fi
17253
17254  # We used to test for /lib/ld.so.1 and disable shared libraries on
17255  # powerpc, because MkLinux only supported shared libraries with the
17256  # GNU dynamic linker.  Since this was broken with cross compilers,
17257  # most powerpc-linux boxes support dynamic linking these days and
17258  # people can always --disable-shared, the test was removed, and we
17259  # assume the GNU/Linux dynamic linker is in use.
17260  dynamic_linker='GNU/Linux ld.so'
17261  ;;
17262
17263knetbsd*-gnu)
17264  version_type=linux
17265  need_lib_prefix=no
17266  need_version=no
17267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17268  soname_spec='${libname}${release}${shared_ext}$major'
17269  shlibpath_var=LD_LIBRARY_PATH
17270  shlibpath_overrides_runpath=no
17271  hardcode_into_libs=yes
17272  dynamic_linker='GNU ld.so'
17273  ;;
17274
17275netbsd*)
17276  version_type=sunos
17277  need_lib_prefix=no
17278  need_version=no
17279  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17281    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17282    dynamic_linker='NetBSD (a.out) ld.so'
17283  else
17284    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17285    soname_spec='${libname}${release}${shared_ext}$major'
17286    dynamic_linker='NetBSD ld.elf_so'
17287  fi
17288  shlibpath_var=LD_LIBRARY_PATH
17289  shlibpath_overrides_runpath=yes
17290  hardcode_into_libs=yes
17291  ;;
17292
17293newsos6)
17294  version_type=linux
17295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296  shlibpath_var=LD_LIBRARY_PATH
17297  shlibpath_overrides_runpath=yes
17298  ;;
17299
17300nto-qnx*)
17301  version_type=linux
17302  need_lib_prefix=no
17303  need_version=no
17304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305  soname_spec='${libname}${release}${shared_ext}$major'
17306  shlibpath_var=LD_LIBRARY_PATH
17307  shlibpath_overrides_runpath=yes
17308  ;;
17309
17310openbsd*)
17311  version_type=sunos
17312  need_lib_prefix=no
17313  need_version=no
17314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17315  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17316  shlibpath_var=LD_LIBRARY_PATH
17317  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17318    case $host_os in
17319      openbsd2.[89] | openbsd2.[89].*)
17320	shlibpath_overrides_runpath=no
17321	;;
17322      *)
17323	shlibpath_overrides_runpath=yes
17324	;;
17325      esac
17326  else
17327    shlibpath_overrides_runpath=yes
17328  fi
17329  ;;
17330
17331os2*)
17332  libname_spec='$name'
17333  shrext_cmds=".dll"
17334  need_lib_prefix=no
17335  library_names_spec='$libname${shared_ext} $libname.a'
17336  dynamic_linker='OS/2 ld.exe'
17337  shlibpath_var=LIBPATH
17338  ;;
17339
17340osf3* | osf4* | osf5*)
17341  version_type=osf
17342  need_lib_prefix=no
17343  need_version=no
17344  soname_spec='${libname}${release}${shared_ext}$major'
17345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17346  shlibpath_var=LD_LIBRARY_PATH
17347  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17348  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17349  ;;
17350
17351sco3.2v5*)
17352  version_type=osf
17353  soname_spec='${libname}${release}${shared_ext}$major'
17354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355  shlibpath_var=LD_LIBRARY_PATH
17356  ;;
17357
17358solaris*)
17359  version_type=linux
17360  need_lib_prefix=no
17361  need_version=no
17362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363  soname_spec='${libname}${release}${shared_ext}$major'
17364  shlibpath_var=LD_LIBRARY_PATH
17365  shlibpath_overrides_runpath=yes
17366  hardcode_into_libs=yes
17367  # ldd complains unless libraries are executable
17368  postinstall_cmds='chmod +x $lib'
17369  ;;
17370
17371sunos4*)
17372  version_type=sunos
17373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17375  shlibpath_var=LD_LIBRARY_PATH
17376  shlibpath_overrides_runpath=yes
17377  if test "$with_gnu_ld" = yes; then
17378    need_lib_prefix=no
17379  fi
17380  need_version=yes
17381  ;;
17382
17383sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17384  version_type=linux
17385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386  soname_spec='${libname}${release}${shared_ext}$major'
17387  shlibpath_var=LD_LIBRARY_PATH
17388  case $host_vendor in
17389    sni)
17390      shlibpath_overrides_runpath=no
17391      need_lib_prefix=no
17392      export_dynamic_flag_spec='${wl}-Blargedynsym'
17393      runpath_var=LD_RUN_PATH
17394      ;;
17395    siemens)
17396      need_lib_prefix=no
17397      ;;
17398    motorola)
17399      need_lib_prefix=no
17400      need_version=no
17401      shlibpath_overrides_runpath=no
17402      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17403      ;;
17404  esac
17405  ;;
17406
17407sysv4*MP*)
17408  if test -d /usr/nec ;then
17409    version_type=linux
17410    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17411    soname_spec='$libname${shared_ext}.$major'
17412    shlibpath_var=LD_LIBRARY_PATH
17413  fi
17414  ;;
17415
17416uts4*)
17417  version_type=linux
17418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419  soname_spec='${libname}${release}${shared_ext}$major'
17420  shlibpath_var=LD_LIBRARY_PATH
17421  ;;
17422
17423*)
17424  dynamic_linker=no
17425  ;;
17426esac
17427echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17428echo "${ECHO_T}$dynamic_linker" >&6
17429test "$dynamic_linker" = no && can_build_shared=no
17430
17431echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17432echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17433hardcode_action_GCJ=
17434if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17435   test -n "$runpath_var_GCJ" || \
17436   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17437
17438  # We can hardcode non-existant directories.
17439  if test "$hardcode_direct_GCJ" != no &&
17440     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17441     # have to relink, otherwise we might link with an installed library
17442     # when we should be linking with a yet-to-be-installed one
17443     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17444     test "$hardcode_minus_L_GCJ" != no; then
17445    # Linking always hardcodes the temporary library directory.
17446    hardcode_action_GCJ=relink
17447  else
17448    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17449    hardcode_action_GCJ=immediate
17450  fi
17451else
17452  # We cannot hardcode anything, or else we can only hardcode existing
17453  # directories.
17454  hardcode_action_GCJ=unsupported
17455fi
17456echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17457echo "${ECHO_T}$hardcode_action_GCJ" >&6
17458
17459if test "$hardcode_action_GCJ" = relink; then
17460  # Fast installation is not supported
17461  enable_fast_install=no
17462elif test "$shlibpath_overrides_runpath" = yes ||
17463     test "$enable_shared" = no; then
17464  # Fast installation is not necessary
17465  enable_fast_install=needless
17466fi
17467
17468striplib=
17469old_striplib=
17470echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17471echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17472if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17473  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17474  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17475  echo "$as_me:$LINENO: result: yes" >&5
17476echo "${ECHO_T}yes" >&6
17477else
17478# FIXME - insert some real tests, host_os isn't really good enough
17479  case $host_os in
17480   darwin*)
17481       if test -n "$STRIP" ; then
17482         striplib="$STRIP -x"
17483         echo "$as_me:$LINENO: result: yes" >&5
17484echo "${ECHO_T}yes" >&6
17485       else
17486  echo "$as_me:$LINENO: result: no" >&5
17487echo "${ECHO_T}no" >&6
17488fi
17489       ;;
17490   *)
17491  echo "$as_me:$LINENO: result: no" >&5
17492echo "${ECHO_T}no" >&6
17493    ;;
17494  esac
17495fi
17496
17497if test "x$enable_dlopen" != xyes; then
17498  enable_dlopen=unknown
17499  enable_dlopen_self=unknown
17500  enable_dlopen_self_static=unknown
17501else
17502  lt_cv_dlopen=no
17503  lt_cv_dlopen_libs=
17504
17505  case $host_os in
17506  beos*)
17507    lt_cv_dlopen="load_add_on"
17508    lt_cv_dlopen_libs=
17509    lt_cv_dlopen_self=yes
17510    ;;
17511
17512  mingw* | pw32*)
17513    lt_cv_dlopen="LoadLibrary"
17514    lt_cv_dlopen_libs=
17515   ;;
17516
17517  cygwin*)
17518    lt_cv_dlopen="dlopen"
17519    lt_cv_dlopen_libs=
17520   ;;
17521
17522  darwin*)
17523  # if libdl is installed we need to link against it
17524    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17525echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17526if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17527  echo $ECHO_N "(cached) $ECHO_C" >&6
17528else
17529  ac_check_lib_save_LIBS=$LIBS
17530LIBS="-ldl  $LIBS"
17531cat >conftest.$ac_ext <<_ACEOF
17532/* confdefs.h.  */
17533_ACEOF
17534cat confdefs.h >>conftest.$ac_ext
17535cat >>conftest.$ac_ext <<_ACEOF
17536/* end confdefs.h.  */
17537
17538/* Override any gcc2 internal prototype to avoid an error.  */
17539#ifdef __cplusplus
17540extern "C"
17541#endif
17542/* We use char because int might match the return type of a gcc2
17543   builtin and then its argument prototype would still apply.  */
17544char dlopen ();
17545int
17546main ()
17547{
17548dlopen ();
17549  ;
17550  return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext conftest$ac_exeext
17554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17555  (eval $ac_link) 2>conftest.er1
17556  ac_status=$?
17557  grep -v '^ *+' conftest.er1 >conftest.err
17558  rm -f conftest.er1
17559  cat conftest.err >&5
17560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561  (exit $ac_status); } &&
17562	 { ac_try='test -z "$ac_c_werror_flag"
17563			 || test ! -s conftest.err'
17564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565  (eval $ac_try) 2>&5
17566  ac_status=$?
17567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568  (exit $ac_status); }; } &&
17569	 { ac_try='test -s conftest$ac_exeext'
17570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571  (eval $ac_try) 2>&5
17572  ac_status=$?
17573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574  (exit $ac_status); }; }; then
17575  ac_cv_lib_dl_dlopen=yes
17576else
17577  echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
17579
17580ac_cv_lib_dl_dlopen=no
17581fi
17582rm -f conftest.err conftest.$ac_objext \
17583      conftest$ac_exeext conftest.$ac_ext
17584LIBS=$ac_check_lib_save_LIBS
17585fi
17586echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17587echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17588if test $ac_cv_lib_dl_dlopen = yes; then
17589  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17590else
17591
17592    lt_cv_dlopen="dyld"
17593    lt_cv_dlopen_libs=
17594    lt_cv_dlopen_self=yes
17595
17596fi
17597
17598   ;;
17599
17600  *)
17601    echo "$as_me:$LINENO: checking for shl_load" >&5
17602echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17603if test "${ac_cv_func_shl_load+set}" = set; then
17604  echo $ECHO_N "(cached) $ECHO_C" >&6
17605else
17606  cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h.  */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h.  */
17612/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17613   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17614#define shl_load innocuous_shl_load
17615
17616/* System header to define __stub macros and hopefully few prototypes,
17617    which can conflict with char shl_load (); below.
17618    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17619    <limits.h> exists even on freestanding compilers.  */
17620
17621#ifdef __STDC__
17622# include <limits.h>
17623#else
17624# include <assert.h>
17625#endif
17626
17627#undef shl_load
17628
17629/* Override any gcc2 internal prototype to avoid an error.  */
17630#ifdef __cplusplus
17631extern "C"
17632{
17633#endif
17634/* We use char because int might match the return type of a gcc2
17635   builtin and then its argument prototype would still apply.  */
17636char shl_load ();
17637/* The GNU C library defines this for functions which it implements
17638    to always fail with ENOSYS.  Some functions are actually named
17639    something starting with __ and the normal name is an alias.  */
17640#if defined (__stub_shl_load) || defined (__stub___shl_load)
17641choke me
17642#else
17643char (*f) () = shl_load;
17644#endif
17645#ifdef __cplusplus
17646}
17647#endif
17648
17649int
17650main ()
17651{
17652return f != shl_load;
17653  ;
17654  return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext conftest$ac_exeext
17658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17659  (eval $ac_link) 2>conftest.er1
17660  ac_status=$?
17661  grep -v '^ *+' conftest.er1 >conftest.err
17662  rm -f conftest.er1
17663  cat conftest.err >&5
17664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665  (exit $ac_status); } &&
17666	 { ac_try='test -z "$ac_c_werror_flag"
17667			 || test ! -s conftest.err'
17668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669  (eval $ac_try) 2>&5
17670  ac_status=$?
17671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672  (exit $ac_status); }; } &&
17673	 { ac_try='test -s conftest$ac_exeext'
17674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675  (eval $ac_try) 2>&5
17676  ac_status=$?
17677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678  (exit $ac_status); }; }; then
17679  ac_cv_func_shl_load=yes
17680else
17681  echo "$as_me: failed program was:" >&5
17682sed 's/^/| /' conftest.$ac_ext >&5
17683
17684ac_cv_func_shl_load=no
17685fi
17686rm -f conftest.err conftest.$ac_objext \
17687      conftest$ac_exeext conftest.$ac_ext
17688fi
17689echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17690echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17691if test $ac_cv_func_shl_load = yes; then
17692  lt_cv_dlopen="shl_load"
17693else
17694  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17695echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17696if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17697  echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699  ac_check_lib_save_LIBS=$LIBS
17700LIBS="-ldld  $LIBS"
17701cat >conftest.$ac_ext <<_ACEOF
17702/* confdefs.h.  */
17703_ACEOF
17704cat confdefs.h >>conftest.$ac_ext
17705cat >>conftest.$ac_ext <<_ACEOF
17706/* end confdefs.h.  */
17707
17708/* Override any gcc2 internal prototype to avoid an error.  */
17709#ifdef __cplusplus
17710extern "C"
17711#endif
17712/* We use char because int might match the return type of a gcc2
17713   builtin and then its argument prototype would still apply.  */
17714char shl_load ();
17715int
17716main ()
17717{
17718shl_load ();
17719  ;
17720  return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext conftest$ac_exeext
17724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725  (eval $ac_link) 2>conftest.er1
17726  ac_status=$?
17727  grep -v '^ *+' conftest.er1 >conftest.err
17728  rm -f conftest.er1
17729  cat conftest.err >&5
17730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731  (exit $ac_status); } &&
17732	 { ac_try='test -z "$ac_c_werror_flag"
17733			 || test ! -s conftest.err'
17734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735  (eval $ac_try) 2>&5
17736  ac_status=$?
17737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738  (exit $ac_status); }; } &&
17739	 { ac_try='test -s conftest$ac_exeext'
17740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741  (eval $ac_try) 2>&5
17742  ac_status=$?
17743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744  (exit $ac_status); }; }; then
17745  ac_cv_lib_dld_shl_load=yes
17746else
17747  echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
17750ac_cv_lib_dld_shl_load=no
17751fi
17752rm -f conftest.err conftest.$ac_objext \
17753      conftest$ac_exeext conftest.$ac_ext
17754LIBS=$ac_check_lib_save_LIBS
17755fi
17756echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17757echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17758if test $ac_cv_lib_dld_shl_load = yes; then
17759  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17760else
17761  echo "$as_me:$LINENO: checking for dlopen" >&5
17762echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17763if test "${ac_cv_func_dlopen+set}" = set; then
17764  echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766  cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h.  */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h.  */
17772/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17773   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17774#define dlopen innocuous_dlopen
17775
17776/* System header to define __stub macros and hopefully few prototypes,
17777    which can conflict with char dlopen (); below.
17778    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17779    <limits.h> exists even on freestanding compilers.  */
17780
17781#ifdef __STDC__
17782# include <limits.h>
17783#else
17784# include <assert.h>
17785#endif
17786
17787#undef dlopen
17788
17789/* Override any gcc2 internal prototype to avoid an error.  */
17790#ifdef __cplusplus
17791extern "C"
17792{
17793#endif
17794/* We use char because int might match the return type of a gcc2
17795   builtin and then its argument prototype would still apply.  */
17796char dlopen ();
17797/* The GNU C library defines this for functions which it implements
17798    to always fail with ENOSYS.  Some functions are actually named
17799    something starting with __ and the normal name is an alias.  */
17800#if defined (__stub_dlopen) || defined (__stub___dlopen)
17801choke me
17802#else
17803char (*f) () = dlopen;
17804#endif
17805#ifdef __cplusplus
17806}
17807#endif
17808
17809int
17810main ()
17811{
17812return f != dlopen;
17813  ;
17814  return 0;
17815}
17816_ACEOF
17817rm -f conftest.$ac_objext conftest$ac_exeext
17818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819  (eval $ac_link) 2>conftest.er1
17820  ac_status=$?
17821  grep -v '^ *+' conftest.er1 >conftest.err
17822  rm -f conftest.er1
17823  cat conftest.err >&5
17824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825  (exit $ac_status); } &&
17826	 { ac_try='test -z "$ac_c_werror_flag"
17827			 || test ! -s conftest.err'
17828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829  (eval $ac_try) 2>&5
17830  ac_status=$?
17831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832  (exit $ac_status); }; } &&
17833	 { ac_try='test -s conftest$ac_exeext'
17834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835  (eval $ac_try) 2>&5
17836  ac_status=$?
17837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838  (exit $ac_status); }; }; then
17839  ac_cv_func_dlopen=yes
17840else
17841  echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844ac_cv_func_dlopen=no
17845fi
17846rm -f conftest.err conftest.$ac_objext \
17847      conftest$ac_exeext conftest.$ac_ext
17848fi
17849echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17850echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17851if test $ac_cv_func_dlopen = yes; then
17852  lt_cv_dlopen="dlopen"
17853else
17854  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17855echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17856if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17857  echo $ECHO_N "(cached) $ECHO_C" >&6
17858else
17859  ac_check_lib_save_LIBS=$LIBS
17860LIBS="-ldl  $LIBS"
17861cat >conftest.$ac_ext <<_ACEOF
17862/* confdefs.h.  */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h.  */
17867
17868/* Override any gcc2 internal prototype to avoid an error.  */
17869#ifdef __cplusplus
17870extern "C"
17871#endif
17872/* We use char because int might match the return type of a gcc2
17873   builtin and then its argument prototype would still apply.  */
17874char dlopen ();
17875int
17876main ()
17877{
17878dlopen ();
17879  ;
17880  return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext conftest$ac_exeext
17884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17885  (eval $ac_link) 2>conftest.er1
17886  ac_status=$?
17887  grep -v '^ *+' conftest.er1 >conftest.err
17888  rm -f conftest.er1
17889  cat conftest.err >&5
17890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891  (exit $ac_status); } &&
17892	 { ac_try='test -z "$ac_c_werror_flag"
17893			 || test ! -s conftest.err'
17894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895  (eval $ac_try) 2>&5
17896  ac_status=$?
17897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898  (exit $ac_status); }; } &&
17899	 { ac_try='test -s conftest$ac_exeext'
17900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901  (eval $ac_try) 2>&5
17902  ac_status=$?
17903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904  (exit $ac_status); }; }; then
17905  ac_cv_lib_dl_dlopen=yes
17906else
17907  echo "$as_me: failed program was:" >&5
17908sed 's/^/| /' conftest.$ac_ext >&5
17909
17910ac_cv_lib_dl_dlopen=no
17911fi
17912rm -f conftest.err conftest.$ac_objext \
17913      conftest$ac_exeext conftest.$ac_ext
17914LIBS=$ac_check_lib_save_LIBS
17915fi
17916echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17918if test $ac_cv_lib_dl_dlopen = yes; then
17919  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17920else
17921  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17922echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17923if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17924  echo $ECHO_N "(cached) $ECHO_C" >&6
17925else
17926  ac_check_lib_save_LIBS=$LIBS
17927LIBS="-lsvld  $LIBS"
17928cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h.  */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h.  */
17934
17935/* Override any gcc2 internal prototype to avoid an error.  */
17936#ifdef __cplusplus
17937extern "C"
17938#endif
17939/* We use char because int might match the return type of a gcc2
17940   builtin and then its argument prototype would still apply.  */
17941char dlopen ();
17942int
17943main ()
17944{
17945dlopen ();
17946  ;
17947  return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext conftest$ac_exeext
17951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17952  (eval $ac_link) 2>conftest.er1
17953  ac_status=$?
17954  grep -v '^ *+' conftest.er1 >conftest.err
17955  rm -f conftest.er1
17956  cat conftest.err >&5
17957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958  (exit $ac_status); } &&
17959	 { ac_try='test -z "$ac_c_werror_flag"
17960			 || test ! -s conftest.err'
17961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962  (eval $ac_try) 2>&5
17963  ac_status=$?
17964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965  (exit $ac_status); }; } &&
17966	 { ac_try='test -s conftest$ac_exeext'
17967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968  (eval $ac_try) 2>&5
17969  ac_status=$?
17970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971  (exit $ac_status); }; }; then
17972  ac_cv_lib_svld_dlopen=yes
17973else
17974  echo "$as_me: failed program was:" >&5
17975sed 's/^/| /' conftest.$ac_ext >&5
17976
17977ac_cv_lib_svld_dlopen=no
17978fi
17979rm -f conftest.err conftest.$ac_objext \
17980      conftest$ac_exeext conftest.$ac_ext
17981LIBS=$ac_check_lib_save_LIBS
17982fi
17983echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17984echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17985if test $ac_cv_lib_svld_dlopen = yes; then
17986  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17987else
17988  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17989echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17990if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17991  echo $ECHO_N "(cached) $ECHO_C" >&6
17992else
17993  ac_check_lib_save_LIBS=$LIBS
17994LIBS="-ldld  $LIBS"
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h.  */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h.  */
18001
18002/* Override any gcc2 internal prototype to avoid an error.  */
18003#ifdef __cplusplus
18004extern "C"
18005#endif
18006/* We use char because int might match the return type of a gcc2
18007   builtin and then its argument prototype would still apply.  */
18008char dld_link ();
18009int
18010main ()
18011{
18012dld_link ();
18013  ;
18014  return 0;
18015}
18016_ACEOF
18017rm -f conftest.$ac_objext conftest$ac_exeext
18018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18019  (eval $ac_link) 2>conftest.er1
18020  ac_status=$?
18021  grep -v '^ *+' conftest.er1 >conftest.err
18022  rm -f conftest.er1
18023  cat conftest.err >&5
18024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025  (exit $ac_status); } &&
18026	 { ac_try='test -z "$ac_c_werror_flag"
18027			 || test ! -s conftest.err'
18028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029  (eval $ac_try) 2>&5
18030  ac_status=$?
18031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032  (exit $ac_status); }; } &&
18033	 { ac_try='test -s conftest$ac_exeext'
18034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035  (eval $ac_try) 2>&5
18036  ac_status=$?
18037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038  (exit $ac_status); }; }; then
18039  ac_cv_lib_dld_dld_link=yes
18040else
18041  echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044ac_cv_lib_dld_dld_link=no
18045fi
18046rm -f conftest.err conftest.$ac_objext \
18047      conftest$ac_exeext conftest.$ac_ext
18048LIBS=$ac_check_lib_save_LIBS
18049fi
18050echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18051echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18052if test $ac_cv_lib_dld_dld_link = yes; then
18053  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18054fi
18055
18056
18057fi
18058
18059
18060fi
18061
18062
18063fi
18064
18065
18066fi
18067
18068
18069fi
18070
18071    ;;
18072  esac
18073
18074  if test "x$lt_cv_dlopen" != xno; then
18075    enable_dlopen=yes
18076  else
18077    enable_dlopen=no
18078  fi
18079
18080  case $lt_cv_dlopen in
18081  dlopen)
18082    save_CPPFLAGS="$CPPFLAGS"
18083    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18084
18085    save_LDFLAGS="$LDFLAGS"
18086    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18087
18088    save_LIBS="$LIBS"
18089    LIBS="$lt_cv_dlopen_libs $LIBS"
18090
18091    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18092echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18093if test "${lt_cv_dlopen_self+set}" = set; then
18094  echo $ECHO_N "(cached) $ECHO_C" >&6
18095else
18096  	  if test "$cross_compiling" = yes; then :
18097  lt_cv_dlopen_self=cross
18098else
18099  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18100  lt_status=$lt_dlunknown
18101  cat > conftest.$ac_ext <<EOF
18102#line 18102 "configure"
18103#include "confdefs.h"
18104
18105#if HAVE_DLFCN_H
18106#include <dlfcn.h>
18107#endif
18108
18109#include <stdio.h>
18110
18111#ifdef RTLD_GLOBAL
18112#  define LT_DLGLOBAL		RTLD_GLOBAL
18113#else
18114#  ifdef DL_GLOBAL
18115#    define LT_DLGLOBAL		DL_GLOBAL
18116#  else
18117#    define LT_DLGLOBAL		0
18118#  endif
18119#endif
18120
18121/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18122   find out it does not work in some platform. */
18123#ifndef LT_DLLAZY_OR_NOW
18124#  ifdef RTLD_LAZY
18125#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18126#  else
18127#    ifdef DL_LAZY
18128#      define LT_DLLAZY_OR_NOW		DL_LAZY
18129#    else
18130#      ifdef RTLD_NOW
18131#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18132#      else
18133#        ifdef DL_NOW
18134#          define LT_DLLAZY_OR_NOW	DL_NOW
18135#        else
18136#          define LT_DLLAZY_OR_NOW	0
18137#        endif
18138#      endif
18139#    endif
18140#  endif
18141#endif
18142
18143#ifdef __cplusplus
18144extern "C" void exit (int);
18145#endif
18146
18147void fnord() { int i=42;}
18148int main ()
18149{
18150  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18151  int status = $lt_dlunknown;
18152
18153  if (self)
18154    {
18155      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18156      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18157      /* dlclose (self); */
18158    }
18159
18160    exit (status);
18161}
18162EOF
18163  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18164  (eval $ac_link) 2>&5
18165  ac_status=$?
18166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18168    (./conftest; exit; ) 2>/dev/null
18169    lt_status=$?
18170    case x$lt_status in
18171      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18172      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18173      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18174    esac
18175  else :
18176    # compilation failed
18177    lt_cv_dlopen_self=no
18178  fi
18179fi
18180rm -fr conftest*
18181
18182
18183fi
18184echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18185echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18186
18187    if test "x$lt_cv_dlopen_self" = xyes; then
18188      LDFLAGS="$LDFLAGS $link_static_flag"
18189      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18190echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18191if test "${lt_cv_dlopen_self_static+set}" = set; then
18192  echo $ECHO_N "(cached) $ECHO_C" >&6
18193else
18194  	  if test "$cross_compiling" = yes; then :
18195  lt_cv_dlopen_self_static=cross
18196else
18197  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18198  lt_status=$lt_dlunknown
18199  cat > conftest.$ac_ext <<EOF
18200#line 18200 "configure"
18201#include "confdefs.h"
18202
18203#if HAVE_DLFCN_H
18204#include <dlfcn.h>
18205#endif
18206
18207#include <stdio.h>
18208
18209#ifdef RTLD_GLOBAL
18210#  define LT_DLGLOBAL		RTLD_GLOBAL
18211#else
18212#  ifdef DL_GLOBAL
18213#    define LT_DLGLOBAL		DL_GLOBAL
18214#  else
18215#    define LT_DLGLOBAL		0
18216#  endif
18217#endif
18218
18219/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18220   find out it does not work in some platform. */
18221#ifndef LT_DLLAZY_OR_NOW
18222#  ifdef RTLD_LAZY
18223#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18224#  else
18225#    ifdef DL_LAZY
18226#      define LT_DLLAZY_OR_NOW		DL_LAZY
18227#    else
18228#      ifdef RTLD_NOW
18229#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18230#      else
18231#        ifdef DL_NOW
18232#          define LT_DLLAZY_OR_NOW	DL_NOW
18233#        else
18234#          define LT_DLLAZY_OR_NOW	0
18235#        endif
18236#      endif
18237#    endif
18238#  endif
18239#endif
18240
18241#ifdef __cplusplus
18242extern "C" void exit (int);
18243#endif
18244
18245void fnord() { int i=42;}
18246int main ()
18247{
18248  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18249  int status = $lt_dlunknown;
18250
18251  if (self)
18252    {
18253      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18254      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18255      /* dlclose (self); */
18256    }
18257
18258    exit (status);
18259}
18260EOF
18261  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262  (eval $ac_link) 2>&5
18263  ac_status=$?
18264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18266    (./conftest; exit; ) 2>/dev/null
18267    lt_status=$?
18268    case x$lt_status in
18269      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18270      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18271      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18272    esac
18273  else :
18274    # compilation failed
18275    lt_cv_dlopen_self_static=no
18276  fi
18277fi
18278rm -fr conftest*
18279
18280
18281fi
18282echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18283echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18284    fi
18285
18286    CPPFLAGS="$save_CPPFLAGS"
18287    LDFLAGS="$save_LDFLAGS"
18288    LIBS="$save_LIBS"
18289    ;;
18290  esac
18291
18292  case $lt_cv_dlopen_self in
18293  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18294  *) enable_dlopen_self=unknown ;;
18295  esac
18296
18297  case $lt_cv_dlopen_self_static in
18298  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18299  *) enable_dlopen_self_static=unknown ;;
18300  esac
18301fi
18302
18303
18304# The else clause should only fire when bootstrapping the
18305# libtool distribution, otherwise you forgot to ship ltmain.sh
18306# with your package, and you will get complaints that there are
18307# no rules to generate ltmain.sh.
18308if test -f "$ltmain"; then
18309  # See if we are running on zsh, and set the options which allow our commands through
18310  # without removal of \ escapes.
18311  if test -n "${ZSH_VERSION+set}" ; then
18312    setopt NO_GLOB_SUBST
18313  fi
18314  # Now quote all the things that may contain metacharacters while being
18315  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18316  # variables and quote the copies for generation of the libtool script.
18317  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18318    SED SHELL STRIP \
18319    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18320    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18321    deplibs_check_method reload_flag reload_cmds need_locks \
18322    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18323    lt_cv_sys_global_symbol_to_c_name_address \
18324    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18325    old_postinstall_cmds old_postuninstall_cmds \
18326    compiler_GCJ \
18327    CC_GCJ \
18328    LD_GCJ \
18329    lt_prog_compiler_wl_GCJ \
18330    lt_prog_compiler_pic_GCJ \
18331    lt_prog_compiler_static_GCJ \
18332    lt_prog_compiler_no_builtin_flag_GCJ \
18333    export_dynamic_flag_spec_GCJ \
18334    thread_safe_flag_spec_GCJ \
18335    whole_archive_flag_spec_GCJ \
18336    enable_shared_with_static_runtimes_GCJ \
18337    old_archive_cmds_GCJ \
18338    old_archive_from_new_cmds_GCJ \
18339    predep_objects_GCJ \
18340    postdep_objects_GCJ \
18341    predeps_GCJ \
18342    postdeps_GCJ \
18343    compiler_lib_search_path_GCJ \
18344    archive_cmds_GCJ \
18345    archive_expsym_cmds_GCJ \
18346    postinstall_cmds_GCJ \
18347    postuninstall_cmds_GCJ \
18348    old_archive_from_expsyms_cmds_GCJ \
18349    allow_undefined_flag_GCJ \
18350    no_undefined_flag_GCJ \
18351    export_symbols_cmds_GCJ \
18352    hardcode_libdir_flag_spec_GCJ \
18353    hardcode_libdir_flag_spec_ld_GCJ \
18354    hardcode_libdir_separator_GCJ \
18355    hardcode_automatic_GCJ \
18356    module_cmds_GCJ \
18357    module_expsym_cmds_GCJ \
18358    lt_cv_prog_compiler_c_o_GCJ \
18359    exclude_expsyms_GCJ \
18360    include_expsyms_GCJ; do
18361
18362    case $var in
18363    old_archive_cmds_GCJ | \
18364    old_archive_from_new_cmds_GCJ | \
18365    archive_cmds_GCJ | \
18366    archive_expsym_cmds_GCJ | \
18367    module_cmds_GCJ | \
18368    module_expsym_cmds_GCJ | \
18369    old_archive_from_expsyms_cmds_GCJ | \
18370    export_symbols_cmds_GCJ | \
18371    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18372    postinstall_cmds | postuninstall_cmds | \
18373    old_postinstall_cmds | old_postuninstall_cmds | \
18374    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18375      # Double-quote double-evaled strings.
18376      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18377      ;;
18378    *)
18379      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18380      ;;
18381    esac
18382  done
18383
18384  case $lt_echo in
18385  *'\$0 --fallback-echo"')
18386    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18387    ;;
18388  esac
18389
18390cfgfile="$ofile"
18391
18392  cat <<__EOF__ >> "$cfgfile"
18393# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18394
18395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18396
18397# Shell to use when invoking shell scripts.
18398SHELL=$lt_SHELL
18399
18400# Whether or not to build shared libraries.
18401build_libtool_libs=$enable_shared
18402
18403# Whether or not to build static libraries.
18404build_old_libs=$enable_static
18405
18406# Whether or not to add -lc for building shared libraries.
18407build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18408
18409# Whether or not to disallow shared libs when runtime libs are static
18410allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18411
18412# Whether or not to optimize for fast installation.
18413fast_install=$enable_fast_install
18414
18415# The host system.
18416host_alias=$host_alias
18417host=$host
18418
18419# An echo program that does not interpret backslashes.
18420echo=$lt_echo
18421
18422# The archiver.
18423AR=$lt_AR
18424AR_FLAGS=$lt_AR_FLAGS
18425
18426# A C compiler.
18427LTCC=$lt_LTCC
18428
18429# A language-specific compiler.
18430CC=$lt_compiler_GCJ
18431
18432# Is the compiler the GNU C compiler?
18433with_gcc=$GCC_GCJ
18434
18435# An ERE matcher.
18436EGREP=$lt_EGREP
18437
18438# The linker used to build libraries.
18439LD=$lt_LD_GCJ
18440
18441# Whether we need hard or soft links.
18442LN_S=$lt_LN_S
18443
18444# A BSD-compatible nm program.
18445NM=$lt_NM
18446
18447# A symbol stripping program
18448STRIP=$lt_STRIP
18449
18450# Used to examine libraries when file_magic_cmd begins "file"
18451MAGIC_CMD=$MAGIC_CMD
18452
18453# Used on cygwin: DLL creation program.
18454DLLTOOL="$DLLTOOL"
18455
18456# Used on cygwin: object dumper.
18457OBJDUMP="$OBJDUMP"
18458
18459# Used on cygwin: assembler.
18460AS="$AS"
18461
18462# The name of the directory that contains temporary libtool files.
18463objdir=$objdir
18464
18465# How to create reloadable object files.
18466reload_flag=$lt_reload_flag
18467reload_cmds=$lt_reload_cmds
18468
18469# How to pass a linker flag through the compiler.
18470wl=$lt_lt_prog_compiler_wl_GCJ
18471
18472# Object file suffix (normally "o").
18473objext="$ac_objext"
18474
18475# Old archive suffix (normally "a").
18476libext="$libext"
18477
18478# Shared library suffix (normally ".so").
18479shrext_cmds='$shrext_cmds'
18480
18481# Executable file suffix (normally "").
18482exeext="$exeext"
18483
18484# Additional compiler flags for building library objects.
18485pic_flag=$lt_lt_prog_compiler_pic_GCJ
18486pic_mode=$pic_mode
18487
18488# What is the maximum length of a command?
18489max_cmd_len=$lt_cv_sys_max_cmd_len
18490
18491# Does compiler simultaneously support -c and -o options?
18492compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18493
18494# Must we lock files when doing compilation ?
18495need_locks=$lt_need_locks
18496
18497# Do we need the lib prefix for modules?
18498need_lib_prefix=$need_lib_prefix
18499
18500# Do we need a version for libraries?
18501need_version=$need_version
18502
18503# Whether dlopen is supported.
18504dlopen_support=$enable_dlopen
18505
18506# Whether dlopen of programs is supported.
18507dlopen_self=$enable_dlopen_self
18508
18509# Whether dlopen of statically linked programs is supported.
18510dlopen_self_static=$enable_dlopen_self_static
18511
18512# Compiler flag to prevent dynamic linking.
18513link_static_flag=$lt_lt_prog_compiler_static_GCJ
18514
18515# Compiler flag to turn off builtin functions.
18516no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18517
18518# Compiler flag to allow reflexive dlopens.
18519export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18520
18521# Compiler flag to generate shared objects directly from archives.
18522whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18523
18524# Compiler flag to generate thread-safe objects.
18525thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18526
18527# Library versioning type.
18528version_type=$version_type
18529
18530# Format of library name prefix.
18531libname_spec=$lt_libname_spec
18532
18533# List of archive names.  First name is the real one, the rest are links.
18534# The last name is the one that the linker finds with -lNAME.
18535library_names_spec=$lt_library_names_spec
18536
18537# The coded name of the library, if different from the real name.
18538soname_spec=$lt_soname_spec
18539
18540# Commands used to build and install an old-style archive.
18541RANLIB=$lt_RANLIB
18542old_archive_cmds=$lt_old_archive_cmds_GCJ
18543old_postinstall_cmds=$lt_old_postinstall_cmds
18544old_postuninstall_cmds=$lt_old_postuninstall_cmds
18545
18546# Create an old-style archive from a shared archive.
18547old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18548
18549# Create a temporary old-style archive to link instead of a shared archive.
18550old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18551
18552# Commands used to build and install a shared archive.
18553archive_cmds=$lt_archive_cmds_GCJ
18554archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18555postinstall_cmds=$lt_postinstall_cmds
18556postuninstall_cmds=$lt_postuninstall_cmds
18557
18558# Commands used to build a loadable module (assumed same as above if empty)
18559module_cmds=$lt_module_cmds_GCJ
18560module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18561
18562# Commands to strip libraries.
18563old_striplib=$lt_old_striplib
18564striplib=$lt_striplib
18565
18566# Dependencies to place before the objects being linked to create a
18567# shared library.
18568predep_objects=$lt_predep_objects_GCJ
18569
18570# Dependencies to place after the objects being linked to create a
18571# shared library.
18572postdep_objects=$lt_postdep_objects_GCJ
18573
18574# Dependencies to place before the objects being linked to create a
18575# shared library.
18576predeps=$lt_predeps_GCJ
18577
18578# Dependencies to place after the objects being linked to create a
18579# shared library.
18580postdeps=$lt_postdeps_GCJ
18581
18582# The library search path used internally by the compiler when linking
18583# a shared library.
18584compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18585
18586# Method to check whether dependent libraries are shared objects.
18587deplibs_check_method=$lt_deplibs_check_method
18588
18589# Command to use when deplibs_check_method == file_magic.
18590file_magic_cmd=$lt_file_magic_cmd
18591
18592# Flag that allows shared libraries with undefined symbols to be built.
18593allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18594
18595# Flag that forces no undefined symbols.
18596no_undefined_flag=$lt_no_undefined_flag_GCJ
18597
18598# Commands used to finish a libtool library installation in a directory.
18599finish_cmds=$lt_finish_cmds
18600
18601# Same as above, but a single script fragment to be evaled but not shown.
18602finish_eval=$lt_finish_eval
18603
18604# Take the output of nm and produce a listing of raw symbols and C names.
18605global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18606
18607# Transform the output of nm in a proper C declaration
18608global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18609
18610# Transform the output of nm in a C name address pair
18611global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18612
18613# This is the shared library runtime path variable.
18614runpath_var=$runpath_var
18615
18616# This is the shared library path variable.
18617shlibpath_var=$shlibpath_var
18618
18619# Is shlibpath searched before the hard-coded library search path?
18620shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18621
18622# How to hardcode a shared library path into an executable.
18623hardcode_action=$hardcode_action_GCJ
18624
18625# Whether we should hardcode library paths into libraries.
18626hardcode_into_libs=$hardcode_into_libs
18627
18628# Flag to hardcode \$libdir into a binary during linking.
18629# This must work even if \$libdir does not exist.
18630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18631
18632# If ld is used when linking, flag to hardcode \$libdir into
18633# a binary during linking. This must work even if \$libdir does
18634# not exist.
18635hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18636
18637# Whether we need a single -rpath flag with a separated argument.
18638hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18639
18640# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18641# resulting binary.
18642hardcode_direct=$hardcode_direct_GCJ
18643
18644# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18645# resulting binary.
18646hardcode_minus_L=$hardcode_minus_L_GCJ
18647
18648# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18649# the resulting binary.
18650hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18651
18652# Set to yes if building a shared library automatically hardcodes DIR into the library
18653# and all subsequent libraries and executables linked against it.
18654hardcode_automatic=$hardcode_automatic_GCJ
18655
18656# Variables whose values should be saved in libtool wrapper scripts and
18657# restored at relink time.
18658variables_saved_for_relink="$variables_saved_for_relink"
18659
18660# Whether libtool must link a program against all its dependency libraries.
18661link_all_deplibs=$link_all_deplibs_GCJ
18662
18663# Compile-time system search path for libraries
18664sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18665
18666# Run-time system search path for libraries
18667sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18668
18669# Fix the shell variable \$srcfile for the compiler.
18670fix_srcfile_path="$fix_srcfile_path_GCJ"
18671
18672# Set to yes if exported symbols are required.
18673always_export_symbols=$always_export_symbols_GCJ
18674
18675# The commands to list exported symbols.
18676export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18677
18678# The commands to extract the exported symbol list from a shared archive.
18679extract_expsyms_cmds=$lt_extract_expsyms_cmds
18680
18681# Symbols that should not be listed in the preloaded symbols.
18682exclude_expsyms=$lt_exclude_expsyms_GCJ
18683
18684# Symbols that must always be exported.
18685include_expsyms=$lt_include_expsyms_GCJ
18686
18687# ### END LIBTOOL TAG CONFIG: $tagname
18688
18689__EOF__
18690
18691
18692else
18693  # If there is no Makefile yet, we rely on a make rule to execute
18694  # `config.status --recheck' to rerun these tests and create the
18695  # libtool script then.
18696  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18697  if test -f "$ltmain_in"; then
18698    test -f Makefile && make "$ltmain"
18699  fi
18700fi
18701
18702
18703ac_ext=c
18704ac_cpp='$CPP $CPPFLAGS'
18705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707ac_compiler_gnu=$ac_cv_c_compiler_gnu
18708
18709CC="$lt_save_CC"
18710
18711	else
18712	  tagname=""
18713	fi
18714	;;
18715
18716      RC)
18717
18718
18719
18720# Source file extension for RC test sources.
18721ac_ext=rc
18722
18723# Object file extension for compiled RC test sources.
18724objext=o
18725objext_RC=$objext
18726
18727# Code to be used in simple compile tests
18728lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18729
18730# Code to be used in simple link tests
18731lt_simple_link_test_code="$lt_simple_compile_test_code"
18732
18733# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18734
18735# If no C compiler was specified, use CC.
18736LTCC=${LTCC-"$CC"}
18737
18738# Allow CC to be a program name with arguments.
18739compiler=$CC
18740
18741
18742# Allow CC to be a program name with arguments.
18743lt_save_CC="$CC"
18744CC=${RC-"windres"}
18745compiler=$CC
18746compiler_RC=$CC
18747lt_cv_prog_compiler_c_o_RC=yes
18748
18749# The else clause should only fire when bootstrapping the
18750# libtool distribution, otherwise you forgot to ship ltmain.sh
18751# with your package, and you will get complaints that there are
18752# no rules to generate ltmain.sh.
18753if test -f "$ltmain"; then
18754  # See if we are running on zsh, and set the options which allow our commands through
18755  # without removal of \ escapes.
18756  if test -n "${ZSH_VERSION+set}" ; then
18757    setopt NO_GLOB_SUBST
18758  fi
18759  # Now quote all the things that may contain metacharacters while being
18760  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18761  # variables and quote the copies for generation of the libtool script.
18762  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18763    SED SHELL STRIP \
18764    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18765    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18766    deplibs_check_method reload_flag reload_cmds need_locks \
18767    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18768    lt_cv_sys_global_symbol_to_c_name_address \
18769    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18770    old_postinstall_cmds old_postuninstall_cmds \
18771    compiler_RC \
18772    CC_RC \
18773    LD_RC \
18774    lt_prog_compiler_wl_RC \
18775    lt_prog_compiler_pic_RC \
18776    lt_prog_compiler_static_RC \
18777    lt_prog_compiler_no_builtin_flag_RC \
18778    export_dynamic_flag_spec_RC \
18779    thread_safe_flag_spec_RC \
18780    whole_archive_flag_spec_RC \
18781    enable_shared_with_static_runtimes_RC \
18782    old_archive_cmds_RC \
18783    old_archive_from_new_cmds_RC \
18784    predep_objects_RC \
18785    postdep_objects_RC \
18786    predeps_RC \
18787    postdeps_RC \
18788    compiler_lib_search_path_RC \
18789    archive_cmds_RC \
18790    archive_expsym_cmds_RC \
18791    postinstall_cmds_RC \
18792    postuninstall_cmds_RC \
18793    old_archive_from_expsyms_cmds_RC \
18794    allow_undefined_flag_RC \
18795    no_undefined_flag_RC \
18796    export_symbols_cmds_RC \
18797    hardcode_libdir_flag_spec_RC \
18798    hardcode_libdir_flag_spec_ld_RC \
18799    hardcode_libdir_separator_RC \
18800    hardcode_automatic_RC \
18801    module_cmds_RC \
18802    module_expsym_cmds_RC \
18803    lt_cv_prog_compiler_c_o_RC \
18804    exclude_expsyms_RC \
18805    include_expsyms_RC; do
18806
18807    case $var in
18808    old_archive_cmds_RC | \
18809    old_archive_from_new_cmds_RC | \
18810    archive_cmds_RC | \
18811    archive_expsym_cmds_RC | \
18812    module_cmds_RC | \
18813    module_expsym_cmds_RC | \
18814    old_archive_from_expsyms_cmds_RC | \
18815    export_symbols_cmds_RC | \
18816    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18817    postinstall_cmds | postuninstall_cmds | \
18818    old_postinstall_cmds | old_postuninstall_cmds | \
18819    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18820      # Double-quote double-evaled strings.
18821      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18822      ;;
18823    *)
18824      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18825      ;;
18826    esac
18827  done
18828
18829  case $lt_echo in
18830  *'\$0 --fallback-echo"')
18831    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18832    ;;
18833  esac
18834
18835cfgfile="$ofile"
18836
18837  cat <<__EOF__ >> "$cfgfile"
18838# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18839
18840# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18841
18842# Shell to use when invoking shell scripts.
18843SHELL=$lt_SHELL
18844
18845# Whether or not to build shared libraries.
18846build_libtool_libs=$enable_shared
18847
18848# Whether or not to build static libraries.
18849build_old_libs=$enable_static
18850
18851# Whether or not to add -lc for building shared libraries.
18852build_libtool_need_lc=$archive_cmds_need_lc_RC
18853
18854# Whether or not to disallow shared libs when runtime libs are static
18855allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18856
18857# Whether or not to optimize for fast installation.
18858fast_install=$enable_fast_install
18859
18860# The host system.
18861host_alias=$host_alias
18862host=$host
18863
18864# An echo program that does not interpret backslashes.
18865echo=$lt_echo
18866
18867# The archiver.
18868AR=$lt_AR
18869AR_FLAGS=$lt_AR_FLAGS
18870
18871# A C compiler.
18872LTCC=$lt_LTCC
18873
18874# A language-specific compiler.
18875CC=$lt_compiler_RC
18876
18877# Is the compiler the GNU C compiler?
18878with_gcc=$GCC_RC
18879
18880# An ERE matcher.
18881EGREP=$lt_EGREP
18882
18883# The linker used to build libraries.
18884LD=$lt_LD_RC
18885
18886# Whether we need hard or soft links.
18887LN_S=$lt_LN_S
18888
18889# A BSD-compatible nm program.
18890NM=$lt_NM
18891
18892# A symbol stripping program
18893STRIP=$lt_STRIP
18894
18895# Used to examine libraries when file_magic_cmd begins "file"
18896MAGIC_CMD=$MAGIC_CMD
18897
18898# Used on cygwin: DLL creation program.
18899DLLTOOL="$DLLTOOL"
18900
18901# Used on cygwin: object dumper.
18902OBJDUMP="$OBJDUMP"
18903
18904# Used on cygwin: assembler.
18905AS="$AS"
18906
18907# The name of the directory that contains temporary libtool files.
18908objdir=$objdir
18909
18910# How to create reloadable object files.
18911reload_flag=$lt_reload_flag
18912reload_cmds=$lt_reload_cmds
18913
18914# How to pass a linker flag through the compiler.
18915wl=$lt_lt_prog_compiler_wl_RC
18916
18917# Object file suffix (normally "o").
18918objext="$ac_objext"
18919
18920# Old archive suffix (normally "a").
18921libext="$libext"
18922
18923# Shared library suffix (normally ".so").
18924shrext_cmds='$shrext_cmds'
18925
18926# Executable file suffix (normally "").
18927exeext="$exeext"
18928
18929# Additional compiler flags for building library objects.
18930pic_flag=$lt_lt_prog_compiler_pic_RC
18931pic_mode=$pic_mode
18932
18933# What is the maximum length of a command?
18934max_cmd_len=$lt_cv_sys_max_cmd_len
18935
18936# Does compiler simultaneously support -c and -o options?
18937compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18938
18939# Must we lock files when doing compilation ?
18940need_locks=$lt_need_locks
18941
18942# Do we need the lib prefix for modules?
18943need_lib_prefix=$need_lib_prefix
18944
18945# Do we need a version for libraries?
18946need_version=$need_version
18947
18948# Whether dlopen is supported.
18949dlopen_support=$enable_dlopen
18950
18951# Whether dlopen of programs is supported.
18952dlopen_self=$enable_dlopen_self
18953
18954# Whether dlopen of statically linked programs is supported.
18955dlopen_self_static=$enable_dlopen_self_static
18956
18957# Compiler flag to prevent dynamic linking.
18958link_static_flag=$lt_lt_prog_compiler_static_RC
18959
18960# Compiler flag to turn off builtin functions.
18961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18962
18963# Compiler flag to allow reflexive dlopens.
18964export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18965
18966# Compiler flag to generate shared objects directly from archives.
18967whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18968
18969# Compiler flag to generate thread-safe objects.
18970thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18971
18972# Library versioning type.
18973version_type=$version_type
18974
18975# Format of library name prefix.
18976libname_spec=$lt_libname_spec
18977
18978# List of archive names.  First name is the real one, the rest are links.
18979# The last name is the one that the linker finds with -lNAME.
18980library_names_spec=$lt_library_names_spec
18981
18982# The coded name of the library, if different from the real name.
18983soname_spec=$lt_soname_spec
18984
18985# Commands used to build and install an old-style archive.
18986RANLIB=$lt_RANLIB
18987old_archive_cmds=$lt_old_archive_cmds_RC
18988old_postinstall_cmds=$lt_old_postinstall_cmds
18989old_postuninstall_cmds=$lt_old_postuninstall_cmds
18990
18991# Create an old-style archive from a shared archive.
18992old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18993
18994# Create a temporary old-style archive to link instead of a shared archive.
18995old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18996
18997# Commands used to build and install a shared archive.
18998archive_cmds=$lt_archive_cmds_RC
18999archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19000postinstall_cmds=$lt_postinstall_cmds
19001postuninstall_cmds=$lt_postuninstall_cmds
19002
19003# Commands used to build a loadable module (assumed same as above if empty)
19004module_cmds=$lt_module_cmds_RC
19005module_expsym_cmds=$lt_module_expsym_cmds_RC
19006
19007# Commands to strip libraries.
19008old_striplib=$lt_old_striplib
19009striplib=$lt_striplib
19010
19011# Dependencies to place before the objects being linked to create a
19012# shared library.
19013predep_objects=$lt_predep_objects_RC
19014
19015# Dependencies to place after the objects being linked to create a
19016# shared library.
19017postdep_objects=$lt_postdep_objects_RC
19018
19019# Dependencies to place before the objects being linked to create a
19020# shared library.
19021predeps=$lt_predeps_RC
19022
19023# Dependencies to place after the objects being linked to create a
19024# shared library.
19025postdeps=$lt_postdeps_RC
19026
19027# The library search path used internally by the compiler when linking
19028# a shared library.
19029compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19030
19031# Method to check whether dependent libraries are shared objects.
19032deplibs_check_method=$lt_deplibs_check_method
19033
19034# Command to use when deplibs_check_method == file_magic.
19035file_magic_cmd=$lt_file_magic_cmd
19036
19037# Flag that allows shared libraries with undefined symbols to be built.
19038allow_undefined_flag=$lt_allow_undefined_flag_RC
19039
19040# Flag that forces no undefined symbols.
19041no_undefined_flag=$lt_no_undefined_flag_RC
19042
19043# Commands used to finish a libtool library installation in a directory.
19044finish_cmds=$lt_finish_cmds
19045
19046# Same as above, but a single script fragment to be evaled but not shown.
19047finish_eval=$lt_finish_eval
19048
19049# Take the output of nm and produce a listing of raw symbols and C names.
19050global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19051
19052# Transform the output of nm in a proper C declaration
19053global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19054
19055# Transform the output of nm in a C name address pair
19056global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19057
19058# This is the shared library runtime path variable.
19059runpath_var=$runpath_var
19060
19061# This is the shared library path variable.
19062shlibpath_var=$shlibpath_var
19063
19064# Is shlibpath searched before the hard-coded library search path?
19065shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19066
19067# How to hardcode a shared library path into an executable.
19068hardcode_action=$hardcode_action_RC
19069
19070# Whether we should hardcode library paths into libraries.
19071hardcode_into_libs=$hardcode_into_libs
19072
19073# Flag to hardcode \$libdir into a binary during linking.
19074# This must work even if \$libdir does not exist.
19075hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19076
19077# If ld is used when linking, flag to hardcode \$libdir into
19078# a binary during linking. This must work even if \$libdir does
19079# not exist.
19080hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19081
19082# Whether we need a single -rpath flag with a separated argument.
19083hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19084
19085# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19086# resulting binary.
19087hardcode_direct=$hardcode_direct_RC
19088
19089# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19090# resulting binary.
19091hardcode_minus_L=$hardcode_minus_L_RC
19092
19093# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19094# the resulting binary.
19095hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19096
19097# Set to yes if building a shared library automatically hardcodes DIR into the library
19098# and all subsequent libraries and executables linked against it.
19099hardcode_automatic=$hardcode_automatic_RC
19100
19101# Variables whose values should be saved in libtool wrapper scripts and
19102# restored at relink time.
19103variables_saved_for_relink="$variables_saved_for_relink"
19104
19105# Whether libtool must link a program against all its dependency libraries.
19106link_all_deplibs=$link_all_deplibs_RC
19107
19108# Compile-time system search path for libraries
19109sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19110
19111# Run-time system search path for libraries
19112sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19113
19114# Fix the shell variable \$srcfile for the compiler.
19115fix_srcfile_path="$fix_srcfile_path_RC"
19116
19117# Set to yes if exported symbols are required.
19118always_export_symbols=$always_export_symbols_RC
19119
19120# The commands to list exported symbols.
19121export_symbols_cmds=$lt_export_symbols_cmds_RC
19122
19123# The commands to extract the exported symbol list from a shared archive.
19124extract_expsyms_cmds=$lt_extract_expsyms_cmds
19125
19126# Symbols that should not be listed in the preloaded symbols.
19127exclude_expsyms=$lt_exclude_expsyms_RC
19128
19129# Symbols that must always be exported.
19130include_expsyms=$lt_include_expsyms_RC
19131
19132# ### END LIBTOOL TAG CONFIG: $tagname
19133
19134__EOF__
19135
19136
19137else
19138  # If there is no Makefile yet, we rely on a make rule to execute
19139  # `config.status --recheck' to rerun these tests and create the
19140  # libtool script then.
19141  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19142  if test -f "$ltmain_in"; then
19143    test -f Makefile && make "$ltmain"
19144  fi
19145fi
19146
19147
19148ac_ext=c
19149ac_cpp='$CPP $CPPFLAGS'
19150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153
19154CC="$lt_save_CC"
19155
19156	;;
19157
19158      *)
19159	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19160echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19161   { (exit 1); exit 1; }; }
19162	;;
19163      esac
19164
19165      # Append the new tag name to the list of available tags.
19166      if test -n "$tagname" ; then
19167      available_tags="$available_tags $tagname"
19168    fi
19169    fi
19170  done
19171  IFS="$lt_save_ifs"
19172
19173  # Now substitute the updated list of available tags.
19174  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19175    mv "${ofile}T" "$ofile"
19176    chmod +x "$ofile"
19177  else
19178    rm -f "${ofile}T"
19179    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19180echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19181   { (exit 1); exit 1; }; }
19182  fi
19183fi
19184
19185
19186
19187# This can be used to rebuild libtool when needed
19188LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19189
19190# Always use our own libtool.
19191LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19192
19193# Prevent multiple expansion
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19217set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19218if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19219  echo $ECHO_N "(cached) $ECHO_C" >&6
19220else
19221  cat >conftest.make <<\_ACEOF
19222all:
19223	@echo 'ac_maketemp="$(MAKE)"'
19224_ACEOF
19225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19226eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19227if test -n "$ac_maketemp"; then
19228  eval ac_cv_prog_make_${ac_make}_set=yes
19229else
19230  eval ac_cv_prog_make_${ac_make}_set=no
19231fi
19232rm -f conftest.make
19233fi
19234if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19235  echo "$as_me:$LINENO: result: yes" >&5
19236echo "${ECHO_T}yes" >&6
19237  SET_MAKE=
19238else
19239  echo "$as_me:$LINENO: result: no" >&5
19240echo "${ECHO_T}no" >&6
19241  SET_MAKE="MAKE=${MAKE-make}"
19242fi
19243
19244ac_ext=c
19245ac_cpp='$CPP $CPPFLAGS'
19246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248ac_compiler_gnu=$ac_cv_c_compiler_gnu
19249if test -n "$ac_tool_prefix"; then
19250  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19251set dummy ${ac_tool_prefix}gcc; ac_word=$2
19252echo "$as_me:$LINENO: checking for $ac_word" >&5
19253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19254if test "${ac_cv_prog_CC+set}" = set; then
19255  echo $ECHO_N "(cached) $ECHO_C" >&6
19256else
19257  if test -n "$CC"; then
19258  ac_cv_prog_CC="$CC" # Let the user override the test.
19259else
19260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19261for as_dir in $PATH
19262do
19263  IFS=$as_save_IFS
19264  test -z "$as_dir" && as_dir=.
19265  for ac_exec_ext in '' $ac_executable_extensions; do
19266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19267    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19269    break 2
19270  fi
19271done
19272done
19273
19274fi
19275fi
19276CC=$ac_cv_prog_CC
19277if test -n "$CC"; then
19278  echo "$as_me:$LINENO: result: $CC" >&5
19279echo "${ECHO_T}$CC" >&6
19280else
19281  echo "$as_me:$LINENO: result: no" >&5
19282echo "${ECHO_T}no" >&6
19283fi
19284
19285fi
19286if test -z "$ac_cv_prog_CC"; then
19287  ac_ct_CC=$CC
19288  # Extract the first word of "gcc", so it can be a program name with args.
19289set dummy gcc; ac_word=$2
19290echo "$as_me:$LINENO: checking for $ac_word" >&5
19291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19292if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19293  echo $ECHO_N "(cached) $ECHO_C" >&6
19294else
19295  if test -n "$ac_ct_CC"; then
19296  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19297else
19298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19299for as_dir in $PATH
19300do
19301  IFS=$as_save_IFS
19302  test -z "$as_dir" && as_dir=.
19303  for ac_exec_ext in '' $ac_executable_extensions; do
19304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19305    ac_cv_prog_ac_ct_CC="gcc"
19306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19307    break 2
19308  fi
19309done
19310done
19311
19312fi
19313fi
19314ac_ct_CC=$ac_cv_prog_ac_ct_CC
19315if test -n "$ac_ct_CC"; then
19316  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19317echo "${ECHO_T}$ac_ct_CC" >&6
19318else
19319  echo "$as_me:$LINENO: result: no" >&5
19320echo "${ECHO_T}no" >&6
19321fi
19322
19323  CC=$ac_ct_CC
19324else
19325  CC="$ac_cv_prog_CC"
19326fi
19327
19328if test -z "$CC"; then
19329  if test -n "$ac_tool_prefix"; then
19330  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19331set dummy ${ac_tool_prefix}cc; ac_word=$2
19332echo "$as_me:$LINENO: checking for $ac_word" >&5
19333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19334if test "${ac_cv_prog_CC+set}" = set; then
19335  echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337  if test -n "$CC"; then
19338  ac_cv_prog_CC="$CC" # Let the user override the test.
19339else
19340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19341for as_dir in $PATH
19342do
19343  IFS=$as_save_IFS
19344  test -z "$as_dir" && as_dir=.
19345  for ac_exec_ext in '' $ac_executable_extensions; do
19346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19347    ac_cv_prog_CC="${ac_tool_prefix}cc"
19348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19349    break 2
19350  fi
19351done
19352done
19353
19354fi
19355fi
19356CC=$ac_cv_prog_CC
19357if test -n "$CC"; then
19358  echo "$as_me:$LINENO: result: $CC" >&5
19359echo "${ECHO_T}$CC" >&6
19360else
19361  echo "$as_me:$LINENO: result: no" >&5
19362echo "${ECHO_T}no" >&6
19363fi
19364
19365fi
19366if test -z "$ac_cv_prog_CC"; then
19367  ac_ct_CC=$CC
19368  # Extract the first word of "cc", so it can be a program name with args.
19369set dummy cc; ac_word=$2
19370echo "$as_me:$LINENO: checking for $ac_word" >&5
19371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19372if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19373  echo $ECHO_N "(cached) $ECHO_C" >&6
19374else
19375  if test -n "$ac_ct_CC"; then
19376  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19377else
19378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19379for as_dir in $PATH
19380do
19381  IFS=$as_save_IFS
19382  test -z "$as_dir" && as_dir=.
19383  for ac_exec_ext in '' $ac_executable_extensions; do
19384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19385    ac_cv_prog_ac_ct_CC="cc"
19386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19387    break 2
19388  fi
19389done
19390done
19391
19392fi
19393fi
19394ac_ct_CC=$ac_cv_prog_ac_ct_CC
19395if test -n "$ac_ct_CC"; then
19396  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19397echo "${ECHO_T}$ac_ct_CC" >&6
19398else
19399  echo "$as_me:$LINENO: result: no" >&5
19400echo "${ECHO_T}no" >&6
19401fi
19402
19403  CC=$ac_ct_CC
19404else
19405  CC="$ac_cv_prog_CC"
19406fi
19407
19408fi
19409if test -z "$CC"; then
19410  # Extract the first word of "cc", so it can be a program name with args.
19411set dummy cc; ac_word=$2
19412echo "$as_me:$LINENO: checking for $ac_word" >&5
19413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19414if test "${ac_cv_prog_CC+set}" = set; then
19415  echo $ECHO_N "(cached) $ECHO_C" >&6
19416else
19417  if test -n "$CC"; then
19418  ac_cv_prog_CC="$CC" # Let the user override the test.
19419else
19420  ac_prog_rejected=no
19421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19422for as_dir in $PATH
19423do
19424  IFS=$as_save_IFS
19425  test -z "$as_dir" && as_dir=.
19426  for ac_exec_ext in '' $ac_executable_extensions; do
19427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19428    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19429       ac_prog_rejected=yes
19430       continue
19431     fi
19432    ac_cv_prog_CC="cc"
19433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19434    break 2
19435  fi
19436done
19437done
19438
19439if test $ac_prog_rejected = yes; then
19440  # We found a bogon in the path, so make sure we never use it.
19441  set dummy $ac_cv_prog_CC
19442  shift
19443  if test $# != 0; then
19444    # We chose a different compiler from the bogus one.
19445    # However, it has the same basename, so the bogon will be chosen
19446    # first if we set CC to just the basename; use the full file name.
19447    shift
19448    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19449  fi
19450fi
19451fi
19452fi
19453CC=$ac_cv_prog_CC
19454if test -n "$CC"; then
19455  echo "$as_me:$LINENO: result: $CC" >&5
19456echo "${ECHO_T}$CC" >&6
19457else
19458  echo "$as_me:$LINENO: result: no" >&5
19459echo "${ECHO_T}no" >&6
19460fi
19461
19462fi
19463if test -z "$CC"; then
19464  if test -n "$ac_tool_prefix"; then
19465  for ac_prog in cl
19466  do
19467    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19469echo "$as_me:$LINENO: checking for $ac_word" >&5
19470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19471if test "${ac_cv_prog_CC+set}" = set; then
19472  echo $ECHO_N "(cached) $ECHO_C" >&6
19473else
19474  if test -n "$CC"; then
19475  ac_cv_prog_CC="$CC" # Let the user override the test.
19476else
19477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19478for as_dir in $PATH
19479do
19480  IFS=$as_save_IFS
19481  test -z "$as_dir" && as_dir=.
19482  for ac_exec_ext in '' $ac_executable_extensions; do
19483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19484    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19486    break 2
19487  fi
19488done
19489done
19490
19491fi
19492fi
19493CC=$ac_cv_prog_CC
19494if test -n "$CC"; then
19495  echo "$as_me:$LINENO: result: $CC" >&5
19496echo "${ECHO_T}$CC" >&6
19497else
19498  echo "$as_me:$LINENO: result: no" >&5
19499echo "${ECHO_T}no" >&6
19500fi
19501
19502    test -n "$CC" && break
19503  done
19504fi
19505if test -z "$CC"; then
19506  ac_ct_CC=$CC
19507  for ac_prog in cl
19508do
19509  # Extract the first word of "$ac_prog", so it can be a program name with args.
19510set dummy $ac_prog; ac_word=$2
19511echo "$as_me:$LINENO: checking for $ac_word" >&5
19512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19514  echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
19516  if test -n "$ac_ct_CC"; then
19517  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19518else
19519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19520for as_dir in $PATH
19521do
19522  IFS=$as_save_IFS
19523  test -z "$as_dir" && as_dir=.
19524  for ac_exec_ext in '' $ac_executable_extensions; do
19525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19526    ac_cv_prog_ac_ct_CC="$ac_prog"
19527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19528    break 2
19529  fi
19530done
19531done
19532
19533fi
19534fi
19535ac_ct_CC=$ac_cv_prog_ac_ct_CC
19536if test -n "$ac_ct_CC"; then
19537  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19538echo "${ECHO_T}$ac_ct_CC" >&6
19539else
19540  echo "$as_me:$LINENO: result: no" >&5
19541echo "${ECHO_T}no" >&6
19542fi
19543
19544  test -n "$ac_ct_CC" && break
19545done
19546
19547  CC=$ac_ct_CC
19548fi
19549
19550fi
19551
19552
19553test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19554See \`config.log' for more details." >&5
19555echo "$as_me: error: no acceptable C compiler found in \$PATH
19556See \`config.log' for more details." >&2;}
19557   { (exit 1); exit 1; }; }
19558
19559# Provide some information about the compiler.
19560echo "$as_me:$LINENO:" \
19561     "checking for C compiler version" >&5
19562ac_compiler=`set X $ac_compile; echo $2`
19563{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19564  (eval $ac_compiler --version </dev/null >&5) 2>&5
19565  ac_status=$?
19566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567  (exit $ac_status); }
19568{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19569  (eval $ac_compiler -v </dev/null >&5) 2>&5
19570  ac_status=$?
19571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572  (exit $ac_status); }
19573{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19574  (eval $ac_compiler -V </dev/null >&5) 2>&5
19575  ac_status=$?
19576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577  (exit $ac_status); }
19578
19579echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19580echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19581if test "${ac_cv_c_compiler_gnu+set}" = set; then
19582  echo $ECHO_N "(cached) $ECHO_C" >&6
19583else
19584  cat >conftest.$ac_ext <<_ACEOF
19585/* confdefs.h.  */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
19589/* end confdefs.h.  */
19590
19591int
19592main ()
19593{
19594#ifndef __GNUC__
19595       choke me
19596#endif
19597
19598  ;
19599  return 0;
19600}
19601_ACEOF
19602rm -f conftest.$ac_objext
19603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19604  (eval $ac_compile) 2>conftest.er1
19605  ac_status=$?
19606  grep -v '^ *+' conftest.er1 >conftest.err
19607  rm -f conftest.er1
19608  cat conftest.err >&5
19609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610  (exit $ac_status); } &&
19611	 { ac_try='test -z "$ac_c_werror_flag"
19612			 || test ! -s conftest.err'
19613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614  (eval $ac_try) 2>&5
19615  ac_status=$?
19616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617  (exit $ac_status); }; } &&
19618	 { ac_try='test -s conftest.$ac_objext'
19619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620  (eval $ac_try) 2>&5
19621  ac_status=$?
19622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623  (exit $ac_status); }; }; then
19624  ac_compiler_gnu=yes
19625else
19626  echo "$as_me: failed program was:" >&5
19627sed 's/^/| /' conftest.$ac_ext >&5
19628
19629ac_compiler_gnu=no
19630fi
19631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19632ac_cv_c_compiler_gnu=$ac_compiler_gnu
19633
19634fi
19635echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19636echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19637GCC=`test $ac_compiler_gnu = yes && echo yes`
19638ac_test_CFLAGS=${CFLAGS+set}
19639ac_save_CFLAGS=$CFLAGS
19640CFLAGS="-g"
19641echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19642echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19643if test "${ac_cv_prog_cc_g+set}" = set; then
19644  echo $ECHO_N "(cached) $ECHO_C" >&6
19645else
19646  cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h.  */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h.  */
19652
19653int
19654main ()
19655{
19656
19657  ;
19658  return 0;
19659}
19660_ACEOF
19661rm -f conftest.$ac_objext
19662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663  (eval $ac_compile) 2>conftest.er1
19664  ac_status=$?
19665  grep -v '^ *+' conftest.er1 >conftest.err
19666  rm -f conftest.er1
19667  cat conftest.err >&5
19668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669  (exit $ac_status); } &&
19670	 { ac_try='test -z "$ac_c_werror_flag"
19671			 || test ! -s conftest.err'
19672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673  (eval $ac_try) 2>&5
19674  ac_status=$?
19675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676  (exit $ac_status); }; } &&
19677	 { ac_try='test -s conftest.$ac_objext'
19678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679  (eval $ac_try) 2>&5
19680  ac_status=$?
19681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682  (exit $ac_status); }; }; then
19683  ac_cv_prog_cc_g=yes
19684else
19685  echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
19688ac_cv_prog_cc_g=no
19689fi
19690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19691fi
19692echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19693echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19694if test "$ac_test_CFLAGS" = set; then
19695  CFLAGS=$ac_save_CFLAGS
19696elif test $ac_cv_prog_cc_g = yes; then
19697  if test "$GCC" = yes; then
19698    CFLAGS="-g -O2"
19699  else
19700    CFLAGS="-g"
19701  fi
19702else
19703  if test "$GCC" = yes; then
19704    CFLAGS="-O2"
19705  else
19706    CFLAGS=
19707  fi
19708fi
19709echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19710echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19711if test "${ac_cv_prog_cc_stdc+set}" = set; then
19712  echo $ECHO_N "(cached) $ECHO_C" >&6
19713else
19714  ac_cv_prog_cc_stdc=no
19715ac_save_CC=$CC
19716cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h.  */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h.  */
19722#include <stdarg.h>
19723#include <stdio.h>
19724#include <sys/types.h>
19725#include <sys/stat.h>
19726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19727struct buf { int x; };
19728FILE * (*rcsopen) (struct buf *, struct stat *, int);
19729static char *e (p, i)
19730     char **p;
19731     int i;
19732{
19733  return p[i];
19734}
19735static char *f (char * (*g) (char **, int), char **p, ...)
19736{
19737  char *s;
19738  va_list v;
19739  va_start (v,p);
19740  s = g (p, va_arg (v,int));
19741  va_end (v);
19742  return s;
19743}
19744
19745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19746   function prototypes and stuff, but not '\xHH' hex character constants.
19747   These don't provoke an error unfortunately, instead are silently treated
19748   as 'x'.  The following induces an error, until -std1 is added to get
19749   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19750   array size at least.  It's necessary to write '\x00'==0 to get something
19751   that's true only with -std1.  */
19752int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19753
19754int test (int i, double x);
19755struct s1 {int (*f) (int a);};
19756struct s2 {int (*f) (double a);};
19757int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19758int argc;
19759char **argv;
19760int
19761main ()
19762{
19763return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19764  ;
19765  return 0;
19766}
19767_ACEOF
19768# Don't try gcc -ansi; that turns off useful extensions and
19769# breaks some systems' header files.
19770# AIX			-qlanglvl=ansi
19771# Ultrix and OSF/1	-std1
19772# HP-UX 10.20 and later	-Ae
19773# HP-UX older versions	-Aa -D_HPUX_SOURCE
19774# SVR4			-Xc -D__EXTENSIONS__
19775for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19776do
19777  CC="$ac_save_CC $ac_arg"
19778  rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780  (eval $ac_compile) 2>conftest.er1
19781  ac_status=$?
19782  grep -v '^ *+' conftest.er1 >conftest.err
19783  rm -f conftest.er1
19784  cat conftest.err >&5
19785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786  (exit $ac_status); } &&
19787	 { ac_try='test -z "$ac_c_werror_flag"
19788			 || test ! -s conftest.err'
19789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790  (eval $ac_try) 2>&5
19791  ac_status=$?
19792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793  (exit $ac_status); }; } &&
19794	 { ac_try='test -s conftest.$ac_objext'
19795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796  (eval $ac_try) 2>&5
19797  ac_status=$?
19798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799  (exit $ac_status); }; }; then
19800  ac_cv_prog_cc_stdc=$ac_arg
19801break
19802else
19803  echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806fi
19807rm -f conftest.err conftest.$ac_objext
19808done
19809rm -f conftest.$ac_ext conftest.$ac_objext
19810CC=$ac_save_CC
19811
19812fi
19813
19814case "x$ac_cv_prog_cc_stdc" in
19815  x|xno)
19816    echo "$as_me:$LINENO: result: none needed" >&5
19817echo "${ECHO_T}none needed" >&6 ;;
19818  *)
19819    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19820echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19821    CC="$CC $ac_cv_prog_cc_stdc" ;;
19822esac
19823
19824# Some people use a C++ compiler to compile C.  Since we use `exit',
19825# in C++ we need to declare it.  In case someone uses the same compiler
19826# for both compiling C and C++ we need to have the C++ compiler decide
19827# the declaration of exit, since it's the most demanding environment.
19828cat >conftest.$ac_ext <<_ACEOF
19829#ifndef __cplusplus
19830  choke me
19831#endif
19832_ACEOF
19833rm -f conftest.$ac_objext
19834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19835  (eval $ac_compile) 2>conftest.er1
19836  ac_status=$?
19837  grep -v '^ *+' conftest.er1 >conftest.err
19838  rm -f conftest.er1
19839  cat conftest.err >&5
19840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841  (exit $ac_status); } &&
19842	 { ac_try='test -z "$ac_c_werror_flag"
19843			 || test ! -s conftest.err'
19844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845  (eval $ac_try) 2>&5
19846  ac_status=$?
19847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848  (exit $ac_status); }; } &&
19849	 { ac_try='test -s conftest.$ac_objext'
19850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851  (eval $ac_try) 2>&5
19852  ac_status=$?
19853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854  (exit $ac_status); }; }; then
19855  for ac_declaration in \
19856   '' \
19857   'extern "C" void std::exit (int) throw (); using std::exit;' \
19858   'extern "C" void std::exit (int); using std::exit;' \
19859   'extern "C" void exit (int) throw ();' \
19860   'extern "C" void exit (int);' \
19861   'void exit (int);'
19862do
19863  cat >conftest.$ac_ext <<_ACEOF
19864/* confdefs.h.  */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
19868/* end confdefs.h.  */
19869$ac_declaration
19870#include <stdlib.h>
19871int
19872main ()
19873{
19874exit (42);
19875  ;
19876  return 0;
19877}
19878_ACEOF
19879rm -f conftest.$ac_objext
19880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881  (eval $ac_compile) 2>conftest.er1
19882  ac_status=$?
19883  grep -v '^ *+' conftest.er1 >conftest.err
19884  rm -f conftest.er1
19885  cat conftest.err >&5
19886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887  (exit $ac_status); } &&
19888	 { ac_try='test -z "$ac_c_werror_flag"
19889			 || test ! -s conftest.err'
19890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891  (eval $ac_try) 2>&5
19892  ac_status=$?
19893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894  (exit $ac_status); }; } &&
19895	 { ac_try='test -s conftest.$ac_objext'
19896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897  (eval $ac_try) 2>&5
19898  ac_status=$?
19899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900  (exit $ac_status); }; }; then
19901  :
19902else
19903  echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906continue
19907fi
19908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19909  cat >conftest.$ac_ext <<_ACEOF
19910/* confdefs.h.  */
19911_ACEOF
19912cat confdefs.h >>conftest.$ac_ext
19913cat >>conftest.$ac_ext <<_ACEOF
19914/* end confdefs.h.  */
19915$ac_declaration
19916int
19917main ()
19918{
19919exit (42);
19920  ;
19921  return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext
19925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926  (eval $ac_compile) 2>conftest.er1
19927  ac_status=$?
19928  grep -v '^ *+' conftest.er1 >conftest.err
19929  rm -f conftest.er1
19930  cat conftest.err >&5
19931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932  (exit $ac_status); } &&
19933	 { ac_try='test -z "$ac_c_werror_flag"
19934			 || test ! -s conftest.err'
19935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936  (eval $ac_try) 2>&5
19937  ac_status=$?
19938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939  (exit $ac_status); }; } &&
19940	 { ac_try='test -s conftest.$ac_objext'
19941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942  (eval $ac_try) 2>&5
19943  ac_status=$?
19944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945  (exit $ac_status); }; }; then
19946  break
19947else
19948  echo "$as_me: failed program was:" >&5
19949sed 's/^/| /' conftest.$ac_ext >&5
19950
19951fi
19952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19953done
19954rm -f conftest*
19955if test -n "$ac_declaration"; then
19956  echo '#ifdef __cplusplus' >>confdefs.h
19957  echo $ac_declaration      >>confdefs.h
19958  echo '#endif'             >>confdefs.h
19959fi
19960
19961else
19962  echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965fi
19966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19967ac_ext=c
19968ac_cpp='$CPP $CPPFLAGS'
19969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971ac_compiler_gnu=$ac_cv_c_compiler_gnu
19972
19973depcc="$CC"   am_compiler_list=
19974
19975echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19976echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19977if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19978  echo $ECHO_N "(cached) $ECHO_C" >&6
19979else
19980  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19981  # We make a subdir and do the tests there.  Otherwise we can end up
19982  # making bogus files that we don't know about and never remove.  For
19983  # instance it was reported that on HP-UX the gcc test will end up
19984  # making a dummy file named `D' -- because `-MD' means `put the output
19985  # in D'.
19986  mkdir conftest.dir
19987  # Copy depcomp to subdir because otherwise we won't find it if we're
19988  # using a relative directory.
19989  cp "$am_depcomp" conftest.dir
19990  cd conftest.dir
19991  # We will build objects and dependencies in a subdirectory because
19992  # it helps to detect inapplicable dependency modes.  For instance
19993  # both Tru64's cc and ICC support -MD to output dependencies as a
19994  # side effect of compilation, but ICC will put the dependencies in
19995  # the current directory while Tru64 will put them in the object
19996  # directory.
19997  mkdir sub
19998
19999  am_cv_CC_dependencies_compiler_type=none
20000  if test "$am_compiler_list" = ""; then
20001     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20002  fi
20003  for depmode in $am_compiler_list; do
20004    # Setup a source with many dependencies, because some compilers
20005    # like to wrap large dependency lists on column 80 (with \), and
20006    # we should not choose a depcomp mode which is confused by this.
20007    #
20008    # We need to recreate these files for each test, as the compiler may
20009    # overwrite some of them when testing with obscure command lines.
20010    # This happens at least with the AIX C compiler.
20011    : > sub/conftest.c
20012    for i in 1 2 3 4 5 6; do
20013      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20014      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20015      # Solaris 8's {/usr,}/bin/sh.
20016      touch sub/conftst$i.h
20017    done
20018    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20019
20020    case $depmode in
20021    nosideeffect)
20022      # after this tag, mechanisms are not by side-effect, so they'll
20023      # only be used when explicitly requested
20024      if test "x$enable_dependency_tracking" = xyes; then
20025	continue
20026      else
20027	break
20028      fi
20029      ;;
20030    none) break ;;
20031    esac
20032    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20033    # mode.  It turns out that the SunPro C++ compiler does not properly
20034    # handle `-M -o', and we need to detect this.
20035    if depmode=$depmode \
20036       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20037       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20038       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20039         >/dev/null 2>conftest.err &&
20040       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20041       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20042       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20043      # icc doesn't choke on unknown options, it will just issue warnings
20044      # or remarks (even with -Werror).  So we grep stderr for any message
20045      # that says an option was ignored or not supported.
20046      # When given -MP, icc 7.0 and 7.1 complain thusly:
20047      #   icc: Command line warning: ignoring option '-M'; no argument required
20048      # The diagnosis changed in icc 8.0:
20049      #   icc: Command line remark: option '-MP' not supported
20050      if (grep 'ignoring option' conftest.err ||
20051          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20052        am_cv_CC_dependencies_compiler_type=$depmode
20053        break
20054      fi
20055    fi
20056  done
20057
20058  cd ..
20059  rm -rf conftest.dir
20060else
20061  am_cv_CC_dependencies_compiler_type=none
20062fi
20063
20064fi
20065echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20066echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20067CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20068
20069
20070
20071if
20072  test "x$enable_dependency_tracking" != xno \
20073  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20074  am__fastdepCC_TRUE=
20075  am__fastdepCC_FALSE='#'
20076else
20077  am__fastdepCC_TRUE='#'
20078  am__fastdepCC_FALSE=
20079fi
20080
20081
20082
20083echo "$as_me:$LINENO: checking for library containing strerror" >&5
20084echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
20085if test "${ac_cv_search_strerror+set}" = set; then
20086  echo $ECHO_N "(cached) $ECHO_C" >&6
20087else
20088  ac_func_search_save_LIBS=$LIBS
20089ac_cv_search_strerror=no
20090cat >conftest.$ac_ext <<_ACEOF
20091/* confdefs.h.  */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h.  */
20096
20097/* Override any gcc2 internal prototype to avoid an error.  */
20098#ifdef __cplusplus
20099extern "C"
20100#endif
20101/* We use char because int might match the return type of a gcc2
20102   builtin and then its argument prototype would still apply.  */
20103char strerror ();
20104int
20105main ()
20106{
20107strerror ();
20108  ;
20109  return 0;
20110}
20111_ACEOF
20112rm -f conftest.$ac_objext conftest$ac_exeext
20113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114  (eval $ac_link) 2>conftest.er1
20115  ac_status=$?
20116  grep -v '^ *+' conftest.er1 >conftest.err
20117  rm -f conftest.er1
20118  cat conftest.err >&5
20119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120  (exit $ac_status); } &&
20121	 { ac_try='test -z "$ac_c_werror_flag"
20122			 || test ! -s conftest.err'
20123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124  (eval $ac_try) 2>&5
20125  ac_status=$?
20126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127  (exit $ac_status); }; } &&
20128	 { ac_try='test -s conftest$ac_exeext'
20129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130  (eval $ac_try) 2>&5
20131  ac_status=$?
20132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133  (exit $ac_status); }; }; then
20134  ac_cv_search_strerror="none required"
20135else
20136  echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
20139fi
20140rm -f conftest.err conftest.$ac_objext \
20141      conftest$ac_exeext conftest.$ac_ext
20142if test "$ac_cv_search_strerror" = no; then
20143  for ac_lib in cposix; do
20144    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20145    cat >conftest.$ac_ext <<_ACEOF
20146/* confdefs.h.  */
20147_ACEOF
20148cat confdefs.h >>conftest.$ac_ext
20149cat >>conftest.$ac_ext <<_ACEOF
20150/* end confdefs.h.  */
20151
20152/* Override any gcc2 internal prototype to avoid an error.  */
20153#ifdef __cplusplus
20154extern "C"
20155#endif
20156/* We use char because int might match the return type of a gcc2
20157   builtin and then its argument prototype would still apply.  */
20158char strerror ();
20159int
20160main ()
20161{
20162strerror ();
20163  ;
20164  return 0;
20165}
20166_ACEOF
20167rm -f conftest.$ac_objext conftest$ac_exeext
20168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20169  (eval $ac_link) 2>conftest.er1
20170  ac_status=$?
20171  grep -v '^ *+' conftest.er1 >conftest.err
20172  rm -f conftest.er1
20173  cat conftest.err >&5
20174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175  (exit $ac_status); } &&
20176	 { ac_try='test -z "$ac_c_werror_flag"
20177			 || test ! -s conftest.err'
20178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179  (eval $ac_try) 2>&5
20180  ac_status=$?
20181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182  (exit $ac_status); }; } &&
20183	 { ac_try='test -s conftest$ac_exeext'
20184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185  (eval $ac_try) 2>&5
20186  ac_status=$?
20187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188  (exit $ac_status); }; }; then
20189  ac_cv_search_strerror="-l$ac_lib"
20190break
20191else
20192  echo "$as_me: failed program was:" >&5
20193sed 's/^/| /' conftest.$ac_ext >&5
20194
20195fi
20196rm -f conftest.err conftest.$ac_objext \
20197      conftest$ac_exeext conftest.$ac_ext
20198  done
20199fi
20200LIBS=$ac_func_search_save_LIBS
20201fi
20202echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20203echo "${ECHO_T}$ac_cv_search_strerror" >&6
20204if test "$ac_cv_search_strerror" != no; then
20205  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
20206
20207fi
20208
20209
20210echo $ac_n "checking whether man accepts -a... "
20211man -a man 1>/dev/null 2>conftestman
20212if test -n "`cat conftestman | grep '[Uu]sage'`" -o \
20213		-n "`cat conftestman | grep '[Ee]rror'`" -o \
20214		-n "`cat conftestman | grep '[Ii]llegal'`" ; then
20215	MAN_CMD="man %m" ;
20216	echo "no" ;
20217else
20218	MAN_CMD="man -a %m" ;
20219	echo "yes" ;
20220fi
20221rm -f conftestman
20222
20223cat >>confdefs.h <<_ACEOF
20224#define MAN_CMD "${MAN_CMD}"
20225_ACEOF
20226
20227
20228echo $ac_n "checking for rxvt... "
20229if rxvt -help 2>&1 | grep geom >/dev/null ; then
20230	XTERM_CMD="rxvt -fn %F -bg Navy -fg White " ;
20231	echo "yes" ;
20232else
20233	XTERM_CMD="xterm" ;
20234	echo "no" ;
20235fi
20236rm -f conftestrxvt
20237
20238cat >>confdefs.h <<_ACEOF
20239#define XTERM_CMD "${XTERM_CMD}"
20240_ACEOF
20241
20242
20243ALL_LINGUAS="cs da de es fi fr it ja ko nl no pl pt ru sl sv"
20244CATALOGS="cs.gmo da.gmo de.gmo es.gmo fi.gmo fr.gmo it.gmo ja.gmo ko.gmo nl.gmo no.gmo pl.gmo pt.gmo ru.gmo sl.gmo sv.gmo"
20245
20246ac_sources="$nls_cv_header_libgt"
20247ac_dests="$nls_cv_header_intl"
20248while test -n "$ac_sources"; do
20249  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20250  set $ac_sources; ac_source=$1; shift; ac_sources=$*
20251  ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
20252done
20253          ac_config_links="$ac_config_links $ac_config_links_1"
20254
20255
20256echo "$as_me:$LINENO: checking for X" >&5
20257echo $ECHO_N "checking for X... $ECHO_C" >&6
20258
20259
20260# Check whether --with-x or --without-x was given.
20261if test "${with_x+set}" = set; then
20262  withval="$with_x"
20263
20264fi;
20265# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20266if test "x$with_x" = xno; then
20267  # The user explicitly disabled X.
20268  have_x=disabled
20269else
20270  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20271    # Both variables are already set.
20272    have_x=yes
20273  else
20274    if test "${ac_cv_have_x+set}" = set; then
20275  echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277  # One or both of the vars are not set, and there is no cached value.
20278ac_x_includes=no ac_x_libraries=no
20279rm -fr conftest.dir
20280if mkdir conftest.dir; then
20281  cd conftest.dir
20282  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20283  cat >Imakefile <<'_ACEOF'
20284acfindx:
20285	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20286_ACEOF
20287  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20288    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20289    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20290    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20291    for ac_extension in a so sl; do
20292      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20293	 test -f $ac_im_libdir/libX11.$ac_extension; then
20294	ac_im_usrlibdir=$ac_im_libdir; break
20295      fi
20296    done
20297    # Screen out bogus values from the imake configuration.  They are
20298    # bogus both because they are the default anyway, and because
20299    # using them would break gcc on systems where it needs fixed includes.
20300    case $ac_im_incroot in
20301	/usr/include) ;;
20302	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20303    esac
20304    case $ac_im_usrlibdir in
20305	/usr/lib | /lib) ;;
20306	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20307    esac
20308  fi
20309  cd ..
20310  rm -fr conftest.dir
20311fi
20312
20313# Standard set of common directories for X headers.
20314# Check X11 before X11Rn because it is often a symlink to the current release.
20315ac_x_header_dirs='
20316/usr/X11/include
20317/usr/X11R6/include
20318/usr/X11R5/include
20319/usr/X11R4/include
20320
20321/usr/include/X11
20322/usr/include/X11R6
20323/usr/include/X11R5
20324/usr/include/X11R4
20325
20326/usr/local/X11/include
20327/usr/local/X11R6/include
20328/usr/local/X11R5/include
20329/usr/local/X11R4/include
20330
20331/usr/local/include/X11
20332/usr/local/include/X11R6
20333/usr/local/include/X11R5
20334/usr/local/include/X11R4
20335
20336/usr/X386/include
20337/usr/x386/include
20338/usr/XFree86/include/X11
20339
20340/usr/include
20341/usr/local/include
20342/usr/unsupported/include
20343/usr/athena/include
20344/usr/local/x11r5/include
20345/usr/lpp/Xamples/include
20346
20347/usr/openwin/include
20348/usr/openwin/share/include'
20349
20350if test "$ac_x_includes" = no; then
20351  # Guess where to find include files, by looking for Intrinsic.h.
20352  # First, try using that file with no special directory specified.
20353  cat >conftest.$ac_ext <<_ACEOF
20354/* confdefs.h.  */
20355_ACEOF
20356cat confdefs.h >>conftest.$ac_ext
20357cat >>conftest.$ac_ext <<_ACEOF
20358/* end confdefs.h.  */
20359#include <X11/Intrinsic.h>
20360_ACEOF
20361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20363  ac_status=$?
20364  grep -v '^ *+' conftest.er1 >conftest.err
20365  rm -f conftest.er1
20366  cat conftest.err >&5
20367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368  (exit $ac_status); } >/dev/null; then
20369  if test -s conftest.err; then
20370    ac_cpp_err=$ac_c_preproc_warn_flag
20371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20372  else
20373    ac_cpp_err=
20374  fi
20375else
20376  ac_cpp_err=yes
20377fi
20378if test -z "$ac_cpp_err"; then
20379  # We can compile using X headers with no special include directory.
20380ac_x_includes=
20381else
20382  echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
20385  for ac_dir in $ac_x_header_dirs; do
20386  if test -r "$ac_dir/X11/Intrinsic.h"; then
20387    ac_x_includes=$ac_dir
20388    break
20389  fi
20390done
20391fi
20392rm -f conftest.err conftest.$ac_ext
20393fi # $ac_x_includes = no
20394
20395if test "$ac_x_libraries" = no; then
20396  # Check for the libraries.
20397  # See if we find them without any special options.
20398  # Don't add to $LIBS permanently.
20399  ac_save_LIBS=$LIBS
20400  LIBS="-lXt $LIBS"
20401  cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h.  */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h.  */
20407#include <X11/Intrinsic.h>
20408int
20409main ()
20410{
20411XtMalloc (0)
20412  ;
20413  return 0;
20414}
20415_ACEOF
20416rm -f conftest.$ac_objext conftest$ac_exeext
20417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20418  (eval $ac_link) 2>conftest.er1
20419  ac_status=$?
20420  grep -v '^ *+' conftest.er1 >conftest.err
20421  rm -f conftest.er1
20422  cat conftest.err >&5
20423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424  (exit $ac_status); } &&
20425	 { ac_try='test -z "$ac_c_werror_flag"
20426			 || test ! -s conftest.err'
20427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428  (eval $ac_try) 2>&5
20429  ac_status=$?
20430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431  (exit $ac_status); }; } &&
20432	 { ac_try='test -s conftest$ac_exeext'
20433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434  (eval $ac_try) 2>&5
20435  ac_status=$?
20436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437  (exit $ac_status); }; }; then
20438  LIBS=$ac_save_LIBS
20439# We can link X programs with no special library path.
20440ac_x_libraries=
20441else
20442  echo "$as_me: failed program was:" >&5
20443sed 's/^/| /' conftest.$ac_ext >&5
20444
20445LIBS=$ac_save_LIBS
20446for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20447do
20448  # Don't even attempt the hair of trying to link an X program!
20449  for ac_extension in a so sl; do
20450    if test -r $ac_dir/libXt.$ac_extension; then
20451      ac_x_libraries=$ac_dir
20452      break 2
20453    fi
20454  done
20455done
20456fi
20457rm -f conftest.err conftest.$ac_objext \
20458      conftest$ac_exeext conftest.$ac_ext
20459fi # $ac_x_libraries = no
20460
20461if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20462  # Didn't find X anywhere.  Cache the known absence of X.
20463  ac_cv_have_x="have_x=no"
20464else
20465  # Record where we found X for the cache.
20466  ac_cv_have_x="have_x=yes \
20467		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20468fi
20469fi
20470
20471  fi
20472  eval "$ac_cv_have_x"
20473fi # $with_x != no
20474
20475if test "$have_x" != yes; then
20476  echo "$as_me:$LINENO: result: $have_x" >&5
20477echo "${ECHO_T}$have_x" >&6
20478  no_x=yes
20479else
20480  # If each of the values was on the command line, it overrides each guess.
20481  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20482  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20483  # Update the cache value to reflect the command line values.
20484  ac_cv_have_x="have_x=yes \
20485		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20486  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20487echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20488fi
20489
20490if test "$no_x" = yes; then
20491  # Not all programs may use this symbol, but it does not hurt to define it.
20492
20493cat >>confdefs.h <<\_ACEOF
20494#define X_DISPLAY_MISSING 1
20495_ACEOF
20496
20497  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20498else
20499  if test -n "$x_includes"; then
20500    X_CFLAGS="$X_CFLAGS -I$x_includes"
20501  fi
20502
20503  # It would also be nice to do this for all -L options, not just this one.
20504  if test -n "$x_libraries"; then
20505    X_LIBS="$X_LIBS -L$x_libraries"
20506    # For Solaris; some versions of Sun CC require a space after -R and
20507    # others require no space.  Words are not sufficient . . . .
20508    case `(uname -sr) 2>/dev/null` in
20509    "SunOS 5"*)
20510      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20511echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20512      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20513      cat >conftest.$ac_ext <<_ACEOF
20514/* confdefs.h.  */
20515_ACEOF
20516cat confdefs.h >>conftest.$ac_ext
20517cat >>conftest.$ac_ext <<_ACEOF
20518/* end confdefs.h.  */
20519
20520int
20521main ()
20522{
20523
20524  ;
20525  return 0;
20526}
20527_ACEOF
20528rm -f conftest.$ac_objext conftest$ac_exeext
20529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20530  (eval $ac_link) 2>conftest.er1
20531  ac_status=$?
20532  grep -v '^ *+' conftest.er1 >conftest.err
20533  rm -f conftest.er1
20534  cat conftest.err >&5
20535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536  (exit $ac_status); } &&
20537	 { ac_try='test -z "$ac_c_werror_flag"
20538			 || test ! -s conftest.err'
20539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540  (eval $ac_try) 2>&5
20541  ac_status=$?
20542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543  (exit $ac_status); }; } &&
20544	 { ac_try='test -s conftest$ac_exeext'
20545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546  (eval $ac_try) 2>&5
20547  ac_status=$?
20548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549  (exit $ac_status); }; }; then
20550  ac_R_nospace=yes
20551else
20552  echo "$as_me: failed program was:" >&5
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
20555ac_R_nospace=no
20556fi
20557rm -f conftest.err conftest.$ac_objext \
20558      conftest$ac_exeext conftest.$ac_ext
20559      if test $ac_R_nospace = yes; then
20560	echo "$as_me:$LINENO: result: no" >&5
20561echo "${ECHO_T}no" >&6
20562	X_LIBS="$X_LIBS -R$x_libraries"
20563      else
20564	LIBS="$ac_xsave_LIBS -R $x_libraries"
20565	cat >conftest.$ac_ext <<_ACEOF
20566/* confdefs.h.  */
20567_ACEOF
20568cat confdefs.h >>conftest.$ac_ext
20569cat >>conftest.$ac_ext <<_ACEOF
20570/* end confdefs.h.  */
20571
20572int
20573main ()
20574{
20575
20576  ;
20577  return 0;
20578}
20579_ACEOF
20580rm -f conftest.$ac_objext conftest$ac_exeext
20581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20582  (eval $ac_link) 2>conftest.er1
20583  ac_status=$?
20584  grep -v '^ *+' conftest.er1 >conftest.err
20585  rm -f conftest.er1
20586  cat conftest.err >&5
20587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588  (exit $ac_status); } &&
20589	 { ac_try='test -z "$ac_c_werror_flag"
20590			 || test ! -s conftest.err'
20591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592  (eval $ac_try) 2>&5
20593  ac_status=$?
20594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595  (exit $ac_status); }; } &&
20596	 { ac_try='test -s conftest$ac_exeext'
20597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598  (eval $ac_try) 2>&5
20599  ac_status=$?
20600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601  (exit $ac_status); }; }; then
20602  ac_R_space=yes
20603else
20604  echo "$as_me: failed program was:" >&5
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
20607ac_R_space=no
20608fi
20609rm -f conftest.err conftest.$ac_objext \
20610      conftest$ac_exeext conftest.$ac_ext
20611	if test $ac_R_space = yes; then
20612	  echo "$as_me:$LINENO: result: yes" >&5
20613echo "${ECHO_T}yes" >&6
20614	  X_LIBS="$X_LIBS -R $x_libraries"
20615	else
20616	  echo "$as_me:$LINENO: result: neither works" >&5
20617echo "${ECHO_T}neither works" >&6
20618	fi
20619      fi
20620      LIBS=$ac_xsave_LIBS
20621    esac
20622  fi
20623
20624  # Check for system-dependent libraries X programs must link with.
20625  # Do this before checking for the system-independent R6 libraries
20626  # (-lICE), since we may need -lsocket or whatever for X linking.
20627
20628  if test "$ISC" = yes; then
20629    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20630  else
20631    # Martyn Johnson says this is needed for Ultrix, if the X
20632    # libraries were built with DECnet support.  And Karl Berry says
20633    # the Alpha needs dnet_stub (dnet does not exist).
20634    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20635    cat >conftest.$ac_ext <<_ACEOF
20636/* confdefs.h.  */
20637_ACEOF
20638cat confdefs.h >>conftest.$ac_ext
20639cat >>conftest.$ac_ext <<_ACEOF
20640/* end confdefs.h.  */
20641
20642/* Override any gcc2 internal prototype to avoid an error.  */
20643#ifdef __cplusplus
20644extern "C"
20645#endif
20646/* We use char because int might match the return type of a gcc2
20647   builtin and then its argument prototype would still apply.  */
20648char XOpenDisplay ();
20649int
20650main ()
20651{
20652XOpenDisplay ();
20653  ;
20654  return 0;
20655}
20656_ACEOF
20657rm -f conftest.$ac_objext conftest$ac_exeext
20658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20659  (eval $ac_link) 2>conftest.er1
20660  ac_status=$?
20661  grep -v '^ *+' conftest.er1 >conftest.err
20662  rm -f conftest.er1
20663  cat conftest.err >&5
20664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665  (exit $ac_status); } &&
20666	 { ac_try='test -z "$ac_c_werror_flag"
20667			 || test ! -s conftest.err'
20668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669  (eval $ac_try) 2>&5
20670  ac_status=$?
20671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672  (exit $ac_status); }; } &&
20673	 { ac_try='test -s conftest$ac_exeext'
20674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675  (eval $ac_try) 2>&5
20676  ac_status=$?
20677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678  (exit $ac_status); }; }; then
20679  :
20680else
20681  echo "$as_me: failed program was:" >&5
20682sed 's/^/| /' conftest.$ac_ext >&5
20683
20684echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20685echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20686if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20687  echo $ECHO_N "(cached) $ECHO_C" >&6
20688else
20689  ac_check_lib_save_LIBS=$LIBS
20690LIBS="-ldnet  $LIBS"
20691cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h.  */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h.  */
20697
20698/* Override any gcc2 internal prototype to avoid an error.  */
20699#ifdef __cplusplus
20700extern "C"
20701#endif
20702/* We use char because int might match the return type of a gcc2
20703   builtin and then its argument prototype would still apply.  */
20704char dnet_ntoa ();
20705int
20706main ()
20707{
20708dnet_ntoa ();
20709  ;
20710  return 0;
20711}
20712_ACEOF
20713rm -f conftest.$ac_objext conftest$ac_exeext
20714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20715  (eval $ac_link) 2>conftest.er1
20716  ac_status=$?
20717  grep -v '^ *+' conftest.er1 >conftest.err
20718  rm -f conftest.er1
20719  cat conftest.err >&5
20720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721  (exit $ac_status); } &&
20722	 { ac_try='test -z "$ac_c_werror_flag"
20723			 || test ! -s conftest.err'
20724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725  (eval $ac_try) 2>&5
20726  ac_status=$?
20727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728  (exit $ac_status); }; } &&
20729	 { ac_try='test -s conftest$ac_exeext'
20730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731  (eval $ac_try) 2>&5
20732  ac_status=$?
20733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734  (exit $ac_status); }; }; then
20735  ac_cv_lib_dnet_dnet_ntoa=yes
20736else
20737  echo "$as_me: failed program was:" >&5
20738sed 's/^/| /' conftest.$ac_ext >&5
20739
20740ac_cv_lib_dnet_dnet_ntoa=no
20741fi
20742rm -f conftest.err conftest.$ac_objext \
20743      conftest$ac_exeext conftest.$ac_ext
20744LIBS=$ac_check_lib_save_LIBS
20745fi
20746echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20747echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20748if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20749  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20750fi
20751
20752    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20753      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20754echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20755if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20756  echo $ECHO_N "(cached) $ECHO_C" >&6
20757else
20758  ac_check_lib_save_LIBS=$LIBS
20759LIBS="-ldnet_stub  $LIBS"
20760cat >conftest.$ac_ext <<_ACEOF
20761/* confdefs.h.  */
20762_ACEOF
20763cat confdefs.h >>conftest.$ac_ext
20764cat >>conftest.$ac_ext <<_ACEOF
20765/* end confdefs.h.  */
20766
20767/* Override any gcc2 internal prototype to avoid an error.  */
20768#ifdef __cplusplus
20769extern "C"
20770#endif
20771/* We use char because int might match the return type of a gcc2
20772   builtin and then its argument prototype would still apply.  */
20773char dnet_ntoa ();
20774int
20775main ()
20776{
20777dnet_ntoa ();
20778  ;
20779  return 0;
20780}
20781_ACEOF
20782rm -f conftest.$ac_objext conftest$ac_exeext
20783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20784  (eval $ac_link) 2>conftest.er1
20785  ac_status=$?
20786  grep -v '^ *+' conftest.er1 >conftest.err
20787  rm -f conftest.er1
20788  cat conftest.err >&5
20789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790  (exit $ac_status); } &&
20791	 { ac_try='test -z "$ac_c_werror_flag"
20792			 || test ! -s conftest.err'
20793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794  (eval $ac_try) 2>&5
20795  ac_status=$?
20796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797  (exit $ac_status); }; } &&
20798	 { ac_try='test -s conftest$ac_exeext'
20799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800  (eval $ac_try) 2>&5
20801  ac_status=$?
20802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803  (exit $ac_status); }; }; then
20804  ac_cv_lib_dnet_stub_dnet_ntoa=yes
20805else
20806  echo "$as_me: failed program was:" >&5
20807sed 's/^/| /' conftest.$ac_ext >&5
20808
20809ac_cv_lib_dnet_stub_dnet_ntoa=no
20810fi
20811rm -f conftest.err conftest.$ac_objext \
20812      conftest$ac_exeext conftest.$ac_ext
20813LIBS=$ac_check_lib_save_LIBS
20814fi
20815echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20816echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20817if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20818  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20819fi
20820
20821    fi
20822fi
20823rm -f conftest.err conftest.$ac_objext \
20824      conftest$ac_exeext conftest.$ac_ext
20825    LIBS="$ac_xsave_LIBS"
20826
20827    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20828    # to get the SysV transport functions.
20829    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20830    # needs -lnsl.
20831    # The nsl library prevents programs from opening the X display
20832    # on Irix 5.2, according to T.E. Dickey.
20833    # The functions gethostbyname, getservbyname, and inet_addr are
20834    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20835    echo "$as_me:$LINENO: checking for gethostbyname" >&5
20836echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20837if test "${ac_cv_func_gethostbyname+set}" = set; then
20838  echo $ECHO_N "(cached) $ECHO_C" >&6
20839else
20840  cat >conftest.$ac_ext <<_ACEOF
20841/* confdefs.h.  */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
20845/* end confdefs.h.  */
20846/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20848#define gethostbyname innocuous_gethostbyname
20849
20850/* System header to define __stub macros and hopefully few prototypes,
20851    which can conflict with char gethostbyname (); below.
20852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20853    <limits.h> exists even on freestanding compilers.  */
20854
20855#ifdef __STDC__
20856# include <limits.h>
20857#else
20858# include <assert.h>
20859#endif
20860
20861#undef gethostbyname
20862
20863/* Override any gcc2 internal prototype to avoid an error.  */
20864#ifdef __cplusplus
20865extern "C"
20866{
20867#endif
20868/* We use char because int might match the return type of a gcc2
20869   builtin and then its argument prototype would still apply.  */
20870char gethostbyname ();
20871/* The GNU C library defines this for functions which it implements
20872    to always fail with ENOSYS.  Some functions are actually named
20873    something starting with __ and the normal name is an alias.  */
20874#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20875choke me
20876#else
20877char (*f) () = gethostbyname;
20878#endif
20879#ifdef __cplusplus
20880}
20881#endif
20882
20883int
20884main ()
20885{
20886return f != gethostbyname;
20887  ;
20888  return 0;
20889}
20890_ACEOF
20891rm -f conftest.$ac_objext conftest$ac_exeext
20892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893  (eval $ac_link) 2>conftest.er1
20894  ac_status=$?
20895  grep -v '^ *+' conftest.er1 >conftest.err
20896  rm -f conftest.er1
20897  cat conftest.err >&5
20898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899  (exit $ac_status); } &&
20900	 { ac_try='test -z "$ac_c_werror_flag"
20901			 || test ! -s conftest.err'
20902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903  (eval $ac_try) 2>&5
20904  ac_status=$?
20905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906  (exit $ac_status); }; } &&
20907	 { ac_try='test -s conftest$ac_exeext'
20908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909  (eval $ac_try) 2>&5
20910  ac_status=$?
20911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912  (exit $ac_status); }; }; then
20913  ac_cv_func_gethostbyname=yes
20914else
20915  echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918ac_cv_func_gethostbyname=no
20919fi
20920rm -f conftest.err conftest.$ac_objext \
20921      conftest$ac_exeext conftest.$ac_ext
20922fi
20923echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20924echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20925
20926    if test $ac_cv_func_gethostbyname = no; then
20927      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20928echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20929if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20930  echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932  ac_check_lib_save_LIBS=$LIBS
20933LIBS="-lnsl  $LIBS"
20934cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h.  */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h.  */
20940
20941/* Override any gcc2 internal prototype to avoid an error.  */
20942#ifdef __cplusplus
20943extern "C"
20944#endif
20945/* We use char because int might match the return type of a gcc2
20946   builtin and then its argument prototype would still apply.  */
20947char gethostbyname ();
20948int
20949main ()
20950{
20951gethostbyname ();
20952  ;
20953  return 0;
20954}
20955_ACEOF
20956rm -f conftest.$ac_objext conftest$ac_exeext
20957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958  (eval $ac_link) 2>conftest.er1
20959  ac_status=$?
20960  grep -v '^ *+' conftest.er1 >conftest.err
20961  rm -f conftest.er1
20962  cat conftest.err >&5
20963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964  (exit $ac_status); } &&
20965	 { ac_try='test -z "$ac_c_werror_flag"
20966			 || test ! -s conftest.err'
20967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968  (eval $ac_try) 2>&5
20969  ac_status=$?
20970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971  (exit $ac_status); }; } &&
20972	 { ac_try='test -s conftest$ac_exeext'
20973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974  (eval $ac_try) 2>&5
20975  ac_status=$?
20976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977  (exit $ac_status); }; }; then
20978  ac_cv_lib_nsl_gethostbyname=yes
20979else
20980  echo "$as_me: failed program was:" >&5
20981sed 's/^/| /' conftest.$ac_ext >&5
20982
20983ac_cv_lib_nsl_gethostbyname=no
20984fi
20985rm -f conftest.err conftest.$ac_objext \
20986      conftest$ac_exeext conftest.$ac_ext
20987LIBS=$ac_check_lib_save_LIBS
20988fi
20989echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20990echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20991if test $ac_cv_lib_nsl_gethostbyname = yes; then
20992  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20993fi
20994
20995      if test $ac_cv_lib_nsl_gethostbyname = no; then
20996	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20997echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20998if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20999  echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001  ac_check_lib_save_LIBS=$LIBS
21002LIBS="-lbsd  $LIBS"
21003cat >conftest.$ac_ext <<_ACEOF
21004/* confdefs.h.  */
21005_ACEOF
21006cat confdefs.h >>conftest.$ac_ext
21007cat >>conftest.$ac_ext <<_ACEOF
21008/* end confdefs.h.  */
21009
21010/* Override any gcc2 internal prototype to avoid an error.  */
21011#ifdef __cplusplus
21012extern "C"
21013#endif
21014/* We use char because int might match the return type of a gcc2
21015   builtin and then its argument prototype would still apply.  */
21016char gethostbyname ();
21017int
21018main ()
21019{
21020gethostbyname ();
21021  ;
21022  return 0;
21023}
21024_ACEOF
21025rm -f conftest.$ac_objext conftest$ac_exeext
21026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027  (eval $ac_link) 2>conftest.er1
21028  ac_status=$?
21029  grep -v '^ *+' conftest.er1 >conftest.err
21030  rm -f conftest.er1
21031  cat conftest.err >&5
21032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033  (exit $ac_status); } &&
21034	 { ac_try='test -z "$ac_c_werror_flag"
21035			 || test ! -s conftest.err'
21036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037  (eval $ac_try) 2>&5
21038  ac_status=$?
21039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040  (exit $ac_status); }; } &&
21041	 { ac_try='test -s conftest$ac_exeext'
21042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043  (eval $ac_try) 2>&5
21044  ac_status=$?
21045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046  (exit $ac_status); }; }; then
21047  ac_cv_lib_bsd_gethostbyname=yes
21048else
21049  echo "$as_me: failed program was:" >&5
21050sed 's/^/| /' conftest.$ac_ext >&5
21051
21052ac_cv_lib_bsd_gethostbyname=no
21053fi
21054rm -f conftest.err conftest.$ac_objext \
21055      conftest$ac_exeext conftest.$ac_ext
21056LIBS=$ac_check_lib_save_LIBS
21057fi
21058echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21059echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21060if test $ac_cv_lib_bsd_gethostbyname = yes; then
21061  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21062fi
21063
21064      fi
21065    fi
21066
21067    # lieder@skyler.mavd.honeywell.com says without -lsocket,
21068    # socket/setsockopt and other routines are undefined under SCO ODT
21069    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21070    # on later versions), says Simon Leinen: it contains gethostby*
21071    # variants that don't use the name server (or something).  -lsocket
21072    # must be given before -lnsl if both are needed.  We assume that
21073    # if connect needs -lnsl, so does gethostbyname.
21074    echo "$as_me:$LINENO: checking for connect" >&5
21075echo $ECHO_N "checking for connect... $ECHO_C" >&6
21076if test "${ac_cv_func_connect+set}" = set; then
21077  echo $ECHO_N "(cached) $ECHO_C" >&6
21078else
21079  cat >conftest.$ac_ext <<_ACEOF
21080/* confdefs.h.  */
21081_ACEOF
21082cat confdefs.h >>conftest.$ac_ext
21083cat >>conftest.$ac_ext <<_ACEOF
21084/* end confdefs.h.  */
21085/* Define connect to an innocuous variant, in case <limits.h> declares connect.
21086   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21087#define connect innocuous_connect
21088
21089/* System header to define __stub macros and hopefully few prototypes,
21090    which can conflict with char connect (); below.
21091    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21092    <limits.h> exists even on freestanding compilers.  */
21093
21094#ifdef __STDC__
21095# include <limits.h>
21096#else
21097# include <assert.h>
21098#endif
21099
21100#undef connect
21101
21102/* Override any gcc2 internal prototype to avoid an error.  */
21103#ifdef __cplusplus
21104extern "C"
21105{
21106#endif
21107/* We use char because int might match the return type of a gcc2
21108   builtin and then its argument prototype would still apply.  */
21109char connect ();
21110/* The GNU C library defines this for functions which it implements
21111    to always fail with ENOSYS.  Some functions are actually named
21112    something starting with __ and the normal name is an alias.  */
21113#if defined (__stub_connect) || defined (__stub___connect)
21114choke me
21115#else
21116char (*f) () = connect;
21117#endif
21118#ifdef __cplusplus
21119}
21120#endif
21121
21122int
21123main ()
21124{
21125return f != connect;
21126  ;
21127  return 0;
21128}
21129_ACEOF
21130rm -f conftest.$ac_objext conftest$ac_exeext
21131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21132  (eval $ac_link) 2>conftest.er1
21133  ac_status=$?
21134  grep -v '^ *+' conftest.er1 >conftest.err
21135  rm -f conftest.er1
21136  cat conftest.err >&5
21137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138  (exit $ac_status); } &&
21139	 { ac_try='test -z "$ac_c_werror_flag"
21140			 || test ! -s conftest.err'
21141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142  (eval $ac_try) 2>&5
21143  ac_status=$?
21144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145  (exit $ac_status); }; } &&
21146	 { ac_try='test -s conftest$ac_exeext'
21147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148  (eval $ac_try) 2>&5
21149  ac_status=$?
21150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151  (exit $ac_status); }; }; then
21152  ac_cv_func_connect=yes
21153else
21154  echo "$as_me: failed program was:" >&5
21155sed 's/^/| /' conftest.$ac_ext >&5
21156
21157ac_cv_func_connect=no
21158fi
21159rm -f conftest.err conftest.$ac_objext \
21160      conftest$ac_exeext conftest.$ac_ext
21161fi
21162echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21163echo "${ECHO_T}$ac_cv_func_connect" >&6
21164
21165    if test $ac_cv_func_connect = no; then
21166      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21167echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21168if test "${ac_cv_lib_socket_connect+set}" = set; then
21169  echo $ECHO_N "(cached) $ECHO_C" >&6
21170else
21171  ac_check_lib_save_LIBS=$LIBS
21172LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21173cat >conftest.$ac_ext <<_ACEOF
21174/* confdefs.h.  */
21175_ACEOF
21176cat confdefs.h >>conftest.$ac_ext
21177cat >>conftest.$ac_ext <<_ACEOF
21178/* end confdefs.h.  */
21179
21180/* Override any gcc2 internal prototype to avoid an error.  */
21181#ifdef __cplusplus
21182extern "C"
21183#endif
21184/* We use char because int might match the return type of a gcc2
21185   builtin and then its argument prototype would still apply.  */
21186char connect ();
21187int
21188main ()
21189{
21190connect ();
21191  ;
21192  return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext conftest$ac_exeext
21196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197  (eval $ac_link) 2>conftest.er1
21198  ac_status=$?
21199  grep -v '^ *+' conftest.er1 >conftest.err
21200  rm -f conftest.er1
21201  cat conftest.err >&5
21202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203  (exit $ac_status); } &&
21204	 { ac_try='test -z "$ac_c_werror_flag"
21205			 || test ! -s conftest.err'
21206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207  (eval $ac_try) 2>&5
21208  ac_status=$?
21209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210  (exit $ac_status); }; } &&
21211	 { ac_try='test -s conftest$ac_exeext'
21212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213  (eval $ac_try) 2>&5
21214  ac_status=$?
21215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216  (exit $ac_status); }; }; then
21217  ac_cv_lib_socket_connect=yes
21218else
21219  echo "$as_me: failed program was:" >&5
21220sed 's/^/| /' conftest.$ac_ext >&5
21221
21222ac_cv_lib_socket_connect=no
21223fi
21224rm -f conftest.err conftest.$ac_objext \
21225      conftest$ac_exeext conftest.$ac_ext
21226LIBS=$ac_check_lib_save_LIBS
21227fi
21228echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21229echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21230if test $ac_cv_lib_socket_connect = yes; then
21231  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21232fi
21233
21234    fi
21235
21236    # Guillermo Gomez says -lposix is necessary on A/UX.
21237    echo "$as_me:$LINENO: checking for remove" >&5
21238echo $ECHO_N "checking for remove... $ECHO_C" >&6
21239if test "${ac_cv_func_remove+set}" = set; then
21240  echo $ECHO_N "(cached) $ECHO_C" >&6
21241else
21242  cat >conftest.$ac_ext <<_ACEOF
21243/* confdefs.h.  */
21244_ACEOF
21245cat confdefs.h >>conftest.$ac_ext
21246cat >>conftest.$ac_ext <<_ACEOF
21247/* end confdefs.h.  */
21248/* Define remove to an innocuous variant, in case <limits.h> declares remove.
21249   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21250#define remove innocuous_remove
21251
21252/* System header to define __stub macros and hopefully few prototypes,
21253    which can conflict with char remove (); below.
21254    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21255    <limits.h> exists even on freestanding compilers.  */
21256
21257#ifdef __STDC__
21258# include <limits.h>
21259#else
21260# include <assert.h>
21261#endif
21262
21263#undef remove
21264
21265/* Override any gcc2 internal prototype to avoid an error.  */
21266#ifdef __cplusplus
21267extern "C"
21268{
21269#endif
21270/* We use char because int might match the return type of a gcc2
21271   builtin and then its argument prototype would still apply.  */
21272char remove ();
21273/* The GNU C library defines this for functions which it implements
21274    to always fail with ENOSYS.  Some functions are actually named
21275    something starting with __ and the normal name is an alias.  */
21276#if defined (__stub_remove) || defined (__stub___remove)
21277choke me
21278#else
21279char (*f) () = remove;
21280#endif
21281#ifdef __cplusplus
21282}
21283#endif
21284
21285int
21286main ()
21287{
21288return f != remove;
21289  ;
21290  return 0;
21291}
21292_ACEOF
21293rm -f conftest.$ac_objext conftest$ac_exeext
21294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295  (eval $ac_link) 2>conftest.er1
21296  ac_status=$?
21297  grep -v '^ *+' conftest.er1 >conftest.err
21298  rm -f conftest.er1
21299  cat conftest.err >&5
21300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301  (exit $ac_status); } &&
21302	 { ac_try='test -z "$ac_c_werror_flag"
21303			 || test ! -s conftest.err'
21304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305  (eval $ac_try) 2>&5
21306  ac_status=$?
21307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308  (exit $ac_status); }; } &&
21309	 { ac_try='test -s conftest$ac_exeext'
21310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311  (eval $ac_try) 2>&5
21312  ac_status=$?
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); }; }; then
21315  ac_cv_func_remove=yes
21316else
21317  echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320ac_cv_func_remove=no
21321fi
21322rm -f conftest.err conftest.$ac_objext \
21323      conftest$ac_exeext conftest.$ac_ext
21324fi
21325echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21326echo "${ECHO_T}$ac_cv_func_remove" >&6
21327
21328    if test $ac_cv_func_remove = no; then
21329      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21330echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21331if test "${ac_cv_lib_posix_remove+set}" = set; then
21332  echo $ECHO_N "(cached) $ECHO_C" >&6
21333else
21334  ac_check_lib_save_LIBS=$LIBS
21335LIBS="-lposix  $LIBS"
21336cat >conftest.$ac_ext <<_ACEOF
21337/* confdefs.h.  */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h.  */
21342
21343/* Override any gcc2 internal prototype to avoid an error.  */
21344#ifdef __cplusplus
21345extern "C"
21346#endif
21347/* We use char because int might match the return type of a gcc2
21348   builtin and then its argument prototype would still apply.  */
21349char remove ();
21350int
21351main ()
21352{
21353remove ();
21354  ;
21355  return 0;
21356}
21357_ACEOF
21358rm -f conftest.$ac_objext conftest$ac_exeext
21359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360  (eval $ac_link) 2>conftest.er1
21361  ac_status=$?
21362  grep -v '^ *+' conftest.er1 >conftest.err
21363  rm -f conftest.er1
21364  cat conftest.err >&5
21365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366  (exit $ac_status); } &&
21367	 { ac_try='test -z "$ac_c_werror_flag"
21368			 || test ! -s conftest.err'
21369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370  (eval $ac_try) 2>&5
21371  ac_status=$?
21372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373  (exit $ac_status); }; } &&
21374	 { ac_try='test -s conftest$ac_exeext'
21375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376  (eval $ac_try) 2>&5
21377  ac_status=$?
21378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379  (exit $ac_status); }; }; then
21380  ac_cv_lib_posix_remove=yes
21381else
21382  echo "$as_me: failed program was:" >&5
21383sed 's/^/| /' conftest.$ac_ext >&5
21384
21385ac_cv_lib_posix_remove=no
21386fi
21387rm -f conftest.err conftest.$ac_objext \
21388      conftest$ac_exeext conftest.$ac_ext
21389LIBS=$ac_check_lib_save_LIBS
21390fi
21391echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21392echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21393if test $ac_cv_lib_posix_remove = yes; then
21394  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21395fi
21396
21397    fi
21398
21399    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21400    echo "$as_me:$LINENO: checking for shmat" >&5
21401echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21402if test "${ac_cv_func_shmat+set}" = set; then
21403  echo $ECHO_N "(cached) $ECHO_C" >&6
21404else
21405  cat >conftest.$ac_ext <<_ACEOF
21406/* confdefs.h.  */
21407_ACEOF
21408cat confdefs.h >>conftest.$ac_ext
21409cat >>conftest.$ac_ext <<_ACEOF
21410/* end confdefs.h.  */
21411/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21412   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21413#define shmat innocuous_shmat
21414
21415/* System header to define __stub macros and hopefully few prototypes,
21416    which can conflict with char shmat (); below.
21417    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21418    <limits.h> exists even on freestanding compilers.  */
21419
21420#ifdef __STDC__
21421# include <limits.h>
21422#else
21423# include <assert.h>
21424#endif
21425
21426#undef shmat
21427
21428/* Override any gcc2 internal prototype to avoid an error.  */
21429#ifdef __cplusplus
21430extern "C"
21431{
21432#endif
21433/* We use char because int might match the return type of a gcc2
21434   builtin and then its argument prototype would still apply.  */
21435char shmat ();
21436/* The GNU C library defines this for functions which it implements
21437    to always fail with ENOSYS.  Some functions are actually named
21438    something starting with __ and the normal name is an alias.  */
21439#if defined (__stub_shmat) || defined (__stub___shmat)
21440choke me
21441#else
21442char (*f) () = shmat;
21443#endif
21444#ifdef __cplusplus
21445}
21446#endif
21447
21448int
21449main ()
21450{
21451return f != shmat;
21452  ;
21453  return 0;
21454}
21455_ACEOF
21456rm -f conftest.$ac_objext conftest$ac_exeext
21457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21458  (eval $ac_link) 2>conftest.er1
21459  ac_status=$?
21460  grep -v '^ *+' conftest.er1 >conftest.err
21461  rm -f conftest.er1
21462  cat conftest.err >&5
21463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464  (exit $ac_status); } &&
21465	 { ac_try='test -z "$ac_c_werror_flag"
21466			 || test ! -s conftest.err'
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); }; } &&
21472	 { ac_try='test -s conftest$ac_exeext'
21473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474  (eval $ac_try) 2>&5
21475  ac_status=$?
21476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477  (exit $ac_status); }; }; then
21478  ac_cv_func_shmat=yes
21479else
21480  echo "$as_me: failed program was:" >&5
21481sed 's/^/| /' conftest.$ac_ext >&5
21482
21483ac_cv_func_shmat=no
21484fi
21485rm -f conftest.err conftest.$ac_objext \
21486      conftest$ac_exeext conftest.$ac_ext
21487fi
21488echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21489echo "${ECHO_T}$ac_cv_func_shmat" >&6
21490
21491    if test $ac_cv_func_shmat = no; then
21492      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21493echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21494if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21495  echo $ECHO_N "(cached) $ECHO_C" >&6
21496else
21497  ac_check_lib_save_LIBS=$LIBS
21498LIBS="-lipc  $LIBS"
21499cat >conftest.$ac_ext <<_ACEOF
21500/* confdefs.h.  */
21501_ACEOF
21502cat confdefs.h >>conftest.$ac_ext
21503cat >>conftest.$ac_ext <<_ACEOF
21504/* end confdefs.h.  */
21505
21506/* Override any gcc2 internal prototype to avoid an error.  */
21507#ifdef __cplusplus
21508extern "C"
21509#endif
21510/* We use char because int might match the return type of a gcc2
21511   builtin and then its argument prototype would still apply.  */
21512char shmat ();
21513int
21514main ()
21515{
21516shmat ();
21517  ;
21518  return 0;
21519}
21520_ACEOF
21521rm -f conftest.$ac_objext conftest$ac_exeext
21522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21523  (eval $ac_link) 2>conftest.er1
21524  ac_status=$?
21525  grep -v '^ *+' conftest.er1 >conftest.err
21526  rm -f conftest.er1
21527  cat conftest.err >&5
21528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529  (exit $ac_status); } &&
21530	 { ac_try='test -z "$ac_c_werror_flag"
21531			 || test ! -s conftest.err'
21532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533  (eval $ac_try) 2>&5
21534  ac_status=$?
21535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536  (exit $ac_status); }; } &&
21537	 { ac_try='test -s conftest$ac_exeext'
21538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539  (eval $ac_try) 2>&5
21540  ac_status=$?
21541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); }; }; then
21543  ac_cv_lib_ipc_shmat=yes
21544else
21545  echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548ac_cv_lib_ipc_shmat=no
21549fi
21550rm -f conftest.err conftest.$ac_objext \
21551      conftest$ac_exeext conftest.$ac_ext
21552LIBS=$ac_check_lib_save_LIBS
21553fi
21554echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21555echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21556if test $ac_cv_lib_ipc_shmat = yes; then
21557  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21558fi
21559
21560    fi
21561  fi
21562
21563  # Check for libraries that X11R6 Xt/Xaw programs need.
21564  ac_save_LDFLAGS=$LDFLAGS
21565  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21566  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21567  # check for ICE first), but we must link in the order -lSM -lICE or
21568  # we get undefined symbols.  So assume we have SM if we have ICE.
21569  # These have to be linked with before -lX11, unlike the other
21570  # libraries we check for below, so use a different variable.
21571  # John Interrante, Karl Berry
21572  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21573echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21574if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21575  echo $ECHO_N "(cached) $ECHO_C" >&6
21576else
21577  ac_check_lib_save_LIBS=$LIBS
21578LIBS="-lICE $X_EXTRA_LIBS $LIBS"
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
21586/* Override any gcc2 internal prototype to avoid an error.  */
21587#ifdef __cplusplus
21588extern "C"
21589#endif
21590/* We use char because int might match the return type of a gcc2
21591   builtin and then its argument prototype would still apply.  */
21592char IceConnectionNumber ();
21593int
21594main ()
21595{
21596IceConnectionNumber ();
21597  ;
21598  return 0;
21599}
21600_ACEOF
21601rm -f conftest.$ac_objext conftest$ac_exeext
21602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21603  (eval $ac_link) 2>conftest.er1
21604  ac_status=$?
21605  grep -v '^ *+' conftest.er1 >conftest.err
21606  rm -f conftest.er1
21607  cat conftest.err >&5
21608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609  (exit $ac_status); } &&
21610	 { ac_try='test -z "$ac_c_werror_flag"
21611			 || test ! -s conftest.err'
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); }; } &&
21617	 { ac_try='test -s conftest$ac_exeext'
21618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619  (eval $ac_try) 2>&5
21620  ac_status=$?
21621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622  (exit $ac_status); }; }; then
21623  ac_cv_lib_ICE_IceConnectionNumber=yes
21624else
21625  echo "$as_me: failed program was:" >&5
21626sed 's/^/| /' conftest.$ac_ext >&5
21627
21628ac_cv_lib_ICE_IceConnectionNumber=no
21629fi
21630rm -f conftest.err conftest.$ac_objext \
21631      conftest$ac_exeext conftest.$ac_ext
21632LIBS=$ac_check_lib_save_LIBS
21633fi
21634echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21635echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21636if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21637  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21638fi
21639
21640  LDFLAGS=$ac_save_LDFLAGS
21641
21642fi
21643
21644CFLAGS="$CFLAGS $X_CFLAGS"
21645LDFLAGS="$LDFLAGS $X_LIBS"
21646
21647
21648
21649
21650have_python_config=no
21651have_python_include=no
21652
21653echo "$as_me:$LINENO: checking for python" >&5
21654echo $ECHO_N "checking for python... $ECHO_C" >&6
21655EPATH=`echo $PATH | sed -e 's+/bin:+ +g' -e 's+:+ +g'`
21656
21657
21658for i in / /opt /usr /usr/local /home $EPATH ; do
21659    for j in . gnu local python ; do
21660	for k in . gnu local python ; do
21661	    for l in lib . ; do
21662		pylib=`echo $i/$j/$k/$l/python[0-9].[0-9]/config/libpython[0-9].[0-9].a`
21663		for f in $pylib; do
21664		    if test -f "$f" && test $have_python_config = no ; then
21665			PYTHON_LIBDIR=`echo $f | sed -e 's,/[^/]*$,,'`
21666			LIBPY=`echo $f | sed -e 's,^.*/lib\(python.[.].\)[.]a$,\1,'`
21667			have_python_config=yes
21668		    fi
21669		done
21670	    done
21671	    pyinclude=`echo $i/$j/$k/include/python[0-9].[0-9]/Python.h`
21672	    for f in $pyinclude; do
21673		if test -f "$f" && test $have_python_include = no ; then
21674		    PYTHON_INCLUDEDIR=`echo $f | sed -e 's,/[^/]*$,,'`
21675		    have_python_include=yes
21676		fi
21677	    done
21678	done
21679    done
21680done
21681
21682
21683if test x$have_python_config = xyes && test x$have_python_include = xyes ; then
21684    have_python=yes
21685    echo "$as_me:$LINENO: result: yes" >&5
21686echo "${ECHO_T}yes" >&6
21687
21688cat >>confdefs.h <<\_ACEOF
21689#define HAVE_PYTHON 1
21690_ACEOF
21691
21692    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21693echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21694if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21695  echo $ECHO_N "(cached) $ECHO_C" >&6
21696else
21697  ac_check_lib_save_LIBS=$LIBS
21698LIBS="-ldl  $LIBS"
21699cat >conftest.$ac_ext <<_ACEOF
21700/* confdefs.h.  */
21701_ACEOF
21702cat confdefs.h >>conftest.$ac_ext
21703cat >>conftest.$ac_ext <<_ACEOF
21704/* end confdefs.h.  */
21705
21706/* Override any gcc2 internal prototype to avoid an error.  */
21707#ifdef __cplusplus
21708extern "C"
21709#endif
21710/* We use char because int might match the return type of a gcc2
21711   builtin and then its argument prototype would still apply.  */
21712char dlopen ();
21713int
21714main ()
21715{
21716dlopen ();
21717  ;
21718  return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext conftest$ac_exeext
21722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21723  (eval $ac_link) 2>conftest.er1
21724  ac_status=$?
21725  grep -v '^ *+' conftest.er1 >conftest.err
21726  rm -f conftest.er1
21727  cat conftest.err >&5
21728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729  (exit $ac_status); } &&
21730	 { ac_try='test -z "$ac_c_werror_flag"
21731			 || test ! -s conftest.err'
21732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733  (eval $ac_try) 2>&5
21734  ac_status=$?
21735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736  (exit $ac_status); }; } &&
21737	 { ac_try='test -s conftest$ac_exeext'
21738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739  (eval $ac_try) 2>&5
21740  ac_status=$?
21741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742  (exit $ac_status); }; }; then
21743  ac_cv_lib_dl_dlopen=yes
21744else
21745  echo "$as_me: failed program was:" >&5
21746sed 's/^/| /' conftest.$ac_ext >&5
21747
21748ac_cv_lib_dl_dlopen=no
21749fi
21750rm -f conftest.err conftest.$ac_objext \
21751      conftest$ac_exeext conftest.$ac_ext
21752LIBS=$ac_check_lib_save_LIBS
21753fi
21754echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21755echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21756if test $ac_cv_lib_dl_dlopen = yes; then
21757  EXTRA_PYTHON_LIBS=-ldl
21758
21759fi
21760
21761    echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21762echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21763if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21764  echo $ECHO_N "(cached) $ECHO_C" >&6
21765else
21766  ac_check_lib_save_LIBS=$LIBS
21767LIBS="-ldld  $LIBS"
21768cat >conftest.$ac_ext <<_ACEOF
21769/* confdefs.h.  */
21770_ACEOF
21771cat confdefs.h >>conftest.$ac_ext
21772cat >>conftest.$ac_ext <<_ACEOF
21773/* end confdefs.h.  */
21774
21775/* Override any gcc2 internal prototype to avoid an error.  */
21776#ifdef __cplusplus
21777extern "C"
21778#endif
21779/* We use char because int might match the return type of a gcc2
21780   builtin and then its argument prototype would still apply.  */
21781char shl_load ();
21782int
21783main ()
21784{
21785shl_load ();
21786  ;
21787  return 0;
21788}
21789_ACEOF
21790rm -f conftest.$ac_objext conftest$ac_exeext
21791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21792  (eval $ac_link) 2>conftest.er1
21793  ac_status=$?
21794  grep -v '^ *+' conftest.er1 >conftest.err
21795  rm -f conftest.er1
21796  cat conftest.err >&5
21797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798  (exit $ac_status); } &&
21799	 { ac_try='test -z "$ac_c_werror_flag"
21800			 || test ! -s conftest.err'
21801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802  (eval $ac_try) 2>&5
21803  ac_status=$?
21804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805  (exit $ac_status); }; } &&
21806	 { ac_try='test -s conftest$ac_exeext'
21807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808  (eval $ac_try) 2>&5
21809  ac_status=$?
21810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811  (exit $ac_status); }; }; then
21812  ac_cv_lib_dld_shl_load=yes
21813else
21814  echo "$as_me: failed program was:" >&5
21815sed 's/^/| /' conftest.$ac_ext >&5
21816
21817ac_cv_lib_dld_shl_load=no
21818fi
21819rm -f conftest.err conftest.$ac_objext \
21820      conftest$ac_exeext conftest.$ac_ext
21821LIBS=$ac_check_lib_save_LIBS
21822fi
21823echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21824echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21825if test $ac_cv_lib_dld_shl_load = yes; then
21826  EXTRA_PYTHON_LIBS=-ldld
21827
21828fi
21829
21830    echo "$as_me:$LINENO: checking python threads" >&5
21831echo $ECHO_N "checking python threads... $ECHO_C" >&6
21832    PT=""
21833    if $NM ${PYTHON_LIBDIR}/lib${LIBPY}.a | grep PyThread_init_thread 2>&5 > /dev/null ; then
21834	echo "$as_me:$LINENO: result: yes" >&5
21835echo "${ECHO_T}yes" >&6
21836	if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
21837  echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
21838echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
21839if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
21840  echo $ECHO_N "(cached) $ECHO_C" >&6
21841fi
21842echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
21843echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
21844else
21845  # Is the header compilable?
21846echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
21847echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6
21848cat >conftest.$ac_ext <<_ACEOF
21849/* confdefs.h.  */
21850_ACEOF
21851cat confdefs.h >>conftest.$ac_ext
21852cat >>conftest.$ac_ext <<_ACEOF
21853/* end confdefs.h.  */
21854$ac_includes_default
21855#include <mach/cthreads.h>
21856_ACEOF
21857rm -f conftest.$ac_objext
21858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21859  (eval $ac_compile) 2>conftest.er1
21860  ac_status=$?
21861  grep -v '^ *+' conftest.er1 >conftest.err
21862  rm -f conftest.er1
21863  cat conftest.err >&5
21864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865  (exit $ac_status); } &&
21866	 { ac_try='test -z "$ac_c_werror_flag"
21867			 || test ! -s conftest.err'
21868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21869  (eval $ac_try) 2>&5
21870  ac_status=$?
21871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872  (exit $ac_status); }; } &&
21873	 { ac_try='test -s conftest.$ac_objext'
21874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875  (eval $ac_try) 2>&5
21876  ac_status=$?
21877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878  (exit $ac_status); }; }; then
21879  ac_header_compiler=yes
21880else
21881  echo "$as_me: failed program was:" >&5
21882sed 's/^/| /' conftest.$ac_ext >&5
21883
21884ac_header_compiler=no
21885fi
21886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21888echo "${ECHO_T}$ac_header_compiler" >&6
21889
21890# Is the header present?
21891echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
21892echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6
21893cat >conftest.$ac_ext <<_ACEOF
21894/* confdefs.h.  */
21895_ACEOF
21896cat confdefs.h >>conftest.$ac_ext
21897cat >>conftest.$ac_ext <<_ACEOF
21898/* end confdefs.h.  */
21899#include <mach/cthreads.h>
21900_ACEOF
21901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21902  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21903  ac_status=$?
21904  grep -v '^ *+' conftest.er1 >conftest.err
21905  rm -f conftest.er1
21906  cat conftest.err >&5
21907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908  (exit $ac_status); } >/dev/null; then
21909  if test -s conftest.err; then
21910    ac_cpp_err=$ac_c_preproc_warn_flag
21911    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21912  else
21913    ac_cpp_err=
21914  fi
21915else
21916  ac_cpp_err=yes
21917fi
21918if test -z "$ac_cpp_err"; then
21919  ac_header_preproc=yes
21920else
21921  echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924  ac_header_preproc=no
21925fi
21926rm -f conftest.err conftest.$ac_ext
21927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21928echo "${ECHO_T}$ac_header_preproc" >&6
21929
21930# So?  What about this header?
21931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21932  yes:no: )
21933    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
21934echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21935    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
21936echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
21937    ac_header_preproc=yes
21938    ;;
21939  no:yes:* )
21940    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
21941echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
21942    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h:     check for missing prerequisite headers?" >&5
21943echo "$as_me: WARNING: mach/cthreads.h:     check for missing prerequisite headers?" >&2;}
21944    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
21945echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
21946    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h:     section \"Present But Cannot Be Compiled\"" >&5
21947echo "$as_me: WARNING: mach/cthreads.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21948    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
21949echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
21950    { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
21951echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
21952    (
21953      cat <<\_ASBOX
21954## ------------------------------------------ ##
21955## Report this to the AC_PACKAGE_NAME lists.  ##
21956## ------------------------------------------ ##
21957_ASBOX
21958    ) |
21959      sed "s/^/$as_me: WARNING:     /" >&2
21960    ;;
21961esac
21962echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
21963echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6
21964if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
21965  echo $ECHO_N "(cached) $ECHO_C" >&6
21966else
21967  ac_cv_header_mach_cthreads_h=$ac_header_preproc
21968fi
21969echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
21970echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6
21971
21972fi
21973if test $ac_cv_header_mach_cthreads_h = yes; then
21974  :
21975else
21976
21977	    echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21978echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21979if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21980  echo $ECHO_N "(cached) $ECHO_C" >&6
21981else
21982  ac_check_lib_save_LIBS=$LIBS
21983LIBS="-lpthreads  $LIBS"
21984cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h.  */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h.  */
21990
21991/* Override any gcc2 internal prototype to avoid an error.  */
21992#ifdef __cplusplus
21993extern "C"
21994#endif
21995/* We use char because int might match the return type of a gcc2
21996   builtin and then its argument prototype would still apply.  */
21997char pthread_create ();
21998int
21999main ()
22000{
22001pthread_create ();
22002  ;
22003  return 0;
22004}
22005_ACEOF
22006rm -f conftest.$ac_objext conftest$ac_exeext
22007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22008  (eval $ac_link) 2>conftest.er1
22009  ac_status=$?
22010  grep -v '^ *+' conftest.er1 >conftest.err
22011  rm -f conftest.er1
22012  cat conftest.err >&5
22013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014  (exit $ac_status); } &&
22015	 { ac_try='test -z "$ac_c_werror_flag"
22016			 || test ! -s conftest.err'
22017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22018  (eval $ac_try) 2>&5
22019  ac_status=$?
22020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021  (exit $ac_status); }; } &&
22022	 { ac_try='test -s conftest$ac_exeext'
22023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024  (eval $ac_try) 2>&5
22025  ac_status=$?
22026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027  (exit $ac_status); }; }; then
22028  ac_cv_lib_pthreads_pthread_create=yes
22029else
22030  echo "$as_me: failed program was:" >&5
22031sed 's/^/| /' conftest.$ac_ext >&5
22032
22033ac_cv_lib_pthreads_pthread_create=no
22034fi
22035rm -f conftest.err conftest.$ac_objext \
22036      conftest$ac_exeext conftest.$ac_ext
22037LIBS=$ac_check_lib_save_LIBS
22038fi
22039echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
22040echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
22041if test $ac_cv_lib_pthreads_pthread_create = yes; then
22042
22043		PT="-lpthreads"
22044
22045else
22046
22047		echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22048echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22049if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22050  echo $ECHO_N "(cached) $ECHO_C" >&6
22051else
22052  ac_check_lib_save_LIBS=$LIBS
22053LIBS="-lpthread  $LIBS"
22054cat >conftest.$ac_ext <<_ACEOF
22055/* confdefs.h.  */
22056_ACEOF
22057cat confdefs.h >>conftest.$ac_ext
22058cat >>conftest.$ac_ext <<_ACEOF
22059/* end confdefs.h.  */
22060
22061/* Override any gcc2 internal prototype to avoid an error.  */
22062#ifdef __cplusplus
22063extern "C"
22064#endif
22065/* We use char because int might match the return type of a gcc2
22066   builtin and then its argument prototype would still apply.  */
22067char pthread_create ();
22068int
22069main ()
22070{
22071pthread_create ();
22072  ;
22073  return 0;
22074}
22075_ACEOF
22076rm -f conftest.$ac_objext conftest$ac_exeext
22077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22078  (eval $ac_link) 2>conftest.er1
22079  ac_status=$?
22080  grep -v '^ *+' conftest.er1 >conftest.err
22081  rm -f conftest.er1
22082  cat conftest.err >&5
22083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084  (exit $ac_status); } &&
22085	 { ac_try='test -z "$ac_c_werror_flag"
22086			 || test ! -s conftest.err'
22087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088  (eval $ac_try) 2>&5
22089  ac_status=$?
22090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091  (exit $ac_status); }; } &&
22092	 { ac_try='test -s conftest$ac_exeext'
22093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094  (eval $ac_try) 2>&5
22095  ac_status=$?
22096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097  (exit $ac_status); }; }; then
22098  ac_cv_lib_pthread_pthread_create=yes
22099else
22100  echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
22103ac_cv_lib_pthread_pthread_create=no
22104fi
22105rm -f conftest.err conftest.$ac_objext \
22106      conftest$ac_exeext conftest.$ac_ext
22107LIBS=$ac_check_lib_save_LIBS
22108fi
22109echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
22110echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
22111if test $ac_cv_lib_pthread_pthread_create = yes; then
22112
22113		    PT="-lpthread"
22114
22115else
22116
22117		    echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
22118echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
22119if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
22120  echo $ECHO_N "(cached) $ECHO_C" >&6
22121else
22122  ac_check_lib_save_LIBS=$LIBS
22123LIBS="-lc_r  $LIBS"
22124cat >conftest.$ac_ext <<_ACEOF
22125/* confdefs.h.  */
22126_ACEOF
22127cat confdefs.h >>conftest.$ac_ext
22128cat >>conftest.$ac_ext <<_ACEOF
22129/* end confdefs.h.  */
22130
22131/* Override any gcc2 internal prototype to avoid an error.  */
22132#ifdef __cplusplus
22133extern "C"
22134#endif
22135/* We use char because int might match the return type of a gcc2
22136   builtin and then its argument prototype would still apply.  */
22137char pthread_create ();
22138int
22139main ()
22140{
22141pthread_create ();
22142  ;
22143  return 0;
22144}
22145_ACEOF
22146rm -f conftest.$ac_objext conftest$ac_exeext
22147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22148  (eval $ac_link) 2>conftest.er1
22149  ac_status=$?
22150  grep -v '^ *+' conftest.er1 >conftest.err
22151  rm -f conftest.er1
22152  cat conftest.err >&5
22153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154  (exit $ac_status); } &&
22155	 { ac_try='test -z "$ac_c_werror_flag"
22156			 || test ! -s conftest.err'
22157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158  (eval $ac_try) 2>&5
22159  ac_status=$?
22160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161  (exit $ac_status); }; } &&
22162	 { ac_try='test -s conftest$ac_exeext'
22163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164  (eval $ac_try) 2>&5
22165  ac_status=$?
22166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167  (exit $ac_status); }; }; then
22168  ac_cv_lib_c_r_pthread_create=yes
22169else
22170  echo "$as_me: failed program was:" >&5
22171sed 's/^/| /' conftest.$ac_ext >&5
22172
22173ac_cv_lib_c_r_pthread_create=no
22174fi
22175rm -f conftest.err conftest.$ac_objext \
22176      conftest$ac_exeext conftest.$ac_ext
22177LIBS=$ac_check_lib_save_LIBS
22178fi
22179echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
22180echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
22181if test $ac_cv_lib_c_r_pthread_create = yes; then
22182
22183			PT="-lc_r"
22184
22185else
22186
22187			echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5
22188echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6
22189if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then
22190  echo $ECHO_N "(cached) $ECHO_C" >&6
22191else
22192  ac_check_lib_save_LIBS=$LIBS
22193LIBS="-lthread  $LIBS"
22194cat >conftest.$ac_ext <<_ACEOF
22195/* confdefs.h.  */
22196_ACEOF
22197cat confdefs.h >>conftest.$ac_ext
22198cat >>conftest.$ac_ext <<_ACEOF
22199/* end confdefs.h.  */
22200
22201/* Override any gcc2 internal prototype to avoid an error.  */
22202#ifdef __cplusplus
22203extern "C"
22204#endif
22205/* We use char because int might match the return type of a gcc2
22206   builtin and then its argument prototype would still apply.  */
22207char __d6_pthread_create ();
22208int
22209main ()
22210{
22211__d6_pthread_create ();
22212  ;
22213  return 0;
22214}
22215_ACEOF
22216rm -f conftest.$ac_objext conftest$ac_exeext
22217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22218  (eval $ac_link) 2>conftest.er1
22219  ac_status=$?
22220  grep -v '^ *+' conftest.er1 >conftest.err
22221  rm -f conftest.er1
22222  cat conftest.err >&5
22223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224  (exit $ac_status); } &&
22225	 { ac_try='test -z "$ac_c_werror_flag"
22226			 || test ! -s conftest.err'
22227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228  (eval $ac_try) 2>&5
22229  ac_status=$?
22230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231  (exit $ac_status); }; } &&
22232	 { ac_try='test -s conftest$ac_exeext'
22233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234  (eval $ac_try) 2>&5
22235  ac_status=$?
22236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237  (exit $ac_status); }; }; then
22238  ac_cv_lib_thread___d6_pthread_create=yes
22239else
22240  echo "$as_me: failed program was:" >&5
22241sed 's/^/| /' conftest.$ac_ext >&5
22242
22243ac_cv_lib_thread___d6_pthread_create=no
22244fi
22245rm -f conftest.err conftest.$ac_objext \
22246      conftest$ac_exeext conftest.$ac_ext
22247LIBS=$ac_check_lib_save_LIBS
22248fi
22249echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5
22250echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6
22251if test $ac_cv_lib_thread___d6_pthread_create = yes; then
22252
22253			    PT="-lthread"
22254
22255fi
22256
22257
22258fi
22259
22260fi
22261
22262fi
22263
22264fi
22265
22266
22267	echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
22268echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6
22269if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
22270  echo $ECHO_N "(cached) $ECHO_C" >&6
22271else
22272  ac_check_lib_save_LIBS=$LIBS
22273LIBS="-lmpc  $LIBS"
22274cat >conftest.$ac_ext <<_ACEOF
22275/* confdefs.h.  */
22276_ACEOF
22277cat confdefs.h >>conftest.$ac_ext
22278cat >>conftest.$ac_ext <<_ACEOF
22279/* end confdefs.h.  */
22280
22281/* Override any gcc2 internal prototype to avoid an error.  */
22282#ifdef __cplusplus
22283extern "C"
22284#endif
22285/* We use char because int might match the return type of a gcc2
22286   builtin and then its argument prototype would still apply.  */
22287char usconfig ();
22288int
22289main ()
22290{
22291usconfig ();
22292  ;
22293  return 0;
22294}
22295_ACEOF
22296rm -f conftest.$ac_objext conftest$ac_exeext
22297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22298  (eval $ac_link) 2>conftest.er1
22299  ac_status=$?
22300  grep -v '^ *+' conftest.er1 >conftest.err
22301  rm -f conftest.er1
22302  cat conftest.err >&5
22303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304  (exit $ac_status); } &&
22305	 { ac_try='test -z "$ac_c_werror_flag"
22306			 || test ! -s conftest.err'
22307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308  (eval $ac_try) 2>&5
22309  ac_status=$?
22310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311  (exit $ac_status); }; } &&
22312	 { ac_try='test -s conftest$ac_exeext'
22313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314  (eval $ac_try) 2>&5
22315  ac_status=$?
22316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317  (exit $ac_status); }; }; then
22318  ac_cv_lib_mpc_usconfig=yes
22319else
22320  echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323ac_cv_lib_mpc_usconfig=no
22324fi
22325rm -f conftest.err conftest.$ac_objext \
22326      conftest$ac_exeext conftest.$ac_ext
22327LIBS=$ac_check_lib_save_LIBS
22328fi
22329echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
22330echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6
22331if test $ac_cv_lib_mpc_usconfig = yes; then
22332
22333	    PT="$PT -lmpc"
22334
22335fi
22336
22337	echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
22338echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
22339if test "${ac_cv_lib_thread_thr_create+set}" = set; then
22340  echo $ECHO_N "(cached) $ECHO_C" >&6
22341else
22342  ac_check_lib_save_LIBS=$LIBS
22343LIBS="-lthread  $LIBS"
22344cat >conftest.$ac_ext <<_ACEOF
22345/* confdefs.h.  */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h.  */
22350
22351/* Override any gcc2 internal prototype to avoid an error.  */
22352#ifdef __cplusplus
22353extern "C"
22354#endif
22355/* We use char because int might match the return type of a gcc2
22356   builtin and then its argument prototype would still apply.  */
22357char thr_create ();
22358int
22359main ()
22360{
22361thr_create ();
22362  ;
22363  return 0;
22364}
22365_ACEOF
22366rm -f conftest.$ac_objext conftest$ac_exeext
22367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22368  (eval $ac_link) 2>conftest.er1
22369  ac_status=$?
22370  grep -v '^ *+' conftest.er1 >conftest.err
22371  rm -f conftest.er1
22372  cat conftest.err >&5
22373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374  (exit $ac_status); } &&
22375	 { ac_try='test -z "$ac_c_werror_flag"
22376			 || test ! -s conftest.err'
22377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378  (eval $ac_try) 2>&5
22379  ac_status=$?
22380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381  (exit $ac_status); }; } &&
22382	 { ac_try='test -s conftest$ac_exeext'
22383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384  (eval $ac_try) 2>&5
22385  ac_status=$?
22386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387  (exit $ac_status); }; }; then
22388  ac_cv_lib_thread_thr_create=yes
22389else
22390  echo "$as_me: failed program was:" >&5
22391sed 's/^/| /' conftest.$ac_ext >&5
22392
22393ac_cv_lib_thread_thr_create=no
22394fi
22395rm -f conftest.err conftest.$ac_objext \
22396      conftest$ac_exeext conftest.$ac_ext
22397LIBS=$ac_check_lib_save_LIBS
22398fi
22399echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
22400echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
22401if test $ac_cv_lib_thread_thr_create = yes; then
22402
22403	    PT="$PT -lthread"
22404
22405fi
22406
22407    else
22408	echo "$as_me:$LINENO: result: no" >&5
22409echo "${ECHO_T}no" >&6
22410    fi
22411    PYTHON_LIBS="-L$PYTHON_LIBDIR -l$LIBPY $EXTRA_PYTHON_LIBS $PT -lm"
22412    PYTHON_INCLUDES="-I$PYTHON_INCLUDEDIR"
22413else
22414    echo "$as_me:$LINENO: result: no" >&5
22415echo "${ECHO_T}no" >&6
22416    PYTHON_LIBS=""
22417    PYTHON_INCLUDES=""
22418fi
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428ac_header_dirent=no
22429for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22430  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22431echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22432echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22433if eval "test \"\${$as_ac_Header+set}\" = set"; then
22434  echo $ECHO_N "(cached) $ECHO_C" >&6
22435else
22436  cat >conftest.$ac_ext <<_ACEOF
22437/* confdefs.h.  */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h.  */
22442#include <sys/types.h>
22443#include <$ac_hdr>
22444
22445int
22446main ()
22447{
22448if ((DIR *) 0)
22449return 0;
22450  ;
22451  return 0;
22452}
22453_ACEOF
22454rm -f conftest.$ac_objext
22455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456  (eval $ac_compile) 2>conftest.er1
22457  ac_status=$?
22458  grep -v '^ *+' conftest.er1 >conftest.err
22459  rm -f conftest.er1
22460  cat conftest.err >&5
22461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462  (exit $ac_status); } &&
22463	 { ac_try='test -z "$ac_c_werror_flag"
22464			 || test ! -s conftest.err'
22465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466  (eval $ac_try) 2>&5
22467  ac_status=$?
22468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469  (exit $ac_status); }; } &&
22470	 { ac_try='test -s conftest.$ac_objext'
22471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472  (eval $ac_try) 2>&5
22473  ac_status=$?
22474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475  (exit $ac_status); }; }; then
22476  eval "$as_ac_Header=yes"
22477else
22478  echo "$as_me: failed program was:" >&5
22479sed 's/^/| /' conftest.$ac_ext >&5
22480
22481eval "$as_ac_Header=no"
22482fi
22483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22484fi
22485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22487if test `eval echo '${'$as_ac_Header'}'` = yes; then
22488  cat >>confdefs.h <<_ACEOF
22489#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22490_ACEOF
22491
22492ac_header_dirent=$ac_hdr; break
22493fi
22494
22495done
22496# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22497if test $ac_header_dirent = dirent.h; then
22498  echo "$as_me:$LINENO: checking for library containing opendir" >&5
22499echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22500if test "${ac_cv_search_opendir+set}" = set; then
22501  echo $ECHO_N "(cached) $ECHO_C" >&6
22502else
22503  ac_func_search_save_LIBS=$LIBS
22504ac_cv_search_opendir=no
22505cat >conftest.$ac_ext <<_ACEOF
22506/* confdefs.h.  */
22507_ACEOF
22508cat confdefs.h >>conftest.$ac_ext
22509cat >>conftest.$ac_ext <<_ACEOF
22510/* end confdefs.h.  */
22511
22512/* Override any gcc2 internal prototype to avoid an error.  */
22513#ifdef __cplusplus
22514extern "C"
22515#endif
22516/* We use char because int might match the return type of a gcc2
22517   builtin and then its argument prototype would still apply.  */
22518char opendir ();
22519int
22520main ()
22521{
22522opendir ();
22523  ;
22524  return 0;
22525}
22526_ACEOF
22527rm -f conftest.$ac_objext conftest$ac_exeext
22528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22529  (eval $ac_link) 2>conftest.er1
22530  ac_status=$?
22531  grep -v '^ *+' conftest.er1 >conftest.err
22532  rm -f conftest.er1
22533  cat conftest.err >&5
22534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535  (exit $ac_status); } &&
22536	 { ac_try='test -z "$ac_c_werror_flag"
22537			 || test ! -s conftest.err'
22538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539  (eval $ac_try) 2>&5
22540  ac_status=$?
22541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542  (exit $ac_status); }; } &&
22543	 { ac_try='test -s conftest$ac_exeext'
22544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545  (eval $ac_try) 2>&5
22546  ac_status=$?
22547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548  (exit $ac_status); }; }; then
22549  ac_cv_search_opendir="none required"
22550else
22551  echo "$as_me: failed program was:" >&5
22552sed 's/^/| /' conftest.$ac_ext >&5
22553
22554fi
22555rm -f conftest.err conftest.$ac_objext \
22556      conftest$ac_exeext conftest.$ac_ext
22557if test "$ac_cv_search_opendir" = no; then
22558  for ac_lib in dir; do
22559    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22560    cat >conftest.$ac_ext <<_ACEOF
22561/* confdefs.h.  */
22562_ACEOF
22563cat confdefs.h >>conftest.$ac_ext
22564cat >>conftest.$ac_ext <<_ACEOF
22565/* end confdefs.h.  */
22566
22567/* Override any gcc2 internal prototype to avoid an error.  */
22568#ifdef __cplusplus
22569extern "C"
22570#endif
22571/* We use char because int might match the return type of a gcc2
22572   builtin and then its argument prototype would still apply.  */
22573char opendir ();
22574int
22575main ()
22576{
22577opendir ();
22578  ;
22579  return 0;
22580}
22581_ACEOF
22582rm -f conftest.$ac_objext conftest$ac_exeext
22583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22584  (eval $ac_link) 2>conftest.er1
22585  ac_status=$?
22586  grep -v '^ *+' conftest.er1 >conftest.err
22587  rm -f conftest.er1
22588  cat conftest.err >&5
22589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590  (exit $ac_status); } &&
22591	 { ac_try='test -z "$ac_c_werror_flag"
22592			 || test ! -s conftest.err'
22593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594  (eval $ac_try) 2>&5
22595  ac_status=$?
22596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597  (exit $ac_status); }; } &&
22598	 { ac_try='test -s conftest$ac_exeext'
22599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600  (eval $ac_try) 2>&5
22601  ac_status=$?
22602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603  (exit $ac_status); }; }; then
22604  ac_cv_search_opendir="-l$ac_lib"
22605break
22606else
22607  echo "$as_me: failed program was:" >&5
22608sed 's/^/| /' conftest.$ac_ext >&5
22609
22610fi
22611rm -f conftest.err conftest.$ac_objext \
22612      conftest$ac_exeext conftest.$ac_ext
22613  done
22614fi
22615LIBS=$ac_func_search_save_LIBS
22616fi
22617echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22618echo "${ECHO_T}$ac_cv_search_opendir" >&6
22619if test "$ac_cv_search_opendir" != no; then
22620  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22621
22622fi
22623
22624else
22625  echo "$as_me:$LINENO: checking for library containing opendir" >&5
22626echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
22627if test "${ac_cv_search_opendir+set}" = set; then
22628  echo $ECHO_N "(cached) $ECHO_C" >&6
22629else
22630  ac_func_search_save_LIBS=$LIBS
22631ac_cv_search_opendir=no
22632cat >conftest.$ac_ext <<_ACEOF
22633/* confdefs.h.  */
22634_ACEOF
22635cat confdefs.h >>conftest.$ac_ext
22636cat >>conftest.$ac_ext <<_ACEOF
22637/* end confdefs.h.  */
22638
22639/* Override any gcc2 internal prototype to avoid an error.  */
22640#ifdef __cplusplus
22641extern "C"
22642#endif
22643/* We use char because int might match the return type of a gcc2
22644   builtin and then its argument prototype would still apply.  */
22645char opendir ();
22646int
22647main ()
22648{
22649opendir ();
22650  ;
22651  return 0;
22652}
22653_ACEOF
22654rm -f conftest.$ac_objext conftest$ac_exeext
22655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22656  (eval $ac_link) 2>conftest.er1
22657  ac_status=$?
22658  grep -v '^ *+' conftest.er1 >conftest.err
22659  rm -f conftest.er1
22660  cat conftest.err >&5
22661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662  (exit $ac_status); } &&
22663	 { ac_try='test -z "$ac_c_werror_flag"
22664			 || test ! -s conftest.err'
22665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666  (eval $ac_try) 2>&5
22667  ac_status=$?
22668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669  (exit $ac_status); }; } &&
22670	 { ac_try='test -s conftest$ac_exeext'
22671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672  (eval $ac_try) 2>&5
22673  ac_status=$?
22674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675  (exit $ac_status); }; }; then
22676  ac_cv_search_opendir="none required"
22677else
22678  echo "$as_me: failed program was:" >&5
22679sed 's/^/| /' conftest.$ac_ext >&5
22680
22681fi
22682rm -f conftest.err conftest.$ac_objext \
22683      conftest$ac_exeext conftest.$ac_ext
22684if test "$ac_cv_search_opendir" = no; then
22685  for ac_lib in x; do
22686    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22687    cat >conftest.$ac_ext <<_ACEOF
22688/* confdefs.h.  */
22689_ACEOF
22690cat confdefs.h >>conftest.$ac_ext
22691cat >>conftest.$ac_ext <<_ACEOF
22692/* end confdefs.h.  */
22693
22694/* Override any gcc2 internal prototype to avoid an error.  */
22695#ifdef __cplusplus
22696extern "C"
22697#endif
22698/* We use char because int might match the return type of a gcc2
22699   builtin and then its argument prototype would still apply.  */
22700char opendir ();
22701int
22702main ()
22703{
22704opendir ();
22705  ;
22706  return 0;
22707}
22708_ACEOF
22709rm -f conftest.$ac_objext conftest$ac_exeext
22710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22711  (eval $ac_link) 2>conftest.er1
22712  ac_status=$?
22713  grep -v '^ *+' conftest.er1 >conftest.err
22714  rm -f conftest.er1
22715  cat conftest.err >&5
22716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717  (exit $ac_status); } &&
22718	 { ac_try='test -z "$ac_c_werror_flag"
22719			 || test ! -s conftest.err'
22720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22721  (eval $ac_try) 2>&5
22722  ac_status=$?
22723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724  (exit $ac_status); }; } &&
22725	 { ac_try='test -s conftest$ac_exeext'
22726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727  (eval $ac_try) 2>&5
22728  ac_status=$?
22729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730  (exit $ac_status); }; }; then
22731  ac_cv_search_opendir="-l$ac_lib"
22732break
22733else
22734  echo "$as_me: failed program was:" >&5
22735sed 's/^/| /' conftest.$ac_ext >&5
22736
22737fi
22738rm -f conftest.err conftest.$ac_objext \
22739      conftest$ac_exeext conftest.$ac_ext
22740  done
22741fi
22742LIBS=$ac_func_search_save_LIBS
22743fi
22744echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22745echo "${ECHO_T}$ac_cv_search_opendir" >&6
22746if test "$ac_cv_search_opendir" != no; then
22747  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
22748
22749fi
22750
22751fi
22752
22753echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22754echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22755if test "${ac_cv_header_stdc+set}" = set; then
22756  echo $ECHO_N "(cached) $ECHO_C" >&6
22757else
22758  cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h.  */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h.  */
22764#include <stdlib.h>
22765#include <stdarg.h>
22766#include <string.h>
22767#include <float.h>
22768
22769int
22770main ()
22771{
22772
22773  ;
22774  return 0;
22775}
22776_ACEOF
22777rm -f conftest.$ac_objext
22778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22779  (eval $ac_compile) 2>conftest.er1
22780  ac_status=$?
22781  grep -v '^ *+' conftest.er1 >conftest.err
22782  rm -f conftest.er1
22783  cat conftest.err >&5
22784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785  (exit $ac_status); } &&
22786	 { ac_try='test -z "$ac_c_werror_flag"
22787			 || test ! -s conftest.err'
22788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789  (eval $ac_try) 2>&5
22790  ac_status=$?
22791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792  (exit $ac_status); }; } &&
22793	 { ac_try='test -s conftest.$ac_objext'
22794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795  (eval $ac_try) 2>&5
22796  ac_status=$?
22797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798  (exit $ac_status); }; }; then
22799  ac_cv_header_stdc=yes
22800else
22801  echo "$as_me: failed program was:" >&5
22802sed 's/^/| /' conftest.$ac_ext >&5
22803
22804ac_cv_header_stdc=no
22805fi
22806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22807
22808if test $ac_cv_header_stdc = yes; then
22809  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22810  cat >conftest.$ac_ext <<_ACEOF
22811/* confdefs.h.  */
22812_ACEOF
22813cat confdefs.h >>conftest.$ac_ext
22814cat >>conftest.$ac_ext <<_ACEOF
22815/* end confdefs.h.  */
22816#include <string.h>
22817
22818_ACEOF
22819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22820  $EGREP "memchr" >/dev/null 2>&1; then
22821  :
22822else
22823  ac_cv_header_stdc=no
22824fi
22825rm -f conftest*
22826
22827fi
22828
22829if test $ac_cv_header_stdc = yes; then
22830  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22831  cat >conftest.$ac_ext <<_ACEOF
22832/* confdefs.h.  */
22833_ACEOF
22834cat confdefs.h >>conftest.$ac_ext
22835cat >>conftest.$ac_ext <<_ACEOF
22836/* end confdefs.h.  */
22837#include <stdlib.h>
22838
22839_ACEOF
22840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22841  $EGREP "free" >/dev/null 2>&1; then
22842  :
22843else
22844  ac_cv_header_stdc=no
22845fi
22846rm -f conftest*
22847
22848fi
22849
22850if test $ac_cv_header_stdc = yes; then
22851  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22852  if test "$cross_compiling" = yes; then
22853  :
22854else
22855  cat >conftest.$ac_ext <<_ACEOF
22856/* confdefs.h.  */
22857_ACEOF
22858cat confdefs.h >>conftest.$ac_ext
22859cat >>conftest.$ac_ext <<_ACEOF
22860/* end confdefs.h.  */
22861#include <ctype.h>
22862#if ((' ' & 0x0FF) == 0x020)
22863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22865#else
22866# define ISLOWER(c) \
22867		   (('a' <= (c) && (c) <= 'i') \
22868		     || ('j' <= (c) && (c) <= 'r') \
22869		     || ('s' <= (c) && (c) <= 'z'))
22870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22871#endif
22872
22873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22874int
22875main ()
22876{
22877  int i;
22878  for (i = 0; i < 256; i++)
22879    if (XOR (islower (i), ISLOWER (i))
22880	|| toupper (i) != TOUPPER (i))
22881      exit(2);
22882  exit (0);
22883}
22884_ACEOF
22885rm -f conftest$ac_exeext
22886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22887  (eval $ac_link) 2>&5
22888  ac_status=$?
22889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892  (eval $ac_try) 2>&5
22893  ac_status=$?
22894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895  (exit $ac_status); }; }; then
22896  :
22897else
22898  echo "$as_me: program exited with status $ac_status" >&5
22899echo "$as_me: failed program was:" >&5
22900sed 's/^/| /' conftest.$ac_ext >&5
22901
22902( exit $ac_status )
22903ac_cv_header_stdc=no
22904fi
22905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22906fi
22907fi
22908fi
22909echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22910echo "${ECHO_T}$ac_cv_header_stdc" >&6
22911if test $ac_cv_header_stdc = yes; then
22912
22913cat >>confdefs.h <<\_ACEOF
22914#define STDC_HEADERS 1
22915_ACEOF
22916
22917fi
22918
22919echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22920echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
22921if test "${ac_cv_header_sys_wait_h+set}" = set; then
22922  echo $ECHO_N "(cached) $ECHO_C" >&6
22923else
22924  cat >conftest.$ac_ext <<_ACEOF
22925/* confdefs.h.  */
22926_ACEOF
22927cat confdefs.h >>conftest.$ac_ext
22928cat >>conftest.$ac_ext <<_ACEOF
22929/* end confdefs.h.  */
22930#include <sys/types.h>
22931#include <sys/wait.h>
22932#ifndef WEXITSTATUS
22933# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
22934#endif
22935#ifndef WIFEXITED
22936# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22937#endif
22938
22939int
22940main ()
22941{
22942  int s;
22943  wait (&s);
22944  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22945  ;
22946  return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext
22950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22951  (eval $ac_compile) 2>conftest.er1
22952  ac_status=$?
22953  grep -v '^ *+' conftest.er1 >conftest.err
22954  rm -f conftest.er1
22955  cat conftest.err >&5
22956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957  (exit $ac_status); } &&
22958	 { ac_try='test -z "$ac_c_werror_flag"
22959			 || test ! -s conftest.err'
22960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961  (eval $ac_try) 2>&5
22962  ac_status=$?
22963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964  (exit $ac_status); }; } &&
22965	 { ac_try='test -s conftest.$ac_objext'
22966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967  (eval $ac_try) 2>&5
22968  ac_status=$?
22969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970  (exit $ac_status); }; }; then
22971  ac_cv_header_sys_wait_h=yes
22972else
22973  echo "$as_me: failed program was:" >&5
22974sed 's/^/| /' conftest.$ac_ext >&5
22975
22976ac_cv_header_sys_wait_h=no
22977fi
22978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22979fi
22980echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22981echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
22982if test $ac_cv_header_sys_wait_h = yes; then
22983
22984cat >>confdefs.h <<\_ACEOF
22985#define HAVE_SYS_WAIT_H 1
22986_ACEOF
22987
22988fi
22989
22990# Find a good install program.  We prefer a C program (faster),
22991# so one script is as good as another.  But avoid the broken or
22992# incompatible versions:
22993# SysV /etc/install, /usr/sbin/install
22994# SunOS /usr/etc/install
22995# IRIX /sbin/install
22996# AIX /bin/install
22997# AmigaOS /C/install, which installs bootblocks on floppy discs
22998# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22999# AFS /usr/afsws/bin/install, which mishandles nonexistent args
23000# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23001# OS/2's system install, which has a completely different semantic
23002# ./install, which can be erroneously created by make from ./install.sh.
23003echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
23004echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
23005if test -z "$INSTALL"; then
23006if test "${ac_cv_path_install+set}" = set; then
23007  echo $ECHO_N "(cached) $ECHO_C" >&6
23008else
23009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23010for as_dir in $PATH
23011do
23012  IFS=$as_save_IFS
23013  test -z "$as_dir" && as_dir=.
23014  # Account for people who put trailing slashes in PATH elements.
23015case $as_dir/ in
23016  ./ | .// | /cC/* | \
23017  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
23018  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
23019  /usr/ucb/* ) ;;
23020  *)
23021    # OSF1 and SCO ODT 3.0 have their own names for install.
23022    # Don't use installbsd from OSF since it installs stuff as root
23023    # by default.
23024    for ac_prog in ginstall scoinst install; do
23025      for ac_exec_ext in '' $ac_executable_extensions; do
23026	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
23027	  if test $ac_prog = install &&
23028	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23029	    # AIX install.  It has an incompatible calling convention.
23030	    :
23031	  elif test $ac_prog = install &&
23032	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23033	    # program-specific install script used by HP pwplus--don't use.
23034	    :
23035	  else
23036	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
23037	    break 3
23038	  fi
23039	fi
23040      done
23041    done
23042    ;;
23043esac
23044done
23045
23046
23047fi
23048  if test "${ac_cv_path_install+set}" = set; then
23049    INSTALL=$ac_cv_path_install
23050  else
23051    # As a last resort, use the slow shell script.  We don't cache a
23052    # path for INSTALL within a source directory, because that will
23053    # break other packages using the cache if that directory is
23054    # removed, or if the path is relative.
23055    INSTALL=$ac_install_sh
23056  fi
23057fi
23058echo "$as_me:$LINENO: result: $INSTALL" >&5
23059echo "${ECHO_T}$INSTALL" >&6
23060
23061# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23062# It thinks the first close brace ends the variable substitution.
23063test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
23064
23065test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
23066
23067test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
23068
23069
23070
23071
23072
23073
23074
23075for ac_header in assert.h fcntl.h sys/fcntl.h sys/ioctl.h sys/time.h unistd.h
23076do
23077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23078if eval "test \"\${$as_ac_Header+set}\" = set"; then
23079  echo "$as_me:$LINENO: checking for $ac_header" >&5
23080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23081if eval "test \"\${$as_ac_Header+set}\" = set"; then
23082  echo $ECHO_N "(cached) $ECHO_C" >&6
23083fi
23084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23086else
23087  # Is the header compilable?
23088echo "$as_me:$LINENO: checking $ac_header usability" >&5
23089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23090cat >conftest.$ac_ext <<_ACEOF
23091/* confdefs.h.  */
23092_ACEOF
23093cat confdefs.h >>conftest.$ac_ext
23094cat >>conftest.$ac_ext <<_ACEOF
23095/* end confdefs.h.  */
23096$ac_includes_default
23097#include <$ac_header>
23098_ACEOF
23099rm -f conftest.$ac_objext
23100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23101  (eval $ac_compile) 2>conftest.er1
23102  ac_status=$?
23103  grep -v '^ *+' conftest.er1 >conftest.err
23104  rm -f conftest.er1
23105  cat conftest.err >&5
23106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107  (exit $ac_status); } &&
23108	 { ac_try='test -z "$ac_c_werror_flag"
23109			 || test ! -s conftest.err'
23110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111  (eval $ac_try) 2>&5
23112  ac_status=$?
23113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114  (exit $ac_status); }; } &&
23115	 { ac_try='test -s conftest.$ac_objext'
23116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117  (eval $ac_try) 2>&5
23118  ac_status=$?
23119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120  (exit $ac_status); }; }; then
23121  ac_header_compiler=yes
23122else
23123  echo "$as_me: failed program was:" >&5
23124sed 's/^/| /' conftest.$ac_ext >&5
23125
23126ac_header_compiler=no
23127fi
23128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23130echo "${ECHO_T}$ac_header_compiler" >&6
23131
23132# Is the header present?
23133echo "$as_me:$LINENO: checking $ac_header presence" >&5
23134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23135cat >conftest.$ac_ext <<_ACEOF
23136/* confdefs.h.  */
23137_ACEOF
23138cat confdefs.h >>conftest.$ac_ext
23139cat >>conftest.$ac_ext <<_ACEOF
23140/* end confdefs.h.  */
23141#include <$ac_header>
23142_ACEOF
23143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23145  ac_status=$?
23146  grep -v '^ *+' conftest.er1 >conftest.err
23147  rm -f conftest.er1
23148  cat conftest.err >&5
23149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150  (exit $ac_status); } >/dev/null; then
23151  if test -s conftest.err; then
23152    ac_cpp_err=$ac_c_preproc_warn_flag
23153    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23154  else
23155    ac_cpp_err=
23156  fi
23157else
23158  ac_cpp_err=yes
23159fi
23160if test -z "$ac_cpp_err"; then
23161  ac_header_preproc=yes
23162else
23163  echo "$as_me: failed program was:" >&5
23164sed 's/^/| /' conftest.$ac_ext >&5
23165
23166  ac_header_preproc=no
23167fi
23168rm -f conftest.err conftest.$ac_ext
23169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23170echo "${ECHO_T}$ac_header_preproc" >&6
23171
23172# So?  What about this header?
23173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23174  yes:no: )
23175    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23179    ac_header_preproc=yes
23180    ;;
23181  no:yes:* )
23182    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23184    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23185echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23186    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23188    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23189echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23192    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23194    (
23195      cat <<\_ASBOX
23196## ------------------------------------------ ##
23197## Report this to the AC_PACKAGE_NAME lists.  ##
23198## ------------------------------------------ ##
23199_ASBOX
23200    ) |
23201      sed "s/^/$as_me: WARNING:     /" >&2
23202    ;;
23203esac
23204echo "$as_me:$LINENO: checking for $ac_header" >&5
23205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23206if eval "test \"\${$as_ac_Header+set}\" = set"; then
23207  echo $ECHO_N "(cached) $ECHO_C" >&6
23208else
23209  eval "$as_ac_Header=\$ac_header_preproc"
23210fi
23211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23213
23214fi
23215if test `eval echo '${'$as_ac_Header'}'` = yes; then
23216  cat >>confdefs.h <<_ACEOF
23217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23218_ACEOF
23219
23220fi
23221
23222done
23223
23224
23225
23226
23227
23228
23229for ac_header in grp.h libc.h lastlog.h  sys/byteorder.h sys/sockio.h
23230do
23231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23232if eval "test \"\${$as_ac_Header+set}\" = set"; then
23233  echo "$as_me:$LINENO: checking for $ac_header" >&5
23234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23235if eval "test \"\${$as_ac_Header+set}\" = set"; then
23236  echo $ECHO_N "(cached) $ECHO_C" >&6
23237fi
23238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23240else
23241  # Is the header compilable?
23242echo "$as_me:$LINENO: checking $ac_header usability" >&5
23243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23244cat >conftest.$ac_ext <<_ACEOF
23245/* confdefs.h.  */
23246_ACEOF
23247cat confdefs.h >>conftest.$ac_ext
23248cat >>conftest.$ac_ext <<_ACEOF
23249/* end confdefs.h.  */
23250$ac_includes_default
23251#include <$ac_header>
23252_ACEOF
23253rm -f conftest.$ac_objext
23254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23255  (eval $ac_compile) 2>conftest.er1
23256  ac_status=$?
23257  grep -v '^ *+' conftest.er1 >conftest.err
23258  rm -f conftest.er1
23259  cat conftest.err >&5
23260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261  (exit $ac_status); } &&
23262	 { ac_try='test -z "$ac_c_werror_flag"
23263			 || test ! -s conftest.err'
23264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265  (eval $ac_try) 2>&5
23266  ac_status=$?
23267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268  (exit $ac_status); }; } &&
23269	 { ac_try='test -s conftest.$ac_objext'
23270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271  (eval $ac_try) 2>&5
23272  ac_status=$?
23273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274  (exit $ac_status); }; }; then
23275  ac_header_compiler=yes
23276else
23277  echo "$as_me: failed program was:" >&5
23278sed 's/^/| /' conftest.$ac_ext >&5
23279
23280ac_header_compiler=no
23281fi
23282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23283echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23284echo "${ECHO_T}$ac_header_compiler" >&6
23285
23286# Is the header present?
23287echo "$as_me:$LINENO: checking $ac_header presence" >&5
23288echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23289cat >conftest.$ac_ext <<_ACEOF
23290/* confdefs.h.  */
23291_ACEOF
23292cat confdefs.h >>conftest.$ac_ext
23293cat >>conftest.$ac_ext <<_ACEOF
23294/* end confdefs.h.  */
23295#include <$ac_header>
23296_ACEOF
23297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23298  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23299  ac_status=$?
23300  grep -v '^ *+' conftest.er1 >conftest.err
23301  rm -f conftest.er1
23302  cat conftest.err >&5
23303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304  (exit $ac_status); } >/dev/null; then
23305  if test -s conftest.err; then
23306    ac_cpp_err=$ac_c_preproc_warn_flag
23307    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23308  else
23309    ac_cpp_err=
23310  fi
23311else
23312  ac_cpp_err=yes
23313fi
23314if test -z "$ac_cpp_err"; then
23315  ac_header_preproc=yes
23316else
23317  echo "$as_me: failed program was:" >&5
23318sed 's/^/| /' conftest.$ac_ext >&5
23319
23320  ac_header_preproc=no
23321fi
23322rm -f conftest.err conftest.$ac_ext
23323echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23324echo "${ECHO_T}$ac_header_preproc" >&6
23325
23326# So?  What about this header?
23327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23328  yes:no: )
23329    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23330echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23331    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23332echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23333    ac_header_preproc=yes
23334    ;;
23335  no:yes:* )
23336    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23337echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23338    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23339echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23340    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23341echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23342    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23343echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23345echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23346    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23347echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23348    (
23349      cat <<\_ASBOX
23350## ------------------------------------------ ##
23351## Report this to the AC_PACKAGE_NAME lists.  ##
23352## ------------------------------------------ ##
23353_ASBOX
23354    ) |
23355      sed "s/^/$as_me: WARNING:     /" >&2
23356    ;;
23357esac
23358echo "$as_me:$LINENO: checking for $ac_header" >&5
23359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23360if eval "test \"\${$as_ac_Header+set}\" = set"; then
23361  echo $ECHO_N "(cached) $ECHO_C" >&6
23362else
23363  eval "$as_ac_Header=\$ac_header_preproc"
23364fi
23365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23366echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23367
23368fi
23369if test `eval echo '${'$as_ac_Header'}'` = yes; then
23370  cat >>confdefs.h <<_ACEOF
23371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23372_ACEOF
23373
23374fi
23375
23376done
23377
23378
23379
23380
23381
23382
23383
23384for ac_header in sys/select.h sys/errno.h alloca.h grp.h pwd.h sys/wait.h
23385do
23386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23387if eval "test \"\${$as_ac_Header+set}\" = set"; then
23388  echo "$as_me:$LINENO: checking for $ac_header" >&5
23389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23390if eval "test \"\${$as_ac_Header+set}\" = set"; then
23391  echo $ECHO_N "(cached) $ECHO_C" >&6
23392fi
23393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23395else
23396  # Is the header compilable?
23397echo "$as_me:$LINENO: checking $ac_header usability" >&5
23398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23399cat >conftest.$ac_ext <<_ACEOF
23400/* confdefs.h.  */
23401_ACEOF
23402cat confdefs.h >>conftest.$ac_ext
23403cat >>conftest.$ac_ext <<_ACEOF
23404/* end confdefs.h.  */
23405$ac_includes_default
23406#include <$ac_header>
23407_ACEOF
23408rm -f conftest.$ac_objext
23409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23410  (eval $ac_compile) 2>conftest.er1
23411  ac_status=$?
23412  grep -v '^ *+' conftest.er1 >conftest.err
23413  rm -f conftest.er1
23414  cat conftest.err >&5
23415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416  (exit $ac_status); } &&
23417	 { ac_try='test -z "$ac_c_werror_flag"
23418			 || test ! -s conftest.err'
23419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420  (eval $ac_try) 2>&5
23421  ac_status=$?
23422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423  (exit $ac_status); }; } &&
23424	 { ac_try='test -s conftest.$ac_objext'
23425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426  (eval $ac_try) 2>&5
23427  ac_status=$?
23428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429  (exit $ac_status); }; }; then
23430  ac_header_compiler=yes
23431else
23432  echo "$as_me: failed program was:" >&5
23433sed 's/^/| /' conftest.$ac_ext >&5
23434
23435ac_header_compiler=no
23436fi
23437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23438echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23439echo "${ECHO_T}$ac_header_compiler" >&6
23440
23441# Is the header present?
23442echo "$as_me:$LINENO: checking $ac_header presence" >&5
23443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23444cat >conftest.$ac_ext <<_ACEOF
23445/* confdefs.h.  */
23446_ACEOF
23447cat confdefs.h >>conftest.$ac_ext
23448cat >>conftest.$ac_ext <<_ACEOF
23449/* end confdefs.h.  */
23450#include <$ac_header>
23451_ACEOF
23452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23453  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23454  ac_status=$?
23455  grep -v '^ *+' conftest.er1 >conftest.err
23456  rm -f conftest.er1
23457  cat conftest.err >&5
23458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459  (exit $ac_status); } >/dev/null; then
23460  if test -s conftest.err; then
23461    ac_cpp_err=$ac_c_preproc_warn_flag
23462    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23463  else
23464    ac_cpp_err=
23465  fi
23466else
23467  ac_cpp_err=yes
23468fi
23469if test -z "$ac_cpp_err"; then
23470  ac_header_preproc=yes
23471else
23472  echo "$as_me: failed program was:" >&5
23473sed 's/^/| /' conftest.$ac_ext >&5
23474
23475  ac_header_preproc=no
23476fi
23477rm -f conftest.err conftest.$ac_ext
23478echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23479echo "${ECHO_T}$ac_header_preproc" >&6
23480
23481# So?  What about this header?
23482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23483  yes:no: )
23484    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23486    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23488    ac_header_preproc=yes
23489    ;;
23490  no:yes:* )
23491    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23493    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23494echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23495    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23497    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23498echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23501    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23503    (
23504      cat <<\_ASBOX
23505## ------------------------------------------ ##
23506## Report this to the AC_PACKAGE_NAME lists.  ##
23507## ------------------------------------------ ##
23508_ASBOX
23509    ) |
23510      sed "s/^/$as_me: WARNING:     /" >&2
23511    ;;
23512esac
23513echo "$as_me:$LINENO: checking for $ac_header" >&5
23514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23515if eval "test \"\${$as_ac_Header+set}\" = set"; then
23516  echo $ECHO_N "(cached) $ECHO_C" >&6
23517else
23518  eval "$as_ac_Header=\$ac_header_preproc"
23519fi
23520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23522
23523fi
23524if test `eval echo '${'$as_ac_Header'}'` = yes; then
23525  cat >>confdefs.h <<_ACEOF
23526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23527_ACEOF
23528
23529fi
23530
23531done
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541for ac_header in string.h strings.h stdarg.h stdlib.h stdio.h termios.h select.h sys/stat.h
23542do
23543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23544if eval "test \"\${$as_ac_Header+set}\" = set"; then
23545  echo "$as_me:$LINENO: checking for $ac_header" >&5
23546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23547if eval "test \"\${$as_ac_Header+set}\" = set"; then
23548  echo $ECHO_N "(cached) $ECHO_C" >&6
23549fi
23550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23552else
23553  # Is the header compilable?
23554echo "$as_me:$LINENO: checking $ac_header usability" >&5
23555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23556cat >conftest.$ac_ext <<_ACEOF
23557/* confdefs.h.  */
23558_ACEOF
23559cat confdefs.h >>conftest.$ac_ext
23560cat >>conftest.$ac_ext <<_ACEOF
23561/* end confdefs.h.  */
23562$ac_includes_default
23563#include <$ac_header>
23564_ACEOF
23565rm -f conftest.$ac_objext
23566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23567  (eval $ac_compile) 2>conftest.er1
23568  ac_status=$?
23569  grep -v '^ *+' conftest.er1 >conftest.err
23570  rm -f conftest.er1
23571  cat conftest.err >&5
23572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573  (exit $ac_status); } &&
23574	 { ac_try='test -z "$ac_c_werror_flag"
23575			 || test ! -s conftest.err'
23576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577  (eval $ac_try) 2>&5
23578  ac_status=$?
23579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580  (exit $ac_status); }; } &&
23581	 { ac_try='test -s conftest.$ac_objext'
23582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583  (eval $ac_try) 2>&5
23584  ac_status=$?
23585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586  (exit $ac_status); }; }; then
23587  ac_header_compiler=yes
23588else
23589  echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592ac_header_compiler=no
23593fi
23594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23595echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23596echo "${ECHO_T}$ac_header_compiler" >&6
23597
23598# Is the header present?
23599echo "$as_me:$LINENO: checking $ac_header presence" >&5
23600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23601cat >conftest.$ac_ext <<_ACEOF
23602/* confdefs.h.  */
23603_ACEOF
23604cat confdefs.h >>conftest.$ac_ext
23605cat >>conftest.$ac_ext <<_ACEOF
23606/* end confdefs.h.  */
23607#include <$ac_header>
23608_ACEOF
23609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23610  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23611  ac_status=$?
23612  grep -v '^ *+' conftest.er1 >conftest.err
23613  rm -f conftest.er1
23614  cat conftest.err >&5
23615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616  (exit $ac_status); } >/dev/null; then
23617  if test -s conftest.err; then
23618    ac_cpp_err=$ac_c_preproc_warn_flag
23619    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23620  else
23621    ac_cpp_err=
23622  fi
23623else
23624  ac_cpp_err=yes
23625fi
23626if test -z "$ac_cpp_err"; then
23627  ac_header_preproc=yes
23628else
23629  echo "$as_me: failed program was:" >&5
23630sed 's/^/| /' conftest.$ac_ext >&5
23631
23632  ac_header_preproc=no
23633fi
23634rm -f conftest.err conftest.$ac_ext
23635echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23636echo "${ECHO_T}$ac_header_preproc" >&6
23637
23638# So?  What about this header?
23639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23640  yes:no: )
23641    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23645    ac_header_preproc=yes
23646    ;;
23647  no:yes:* )
23648    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23650    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23651echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23652    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23654    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23655echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23656    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23658    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23660    (
23661      cat <<\_ASBOX
23662## ------------------------------------------ ##
23663## Report this to the AC_PACKAGE_NAME lists.  ##
23664## ------------------------------------------ ##
23665_ASBOX
23666    ) |
23667      sed "s/^/$as_me: WARNING:     /" >&2
23668    ;;
23669esac
23670echo "$as_me:$LINENO: checking for $ac_header" >&5
23671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23672if eval "test \"\${$as_ac_Header+set}\" = set"; then
23673  echo $ECHO_N "(cached) $ECHO_C" >&6
23674else
23675  eval "$as_ac_Header=\$ac_header_preproc"
23676fi
23677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23679
23680fi
23681if test `eval echo '${'$as_ac_Header'}'` = yes; then
23682  cat >>confdefs.h <<_ACEOF
23683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23684_ACEOF
23685
23686fi
23687
23688done
23689
23690
23691
23692
23693
23694
23695
23696
23697for ac_header in sys/ioctl.h ioctl.h termios.h sys/termios.h sys/timeb.h types.h sys/types.h
23698do
23699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23700if eval "test \"\${$as_ac_Header+set}\" = set"; then
23701  echo "$as_me:$LINENO: checking for $ac_header" >&5
23702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23703if eval "test \"\${$as_ac_Header+set}\" = set"; then
23704  echo $ECHO_N "(cached) $ECHO_C" >&6
23705fi
23706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23708else
23709  # Is the header compilable?
23710echo "$as_me:$LINENO: checking $ac_header usability" >&5
23711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23712cat >conftest.$ac_ext <<_ACEOF
23713/* confdefs.h.  */
23714_ACEOF
23715cat confdefs.h >>conftest.$ac_ext
23716cat >>conftest.$ac_ext <<_ACEOF
23717/* end confdefs.h.  */
23718$ac_includes_default
23719#include <$ac_header>
23720_ACEOF
23721rm -f conftest.$ac_objext
23722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23723  (eval $ac_compile) 2>conftest.er1
23724  ac_status=$?
23725  grep -v '^ *+' conftest.er1 >conftest.err
23726  rm -f conftest.er1
23727  cat conftest.err >&5
23728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729  (exit $ac_status); } &&
23730	 { ac_try='test -z "$ac_c_werror_flag"
23731			 || test ! -s conftest.err'
23732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733  (eval $ac_try) 2>&5
23734  ac_status=$?
23735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736  (exit $ac_status); }; } &&
23737	 { ac_try='test -s conftest.$ac_objext'
23738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739  (eval $ac_try) 2>&5
23740  ac_status=$?
23741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742  (exit $ac_status); }; }; then
23743  ac_header_compiler=yes
23744else
23745  echo "$as_me: failed program was:" >&5
23746sed 's/^/| /' conftest.$ac_ext >&5
23747
23748ac_header_compiler=no
23749fi
23750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23752echo "${ECHO_T}$ac_header_compiler" >&6
23753
23754# Is the header present?
23755echo "$as_me:$LINENO: checking $ac_header presence" >&5
23756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23757cat >conftest.$ac_ext <<_ACEOF
23758/* confdefs.h.  */
23759_ACEOF
23760cat confdefs.h >>conftest.$ac_ext
23761cat >>conftest.$ac_ext <<_ACEOF
23762/* end confdefs.h.  */
23763#include <$ac_header>
23764_ACEOF
23765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23767  ac_status=$?
23768  grep -v '^ *+' conftest.er1 >conftest.err
23769  rm -f conftest.er1
23770  cat conftest.err >&5
23771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772  (exit $ac_status); } >/dev/null; then
23773  if test -s conftest.err; then
23774    ac_cpp_err=$ac_c_preproc_warn_flag
23775    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23776  else
23777    ac_cpp_err=
23778  fi
23779else
23780  ac_cpp_err=yes
23781fi
23782if test -z "$ac_cpp_err"; then
23783  ac_header_preproc=yes
23784else
23785  echo "$as_me: failed program was:" >&5
23786sed 's/^/| /' conftest.$ac_ext >&5
23787
23788  ac_header_preproc=no
23789fi
23790rm -f conftest.err conftest.$ac_ext
23791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23792echo "${ECHO_T}$ac_header_preproc" >&6
23793
23794# So?  What about this header?
23795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23796  yes:no: )
23797    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23801    ac_header_preproc=yes
23802    ;;
23803  no:yes:* )
23804    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23806    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23807echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23808    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23810    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23811echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23812    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23814    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23816    (
23817      cat <<\_ASBOX
23818## ------------------------------------------ ##
23819## Report this to the AC_PACKAGE_NAME lists.  ##
23820## ------------------------------------------ ##
23821_ASBOX
23822    ) |
23823      sed "s/^/$as_me: WARNING:     /" >&2
23824    ;;
23825esac
23826echo "$as_me:$LINENO: checking for $ac_header" >&5
23827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23828if eval "test \"\${$as_ac_Header+set}\" = set"; then
23829  echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831  eval "$as_ac_Header=\$ac_header_preproc"
23832fi
23833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23835
23836fi
23837if test `eval echo '${'$as_ac_Header'}'` = yes; then
23838  cat >>confdefs.h <<_ACEOF
23839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23840_ACEOF
23841
23842fi
23843
23844done
23845
23846
23847
23848for ac_header in wchar.h langinfo.h
23849do
23850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23851if eval "test \"\${$as_ac_Header+set}\" = set"; then
23852  echo "$as_me:$LINENO: checking for $ac_header" >&5
23853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23854if eval "test \"\${$as_ac_Header+set}\" = set"; then
23855  echo $ECHO_N "(cached) $ECHO_C" >&6
23856fi
23857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23859else
23860  # Is the header compilable?
23861echo "$as_me:$LINENO: checking $ac_header usability" >&5
23862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23863cat >conftest.$ac_ext <<_ACEOF
23864/* confdefs.h.  */
23865_ACEOF
23866cat confdefs.h >>conftest.$ac_ext
23867cat >>conftest.$ac_ext <<_ACEOF
23868/* end confdefs.h.  */
23869$ac_includes_default
23870#include <$ac_header>
23871_ACEOF
23872rm -f conftest.$ac_objext
23873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23874  (eval $ac_compile) 2>conftest.er1
23875  ac_status=$?
23876  grep -v '^ *+' conftest.er1 >conftest.err
23877  rm -f conftest.er1
23878  cat conftest.err >&5
23879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880  (exit $ac_status); } &&
23881	 { ac_try='test -z "$ac_c_werror_flag"
23882			 || test ! -s conftest.err'
23883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23884  (eval $ac_try) 2>&5
23885  ac_status=$?
23886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887  (exit $ac_status); }; } &&
23888	 { ac_try='test -s conftest.$ac_objext'
23889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890  (eval $ac_try) 2>&5
23891  ac_status=$?
23892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893  (exit $ac_status); }; }; then
23894  ac_header_compiler=yes
23895else
23896  echo "$as_me: failed program was:" >&5
23897sed 's/^/| /' conftest.$ac_ext >&5
23898
23899ac_header_compiler=no
23900fi
23901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23903echo "${ECHO_T}$ac_header_compiler" >&6
23904
23905# Is the header present?
23906echo "$as_me:$LINENO: checking $ac_header presence" >&5
23907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23908cat >conftest.$ac_ext <<_ACEOF
23909/* confdefs.h.  */
23910_ACEOF
23911cat confdefs.h >>conftest.$ac_ext
23912cat >>conftest.$ac_ext <<_ACEOF
23913/* end confdefs.h.  */
23914#include <$ac_header>
23915_ACEOF
23916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23917  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23918  ac_status=$?
23919  grep -v '^ *+' conftest.er1 >conftest.err
23920  rm -f conftest.er1
23921  cat conftest.err >&5
23922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923  (exit $ac_status); } >/dev/null; then
23924  if test -s conftest.err; then
23925    ac_cpp_err=$ac_c_preproc_warn_flag
23926    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23927  else
23928    ac_cpp_err=
23929  fi
23930else
23931  ac_cpp_err=yes
23932fi
23933if test -z "$ac_cpp_err"; then
23934  ac_header_preproc=yes
23935else
23936  echo "$as_me: failed program was:" >&5
23937sed 's/^/| /' conftest.$ac_ext >&5
23938
23939  ac_header_preproc=no
23940fi
23941rm -f conftest.err conftest.$ac_ext
23942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23943echo "${ECHO_T}$ac_header_preproc" >&6
23944
23945# So?  What about this header?
23946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23947  yes:no: )
23948    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23952    ac_header_preproc=yes
23953    ;;
23954  no:yes:* )
23955    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23957    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23958echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23959    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23961    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23962echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23963    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23965    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23967    (
23968      cat <<\_ASBOX
23969## ------------------------------------------ ##
23970## Report this to the AC_PACKAGE_NAME lists.  ##
23971## ------------------------------------------ ##
23972_ASBOX
23973    ) |
23974      sed "s/^/$as_me: WARNING:     /" >&2
23975    ;;
23976esac
23977echo "$as_me:$LINENO: checking for $ac_header" >&5
23978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23979if eval "test \"\${$as_ac_Header+set}\" = set"; then
23980  echo $ECHO_N "(cached) $ECHO_C" >&6
23981else
23982  eval "$as_ac_Header=\$ac_header_preproc"
23983fi
23984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23986
23987fi
23988if test `eval echo '${'$as_ac_Header'}'` = yes; then
23989  cat >>confdefs.h <<_ACEOF
23990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23991_ACEOF
23992
23993fi
23994
23995done
23996
23997
23998echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23999echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24000if test "${ac_cv_c_const+set}" = set; then
24001  echo $ECHO_N "(cached) $ECHO_C" >&6
24002else
24003  cat >conftest.$ac_ext <<_ACEOF
24004/* confdefs.h.  */
24005_ACEOF
24006cat confdefs.h >>conftest.$ac_ext
24007cat >>conftest.$ac_ext <<_ACEOF
24008/* end confdefs.h.  */
24009
24010int
24011main ()
24012{
24013/* FIXME: Include the comments suggested by Paul. */
24014#ifndef __cplusplus
24015  /* Ultrix mips cc rejects this.  */
24016  typedef int charset[2];
24017  const charset x;
24018  /* SunOS 4.1.1 cc rejects this.  */
24019  char const *const *ccp;
24020  char **p;
24021  /* NEC SVR4.0.2 mips cc rejects this.  */
24022  struct point {int x, y;};
24023  static struct point const zero = {0,0};
24024  /* AIX XL C 1.02.0.0 rejects this.
24025     It does not let you subtract one const X* pointer from another in
24026     an arm of an if-expression whose if-part is not a constant
24027     expression */
24028  const char *g = "string";
24029  ccp = &g + (g ? g-g : 0);
24030  /* HPUX 7.0 cc rejects these. */
24031  ++ccp;
24032  p = (char**) ccp;
24033  ccp = (char const *const *) p;
24034  { /* SCO 3.2v4 cc rejects this.  */
24035    char *t;
24036    char const *s = 0 ? (char *) 0 : (char const *) 0;
24037
24038    *t++ = 0;
24039  }
24040  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24041    int x[] = {25, 17};
24042    const int *foo = &x[0];
24043    ++foo;
24044  }
24045  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24046    typedef const int *iptr;
24047    iptr p = 0;
24048    ++p;
24049  }
24050  { /* AIX XL C 1.02.0.0 rejects this saying
24051       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24052    struct s { int j; const int *ap[3]; };
24053    struct s *b; b->j = 5;
24054  }
24055  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24056    const int foo = 10;
24057  }
24058#endif
24059
24060  ;
24061  return 0;
24062}
24063_ACEOF
24064rm -f conftest.$ac_objext
24065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24066  (eval $ac_compile) 2>conftest.er1
24067  ac_status=$?
24068  grep -v '^ *+' conftest.er1 >conftest.err
24069  rm -f conftest.er1
24070  cat conftest.err >&5
24071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072  (exit $ac_status); } &&
24073	 { ac_try='test -z "$ac_c_werror_flag"
24074			 || test ! -s conftest.err'
24075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24076  (eval $ac_try) 2>&5
24077  ac_status=$?
24078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079  (exit $ac_status); }; } &&
24080	 { ac_try='test -s conftest.$ac_objext'
24081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082  (eval $ac_try) 2>&5
24083  ac_status=$?
24084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085  (exit $ac_status); }; }; then
24086  ac_cv_c_const=yes
24087else
24088  echo "$as_me: failed program was:" >&5
24089sed 's/^/| /' conftest.$ac_ext >&5
24090
24091ac_cv_c_const=no
24092fi
24093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24094fi
24095echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24096echo "${ECHO_T}$ac_cv_c_const" >&6
24097if test $ac_cv_c_const = no; then
24098
24099cat >>confdefs.h <<\_ACEOF
24100#define const
24101_ACEOF
24102
24103fi
24104
24105echo "$as_me:$LINENO: checking for inline" >&5
24106echo $ECHO_N "checking for inline... $ECHO_C" >&6
24107if test "${ac_cv_c_inline+set}" = set; then
24108  echo $ECHO_N "(cached) $ECHO_C" >&6
24109else
24110  ac_cv_c_inline=no
24111for ac_kw in inline __inline__ __inline; do
24112  cat >conftest.$ac_ext <<_ACEOF
24113/* confdefs.h.  */
24114_ACEOF
24115cat confdefs.h >>conftest.$ac_ext
24116cat >>conftest.$ac_ext <<_ACEOF
24117/* end confdefs.h.  */
24118#ifndef __cplusplus
24119typedef int foo_t;
24120static $ac_kw foo_t static_foo () {return 0; }
24121$ac_kw foo_t foo () {return 0; }
24122#endif
24123
24124_ACEOF
24125rm -f conftest.$ac_objext
24126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24127  (eval $ac_compile) 2>conftest.er1
24128  ac_status=$?
24129  grep -v '^ *+' conftest.er1 >conftest.err
24130  rm -f conftest.er1
24131  cat conftest.err >&5
24132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133  (exit $ac_status); } &&
24134	 { ac_try='test -z "$ac_c_werror_flag"
24135			 || test ! -s conftest.err'
24136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24137  (eval $ac_try) 2>&5
24138  ac_status=$?
24139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140  (exit $ac_status); }; } &&
24141	 { ac_try='test -s conftest.$ac_objext'
24142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143  (eval $ac_try) 2>&5
24144  ac_status=$?
24145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146  (exit $ac_status); }; }; then
24147  ac_cv_c_inline=$ac_kw; break
24148else
24149  echo "$as_me: failed program was:" >&5
24150sed 's/^/| /' conftest.$ac_ext >&5
24151
24152fi
24153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24154done
24155
24156fi
24157echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24158echo "${ECHO_T}$ac_cv_c_inline" >&6
24159
24160
24161case $ac_cv_c_inline in
24162  inline | yes) ;;
24163  *)
24164    case $ac_cv_c_inline in
24165      no) ac_val=;;
24166      *) ac_val=$ac_cv_c_inline;;
24167    esac
24168    cat >>confdefs.h <<_ACEOF
24169#ifndef __cplusplus
24170#define inline $ac_val
24171#endif
24172_ACEOF
24173    ;;
24174esac
24175
24176echo "$as_me:$LINENO: checking for mode_t" >&5
24177echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
24178if test "${ac_cv_type_mode_t+set}" = set; then
24179  echo $ECHO_N "(cached) $ECHO_C" >&6
24180else
24181  cat >conftest.$ac_ext <<_ACEOF
24182/* confdefs.h.  */
24183_ACEOF
24184cat confdefs.h >>conftest.$ac_ext
24185cat >>conftest.$ac_ext <<_ACEOF
24186/* end confdefs.h.  */
24187$ac_includes_default
24188int
24189main ()
24190{
24191if ((mode_t *) 0)
24192  return 0;
24193if (sizeof (mode_t))
24194  return 0;
24195  ;
24196  return 0;
24197}
24198_ACEOF
24199rm -f conftest.$ac_objext
24200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24201  (eval $ac_compile) 2>conftest.er1
24202  ac_status=$?
24203  grep -v '^ *+' conftest.er1 >conftest.err
24204  rm -f conftest.er1
24205  cat conftest.err >&5
24206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207  (exit $ac_status); } &&
24208	 { ac_try='test -z "$ac_c_werror_flag"
24209			 || test ! -s conftest.err'
24210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211  (eval $ac_try) 2>&5
24212  ac_status=$?
24213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214  (exit $ac_status); }; } &&
24215	 { ac_try='test -s conftest.$ac_objext'
24216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217  (eval $ac_try) 2>&5
24218  ac_status=$?
24219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220  (exit $ac_status); }; }; then
24221  ac_cv_type_mode_t=yes
24222else
24223  echo "$as_me: failed program was:" >&5
24224sed 's/^/| /' conftest.$ac_ext >&5
24225
24226ac_cv_type_mode_t=no
24227fi
24228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24229fi
24230echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24231echo "${ECHO_T}$ac_cv_type_mode_t" >&6
24232if test $ac_cv_type_mode_t = yes; then
24233  :
24234else
24235
24236cat >>confdefs.h <<_ACEOF
24237#define mode_t int
24238_ACEOF
24239
24240fi
24241
24242echo "$as_me:$LINENO: checking for pid_t" >&5
24243echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24244if test "${ac_cv_type_pid_t+set}" = set; then
24245  echo $ECHO_N "(cached) $ECHO_C" >&6
24246else
24247  cat >conftest.$ac_ext <<_ACEOF
24248/* confdefs.h.  */
24249_ACEOF
24250cat confdefs.h >>conftest.$ac_ext
24251cat >>conftest.$ac_ext <<_ACEOF
24252/* end confdefs.h.  */
24253$ac_includes_default
24254int
24255main ()
24256{
24257if ((pid_t *) 0)
24258  return 0;
24259if (sizeof (pid_t))
24260  return 0;
24261  ;
24262  return 0;
24263}
24264_ACEOF
24265rm -f conftest.$ac_objext
24266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24267  (eval $ac_compile) 2>conftest.er1
24268  ac_status=$?
24269  grep -v '^ *+' conftest.er1 >conftest.err
24270  rm -f conftest.er1
24271  cat conftest.err >&5
24272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273  (exit $ac_status); } &&
24274	 { ac_try='test -z "$ac_c_werror_flag"
24275			 || test ! -s conftest.err'
24276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277  (eval $ac_try) 2>&5
24278  ac_status=$?
24279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280  (exit $ac_status); }; } &&
24281	 { ac_try='test -s conftest.$ac_objext'
24282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24283  (eval $ac_try) 2>&5
24284  ac_status=$?
24285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286  (exit $ac_status); }; }; then
24287  ac_cv_type_pid_t=yes
24288else
24289  echo "$as_me: failed program was:" >&5
24290sed 's/^/| /' conftest.$ac_ext >&5
24291
24292ac_cv_type_pid_t=no
24293fi
24294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24295fi
24296echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24297echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24298if test $ac_cv_type_pid_t = yes; then
24299  :
24300else
24301
24302cat >>confdefs.h <<_ACEOF
24303#define pid_t int
24304_ACEOF
24305
24306fi
24307
24308echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24309echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
24310if test "${ac_cv_type_uid_t+set}" = set; then
24311  echo $ECHO_N "(cached) $ECHO_C" >&6
24312else
24313  cat >conftest.$ac_ext <<_ACEOF
24314/* confdefs.h.  */
24315_ACEOF
24316cat confdefs.h >>conftest.$ac_ext
24317cat >>conftest.$ac_ext <<_ACEOF
24318/* end confdefs.h.  */
24319#include <sys/types.h>
24320
24321_ACEOF
24322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24323  $EGREP "uid_t" >/dev/null 2>&1; then
24324  ac_cv_type_uid_t=yes
24325else
24326  ac_cv_type_uid_t=no
24327fi
24328rm -f conftest*
24329
24330fi
24331echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24332echo "${ECHO_T}$ac_cv_type_uid_t" >&6
24333if test $ac_cv_type_uid_t = no; then
24334
24335cat >>confdefs.h <<\_ACEOF
24336#define uid_t int
24337_ACEOF
24338
24339
24340cat >>confdefs.h <<\_ACEOF
24341#define gid_t int
24342_ACEOF
24343
24344fi
24345
24346echo "$as_me:$LINENO: checking for size_t" >&5
24347echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24348if test "${ac_cv_type_size_t+set}" = set; then
24349  echo $ECHO_N "(cached) $ECHO_C" >&6
24350else
24351  cat >conftest.$ac_ext <<_ACEOF
24352/* confdefs.h.  */
24353_ACEOF
24354cat confdefs.h >>conftest.$ac_ext
24355cat >>conftest.$ac_ext <<_ACEOF
24356/* end confdefs.h.  */
24357$ac_includes_default
24358int
24359main ()
24360{
24361if ((size_t *) 0)
24362  return 0;
24363if (sizeof (size_t))
24364  return 0;
24365  ;
24366  return 0;
24367}
24368_ACEOF
24369rm -f conftest.$ac_objext
24370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24371  (eval $ac_compile) 2>conftest.er1
24372  ac_status=$?
24373  grep -v '^ *+' conftest.er1 >conftest.err
24374  rm -f conftest.er1
24375  cat conftest.err >&5
24376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377  (exit $ac_status); } &&
24378	 { ac_try='test -z "$ac_c_werror_flag"
24379			 || test ! -s conftest.err'
24380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381  (eval $ac_try) 2>&5
24382  ac_status=$?
24383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384  (exit $ac_status); }; } &&
24385	 { ac_try='test -s conftest.$ac_objext'
24386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387  (eval $ac_try) 2>&5
24388  ac_status=$?
24389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390  (exit $ac_status); }; }; then
24391  ac_cv_type_size_t=yes
24392else
24393  echo "$as_me: failed program was:" >&5
24394sed 's/^/| /' conftest.$ac_ext >&5
24395
24396ac_cv_type_size_t=no
24397fi
24398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24399fi
24400echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24401echo "${ECHO_T}$ac_cv_type_size_t" >&6
24402if test $ac_cv_type_size_t = yes; then
24403  :
24404else
24405
24406cat >>confdefs.h <<_ACEOF
24407#define size_t unsigned
24408_ACEOF
24409
24410fi
24411
24412echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24413echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24414if test "${ac_cv_header_time+set}" = set; then
24415  echo $ECHO_N "(cached) $ECHO_C" >&6
24416else
24417  cat >conftest.$ac_ext <<_ACEOF
24418/* confdefs.h.  */
24419_ACEOF
24420cat confdefs.h >>conftest.$ac_ext
24421cat >>conftest.$ac_ext <<_ACEOF
24422/* end confdefs.h.  */
24423#include <sys/types.h>
24424#include <sys/time.h>
24425#include <time.h>
24426
24427int
24428main ()
24429{
24430if ((struct tm *) 0)
24431return 0;
24432  ;
24433  return 0;
24434}
24435_ACEOF
24436rm -f conftest.$ac_objext
24437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24438  (eval $ac_compile) 2>conftest.er1
24439  ac_status=$?
24440  grep -v '^ *+' conftest.er1 >conftest.err
24441  rm -f conftest.er1
24442  cat conftest.err >&5
24443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444  (exit $ac_status); } &&
24445	 { ac_try='test -z "$ac_c_werror_flag"
24446			 || test ! -s conftest.err'
24447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448  (eval $ac_try) 2>&5
24449  ac_status=$?
24450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451  (exit $ac_status); }; } &&
24452	 { ac_try='test -s conftest.$ac_objext'
24453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24454  (eval $ac_try) 2>&5
24455  ac_status=$?
24456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457  (exit $ac_status); }; }; then
24458  ac_cv_header_time=yes
24459else
24460  echo "$as_me: failed program was:" >&5
24461sed 's/^/| /' conftest.$ac_ext >&5
24462
24463ac_cv_header_time=no
24464fi
24465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24466fi
24467echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24468echo "${ECHO_T}$ac_cv_header_time" >&6
24469if test $ac_cv_header_time = yes; then
24470
24471cat >>confdefs.h <<\_ACEOF
24472#define TIME_WITH_SYS_TIME 1
24473_ACEOF
24474
24475fi
24476
24477echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24478echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24479if test "${ac_cv_struct_tm+set}" = set; then
24480  echo $ECHO_N "(cached) $ECHO_C" >&6
24481else
24482  cat >conftest.$ac_ext <<_ACEOF
24483/* confdefs.h.  */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
24487/* end confdefs.h.  */
24488#include <sys/types.h>
24489#include <time.h>
24490
24491int
24492main ()
24493{
24494struct tm *tp; tp->tm_sec;
24495  ;
24496  return 0;
24497}
24498_ACEOF
24499rm -f conftest.$ac_objext
24500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24501  (eval $ac_compile) 2>conftest.er1
24502  ac_status=$?
24503  grep -v '^ *+' conftest.er1 >conftest.err
24504  rm -f conftest.er1
24505  cat conftest.err >&5
24506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507  (exit $ac_status); } &&
24508	 { ac_try='test -z "$ac_c_werror_flag"
24509			 || test ! -s conftest.err'
24510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24511  (eval $ac_try) 2>&5
24512  ac_status=$?
24513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514  (exit $ac_status); }; } &&
24515	 { ac_try='test -s conftest.$ac_objext'
24516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24517  (eval $ac_try) 2>&5
24518  ac_status=$?
24519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520  (exit $ac_status); }; }; then
24521  ac_cv_struct_tm=time.h
24522else
24523  echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526ac_cv_struct_tm=sys/time.h
24527fi
24528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24529fi
24530echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24531echo "${ECHO_T}$ac_cv_struct_tm" >&6
24532if test $ac_cv_struct_tm = sys/time.h; then
24533
24534cat >>confdefs.h <<\_ACEOF
24535#define TM_IN_SYS_TIME 1
24536_ACEOF
24537
24538fi
24539
24540
24541echo "$as_me:$LINENO: checking for mbstate_t" >&5
24542echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
24543if test "${mbstate_t_works+set}" = set; then
24544  echo $ECHO_N "(cached) $ECHO_C" >&6
24545else
24546
24547    cat >conftest.$ac_ext <<_ACEOF
24548/* confdefs.h.  */
24549_ACEOF
24550cat confdefs.h >>conftest.$ac_ext
24551cat >>conftest.$ac_ext <<_ACEOF
24552/* end confdefs.h.  */
24553
24554#include <sys/types.h>
24555#ifdef HAVE_WCHAR_H
24556#include <wchar.h>
24557#endif
24558int
24559main ()
24560{
24561if ((mbstate_t *) 0)
24562  return 0;
24563if (sizeof (mbstate_t))
24564  return 0;
24565  ;
24566  return 0;
24567}
24568_ACEOF
24569rm -f conftest.$ac_objext
24570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24571  (eval $ac_compile) 2>conftest.er1
24572  ac_status=$?
24573  grep -v '^ *+' conftest.er1 >conftest.err
24574  rm -f conftest.er1
24575  cat conftest.err >&5
24576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577  (exit $ac_status); } &&
24578	 { ac_try='test -z "$ac_c_werror_flag"
24579			 || test ! -s conftest.err'
24580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24581  (eval $ac_try) 2>&5
24582  ac_status=$?
24583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584  (exit $ac_status); }; } &&
24585	 { ac_try='test -s conftest.$ac_objext'
24586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587  (eval $ac_try) 2>&5
24588  ac_status=$?
24589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590  (exit $ac_status); }; }; then
24591  mbstate_t_works=yes
24592else
24593  echo "$as_me: failed program was:" >&5
24594sed 's/^/| /' conftest.$ac_ext >&5
24595
24596mbstate_t_works=no
24597fi
24598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24599fi
24600echo "$as_me:$LINENO: result: $mbstate_t_works" >&5
24601echo "${ECHO_T}$mbstate_t_works" >&6
24602if test x${mbstate_t_works} = xno; then
24603
24604cat >>confdefs.h <<_ACEOF
24605#define mbstate_t unsigned long
24606_ACEOF
24607
24608fi
24609
24610echo "$as_me:$LINENO: checking for char" >&5
24611echo $ECHO_N "checking for char... $ECHO_C" >&6
24612if test "${ac_cv_type_char+set}" = set; then
24613  echo $ECHO_N "(cached) $ECHO_C" >&6
24614else
24615  cat >conftest.$ac_ext <<_ACEOF
24616/* confdefs.h.  */
24617_ACEOF
24618cat confdefs.h >>conftest.$ac_ext
24619cat >>conftest.$ac_ext <<_ACEOF
24620/* end confdefs.h.  */
24621$ac_includes_default
24622int
24623main ()
24624{
24625if ((char *) 0)
24626  return 0;
24627if (sizeof (char))
24628  return 0;
24629  ;
24630  return 0;
24631}
24632_ACEOF
24633rm -f conftest.$ac_objext
24634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24635  (eval $ac_compile) 2>conftest.er1
24636  ac_status=$?
24637  grep -v '^ *+' conftest.er1 >conftest.err
24638  rm -f conftest.er1
24639  cat conftest.err >&5
24640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641  (exit $ac_status); } &&
24642	 { ac_try='test -z "$ac_c_werror_flag"
24643			 || test ! -s conftest.err'
24644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24645  (eval $ac_try) 2>&5
24646  ac_status=$?
24647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648  (exit $ac_status); }; } &&
24649	 { ac_try='test -s conftest.$ac_objext'
24650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651  (eval $ac_try) 2>&5
24652  ac_status=$?
24653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654  (exit $ac_status); }; }; then
24655  ac_cv_type_char=yes
24656else
24657  echo "$as_me: failed program was:" >&5
24658sed 's/^/| /' conftest.$ac_ext >&5
24659
24660ac_cv_type_char=no
24661fi
24662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24663fi
24664echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
24665echo "${ECHO_T}$ac_cv_type_char" >&6
24666
24667echo "$as_me:$LINENO: checking size of char" >&5
24668echo $ECHO_N "checking size of char... $ECHO_C" >&6
24669if test "${ac_cv_sizeof_char+set}" = set; then
24670  echo $ECHO_N "(cached) $ECHO_C" >&6
24671else
24672  if test "$ac_cv_type_char" = yes; then
24673  # The cast to unsigned long works around a bug in the HP C Compiler
24674  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24675  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24676  # This bug is HP SR number 8606223364.
24677  if test "$cross_compiling" = yes; then
24678  # Depending upon the size, compute the lo and hi bounds.
24679cat >conftest.$ac_ext <<_ACEOF
24680/* confdefs.h.  */
24681_ACEOF
24682cat confdefs.h >>conftest.$ac_ext
24683cat >>conftest.$ac_ext <<_ACEOF
24684/* end confdefs.h.  */
24685$ac_includes_default
24686int
24687main ()
24688{
24689static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
24690test_array [0] = 0
24691
24692  ;
24693  return 0;
24694}
24695_ACEOF
24696rm -f conftest.$ac_objext
24697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24698  (eval $ac_compile) 2>conftest.er1
24699  ac_status=$?
24700  grep -v '^ *+' conftest.er1 >conftest.err
24701  rm -f conftest.er1
24702  cat conftest.err >&5
24703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704  (exit $ac_status); } &&
24705	 { ac_try='test -z "$ac_c_werror_flag"
24706			 || test ! -s conftest.err'
24707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24708  (eval $ac_try) 2>&5
24709  ac_status=$?
24710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711  (exit $ac_status); }; } &&
24712	 { ac_try='test -s conftest.$ac_objext'
24713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24714  (eval $ac_try) 2>&5
24715  ac_status=$?
24716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717  (exit $ac_status); }; }; then
24718  ac_lo=0 ac_mid=0
24719  while :; do
24720    cat >conftest.$ac_ext <<_ACEOF
24721/* confdefs.h.  */
24722_ACEOF
24723cat confdefs.h >>conftest.$ac_ext
24724cat >>conftest.$ac_ext <<_ACEOF
24725/* end confdefs.h.  */
24726$ac_includes_default
24727int
24728main ()
24729{
24730static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
24731test_array [0] = 0
24732
24733  ;
24734  return 0;
24735}
24736_ACEOF
24737rm -f conftest.$ac_objext
24738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24739  (eval $ac_compile) 2>conftest.er1
24740  ac_status=$?
24741  grep -v '^ *+' conftest.er1 >conftest.err
24742  rm -f conftest.er1
24743  cat conftest.err >&5
24744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745  (exit $ac_status); } &&
24746	 { ac_try='test -z "$ac_c_werror_flag"
24747			 || test ! -s conftest.err'
24748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749  (eval $ac_try) 2>&5
24750  ac_status=$?
24751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752  (exit $ac_status); }; } &&
24753	 { ac_try='test -s conftest.$ac_objext'
24754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755  (eval $ac_try) 2>&5
24756  ac_status=$?
24757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758  (exit $ac_status); }; }; then
24759  ac_hi=$ac_mid; break
24760else
24761  echo "$as_me: failed program was:" >&5
24762sed 's/^/| /' conftest.$ac_ext >&5
24763
24764ac_lo=`expr $ac_mid + 1`
24765		    if test $ac_lo -le $ac_mid; then
24766		      ac_lo= ac_hi=
24767		      break
24768		    fi
24769		    ac_mid=`expr 2 '*' $ac_mid + 1`
24770fi
24771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24772  done
24773else
24774  echo "$as_me: failed program was:" >&5
24775sed 's/^/| /' conftest.$ac_ext >&5
24776
24777cat >conftest.$ac_ext <<_ACEOF
24778/* confdefs.h.  */
24779_ACEOF
24780cat confdefs.h >>conftest.$ac_ext
24781cat >>conftest.$ac_ext <<_ACEOF
24782/* end confdefs.h.  */
24783$ac_includes_default
24784int
24785main ()
24786{
24787static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
24788test_array [0] = 0
24789
24790  ;
24791  return 0;
24792}
24793_ACEOF
24794rm -f conftest.$ac_objext
24795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24796  (eval $ac_compile) 2>conftest.er1
24797  ac_status=$?
24798  grep -v '^ *+' conftest.er1 >conftest.err
24799  rm -f conftest.er1
24800  cat conftest.err >&5
24801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802  (exit $ac_status); } &&
24803	 { ac_try='test -z "$ac_c_werror_flag"
24804			 || test ! -s conftest.err'
24805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806  (eval $ac_try) 2>&5
24807  ac_status=$?
24808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809  (exit $ac_status); }; } &&
24810	 { ac_try='test -s conftest.$ac_objext'
24811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812  (eval $ac_try) 2>&5
24813  ac_status=$?
24814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815  (exit $ac_status); }; }; then
24816  ac_hi=-1 ac_mid=-1
24817  while :; do
24818    cat >conftest.$ac_ext <<_ACEOF
24819/* confdefs.h.  */
24820_ACEOF
24821cat confdefs.h >>conftest.$ac_ext
24822cat >>conftest.$ac_ext <<_ACEOF
24823/* end confdefs.h.  */
24824$ac_includes_default
24825int
24826main ()
24827{
24828static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
24829test_array [0] = 0
24830
24831  ;
24832  return 0;
24833}
24834_ACEOF
24835rm -f conftest.$ac_objext
24836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24837  (eval $ac_compile) 2>conftest.er1
24838  ac_status=$?
24839  grep -v '^ *+' conftest.er1 >conftest.err
24840  rm -f conftest.er1
24841  cat conftest.err >&5
24842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843  (exit $ac_status); } &&
24844	 { ac_try='test -z "$ac_c_werror_flag"
24845			 || test ! -s conftest.err'
24846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847  (eval $ac_try) 2>&5
24848  ac_status=$?
24849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850  (exit $ac_status); }; } &&
24851	 { ac_try='test -s conftest.$ac_objext'
24852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853  (eval $ac_try) 2>&5
24854  ac_status=$?
24855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856  (exit $ac_status); }; }; then
24857  ac_lo=$ac_mid; break
24858else
24859  echo "$as_me: failed program was:" >&5
24860sed 's/^/| /' conftest.$ac_ext >&5
24861
24862ac_hi=`expr '(' $ac_mid ')' - 1`
24863		       if test $ac_mid -le $ac_hi; then
24864			 ac_lo= ac_hi=
24865			 break
24866		       fi
24867		       ac_mid=`expr 2 '*' $ac_mid`
24868fi
24869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24870  done
24871else
24872  echo "$as_me: failed program was:" >&5
24873sed 's/^/| /' conftest.$ac_ext >&5
24874
24875ac_lo= ac_hi=
24876fi
24877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24878fi
24879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24880# Binary search between lo and hi bounds.
24881while test "x$ac_lo" != "x$ac_hi"; do
24882  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24883  cat >conftest.$ac_ext <<_ACEOF
24884/* confdefs.h.  */
24885_ACEOF
24886cat confdefs.h >>conftest.$ac_ext
24887cat >>conftest.$ac_ext <<_ACEOF
24888/* end confdefs.h.  */
24889$ac_includes_default
24890int
24891main ()
24892{
24893static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
24894test_array [0] = 0
24895
24896  ;
24897  return 0;
24898}
24899_ACEOF
24900rm -f conftest.$ac_objext
24901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24902  (eval $ac_compile) 2>conftest.er1
24903  ac_status=$?
24904  grep -v '^ *+' conftest.er1 >conftest.err
24905  rm -f conftest.er1
24906  cat conftest.err >&5
24907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908  (exit $ac_status); } &&
24909	 { ac_try='test -z "$ac_c_werror_flag"
24910			 || test ! -s conftest.err'
24911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24912  (eval $ac_try) 2>&5
24913  ac_status=$?
24914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915  (exit $ac_status); }; } &&
24916	 { ac_try='test -s conftest.$ac_objext'
24917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918  (eval $ac_try) 2>&5
24919  ac_status=$?
24920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921  (exit $ac_status); }; }; then
24922  ac_hi=$ac_mid
24923else
24924  echo "$as_me: failed program was:" >&5
24925sed 's/^/| /' conftest.$ac_ext >&5
24926
24927ac_lo=`expr '(' $ac_mid ')' + 1`
24928fi
24929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24930done
24931case $ac_lo in
24932?*) ac_cv_sizeof_char=$ac_lo;;
24933'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
24934See \`config.log' for more details." >&5
24935echo "$as_me: error: cannot compute sizeof (char), 77
24936See \`config.log' for more details." >&2;}
24937   { (exit 1); exit 1; }; } ;;
24938esac
24939else
24940  if test "$cross_compiling" = yes; then
24941  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24942See \`config.log' for more details." >&5
24943echo "$as_me: error: cannot run test program while cross compiling
24944See \`config.log' for more details." >&2;}
24945   { (exit 1); exit 1; }; }
24946else
24947  cat >conftest.$ac_ext <<_ACEOF
24948/* confdefs.h.  */
24949_ACEOF
24950cat confdefs.h >>conftest.$ac_ext
24951cat >>conftest.$ac_ext <<_ACEOF
24952/* end confdefs.h.  */
24953$ac_includes_default
24954long longval () { return (long) (sizeof (char)); }
24955unsigned long ulongval () { return (long) (sizeof (char)); }
24956#include <stdio.h>
24957#include <stdlib.h>
24958int
24959main ()
24960{
24961
24962  FILE *f = fopen ("conftest.val", "w");
24963  if (! f)
24964    exit (1);
24965  if (((long) (sizeof (char))) < 0)
24966    {
24967      long i = longval ();
24968      if (i != ((long) (sizeof (char))))
24969	exit (1);
24970      fprintf (f, "%ld\n", i);
24971    }
24972  else
24973    {
24974      unsigned long i = ulongval ();
24975      if (i != ((long) (sizeof (char))))
24976	exit (1);
24977      fprintf (f, "%lu\n", i);
24978    }
24979  exit (ferror (f) || fclose (f) != 0);
24980
24981  ;
24982  return 0;
24983}
24984_ACEOF
24985rm -f conftest$ac_exeext
24986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24987  (eval $ac_link) 2>&5
24988  ac_status=$?
24989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24992  (eval $ac_try) 2>&5
24993  ac_status=$?
24994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995  (exit $ac_status); }; }; then
24996  ac_cv_sizeof_char=`cat conftest.val`
24997else
24998  echo "$as_me: program exited with status $ac_status" >&5
24999echo "$as_me: failed program was:" >&5
25000sed 's/^/| /' conftest.$ac_ext >&5
25001
25002( exit $ac_status )
25003{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
25004See \`config.log' for more details." >&5
25005echo "$as_me: error: cannot compute sizeof (char), 77
25006See \`config.log' for more details." >&2;}
25007   { (exit 1); exit 1; }; }
25008fi
25009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25010fi
25011fi
25012rm -f conftest.val
25013else
25014  ac_cv_sizeof_char=0
25015fi
25016fi
25017echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
25018echo "${ECHO_T}$ac_cv_sizeof_char" >&6
25019cat >>confdefs.h <<_ACEOF
25020#define SIZEOF_CHAR $ac_cv_sizeof_char
25021_ACEOF
25022
25023
25024echo "$as_me:$LINENO: checking for short" >&5
25025echo $ECHO_N "checking for short... $ECHO_C" >&6
25026if test "${ac_cv_type_short+set}" = set; then
25027  echo $ECHO_N "(cached) $ECHO_C" >&6
25028else
25029  cat >conftest.$ac_ext <<_ACEOF
25030/* confdefs.h.  */
25031_ACEOF
25032cat confdefs.h >>conftest.$ac_ext
25033cat >>conftest.$ac_ext <<_ACEOF
25034/* end confdefs.h.  */
25035$ac_includes_default
25036int
25037main ()
25038{
25039if ((short *) 0)
25040  return 0;
25041if (sizeof (short))
25042  return 0;
25043  ;
25044  return 0;
25045}
25046_ACEOF
25047rm -f conftest.$ac_objext
25048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25049  (eval $ac_compile) 2>conftest.er1
25050  ac_status=$?
25051  grep -v '^ *+' conftest.er1 >conftest.err
25052  rm -f conftest.er1
25053  cat conftest.err >&5
25054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055  (exit $ac_status); } &&
25056	 { ac_try='test -z "$ac_c_werror_flag"
25057			 || test ! -s conftest.err'
25058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059  (eval $ac_try) 2>&5
25060  ac_status=$?
25061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062  (exit $ac_status); }; } &&
25063	 { ac_try='test -s conftest.$ac_objext'
25064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065  (eval $ac_try) 2>&5
25066  ac_status=$?
25067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068  (exit $ac_status); }; }; then
25069  ac_cv_type_short=yes
25070else
25071  echo "$as_me: failed program was:" >&5
25072sed 's/^/| /' conftest.$ac_ext >&5
25073
25074ac_cv_type_short=no
25075fi
25076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25077fi
25078echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25079echo "${ECHO_T}$ac_cv_type_short" >&6
25080
25081echo "$as_me:$LINENO: checking size of short" >&5
25082echo $ECHO_N "checking size of short... $ECHO_C" >&6
25083if test "${ac_cv_sizeof_short+set}" = set; then
25084  echo $ECHO_N "(cached) $ECHO_C" >&6
25085else
25086  if test "$ac_cv_type_short" = yes; then
25087  # The cast to unsigned long works around a bug in the HP C Compiler
25088  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25089  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25090  # This bug is HP SR number 8606223364.
25091  if test "$cross_compiling" = yes; then
25092  # Depending upon the size, compute the lo and hi bounds.
25093cat >conftest.$ac_ext <<_ACEOF
25094/* confdefs.h.  */
25095_ACEOF
25096cat confdefs.h >>conftest.$ac_ext
25097cat >>conftest.$ac_ext <<_ACEOF
25098/* end confdefs.h.  */
25099$ac_includes_default
25100int
25101main ()
25102{
25103static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25104test_array [0] = 0
25105
25106  ;
25107  return 0;
25108}
25109_ACEOF
25110rm -f conftest.$ac_objext
25111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25112  (eval $ac_compile) 2>conftest.er1
25113  ac_status=$?
25114  grep -v '^ *+' conftest.er1 >conftest.err
25115  rm -f conftest.er1
25116  cat conftest.err >&5
25117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118  (exit $ac_status); } &&
25119	 { ac_try='test -z "$ac_c_werror_flag"
25120			 || test ! -s conftest.err'
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); }; } &&
25126	 { ac_try='test -s conftest.$ac_objext'
25127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25128  (eval $ac_try) 2>&5
25129  ac_status=$?
25130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131  (exit $ac_status); }; }; then
25132  ac_lo=0 ac_mid=0
25133  while :; do
25134    cat >conftest.$ac_ext <<_ACEOF
25135/* confdefs.h.  */
25136_ACEOF
25137cat confdefs.h >>conftest.$ac_ext
25138cat >>conftest.$ac_ext <<_ACEOF
25139/* end confdefs.h.  */
25140$ac_includes_default
25141int
25142main ()
25143{
25144static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25145test_array [0] = 0
25146
25147  ;
25148  return 0;
25149}
25150_ACEOF
25151rm -f conftest.$ac_objext
25152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25153  (eval $ac_compile) 2>conftest.er1
25154  ac_status=$?
25155  grep -v '^ *+' conftest.er1 >conftest.err
25156  rm -f conftest.er1
25157  cat conftest.err >&5
25158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159  (exit $ac_status); } &&
25160	 { ac_try='test -z "$ac_c_werror_flag"
25161			 || test ! -s conftest.err'
25162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163  (eval $ac_try) 2>&5
25164  ac_status=$?
25165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166  (exit $ac_status); }; } &&
25167	 { ac_try='test -s conftest.$ac_objext'
25168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169  (eval $ac_try) 2>&5
25170  ac_status=$?
25171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172  (exit $ac_status); }; }; then
25173  ac_hi=$ac_mid; break
25174else
25175  echo "$as_me: failed program was:" >&5
25176sed 's/^/| /' conftest.$ac_ext >&5
25177
25178ac_lo=`expr $ac_mid + 1`
25179		    if test $ac_lo -le $ac_mid; then
25180		      ac_lo= ac_hi=
25181		      break
25182		    fi
25183		    ac_mid=`expr 2 '*' $ac_mid + 1`
25184fi
25185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25186  done
25187else
25188  echo "$as_me: failed program was:" >&5
25189sed 's/^/| /' conftest.$ac_ext >&5
25190
25191cat >conftest.$ac_ext <<_ACEOF
25192/* confdefs.h.  */
25193_ACEOF
25194cat confdefs.h >>conftest.$ac_ext
25195cat >>conftest.$ac_ext <<_ACEOF
25196/* end confdefs.h.  */
25197$ac_includes_default
25198int
25199main ()
25200{
25201static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
25202test_array [0] = 0
25203
25204  ;
25205  return 0;
25206}
25207_ACEOF
25208rm -f conftest.$ac_objext
25209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25210  (eval $ac_compile) 2>conftest.er1
25211  ac_status=$?
25212  grep -v '^ *+' conftest.er1 >conftest.err
25213  rm -f conftest.er1
25214  cat conftest.err >&5
25215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216  (exit $ac_status); } &&
25217	 { ac_try='test -z "$ac_c_werror_flag"
25218			 || test ! -s conftest.err'
25219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220  (eval $ac_try) 2>&5
25221  ac_status=$?
25222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223  (exit $ac_status); }; } &&
25224	 { ac_try='test -s conftest.$ac_objext'
25225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226  (eval $ac_try) 2>&5
25227  ac_status=$?
25228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229  (exit $ac_status); }; }; then
25230  ac_hi=-1 ac_mid=-1
25231  while :; do
25232    cat >conftest.$ac_ext <<_ACEOF
25233/* confdefs.h.  */
25234_ACEOF
25235cat confdefs.h >>conftest.$ac_ext
25236cat >>conftest.$ac_ext <<_ACEOF
25237/* end confdefs.h.  */
25238$ac_includes_default
25239int
25240main ()
25241{
25242static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25243test_array [0] = 0
25244
25245  ;
25246  return 0;
25247}
25248_ACEOF
25249rm -f conftest.$ac_objext
25250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25251  (eval $ac_compile) 2>conftest.er1
25252  ac_status=$?
25253  grep -v '^ *+' conftest.er1 >conftest.err
25254  rm -f conftest.er1
25255  cat conftest.err >&5
25256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257  (exit $ac_status); } &&
25258	 { ac_try='test -z "$ac_c_werror_flag"
25259			 || test ! -s conftest.err'
25260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261  (eval $ac_try) 2>&5
25262  ac_status=$?
25263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264  (exit $ac_status); }; } &&
25265	 { ac_try='test -s conftest.$ac_objext'
25266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267  (eval $ac_try) 2>&5
25268  ac_status=$?
25269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270  (exit $ac_status); }; }; then
25271  ac_lo=$ac_mid; break
25272else
25273  echo "$as_me: failed program was:" >&5
25274sed 's/^/| /' conftest.$ac_ext >&5
25275
25276ac_hi=`expr '(' $ac_mid ')' - 1`
25277		       if test $ac_mid -le $ac_hi; then
25278			 ac_lo= ac_hi=
25279			 break
25280		       fi
25281		       ac_mid=`expr 2 '*' $ac_mid`
25282fi
25283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25284  done
25285else
25286  echo "$as_me: failed program was:" >&5
25287sed 's/^/| /' conftest.$ac_ext >&5
25288
25289ac_lo= ac_hi=
25290fi
25291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25292fi
25293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25294# Binary search between lo and hi bounds.
25295while test "x$ac_lo" != "x$ac_hi"; do
25296  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25297  cat >conftest.$ac_ext <<_ACEOF
25298/* confdefs.h.  */
25299_ACEOF
25300cat confdefs.h >>conftest.$ac_ext
25301cat >>conftest.$ac_ext <<_ACEOF
25302/* end confdefs.h.  */
25303$ac_includes_default
25304int
25305main ()
25306{
25307static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25308test_array [0] = 0
25309
25310  ;
25311  return 0;
25312}
25313_ACEOF
25314rm -f conftest.$ac_objext
25315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25316  (eval $ac_compile) 2>conftest.er1
25317  ac_status=$?
25318  grep -v '^ *+' conftest.er1 >conftest.err
25319  rm -f conftest.er1
25320  cat conftest.err >&5
25321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322  (exit $ac_status); } &&
25323	 { ac_try='test -z "$ac_c_werror_flag"
25324			 || test ! -s conftest.err'
25325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326  (eval $ac_try) 2>&5
25327  ac_status=$?
25328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329  (exit $ac_status); }; } &&
25330	 { ac_try='test -s conftest.$ac_objext'
25331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332  (eval $ac_try) 2>&5
25333  ac_status=$?
25334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335  (exit $ac_status); }; }; then
25336  ac_hi=$ac_mid
25337else
25338  echo "$as_me: failed program was:" >&5
25339sed 's/^/| /' conftest.$ac_ext >&5
25340
25341ac_lo=`expr '(' $ac_mid ')' + 1`
25342fi
25343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25344done
25345case $ac_lo in
25346?*) ac_cv_sizeof_short=$ac_lo;;
25347'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25348See \`config.log' for more details." >&5
25349echo "$as_me: error: cannot compute sizeof (short), 77
25350See \`config.log' for more details." >&2;}
25351   { (exit 1); exit 1; }; } ;;
25352esac
25353else
25354  if test "$cross_compiling" = yes; then
25355  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25356See \`config.log' for more details." >&5
25357echo "$as_me: error: cannot run test program while cross compiling
25358See \`config.log' for more details." >&2;}
25359   { (exit 1); exit 1; }; }
25360else
25361  cat >conftest.$ac_ext <<_ACEOF
25362/* confdefs.h.  */
25363_ACEOF
25364cat confdefs.h >>conftest.$ac_ext
25365cat >>conftest.$ac_ext <<_ACEOF
25366/* end confdefs.h.  */
25367$ac_includes_default
25368long longval () { return (long) (sizeof (short)); }
25369unsigned long ulongval () { return (long) (sizeof (short)); }
25370#include <stdio.h>
25371#include <stdlib.h>
25372int
25373main ()
25374{
25375
25376  FILE *f = fopen ("conftest.val", "w");
25377  if (! f)
25378    exit (1);
25379  if (((long) (sizeof (short))) < 0)
25380    {
25381      long i = longval ();
25382      if (i != ((long) (sizeof (short))))
25383	exit (1);
25384      fprintf (f, "%ld\n", i);
25385    }
25386  else
25387    {
25388      unsigned long i = ulongval ();
25389      if (i != ((long) (sizeof (short))))
25390	exit (1);
25391      fprintf (f, "%lu\n", i);
25392    }
25393  exit (ferror (f) || fclose (f) != 0);
25394
25395  ;
25396  return 0;
25397}
25398_ACEOF
25399rm -f conftest$ac_exeext
25400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25401  (eval $ac_link) 2>&5
25402  ac_status=$?
25403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406  (eval $ac_try) 2>&5
25407  ac_status=$?
25408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409  (exit $ac_status); }; }; then
25410  ac_cv_sizeof_short=`cat conftest.val`
25411else
25412  echo "$as_me: program exited with status $ac_status" >&5
25413echo "$as_me: failed program was:" >&5
25414sed 's/^/| /' conftest.$ac_ext >&5
25415
25416( exit $ac_status )
25417{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25418See \`config.log' for more details." >&5
25419echo "$as_me: error: cannot compute sizeof (short), 77
25420See \`config.log' for more details." >&2;}
25421   { (exit 1); exit 1; }; }
25422fi
25423rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25424fi
25425fi
25426rm -f conftest.val
25427else
25428  ac_cv_sizeof_short=0
25429fi
25430fi
25431echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25432echo "${ECHO_T}$ac_cv_sizeof_short" >&6
25433cat >>confdefs.h <<_ACEOF
25434#define SIZEOF_SHORT $ac_cv_sizeof_short
25435_ACEOF
25436
25437
25438echo "$as_me:$LINENO: checking for int" >&5
25439echo $ECHO_N "checking for int... $ECHO_C" >&6
25440if test "${ac_cv_type_int+set}" = set; then
25441  echo $ECHO_N "(cached) $ECHO_C" >&6
25442else
25443  cat >conftest.$ac_ext <<_ACEOF
25444/* confdefs.h.  */
25445_ACEOF
25446cat confdefs.h >>conftest.$ac_ext
25447cat >>conftest.$ac_ext <<_ACEOF
25448/* end confdefs.h.  */
25449$ac_includes_default
25450int
25451main ()
25452{
25453if ((int *) 0)
25454  return 0;
25455if (sizeof (int))
25456  return 0;
25457  ;
25458  return 0;
25459}
25460_ACEOF
25461rm -f conftest.$ac_objext
25462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25463  (eval $ac_compile) 2>conftest.er1
25464  ac_status=$?
25465  grep -v '^ *+' conftest.er1 >conftest.err
25466  rm -f conftest.er1
25467  cat conftest.err >&5
25468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469  (exit $ac_status); } &&
25470	 { ac_try='test -z "$ac_c_werror_flag"
25471			 || test ! -s conftest.err'
25472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473  (eval $ac_try) 2>&5
25474  ac_status=$?
25475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476  (exit $ac_status); }; } &&
25477	 { ac_try='test -s conftest.$ac_objext'
25478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479  (eval $ac_try) 2>&5
25480  ac_status=$?
25481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482  (exit $ac_status); }; }; then
25483  ac_cv_type_int=yes
25484else
25485  echo "$as_me: failed program was:" >&5
25486sed 's/^/| /' conftest.$ac_ext >&5
25487
25488ac_cv_type_int=no
25489fi
25490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25491fi
25492echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25493echo "${ECHO_T}$ac_cv_type_int" >&6
25494
25495echo "$as_me:$LINENO: checking size of int" >&5
25496echo $ECHO_N "checking size of int... $ECHO_C" >&6
25497if test "${ac_cv_sizeof_int+set}" = set; then
25498  echo $ECHO_N "(cached) $ECHO_C" >&6
25499else
25500  if test "$ac_cv_type_int" = yes; then
25501  # The cast to unsigned long works around a bug in the HP C Compiler
25502  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25503  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25504  # This bug is HP SR number 8606223364.
25505  if test "$cross_compiling" = yes; then
25506  # Depending upon the size, compute the lo and hi bounds.
25507cat >conftest.$ac_ext <<_ACEOF
25508/* confdefs.h.  */
25509_ACEOF
25510cat confdefs.h >>conftest.$ac_ext
25511cat >>conftest.$ac_ext <<_ACEOF
25512/* end confdefs.h.  */
25513$ac_includes_default
25514int
25515main ()
25516{
25517static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
25518test_array [0] = 0
25519
25520  ;
25521  return 0;
25522}
25523_ACEOF
25524rm -f conftest.$ac_objext
25525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25526  (eval $ac_compile) 2>conftest.er1
25527  ac_status=$?
25528  grep -v '^ *+' conftest.er1 >conftest.err
25529  rm -f conftest.er1
25530  cat conftest.err >&5
25531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532  (exit $ac_status); } &&
25533	 { ac_try='test -z "$ac_c_werror_flag"
25534			 || test ! -s conftest.err'
25535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536  (eval $ac_try) 2>&5
25537  ac_status=$?
25538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539  (exit $ac_status); }; } &&
25540	 { ac_try='test -s conftest.$ac_objext'
25541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542  (eval $ac_try) 2>&5
25543  ac_status=$?
25544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545  (exit $ac_status); }; }; then
25546  ac_lo=0 ac_mid=0
25547  while :; do
25548    cat >conftest.$ac_ext <<_ACEOF
25549/* confdefs.h.  */
25550_ACEOF
25551cat confdefs.h >>conftest.$ac_ext
25552cat >>conftest.$ac_ext <<_ACEOF
25553/* end confdefs.h.  */
25554$ac_includes_default
25555int
25556main ()
25557{
25558static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25559test_array [0] = 0
25560
25561  ;
25562  return 0;
25563}
25564_ACEOF
25565rm -f conftest.$ac_objext
25566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25567  (eval $ac_compile) 2>conftest.er1
25568  ac_status=$?
25569  grep -v '^ *+' conftest.er1 >conftest.err
25570  rm -f conftest.er1
25571  cat conftest.err >&5
25572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573  (exit $ac_status); } &&
25574	 { ac_try='test -z "$ac_c_werror_flag"
25575			 || test ! -s conftest.err'
25576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577  (eval $ac_try) 2>&5
25578  ac_status=$?
25579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580  (exit $ac_status); }; } &&
25581	 { ac_try='test -s conftest.$ac_objext'
25582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583  (eval $ac_try) 2>&5
25584  ac_status=$?
25585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586  (exit $ac_status); }; }; then
25587  ac_hi=$ac_mid; break
25588else
25589  echo "$as_me: failed program was:" >&5
25590sed 's/^/| /' conftest.$ac_ext >&5
25591
25592ac_lo=`expr $ac_mid + 1`
25593		    if test $ac_lo -le $ac_mid; then
25594		      ac_lo= ac_hi=
25595		      break
25596		    fi
25597		    ac_mid=`expr 2 '*' $ac_mid + 1`
25598fi
25599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600  done
25601else
25602  echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605cat >conftest.$ac_ext <<_ACEOF
25606/* confdefs.h.  */
25607_ACEOF
25608cat confdefs.h >>conftest.$ac_ext
25609cat >>conftest.$ac_ext <<_ACEOF
25610/* end confdefs.h.  */
25611$ac_includes_default
25612int
25613main ()
25614{
25615static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
25616test_array [0] = 0
25617
25618  ;
25619  return 0;
25620}
25621_ACEOF
25622rm -f conftest.$ac_objext
25623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25624  (eval $ac_compile) 2>conftest.er1
25625  ac_status=$?
25626  grep -v '^ *+' conftest.er1 >conftest.err
25627  rm -f conftest.er1
25628  cat conftest.err >&5
25629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630  (exit $ac_status); } &&
25631	 { ac_try='test -z "$ac_c_werror_flag"
25632			 || test ! -s conftest.err'
25633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25634  (eval $ac_try) 2>&5
25635  ac_status=$?
25636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637  (exit $ac_status); }; } &&
25638	 { ac_try='test -s conftest.$ac_objext'
25639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640  (eval $ac_try) 2>&5
25641  ac_status=$?
25642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643  (exit $ac_status); }; }; then
25644  ac_hi=-1 ac_mid=-1
25645  while :; do
25646    cat >conftest.$ac_ext <<_ACEOF
25647/* confdefs.h.  */
25648_ACEOF
25649cat confdefs.h >>conftest.$ac_ext
25650cat >>conftest.$ac_ext <<_ACEOF
25651/* end confdefs.h.  */
25652$ac_includes_default
25653int
25654main ()
25655{
25656static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
25657test_array [0] = 0
25658
25659  ;
25660  return 0;
25661}
25662_ACEOF
25663rm -f conftest.$ac_objext
25664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25665  (eval $ac_compile) 2>conftest.er1
25666  ac_status=$?
25667  grep -v '^ *+' conftest.er1 >conftest.err
25668  rm -f conftest.er1
25669  cat conftest.err >&5
25670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671  (exit $ac_status); } &&
25672	 { ac_try='test -z "$ac_c_werror_flag"
25673			 || test ! -s conftest.err'
25674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675  (eval $ac_try) 2>&5
25676  ac_status=$?
25677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678  (exit $ac_status); }; } &&
25679	 { ac_try='test -s conftest.$ac_objext'
25680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681  (eval $ac_try) 2>&5
25682  ac_status=$?
25683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684  (exit $ac_status); }; }; then
25685  ac_lo=$ac_mid; break
25686else
25687  echo "$as_me: failed program was:" >&5
25688sed 's/^/| /' conftest.$ac_ext >&5
25689
25690ac_hi=`expr '(' $ac_mid ')' - 1`
25691		       if test $ac_mid -le $ac_hi; then
25692			 ac_lo= ac_hi=
25693			 break
25694		       fi
25695		       ac_mid=`expr 2 '*' $ac_mid`
25696fi
25697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25698  done
25699else
25700  echo "$as_me: failed program was:" >&5
25701sed 's/^/| /' conftest.$ac_ext >&5
25702
25703ac_lo= ac_hi=
25704fi
25705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25706fi
25707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25708# Binary search between lo and hi bounds.
25709while test "x$ac_lo" != "x$ac_hi"; do
25710  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25711  cat >conftest.$ac_ext <<_ACEOF
25712/* confdefs.h.  */
25713_ACEOF
25714cat confdefs.h >>conftest.$ac_ext
25715cat >>conftest.$ac_ext <<_ACEOF
25716/* end confdefs.h.  */
25717$ac_includes_default
25718int
25719main ()
25720{
25721static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25722test_array [0] = 0
25723
25724  ;
25725  return 0;
25726}
25727_ACEOF
25728rm -f conftest.$ac_objext
25729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25730  (eval $ac_compile) 2>conftest.er1
25731  ac_status=$?
25732  grep -v '^ *+' conftest.er1 >conftest.err
25733  rm -f conftest.er1
25734  cat conftest.err >&5
25735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736  (exit $ac_status); } &&
25737	 { ac_try='test -z "$ac_c_werror_flag"
25738			 || test ! -s conftest.err'
25739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740  (eval $ac_try) 2>&5
25741  ac_status=$?
25742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743  (exit $ac_status); }; } &&
25744	 { ac_try='test -s conftest.$ac_objext'
25745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746  (eval $ac_try) 2>&5
25747  ac_status=$?
25748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749  (exit $ac_status); }; }; then
25750  ac_hi=$ac_mid
25751else
25752  echo "$as_me: failed program was:" >&5
25753sed 's/^/| /' conftest.$ac_ext >&5
25754
25755ac_lo=`expr '(' $ac_mid ')' + 1`
25756fi
25757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25758done
25759case $ac_lo in
25760?*) ac_cv_sizeof_int=$ac_lo;;
25761'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25762See \`config.log' for more details." >&5
25763echo "$as_me: error: cannot compute sizeof (int), 77
25764See \`config.log' for more details." >&2;}
25765   { (exit 1); exit 1; }; } ;;
25766esac
25767else
25768  if test "$cross_compiling" = yes; then
25769  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25770See \`config.log' for more details." >&5
25771echo "$as_me: error: cannot run test program while cross compiling
25772See \`config.log' for more details." >&2;}
25773   { (exit 1); exit 1; }; }
25774else
25775  cat >conftest.$ac_ext <<_ACEOF
25776/* confdefs.h.  */
25777_ACEOF
25778cat confdefs.h >>conftest.$ac_ext
25779cat >>conftest.$ac_ext <<_ACEOF
25780/* end confdefs.h.  */
25781$ac_includes_default
25782long longval () { return (long) (sizeof (int)); }
25783unsigned long ulongval () { return (long) (sizeof (int)); }
25784#include <stdio.h>
25785#include <stdlib.h>
25786int
25787main ()
25788{
25789
25790  FILE *f = fopen ("conftest.val", "w");
25791  if (! f)
25792    exit (1);
25793  if (((long) (sizeof (int))) < 0)
25794    {
25795      long i = longval ();
25796      if (i != ((long) (sizeof (int))))
25797	exit (1);
25798      fprintf (f, "%ld\n", i);
25799    }
25800  else
25801    {
25802      unsigned long i = ulongval ();
25803      if (i != ((long) (sizeof (int))))
25804	exit (1);
25805      fprintf (f, "%lu\n", i);
25806    }
25807  exit (ferror (f) || fclose (f) != 0);
25808
25809  ;
25810  return 0;
25811}
25812_ACEOF
25813rm -f conftest$ac_exeext
25814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25815  (eval $ac_link) 2>&5
25816  ac_status=$?
25817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
25825else
25826  echo "$as_me: program exited with status $ac_status" >&5
25827echo "$as_me: failed program was:" >&5
25828sed 's/^/| /' conftest.$ac_ext >&5
25829
25830( exit $ac_status )
25831{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25832See \`config.log' for more details." >&5
25833echo "$as_me: error: cannot compute sizeof (int), 77
25834See \`config.log' for more details." >&2;}
25835   { (exit 1); exit 1; }; }
25836fi
25837rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25838fi
25839fi
25840rm -f conftest.val
25841else
25842  ac_cv_sizeof_int=0
25843fi
25844fi
25845echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25846echo "${ECHO_T}$ac_cv_sizeof_int" >&6
25847cat >>confdefs.h <<_ACEOF
25848#define SIZEOF_INT $ac_cv_sizeof_int
25849_ACEOF
25850
25851
25852echo "$as_me:$LINENO: checking for long" >&5
25853echo $ECHO_N "checking for long... $ECHO_C" >&6
25854if test "${ac_cv_type_long+set}" = set; then
25855  echo $ECHO_N "(cached) $ECHO_C" >&6
25856else
25857  cat >conftest.$ac_ext <<_ACEOF
25858/* confdefs.h.  */
25859_ACEOF
25860cat confdefs.h >>conftest.$ac_ext
25861cat >>conftest.$ac_ext <<_ACEOF
25862/* end confdefs.h.  */
25863$ac_includes_default
25864int
25865main ()
25866{
25867if ((long *) 0)
25868  return 0;
25869if (sizeof (long))
25870  return 0;
25871  ;
25872  return 0;
25873}
25874_ACEOF
25875rm -f conftest.$ac_objext
25876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25877  (eval $ac_compile) 2>conftest.er1
25878  ac_status=$?
25879  grep -v '^ *+' conftest.er1 >conftest.err
25880  rm -f conftest.er1
25881  cat conftest.err >&5
25882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883  (exit $ac_status); } &&
25884	 { ac_try='test -z "$ac_c_werror_flag"
25885			 || test ! -s conftest.err'
25886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887  (eval $ac_try) 2>&5
25888  ac_status=$?
25889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890  (exit $ac_status); }; } &&
25891	 { ac_try='test -s conftest.$ac_objext'
25892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25893  (eval $ac_try) 2>&5
25894  ac_status=$?
25895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896  (exit $ac_status); }; }; then
25897  ac_cv_type_long=yes
25898else
25899  echo "$as_me: failed program was:" >&5
25900sed 's/^/| /' conftest.$ac_ext >&5
25901
25902ac_cv_type_long=no
25903fi
25904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25905fi
25906echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
25907echo "${ECHO_T}$ac_cv_type_long" >&6
25908
25909echo "$as_me:$LINENO: checking size of long" >&5
25910echo $ECHO_N "checking size of long... $ECHO_C" >&6
25911if test "${ac_cv_sizeof_long+set}" = set; then
25912  echo $ECHO_N "(cached) $ECHO_C" >&6
25913else
25914  if test "$ac_cv_type_long" = yes; then
25915  # The cast to unsigned long works around a bug in the HP C Compiler
25916  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25917  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25918  # This bug is HP SR number 8606223364.
25919  if test "$cross_compiling" = yes; then
25920  # Depending upon the size, compute the lo and hi bounds.
25921cat >conftest.$ac_ext <<_ACEOF
25922/* confdefs.h.  */
25923_ACEOF
25924cat confdefs.h >>conftest.$ac_ext
25925cat >>conftest.$ac_ext <<_ACEOF
25926/* end confdefs.h.  */
25927$ac_includes_default
25928int
25929main ()
25930{
25931static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
25932test_array [0] = 0
25933
25934  ;
25935  return 0;
25936}
25937_ACEOF
25938rm -f conftest.$ac_objext
25939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25940  (eval $ac_compile) 2>conftest.er1
25941  ac_status=$?
25942  grep -v '^ *+' conftest.er1 >conftest.err
25943  rm -f conftest.er1
25944  cat conftest.err >&5
25945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946  (exit $ac_status); } &&
25947	 { ac_try='test -z "$ac_c_werror_flag"
25948			 || test ! -s conftest.err'
25949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950  (eval $ac_try) 2>&5
25951  ac_status=$?
25952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953  (exit $ac_status); }; } &&
25954	 { ac_try='test -s conftest.$ac_objext'
25955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25956  (eval $ac_try) 2>&5
25957  ac_status=$?
25958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959  (exit $ac_status); }; }; then
25960  ac_lo=0 ac_mid=0
25961  while :; do
25962    cat >conftest.$ac_ext <<_ACEOF
25963/* confdefs.h.  */
25964_ACEOF
25965cat confdefs.h >>conftest.$ac_ext
25966cat >>conftest.$ac_ext <<_ACEOF
25967/* end confdefs.h.  */
25968$ac_includes_default
25969int
25970main ()
25971{
25972static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
25973test_array [0] = 0
25974
25975  ;
25976  return 0;
25977}
25978_ACEOF
25979rm -f conftest.$ac_objext
25980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981  (eval $ac_compile) 2>conftest.er1
25982  ac_status=$?
25983  grep -v '^ *+' conftest.er1 >conftest.err
25984  rm -f conftest.er1
25985  cat conftest.err >&5
25986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987  (exit $ac_status); } &&
25988	 { ac_try='test -z "$ac_c_werror_flag"
25989			 || test ! -s conftest.err'
25990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991  (eval $ac_try) 2>&5
25992  ac_status=$?
25993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994  (exit $ac_status); }; } &&
25995	 { ac_try='test -s conftest.$ac_objext'
25996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997  (eval $ac_try) 2>&5
25998  ac_status=$?
25999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000  (exit $ac_status); }; }; then
26001  ac_hi=$ac_mid; break
26002else
26003  echo "$as_me: failed program was:" >&5
26004sed 's/^/| /' conftest.$ac_ext >&5
26005
26006ac_lo=`expr $ac_mid + 1`
26007		    if test $ac_lo -le $ac_mid; then
26008		      ac_lo= ac_hi=
26009		      break
26010		    fi
26011		    ac_mid=`expr 2 '*' $ac_mid + 1`
26012fi
26013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26014  done
26015else
26016  echo "$as_me: failed program was:" >&5
26017sed 's/^/| /' conftest.$ac_ext >&5
26018
26019cat >conftest.$ac_ext <<_ACEOF
26020/* confdefs.h.  */
26021_ACEOF
26022cat confdefs.h >>conftest.$ac_ext
26023cat >>conftest.$ac_ext <<_ACEOF
26024/* end confdefs.h.  */
26025$ac_includes_default
26026int
26027main ()
26028{
26029static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26030test_array [0] = 0
26031
26032  ;
26033  return 0;
26034}
26035_ACEOF
26036rm -f conftest.$ac_objext
26037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26038  (eval $ac_compile) 2>conftest.er1
26039  ac_status=$?
26040  grep -v '^ *+' conftest.er1 >conftest.err
26041  rm -f conftest.er1
26042  cat conftest.err >&5
26043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044  (exit $ac_status); } &&
26045	 { ac_try='test -z "$ac_c_werror_flag"
26046			 || test ! -s conftest.err'
26047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048  (eval $ac_try) 2>&5
26049  ac_status=$?
26050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051  (exit $ac_status); }; } &&
26052	 { ac_try='test -s conftest.$ac_objext'
26053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26054  (eval $ac_try) 2>&5
26055  ac_status=$?
26056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057  (exit $ac_status); }; }; then
26058  ac_hi=-1 ac_mid=-1
26059  while :; do
26060    cat >conftest.$ac_ext <<_ACEOF
26061/* confdefs.h.  */
26062_ACEOF
26063cat confdefs.h >>conftest.$ac_ext
26064cat >>conftest.$ac_ext <<_ACEOF
26065/* end confdefs.h.  */
26066$ac_includes_default
26067int
26068main ()
26069{
26070static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26071test_array [0] = 0
26072
26073  ;
26074  return 0;
26075}
26076_ACEOF
26077rm -f conftest.$ac_objext
26078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079  (eval $ac_compile) 2>conftest.er1
26080  ac_status=$?
26081  grep -v '^ *+' conftest.er1 >conftest.err
26082  rm -f conftest.er1
26083  cat conftest.err >&5
26084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085  (exit $ac_status); } &&
26086	 { ac_try='test -z "$ac_c_werror_flag"
26087			 || test ! -s conftest.err'
26088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089  (eval $ac_try) 2>&5
26090  ac_status=$?
26091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092  (exit $ac_status); }; } &&
26093	 { ac_try='test -s conftest.$ac_objext'
26094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095  (eval $ac_try) 2>&5
26096  ac_status=$?
26097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098  (exit $ac_status); }; }; then
26099  ac_lo=$ac_mid; break
26100else
26101  echo "$as_me: failed program was:" >&5
26102sed 's/^/| /' conftest.$ac_ext >&5
26103
26104ac_hi=`expr '(' $ac_mid ')' - 1`
26105		       if test $ac_mid -le $ac_hi; then
26106			 ac_lo= ac_hi=
26107			 break
26108		       fi
26109		       ac_mid=`expr 2 '*' $ac_mid`
26110fi
26111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26112  done
26113else
26114  echo "$as_me: failed program was:" >&5
26115sed 's/^/| /' conftest.$ac_ext >&5
26116
26117ac_lo= ac_hi=
26118fi
26119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26120fi
26121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26122# Binary search between lo and hi bounds.
26123while test "x$ac_lo" != "x$ac_hi"; do
26124  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26125  cat >conftest.$ac_ext <<_ACEOF
26126/* confdefs.h.  */
26127_ACEOF
26128cat confdefs.h >>conftest.$ac_ext
26129cat >>conftest.$ac_ext <<_ACEOF
26130/* end confdefs.h.  */
26131$ac_includes_default
26132int
26133main ()
26134{
26135static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26136test_array [0] = 0
26137
26138  ;
26139  return 0;
26140}
26141_ACEOF
26142rm -f conftest.$ac_objext
26143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26144  (eval $ac_compile) 2>conftest.er1
26145  ac_status=$?
26146  grep -v '^ *+' conftest.er1 >conftest.err
26147  rm -f conftest.er1
26148  cat conftest.err >&5
26149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150  (exit $ac_status); } &&
26151	 { ac_try='test -z "$ac_c_werror_flag"
26152			 || test ! -s conftest.err'
26153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154  (eval $ac_try) 2>&5
26155  ac_status=$?
26156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157  (exit $ac_status); }; } &&
26158	 { ac_try='test -s conftest.$ac_objext'
26159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160  (eval $ac_try) 2>&5
26161  ac_status=$?
26162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163  (exit $ac_status); }; }; then
26164  ac_hi=$ac_mid
26165else
26166  echo "$as_me: failed program was:" >&5
26167sed 's/^/| /' conftest.$ac_ext >&5
26168
26169ac_lo=`expr '(' $ac_mid ')' + 1`
26170fi
26171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26172done
26173case $ac_lo in
26174?*) ac_cv_sizeof_long=$ac_lo;;
26175'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26176See \`config.log' for more details." >&5
26177echo "$as_me: error: cannot compute sizeof (long), 77
26178See \`config.log' for more details." >&2;}
26179   { (exit 1); exit 1; }; } ;;
26180esac
26181else
26182  if test "$cross_compiling" = yes; then
26183  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26184See \`config.log' for more details." >&5
26185echo "$as_me: error: cannot run test program while cross compiling
26186See \`config.log' for more details." >&2;}
26187   { (exit 1); exit 1; }; }
26188else
26189  cat >conftest.$ac_ext <<_ACEOF
26190/* confdefs.h.  */
26191_ACEOF
26192cat confdefs.h >>conftest.$ac_ext
26193cat >>conftest.$ac_ext <<_ACEOF
26194/* end confdefs.h.  */
26195$ac_includes_default
26196long longval () { return (long) (sizeof (long)); }
26197unsigned long ulongval () { return (long) (sizeof (long)); }
26198#include <stdio.h>
26199#include <stdlib.h>
26200int
26201main ()
26202{
26203
26204  FILE *f = fopen ("conftest.val", "w");
26205  if (! f)
26206    exit (1);
26207  if (((long) (sizeof (long))) < 0)
26208    {
26209      long i = longval ();
26210      if (i != ((long) (sizeof (long))))
26211	exit (1);
26212      fprintf (f, "%ld\n", i);
26213    }
26214  else
26215    {
26216      unsigned long i = ulongval ();
26217      if (i != ((long) (sizeof (long))))
26218	exit (1);
26219      fprintf (f, "%lu\n", i);
26220    }
26221  exit (ferror (f) || fclose (f) != 0);
26222
26223  ;
26224  return 0;
26225}
26226_ACEOF
26227rm -f conftest$ac_exeext
26228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26229  (eval $ac_link) 2>&5
26230  ac_status=$?
26231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26234  (eval $ac_try) 2>&5
26235  ac_status=$?
26236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237  (exit $ac_status); }; }; then
26238  ac_cv_sizeof_long=`cat conftest.val`
26239else
26240  echo "$as_me: program exited with status $ac_status" >&5
26241echo "$as_me: failed program was:" >&5
26242sed 's/^/| /' conftest.$ac_ext >&5
26243
26244( exit $ac_status )
26245{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26246See \`config.log' for more details." >&5
26247echo "$as_me: error: cannot compute sizeof (long), 77
26248See \`config.log' for more details." >&2;}
26249   { (exit 1); exit 1; }; }
26250fi
26251rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26252fi
26253fi
26254rm -f conftest.val
26255else
26256  ac_cv_sizeof_long=0
26257fi
26258fi
26259echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26260echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26261cat >>confdefs.h <<_ACEOF
26262#define SIZEOF_LONG $ac_cv_sizeof_long
26263_ACEOF
26264
26265
26266echo "$as_me:$LINENO: checking for long long" >&5
26267echo $ECHO_N "checking for long long... $ECHO_C" >&6
26268if test "${ac_cv_type_long_long+set}" = set; then
26269  echo $ECHO_N "(cached) $ECHO_C" >&6
26270else
26271  cat >conftest.$ac_ext <<_ACEOF
26272/* confdefs.h.  */
26273_ACEOF
26274cat confdefs.h >>conftest.$ac_ext
26275cat >>conftest.$ac_ext <<_ACEOF
26276/* end confdefs.h.  */
26277$ac_includes_default
26278int
26279main ()
26280{
26281if ((long long *) 0)
26282  return 0;
26283if (sizeof (long long))
26284  return 0;
26285  ;
26286  return 0;
26287}
26288_ACEOF
26289rm -f conftest.$ac_objext
26290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26291  (eval $ac_compile) 2>conftest.er1
26292  ac_status=$?
26293  grep -v '^ *+' conftest.er1 >conftest.err
26294  rm -f conftest.er1
26295  cat conftest.err >&5
26296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297  (exit $ac_status); } &&
26298	 { ac_try='test -z "$ac_c_werror_flag"
26299			 || test ! -s conftest.err'
26300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301  (eval $ac_try) 2>&5
26302  ac_status=$?
26303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304  (exit $ac_status); }; } &&
26305	 { ac_try='test -s conftest.$ac_objext'
26306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307  (eval $ac_try) 2>&5
26308  ac_status=$?
26309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310  (exit $ac_status); }; }; then
26311  ac_cv_type_long_long=yes
26312else
26313  echo "$as_me: failed program was:" >&5
26314sed 's/^/| /' conftest.$ac_ext >&5
26315
26316ac_cv_type_long_long=no
26317fi
26318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26319fi
26320echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26321echo "${ECHO_T}$ac_cv_type_long_long" >&6
26322
26323echo "$as_me:$LINENO: checking size of long long" >&5
26324echo $ECHO_N "checking size of long long... $ECHO_C" >&6
26325if test "${ac_cv_sizeof_long_long+set}" = set; then
26326  echo $ECHO_N "(cached) $ECHO_C" >&6
26327else
26328  if test "$ac_cv_type_long_long" = yes; then
26329  # The cast to unsigned long works around a bug in the HP C Compiler
26330  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26331  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26332  # This bug is HP SR number 8606223364.
26333  if test "$cross_compiling" = yes; then
26334  # Depending upon the size, compute the lo and hi bounds.
26335cat >conftest.$ac_ext <<_ACEOF
26336/* confdefs.h.  */
26337_ACEOF
26338cat confdefs.h >>conftest.$ac_ext
26339cat >>conftest.$ac_ext <<_ACEOF
26340/* end confdefs.h.  */
26341$ac_includes_default
26342int
26343main ()
26344{
26345static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
26346test_array [0] = 0
26347
26348  ;
26349  return 0;
26350}
26351_ACEOF
26352rm -f conftest.$ac_objext
26353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26354  (eval $ac_compile) 2>conftest.er1
26355  ac_status=$?
26356  grep -v '^ *+' conftest.er1 >conftest.err
26357  rm -f conftest.er1
26358  cat conftest.err >&5
26359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360  (exit $ac_status); } &&
26361	 { ac_try='test -z "$ac_c_werror_flag"
26362			 || test ! -s conftest.err'
26363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26364  (eval $ac_try) 2>&5
26365  ac_status=$?
26366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367  (exit $ac_status); }; } &&
26368	 { ac_try='test -s conftest.$ac_objext'
26369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26370  (eval $ac_try) 2>&5
26371  ac_status=$?
26372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373  (exit $ac_status); }; }; then
26374  ac_lo=0 ac_mid=0
26375  while :; do
26376    cat >conftest.$ac_ext <<_ACEOF
26377/* confdefs.h.  */
26378_ACEOF
26379cat confdefs.h >>conftest.$ac_ext
26380cat >>conftest.$ac_ext <<_ACEOF
26381/* end confdefs.h.  */
26382$ac_includes_default
26383int
26384main ()
26385{
26386static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26387test_array [0] = 0
26388
26389  ;
26390  return 0;
26391}
26392_ACEOF
26393rm -f conftest.$ac_objext
26394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26395  (eval $ac_compile) 2>conftest.er1
26396  ac_status=$?
26397  grep -v '^ *+' conftest.er1 >conftest.err
26398  rm -f conftest.er1
26399  cat conftest.err >&5
26400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401  (exit $ac_status); } &&
26402	 { ac_try='test -z "$ac_c_werror_flag"
26403			 || test ! -s conftest.err'
26404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26405  (eval $ac_try) 2>&5
26406  ac_status=$?
26407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408  (exit $ac_status); }; } &&
26409	 { ac_try='test -s conftest.$ac_objext'
26410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26411  (eval $ac_try) 2>&5
26412  ac_status=$?
26413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414  (exit $ac_status); }; }; then
26415  ac_hi=$ac_mid; break
26416else
26417  echo "$as_me: failed program was:" >&5
26418sed 's/^/| /' conftest.$ac_ext >&5
26419
26420ac_lo=`expr $ac_mid + 1`
26421		    if test $ac_lo -le $ac_mid; then
26422		      ac_lo= ac_hi=
26423		      break
26424		    fi
26425		    ac_mid=`expr 2 '*' $ac_mid + 1`
26426fi
26427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26428  done
26429else
26430  echo "$as_me: failed program was:" >&5
26431sed 's/^/| /' conftest.$ac_ext >&5
26432
26433cat >conftest.$ac_ext <<_ACEOF
26434/* confdefs.h.  */
26435_ACEOF
26436cat confdefs.h >>conftest.$ac_ext
26437cat >>conftest.$ac_ext <<_ACEOF
26438/* end confdefs.h.  */
26439$ac_includes_default
26440int
26441main ()
26442{
26443static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
26444test_array [0] = 0
26445
26446  ;
26447  return 0;
26448}
26449_ACEOF
26450rm -f conftest.$ac_objext
26451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26452  (eval $ac_compile) 2>conftest.er1
26453  ac_status=$?
26454  grep -v '^ *+' conftest.er1 >conftest.err
26455  rm -f conftest.er1
26456  cat conftest.err >&5
26457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458  (exit $ac_status); } &&
26459	 { ac_try='test -z "$ac_c_werror_flag"
26460			 || test ! -s conftest.err'
26461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462  (eval $ac_try) 2>&5
26463  ac_status=$?
26464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465  (exit $ac_status); }; } &&
26466	 { ac_try='test -s conftest.$ac_objext'
26467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468  (eval $ac_try) 2>&5
26469  ac_status=$?
26470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471  (exit $ac_status); }; }; then
26472  ac_hi=-1 ac_mid=-1
26473  while :; do
26474    cat >conftest.$ac_ext <<_ACEOF
26475/* confdefs.h.  */
26476_ACEOF
26477cat confdefs.h >>conftest.$ac_ext
26478cat >>conftest.$ac_ext <<_ACEOF
26479/* end confdefs.h.  */
26480$ac_includes_default
26481int
26482main ()
26483{
26484static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
26485test_array [0] = 0
26486
26487  ;
26488  return 0;
26489}
26490_ACEOF
26491rm -f conftest.$ac_objext
26492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26493  (eval $ac_compile) 2>conftest.er1
26494  ac_status=$?
26495  grep -v '^ *+' conftest.er1 >conftest.err
26496  rm -f conftest.er1
26497  cat conftest.err >&5
26498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499  (exit $ac_status); } &&
26500	 { ac_try='test -z "$ac_c_werror_flag"
26501			 || test ! -s conftest.err'
26502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26503  (eval $ac_try) 2>&5
26504  ac_status=$?
26505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506  (exit $ac_status); }; } &&
26507	 { ac_try='test -s conftest.$ac_objext'
26508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509  (eval $ac_try) 2>&5
26510  ac_status=$?
26511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512  (exit $ac_status); }; }; then
26513  ac_lo=$ac_mid; break
26514else
26515  echo "$as_me: failed program was:" >&5
26516sed 's/^/| /' conftest.$ac_ext >&5
26517
26518ac_hi=`expr '(' $ac_mid ')' - 1`
26519		       if test $ac_mid -le $ac_hi; then
26520			 ac_lo= ac_hi=
26521			 break
26522		       fi
26523		       ac_mid=`expr 2 '*' $ac_mid`
26524fi
26525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26526  done
26527else
26528  echo "$as_me: failed program was:" >&5
26529sed 's/^/| /' conftest.$ac_ext >&5
26530
26531ac_lo= ac_hi=
26532fi
26533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26534fi
26535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26536# Binary search between lo and hi bounds.
26537while test "x$ac_lo" != "x$ac_hi"; do
26538  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26539  cat >conftest.$ac_ext <<_ACEOF
26540/* confdefs.h.  */
26541_ACEOF
26542cat confdefs.h >>conftest.$ac_ext
26543cat >>conftest.$ac_ext <<_ACEOF
26544/* end confdefs.h.  */
26545$ac_includes_default
26546int
26547main ()
26548{
26549static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26550test_array [0] = 0
26551
26552  ;
26553  return 0;
26554}
26555_ACEOF
26556rm -f conftest.$ac_objext
26557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26558  (eval $ac_compile) 2>conftest.er1
26559  ac_status=$?
26560  grep -v '^ *+' conftest.er1 >conftest.err
26561  rm -f conftest.er1
26562  cat conftest.err >&5
26563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564  (exit $ac_status); } &&
26565	 { ac_try='test -z "$ac_c_werror_flag"
26566			 || test ! -s conftest.err'
26567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568  (eval $ac_try) 2>&5
26569  ac_status=$?
26570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571  (exit $ac_status); }; } &&
26572	 { ac_try='test -s conftest.$ac_objext'
26573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574  (eval $ac_try) 2>&5
26575  ac_status=$?
26576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577  (exit $ac_status); }; }; then
26578  ac_hi=$ac_mid
26579else
26580  echo "$as_me: failed program was:" >&5
26581sed 's/^/| /' conftest.$ac_ext >&5
26582
26583ac_lo=`expr '(' $ac_mid ')' + 1`
26584fi
26585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26586done
26587case $ac_lo in
26588?*) ac_cv_sizeof_long_long=$ac_lo;;
26589'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26590See \`config.log' for more details." >&5
26591echo "$as_me: error: cannot compute sizeof (long long), 77
26592See \`config.log' for more details." >&2;}
26593   { (exit 1); exit 1; }; } ;;
26594esac
26595else
26596  if test "$cross_compiling" = yes; then
26597  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26598See \`config.log' for more details." >&5
26599echo "$as_me: error: cannot run test program while cross compiling
26600See \`config.log' for more details." >&2;}
26601   { (exit 1); exit 1; }; }
26602else
26603  cat >conftest.$ac_ext <<_ACEOF
26604/* confdefs.h.  */
26605_ACEOF
26606cat confdefs.h >>conftest.$ac_ext
26607cat >>conftest.$ac_ext <<_ACEOF
26608/* end confdefs.h.  */
26609$ac_includes_default
26610long longval () { return (long) (sizeof (long long)); }
26611unsigned long ulongval () { return (long) (sizeof (long long)); }
26612#include <stdio.h>
26613#include <stdlib.h>
26614int
26615main ()
26616{
26617
26618  FILE *f = fopen ("conftest.val", "w");
26619  if (! f)
26620    exit (1);
26621  if (((long) (sizeof (long long))) < 0)
26622    {
26623      long i = longval ();
26624      if (i != ((long) (sizeof (long long))))
26625	exit (1);
26626      fprintf (f, "%ld\n", i);
26627    }
26628  else
26629    {
26630      unsigned long i = ulongval ();
26631      if (i != ((long) (sizeof (long long))))
26632	exit (1);
26633      fprintf (f, "%lu\n", i);
26634    }
26635  exit (ferror (f) || fclose (f) != 0);
26636
26637  ;
26638  return 0;
26639}
26640_ACEOF
26641rm -f conftest$ac_exeext
26642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26643  (eval $ac_link) 2>&5
26644  ac_status=$?
26645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648  (eval $ac_try) 2>&5
26649  ac_status=$?
26650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651  (exit $ac_status); }; }; then
26652  ac_cv_sizeof_long_long=`cat conftest.val`
26653else
26654  echo "$as_me: program exited with status $ac_status" >&5
26655echo "$as_me: failed program was:" >&5
26656sed 's/^/| /' conftest.$ac_ext >&5
26657
26658( exit $ac_status )
26659{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26660See \`config.log' for more details." >&5
26661echo "$as_me: error: cannot compute sizeof (long long), 77
26662See \`config.log' for more details." >&2;}
26663   { (exit 1); exit 1; }; }
26664fi
26665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26666fi
26667fi
26668rm -f conftest.val
26669else
26670  ac_cv_sizeof_long_long=0
26671fi
26672fi
26673echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
26674echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
26675cat >>confdefs.h <<_ACEOF
26676#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26677_ACEOF
26678
26679
26680echo "$as_me:$LINENO: checking for int *" >&5
26681echo $ECHO_N "checking for int *... $ECHO_C" >&6
26682if test "${ac_cv_type_int_p+set}" = set; then
26683  echo $ECHO_N "(cached) $ECHO_C" >&6
26684else
26685  cat >conftest.$ac_ext <<_ACEOF
26686/* confdefs.h.  */
26687_ACEOF
26688cat confdefs.h >>conftest.$ac_ext
26689cat >>conftest.$ac_ext <<_ACEOF
26690/* end confdefs.h.  */
26691$ac_includes_default
26692int
26693main ()
26694{
26695if ((int * *) 0)
26696  return 0;
26697if (sizeof (int *))
26698  return 0;
26699  ;
26700  return 0;
26701}
26702_ACEOF
26703rm -f conftest.$ac_objext
26704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26705  (eval $ac_compile) 2>conftest.er1
26706  ac_status=$?
26707  grep -v '^ *+' conftest.er1 >conftest.err
26708  rm -f conftest.er1
26709  cat conftest.err >&5
26710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711  (exit $ac_status); } &&
26712	 { ac_try='test -z "$ac_c_werror_flag"
26713			 || test ! -s conftest.err'
26714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26715  (eval $ac_try) 2>&5
26716  ac_status=$?
26717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718  (exit $ac_status); }; } &&
26719	 { ac_try='test -s conftest.$ac_objext'
26720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26721  (eval $ac_try) 2>&5
26722  ac_status=$?
26723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724  (exit $ac_status); }; }; then
26725  ac_cv_type_int_p=yes
26726else
26727  echo "$as_me: failed program was:" >&5
26728sed 's/^/| /' conftest.$ac_ext >&5
26729
26730ac_cv_type_int_p=no
26731fi
26732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26733fi
26734echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
26735echo "${ECHO_T}$ac_cv_type_int_p" >&6
26736
26737echo "$as_me:$LINENO: checking size of int *" >&5
26738echo $ECHO_N "checking size of int *... $ECHO_C" >&6
26739if test "${ac_cv_sizeof_int_p+set}" = set; then
26740  echo $ECHO_N "(cached) $ECHO_C" >&6
26741else
26742  if test "$ac_cv_type_int_p" = yes; then
26743  # The cast to unsigned long works around a bug in the HP C Compiler
26744  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26745  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26746  # This bug is HP SR number 8606223364.
26747  if test "$cross_compiling" = yes; then
26748  # Depending upon the size, compute the lo and hi bounds.
26749cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h.  */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h.  */
26755$ac_includes_default
26756int
26757main ()
26758{
26759static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
26760test_array [0] = 0
26761
26762  ;
26763  return 0;
26764}
26765_ACEOF
26766rm -f conftest.$ac_objext
26767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768  (eval $ac_compile) 2>conftest.er1
26769  ac_status=$?
26770  grep -v '^ *+' conftest.er1 >conftest.err
26771  rm -f conftest.er1
26772  cat conftest.err >&5
26773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774  (exit $ac_status); } &&
26775	 { ac_try='test -z "$ac_c_werror_flag"
26776			 || test ! -s conftest.err'
26777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778  (eval $ac_try) 2>&5
26779  ac_status=$?
26780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781  (exit $ac_status); }; } &&
26782	 { ac_try='test -s conftest.$ac_objext'
26783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784  (eval $ac_try) 2>&5
26785  ac_status=$?
26786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787  (exit $ac_status); }; }; then
26788  ac_lo=0 ac_mid=0
26789  while :; do
26790    cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h.  */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h.  */
26796$ac_includes_default
26797int
26798main ()
26799{
26800static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
26801test_array [0] = 0
26802
26803  ;
26804  return 0;
26805}
26806_ACEOF
26807rm -f conftest.$ac_objext
26808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26809  (eval $ac_compile) 2>conftest.er1
26810  ac_status=$?
26811  grep -v '^ *+' conftest.er1 >conftest.err
26812  rm -f conftest.er1
26813  cat conftest.err >&5
26814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815  (exit $ac_status); } &&
26816	 { ac_try='test -z "$ac_c_werror_flag"
26817			 || test ! -s conftest.err'
26818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819  (eval $ac_try) 2>&5
26820  ac_status=$?
26821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822  (exit $ac_status); }; } &&
26823	 { ac_try='test -s conftest.$ac_objext'
26824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825  (eval $ac_try) 2>&5
26826  ac_status=$?
26827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828  (exit $ac_status); }; }; then
26829  ac_hi=$ac_mid; break
26830else
26831  echo "$as_me: failed program was:" >&5
26832sed 's/^/| /' conftest.$ac_ext >&5
26833
26834ac_lo=`expr $ac_mid + 1`
26835		    if test $ac_lo -le $ac_mid; then
26836		      ac_lo= ac_hi=
26837		      break
26838		    fi
26839		    ac_mid=`expr 2 '*' $ac_mid + 1`
26840fi
26841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26842  done
26843else
26844  echo "$as_me: failed program was:" >&5
26845sed 's/^/| /' conftest.$ac_ext >&5
26846
26847cat >conftest.$ac_ext <<_ACEOF
26848/* confdefs.h.  */
26849_ACEOF
26850cat confdefs.h >>conftest.$ac_ext
26851cat >>conftest.$ac_ext <<_ACEOF
26852/* end confdefs.h.  */
26853$ac_includes_default
26854int
26855main ()
26856{
26857static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
26858test_array [0] = 0
26859
26860  ;
26861  return 0;
26862}
26863_ACEOF
26864rm -f conftest.$ac_objext
26865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26866  (eval $ac_compile) 2>conftest.er1
26867  ac_status=$?
26868  grep -v '^ *+' conftest.er1 >conftest.err
26869  rm -f conftest.er1
26870  cat conftest.err >&5
26871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872  (exit $ac_status); } &&
26873	 { ac_try='test -z "$ac_c_werror_flag"
26874			 || test ! -s conftest.err'
26875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26876  (eval $ac_try) 2>&5
26877  ac_status=$?
26878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26879  (exit $ac_status); }; } &&
26880	 { ac_try='test -s conftest.$ac_objext'
26881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882  (eval $ac_try) 2>&5
26883  ac_status=$?
26884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885  (exit $ac_status); }; }; then
26886  ac_hi=-1 ac_mid=-1
26887  while :; do
26888    cat >conftest.$ac_ext <<_ACEOF
26889/* confdefs.h.  */
26890_ACEOF
26891cat confdefs.h >>conftest.$ac_ext
26892cat >>conftest.$ac_ext <<_ACEOF
26893/* end confdefs.h.  */
26894$ac_includes_default
26895int
26896main ()
26897{
26898static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
26899test_array [0] = 0
26900
26901  ;
26902  return 0;
26903}
26904_ACEOF
26905rm -f conftest.$ac_objext
26906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26907  (eval $ac_compile) 2>conftest.er1
26908  ac_status=$?
26909  grep -v '^ *+' conftest.er1 >conftest.err
26910  rm -f conftest.er1
26911  cat conftest.err >&5
26912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913  (exit $ac_status); } &&
26914	 { ac_try='test -z "$ac_c_werror_flag"
26915			 || test ! -s conftest.err'
26916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917  (eval $ac_try) 2>&5
26918  ac_status=$?
26919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920  (exit $ac_status); }; } &&
26921	 { ac_try='test -s conftest.$ac_objext'
26922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923  (eval $ac_try) 2>&5
26924  ac_status=$?
26925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926  (exit $ac_status); }; }; then
26927  ac_lo=$ac_mid; break
26928else
26929  echo "$as_me: failed program was:" >&5
26930sed 's/^/| /' conftest.$ac_ext >&5
26931
26932ac_hi=`expr '(' $ac_mid ')' - 1`
26933		       if test $ac_mid -le $ac_hi; then
26934			 ac_lo= ac_hi=
26935			 break
26936		       fi
26937		       ac_mid=`expr 2 '*' $ac_mid`
26938fi
26939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26940  done
26941else
26942  echo "$as_me: failed program was:" >&5
26943sed 's/^/| /' conftest.$ac_ext >&5
26944
26945ac_lo= ac_hi=
26946fi
26947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26948fi
26949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26950# Binary search between lo and hi bounds.
26951while test "x$ac_lo" != "x$ac_hi"; do
26952  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26953  cat >conftest.$ac_ext <<_ACEOF
26954/* confdefs.h.  */
26955_ACEOF
26956cat confdefs.h >>conftest.$ac_ext
26957cat >>conftest.$ac_ext <<_ACEOF
26958/* end confdefs.h.  */
26959$ac_includes_default
26960int
26961main ()
26962{
26963static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
26964test_array [0] = 0
26965
26966  ;
26967  return 0;
26968}
26969_ACEOF
26970rm -f conftest.$ac_objext
26971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26972  (eval $ac_compile) 2>conftest.er1
26973  ac_status=$?
26974  grep -v '^ *+' conftest.er1 >conftest.err
26975  rm -f conftest.er1
26976  cat conftest.err >&5
26977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978  (exit $ac_status); } &&
26979	 { ac_try='test -z "$ac_c_werror_flag"
26980			 || test ! -s conftest.err'
26981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982  (eval $ac_try) 2>&5
26983  ac_status=$?
26984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985  (exit $ac_status); }; } &&
26986	 { ac_try='test -s conftest.$ac_objext'
26987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988  (eval $ac_try) 2>&5
26989  ac_status=$?
26990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991  (exit $ac_status); }; }; then
26992  ac_hi=$ac_mid
26993else
26994  echo "$as_me: failed program was:" >&5
26995sed 's/^/| /' conftest.$ac_ext >&5
26996
26997ac_lo=`expr '(' $ac_mid ')' + 1`
26998fi
26999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27000done
27001case $ac_lo in
27002?*) ac_cv_sizeof_int_p=$ac_lo;;
27003'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
27004See \`config.log' for more details." >&5
27005echo "$as_me: error: cannot compute sizeof (int *), 77
27006See \`config.log' for more details." >&2;}
27007   { (exit 1); exit 1; }; } ;;
27008esac
27009else
27010  if test "$cross_compiling" = yes; then
27011  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27012See \`config.log' for more details." >&5
27013echo "$as_me: error: cannot run test program while cross compiling
27014See \`config.log' for more details." >&2;}
27015   { (exit 1); exit 1; }; }
27016else
27017  cat >conftest.$ac_ext <<_ACEOF
27018/* confdefs.h.  */
27019_ACEOF
27020cat confdefs.h >>conftest.$ac_ext
27021cat >>conftest.$ac_ext <<_ACEOF
27022/* end confdefs.h.  */
27023$ac_includes_default
27024long longval () { return (long) (sizeof (int *)); }
27025unsigned long ulongval () { return (long) (sizeof (int *)); }
27026#include <stdio.h>
27027#include <stdlib.h>
27028int
27029main ()
27030{
27031
27032  FILE *f = fopen ("conftest.val", "w");
27033  if (! f)
27034    exit (1);
27035  if (((long) (sizeof (int *))) < 0)
27036    {
27037      long i = longval ();
27038      if (i != ((long) (sizeof (int *))))
27039	exit (1);
27040      fprintf (f, "%ld\n", i);
27041    }
27042  else
27043    {
27044      unsigned long i = ulongval ();
27045      if (i != ((long) (sizeof (int *))))
27046	exit (1);
27047      fprintf (f, "%lu\n", i);
27048    }
27049  exit (ferror (f) || fclose (f) != 0);
27050
27051  ;
27052  return 0;
27053}
27054_ACEOF
27055rm -f conftest$ac_exeext
27056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27057  (eval $ac_link) 2>&5
27058  ac_status=$?
27059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062  (eval $ac_try) 2>&5
27063  ac_status=$?
27064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065  (exit $ac_status); }; }; then
27066  ac_cv_sizeof_int_p=`cat conftest.val`
27067else
27068  echo "$as_me: program exited with status $ac_status" >&5
27069echo "$as_me: failed program was:" >&5
27070sed 's/^/| /' conftest.$ac_ext >&5
27071
27072( exit $ac_status )
27073{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
27074See \`config.log' for more details." >&5
27075echo "$as_me: error: cannot compute sizeof (int *), 77
27076See \`config.log' for more details." >&2;}
27077   { (exit 1); exit 1; }; }
27078fi
27079rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27080fi
27081fi
27082rm -f conftest.val
27083else
27084  ac_cv_sizeof_int_p=0
27085fi
27086fi
27087echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
27088echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
27089cat >>confdefs.h <<_ACEOF
27090#define SIZEOF_INT_P $ac_cv_sizeof_int_p
27091_ACEOF
27092
27093
27094if test x$cross_compiling = xyes; then
27095    { echo "$as_me:$LINENO: WARNING: Define typedefs in src/rsizes.h manually if necessary" >&5
27096echo "$as_me: WARNING: Define typedefs in src/rsizes.h manually if necessary" >&2;}
27097fi
27098
27099
27100echo "$as_me:$LINENO: checking for int16_t" >&5
27101echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
27102if test "${rxvt_cv_int16_t+set}" = set; then
27103  echo $ECHO_N "(cached) $ECHO_C" >&6
27104else
27105  cat >conftest.$ac_ext <<_ACEOF
27106/* confdefs.h.  */
27107_ACEOF
27108cat confdefs.h >>conftest.$ac_ext
27109cat >>conftest.$ac_ext <<_ACEOF
27110/* end confdefs.h.  */
27111#include <sys/types.h>
27112int
27113main ()
27114{
27115int16_t dummy;
27116  ;
27117  return 0;
27118}
27119_ACEOF
27120rm -f conftest.$ac_objext
27121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27122  (eval $ac_compile) 2>conftest.er1
27123  ac_status=$?
27124  grep -v '^ *+' conftest.er1 >conftest.err
27125  rm -f conftest.er1
27126  cat conftest.err >&5
27127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128  (exit $ac_status); } &&
27129	 { ac_try='test -z "$ac_c_werror_flag"
27130			 || test ! -s conftest.err'
27131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132  (eval $ac_try) 2>&5
27133  ac_status=$?
27134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135  (exit $ac_status); }; } &&
27136	 { ac_try='test -s conftest.$ac_objext'
27137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138  (eval $ac_try) 2>&5
27139  ac_status=$?
27140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141  (exit $ac_status); }; }; then
27142  rxvt_cv_int16_t=yes
27143else
27144  echo "$as_me: failed program was:" >&5
27145sed 's/^/| /' conftest.$ac_ext >&5
27146
27147if test $ac_cv_sizeof_char -ge 2; then
27148        rxvt_cv_int16_t=" char"
27149      else
27150        if test $ac_cv_sizeof_short -ge 2; then
27151          rxvt_cv_int16_t=" short"
27152        else
27153          if test $ac_cv_sizeof_int -ge 2; then
27154            rxvt_cv_int16_t=" int"
27155          else
27156            if test $ac_cv_sizeof_long -ge 2; then
27157              rxvt_cv_int16_t=" long"
27158            else
27159              if test $ac_cv_sizeof_long_long -ge 2; then
27160                rxvt_cv_int16_t=" long long"
27161              else
27162                rxvt_cv_int16_t=" long" # we _must_ have a (possibly wrong) default
27163              fi
27164            fi
27165          fi
27166        fi
27167      fi
27168
27169fi
27170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27171
27172fi
27173echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
27174echo "${ECHO_T}$rxvt_cv_int16_t" >&6
27175
27176  if test x"$rxvt_cv_int16_t" != xyes; then
27177    rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
27178  fi
27179
27180
27181echo "$as_me:$LINENO: checking for u_int16_t" >&5
27182echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
27183if test "${rxvt_cv_u_int16_t+set}" = set; then
27184  echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186  cat >conftest.$ac_ext <<_ACEOF
27187/* confdefs.h.  */
27188_ACEOF
27189cat confdefs.h >>conftest.$ac_ext
27190cat >>conftest.$ac_ext <<_ACEOF
27191/* end confdefs.h.  */
27192#include <sys/types.h>
27193int
27194main ()
27195{
27196u_int16_t dummy;
27197  ;
27198  return 0;
27199}
27200_ACEOF
27201rm -f conftest.$ac_objext
27202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27203  (eval $ac_compile) 2>conftest.er1
27204  ac_status=$?
27205  grep -v '^ *+' conftest.er1 >conftest.err
27206  rm -f conftest.er1
27207  cat conftest.err >&5
27208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209  (exit $ac_status); } &&
27210	 { ac_try='test -z "$ac_c_werror_flag"
27211			 || test ! -s conftest.err'
27212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213  (eval $ac_try) 2>&5
27214  ac_status=$?
27215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216  (exit $ac_status); }; } &&
27217	 { ac_try='test -s conftest.$ac_objext'
27218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219  (eval $ac_try) 2>&5
27220  ac_status=$?
27221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222  (exit $ac_status); }; }; then
27223  rxvt_cv_u_int16_t=yes
27224else
27225  echo "$as_me: failed program was:" >&5
27226sed 's/^/| /' conftest.$ac_ext >&5
27227
27228if test $ac_cv_sizeof_char -ge 2; then
27229        rxvt_cv_u_int16_t="unsigned char"
27230      else
27231        if test $ac_cv_sizeof_short -ge 2; then
27232          rxvt_cv_u_int16_t="unsigned short"
27233        else
27234          if test $ac_cv_sizeof_int -ge 2; then
27235            rxvt_cv_u_int16_t="unsigned int"
27236          else
27237            if test $ac_cv_sizeof_long -ge 2; then
27238              rxvt_cv_u_int16_t="unsigned long"
27239            else
27240              if test $ac_cv_sizeof_long_long -ge 2; then
27241                rxvt_cv_u_int16_t="unsigned long long"
27242              else
27243                rxvt_cv_u_int16_t="unsigned long" # we _must_ have a (possibly wrong) default
27244              fi
27245            fi
27246          fi
27247        fi
27248      fi
27249
27250fi
27251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27252
27253fi
27254echo "$as_me:$LINENO: result: $rxvt_cv_u_int16_t" >&5
27255echo "${ECHO_T}$rxvt_cv_u_int16_t" >&6
27256
27257  if test x"$rxvt_cv_u_int16_t" != xyes; then
27258    rxvt_u_int16_typedef="typedef $rxvt_cv_u_int16_t u_int16_t;"
27259  fi
27260
27261
27262echo "$as_me:$LINENO: checking for int32_t" >&5
27263echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
27264if test "${rxvt_cv_int32_t+set}" = set; then
27265  echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267  cat >conftest.$ac_ext <<_ACEOF
27268/* confdefs.h.  */
27269_ACEOF
27270cat confdefs.h >>conftest.$ac_ext
27271cat >>conftest.$ac_ext <<_ACEOF
27272/* end confdefs.h.  */
27273#include <sys/types.h>
27274int
27275main ()
27276{
27277int32_t dummy;
27278  ;
27279  return 0;
27280}
27281_ACEOF
27282rm -f conftest.$ac_objext
27283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27284  (eval $ac_compile) 2>conftest.er1
27285  ac_status=$?
27286  grep -v '^ *+' conftest.er1 >conftest.err
27287  rm -f conftest.er1
27288  cat conftest.err >&5
27289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290  (exit $ac_status); } &&
27291	 { ac_try='test -z "$ac_c_werror_flag"
27292			 || test ! -s conftest.err'
27293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27294  (eval $ac_try) 2>&5
27295  ac_status=$?
27296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297  (exit $ac_status); }; } &&
27298	 { ac_try='test -s conftest.$ac_objext'
27299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300  (eval $ac_try) 2>&5
27301  ac_status=$?
27302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303  (exit $ac_status); }; }; then
27304  rxvt_cv_int32_t=yes
27305else
27306  echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309if test $ac_cv_sizeof_char -ge 4; then
27310        rxvt_cv_int32_t=" char"
27311      else
27312        if test $ac_cv_sizeof_short -ge 4; then
27313          rxvt_cv_int32_t=" short"
27314        else
27315          if test $ac_cv_sizeof_int -ge 4; then
27316            rxvt_cv_int32_t=" int"
27317          else
27318            if test $ac_cv_sizeof_long -ge 4; then
27319              rxvt_cv_int32_t=" long"
27320            else
27321              if test $ac_cv_sizeof_long_long -ge 4; then
27322                rxvt_cv_int32_t=" long long"
27323              else
27324                rxvt_cv_int32_t=" long" # we _must_ have a (possibly wrong) default
27325              fi
27326            fi
27327          fi
27328        fi
27329      fi
27330
27331fi
27332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27333
27334fi
27335echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
27336echo "${ECHO_T}$rxvt_cv_int32_t" >&6
27337
27338  if test x"$rxvt_cv_int32_t" != xyes; then
27339    rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
27340  fi
27341
27342
27343echo "$as_me:$LINENO: checking for u_int32_t" >&5
27344echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
27345if test "${rxvt_cv_u_int32_t+set}" = set; then
27346  echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348  cat >conftest.$ac_ext <<_ACEOF
27349/* confdefs.h.  */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h.  */
27354#include <sys/types.h>
27355int
27356main ()
27357{
27358u_int32_t dummy;
27359  ;
27360  return 0;
27361}
27362_ACEOF
27363rm -f conftest.$ac_objext
27364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365  (eval $ac_compile) 2>conftest.er1
27366  ac_status=$?
27367  grep -v '^ *+' conftest.er1 >conftest.err
27368  rm -f conftest.er1
27369  cat conftest.err >&5
27370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371  (exit $ac_status); } &&
27372	 { ac_try='test -z "$ac_c_werror_flag"
27373			 || test ! -s conftest.err'
27374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375  (eval $ac_try) 2>&5
27376  ac_status=$?
27377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378  (exit $ac_status); }; } &&
27379	 { ac_try='test -s conftest.$ac_objext'
27380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381  (eval $ac_try) 2>&5
27382  ac_status=$?
27383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384  (exit $ac_status); }; }; then
27385  rxvt_cv_u_int32_t=yes
27386else
27387  echo "$as_me: failed program was:" >&5
27388sed 's/^/| /' conftest.$ac_ext >&5
27389
27390if test $ac_cv_sizeof_char -ge 4; then
27391        rxvt_cv_u_int32_t="unsigned char"
27392      else
27393        if test $ac_cv_sizeof_short -ge 4; then
27394          rxvt_cv_u_int32_t="unsigned short"
27395        else
27396          if test $ac_cv_sizeof_int -ge 4; then
27397            rxvt_cv_u_int32_t="unsigned int"
27398          else
27399            if test $ac_cv_sizeof_long -ge 4; then
27400              rxvt_cv_u_int32_t="unsigned long"
27401            else
27402              if test $ac_cv_sizeof_long_long -ge 4; then
27403                rxvt_cv_u_int32_t="unsigned long long"
27404              else
27405                rxvt_cv_u_int32_t="unsigned long" # we _must_ have a (possibly wrong) default
27406              fi
27407            fi
27408          fi
27409        fi
27410      fi
27411
27412fi
27413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27414
27415fi
27416echo "$as_me:$LINENO: result: $rxvt_cv_u_int32_t" >&5
27417echo "${ECHO_T}$rxvt_cv_u_int32_t" >&6
27418
27419  if test x"$rxvt_cv_u_int32_t" != xyes; then
27420    rxvt_u_int32_typedef="typedef $rxvt_cv_u_int32_t u_int32_t;"
27421  fi
27422
27423
27424echo "$as_me:$LINENO: checking for int64_t" >&5
27425echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27426if test "${rxvt_cv_int64_t+set}" = set; then
27427  echo $ECHO_N "(cached) $ECHO_C" >&6
27428else
27429  cat >conftest.$ac_ext <<_ACEOF
27430/* confdefs.h.  */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h.  */
27435#include <sys/types.h>
27436int
27437main ()
27438{
27439int64_t dummy;
27440  ;
27441  return 0;
27442}
27443_ACEOF
27444rm -f conftest.$ac_objext
27445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27446  (eval $ac_compile) 2>conftest.er1
27447  ac_status=$?
27448  grep -v '^ *+' conftest.er1 >conftest.err
27449  rm -f conftest.er1
27450  cat conftest.err >&5
27451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452  (exit $ac_status); } &&
27453	 { ac_try='test -z "$ac_c_werror_flag"
27454			 || test ! -s conftest.err'
27455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456  (eval $ac_try) 2>&5
27457  ac_status=$?
27458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459  (exit $ac_status); }; } &&
27460	 { ac_try='test -s conftest.$ac_objext'
27461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462  (eval $ac_try) 2>&5
27463  ac_status=$?
27464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465  (exit $ac_status); }; }; then
27466  rxvt_cv_int64_t=yes
27467else
27468  echo "$as_me: failed program was:" >&5
27469sed 's/^/| /' conftest.$ac_ext >&5
27470
27471if test $ac_cv_sizeof_char -ge 8; then
27472        rxvt_cv_int64_t=" char"
27473      else
27474        if test $ac_cv_sizeof_short -ge 8; then
27475          rxvt_cv_int64_t=" short"
27476        else
27477          if test $ac_cv_sizeof_int -ge 8; then
27478            rxvt_cv_int64_t=" int"
27479          else
27480            if test $ac_cv_sizeof_long -ge 8; then
27481              rxvt_cv_int64_t=" long"
27482            else
27483              if test $ac_cv_sizeof_long_long -ge 8; then
27484                rxvt_cv_int64_t=" long long"
27485              else
27486                rxvt_cv_int64_t=" long" # we _must_ have a (possibly wrong) default
27487              fi
27488            fi
27489          fi
27490        fi
27491      fi
27492
27493fi
27494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27495
27496fi
27497echo "$as_me:$LINENO: result: $rxvt_cv_int64_t" >&5
27498echo "${ECHO_T}$rxvt_cv_int64_t" >&6
27499
27500  if test x"$rxvt_cv_int64_t" != xyes; then
27501    rxvt_int64_typedef="typedef $rxvt_cv_int64_t int64_t;"
27502  fi
27503
27504
27505echo "$as_me:$LINENO: checking for u_int64_t" >&5
27506echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27507if test "${rxvt_cv_u_int64_t+set}" = set; then
27508  echo $ECHO_N "(cached) $ECHO_C" >&6
27509else
27510  cat >conftest.$ac_ext <<_ACEOF
27511/* confdefs.h.  */
27512_ACEOF
27513cat confdefs.h >>conftest.$ac_ext
27514cat >>conftest.$ac_ext <<_ACEOF
27515/* end confdefs.h.  */
27516#include <sys/types.h>
27517int
27518main ()
27519{
27520u_int64_t dummy;
27521  ;
27522  return 0;
27523}
27524_ACEOF
27525rm -f conftest.$ac_objext
27526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27527  (eval $ac_compile) 2>conftest.er1
27528  ac_status=$?
27529  grep -v '^ *+' conftest.er1 >conftest.err
27530  rm -f conftest.er1
27531  cat conftest.err >&5
27532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533  (exit $ac_status); } &&
27534	 { ac_try='test -z "$ac_c_werror_flag"
27535			 || test ! -s conftest.err'
27536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537  (eval $ac_try) 2>&5
27538  ac_status=$?
27539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540  (exit $ac_status); }; } &&
27541	 { ac_try='test -s conftest.$ac_objext'
27542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27543  (eval $ac_try) 2>&5
27544  ac_status=$?
27545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546  (exit $ac_status); }; }; then
27547  rxvt_cv_u_int64_t=yes
27548else
27549  echo "$as_me: failed program was:" >&5
27550sed 's/^/| /' conftest.$ac_ext >&5
27551
27552if test $ac_cv_sizeof_char -ge 8; then
27553        rxvt_cv_u_int64_t="unsigned char"
27554      else
27555        if test $ac_cv_sizeof_short -ge 8; then
27556          rxvt_cv_u_int64_t="unsigned short"
27557        else
27558          if test $ac_cv_sizeof_int -ge 8; then
27559            rxvt_cv_u_int64_t="unsigned int"
27560          else
27561            if test $ac_cv_sizeof_long -ge 8; then
27562              rxvt_cv_u_int64_t="unsigned long"
27563            else
27564              if test $ac_cv_sizeof_long_long -ge 8; then
27565                rxvt_cv_u_int64_t="unsigned long long"
27566              else
27567                rxvt_cv_u_int64_t="unsigned long" # we _must_ have a (possibly wrong) default
27568              fi
27569            fi
27570          fi
27571        fi
27572      fi
27573
27574fi
27575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27576
27577fi
27578echo "$as_me:$LINENO: result: $rxvt_cv_u_int64_t" >&5
27579echo "${ECHO_T}$rxvt_cv_u_int64_t" >&6
27580
27581  if test x"$rxvt_cv_u_int64_t" != xyes; then
27582    rxvt_u_int64_typedef="typedef $rxvt_cv_u_int64_t u_int64_t;"
27583  fi
27584
27585
27586if test $ac_cv_sizeof_int_p -eq 8; then
27587  rxvt_intp_define="#define intp_t int64_t"
27588  rxvt_u_intp_define="#define u_intp_t u_int64_t"
27589else
27590  if test $ac_cv_sizeof_int_p -eq 4; then
27591    rxvt_intp_define="#define intp_t int32_t"
27592    rxvt_u_intp_define="#define u_intp_t u_int32_t"
27593  else
27594    if test $ac_cv_sizeof_int_p -eq 2; then
27595      rxvt_intp_define="#define intp_t int16_t"
27596      rxvt_u_intp_define="#define u_intp_t u_int16_t"
27597    else
27598      rxvt_intp_define="#error set intp_t"
27599      rxvt_u_intp_define="#error set u_intp_t"
27600    fi
27601  fi
27602fi
27603
27604
27605
27606
27607echo "$as_me:$LINENO: checking for tolower in -lintl" >&5
27608echo $ECHO_N "checking for tolower in -lintl... $ECHO_C" >&6
27609if test "${ac_cv_lib_intl_tolower+set}" = set; then
27610  echo $ECHO_N "(cached) $ECHO_C" >&6
27611else
27612  ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lintl  $LIBS"
27614cat >conftest.$ac_ext <<_ACEOF
27615/* confdefs.h.  */
27616_ACEOF
27617cat confdefs.h >>conftest.$ac_ext
27618cat >>conftest.$ac_ext <<_ACEOF
27619/* end confdefs.h.  */
27620
27621/* Override any gcc2 internal prototype to avoid an error.  */
27622#ifdef __cplusplus
27623extern "C"
27624#endif
27625/* We use char because int might match the return type of a gcc2
27626   builtin and then its argument prototype would still apply.  */
27627char tolower ();
27628int
27629main ()
27630{
27631tolower ();
27632  ;
27633  return 0;
27634}
27635_ACEOF
27636rm -f conftest.$ac_objext conftest$ac_exeext
27637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27638  (eval $ac_link) 2>conftest.er1
27639  ac_status=$?
27640  grep -v '^ *+' conftest.er1 >conftest.err
27641  rm -f conftest.er1
27642  cat conftest.err >&5
27643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644  (exit $ac_status); } &&
27645	 { ac_try='test -z "$ac_c_werror_flag"
27646			 || test ! -s conftest.err'
27647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648  (eval $ac_try) 2>&5
27649  ac_status=$?
27650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651  (exit $ac_status); }; } &&
27652	 { ac_try='test -s conftest$ac_exeext'
27653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654  (eval $ac_try) 2>&5
27655  ac_status=$?
27656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657  (exit $ac_status); }; }; then
27658  ac_cv_lib_intl_tolower=yes
27659else
27660  echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
27663ac_cv_lib_intl_tolower=no
27664fi
27665rm -f conftest.err conftest.$ac_objext \
27666      conftest$ac_exeext conftest.$ac_ext
27667LIBS=$ac_check_lib_save_LIBS
27668fi
27669echo "$as_me:$LINENO: result: $ac_cv_lib_intl_tolower" >&5
27670echo "${ECHO_T}$ac_cv_lib_intl_tolower" >&6
27671if test $ac_cv_lib_intl_tolower = yes; then
27672  cat >>confdefs.h <<_ACEOF
27673#define HAVE_LIBINTL 1
27674_ACEOF
27675
27676  LIBS="-lintl $LIBS"
27677
27678fi
27679
27680
27681# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27682# for constant arguments.  Useless!
27683echo "$as_me:$LINENO: checking for working alloca.h" >&5
27684echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27685if test "${ac_cv_working_alloca_h+set}" = set; then
27686  echo $ECHO_N "(cached) $ECHO_C" >&6
27687else
27688  cat >conftest.$ac_ext <<_ACEOF
27689/* confdefs.h.  */
27690_ACEOF
27691cat confdefs.h >>conftest.$ac_ext
27692cat >>conftest.$ac_ext <<_ACEOF
27693/* end confdefs.h.  */
27694#include <alloca.h>
27695int
27696main ()
27697{
27698char *p = (char *) alloca (2 * sizeof (int));
27699  ;
27700  return 0;
27701}
27702_ACEOF
27703rm -f conftest.$ac_objext conftest$ac_exeext
27704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27705  (eval $ac_link) 2>conftest.er1
27706  ac_status=$?
27707  grep -v '^ *+' conftest.er1 >conftest.err
27708  rm -f conftest.er1
27709  cat conftest.err >&5
27710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711  (exit $ac_status); } &&
27712	 { ac_try='test -z "$ac_c_werror_flag"
27713			 || test ! -s conftest.err'
27714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715  (eval $ac_try) 2>&5
27716  ac_status=$?
27717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718  (exit $ac_status); }; } &&
27719	 { ac_try='test -s conftest$ac_exeext'
27720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27721  (eval $ac_try) 2>&5
27722  ac_status=$?
27723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724  (exit $ac_status); }; }; then
27725  ac_cv_working_alloca_h=yes
27726else
27727  echo "$as_me: failed program was:" >&5
27728sed 's/^/| /' conftest.$ac_ext >&5
27729
27730ac_cv_working_alloca_h=no
27731fi
27732rm -f conftest.err conftest.$ac_objext \
27733      conftest$ac_exeext conftest.$ac_ext
27734fi
27735echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27736echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27737if test $ac_cv_working_alloca_h = yes; then
27738
27739cat >>confdefs.h <<\_ACEOF
27740#define HAVE_ALLOCA_H 1
27741_ACEOF
27742
27743fi
27744
27745echo "$as_me:$LINENO: checking for alloca" >&5
27746echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27747if test "${ac_cv_func_alloca_works+set}" = set; then
27748  echo $ECHO_N "(cached) $ECHO_C" >&6
27749else
27750  cat >conftest.$ac_ext <<_ACEOF
27751/* confdefs.h.  */
27752_ACEOF
27753cat confdefs.h >>conftest.$ac_ext
27754cat >>conftest.$ac_ext <<_ACEOF
27755/* end confdefs.h.  */
27756#ifdef __GNUC__
27757# define alloca __builtin_alloca
27758#else
27759# ifdef _MSC_VER
27760#  include <malloc.h>
27761#  define alloca _alloca
27762# else
27763#  if HAVE_ALLOCA_H
27764#   include <alloca.h>
27765#  else
27766#   ifdef _AIX
27767 #pragma alloca
27768#   else
27769#    ifndef alloca /* predefined by HP cc +Olibcalls */
27770char *alloca ();
27771#    endif
27772#   endif
27773#  endif
27774# endif
27775#endif
27776
27777int
27778main ()
27779{
27780char *p = (char *) alloca (1);
27781  ;
27782  return 0;
27783}
27784_ACEOF
27785rm -f conftest.$ac_objext conftest$ac_exeext
27786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27787  (eval $ac_link) 2>conftest.er1
27788  ac_status=$?
27789  grep -v '^ *+' conftest.er1 >conftest.err
27790  rm -f conftest.er1
27791  cat conftest.err >&5
27792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793  (exit $ac_status); } &&
27794	 { ac_try='test -z "$ac_c_werror_flag"
27795			 || test ! -s conftest.err'
27796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797  (eval $ac_try) 2>&5
27798  ac_status=$?
27799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800  (exit $ac_status); }; } &&
27801	 { ac_try='test -s conftest$ac_exeext'
27802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803  (eval $ac_try) 2>&5
27804  ac_status=$?
27805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806  (exit $ac_status); }; }; then
27807  ac_cv_func_alloca_works=yes
27808else
27809  echo "$as_me: failed program was:" >&5
27810sed 's/^/| /' conftest.$ac_ext >&5
27811
27812ac_cv_func_alloca_works=no
27813fi
27814rm -f conftest.err conftest.$ac_objext \
27815      conftest$ac_exeext conftest.$ac_ext
27816fi
27817echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27818echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27819
27820if test $ac_cv_func_alloca_works = yes; then
27821
27822cat >>confdefs.h <<\_ACEOF
27823#define HAVE_ALLOCA 1
27824_ACEOF
27825
27826else
27827  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27828# that cause trouble.  Some versions do not even contain alloca or
27829# contain a buggy version.  If you still want to use their alloca,
27830# use ar to extract alloca.o from them instead of compiling alloca.c.
27831
27832ALLOCA=alloca.$ac_objext
27833
27834cat >>confdefs.h <<\_ACEOF
27835#define C_ALLOCA 1
27836_ACEOF
27837
27838
27839echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27840echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27841if test "${ac_cv_os_cray+set}" = set; then
27842  echo $ECHO_N "(cached) $ECHO_C" >&6
27843else
27844  cat >conftest.$ac_ext <<_ACEOF
27845/* confdefs.h.  */
27846_ACEOF
27847cat confdefs.h >>conftest.$ac_ext
27848cat >>conftest.$ac_ext <<_ACEOF
27849/* end confdefs.h.  */
27850#if defined(CRAY) && ! defined(CRAY2)
27851webecray
27852#else
27853wenotbecray
27854#endif
27855
27856_ACEOF
27857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27858  $EGREP "webecray" >/dev/null 2>&1; then
27859  ac_cv_os_cray=yes
27860else
27861  ac_cv_os_cray=no
27862fi
27863rm -f conftest*
27864
27865fi
27866echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27867echo "${ECHO_T}$ac_cv_os_cray" >&6
27868if test $ac_cv_os_cray = yes; then
27869  for ac_func in _getb67 GETB67 getb67; do
27870    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27871echo "$as_me:$LINENO: checking for $ac_func" >&5
27872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27873if eval "test \"\${$as_ac_var+set}\" = set"; then
27874  echo $ECHO_N "(cached) $ECHO_C" >&6
27875else
27876  cat >conftest.$ac_ext <<_ACEOF
27877/* confdefs.h.  */
27878_ACEOF
27879cat confdefs.h >>conftest.$ac_ext
27880cat >>conftest.$ac_ext <<_ACEOF
27881/* end confdefs.h.  */
27882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27884#define $ac_func innocuous_$ac_func
27885
27886/* System header to define __stub macros and hopefully few prototypes,
27887    which can conflict with char $ac_func (); below.
27888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27889    <limits.h> exists even on freestanding compilers.  */
27890
27891#ifdef __STDC__
27892# include <limits.h>
27893#else
27894# include <assert.h>
27895#endif
27896
27897#undef $ac_func
27898
27899/* Override any gcc2 internal prototype to avoid an error.  */
27900#ifdef __cplusplus
27901extern "C"
27902{
27903#endif
27904/* We use char because int might match the return type of a gcc2
27905   builtin and then its argument prototype would still apply.  */
27906char $ac_func ();
27907/* The GNU C library defines this for functions which it implements
27908    to always fail with ENOSYS.  Some functions are actually named
27909    something starting with __ and the normal name is an alias.  */
27910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27911choke me
27912#else
27913char (*f) () = $ac_func;
27914#endif
27915#ifdef __cplusplus
27916}
27917#endif
27918
27919int
27920main ()
27921{
27922return f != $ac_func;
27923  ;
27924  return 0;
27925}
27926_ACEOF
27927rm -f conftest.$ac_objext conftest$ac_exeext
27928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27929  (eval $ac_link) 2>conftest.er1
27930  ac_status=$?
27931  grep -v '^ *+' conftest.er1 >conftest.err
27932  rm -f conftest.er1
27933  cat conftest.err >&5
27934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935  (exit $ac_status); } &&
27936	 { ac_try='test -z "$ac_c_werror_flag"
27937			 || test ! -s conftest.err'
27938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939  (eval $ac_try) 2>&5
27940  ac_status=$?
27941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942  (exit $ac_status); }; } &&
27943	 { ac_try='test -s conftest$ac_exeext'
27944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945  (eval $ac_try) 2>&5
27946  ac_status=$?
27947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948  (exit $ac_status); }; }; then
27949  eval "$as_ac_var=yes"
27950else
27951  echo "$as_me: failed program was:" >&5
27952sed 's/^/| /' conftest.$ac_ext >&5
27953
27954eval "$as_ac_var=no"
27955fi
27956rm -f conftest.err conftest.$ac_objext \
27957      conftest$ac_exeext conftest.$ac_ext
27958fi
27959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27961if test `eval echo '${'$as_ac_var'}'` = yes; then
27962
27963cat >>confdefs.h <<_ACEOF
27964#define CRAY_STACKSEG_END $ac_func
27965_ACEOF
27966
27967    break
27968fi
27969
27970  done
27971fi
27972
27973echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27974echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27975if test "${ac_cv_c_stack_direction+set}" = set; then
27976  echo $ECHO_N "(cached) $ECHO_C" >&6
27977else
27978  if test "$cross_compiling" = yes; then
27979  ac_cv_c_stack_direction=0
27980else
27981  cat >conftest.$ac_ext <<_ACEOF
27982/* confdefs.h.  */
27983_ACEOF
27984cat confdefs.h >>conftest.$ac_ext
27985cat >>conftest.$ac_ext <<_ACEOF
27986/* end confdefs.h.  */
27987int
27988find_stack_direction ()
27989{
27990  static char *addr = 0;
27991  auto char dummy;
27992  if (addr == 0)
27993    {
27994      addr = &dummy;
27995      return find_stack_direction ();
27996    }
27997  else
27998    return (&dummy > addr) ? 1 : -1;
27999}
28000
28001int
28002main ()
28003{
28004  exit (find_stack_direction () < 0);
28005}
28006_ACEOF
28007rm -f conftest$ac_exeext
28008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28009  (eval $ac_link) 2>&5
28010  ac_status=$?
28011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014  (eval $ac_try) 2>&5
28015  ac_status=$?
28016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017  (exit $ac_status); }; }; then
28018  ac_cv_c_stack_direction=1
28019else
28020  echo "$as_me: program exited with status $ac_status" >&5
28021echo "$as_me: failed program was:" >&5
28022sed 's/^/| /' conftest.$ac_ext >&5
28023
28024( exit $ac_status )
28025ac_cv_c_stack_direction=-1
28026fi
28027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28028fi
28029fi
28030echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28031echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28032
28033cat >>confdefs.h <<_ACEOF
28034#define STACK_DIRECTION $ac_cv_c_stack_direction
28035_ACEOF
28036
28037
28038fi
28039
28040echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28041echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
28042if test "${ac_cv_type_signal+set}" = set; then
28043  echo $ECHO_N "(cached) $ECHO_C" >&6
28044else
28045  cat >conftest.$ac_ext <<_ACEOF
28046/* confdefs.h.  */
28047_ACEOF
28048cat confdefs.h >>conftest.$ac_ext
28049cat >>conftest.$ac_ext <<_ACEOF
28050/* end confdefs.h.  */
28051#include <sys/types.h>
28052#include <signal.h>
28053#ifdef signal
28054# undef signal
28055#endif
28056#ifdef __cplusplus
28057extern "C" void (*signal (int, void (*)(int)))(int);
28058#else
28059void (*signal ()) ();
28060#endif
28061
28062int
28063main ()
28064{
28065int i;
28066  ;
28067  return 0;
28068}
28069_ACEOF
28070rm -f conftest.$ac_objext
28071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28072  (eval $ac_compile) 2>conftest.er1
28073  ac_status=$?
28074  grep -v '^ *+' conftest.er1 >conftest.err
28075  rm -f conftest.er1
28076  cat conftest.err >&5
28077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078  (exit $ac_status); } &&
28079	 { ac_try='test -z "$ac_c_werror_flag"
28080			 || test ! -s conftest.err'
28081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082  (eval $ac_try) 2>&5
28083  ac_status=$?
28084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085  (exit $ac_status); }; } &&
28086	 { ac_try='test -s conftest.$ac_objext'
28087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088  (eval $ac_try) 2>&5
28089  ac_status=$?
28090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091  (exit $ac_status); }; }; then
28092  ac_cv_type_signal=void
28093else
28094  echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
28097ac_cv_type_signal=int
28098fi
28099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28100fi
28101echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28102echo "${ECHO_T}$ac_cv_type_signal" >&6
28103
28104cat >>confdefs.h <<_ACEOF
28105#define RETSIGTYPE $ac_cv_type_signal
28106_ACEOF
28107
28108
28109
28110for ac_func in vprintf
28111do
28112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28113echo "$as_me:$LINENO: checking for $ac_func" >&5
28114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28115if eval "test \"\${$as_ac_var+set}\" = set"; then
28116  echo $ECHO_N "(cached) $ECHO_C" >&6
28117else
28118  cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h.  */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
28123/* end confdefs.h.  */
28124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28125   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28126#define $ac_func innocuous_$ac_func
28127
28128/* System header to define __stub macros and hopefully few prototypes,
28129    which can conflict with char $ac_func (); below.
28130    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28131    <limits.h> exists even on freestanding compilers.  */
28132
28133#ifdef __STDC__
28134# include <limits.h>
28135#else
28136# include <assert.h>
28137#endif
28138
28139#undef $ac_func
28140
28141/* Override any gcc2 internal prototype to avoid an error.  */
28142#ifdef __cplusplus
28143extern "C"
28144{
28145#endif
28146/* We use char because int might match the return type of a gcc2
28147   builtin and then its argument prototype would still apply.  */
28148char $ac_func ();
28149/* The GNU C library defines this for functions which it implements
28150    to always fail with ENOSYS.  Some functions are actually named
28151    something starting with __ and the normal name is an alias.  */
28152#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28153choke me
28154#else
28155char (*f) () = $ac_func;
28156#endif
28157#ifdef __cplusplus
28158}
28159#endif
28160
28161int
28162main ()
28163{
28164return f != $ac_func;
28165  ;
28166  return 0;
28167}
28168_ACEOF
28169rm -f conftest.$ac_objext conftest$ac_exeext
28170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28171  (eval $ac_link) 2>conftest.er1
28172  ac_status=$?
28173  grep -v '^ *+' conftest.er1 >conftest.err
28174  rm -f conftest.er1
28175  cat conftest.err >&5
28176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177  (exit $ac_status); } &&
28178	 { ac_try='test -z "$ac_c_werror_flag"
28179			 || test ! -s conftest.err'
28180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28181  (eval $ac_try) 2>&5
28182  ac_status=$?
28183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184  (exit $ac_status); }; } &&
28185	 { ac_try='test -s conftest$ac_exeext'
28186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187  (eval $ac_try) 2>&5
28188  ac_status=$?
28189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190  (exit $ac_status); }; }; then
28191  eval "$as_ac_var=yes"
28192else
28193  echo "$as_me: failed program was:" >&5
28194sed 's/^/| /' conftest.$ac_ext >&5
28195
28196eval "$as_ac_var=no"
28197fi
28198rm -f conftest.err conftest.$ac_objext \
28199      conftest$ac_exeext conftest.$ac_ext
28200fi
28201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28203if test `eval echo '${'$as_ac_var'}'` = yes; then
28204  cat >>confdefs.h <<_ACEOF
28205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28206_ACEOF
28207
28208echo "$as_me:$LINENO: checking for _doprnt" >&5
28209echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28210if test "${ac_cv_func__doprnt+set}" = set; then
28211  echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213  cat >conftest.$ac_ext <<_ACEOF
28214/* confdefs.h.  */
28215_ACEOF
28216cat confdefs.h >>conftest.$ac_ext
28217cat >>conftest.$ac_ext <<_ACEOF
28218/* end confdefs.h.  */
28219/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28220   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28221#define _doprnt innocuous__doprnt
28222
28223/* System header to define __stub macros and hopefully few prototypes,
28224    which can conflict with char _doprnt (); below.
28225    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28226    <limits.h> exists even on freestanding compilers.  */
28227
28228#ifdef __STDC__
28229# include <limits.h>
28230#else
28231# include <assert.h>
28232#endif
28233
28234#undef _doprnt
28235
28236/* Override any gcc2 internal prototype to avoid an error.  */
28237#ifdef __cplusplus
28238extern "C"
28239{
28240#endif
28241/* We use char because int might match the return type of a gcc2
28242   builtin and then its argument prototype would still apply.  */
28243char _doprnt ();
28244/* The GNU C library defines this for functions which it implements
28245    to always fail with ENOSYS.  Some functions are actually named
28246    something starting with __ and the normal name is an alias.  */
28247#if defined (__stub__doprnt) || defined (__stub____doprnt)
28248choke me
28249#else
28250char (*f) () = _doprnt;
28251#endif
28252#ifdef __cplusplus
28253}
28254#endif
28255
28256int
28257main ()
28258{
28259return f != _doprnt;
28260  ;
28261  return 0;
28262}
28263_ACEOF
28264rm -f conftest.$ac_objext conftest$ac_exeext
28265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28266  (eval $ac_link) 2>conftest.er1
28267  ac_status=$?
28268  grep -v '^ *+' conftest.er1 >conftest.err
28269  rm -f conftest.er1
28270  cat conftest.err >&5
28271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272  (exit $ac_status); } &&
28273	 { ac_try='test -z "$ac_c_werror_flag"
28274			 || test ! -s conftest.err'
28275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28276  (eval $ac_try) 2>&5
28277  ac_status=$?
28278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279  (exit $ac_status); }; } &&
28280	 { ac_try='test -s conftest$ac_exeext'
28281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282  (eval $ac_try) 2>&5
28283  ac_status=$?
28284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285  (exit $ac_status); }; }; then
28286  ac_cv_func__doprnt=yes
28287else
28288  echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
28291ac_cv_func__doprnt=no
28292fi
28293rm -f conftest.err conftest.$ac_objext \
28294      conftest$ac_exeext conftest.$ac_ext
28295fi
28296echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28297echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28298if test $ac_cv_func__doprnt = yes; then
28299
28300cat >>confdefs.h <<\_ACEOF
28301#define HAVE_DOPRNT 1
28302_ACEOF
28303
28304fi
28305
28306fi
28307done
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319for ac_func in atexit unsetenv putenv setenv setutent seteuid _getpty grantpt unlockpt
28320do
28321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28322echo "$as_me:$LINENO: checking for $ac_func" >&5
28323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28324if eval "test \"\${$as_ac_var+set}\" = set"; then
28325  echo $ECHO_N "(cached) $ECHO_C" >&6
28326else
28327  cat >conftest.$ac_ext <<_ACEOF
28328/* confdefs.h.  */
28329_ACEOF
28330cat confdefs.h >>conftest.$ac_ext
28331cat >>conftest.$ac_ext <<_ACEOF
28332/* end confdefs.h.  */
28333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28334   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28335#define $ac_func innocuous_$ac_func
28336
28337/* System header to define __stub macros and hopefully few prototypes,
28338    which can conflict with char $ac_func (); below.
28339    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28340    <limits.h> exists even on freestanding compilers.  */
28341
28342#ifdef __STDC__
28343# include <limits.h>
28344#else
28345# include <assert.h>
28346#endif
28347
28348#undef $ac_func
28349
28350/* Override any gcc2 internal prototype to avoid an error.  */
28351#ifdef __cplusplus
28352extern "C"
28353{
28354#endif
28355/* We use char because int might match the return type of a gcc2
28356   builtin and then its argument prototype would still apply.  */
28357char $ac_func ();
28358/* The GNU C library defines this for functions which it implements
28359    to always fail with ENOSYS.  Some functions are actually named
28360    something starting with __ and the normal name is an alias.  */
28361#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28362choke me
28363#else
28364char (*f) () = $ac_func;
28365#endif
28366#ifdef __cplusplus
28367}
28368#endif
28369
28370int
28371main ()
28372{
28373return f != $ac_func;
28374  ;
28375  return 0;
28376}
28377_ACEOF
28378rm -f conftest.$ac_objext conftest$ac_exeext
28379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28380  (eval $ac_link) 2>conftest.er1
28381  ac_status=$?
28382  grep -v '^ *+' conftest.er1 >conftest.err
28383  rm -f conftest.er1
28384  cat conftest.err >&5
28385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386  (exit $ac_status); } &&
28387	 { ac_try='test -z "$ac_c_werror_flag"
28388			 || test ! -s conftest.err'
28389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390  (eval $ac_try) 2>&5
28391  ac_status=$?
28392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393  (exit $ac_status); }; } &&
28394	 { ac_try='test -s conftest$ac_exeext'
28395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396  (eval $ac_try) 2>&5
28397  ac_status=$?
28398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399  (exit $ac_status); }; }; then
28400  eval "$as_ac_var=yes"
28401else
28402  echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405eval "$as_ac_var=no"
28406fi
28407rm -f conftest.err conftest.$ac_objext \
28408      conftest$ac_exeext conftest.$ac_ext
28409fi
28410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28412if test `eval echo '${'$as_ac_var'}'` = yes; then
28413  cat >>confdefs.h <<_ACEOF
28414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28415_ACEOF
28416
28417fi
28418done
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428for ac_func in strerror getcwd re_comp regcomp strdup strspn strstr strcspn
28429do
28430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28431echo "$as_me:$LINENO: checking for $ac_func" >&5
28432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28433if eval "test \"\${$as_ac_var+set}\" = set"; then
28434  echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436  cat >conftest.$ac_ext <<_ACEOF
28437/* confdefs.h.  */
28438_ACEOF
28439cat confdefs.h >>conftest.$ac_ext
28440cat >>conftest.$ac_ext <<_ACEOF
28441/* end confdefs.h.  */
28442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28443   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28444#define $ac_func innocuous_$ac_func
28445
28446/* System header to define __stub macros and hopefully few prototypes,
28447    which can conflict with char $ac_func (); below.
28448    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28449    <limits.h> exists even on freestanding compilers.  */
28450
28451#ifdef __STDC__
28452# include <limits.h>
28453#else
28454# include <assert.h>
28455#endif
28456
28457#undef $ac_func
28458
28459/* Override any gcc2 internal prototype to avoid an error.  */
28460#ifdef __cplusplus
28461extern "C"
28462{
28463#endif
28464/* We use char because int might match the return type of a gcc2
28465   builtin and then its argument prototype would still apply.  */
28466char $ac_func ();
28467/* The GNU C library defines this for functions which it implements
28468    to always fail with ENOSYS.  Some functions are actually named
28469    something starting with __ and the normal name is an alias.  */
28470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28471choke me
28472#else
28473char (*f) () = $ac_func;
28474#endif
28475#ifdef __cplusplus
28476}
28477#endif
28478
28479int
28480main ()
28481{
28482return f != $ac_func;
28483  ;
28484  return 0;
28485}
28486_ACEOF
28487rm -f conftest.$ac_objext conftest$ac_exeext
28488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28489  (eval $ac_link) 2>conftest.er1
28490  ac_status=$?
28491  grep -v '^ *+' conftest.er1 >conftest.err
28492  rm -f conftest.er1
28493  cat conftest.err >&5
28494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495  (exit $ac_status); } &&
28496	 { ac_try='test -z "$ac_c_werror_flag"
28497			 || test ! -s conftest.err'
28498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499  (eval $ac_try) 2>&5
28500  ac_status=$?
28501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502  (exit $ac_status); }; } &&
28503	 { ac_try='test -s conftest$ac_exeext'
28504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505  (eval $ac_try) 2>&5
28506  ac_status=$?
28507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508  (exit $ac_status); }; }; then
28509  eval "$as_ac_var=yes"
28510else
28511  echo "$as_me: failed program was:" >&5
28512sed 's/^/| /' conftest.$ac_ext >&5
28513
28514eval "$as_ac_var=no"
28515fi
28516rm -f conftest.err conftest.$ac_objext \
28517      conftest$ac_exeext conftest.$ac_ext
28518fi
28519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28521if test `eval echo '${'$as_ac_var'}'` = yes; then
28522  cat >>confdefs.h <<_ACEOF
28523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28524_ACEOF
28525
28526fi
28527done
28528
28529
28530
28531
28532
28533
28534
28535
28536for ac_func in strchr strrchr memmove memcpy memset memchr memcmp
28537do
28538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28539echo "$as_me:$LINENO: checking for $ac_func" >&5
28540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28541if eval "test \"\${$as_ac_var+set}\" = set"; then
28542  echo $ECHO_N "(cached) $ECHO_C" >&6
28543else
28544  cat >conftest.$ac_ext <<_ACEOF
28545/* confdefs.h.  */
28546_ACEOF
28547cat confdefs.h >>conftest.$ac_ext
28548cat >>conftest.$ac_ext <<_ACEOF
28549/* end confdefs.h.  */
28550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28551   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28552#define $ac_func innocuous_$ac_func
28553
28554/* System header to define __stub macros and hopefully few prototypes,
28555    which can conflict with char $ac_func (); below.
28556    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28557    <limits.h> exists even on freestanding compilers.  */
28558
28559#ifdef __STDC__
28560# include <limits.h>
28561#else
28562# include <assert.h>
28563#endif
28564
28565#undef $ac_func
28566
28567/* Override any gcc2 internal prototype to avoid an error.  */
28568#ifdef __cplusplus
28569extern "C"
28570{
28571#endif
28572/* We use char because int might match the return type of a gcc2
28573   builtin and then its argument prototype would still apply.  */
28574char $ac_func ();
28575/* The GNU C library defines this for functions which it implements
28576    to always fail with ENOSYS.  Some functions are actually named
28577    something starting with __ and the normal name is an alias.  */
28578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28579choke me
28580#else
28581char (*f) () = $ac_func;
28582#endif
28583#ifdef __cplusplus
28584}
28585#endif
28586
28587int
28588main ()
28589{
28590return f != $ac_func;
28591  ;
28592  return 0;
28593}
28594_ACEOF
28595rm -f conftest.$ac_objext conftest$ac_exeext
28596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28597  (eval $ac_link) 2>conftest.er1
28598  ac_status=$?
28599  grep -v '^ *+' conftest.er1 >conftest.err
28600  rm -f conftest.er1
28601  cat conftest.err >&5
28602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603  (exit $ac_status); } &&
28604	 { ac_try='test -z "$ac_c_werror_flag"
28605			 || test ! -s conftest.err'
28606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607  (eval $ac_try) 2>&5
28608  ac_status=$?
28609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610  (exit $ac_status); }; } &&
28611	 { ac_try='test -s conftest$ac_exeext'
28612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613  (eval $ac_try) 2>&5
28614  ac_status=$?
28615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616  (exit $ac_status); }; }; then
28617  eval "$as_ac_var=yes"
28618else
28619  echo "$as_me: failed program was:" >&5
28620sed 's/^/| /' conftest.$ac_ext >&5
28621
28622eval "$as_ac_var=no"
28623fi
28624rm -f conftest.err conftest.$ac_objext \
28625      conftest$ac_exeext conftest.$ac_ext
28626fi
28627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28629if test `eval echo '${'$as_ac_var'}'` = yes; then
28630  cat >>confdefs.h <<_ACEOF
28631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28632_ACEOF
28633
28634fi
28635done
28636
28637
28638
28639
28640
28641
28642
28643for ac_func in strcasecmp strncasecmp strftime alloca tcgetattr setsid
28644do
28645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28646echo "$as_me:$LINENO: checking for $ac_func" >&5
28647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28648if eval "test \"\${$as_ac_var+set}\" = set"; then
28649  echo $ECHO_N "(cached) $ECHO_C" >&6
28650else
28651  cat >conftest.$ac_ext <<_ACEOF
28652/* confdefs.h.  */
28653_ACEOF
28654cat confdefs.h >>conftest.$ac_ext
28655cat >>conftest.$ac_ext <<_ACEOF
28656/* end confdefs.h.  */
28657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28658   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28659#define $ac_func innocuous_$ac_func
28660
28661/* System header to define __stub macros and hopefully few prototypes,
28662    which can conflict with char $ac_func (); below.
28663    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28664    <limits.h> exists even on freestanding compilers.  */
28665
28666#ifdef __STDC__
28667# include <limits.h>
28668#else
28669# include <assert.h>
28670#endif
28671
28672#undef $ac_func
28673
28674/* Override any gcc2 internal prototype to avoid an error.  */
28675#ifdef __cplusplus
28676extern "C"
28677{
28678#endif
28679/* We use char because int might match the return type of a gcc2
28680   builtin and then its argument prototype would still apply.  */
28681char $ac_func ();
28682/* The GNU C library defines this for functions which it implements
28683    to always fail with ENOSYS.  Some functions are actually named
28684    something starting with __ and the normal name is an alias.  */
28685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28686choke me
28687#else
28688char (*f) () = $ac_func;
28689#endif
28690#ifdef __cplusplus
28691}
28692#endif
28693
28694int
28695main ()
28696{
28697return f != $ac_func;
28698  ;
28699  return 0;
28700}
28701_ACEOF
28702rm -f conftest.$ac_objext conftest$ac_exeext
28703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28704  (eval $ac_link) 2>conftest.er1
28705  ac_status=$?
28706  grep -v '^ *+' conftest.er1 >conftest.err
28707  rm -f conftest.er1
28708  cat conftest.err >&5
28709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710  (exit $ac_status); } &&
28711	 { ac_try='test -z "$ac_c_werror_flag"
28712			 || test ! -s conftest.err'
28713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714  (eval $ac_try) 2>&5
28715  ac_status=$?
28716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717  (exit $ac_status); }; } &&
28718	 { ac_try='test -s conftest$ac_exeext'
28719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720  (eval $ac_try) 2>&5
28721  ac_status=$?
28722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723  (exit $ac_status); }; }; then
28724  eval "$as_ac_var=yes"
28725else
28726  echo "$as_me: failed program was:" >&5
28727sed 's/^/| /' conftest.$ac_ext >&5
28728
28729eval "$as_ac_var=no"
28730fi
28731rm -f conftest.err conftest.$ac_objext \
28732      conftest$ac_exeext conftest.$ac_ext
28733fi
28734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28736if test `eval echo '${'$as_ac_var'}'` = yes; then
28737  cat >>confdefs.h <<_ACEOF
28738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28739_ACEOF
28740
28741fi
28742done
28743
28744
28745
28746
28747for ac_func in setpgrp tcsetpgrp nl_langinfo
28748do
28749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28750echo "$as_me:$LINENO: checking for $ac_func" >&5
28751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28752if eval "test \"\${$as_ac_var+set}\" = set"; then
28753  echo $ECHO_N "(cached) $ECHO_C" >&6
28754else
28755  cat >conftest.$ac_ext <<_ACEOF
28756/* confdefs.h.  */
28757_ACEOF
28758cat confdefs.h >>conftest.$ac_ext
28759cat >>conftest.$ac_ext <<_ACEOF
28760/* end confdefs.h.  */
28761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28762   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28763#define $ac_func innocuous_$ac_func
28764
28765/* System header to define __stub macros and hopefully few prototypes,
28766    which can conflict with char $ac_func (); below.
28767    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28768    <limits.h> exists even on freestanding compilers.  */
28769
28770#ifdef __STDC__
28771# include <limits.h>
28772#else
28773# include <assert.h>
28774#endif
28775
28776#undef $ac_func
28777
28778/* Override any gcc2 internal prototype to avoid an error.  */
28779#ifdef __cplusplus
28780extern "C"
28781{
28782#endif
28783/* We use char because int might match the return type of a gcc2
28784   builtin and then its argument prototype would still apply.  */
28785char $ac_func ();
28786/* The GNU C library defines this for functions which it implements
28787    to always fail with ENOSYS.  Some functions are actually named
28788    something starting with __ and the normal name is an alias.  */
28789#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28790choke me
28791#else
28792char (*f) () = $ac_func;
28793#endif
28794#ifdef __cplusplus
28795}
28796#endif
28797
28798int
28799main ()
28800{
28801return f != $ac_func;
28802  ;
28803  return 0;
28804}
28805_ACEOF
28806rm -f conftest.$ac_objext conftest$ac_exeext
28807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28808  (eval $ac_link) 2>conftest.er1
28809  ac_status=$?
28810  grep -v '^ *+' conftest.er1 >conftest.err
28811  rm -f conftest.er1
28812  cat conftest.err >&5
28813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814  (exit $ac_status); } &&
28815	 { ac_try='test -z "$ac_c_werror_flag"
28816			 || test ! -s conftest.err'
28817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818  (eval $ac_try) 2>&5
28819  ac_status=$?
28820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821  (exit $ac_status); }; } &&
28822	 { ac_try='test -s conftest$ac_exeext'
28823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824  (eval $ac_try) 2>&5
28825  ac_status=$?
28826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827  (exit $ac_status); }; }; then
28828  eval "$as_ac_var=yes"
28829else
28830  echo "$as_me: failed program was:" >&5
28831sed 's/^/| /' conftest.$ac_ext >&5
28832
28833eval "$as_ac_var=no"
28834fi
28835rm -f conftest.err conftest.$ac_objext \
28836      conftest$ac_exeext conftest.$ac_ext
28837fi
28838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28839echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28840if test `eval echo '${'$as_ac_var'}'` = yes; then
28841  cat >>confdefs.h <<_ACEOF
28842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28843_ACEOF
28844
28845fi
28846done
28847
28848
28849
28850echo "$as_me:$LINENO: checking for XPointer" >&5
28851echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
28852if test "${rxvt_cv_xpointer+set}" = set; then
28853  echo $ECHO_N "(cached) $ECHO_C" >&6
28854else
28855  cat >conftest.$ac_ext <<_ACEOF
28856/* confdefs.h.  */
28857_ACEOF
28858cat confdefs.h >>conftest.$ac_ext
28859cat >>conftest.$ac_ext <<_ACEOF
28860/* end confdefs.h.  */
28861#include <X11/Xlib.h>
28862int
28863main ()
28864{
28865XPointer dummy;
28866  ;
28867  return 0;
28868}
28869_ACEOF
28870rm -f conftest.$ac_objext
28871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28872  (eval $ac_compile) 2>conftest.er1
28873  ac_status=$?
28874  grep -v '^ *+' conftest.er1 >conftest.err
28875  rm -f conftest.er1
28876  cat conftest.err >&5
28877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878  (exit $ac_status); } &&
28879	 { ac_try='test -z "$ac_c_werror_flag"
28880			 || test ! -s conftest.err'
28881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882  (eval $ac_try) 2>&5
28883  ac_status=$?
28884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885  (exit $ac_status); }; } &&
28886	 { ac_try='test -s conftest.$ac_objext'
28887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28888  (eval $ac_try) 2>&5
28889  ac_status=$?
28890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891  (exit $ac_status); }; }; then
28892  rxvt_cv_xpointer=yes
28893else
28894  echo "$as_me: failed program was:" >&5
28895sed 's/^/| /' conftest.$ac_ext >&5
28896
28897rxvt_cv_xpointer=no
28898fi
28899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28900fi
28901echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
28902echo "${ECHO_T}$rxvt_cv_xpointer" >&6
28903if test x$rxvt_cv_xpointer = xyes; then
28904
28905cat >>confdefs.h <<\_ACEOF
28906#define HAVE_XPOINTER 1
28907_ACEOF
28908
28909fi
28910
28911
28912
28913echo "$as_me:$LINENO: checking for getpt" >&5
28914echo $ECHO_N "checking for getpt... $ECHO_C" >&6
28915if test "${rxvt_cv_func_getpt+set}" = set; then
28916  echo $ECHO_N "(cached) $ECHO_C" >&6
28917else
28918  cat >conftest.$ac_ext <<_ACEOF
28919/* confdefs.h.  */
28920_ACEOF
28921cat confdefs.h >>conftest.$ac_ext
28922cat >>conftest.$ac_ext <<_ACEOF
28923/* end confdefs.h.  */
28924#define _GNU_SOURCE
28925#ifdef HAVE_STDLIB_H
28926# include <stdlib.h>
28927#endif
28928int
28929main ()
28930{
28931(void)getpt();
28932  ;
28933  return 0;
28934}
28935_ACEOF
28936rm -f conftest.$ac_objext conftest$ac_exeext
28937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28938  (eval $ac_link) 2>conftest.er1
28939  ac_status=$?
28940  grep -v '^ *+' conftest.er1 >conftest.err
28941  rm -f conftest.er1
28942  cat conftest.err >&5
28943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944  (exit $ac_status); } &&
28945	 { ac_try='test -z "$ac_c_werror_flag"
28946			 || test ! -s conftest.err'
28947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948  (eval $ac_try) 2>&5
28949  ac_status=$?
28950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951  (exit $ac_status); }; } &&
28952	 { ac_try='test -s conftest$ac_exeext'
28953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28954  (eval $ac_try) 2>&5
28955  ac_status=$?
28956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957  (exit $ac_status); }; }; then
28958  rxvt_cv_func_getpt=yes
28959else
28960  echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
28963rxvt_cv_func_getpt=no
28964fi
28965rm -f conftest.err conftest.$ac_objext \
28966      conftest$ac_exeext conftest.$ac_ext
28967fi
28968echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
28969echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
28970if test x${rxvt_cv_func_getpt} = xyes; then
28971
28972cat >>confdefs.h <<\_ACEOF
28973#define HAVE_GETPT 1
28974_ACEOF
28975
28976fi
28977
28978# if we don't guess right then it's up to the user
28979echo "$as_me:$LINENO: checking for tty/pty type" >&5
28980echo $ECHO_N "checking for tty/pty type... $ECHO_C" >&6
28981if test "${rxvt_cv_ptys+set}" = set; then
28982  echo $ECHO_N "(cached) $ECHO_C" >&6
28983else
28984  if test "$cross_compiling" = yes; then
28985  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28986See \`config.log' for more details." >&5
28987echo "$as_me: error: cannot run test program while cross compiling
28988See \`config.log' for more details." >&2;}
28989   { (exit 1); exit 1; }; }
28990else
28991  cat >conftest.$ac_ext <<_ACEOF
28992/* confdefs.h.  */
28993_ACEOF
28994cat confdefs.h >>conftest.$ac_ext
28995cat >>conftest.$ac_ext <<_ACEOF
28996/* end confdefs.h.  */
28997#include "ptytest.c"
28998_ACEOF
28999rm -f conftest$ac_exeext
29000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29001  (eval $ac_link) 2>&5
29002  ac_status=$?
29003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006  (eval $ac_try) 2>&5
29007  ac_status=$?
29008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009  (exit $ac_status); }; }; then
29010  rxvt_cv_ptys=`cat conftestval`
29011else
29012  echo "$as_me: program exited with status $ac_status" >&5
29013echo "$as_me: failed program was:" >&5
29014sed 's/^/| /' conftest.$ac_ext >&5
29015
29016( exit $ac_status )
29017rxvt_cv_ptys=UNKNOWN
29018{ echo "$as_me:$LINENO: WARNING: manually set PTYS_ARE_* by editing config.h" >&5
29019echo "$as_me: WARNING: manually set PTYS_ARE_* by editing config.h" >&2;}
29020fi
29021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29022fi
29023fi
29024echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
29025echo "${ECHO_T}$rxvt_cv_ptys" >&6
29026
29027if test x${rxvt_cv_ptys} = xSCO; then
29028
29029cat >>confdefs.h <<\_ACEOF
29030#define PTYS_ARE_NUMERIC 1
29031_ACEOF
29032
29033
29034fi
29035if test x${rxvt_cv_ptys} = xUSG; then
29036
29037cat >>confdefs.h <<\_ACEOF
29038#define PTYS_ARE_PTMX 1
29039_ACEOF
29040
29041
29042
29043cat >>confdefs.h <<\_ACEOF
29044#define PTYS_ARE_SEARCHED 1
29045_ACEOF
29046
29047
29048fi
29049if test x${rxvt_cv_ptys} = xSGI3; then
29050
29051cat >>confdefs.h <<\_ACEOF
29052#define PTYS_ARE_PTC 1
29053_ACEOF
29054
29055
29056fi
29057if test x${rxvt_cv_ptys} = xSGI4; then
29058
29059cat >>confdefs.h <<\_ACEOF
29060#define PTYS_ARE__GETPTY 1
29061_ACEOF
29062
29063
29064fi
29065if test x${rxvt_cv_ptys} = xCONVEX; then
29066
29067cat >>confdefs.h <<\_ACEOF
29068#define PTYS_ARE_GETPTY 1
29069_ACEOF
29070
29071
29072fi
29073if test x${rxvt_cv_ptys} = xGLIBC; then
29074
29075cat >>confdefs.h <<\_ACEOF
29076#define PTYS_ARE_GETPT 1
29077_ACEOF
29078
29079
29080
29081cat >>confdefs.h <<\_ACEOF
29082#define PTYS_ARE_SEARCHED 1
29083_ACEOF
29084
29085
29086fi
29087if test x${rxvt_cv_ptys} = xHPUX; then
29088
29089cat >>confdefs.h <<\_ACEOF
29090#define PTYS_ARE_CLONE 1
29091_ACEOF
29092
29093
29094
29095cat >>confdefs.h <<\_ACEOF
29096#define PTYS_ARE_SEARCHED 1
29097_ACEOF
29098
29099
29100fi
29101if test x${rxvt_cv_ptys} = xBSD; then
29102
29103cat >>confdefs.h <<\_ACEOF
29104#define PTYS_ARE_SEARCHED 1
29105_ACEOF
29106
29107
29108fi
29109
29110echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
29111echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
29112if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
29113  echo $ECHO_N "(cached) $ECHO_C" >&6
29114else
29115  ac_check_lib_save_LIBS=$LIBS
29116LIBS="-lxpg4  $LIBS"
29117cat >conftest.$ac_ext <<_ACEOF
29118/* confdefs.h.  */
29119_ACEOF
29120cat confdefs.h >>conftest.$ac_ext
29121cat >>conftest.$ac_ext <<_ACEOF
29122/* end confdefs.h.  */
29123
29124/* Override any gcc2 internal prototype to avoid an error.  */
29125#ifdef __cplusplus
29126extern "C"
29127#endif
29128/* We use char because int might match the return type of a gcc2
29129   builtin and then its argument prototype would still apply.  */
29130char setlocale ();
29131int
29132main ()
29133{
29134setlocale ();
29135  ;
29136  return 0;
29137}
29138_ACEOF
29139rm -f conftest.$ac_objext conftest$ac_exeext
29140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141  (eval $ac_link) 2>conftest.er1
29142  ac_status=$?
29143  grep -v '^ *+' conftest.er1 >conftest.err
29144  rm -f conftest.er1
29145  cat conftest.err >&5
29146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147  (exit $ac_status); } &&
29148	 { ac_try='test -z "$ac_c_werror_flag"
29149			 || test ! -s conftest.err'
29150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151  (eval $ac_try) 2>&5
29152  ac_status=$?
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); }; } &&
29155	 { ac_try='test -s conftest$ac_exeext'
29156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157  (eval $ac_try) 2>&5
29158  ac_status=$?
29159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160  (exit $ac_status); }; }; then
29161  ac_cv_lib_xpg4_setlocale=yes
29162else
29163  echo "$as_me: failed program was:" >&5
29164sed 's/^/| /' conftest.$ac_ext >&5
29165
29166ac_cv_lib_xpg4_setlocale=no
29167fi
29168rm -f conftest.err conftest.$ac_objext \
29169      conftest$ac_exeext conftest.$ac_ext
29170LIBS=$ac_check_lib_save_LIBS
29171fi
29172echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
29173echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
29174if test $ac_cv_lib_xpg4_setlocale = yes; then
29175  LIBS="$LIBS -lxpg4"
29176fi
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197have_forkpty=no
29198
29199for ac_func in forkpty
29200do
29201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29202echo "$as_me:$LINENO: checking for $ac_func" >&5
29203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29204if eval "test \"\${$as_ac_var+set}\" = set"; then
29205  echo $ECHO_N "(cached) $ECHO_C" >&6
29206else
29207  cat >conftest.$ac_ext <<_ACEOF
29208/* confdefs.h.  */
29209_ACEOF
29210cat confdefs.h >>conftest.$ac_ext
29211cat >>conftest.$ac_ext <<_ACEOF
29212/* end confdefs.h.  */
29213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29214   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29215#define $ac_func innocuous_$ac_func
29216
29217/* System header to define __stub macros and hopefully few prototypes,
29218    which can conflict with char $ac_func (); below.
29219    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29220    <limits.h> exists even on freestanding compilers.  */
29221
29222#ifdef __STDC__
29223# include <limits.h>
29224#else
29225# include <assert.h>
29226#endif
29227
29228#undef $ac_func
29229
29230/* Override any gcc2 internal prototype to avoid an error.  */
29231#ifdef __cplusplus
29232extern "C"
29233{
29234#endif
29235/* We use char because int might match the return type of a gcc2
29236   builtin and then its argument prototype would still apply.  */
29237char $ac_func ();
29238/* The GNU C library defines this for functions which it implements
29239    to always fail with ENOSYS.  Some functions are actually named
29240    something starting with __ and the normal name is an alias.  */
29241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29242choke me
29243#else
29244char (*f) () = $ac_func;
29245#endif
29246#ifdef __cplusplus
29247}
29248#endif
29249
29250int
29251main ()
29252{
29253return f != $ac_func;
29254  ;
29255  return 0;
29256}
29257_ACEOF
29258rm -f conftest.$ac_objext conftest$ac_exeext
29259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29260  (eval $ac_link) 2>conftest.er1
29261  ac_status=$?
29262  grep -v '^ *+' conftest.er1 >conftest.err
29263  rm -f conftest.er1
29264  cat conftest.err >&5
29265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266  (exit $ac_status); } &&
29267	 { ac_try='test -z "$ac_c_werror_flag"
29268			 || test ! -s conftest.err'
29269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270  (eval $ac_try) 2>&5
29271  ac_status=$?
29272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273  (exit $ac_status); }; } &&
29274	 { ac_try='test -s conftest$ac_exeext'
29275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276  (eval $ac_try) 2>&5
29277  ac_status=$?
29278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279  (exit $ac_status); }; }; then
29280  eval "$as_ac_var=yes"
29281else
29282  echo "$as_me: failed program was:" >&5
29283sed 's/^/| /' conftest.$ac_ext >&5
29284
29285eval "$as_ac_var=no"
29286fi
29287rm -f conftest.err conftest.$ac_objext \
29288      conftest$ac_exeext conftest.$ac_ext
29289fi
29290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29292if test `eval echo '${'$as_ac_var'}'` = yes; then
29293  cat >>confdefs.h <<_ACEOF
29294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29295_ACEOF
29296 have_forkpty=yes
29297fi
29298done
29299
29300for lib in bsd util; do
29301    got_lib=no
29302    if test $have_forkpty = no ; then
29303	as_ac_Lib=`echo "ac_cv_lib_$lib''_forkpty" | $as_tr_sh`
29304echo "$as_me:$LINENO: checking for forkpty in -l$lib" >&5
29305echo $ECHO_N "checking for forkpty in -l$lib... $ECHO_C" >&6
29306if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29307  echo $ECHO_N "(cached) $ECHO_C" >&6
29308else
29309  ac_check_lib_save_LIBS=$LIBS
29310LIBS="-l$lib  $LIBS"
29311cat >conftest.$ac_ext <<_ACEOF
29312/* confdefs.h.  */
29313_ACEOF
29314cat confdefs.h >>conftest.$ac_ext
29315cat >>conftest.$ac_ext <<_ACEOF
29316/* end confdefs.h.  */
29317
29318/* Override any gcc2 internal prototype to avoid an error.  */
29319#ifdef __cplusplus
29320extern "C"
29321#endif
29322/* We use char because int might match the return type of a gcc2
29323   builtin and then its argument prototype would still apply.  */
29324char forkpty ();
29325int
29326main ()
29327{
29328forkpty ();
29329  ;
29330  return 0;
29331}
29332_ACEOF
29333rm -f conftest.$ac_objext conftest$ac_exeext
29334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29335  (eval $ac_link) 2>conftest.er1
29336  ac_status=$?
29337  grep -v '^ *+' conftest.er1 >conftest.err
29338  rm -f conftest.er1
29339  cat conftest.err >&5
29340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341  (exit $ac_status); } &&
29342	 { ac_try='test -z "$ac_c_werror_flag"
29343			 || test ! -s conftest.err'
29344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345  (eval $ac_try) 2>&5
29346  ac_status=$?
29347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348  (exit $ac_status); }; } &&
29349	 { ac_try='test -s conftest$ac_exeext'
29350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351  (eval $ac_try) 2>&5
29352  ac_status=$?
29353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354  (exit $ac_status); }; }; then
29355  eval "$as_ac_Lib=yes"
29356else
29357  echo "$as_me: failed program was:" >&5
29358sed 's/^/| /' conftest.$ac_ext >&5
29359
29360eval "$as_ac_Lib=no"
29361fi
29362rm -f conftest.err conftest.$ac_objext \
29363      conftest$ac_exeext conftest.$ac_ext
29364LIBS=$ac_check_lib_save_LIBS
29365fi
29366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29367echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29368if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29369
29370	    if test x$got_lib = xno ; then
29371		LIBS="$LIBS -l$lib"
29372	    fi
29373	    have_forkpty=yes
29374	    got_lib=yes
29375	    cat >>confdefs.h <<\_ACEOF
29376#define HAVE_FORKPTY 1
29377_ACEOF
29378
29379
29380fi
29381
29382    fi
29383done
29384
29385echo "$as_me:$LINENO: checking for struct winsize" >&5
29386echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
29387cat >conftest.$ac_ext <<_ACEOF
29388/* confdefs.h.  */
29389_ACEOF
29390cat confdefs.h >>conftest.$ac_ext
29391cat >>conftest.$ac_ext <<_ACEOF
29392/* end confdefs.h.  */
29393#include "widget/pipe-headers.h"
29394int
29395main ()
29396{
29397struct winsize w; ioctl(0, 1234, &w);
29398  ;
29399  return 0;
29400}
29401_ACEOF
29402rm -f conftest.$ac_objext
29403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29404  (eval $ac_compile) 2>conftest.er1
29405  ac_status=$?
29406  grep -v '^ *+' conftest.er1 >conftest.err
29407  rm -f conftest.er1
29408  cat conftest.err >&5
29409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410  (exit $ac_status); } &&
29411	 { ac_try='test -z "$ac_c_werror_flag"
29412			 || test ! -s conftest.err'
29413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414  (eval $ac_try) 2>&5
29415  ac_status=$?
29416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417  (exit $ac_status); }; } &&
29418	 { ac_try='test -s conftest.$ac_objext'
29419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420  (eval $ac_try) 2>&5
29421  ac_status=$?
29422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423  (exit $ac_status); }; }; then
29424
29425ioctl_get_winsize_works=yes
29426else
29427  echo "$as_me: failed program was:" >&5
29428sed 's/^/| /' conftest.$ac_ext >&5
29429
29430
29431ioctl_get_winsize_works=no
29432
29433fi
29434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29435if test x$ioctl_get_winsize_works = xno; then
29436
29437cat >>confdefs.h <<\_ACEOF
29438#define NEED_WINSIZE 1
29439_ACEOF
29440
29441echo "$as_me:$LINENO: result: no" >&5
29442echo "${ECHO_T}no" >&6
29443else
29444echo "$as_me:$LINENO: result: yes" >&5
29445echo "${ECHO_T}yes" >&6
29446fi
29447
29448echo "$as_me:$LINENO: checking for --with-libs" >&5
29449echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6
29450
29451# Check whether --with-libs or --without-libs was given.
29452if test "${with_libs+set}" = set; then
29453  withval="$with_libs"
29454
29455echo "$as_me:$LINENO: result: $withval" >&5
29456echo "${ECHO_T}$withval" >&6
29457LIBS="$withval $LIBS"
29458
29459else
29460  echo "$as_me:$LINENO: result: no" >&5
29461echo "${ECHO_T}no" >&6
29462fi;
29463
29464# Check whether --enable-NeXT_look or --disable-NeXT_look was given.
29465if test "${enable_NeXT_look+set}" = set; then
29466  enableval="$enable_NeXT_look"
29467  enable_NeXT=$enableval
29468else
29469  enable_NeXT="no"
29470fi;
29471if test "x$enable_NeXT" = "xyes"; then
29472
29473cat >>confdefs.h <<\_ACEOF
29474#define NEXT_LOOK 1
29475_ACEOF
29476
29477fi
29478
29479
29480        MKINSTALLDIRS=
29481  if test -n "$ac_aux_dir"; then
29482    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
29483  fi
29484  if test -z "$MKINSTALLDIRS"; then
29485    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
29486  fi
29487
29488
29489
29490
29491
29492        # Extract the first word of "msgfmt", so it can be a program name with args.
29493set dummy msgfmt; ac_word=$2
29494echo "$as_me:$LINENO: checking for $ac_word" >&5
29495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29496if test "${ac_cv_path_MSGFMT+set}" = set; then
29497  echo $ECHO_N "(cached) $ECHO_C" >&6
29498else
29499  case "$MSGFMT" in
29500  /*)
29501  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
29502  ;;
29503  *)
29504  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
29505  for ac_dir in $PATH; do
29506    test -z "$ac_dir" && ac_dir=.
29507    if test -f $ac_dir/$ac_word; then
29508      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
29509     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
29510	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
29511	break
29512      fi
29513    fi
29514  done
29515  IFS="$ac_save_ifs"
29516  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
29517  ;;
29518esac
29519fi
29520MSGFMT="$ac_cv_path_MSGFMT"
29521if test "$MSGFMT" != ":"; then
29522  echo "$as_me:$LINENO: result: $MSGFMT" >&5
29523echo "${ECHO_T}$MSGFMT" >&6
29524else
29525  echo "$as_me:$LINENO: result: no" >&5
29526echo "${ECHO_T}no" >&6
29527fi
29528
29529  # Extract the first word of "gmsgfmt", so it can be a program name with args.
29530set dummy gmsgfmt; ac_word=$2
29531echo "$as_me:$LINENO: checking for $ac_word" >&5
29532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29533if test "${ac_cv_path_GMSGFMT+set}" = set; then
29534  echo $ECHO_N "(cached) $ECHO_C" >&6
29535else
29536  case $GMSGFMT in
29537  [\\/]* | ?:[\\/]*)
29538  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
29539  ;;
29540  *)
29541  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29542for as_dir in $PATH
29543do
29544  IFS=$as_save_IFS
29545  test -z "$as_dir" && as_dir=.
29546  for ac_exec_ext in '' $ac_executable_extensions; do
29547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29548    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
29549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29550    break 2
29551  fi
29552done
29553done
29554
29555  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
29556  ;;
29557esac
29558fi
29559GMSGFMT=$ac_cv_path_GMSGFMT
29560
29561if test -n "$GMSGFMT"; then
29562  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
29563echo "${ECHO_T}$GMSGFMT" >&6
29564else
29565  echo "$as_me:$LINENO: result: no" >&5
29566echo "${ECHO_T}no" >&6
29567fi
29568
29569
29570        # Extract the first word of "xgettext", so it can be a program name with args.
29571set dummy xgettext; ac_word=$2
29572echo "$as_me:$LINENO: checking for $ac_word" >&5
29573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29574if test "${ac_cv_path_XGETTEXT+set}" = set; then
29575  echo $ECHO_N "(cached) $ECHO_C" >&6
29576else
29577  case "$XGETTEXT" in
29578  /*)
29579  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
29580  ;;
29581  *)
29582  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
29583  for ac_dir in $PATH; do
29584    test -z "$ac_dir" && ac_dir=.
29585    if test -f $ac_dir/$ac_word; then
29586      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
29587     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
29588	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
29589	break
29590      fi
29591    fi
29592  done
29593  IFS="$ac_save_ifs"
29594  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
29595  ;;
29596esac
29597fi
29598XGETTEXT="$ac_cv_path_XGETTEXT"
29599if test "$XGETTEXT" != ":"; then
29600  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29601echo "${ECHO_T}$XGETTEXT" >&6
29602else
29603  echo "$as_me:$LINENO: result: no" >&5
29604echo "${ECHO_T}no" >&6
29605fi
29606
29607    rm -f messages.po
29608
29609    # Extract the first word of "msgmerge", so it can be a program name with args.
29610set dummy msgmerge; ac_word=$2
29611echo "$as_me:$LINENO: checking for $ac_word" >&5
29612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29613if test "${ac_cv_path_MSGMERGE+set}" = set; then
29614  echo $ECHO_N "(cached) $ECHO_C" >&6
29615else
29616  case "$MSGMERGE" in
29617  /*)
29618  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
29619  ;;
29620  *)
29621  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
29622  for ac_dir in $PATH; do
29623    test -z "$ac_dir" && ac_dir=.
29624    if test -f $ac_dir/$ac_word; then
29625      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
29626	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
29627	break
29628      fi
29629    fi
29630  done
29631  IFS="$ac_save_ifs"
29632  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
29633  ;;
29634esac
29635fi
29636MSGMERGE="$ac_cv_path_MSGMERGE"
29637if test "$MSGMERGE" != ":"; then
29638  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29639echo "${ECHO_T}$MSGMERGE" >&6
29640else
29641  echo "$as_me:$LINENO: result: no" >&5
29642echo "${ECHO_T}no" >&6
29643fi
29644
29645
29646      if test "$GMSGFMT" != ":"; then
29647            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
29648       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
29649      : ;
29650    else
29651      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
29652      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
29653echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
29654      GMSGFMT=":"
29655    fi
29656  fi
29657
29658      if test "$XGETTEXT" != ":"; then
29659            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
29660       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
29661      : ;
29662    else
29663      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
29664echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
29665      XGETTEXT=":"
29666    fi
29667        rm -f messages.po
29668  fi
29669
29670            ac_config_commands="$ac_config_commands default-1"
29671
29672
29673
29674      if test "X$prefix" = "XNONE"; then
29675    acl_final_prefix="$ac_default_prefix"
29676  else
29677    acl_final_prefix="$prefix"
29678  fi
29679  if test "X$exec_prefix" = "XNONE"; then
29680    acl_final_exec_prefix='${prefix}'
29681  else
29682    acl_final_exec_prefix="$exec_prefix"
29683  fi
29684  acl_save_prefix="$prefix"
29685  prefix="$acl_final_prefix"
29686  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
29687  prefix="$acl_save_prefix"
29688
29689
29690# Check whether --with-gnu-ld or --without-gnu-ld was given.
29691if test "${with_gnu_ld+set}" = set; then
29692  withval="$with_gnu_ld"
29693  test "$withval" = no || with_gnu_ld=yes
29694else
29695  with_gnu_ld=no
29696fi;
29697ac_prog=ld
29698if test "$GCC" = yes; then
29699  # Check if gcc -print-prog-name=ld gives a path.
29700  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
29701echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
29702  case $host in
29703  *-*-mingw*)
29704    # gcc leaves a trailing carriage return which upsets mingw
29705    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29706  *)
29707    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29708  esac
29709  case $ac_prog in
29710    # Accept absolute paths.
29711    [\\/]* | [A-Za-z]:[\\/]*)
29712      re_direlt='/[^/][^/]*/\.\./'
29713      # Canonicalize the path of ld
29714      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
29715      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
29716	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
29717      done
29718      test -z "$LD" && LD="$ac_prog"
29719      ;;
29720  "")
29721    # If it fails, then pretend we aren't using GCC.
29722    ac_prog=ld
29723    ;;
29724  *)
29725    # If it is relative, then search for the first ld in PATH.
29726    with_gnu_ld=unknown
29727    ;;
29728  esac
29729elif test "$with_gnu_ld" = yes; then
29730  echo "$as_me:$LINENO: checking for GNU ld" >&5
29731echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
29732else
29733  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
29734echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
29735fi
29736if test "${acl_cv_path_LD+set}" = set; then
29737  echo $ECHO_N "(cached) $ECHO_C" >&6
29738else
29739  if test -z "$LD"; then
29740  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
29741  for ac_dir in $PATH; do
29742    test -z "$ac_dir" && ac_dir=.
29743    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29744      acl_cv_path_LD="$ac_dir/$ac_prog"
29745      # Check to see if the program is GNU ld.  I'd rather use --version,
29746      # but apparently some GNU ld's only accept -v.
29747      # Break only if it was the GNU/non-GNU ld that we prefer.
29748      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
29749	test "$with_gnu_ld" != no && break
29750      else
29751	test "$with_gnu_ld" != yes && break
29752      fi
29753    fi
29754  done
29755  IFS="$ac_save_ifs"
29756else
29757  acl_cv_path_LD="$LD" # Let the user override the test with a path.
29758fi
29759fi
29760
29761LD="$acl_cv_path_LD"
29762if test -n "$LD"; then
29763  echo "$as_me:$LINENO: result: $LD" >&5
29764echo "${ECHO_T}$LD" >&6
29765else
29766  echo "$as_me:$LINENO: result: no" >&5
29767echo "${ECHO_T}no" >&6
29768fi
29769test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
29770echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
29771   { (exit 1); exit 1; }; }
29772echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
29773echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
29774if test "${acl_cv_prog_gnu_ld+set}" = set; then
29775  echo $ECHO_N "(cached) $ECHO_C" >&6
29776else
29777  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
29778if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
29779  acl_cv_prog_gnu_ld=yes
29780else
29781  acl_cv_prog_gnu_ld=no
29782fi
29783fi
29784echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
29785echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
29786with_gnu_ld=$acl_cv_prog_gnu_ld
29787
29788
29789
29790                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
29791echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
29792if test "${acl_cv_rpath+set}" = set; then
29793  echo $ECHO_N "(cached) $ECHO_C" >&6
29794else
29795
29796    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
29797    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
29798    . ./conftest.sh
29799    rm -f ./conftest.sh
29800    acl_cv_rpath=done
29801
29802fi
29803echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
29804echo "${ECHO_T}$acl_cv_rpath" >&6
29805  wl="$acl_cv_wl"
29806  libext="$acl_cv_libext"
29807  shlibext="$acl_cv_shlibext"
29808  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
29809  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
29810  hardcode_direct="$acl_cv_hardcode_direct"
29811  hardcode_minus_L="$acl_cv_hardcode_minus_L"
29812  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
29813  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
29814    # Check whether --enable-rpath or --disable-rpath was given.
29815if test "${enable_rpath+set}" = set; then
29816  enableval="$enable_rpath"
29817  :
29818else
29819  enable_rpath=yes
29820fi;
29821
29822
29823
29824
29825
29826
29827
29828    use_additional=yes
29829
29830  acl_save_prefix="$prefix"
29831  prefix="$acl_final_prefix"
29832  acl_save_exec_prefix="$exec_prefix"
29833  exec_prefix="$acl_final_exec_prefix"
29834
29835    eval additional_includedir=\"$includedir\"
29836    eval additional_libdir=\"$libdir\"
29837
29838  exec_prefix="$acl_save_exec_prefix"
29839  prefix="$acl_save_prefix"
29840
29841
29842# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29843if test "${with_libiconv_prefix+set}" = set; then
29844  withval="$with_libiconv_prefix"
29845
29846    if test "X$withval" = "Xno"; then
29847      use_additional=no
29848    else
29849      if test "X$withval" = "X"; then
29850
29851  acl_save_prefix="$prefix"
29852  prefix="$acl_final_prefix"
29853  acl_save_exec_prefix="$exec_prefix"
29854  exec_prefix="$acl_final_exec_prefix"
29855
29856          eval additional_includedir=\"$includedir\"
29857          eval additional_libdir=\"$libdir\"
29858
29859  exec_prefix="$acl_save_exec_prefix"
29860  prefix="$acl_save_prefix"
29861
29862      else
29863        additional_includedir="$withval/include"
29864        additional_libdir="$withval/lib"
29865      fi
29866    fi
29867
29868fi;
29869      LIBICONV=
29870  LTLIBICONV=
29871  INCICONV=
29872  rpathdirs=
29873  ltrpathdirs=
29874  names_already_handled=
29875  names_next_round='iconv '
29876  while test -n "$names_next_round"; do
29877    names_this_round="$names_next_round"
29878    names_next_round=
29879    for name in $names_this_round; do
29880      already_handled=
29881      for n in $names_already_handled; do
29882        if test "$n" = "$name"; then
29883          already_handled=yes
29884          break
29885        fi
29886      done
29887      if test -z "$already_handled"; then
29888        names_already_handled="$names_already_handled $name"
29889                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
29890        eval value=\"\$HAVE_LIB$uppername\"
29891        if test -n "$value"; then
29892          if test "$value" = yes; then
29893            eval value=\"\$LIB$uppername\"
29894            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
29895            eval value=\"\$LTLIB$uppername\"
29896            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
29897          else
29898                                    :
29899          fi
29900        else
29901                              found_dir=
29902          found_la=
29903          found_so=
29904          found_a=
29905          if test $use_additional = yes; then
29906            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
29907              found_dir="$additional_libdir"
29908              found_so="$additional_libdir/lib$name.$shlibext"
29909              if test -f "$additional_libdir/lib$name.la"; then
29910                found_la="$additional_libdir/lib$name.la"
29911              fi
29912            else
29913              if test -f "$additional_libdir/lib$name.$libext"; then
29914                found_dir="$additional_libdir"
29915                found_a="$additional_libdir/lib$name.$libext"
29916                if test -f "$additional_libdir/lib$name.la"; then
29917                  found_la="$additional_libdir/lib$name.la"
29918                fi
29919              fi
29920            fi
29921          fi
29922          if test "X$found_dir" = "X"; then
29923            for x in $LDFLAGS $LTLIBICONV; do
29924
29925  acl_save_prefix="$prefix"
29926  prefix="$acl_final_prefix"
29927  acl_save_exec_prefix="$exec_prefix"
29928  exec_prefix="$acl_final_exec_prefix"
29929  eval x=\"$x\"
29930  exec_prefix="$acl_save_exec_prefix"
29931  prefix="$acl_save_prefix"
29932
29933              case "$x" in
29934                -L*)
29935                  dir=`echo "X$x" | sed -e 's/^X-L//'`
29936                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
29937                    found_dir="$dir"
29938                    found_so="$dir/lib$name.$shlibext"
29939                    if test -f "$dir/lib$name.la"; then
29940                      found_la="$dir/lib$name.la"
29941                    fi
29942                  else
29943                    if test -f "$dir/lib$name.$libext"; then
29944                      found_dir="$dir"
29945                      found_a="$dir/lib$name.$libext"
29946                      if test -f "$dir/lib$name.la"; then
29947                        found_la="$dir/lib$name.la"
29948                      fi
29949                    fi
29950                  fi
29951                  ;;
29952              esac
29953              if test "X$found_dir" != "X"; then
29954                break
29955              fi
29956            done
29957          fi
29958          if test "X$found_dir" != "X"; then
29959                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
29960            if test "X$found_so" != "X"; then
29961                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
29962                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29963              else
29964                                                                                haveit=
29965                for x in $ltrpathdirs; do
29966                  if test "X$x" = "X$found_dir"; then
29967                    haveit=yes
29968                    break
29969                  fi
29970                done
29971                if test -z "$haveit"; then
29972                  ltrpathdirs="$ltrpathdirs $found_dir"
29973                fi
29974                                if test "$hardcode_direct" = yes; then
29975                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29976                else
29977                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
29978                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
29979                                                            haveit=
29980                    for x in $rpathdirs; do
29981                      if test "X$x" = "X$found_dir"; then
29982                        haveit=yes
29983                        break
29984                      fi
29985                    done
29986                    if test -z "$haveit"; then
29987                      rpathdirs="$rpathdirs $found_dir"
29988                    fi
29989                  else
29990                                                                                haveit=
29991                    for x in $LDFLAGS $LIBICONV; do
29992
29993  acl_save_prefix="$prefix"
29994  prefix="$acl_final_prefix"
29995  acl_save_exec_prefix="$exec_prefix"
29996  exec_prefix="$acl_final_exec_prefix"
29997  eval x=\"$x\"
29998  exec_prefix="$acl_save_exec_prefix"
29999  prefix="$acl_save_prefix"
30000
30001                      if test "X$x" = "X-L$found_dir"; then
30002                        haveit=yes
30003                        break
30004                      fi
30005                    done
30006                    if test -z "$haveit"; then
30007                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
30008                    fi
30009                    if test "$hardcode_minus_L" != no; then
30010                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30011                    else
30012                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
30013                    fi
30014                  fi
30015                fi
30016              fi
30017            else
30018              if test "X$found_a" != "X"; then
30019                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
30020              else
30021                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
30022              fi
30023            fi
30024                        additional_includedir=
30025            case "$found_dir" in
30026              */lib | */lib/)
30027                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30028                additional_includedir="$basedir/include"
30029                ;;
30030            esac
30031            if test "X$additional_includedir" != "X"; then
30032                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
30033                haveit=
30034                if test "X$additional_includedir" = "X/usr/local/include"; then
30035                  if test -n "$GCC"; then
30036                    case $host_os in
30037                      linux*) haveit=yes;;
30038                    esac
30039                  fi
30040                fi
30041                if test -z "$haveit"; then
30042                  for x in $CPPFLAGS $INCICONV; do
30043
30044  acl_save_prefix="$prefix"
30045  prefix="$acl_final_prefix"
30046  acl_save_exec_prefix="$exec_prefix"
30047  exec_prefix="$acl_final_exec_prefix"
30048  eval x=\"$x\"
30049  exec_prefix="$acl_save_exec_prefix"
30050  prefix="$acl_save_prefix"
30051
30052                    if test "X$x" = "X-I$additional_includedir"; then
30053                      haveit=yes
30054                      break
30055                    fi
30056                  done
30057                  if test -z "$haveit"; then
30058                    if test -d "$additional_includedir"; then
30059                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
30060                    fi
30061                  fi
30062                fi
30063              fi
30064            fi
30065                        if test -n "$found_la"; then
30066                                                        save_libdir="$libdir"
30067              case "$found_la" in
30068                */* | *\\*) . "$found_la" ;;
30069                *) . "./$found_la" ;;
30070              esac
30071              libdir="$save_libdir"
30072                            for dep in $dependency_libs; do
30073                case "$dep" in
30074                  -L*)
30075                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30076                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
30077                      haveit=
30078                      if test "X$additional_libdir" = "X/usr/local/lib"; then
30079                        if test -n "$GCC"; then
30080                          case $host_os in
30081                            linux*) haveit=yes;;
30082                          esac
30083                        fi
30084                      fi
30085                      if test -z "$haveit"; then
30086                        haveit=
30087                        for x in $LDFLAGS $LIBICONV; do
30088
30089  acl_save_prefix="$prefix"
30090  prefix="$acl_final_prefix"
30091  acl_save_exec_prefix="$exec_prefix"
30092  exec_prefix="$acl_final_exec_prefix"
30093  eval x=\"$x\"
30094  exec_prefix="$acl_save_exec_prefix"
30095  prefix="$acl_save_prefix"
30096
30097                          if test "X$x" = "X-L$additional_libdir"; then
30098                            haveit=yes
30099                            break
30100                          fi
30101                        done
30102                        if test -z "$haveit"; then
30103                          if test -d "$additional_libdir"; then
30104                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
30105                          fi
30106                        fi
30107                        haveit=
30108                        for x in $LDFLAGS $LTLIBICONV; do
30109
30110  acl_save_prefix="$prefix"
30111  prefix="$acl_final_prefix"
30112  acl_save_exec_prefix="$exec_prefix"
30113  exec_prefix="$acl_final_exec_prefix"
30114  eval x=\"$x\"
30115  exec_prefix="$acl_save_exec_prefix"
30116  prefix="$acl_save_prefix"
30117
30118                          if test "X$x" = "X-L$additional_libdir"; then
30119                            haveit=yes
30120                            break
30121                          fi
30122                        done
30123                        if test -z "$haveit"; then
30124                          if test -d "$additional_libdir"; then
30125                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
30126                          fi
30127                        fi
30128                      fi
30129                    fi
30130                    ;;
30131                  -R*)
30132                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
30133                    if test "$enable_rpath" != no; then
30134                                                                  haveit=
30135                      for x in $rpathdirs; do
30136                        if test "X$x" = "X$dir"; then
30137                          haveit=yes
30138                          break
30139                        fi
30140                      done
30141                      if test -z "$haveit"; then
30142                        rpathdirs="$rpathdirs $dir"
30143                      fi
30144                                                                  haveit=
30145                      for x in $ltrpathdirs; do
30146                        if test "X$x" = "X$dir"; then
30147                          haveit=yes
30148                          break
30149                        fi
30150                      done
30151                      if test -z "$haveit"; then
30152                        ltrpathdirs="$ltrpathdirs $dir"
30153                      fi
30154                    fi
30155                    ;;
30156                  -l*)
30157                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30158                    ;;
30159                  *.la)
30160                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30161                    ;;
30162                  *)
30163                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
30164                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
30165                    ;;
30166                esac
30167              done
30168            fi
30169          else
30170                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
30171            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
30172          fi
30173        fi
30174      fi
30175    done
30176  done
30177  if test "X$rpathdirs" != "X"; then
30178    if test -n "$hardcode_libdir_separator"; then
30179                        alldirs=
30180      for found_dir in $rpathdirs; do
30181        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30182      done
30183            acl_save_libdir="$libdir"
30184      libdir="$alldirs"
30185      eval flag=\"$hardcode_libdir_flag_spec\"
30186      libdir="$acl_save_libdir"
30187      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
30188    else
30189            for found_dir in $rpathdirs; do
30190        acl_save_libdir="$libdir"
30191        libdir="$found_dir"
30192        eval flag=\"$hardcode_libdir_flag_spec\"
30193        libdir="$acl_save_libdir"
30194        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
30195      done
30196    fi
30197  fi
30198  if test "X$ltrpathdirs" != "X"; then
30199            for found_dir in $ltrpathdirs; do
30200      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
30201    done
30202  fi
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217# we actually dont want NLS anymore -- no one has maintained the files in years 7/17
30218unset enable_nls;
30219
30220  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
30221echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
30222    # Check whether --enable-nls or --disable-nls was given.
30223if test "${enable_nls+set}" = set; then
30224  enableval="$enable_nls"
30225  USE_NLS=$enableval
30226else
30227  USE_NLS=yes
30228fi;
30229  echo "$as_me:$LINENO: result: $USE_NLS" >&5
30230echo "${ECHO_T}$USE_NLS" >&6
30231
30232
30233
30234  LIBINTL=
30235  LTLIBINTL=
30236  POSUB=
30237
30238    if test "$USE_NLS" = "yes"; then
30239    gt_use_preinstalled_gnugettext=no
30240
30241
30242
30243
30244
30245
30246        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
30247echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
30248if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
30249  echo $ECHO_N "(cached) $ECHO_C" >&6
30250else
30251  cat >conftest.$ac_ext <<_ACEOF
30252/* confdefs.h.  */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h.  */
30257#include <libintl.h>
30258extern int _nl_msg_cat_cntr;
30259extern int *_nl_domain_bindings;
30260int
30261main ()
30262{
30263bindtextdomain ("", "");
30264return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
30265  ;
30266  return 0;
30267}
30268_ACEOF
30269rm -f conftest.$ac_objext conftest$ac_exeext
30270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30271  (eval $ac_link) 2>conftest.er1
30272  ac_status=$?
30273  grep -v '^ *+' conftest.er1 >conftest.err
30274  rm -f conftest.er1
30275  cat conftest.err >&5
30276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277  (exit $ac_status); } &&
30278	 { ac_try='test -z "$ac_c_werror_flag"
30279			 || test ! -s conftest.err'
30280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281  (eval $ac_try) 2>&5
30282  ac_status=$?
30283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284  (exit $ac_status); }; } &&
30285	 { ac_try='test -s conftest$ac_exeext'
30286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287  (eval $ac_try) 2>&5
30288  ac_status=$?
30289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290  (exit $ac_status); }; }; then
30291  gt_cv_func_gnugettext1_libc=yes
30292else
30293  echo "$as_me: failed program was:" >&5
30294sed 's/^/| /' conftest.$ac_ext >&5
30295
30296gt_cv_func_gnugettext1_libc=no
30297fi
30298rm -f conftest.err conftest.$ac_objext \
30299      conftest$ac_exeext conftest.$ac_ext
30300fi
30301echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
30302echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
30303
30304        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
30305
30306
30307
30308
30309
30310          am_save_CPPFLAGS="$CPPFLAGS"
30311
30312  for element in $INCICONV; do
30313    haveit=
30314    for x in $CPPFLAGS; do
30315
30316  acl_save_prefix="$prefix"
30317  prefix="$acl_final_prefix"
30318  acl_save_exec_prefix="$exec_prefix"
30319  exec_prefix="$acl_final_exec_prefix"
30320  eval x=\"$x\"
30321  exec_prefix="$acl_save_exec_prefix"
30322  prefix="$acl_save_prefix"
30323
30324      if test "X$x" = "X$element"; then
30325        haveit=yes
30326        break
30327      fi
30328    done
30329    if test -z "$haveit"; then
30330      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
30331    fi
30332  done
30333
30334
30335  echo "$as_me:$LINENO: checking for iconv" >&5
30336echo $ECHO_N "checking for iconv... $ECHO_C" >&6
30337if test "${am_cv_func_iconv+set}" = set; then
30338  echo $ECHO_N "(cached) $ECHO_C" >&6
30339else
30340
30341    am_cv_func_iconv="no, consider installing GNU libiconv"
30342    am_cv_lib_iconv=no
30343    cat >conftest.$ac_ext <<_ACEOF
30344/* confdefs.h.  */
30345_ACEOF
30346cat confdefs.h >>conftest.$ac_ext
30347cat >>conftest.$ac_ext <<_ACEOF
30348/* end confdefs.h.  */
30349#include <stdlib.h>
30350#include <iconv.h>
30351int
30352main ()
30353{
30354iconv_t cd = iconv_open("","");
30355       iconv(cd,NULL,NULL,NULL,NULL);
30356       iconv_close(cd);
30357  ;
30358  return 0;
30359}
30360_ACEOF
30361rm -f conftest.$ac_objext conftest$ac_exeext
30362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30363  (eval $ac_link) 2>conftest.er1
30364  ac_status=$?
30365  grep -v '^ *+' conftest.er1 >conftest.err
30366  rm -f conftest.er1
30367  cat conftest.err >&5
30368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369  (exit $ac_status); } &&
30370	 { ac_try='test -z "$ac_c_werror_flag"
30371			 || test ! -s conftest.err'
30372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30373  (eval $ac_try) 2>&5
30374  ac_status=$?
30375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376  (exit $ac_status); }; } &&
30377	 { ac_try='test -s conftest$ac_exeext'
30378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30379  (eval $ac_try) 2>&5
30380  ac_status=$?
30381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382  (exit $ac_status); }; }; then
30383  am_cv_func_iconv=yes
30384else
30385  echo "$as_me: failed program was:" >&5
30386sed 's/^/| /' conftest.$ac_ext >&5
30387
30388fi
30389rm -f conftest.err conftest.$ac_objext \
30390      conftest$ac_exeext conftest.$ac_ext
30391    if test "$am_cv_func_iconv" != yes; then
30392      am_save_LIBS="$LIBS"
30393      LIBS="$LIBS $LIBICONV"
30394      cat >conftest.$ac_ext <<_ACEOF
30395/* confdefs.h.  */
30396_ACEOF
30397cat confdefs.h >>conftest.$ac_ext
30398cat >>conftest.$ac_ext <<_ACEOF
30399/* end confdefs.h.  */
30400#include <stdlib.h>
30401#include <iconv.h>
30402int
30403main ()
30404{
30405iconv_t cd = iconv_open("","");
30406         iconv(cd,NULL,NULL,NULL,NULL);
30407         iconv_close(cd);
30408  ;
30409  return 0;
30410}
30411_ACEOF
30412rm -f conftest.$ac_objext conftest$ac_exeext
30413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30414  (eval $ac_link) 2>conftest.er1
30415  ac_status=$?
30416  grep -v '^ *+' conftest.er1 >conftest.err
30417  rm -f conftest.er1
30418  cat conftest.err >&5
30419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420  (exit $ac_status); } &&
30421	 { ac_try='test -z "$ac_c_werror_flag"
30422			 || test ! -s conftest.err'
30423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30424  (eval $ac_try) 2>&5
30425  ac_status=$?
30426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427  (exit $ac_status); }; } &&
30428	 { ac_try='test -s conftest$ac_exeext'
30429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430  (eval $ac_try) 2>&5
30431  ac_status=$?
30432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433  (exit $ac_status); }; }; then
30434  am_cv_lib_iconv=yes
30435        am_cv_func_iconv=yes
30436else
30437  echo "$as_me: failed program was:" >&5
30438sed 's/^/| /' conftest.$ac_ext >&5
30439
30440fi
30441rm -f conftest.err conftest.$ac_objext \
30442      conftest$ac_exeext conftest.$ac_ext
30443      LIBS="$am_save_LIBS"
30444    fi
30445
30446fi
30447echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
30448echo "${ECHO_T}$am_cv_func_iconv" >&6
30449  if test "$am_cv_func_iconv" = yes; then
30450
30451cat >>confdefs.h <<\_ACEOF
30452#define HAVE_ICONV 1
30453_ACEOF
30454
30455  fi
30456  if test "$am_cv_lib_iconv" = yes; then
30457    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
30458echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
30459    echo "$as_me:$LINENO: result: $LIBICONV" >&5
30460echo "${ECHO_T}$LIBICONV" >&6
30461  else
30462            CPPFLAGS="$am_save_CPPFLAGS"
30463    LIBICONV=
30464    LTLIBICONV=
30465  fi
30466
30467
30468
30469
30470
30471
30472    use_additional=yes
30473
30474  acl_save_prefix="$prefix"
30475  prefix="$acl_final_prefix"
30476  acl_save_exec_prefix="$exec_prefix"
30477  exec_prefix="$acl_final_exec_prefix"
30478
30479    eval additional_includedir=\"$includedir\"
30480    eval additional_libdir=\"$libdir\"
30481
30482  exec_prefix="$acl_save_exec_prefix"
30483  prefix="$acl_save_prefix"
30484
30485
30486# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
30487if test "${with_libintl_prefix+set}" = set; then
30488  withval="$with_libintl_prefix"
30489
30490    if test "X$withval" = "Xno"; then
30491      use_additional=no
30492    else
30493      if test "X$withval" = "X"; then
30494
30495  acl_save_prefix="$prefix"
30496  prefix="$acl_final_prefix"
30497  acl_save_exec_prefix="$exec_prefix"
30498  exec_prefix="$acl_final_exec_prefix"
30499
30500          eval additional_includedir=\"$includedir\"
30501          eval additional_libdir=\"$libdir\"
30502
30503  exec_prefix="$acl_save_exec_prefix"
30504  prefix="$acl_save_prefix"
30505
30506      else
30507        additional_includedir="$withval/include"
30508        additional_libdir="$withval/lib"
30509      fi
30510    fi
30511
30512fi;
30513      LIBINTL=
30514  LTLIBINTL=
30515  INCINTL=
30516  rpathdirs=
30517  ltrpathdirs=
30518  names_already_handled=
30519  names_next_round='intl '
30520  while test -n "$names_next_round"; do
30521    names_this_round="$names_next_round"
30522    names_next_round=
30523    for name in $names_this_round; do
30524      already_handled=
30525      for n in $names_already_handled; do
30526        if test "$n" = "$name"; then
30527          already_handled=yes
30528          break
30529        fi
30530      done
30531      if test -z "$already_handled"; then
30532        names_already_handled="$names_already_handled $name"
30533                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30534        eval value=\"\$HAVE_LIB$uppername\"
30535        if test -n "$value"; then
30536          if test "$value" = yes; then
30537            eval value=\"\$LIB$uppername\"
30538            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
30539            eval value=\"\$LTLIB$uppername\"
30540            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
30541          else
30542                                    :
30543          fi
30544        else
30545                              found_dir=
30546          found_la=
30547          found_so=
30548          found_a=
30549          if test $use_additional = yes; then
30550            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
30551              found_dir="$additional_libdir"
30552              found_so="$additional_libdir/lib$name.$shlibext"
30553              if test -f "$additional_libdir/lib$name.la"; then
30554                found_la="$additional_libdir/lib$name.la"
30555              fi
30556            else
30557              if test -f "$additional_libdir/lib$name.$libext"; then
30558                found_dir="$additional_libdir"
30559                found_a="$additional_libdir/lib$name.$libext"
30560                if test -f "$additional_libdir/lib$name.la"; then
30561                  found_la="$additional_libdir/lib$name.la"
30562                fi
30563              fi
30564            fi
30565          fi
30566          if test "X$found_dir" = "X"; then
30567            for x in $LDFLAGS $LTLIBINTL; do
30568
30569  acl_save_prefix="$prefix"
30570  prefix="$acl_final_prefix"
30571  acl_save_exec_prefix="$exec_prefix"
30572  exec_prefix="$acl_final_exec_prefix"
30573  eval x=\"$x\"
30574  exec_prefix="$acl_save_exec_prefix"
30575  prefix="$acl_save_prefix"
30576
30577              case "$x" in
30578                -L*)
30579                  dir=`echo "X$x" | sed -e 's/^X-L//'`
30580                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30581                    found_dir="$dir"
30582                    found_so="$dir/lib$name.$shlibext"
30583                    if test -f "$dir/lib$name.la"; then
30584                      found_la="$dir/lib$name.la"
30585                    fi
30586                  else
30587                    if test -f "$dir/lib$name.$libext"; then
30588                      found_dir="$dir"
30589                      found_a="$dir/lib$name.$libext"
30590                      if test -f "$dir/lib$name.la"; then
30591                        found_la="$dir/lib$name.la"
30592                      fi
30593                    fi
30594                  fi
30595                  ;;
30596              esac
30597              if test "X$found_dir" != "X"; then
30598                break
30599              fi
30600            done
30601          fi
30602          if test "X$found_dir" != "X"; then
30603                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
30604            if test "X$found_so" != "X"; then
30605                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30606                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30607              else
30608                                                                                haveit=
30609                for x in $ltrpathdirs; do
30610                  if test "X$x" = "X$found_dir"; then
30611                    haveit=yes
30612                    break
30613                  fi
30614                done
30615                if test -z "$haveit"; then
30616                  ltrpathdirs="$ltrpathdirs $found_dir"
30617                fi
30618                                if test "$hardcode_direct" = yes; then
30619                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30620                else
30621                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30622                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30623                                                            haveit=
30624                    for x in $rpathdirs; do
30625                      if test "X$x" = "X$found_dir"; then
30626                        haveit=yes
30627                        break
30628                      fi
30629                    done
30630                    if test -z "$haveit"; then
30631                      rpathdirs="$rpathdirs $found_dir"
30632                    fi
30633                  else
30634                                                                                haveit=
30635                    for x in $LDFLAGS $LIBINTL; do
30636
30637  acl_save_prefix="$prefix"
30638  prefix="$acl_final_prefix"
30639  acl_save_exec_prefix="$exec_prefix"
30640  exec_prefix="$acl_final_exec_prefix"
30641  eval x=\"$x\"
30642  exec_prefix="$acl_save_exec_prefix"
30643  prefix="$acl_save_prefix"
30644
30645                      if test "X$x" = "X-L$found_dir"; then
30646                        haveit=yes
30647                        break
30648                      fi
30649                    done
30650                    if test -z "$haveit"; then
30651                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
30652                    fi
30653                    if test "$hardcode_minus_L" != no; then
30654                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30655                    else
30656                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30657                    fi
30658                  fi
30659                fi
30660              fi
30661            else
30662              if test "X$found_a" != "X"; then
30663                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
30664              else
30665                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
30666              fi
30667            fi
30668                        additional_includedir=
30669            case "$found_dir" in
30670              */lib | */lib/)
30671                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30672                additional_includedir="$basedir/include"
30673                ;;
30674            esac
30675            if test "X$additional_includedir" != "X"; then
30676                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
30677                haveit=
30678                if test "X$additional_includedir" = "X/usr/local/include"; then
30679                  if test -n "$GCC"; then
30680                    case $host_os in
30681                      linux*) haveit=yes;;
30682                    esac
30683                  fi
30684                fi
30685                if test -z "$haveit"; then
30686                  for x in $CPPFLAGS $INCINTL; do
30687
30688  acl_save_prefix="$prefix"
30689  prefix="$acl_final_prefix"
30690  acl_save_exec_prefix="$exec_prefix"
30691  exec_prefix="$acl_final_exec_prefix"
30692  eval x=\"$x\"
30693  exec_prefix="$acl_save_exec_prefix"
30694  prefix="$acl_save_prefix"
30695
30696                    if test "X$x" = "X-I$additional_includedir"; then
30697                      haveit=yes
30698                      break
30699                    fi
30700                  done
30701                  if test -z "$haveit"; then
30702                    if test -d "$additional_includedir"; then
30703                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
30704                    fi
30705                  fi
30706                fi
30707              fi
30708            fi
30709                        if test -n "$found_la"; then
30710                                                        save_libdir="$libdir"
30711              case "$found_la" in
30712                */* | *\\*) . "$found_la" ;;
30713                *) . "./$found_la" ;;
30714              esac
30715              libdir="$save_libdir"
30716                            for dep in $dependency_libs; do
30717                case "$dep" in
30718                  -L*)
30719                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30720                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
30721                      haveit=
30722                      if test "X$additional_libdir" = "X/usr/local/lib"; then
30723                        if test -n "$GCC"; then
30724                          case $host_os in
30725                            linux*) haveit=yes;;
30726                          esac
30727                        fi
30728                      fi
30729                      if test -z "$haveit"; then
30730                        haveit=
30731                        for x in $LDFLAGS $LIBINTL; do
30732
30733  acl_save_prefix="$prefix"
30734  prefix="$acl_final_prefix"
30735  acl_save_exec_prefix="$exec_prefix"
30736  exec_prefix="$acl_final_exec_prefix"
30737  eval x=\"$x\"
30738  exec_prefix="$acl_save_exec_prefix"
30739  prefix="$acl_save_prefix"
30740
30741                          if test "X$x" = "X-L$additional_libdir"; then
30742                            haveit=yes
30743                            break
30744                          fi
30745                        done
30746                        if test -z "$haveit"; then
30747                          if test -d "$additional_libdir"; then
30748                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
30749                          fi
30750                        fi
30751                        haveit=
30752                        for x in $LDFLAGS $LTLIBINTL; do
30753
30754  acl_save_prefix="$prefix"
30755  prefix="$acl_final_prefix"
30756  acl_save_exec_prefix="$exec_prefix"
30757  exec_prefix="$acl_final_exec_prefix"
30758  eval x=\"$x\"
30759  exec_prefix="$acl_save_exec_prefix"
30760  prefix="$acl_save_prefix"
30761
30762                          if test "X$x" = "X-L$additional_libdir"; then
30763                            haveit=yes
30764                            break
30765                          fi
30766                        done
30767                        if test -z "$haveit"; then
30768                          if test -d "$additional_libdir"; then
30769                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
30770                          fi
30771                        fi
30772                      fi
30773                    fi
30774                    ;;
30775                  -R*)
30776                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
30777                    if test "$enable_rpath" != no; then
30778                                                                  haveit=
30779                      for x in $rpathdirs; do
30780                        if test "X$x" = "X$dir"; then
30781                          haveit=yes
30782                          break
30783                        fi
30784                      done
30785                      if test -z "$haveit"; then
30786                        rpathdirs="$rpathdirs $dir"
30787                      fi
30788                                                                  haveit=
30789                      for x in $ltrpathdirs; do
30790                        if test "X$x" = "X$dir"; then
30791                          haveit=yes
30792                          break
30793                        fi
30794                      done
30795                      if test -z "$haveit"; then
30796                        ltrpathdirs="$ltrpathdirs $dir"
30797                      fi
30798                    fi
30799                    ;;
30800                  -l*)
30801                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30802                    ;;
30803                  *.la)
30804                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30805                    ;;
30806                  *)
30807                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
30808                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
30809                    ;;
30810                esac
30811              done
30812            fi
30813          else
30814                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30815            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
30816          fi
30817        fi
30818      fi
30819    done
30820  done
30821  if test "X$rpathdirs" != "X"; then
30822    if test -n "$hardcode_libdir_separator"; then
30823                        alldirs=
30824      for found_dir in $rpathdirs; do
30825        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30826      done
30827            acl_save_libdir="$libdir"
30828      libdir="$alldirs"
30829      eval flag=\"$hardcode_libdir_flag_spec\"
30830      libdir="$acl_save_libdir"
30831      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30832    else
30833            for found_dir in $rpathdirs; do
30834        acl_save_libdir="$libdir"
30835        libdir="$found_dir"
30836        eval flag=\"$hardcode_libdir_flag_spec\"
30837        libdir="$acl_save_libdir"
30838        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30839      done
30840    fi
30841  fi
30842  if test "X$ltrpathdirs" != "X"; then
30843            for found_dir in $ltrpathdirs; do
30844      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
30845    done
30846  fi
30847
30848          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
30849echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
30850if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
30851  echo $ECHO_N "(cached) $ECHO_C" >&6
30852else
30853  gt_save_CPPFLAGS="$CPPFLAGS"
30854            CPPFLAGS="$CPPFLAGS $INCINTL"
30855            gt_save_LIBS="$LIBS"
30856            LIBS="$LIBS $LIBINTL"
30857                        cat >conftest.$ac_ext <<_ACEOF
30858/* confdefs.h.  */
30859_ACEOF
30860cat confdefs.h >>conftest.$ac_ext
30861cat >>conftest.$ac_ext <<_ACEOF
30862/* end confdefs.h.  */
30863#include <libintl.h>
30864extern int _nl_msg_cat_cntr;
30865extern
30866#ifdef __cplusplus
30867"C"
30868#endif
30869const char *_nl_expand_alias ();
30870int
30871main ()
30872{
30873bindtextdomain ("", "");
30874return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
30875  ;
30876  return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext conftest$ac_exeext
30880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30881  (eval $ac_link) 2>conftest.er1
30882  ac_status=$?
30883  grep -v '^ *+' conftest.er1 >conftest.err
30884  rm -f conftest.er1
30885  cat conftest.err >&5
30886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887  (exit $ac_status); } &&
30888	 { ac_try='test -z "$ac_c_werror_flag"
30889			 || test ! -s conftest.err'
30890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891  (eval $ac_try) 2>&5
30892  ac_status=$?
30893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894  (exit $ac_status); }; } &&
30895	 { ac_try='test -s conftest$ac_exeext'
30896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897  (eval $ac_try) 2>&5
30898  ac_status=$?
30899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900  (exit $ac_status); }; }; then
30901  gt_cv_func_gnugettext1_libintl=yes
30902else
30903  echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
30906gt_cv_func_gnugettext1_libintl=no
30907fi
30908rm -f conftest.err conftest.$ac_objext \
30909      conftest$ac_exeext conftest.$ac_ext
30910                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
30911              LIBS="$LIBS $LIBICONV"
30912              cat >conftest.$ac_ext <<_ACEOF
30913/* confdefs.h.  */
30914_ACEOF
30915cat confdefs.h >>conftest.$ac_ext
30916cat >>conftest.$ac_ext <<_ACEOF
30917/* end confdefs.h.  */
30918#include <libintl.h>
30919extern int _nl_msg_cat_cntr;
30920extern
30921#ifdef __cplusplus
30922"C"
30923#endif
30924const char *_nl_expand_alias ();
30925int
30926main ()
30927{
30928bindtextdomain ("", "");
30929return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
30930  ;
30931  return 0;
30932}
30933_ACEOF
30934rm -f conftest.$ac_objext conftest$ac_exeext
30935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30936  (eval $ac_link) 2>conftest.er1
30937  ac_status=$?
30938  grep -v '^ *+' conftest.er1 >conftest.err
30939  rm -f conftest.er1
30940  cat conftest.err >&5
30941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942  (exit $ac_status); } &&
30943	 { ac_try='test -z "$ac_c_werror_flag"
30944			 || test ! -s conftest.err'
30945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30946  (eval $ac_try) 2>&5
30947  ac_status=$?
30948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949  (exit $ac_status); }; } &&
30950	 { ac_try='test -s conftest$ac_exeext'
30951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952  (eval $ac_try) 2>&5
30953  ac_status=$?
30954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955  (exit $ac_status); }; }; then
30956  LIBINTL="$LIBINTL $LIBICONV"
30957                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
30958                gt_cv_func_gnugettext1_libintl=yes
30959
30960else
30961  echo "$as_me: failed program was:" >&5
30962sed 's/^/| /' conftest.$ac_ext >&5
30963
30964fi
30965rm -f conftest.err conftest.$ac_objext \
30966      conftest$ac_exeext conftest.$ac_ext
30967            fi
30968            CPPFLAGS="$gt_save_CPPFLAGS"
30969            LIBS="$gt_save_LIBS"
30970fi
30971echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
30972echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
30973        fi
30974
30975                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
30976           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
30977                && test "$PACKAGE" != gettext; }; then
30978          gt_use_preinstalled_gnugettext=yes
30979        else
30980                    LIBINTL=
30981          LTLIBINTL=
30982          INCINTL=
30983        fi
30984
30985
30986
30987    if test "$gt_use_preinstalled_gnugettext" = "yes" \
30988       || test "$nls_cv_use_gnu_gettext" = "yes"; then
30989
30990cat >>confdefs.h <<\_ACEOF
30991#define ENABLE_NLS 1
30992_ACEOF
30993
30994    else
30995      USE_NLS=no
30996    fi
30997  fi
30998
30999  if test "$USE_NLS" = "yes"; then
31000
31001    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
31002      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
31003        echo "$as_me:$LINENO: checking how to link with libintl" >&5
31004echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
31005        echo "$as_me:$LINENO: result: $LIBINTL" >&5
31006echo "${ECHO_T}$LIBINTL" >&6
31007
31008  for element in $INCINTL; do
31009    haveit=
31010    for x in $CPPFLAGS; do
31011
31012  acl_save_prefix="$prefix"
31013  prefix="$acl_final_prefix"
31014  acl_save_exec_prefix="$exec_prefix"
31015  exec_prefix="$acl_final_exec_prefix"
31016  eval x=\"$x\"
31017  exec_prefix="$acl_save_exec_prefix"
31018  prefix="$acl_save_prefix"
31019
31020      if test "X$x" = "X$element"; then
31021        haveit=yes
31022        break
31023      fi
31024    done
31025    if test -z "$haveit"; then
31026      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31027    fi
31028  done
31029
31030      fi
31031
31032
31033cat >>confdefs.h <<\_ACEOF
31034#define HAVE_GETTEXT 1
31035_ACEOF
31036
31037
31038cat >>confdefs.h <<\_ACEOF
31039#define HAVE_DCGETTEXT 1
31040_ACEOF
31041
31042    fi
31043
31044        POSUB=po
31045  fi
31046
31047
31048
31049    INTLLIBS="$LIBINTL"
31050
31051
31052
31053
31054
31055
31056                                                                                                    ac_config_files="$ac_config_files Makefile rxvt/Makefile widget/Makefile editor/Makefile po/Makefile.in pixmap/Makefile lib/Makefile syntax/Makefile m4/Makefile man/Makefile"
31057          ac_config_commands="$ac_config_commands default"
31058cat >confcache <<\_ACEOF
31059# This file is a shell script that caches the results of configure
31060# tests run on this system so they can be shared between configure
31061# scripts and configure runs, see configure's option --config-cache.
31062# It is not useful on other systems.  If it contains results you don't
31063# want to keep, you may remove or edit it.
31064#
31065# config.status only pays attention to the cache file if you give it
31066# the --recheck option to rerun configure.
31067#
31068# `ac_cv_env_foo' variables (set or unset) will be overridden when
31069# loading this file, other *unset* `ac_cv_foo' will be assigned the
31070# following values.
31071
31072_ACEOF
31073
31074# The following way of writing the cache mishandles newlines in values,
31075# but we know of no workaround that is simple, portable, and efficient.
31076# So, don't put newlines in cache variables' values.
31077# Ultrix sh set writes to stderr and can't be redirected directly,
31078# and sets the high bit in the cache file unless we assign to the vars.
31079{
31080  (set) 2>&1 |
31081    case `(ac_space=' '; set | grep ac_space) 2>&1` in
31082    *ac_space=\ *)
31083      # `set' does not quote correctly, so add quotes (double-quote
31084      # substitution turns \\\\ into \\, and sed turns \\ into \).
31085      sed -n \
31086	"s/'/'\\\\''/g;
31087	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31088      ;;
31089    *)
31090      # `set' quotes correctly as required by POSIX, so do not add quotes.
31091      sed -n \
31092	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31093      ;;
31094    esac;
31095} |
31096  sed '
31097     t clear
31098     : clear
31099     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31100     t end
31101     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31102     : end' >>confcache
31103if diff $cache_file confcache >/dev/null 2>&1; then :; else
31104  if test -w $cache_file; then
31105    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31106    cat confcache >$cache_file
31107  else
31108    echo "not updating unwritable cache $cache_file"
31109  fi
31110fi
31111rm -f confcache
31112
31113test "x$prefix" = xNONE && prefix=$ac_default_prefix
31114# Let make expand exec_prefix.
31115test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31116
31117# VPATH may cause trouble with some makes, so we remove $(srcdir),
31118# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31119# trailing colons and then remove the whole line if VPATH becomes empty
31120# (actually we leave an empty line to preserve line numbers).
31121if test "x$srcdir" = x.; then
31122  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31123s/:*\$(srcdir):*/:/;
31124s/:*\${srcdir}:*/:/;
31125s/:*@srcdir@:*/:/;
31126s/^\([^=]*=[	 ]*\):*/\1/;
31127s/:*$//;
31128s/^[^=]*=[	 ]*$//;
31129}'
31130fi
31131
31132DEFS=-DHAVE_CONFIG_H
31133
31134ac_libobjs=
31135ac_ltlibobjs=
31136for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31137  # 1. Remove the extension, and $U if already installed.
31138  ac_i=`echo "$ac_i" |
31139	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31140  # 2. Add them.
31141  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31142  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31143done
31144LIBOBJS=$ac_libobjs
31145
31146LTLIBOBJS=$ac_ltlibobjs
31147
31148
31149if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31150  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31151Usually this means the macro was only invoked conditionally." >&5
31152echo "$as_me: error: conditional \"AMDEP\" was never defined.
31153Usually this means the macro was only invoked conditionally." >&2;}
31154   { (exit 1); exit 1; }; }
31155fi
31156if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31157  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31158Usually this means the macro was only invoked conditionally." >&5
31159echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31160Usually this means the macro was only invoked conditionally." >&2;}
31161   { (exit 1); exit 1; }; }
31162fi
31163if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31164  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31165Usually this means the macro was only invoked conditionally." >&5
31166echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31167Usually this means the macro was only invoked conditionally." >&2;}
31168   { (exit 1); exit 1; }; }
31169fi
31170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31171  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31172Usually this means the macro was only invoked conditionally." >&5
31173echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31174Usually this means the macro was only invoked conditionally." >&2;}
31175   { (exit 1); exit 1; }; }
31176fi
31177
31178: ${CONFIG_STATUS=./config.status}
31179ac_clean_files_save=$ac_clean_files
31180ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31181{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31182echo "$as_me: creating $CONFIG_STATUS" >&6;}
31183cat >$CONFIG_STATUS <<_ACEOF
31184#! $SHELL
31185# Generated by $as_me.
31186# Run this file to recreate the current configuration.
31187# Compiler output produced by configure, useful for debugging
31188# configure, is in config.log if it exists.
31189
31190debug=false
31191ac_cs_recheck=false
31192ac_cs_silent=false
31193SHELL=\${CONFIG_SHELL-$SHELL}
31194_ACEOF
31195
31196cat >>$CONFIG_STATUS <<\_ACEOF
31197## --------------------- ##
31198## M4sh Initialization.  ##
31199## --------------------- ##
31200
31201# Be Bourne compatible
31202if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31203  emulate sh
31204  NULLCMD=:
31205  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31206  # is contrary to our usage.  Disable this feature.
31207  alias -g '${1+"$@"}'='"$@"'
31208elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31209  set -o posix
31210fi
31211DUALCASE=1; export DUALCASE # for MKS sh
31212
31213# Support unset when possible.
31214if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31215  as_unset=unset
31216else
31217  as_unset=false
31218fi
31219
31220
31221# Work around bugs in pre-3.0 UWIN ksh.
31222$as_unset ENV MAIL MAILPATH
31223PS1='$ '
31224PS2='> '
31225PS4='+ '
31226
31227# NLS nuisances.
31228for as_var in \
31229  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31230  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31231  LC_TELEPHONE LC_TIME
31232do
31233  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31234    eval $as_var=C; export $as_var
31235  else
31236    $as_unset $as_var
31237  fi
31238done
31239
31240# Required to use basename.
31241if expr a : '\(a\)' >/dev/null 2>&1; then
31242  as_expr=expr
31243else
31244  as_expr=false
31245fi
31246
31247if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31248  as_basename=basename
31249else
31250  as_basename=false
31251fi
31252
31253
31254# Name of the executable.
31255as_me=`$as_basename "$0" ||
31256$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31257	 X"$0" : 'X\(//\)$' \| \
31258	 X"$0" : 'X\(/\)$' \| \
31259	 .     : '\(.\)' 2>/dev/null ||
31260echo X/"$0" |
31261    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31262  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31263  	  /^X\/\(\/\).*/{ s//\1/; q; }
31264  	  s/.*/./; q'`
31265
31266
31267# PATH needs CR, and LINENO needs CR and PATH.
31268# Avoid depending upon Character Ranges.
31269as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31270as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31271as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31272as_cr_digits='0123456789'
31273as_cr_alnum=$as_cr_Letters$as_cr_digits
31274
31275# The user is always right.
31276if test "${PATH_SEPARATOR+set}" != set; then
31277  echo "#! /bin/sh" >conf$$.sh
31278  echo  "exit 0"   >>conf$$.sh
31279  chmod +x conf$$.sh
31280  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31281    PATH_SEPARATOR=';'
31282  else
31283    PATH_SEPARATOR=:
31284  fi
31285  rm -f conf$$.sh
31286fi
31287
31288
31289  as_lineno_1=$LINENO
31290  as_lineno_2=$LINENO
31291  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31292  test "x$as_lineno_1" != "x$as_lineno_2" &&
31293  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31294  # Find who we are.  Look in the path if we contain no path at all
31295  # relative or not.
31296  case $0 in
31297    *[\\/]* ) as_myself=$0 ;;
31298    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31299for as_dir in $PATH
31300do
31301  IFS=$as_save_IFS
31302  test -z "$as_dir" && as_dir=.
31303  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31304done
31305
31306       ;;
31307  esac
31308  # We did not find ourselves, most probably we were run as `sh COMMAND'
31309  # in which case we are not to be found in the path.
31310  if test "x$as_myself" = x; then
31311    as_myself=$0
31312  fi
31313  if test ! -f "$as_myself"; then
31314    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31315echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31316   { (exit 1); exit 1; }; }
31317  fi
31318  case $CONFIG_SHELL in
31319  '')
31320    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31322do
31323  IFS=$as_save_IFS
31324  test -z "$as_dir" && as_dir=.
31325  for as_base in sh bash ksh sh5; do
31326	 case $as_dir in
31327	 /*)
31328	   if ("$as_dir/$as_base" -c '
31329  as_lineno_1=$LINENO
31330  as_lineno_2=$LINENO
31331  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31332  test "x$as_lineno_1" != "x$as_lineno_2" &&
31333  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31334	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31335	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31336	     CONFIG_SHELL=$as_dir/$as_base
31337	     export CONFIG_SHELL
31338	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31339	   fi;;
31340	 esac
31341       done
31342done
31343;;
31344  esac
31345
31346  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31347  # uniformly replaced by the line number.  The first 'sed' inserts a
31348  # line-number line before each line; the second 'sed' does the real
31349  # work.  The second script uses 'N' to pair each line-number line
31350  # with the numbered line, and appends trailing '-' during
31351  # substitution so that $LINENO is not a special case at line end.
31352  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31353  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31354  sed '=' <$as_myself |
31355    sed '
31356      N
31357      s,$,-,
31358      : loop
31359      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31360      t loop
31361      s,-$,,
31362      s,^['$as_cr_digits']*\n,,
31363    ' >$as_me.lineno &&
31364  chmod +x $as_me.lineno ||
31365    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31366echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31367   { (exit 1); exit 1; }; }
31368
31369  # Don't try to exec as it changes $[0], causing all sort of problems
31370  # (the dirname of $[0] is not the place where we might find the
31371  # original and so on.  Autoconf is especially sensible to this).
31372  . ./$as_me.lineno
31373  # Exit status is that of the last command.
31374  exit
31375}
31376
31377
31378case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31379  *c*,-n*) ECHO_N= ECHO_C='
31380' ECHO_T='	' ;;
31381  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31382  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31383esac
31384
31385if expr a : '\(a\)' >/dev/null 2>&1; then
31386  as_expr=expr
31387else
31388  as_expr=false
31389fi
31390
31391rm -f conf$$ conf$$.exe conf$$.file
31392echo >conf$$.file
31393if ln -s conf$$.file conf$$ 2>/dev/null; then
31394  # We could just check for DJGPP; but this test a) works b) is more generic
31395  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31396  if test -f conf$$.exe; then
31397    # Don't use ln at all; we don't have any links
31398    as_ln_s='cp -p'
31399  else
31400    as_ln_s='ln -s'
31401  fi
31402elif ln conf$$.file conf$$ 2>/dev/null; then
31403  as_ln_s=ln
31404else
31405  as_ln_s='cp -p'
31406fi
31407rm -f conf$$ conf$$.exe conf$$.file
31408
31409if mkdir -p . 2>/dev/null; then
31410  as_mkdir_p=:
31411else
31412  test -d ./-p && rmdir ./-p
31413  as_mkdir_p=false
31414fi
31415
31416as_executable_p="test -f"
31417
31418# Sed expression to map a string onto a valid CPP name.
31419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31420
31421# Sed expression to map a string onto a valid variable name.
31422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31423
31424
31425# IFS
31426# We need space, tab and new line, in precisely that order.
31427as_nl='
31428'
31429IFS=" 	$as_nl"
31430
31431# CDPATH.
31432$as_unset CDPATH
31433
31434exec 6>&1
31435
31436# Open the log real soon, to keep \$[0] and so on meaningful, and to
31437# report actual input values of CONFIG_FILES etc. instead of their
31438# values after options handling.  Logging --version etc. is OK.
31439exec 5>>config.log
31440{
31441  echo
31442  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31443## Running $as_me. ##
31444_ASBOX
31445} >&5
31446cat >&5 <<_CSEOF
31447
31448This file was extended by $as_me, which was
31449generated by GNU Autoconf 2.59.  Invocation command line was
31450
31451  CONFIG_FILES    = $CONFIG_FILES
31452  CONFIG_HEADERS  = $CONFIG_HEADERS
31453  CONFIG_LINKS    = $CONFIG_LINKS
31454  CONFIG_COMMANDS = $CONFIG_COMMANDS
31455  $ $0 $@
31456
31457_CSEOF
31458echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31459echo >&5
31460_ACEOF
31461
31462# Files that config.status was made for.
31463if test -n "$ac_config_files"; then
31464  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31465fi
31466
31467if test -n "$ac_config_headers"; then
31468  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31469fi
31470
31471if test -n "$ac_config_links"; then
31472  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31473fi
31474
31475if test -n "$ac_config_commands"; then
31476  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31477fi
31478
31479cat >>$CONFIG_STATUS <<\_ACEOF
31480
31481ac_cs_usage="\
31482\`$as_me' instantiates files from templates according to the
31483current configuration.
31484
31485Usage: $0 [OPTIONS] [FILE]...
31486
31487  -h, --help       print this help, then exit
31488  -V, --version    print version number, then exit
31489  -q, --quiet      do not print progress messages
31490  -d, --debug      don't remove temporary files
31491      --recheck    update $as_me by reconfiguring in the same conditions
31492  --file=FILE[:TEMPLATE]
31493		   instantiate the configuration file FILE
31494  --header=FILE[:TEMPLATE]
31495		   instantiate the configuration header FILE
31496
31497Configuration files:
31498$config_files
31499
31500Configuration headers:
31501$config_headers
31502
31503Configuration links:
31504$config_links
31505
31506Configuration commands:
31507$config_commands
31508
31509Report bugs to <bug-autoconf@gnu.org>."
31510_ACEOF
31511
31512cat >>$CONFIG_STATUS <<_ACEOF
31513ac_cs_version="\\
31514config.status
31515configured by $0, generated by GNU Autoconf 2.59,
31516  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31517
31518Copyright (C) 2003 Free Software Foundation, Inc.
31519This config.status script is free software; the Free Software Foundation
31520gives unlimited permission to copy, distribute and modify it."
31521srcdir=$srcdir
31522INSTALL="$INSTALL"
31523_ACEOF
31524
31525cat >>$CONFIG_STATUS <<\_ACEOF
31526# If no file are specified by the user, then we need to provide default
31527# value.  By we need to know if files were specified by the user.
31528ac_need_defaults=:
31529while test $# != 0
31530do
31531  case $1 in
31532  --*=*)
31533    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31534    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31535    ac_shift=:
31536    ;;
31537  -*)
31538    ac_option=$1
31539    ac_optarg=$2
31540    ac_shift=shift
31541    ;;
31542  *) # This is not an option, so the user has probably given explicit
31543     # arguments.
31544     ac_option=$1
31545     ac_need_defaults=false;;
31546  esac
31547
31548  case $ac_option in
31549  # Handling of the options.
31550_ACEOF
31551cat >>$CONFIG_STATUS <<\_ACEOF
31552  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31553    ac_cs_recheck=: ;;
31554  --version | --vers* | -V )
31555    echo "$ac_cs_version"; exit 0 ;;
31556  --he | --h)
31557    # Conflict between --help and --header
31558    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31559Try \`$0 --help' for more information." >&5
31560echo "$as_me: error: ambiguous option: $1
31561Try \`$0 --help' for more information." >&2;}
31562   { (exit 1); exit 1; }; };;
31563  --help | --hel | -h )
31564    echo "$ac_cs_usage"; exit 0 ;;
31565  --debug | --d* | -d )
31566    debug=: ;;
31567  --file | --fil | --fi | --f )
31568    $ac_shift
31569    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31570    ac_need_defaults=false;;
31571  --header | --heade | --head | --hea )
31572    $ac_shift
31573    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31574    ac_need_defaults=false;;
31575  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31576  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31577    ac_cs_silent=: ;;
31578
31579  # This is an error.
31580  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31581Try \`$0 --help' for more information." >&5
31582echo "$as_me: error: unrecognized option: $1
31583Try \`$0 --help' for more information." >&2;}
31584   { (exit 1); exit 1; }; } ;;
31585
31586  *) ac_config_targets="$ac_config_targets $1" ;;
31587
31588  esac
31589  shift
31590done
31591
31592ac_configure_extra_args=
31593
31594if $ac_cs_silent; then
31595  exec 6>/dev/null
31596  ac_configure_extra_args="$ac_configure_extra_args --silent"
31597fi
31598
31599_ACEOF
31600cat >>$CONFIG_STATUS <<_ACEOF
31601if \$ac_cs_recheck; then
31602  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31603  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31604fi
31605
31606_ACEOF
31607
31608cat >>$CONFIG_STATUS <<_ACEOF
31609#
31610# INIT-COMMANDS section.
31611#
31612
31613AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31614# Capture the value of obsolete $ALL_LINGUAS because we need it to compute
31615    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
31616    # from automake.
31617    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
31618    # Capture the value of LINGUAS because we need it to compute CATALOGS.
31619    LINGUAS="${LINGUAS-%UNSET%}"
31620
31621
31622_ACEOF
31623
31624
31625
31626cat >>$CONFIG_STATUS <<\_ACEOF
31627for ac_config_target in $ac_config_targets
31628do
31629  case "$ac_config_target" in
31630  # Handling of arguments.
31631  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31632  "rxvt/Makefile" ) CONFIG_FILES="$CONFIG_FILES rxvt/Makefile" ;;
31633  "widget/Makefile" ) CONFIG_FILES="$CONFIG_FILES widget/Makefile" ;;
31634  "editor/Makefile" ) CONFIG_FILES="$CONFIG_FILES editor/Makefile" ;;
31635  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31636  "pixmap/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmap/Makefile" ;;
31637  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
31638  "syntax/Makefile" ) CONFIG_FILES="$CONFIG_FILES syntax/Makefile" ;;
31639  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
31640  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
31641  "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
31642  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31643  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31644  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31645  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31646  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31647echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31648   { (exit 1); exit 1; }; };;
31649  esac
31650done
31651
31652# If the user did not use the arguments to specify the items to instantiate,
31653# then the envvar interface is used.  Set only those that are not.
31654# We use the long form for the default assignment because of an extremely
31655# bizarre bug on SunOS 4.1.3.
31656if $ac_need_defaults; then
31657  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31658  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31659  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31660  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31661fi
31662
31663# Have a temporary directory for convenience.  Make it in the build tree
31664# simply because there is no reason to put it here, and in addition,
31665# creating and moving files from /tmp can sometimes cause problems.
31666# Create a temporary directory, and hook for its removal unless debugging.
31667$debug ||
31668{
31669  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31670  trap '{ (exit 1); exit 1; }' 1 2 13 15
31671}
31672
31673# Create a (secure) tmp directory for tmp files.
31674
31675{
31676  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31677  test -n "$tmp" && test -d "$tmp"
31678}  ||
31679{
31680  tmp=./confstat$$-$RANDOM
31681  (umask 077 && mkdir $tmp)
31682} ||
31683{
31684   echo "$me: cannot create a temporary directory in ." >&2
31685   { (exit 1); exit 1; }
31686}
31687
31688_ACEOF
31689
31690cat >>$CONFIG_STATUS <<_ACEOF
31691
31692#
31693# CONFIG_FILES section.
31694#
31695
31696# No need to generate the scripts if there are no CONFIG_FILES.
31697# This happens for instance when ./config.status config.h
31698if test -n "\$CONFIG_FILES"; then
31699  # Protect against being on the right side of a sed subst in config.status.
31700  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31701   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31702s,@SHELL@,$SHELL,;t t
31703s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31704s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31705s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31706s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31707s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31708s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31709s,@exec_prefix@,$exec_prefix,;t t
31710s,@prefix@,$prefix,;t t
31711s,@program_transform_name@,$program_transform_name,;t t
31712s,@bindir@,$bindir,;t t
31713s,@sbindir@,$sbindir,;t t
31714s,@libexecdir@,$libexecdir,;t t
31715s,@datadir@,$datadir,;t t
31716s,@sysconfdir@,$sysconfdir,;t t
31717s,@sharedstatedir@,$sharedstatedir,;t t
31718s,@localstatedir@,$localstatedir,;t t
31719s,@libdir@,$libdir,;t t
31720s,@includedir@,$includedir,;t t
31721s,@oldincludedir@,$oldincludedir,;t t
31722s,@infodir@,$infodir,;t t
31723s,@mandir@,$mandir,;t t
31724s,@build_alias@,$build_alias,;t t
31725s,@host_alias@,$host_alias,;t t
31726s,@target_alias@,$target_alias,;t t
31727s,@DEFS@,$DEFS,;t t
31728s,@ECHO_C@,$ECHO_C,;t t
31729s,@ECHO_N@,$ECHO_N,;t t
31730s,@ECHO_T@,$ECHO_T,;t t
31731s,@LIBS@,$LIBS,;t t
31732s,@build@,$build,;t t
31733s,@build_cpu@,$build_cpu,;t t
31734s,@build_vendor@,$build_vendor,;t t
31735s,@build_os@,$build_os,;t t
31736s,@host@,$host,;t t
31737s,@host_cpu@,$host_cpu,;t t
31738s,@host_vendor@,$host_vendor,;t t
31739s,@host_os@,$host_os,;t t
31740s,@target@,$target,;t t
31741s,@target_cpu@,$target_cpu,;t t
31742s,@target_vendor@,$target_vendor,;t t
31743s,@target_os@,$target_os,;t t
31744s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31745s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31746s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31747s,@CYGPATH_W@,$CYGPATH_W,;t t
31748s,@PACKAGE@,$PACKAGE,;t t
31749s,@VERSION@,$VERSION,;t t
31750s,@ACLOCAL@,$ACLOCAL,;t t
31751s,@AUTOCONF@,$AUTOCONF,;t t
31752s,@AUTOMAKE@,$AUTOMAKE,;t t
31753s,@AUTOHEADER@,$AUTOHEADER,;t t
31754s,@MAKEINFO@,$MAKEINFO,;t t
31755s,@install_sh@,$install_sh,;t t
31756s,@STRIP@,$STRIP,;t t
31757s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31758s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31759s,@mkdir_p@,$mkdir_p,;t t
31760s,@AWK@,$AWK,;t t
31761s,@SET_MAKE@,$SET_MAKE,;t t
31762s,@am__leading_dot@,$am__leading_dot,;t t
31763s,@AMTAR@,$AMTAR,;t t
31764s,@am__tar@,$am__tar,;t t
31765s,@am__untar@,$am__untar,;t t
31766s,@CC@,$CC,;t t
31767s,@CFLAGS@,$CFLAGS,;t t
31768s,@LDFLAGS@,$LDFLAGS,;t t
31769s,@CPPFLAGS@,$CPPFLAGS,;t t
31770s,@ac_ct_CC@,$ac_ct_CC,;t t
31771s,@EXEEXT@,$EXEEXT,;t t
31772s,@OBJEXT@,$OBJEXT,;t t
31773s,@DEPDIR@,$DEPDIR,;t t
31774s,@am__include@,$am__include,;t t
31775s,@am__quote@,$am__quote,;t t
31776s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31777s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31778s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31779s,@CCDEPMODE@,$CCDEPMODE,;t t
31780s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31781s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31782s,@CPP@,$CPP,;t t
31783s,@EGREP@,$EGREP,;t t
31784s,@LN_S@,$LN_S,;t t
31785s,@ECHO@,$ECHO,;t t
31786s,@AR@,$AR,;t t
31787s,@ac_ct_AR@,$ac_ct_AR,;t t
31788s,@RANLIB@,$RANLIB,;t t
31789s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31790s,@CXX@,$CXX,;t t
31791s,@CXXFLAGS@,$CXXFLAGS,;t t
31792s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31793s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31794s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31795s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31796s,@CXXCPP@,$CXXCPP,;t t
31797s,@F77@,$F77,;t t
31798s,@FFLAGS@,$FFLAGS,;t t
31799s,@ac_ct_F77@,$ac_ct_F77,;t t
31800s,@LIBTOOL@,$LIBTOOL,;t t
31801s,@CATALOGS@,$CATALOGS,;t t
31802s,@X_CFLAGS@,$X_CFLAGS,;t t
31803s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31804s,@X_LIBS@,$X_LIBS,;t t
31805s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31806s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31807s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
31808s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
31809s,@rxvt_u_int16_typedef@,$rxvt_u_int16_typedef,;t t
31810s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
31811s,@rxvt_u_int32_typedef@,$rxvt_u_int32_typedef,;t t
31812s,@rxvt_int64_typedef@,$rxvt_int64_typedef,;t t
31813s,@rxvt_u_int64_typedef@,$rxvt_u_int64_typedef,;t t
31814s,@rxvt_intp_define@,$rxvt_intp_define,;t t
31815s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
31816s,@ALLOCA@,$ALLOCA,;t t
31817s,@PTYS_ARE_NUMERIC@,$PTYS_ARE_NUMERIC,;t t
31818s,@PTYS_ARE_PTMX@,$PTYS_ARE_PTMX,;t t
31819s,@PTYS_ARE_SEARCHED@,$PTYS_ARE_SEARCHED,;t t
31820s,@PTYS_ARE_PTC@,$PTYS_ARE_PTC,;t t
31821s,@PTYS_ARE__GETPTY@,$PTYS_ARE__GETPTY,;t t
31822s,@PTYS_ARE_GETPTY@,$PTYS_ARE_GETPTY,;t t
31823s,@PTYS_ARE_GETPT@,$PTYS_ARE_GETPT,;t t
31824s,@PTYS_ARE_CLONE@,$PTYS_ARE_CLONE,;t t
31825s,@DEBUG@,$DEBUG,;t t
31826s,@DLIB@,$DLIB,;t t
31827s,@DINCLUDE@,$DINCLUDE,;t t
31828s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31829s,@MSGFMT@,$MSGFMT,;t t
31830s,@GMSGFMT@,$GMSGFMT,;t t
31831s,@XGETTEXT@,$XGETTEXT,;t t
31832s,@MSGMERGE@,$MSGMERGE,;t t
31833s,@USE_NLS@,$USE_NLS,;t t
31834s,@LIBICONV@,$LIBICONV,;t t
31835s,@LTLIBICONV@,$LTLIBICONV,;t t
31836s,@INTLLIBS@,$INTLLIBS,;t t
31837s,@LIBINTL@,$LIBINTL,;t t
31838s,@LTLIBINTL@,$LTLIBINTL,;t t
31839s,@POSUB@,$POSUB,;t t
31840s,@LIBOBJS@,$LIBOBJS,;t t
31841s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31842CEOF
31843
31844_ACEOF
31845
31846  cat >>$CONFIG_STATUS <<\_ACEOF
31847  # Split the substitutions into bite-sized pieces for seds with
31848  # small command number limits, like on Digital OSF/1 and HP-UX.
31849  ac_max_sed_lines=48
31850  ac_sed_frag=1 # Number of current file.
31851  ac_beg=1 # First line for current file.
31852  ac_end=$ac_max_sed_lines # Line after last line for current file.
31853  ac_more_lines=:
31854  ac_sed_cmds=
31855  while $ac_more_lines; do
31856    if test $ac_beg -gt 1; then
31857      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31858    else
31859      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31860    fi
31861    if test ! -s $tmp/subs.frag; then
31862      ac_more_lines=false
31863    else
31864      # The purpose of the label and of the branching condition is to
31865      # speed up the sed processing (if there are no `@' at all, there
31866      # is no need to browse any of the substitutions).
31867      # These are the two extra sed commands mentioned above.
31868      (echo ':t
31869  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31870      if test -z "$ac_sed_cmds"; then
31871	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31872      else
31873	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31874      fi
31875      ac_sed_frag=`expr $ac_sed_frag + 1`
31876      ac_beg=$ac_end
31877      ac_end=`expr $ac_end + $ac_max_sed_lines`
31878    fi
31879  done
31880  if test -z "$ac_sed_cmds"; then
31881    ac_sed_cmds=cat
31882  fi
31883fi # test -n "$CONFIG_FILES"
31884
31885_ACEOF
31886cat >>$CONFIG_STATUS <<\_ACEOF
31887for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31888  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31889  case $ac_file in
31890  - | *:- | *:-:* ) # input from stdin
31891	cat >$tmp/stdin
31892	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31893	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31894  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31895	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31896  * )   ac_file_in=$ac_file.in ;;
31897  esac
31898
31899  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31900  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31902	 X"$ac_file" : 'X\(//\)[^/]' \| \
31903	 X"$ac_file" : 'X\(//\)$' \| \
31904	 X"$ac_file" : 'X\(/\)' \| \
31905	 .     : '\(.\)' 2>/dev/null ||
31906echo X"$ac_file" |
31907    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31908  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31909  	  /^X\(\/\/\)$/{ s//\1/; q; }
31910  	  /^X\(\/\).*/{ s//\1/; q; }
31911  	  s/.*/./; q'`
31912  { if $as_mkdir_p; then
31913    mkdir -p "$ac_dir"
31914  else
31915    as_dir="$ac_dir"
31916    as_dirs=
31917    while test ! -d "$as_dir"; do
31918      as_dirs="$as_dir $as_dirs"
31919      as_dir=`(dirname "$as_dir") 2>/dev/null ||
31920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31921	 X"$as_dir" : 'X\(//\)[^/]' \| \
31922	 X"$as_dir" : 'X\(//\)$' \| \
31923	 X"$as_dir" : 'X\(/\)' \| \
31924	 .     : '\(.\)' 2>/dev/null ||
31925echo X"$as_dir" |
31926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31927  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31928  	  /^X\(\/\/\)$/{ s//\1/; q; }
31929  	  /^X\(\/\).*/{ s//\1/; q; }
31930  	  s/.*/./; q'`
31931    done
31932    test ! -n "$as_dirs" || mkdir $as_dirs
31933  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31934echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31935   { (exit 1); exit 1; }; }; }
31936
31937  ac_builddir=.
31938
31939if test "$ac_dir" != .; then
31940  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31941  # A "../" for each directory in $ac_dir_suffix.
31942  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31943else
31944  ac_dir_suffix= ac_top_builddir=
31945fi
31946
31947case $srcdir in
31948  .)  # No --srcdir option.  We are building in place.
31949    ac_srcdir=.
31950    if test -z "$ac_top_builddir"; then
31951       ac_top_srcdir=.
31952    else
31953       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31954    fi ;;
31955  [\\/]* | ?:[\\/]* )  # Absolute path.
31956    ac_srcdir=$srcdir$ac_dir_suffix;
31957    ac_top_srcdir=$srcdir ;;
31958  *) # Relative path.
31959    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31960    ac_top_srcdir=$ac_top_builddir$srcdir ;;
31961esac
31962
31963# Do not use `cd foo && pwd` to compute absolute paths, because
31964# the directories may not exist.
31965case `pwd` in
31966.) ac_abs_builddir="$ac_dir";;
31967*)
31968  case "$ac_dir" in
31969  .) ac_abs_builddir=`pwd`;;
31970  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31971  *) ac_abs_builddir=`pwd`/"$ac_dir";;
31972  esac;;
31973esac
31974case $ac_abs_builddir in
31975.) ac_abs_top_builddir=${ac_top_builddir}.;;
31976*)
31977  case ${ac_top_builddir}. in
31978  .) ac_abs_top_builddir=$ac_abs_builddir;;
31979  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31980  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31981  esac;;
31982esac
31983case $ac_abs_builddir in
31984.) ac_abs_srcdir=$ac_srcdir;;
31985*)
31986  case $ac_srcdir in
31987  .) ac_abs_srcdir=$ac_abs_builddir;;
31988  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31989  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31990  esac;;
31991esac
31992case $ac_abs_builddir in
31993.) ac_abs_top_srcdir=$ac_top_srcdir;;
31994*)
31995  case $ac_top_srcdir in
31996  .) ac_abs_top_srcdir=$ac_abs_builddir;;
31997  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31998  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31999  esac;;
32000esac
32001
32002
32003  case $INSTALL in
32004  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32005  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32006  esac
32007
32008  if test x"$ac_file" != x-; then
32009    { echo "$as_me:$LINENO: creating $ac_file" >&5
32010echo "$as_me: creating $ac_file" >&6;}
32011    rm -f "$ac_file"
32012  fi
32013  # Let's still pretend it is `configure' which instantiates (i.e., don't
32014  # use $as_me), people would be surprised to read:
32015  #    /* config.h.  Generated by config.status.  */
32016  if test x"$ac_file" = x-; then
32017    configure_input=
32018  else
32019    configure_input="$ac_file.  "
32020  fi
32021  configure_input=$configure_input"Generated from `echo $ac_file_in |
32022				     sed 's,.*/,,'` by configure."
32023
32024  # First look for the input files in the build tree, otherwise in the
32025  # src tree.
32026  ac_file_inputs=`IFS=:
32027    for f in $ac_file_in; do
32028      case $f in
32029      -) echo $tmp/stdin ;;
32030      [\\/$]*)
32031	 # Absolute (can't be DOS-style, as IFS=:)
32032	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32033echo "$as_me: error: cannot find input file: $f" >&2;}
32034   { (exit 1); exit 1; }; }
32035	 echo "$f";;
32036      *) # Relative
32037	 if test -f "$f"; then
32038	   # Build tree
32039	   echo "$f"
32040	 elif test -f "$srcdir/$f"; then
32041	   # Source tree
32042	   echo "$srcdir/$f"
32043	 else
32044	   # /dev/null tree
32045	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32046echo "$as_me: error: cannot find input file: $f" >&2;}
32047   { (exit 1); exit 1; }; }
32048	 fi;;
32049      esac
32050    done` || { (exit 1); exit 1; }
32051_ACEOF
32052cat >>$CONFIG_STATUS <<_ACEOF
32053  sed "$ac_vpsub
32054$extrasub
32055_ACEOF
32056cat >>$CONFIG_STATUS <<\_ACEOF
32057:t
32058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32059s,@configure_input@,$configure_input,;t t
32060s,@srcdir@,$ac_srcdir,;t t
32061s,@abs_srcdir@,$ac_abs_srcdir,;t t
32062s,@top_srcdir@,$ac_top_srcdir,;t t
32063s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32064s,@builddir@,$ac_builddir,;t t
32065s,@abs_builddir@,$ac_abs_builddir,;t t
32066s,@top_builddir@,$ac_top_builddir,;t t
32067s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32068s,@INSTALL@,$ac_INSTALL,;t t
32069" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32070  rm -f $tmp/stdin
32071  if test x"$ac_file" != x-; then
32072    mv $tmp/out $ac_file
32073  else
32074    cat $tmp/out
32075    rm -f $tmp/out
32076  fi
32077
32078done
32079_ACEOF
32080cat >>$CONFIG_STATUS <<\_ACEOF
32081
32082#
32083# CONFIG_HEADER section.
32084#
32085
32086# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32087# NAME is the cpp macro being defined and VALUE is the value it is being given.
32088#
32089# ac_d sets the value in "#define NAME VALUE" lines.
32090ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
32091ac_dB='[	 ].*$,\1#\2'
32092ac_dC=' '
32093ac_dD=',;t'
32094# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32095ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
32096ac_uB='$,\1#\2define\3'
32097ac_uC=' '
32098ac_uD=',;t'
32099
32100for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32101  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32102  case $ac_file in
32103  - | *:- | *:-:* ) # input from stdin
32104	cat >$tmp/stdin
32105	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32106	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32107  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32108	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32109  * )   ac_file_in=$ac_file.in ;;
32110  esac
32111
32112  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32113echo "$as_me: creating $ac_file" >&6;}
32114
32115  # First look for the input files in the build tree, otherwise in the
32116  # src tree.
32117  ac_file_inputs=`IFS=:
32118    for f in $ac_file_in; do
32119      case $f in
32120      -) echo $tmp/stdin ;;
32121      [\\/$]*)
32122	 # Absolute (can't be DOS-style, as IFS=:)
32123	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32124echo "$as_me: error: cannot find input file: $f" >&2;}
32125   { (exit 1); exit 1; }; }
32126	 # Do quote $f, to prevent DOS paths from being IFS'd.
32127	 echo "$f";;
32128      *) # Relative
32129	 if test -f "$f"; then
32130	   # Build tree
32131	   echo "$f"
32132	 elif test -f "$srcdir/$f"; then
32133	   # Source tree
32134	   echo "$srcdir/$f"
32135	 else
32136	   # /dev/null tree
32137	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32138echo "$as_me: error: cannot find input file: $f" >&2;}
32139   { (exit 1); exit 1; }; }
32140	 fi;;
32141      esac
32142    done` || { (exit 1); exit 1; }
32143  # Remove the trailing spaces.
32144  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
32145
32146_ACEOF
32147
32148# Transform confdefs.h into two sed scripts, `conftest.defines' and
32149# `conftest.undefs', that substitutes the proper values into
32150# config.h.in to produce config.h.  The first handles `#define'
32151# templates, and the second `#undef' templates.
32152# And first: Protect against being on the right side of a sed subst in
32153# config.status.  Protect against being in an unquoted here document
32154# in config.status.
32155rm -f conftest.defines conftest.undefs
32156# Using a here document instead of a string reduces the quoting nightmare.
32157# Putting comments in sed scripts is not portable.
32158#
32159# `end' is used to avoid that the second main sed command (meant for
32160# 0-ary CPP macros) applies to n-ary macro definitions.
32161# See the Autoconf documentation for `clear'.
32162cat >confdef2sed.sed <<\_ACEOF
32163s/[\\&,]/\\&/g
32164s,[\\$`],\\&,g
32165t clear
32166: clear
32167s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32168t end
32169s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32170: end
32171_ACEOF
32172# If some macros were called several times there might be several times
32173# the same #defines, which is useless.  Nevertheless, we may not want to
32174# sort them, since we want the *last* AC-DEFINE to be honored.
32175uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32176sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32177rm -f confdef2sed.sed
32178
32179# This sed command replaces #undef with comments.  This is necessary, for
32180# example, in the case of _POSIX_SOURCE, which is predefined and required
32181# on some systems where configure will not decide to define it.
32182cat >>conftest.undefs <<\_ACEOF
32183s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32184_ACEOF
32185
32186# Break up conftest.defines because some shells have a limit on the size
32187# of here documents, and old seds have small limits too (100 cmds).
32188echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32189echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32190echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32191echo '  :' >>$CONFIG_STATUS
32192rm -f conftest.tail
32193while grep . conftest.defines >/dev/null
32194do
32195  # Write a limited-size here document to $tmp/defines.sed.
32196  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32197  # Speed up: don't consider the non `#define' lines.
32198  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
32199  # Work around the forget-to-reset-the-flag bug.
32200  echo 't clr' >>$CONFIG_STATUS
32201  echo ': clr' >>$CONFIG_STATUS
32202  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32203  echo 'CEOF
32204  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32205  rm -f $tmp/in
32206  mv $tmp/out $tmp/in
32207' >>$CONFIG_STATUS
32208  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32209  rm -f conftest.defines
32210  mv conftest.tail conftest.defines
32211done
32212rm -f conftest.defines
32213echo '  fi # grep' >>$CONFIG_STATUS
32214echo >>$CONFIG_STATUS
32215
32216# Break up conftest.undefs because some shells have a limit on the size
32217# of here documents, and old seds have small limits too (100 cmds).
32218echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32219rm -f conftest.tail
32220while grep . conftest.undefs >/dev/null
32221do
32222  # Write a limited-size here document to $tmp/undefs.sed.
32223  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32224  # Speed up: don't consider the non `#undef'
32225  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32226  # Work around the forget-to-reset-the-flag bug.
32227  echo 't clr' >>$CONFIG_STATUS
32228  echo ': clr' >>$CONFIG_STATUS
32229  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32230  echo 'CEOF
32231  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32232  rm -f $tmp/in
32233  mv $tmp/out $tmp/in
32234' >>$CONFIG_STATUS
32235  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32236  rm -f conftest.undefs
32237  mv conftest.tail conftest.undefs
32238done
32239rm -f conftest.undefs
32240
32241cat >>$CONFIG_STATUS <<\_ACEOF
32242  # Let's still pretend it is `configure' which instantiates (i.e., don't
32243  # use $as_me), people would be surprised to read:
32244  #    /* config.h.  Generated by config.status.  */
32245  if test x"$ac_file" = x-; then
32246    echo "/* Generated by configure.  */" >$tmp/config.h
32247  else
32248    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32249  fi
32250  cat $tmp/in >>$tmp/config.h
32251  rm -f $tmp/in
32252  if test x"$ac_file" != x-; then
32253    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32254      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32255echo "$as_me: $ac_file is unchanged" >&6;}
32256    else
32257      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32259	 X"$ac_file" : 'X\(//\)[^/]' \| \
32260	 X"$ac_file" : 'X\(//\)$' \| \
32261	 X"$ac_file" : 'X\(/\)' \| \
32262	 .     : '\(.\)' 2>/dev/null ||
32263echo X"$ac_file" |
32264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32265  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32266  	  /^X\(\/\/\)$/{ s//\1/; q; }
32267  	  /^X\(\/\).*/{ s//\1/; q; }
32268  	  s/.*/./; q'`
32269      { if $as_mkdir_p; then
32270    mkdir -p "$ac_dir"
32271  else
32272    as_dir="$ac_dir"
32273    as_dirs=
32274    while test ! -d "$as_dir"; do
32275      as_dirs="$as_dir $as_dirs"
32276      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32278	 X"$as_dir" : 'X\(//\)[^/]' \| \
32279	 X"$as_dir" : 'X\(//\)$' \| \
32280	 X"$as_dir" : 'X\(/\)' \| \
32281	 .     : '\(.\)' 2>/dev/null ||
32282echo X"$as_dir" |
32283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32284  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32285  	  /^X\(\/\/\)$/{ s//\1/; q; }
32286  	  /^X\(\/\).*/{ s//\1/; q; }
32287  	  s/.*/./; q'`
32288    done
32289    test ! -n "$as_dirs" || mkdir $as_dirs
32290  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32291echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32292   { (exit 1); exit 1; }; }; }
32293
32294      rm -f $ac_file
32295      mv $tmp/config.h $ac_file
32296    fi
32297  else
32298    cat $tmp/config.h
32299    rm -f $tmp/config.h
32300  fi
32301# Compute $ac_file's index in $config_headers.
32302_am_stamp_count=1
32303for _am_header in $config_headers :; do
32304  case $_am_header in
32305    $ac_file | $ac_file:* )
32306      break ;;
32307    * )
32308      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32309  esac
32310done
32311echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32312$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32313	 X$ac_file : 'X\(//\)[^/]' \| \
32314	 X$ac_file : 'X\(//\)$' \| \
32315	 X$ac_file : 'X\(/\)' \| \
32316	 .     : '\(.\)' 2>/dev/null ||
32317echo X$ac_file |
32318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32319  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32320  	  /^X\(\/\/\)$/{ s//\1/; q; }
32321  	  /^X\(\/\).*/{ s//\1/; q; }
32322  	  s/.*/./; q'`/stamp-h$_am_stamp_count
32323done
32324_ACEOF
32325cat >>$CONFIG_STATUS <<\_ACEOF
32326
32327#
32328# CONFIG_LINKS section.
32329#
32330
32331for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
32332  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32333  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32334
32335  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
32336echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
32337
32338  if test ! -r $srcdir/$ac_source; then
32339    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
32340echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
32341   { (exit 1); exit 1; }; }
32342  fi
32343  rm -f $ac_dest
32344
32345  # Make relative symlinks.
32346  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
32347$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32348	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32349	 X"$ac_dest" : 'X\(//\)$' \| \
32350	 X"$ac_dest" : 'X\(/\)' \| \
32351	 .     : '\(.\)' 2>/dev/null ||
32352echo X"$ac_dest" |
32353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32354  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32355  	  /^X\(\/\/\)$/{ s//\1/; q; }
32356  	  /^X\(\/\).*/{ s//\1/; q; }
32357  	  s/.*/./; q'`
32358  { if $as_mkdir_p; then
32359    mkdir -p "$ac_dest_dir"
32360  else
32361    as_dir="$ac_dest_dir"
32362    as_dirs=
32363    while test ! -d "$as_dir"; do
32364      as_dirs="$as_dir $as_dirs"
32365      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32367	 X"$as_dir" : 'X\(//\)[^/]' \| \
32368	 X"$as_dir" : 'X\(//\)$' \| \
32369	 X"$as_dir" : 'X\(/\)' \| \
32370	 .     : '\(.\)' 2>/dev/null ||
32371echo X"$as_dir" |
32372    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32373  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32374  	  /^X\(\/\/\)$/{ s//\1/; q; }
32375  	  /^X\(\/\).*/{ s//\1/; q; }
32376  	  s/.*/./; q'`
32377    done
32378    test ! -n "$as_dirs" || mkdir $as_dirs
32379  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
32380echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
32381   { (exit 1); exit 1; }; }; }
32382
32383  ac_builddir=.
32384
32385if test "$ac_dest_dir" != .; then
32386  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
32387  # A "../" for each directory in $ac_dir_suffix.
32388  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32389else
32390  ac_dir_suffix= ac_top_builddir=
32391fi
32392
32393case $srcdir in
32394  .)  # No --srcdir option.  We are building in place.
32395    ac_srcdir=.
32396    if test -z "$ac_top_builddir"; then
32397       ac_top_srcdir=.
32398    else
32399       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32400    fi ;;
32401  [\\/]* | ?:[\\/]* )  # Absolute path.
32402    ac_srcdir=$srcdir$ac_dir_suffix;
32403    ac_top_srcdir=$srcdir ;;
32404  *) # Relative path.
32405    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32406    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32407esac
32408
32409# Do not use `cd foo && pwd` to compute absolute paths, because
32410# the directories may not exist.
32411case `pwd` in
32412.) ac_abs_builddir="$ac_dest_dir";;
32413*)
32414  case "$ac_dest_dir" in
32415  .) ac_abs_builddir=`pwd`;;
32416  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
32417  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
32418  esac;;
32419esac
32420case $ac_abs_builddir in
32421.) ac_abs_top_builddir=${ac_top_builddir}.;;
32422*)
32423  case ${ac_top_builddir}. in
32424  .) ac_abs_top_builddir=$ac_abs_builddir;;
32425  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32426  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32427  esac;;
32428esac
32429case $ac_abs_builddir in
32430.) ac_abs_srcdir=$ac_srcdir;;
32431*)
32432  case $ac_srcdir in
32433  .) ac_abs_srcdir=$ac_abs_builddir;;
32434  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32435  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32436  esac;;
32437esac
32438case $ac_abs_builddir in
32439.) ac_abs_top_srcdir=$ac_top_srcdir;;
32440*)
32441  case $ac_top_srcdir in
32442  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32443  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32444  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32445  esac;;
32446esac
32447
32448
32449  case $srcdir in
32450  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
32451      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
32452  esac
32453
32454  # Try a symlink, then a hard link, then a copy.
32455  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
32456    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
32457    cp -p $srcdir/$ac_source $ac_dest ||
32458    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
32459echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
32460   { (exit 1); exit 1; }; }
32461done
32462_ACEOF
32463cat >>$CONFIG_STATUS <<\_ACEOF
32464
32465#
32466# CONFIG_COMMANDS section.
32467#
32468for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32469  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32470  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32471  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32472$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32473	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32474	 X"$ac_dest" : 'X\(//\)$' \| \
32475	 X"$ac_dest" : 'X\(/\)' \| \
32476	 .     : '\(.\)' 2>/dev/null ||
32477echo X"$ac_dest" |
32478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32479  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32480  	  /^X\(\/\/\)$/{ s//\1/; q; }
32481  	  /^X\(\/\).*/{ s//\1/; q; }
32482  	  s/.*/./; q'`
32483  { if $as_mkdir_p; then
32484    mkdir -p "$ac_dir"
32485  else
32486    as_dir="$ac_dir"
32487    as_dirs=
32488    while test ! -d "$as_dir"; do
32489      as_dirs="$as_dir $as_dirs"
32490      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32492	 X"$as_dir" : 'X\(//\)[^/]' \| \
32493	 X"$as_dir" : 'X\(//\)$' \| \
32494	 X"$as_dir" : 'X\(/\)' \| \
32495	 .     : '\(.\)' 2>/dev/null ||
32496echo X"$as_dir" |
32497    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32498  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32499  	  /^X\(\/\/\)$/{ s//\1/; q; }
32500  	  /^X\(\/\).*/{ s//\1/; q; }
32501  	  s/.*/./; q'`
32502    done
32503    test ! -n "$as_dirs" || mkdir $as_dirs
32504  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32505echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32506   { (exit 1); exit 1; }; }; }
32507
32508  ac_builddir=.
32509
32510if test "$ac_dir" != .; then
32511  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32512  # A "../" for each directory in $ac_dir_suffix.
32513  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32514else
32515  ac_dir_suffix= ac_top_builddir=
32516fi
32517
32518case $srcdir in
32519  .)  # No --srcdir option.  We are building in place.
32520    ac_srcdir=.
32521    if test -z "$ac_top_builddir"; then
32522       ac_top_srcdir=.
32523    else
32524       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32525    fi ;;
32526  [\\/]* | ?:[\\/]* )  # Absolute path.
32527    ac_srcdir=$srcdir$ac_dir_suffix;
32528    ac_top_srcdir=$srcdir ;;
32529  *) # Relative path.
32530    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32531    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32532esac
32533
32534# Do not use `cd foo && pwd` to compute absolute paths, because
32535# the directories may not exist.
32536case `pwd` in
32537.) ac_abs_builddir="$ac_dir";;
32538*)
32539  case "$ac_dir" in
32540  .) ac_abs_builddir=`pwd`;;
32541  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32542  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32543  esac;;
32544esac
32545case $ac_abs_builddir in
32546.) ac_abs_top_builddir=${ac_top_builddir}.;;
32547*)
32548  case ${ac_top_builddir}. in
32549  .) ac_abs_top_builddir=$ac_abs_builddir;;
32550  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32551  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32552  esac;;
32553esac
32554case $ac_abs_builddir in
32555.) ac_abs_srcdir=$ac_srcdir;;
32556*)
32557  case $ac_srcdir in
32558  .) ac_abs_srcdir=$ac_abs_builddir;;
32559  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32560  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32561  esac;;
32562esac
32563case $ac_abs_builddir in
32564.) ac_abs_top_srcdir=$ac_top_srcdir;;
32565*)
32566  case $ac_top_srcdir in
32567  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32568  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32569  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32570  esac;;
32571esac
32572
32573
32574  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32575echo "$as_me: executing $ac_dest commands" >&6;}
32576  case $ac_dest in
32577    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32578  # Strip MF so we end up with the name of the file.
32579  mf=`echo "$mf" | sed -e 's/:.*$//'`
32580  # Check whether this is an Automake generated Makefile or not.
32581  # We used to match only the files named `Makefile.in', but
32582  # some people rename them; so instead we look at the file content.
32583  # Grep'ing the first line is not enough: some people post-process
32584  # each Makefile.in and add a new line on top of each file to say so.
32585  # So let's grep whole file.
32586  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32587    dirpart=`(dirname "$mf") 2>/dev/null ||
32588$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32589	 X"$mf" : 'X\(//\)[^/]' \| \
32590	 X"$mf" : 'X\(//\)$' \| \
32591	 X"$mf" : 'X\(/\)' \| \
32592	 .     : '\(.\)' 2>/dev/null ||
32593echo X"$mf" |
32594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32595  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32596  	  /^X\(\/\/\)$/{ s//\1/; q; }
32597  	  /^X\(\/\).*/{ s//\1/; q; }
32598  	  s/.*/./; q'`
32599  else
32600    continue
32601  fi
32602  # Extract the definition of DEPDIR, am__include, and am__quote
32603  # from the Makefile without running `make'.
32604  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32605  test -z "$DEPDIR" && continue
32606  am__include=`sed -n 's/^am__include = //p' < "$mf"`
32607  test -z "am__include" && continue
32608  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32609  # When using ansi2knr, U may be empty or an underscore; expand it
32610  U=`sed -n 's/^U = //p' < "$mf"`
32611  # Find all dependency output files, they are included files with
32612  # $(DEPDIR) in their names.  We invoke sed twice because it is the
32613  # simplest approach to changing $(DEPDIR) to its actual value in the
32614  # expansion.
32615  for file in `sed -n "
32616    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32617       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32618    # Make sure the directory exists.
32619    test -f "$dirpart/$file" && continue
32620    fdir=`(dirname "$file") 2>/dev/null ||
32621$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32622	 X"$file" : 'X\(//\)[^/]' \| \
32623	 X"$file" : 'X\(//\)$' \| \
32624	 X"$file" : 'X\(/\)' \| \
32625	 .     : '\(.\)' 2>/dev/null ||
32626echo X"$file" |
32627    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32628  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32629  	  /^X\(\/\/\)$/{ s//\1/; q; }
32630  	  /^X\(\/\).*/{ s//\1/; q; }
32631  	  s/.*/./; q'`
32632    { if $as_mkdir_p; then
32633    mkdir -p $dirpart/$fdir
32634  else
32635    as_dir=$dirpart/$fdir
32636    as_dirs=
32637    while test ! -d "$as_dir"; do
32638      as_dirs="$as_dir $as_dirs"
32639      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32641	 X"$as_dir" : 'X\(//\)[^/]' \| \
32642	 X"$as_dir" : 'X\(//\)$' \| \
32643	 X"$as_dir" : 'X\(/\)' \| \
32644	 .     : '\(.\)' 2>/dev/null ||
32645echo X"$as_dir" |
32646    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32647  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32648  	  /^X\(\/\/\)$/{ s//\1/; q; }
32649  	  /^X\(\/\).*/{ s//\1/; q; }
32650  	  s/.*/./; q'`
32651    done
32652    test ! -n "$as_dirs" || mkdir $as_dirs
32653  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32654echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32655   { (exit 1); exit 1; }; }; }
32656
32657    # echo "creating $dirpart/$file"
32658    echo '# dummy' > "$dirpart/$file"
32659  done
32660done
32661 ;;
32662    default-1 )
32663    for ac_file in $CONFIG_FILES; do
32664      # Support "outfile[:infile[:infile...]]"
32665      case "$ac_file" in
32666        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32667      esac
32668      # PO directories have a Makefile.in generated from Makefile.in.in.
32669      case "$ac_file" in */Makefile.in)
32670        # Adjust a relative srcdir.
32671        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32672        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32673        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32674        # In autoconf-2.13 it is called $ac_given_srcdir.
32675        # In autoconf-2.50 it is called $srcdir.
32676        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32677        case "$ac_given_srcdir" in
32678          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32679          /*) top_srcdir="$ac_given_srcdir" ;;
32680          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32681        esac
32682        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32683          rm -f "$ac_dir/POTFILES"
32684          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32685          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32686          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
32687          # on $ac_dir but don't depend on user-specified configuration
32688          # parameters.
32689          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32690            # The LINGUAS file contains the set of available languages.
32691            if test -n "$ALL_LINGUAS"; then
32692              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32693            fi
32694            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32695            # Hide the ALL_LINGUAS assigment from automake.
32696            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32697          fi
32698          case "$ac_given_srcdir" in
32699            .) srcdirpre= ;;
32700            *) srcdirpre='$(srcdir)/' ;;
32701          esac
32702          POFILES=
32703          GMOFILES=
32704          UPDATEPOFILES=
32705          DUMMYPOFILES=
32706          for lang in $ALL_LINGUAS; do
32707            POFILES="$POFILES $srcdirpre$lang.po"
32708            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32709            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32710            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32711          done
32712          # CATALOGS depends on both $ac_dir and the user's LINGUAS
32713          # environment variable.
32714          INST_LINGUAS=
32715          if test -n "$ALL_LINGUAS"; then
32716            for presentlang in $ALL_LINGUAS; do
32717              useit=no
32718              if test "%UNSET%" != "$LINGUAS"; then
32719                desiredlanguages="$LINGUAS"
32720              else
32721                desiredlanguages="$ALL_LINGUAS"
32722              fi
32723              for desiredlang in $desiredlanguages; do
32724                # Use the presentlang catalog if desiredlang is
32725                #   a. equal to presentlang, or
32726                #   b. a variant of presentlang (because in this case,
32727                #      presentlang can be used as a fallback for messages
32728                #      which are not translated in the desiredlang catalog).
32729                case "$desiredlang" in
32730                  "$presentlang"*) useit=yes;;
32731                esac
32732              done
32733              if test $useit = yes; then
32734                INST_LINGUAS="$INST_LINGUAS $presentlang"
32735              fi
32736            done
32737          fi
32738          CATALOGS=
32739          if test -n "$INST_LINGUAS"; then
32740            for lang in $INST_LINGUAS; do
32741              CATALOGS="$CATALOGS $lang.gmo"
32742            done
32743          fi
32744          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32745          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
32746          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32747            if test -f "$f"; then
32748              case "$f" in
32749                *.orig | *.bak | *~) ;;
32750                *) cat "$f" >> "$ac_dir/Makefile" ;;
32751              esac
32752            fi
32753          done
32754        fi
32755        ;;
32756      esac
32757    done ;;
32758    default ) \
32759	sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile ;;
32760  esac
32761done
32762_ACEOF
32763
32764cat >>$CONFIG_STATUS <<\_ACEOF
32765
32766{ (exit 0); exit 0; }
32767_ACEOF
32768chmod +x $CONFIG_STATUS
32769ac_clean_files=$ac_clean_files_save
32770
32771
32772# configure is writing to config.log, and then calls config.status.
32773# config.status does its own redirection, appending to config.log.
32774# Unfortunately, on DOS this fails, as config.log is still kept open
32775# by configure, so config.status won't be able to write to it; its
32776# output is simply discarded.  So we exec the FD to /dev/null,
32777# effectively closing config.log, so it can be properly (re)opened and
32778# appended to by config.status.  When coming back to configure, we
32779# need to make the FD available again.
32780if test "$no_create" != yes; then
32781  ac_cs_success=:
32782  ac_config_status_args=
32783  test "$silent" = yes &&
32784    ac_config_status_args="$ac_config_status_args --quiet"
32785  exec 5>/dev/null
32786  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32787  exec 5>>config.log
32788  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32789  # would make configure fail if this is the last instruction.
32790  $ac_cs_success || { (exit 1); exit 1; }
32791fi
32792
32793
32794if test x$have_python != xyes ; then
32795    echo ""
32796    echo ""
32797    echo "The Python.h header file or library file could not be found."
32798    echo "This could mean that Python is not installed on your system."
32799    echo "The complete Python sources can be downloaded from http://www.python.org/"
32800    echo "Cooledit will work without Python, but will not be custom programmable."
32801    echo "and will lack any features coded in Python."
32802    echo ""
32803fi
32804echo ""
32805echo "Configuration done."
32806echo "Type 'make' to compile $PACKAGE-$VERSION"
32807echo ""
32808
32809