bfd:
[deliverable/binutils-gdb.git] / bfd / configure
... / ...
CommitLineData
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$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_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 <<_LT_EOF
274$*
275_LT_EOF
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 "$lt_ECHO"; then
284 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
403ac_default_prefix=/usr/local
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="libbfd.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
461ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462ac_subst_files=''
463ac_pwd=`pwd`
464
465# Initialize some variables set by options.
466ac_init_help=
467ac_init_version=false
468# The variables have the same names as the options, with
469# dashes changed to underlines.
470cache_file=/dev/null
471exec_prefix=NONE
472no_create=
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481verbose=
482x_includes=NONE
483x_libraries=NONE
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
503ac_prev=
504for ac_option
505do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806fi
807
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829done
830
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
853
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886fi
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
923
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
932
933Usage: $0 [OPTION]... [VAR=VALUE]...
934
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
937
938Defaults for the options are specified in brackets.
939
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
959
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
964
965For better control, use the options below.
966
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
981
982 cat <<\_ACEOF
983
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
988
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
994fi
995
996if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --disable-largefile omit support for large files
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1016 --enable-secureplt Default to creating read-only plt entries
1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1024
1025Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1031 --with-mmap try using mmap for BFD input files if available
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
1037 --with-bugurl=URL Direct users to URL to report a bug
1038
1039Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1046 CPP C preprocessor
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1083esac
1084
1085# Do not use `cd foo && pwd` to compute absolute paths, because
1086# the directories may not exist.
1087case `pwd` in
1088.) ac_abs_builddir="$ac_dir";;
1089*)
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_top_builddir=${ac_top_builddir}.;;
1098*)
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_srcdir=$ac_srcdir;;
1107*)
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_srcdir=$ac_top_srcdir;;
1116*)
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122esac
1123
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 fi
1139 cd $ac_popdir
1140 done
1141fi
1142
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
1146
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
1157
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
1196
1197} >&5
1198
1199cat >&5 <<_ACEOF
1200
1201
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
1205
1206_ACEOF
1207
1208
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
1377# Prefer explicitly selected file to automatically selected ones.
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447echo "$as_me: current value: \`$ac_new_val'" >&2;}
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471fi
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636done
1637done
1638
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654set dummy gcc; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682echo "${ECHO_T}$ac_ct_CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 CC=$ac_ct_CC
1689else
1690 CC="$ac_cv_prog_CC"
1691fi
1692
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}cc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721CC=$ac_cv_prog_CC
1722if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734set dummy cc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757fi
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
1763else
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766fi
1767
1768 CC=$ac_ct_CC
1769else
1770 CC="$ac_cv_prog_CC"
1771fi
1772
1773fi
1774if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
1785 ac_prog_rejected=no
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1796 fi
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
1804if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 fi
1815fi
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827fi
1828if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1831 do
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
1854done
1855
1856fi
1857fi
1858CC=$ac_cv_prog_CC
1859if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
1862else
1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865fi
1866
1867 test -n "$CC" && break
1868 done
1869fi
1870if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875set dummy $ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896done
1897
1898fi
1899fi
1900ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903echo "${ECHO_T}$ac_ct_CC" >&6
1904else
1905 echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909 test -n "$ac_ct_CC" && break
1910done
1911
1912 CC=$ac_ct_CC
1913fi
1914
1915fi
1916
1917
1918test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1925
1926# Provide some information about the compiler.
1927echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929ac_compiler=`set X $ac_compile; echo $2`
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945
1946cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
1952
1953int
1954main ()
1955{
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961ac_clean_files_save=$ac_clean_files
1962ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963# Try to create an executable without -o first, disregard a.out.
1964# It will help us diagnose broken compilers, and finding out an intuition
1965# of exeext.
1966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976# resort.
1977
1978# Be careful to initialize this variable, since it used to be cached.
1979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980ac_cv_exeext=
1981# b.out is created by i960 compilers.
1982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983do
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 ;;
1988 conftest.$ac_ext )
1989 # This is the source file.
1990 ;;
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2002 * )
2003 break;;
2004 esac
2005done
2006else
2007 echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: C compiler cannot create executables
2015See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }; }
2017fi
2018
2019ac_exeext=$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_file" >&5
2021echo "${ECHO_T}$ac_file" >&6
2022
2023# Check the compiler produces executables we can run. If not, either
2024# the compiler is broken, or we cross compile.
2025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028# If not cross compiling, check that we can run a simple program.
2029if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044If you meant to cross compile, use \`--host'.
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }; }
2050 fi
2051 fi
2052fi
2053echo "$as_me:$LINENO: result: yes" >&5
2054echo "${ECHO_T}yes" >&6
2055
2056rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057ac_clean_files=$ac_clean_files_save
2058# Check the compiler produces executables we can run. If not, either
2059# the compiler is broken, or we cross compile.
2060echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063echo "${ECHO_T}$cross_compiling" >&6
2064
2065echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074# work properly (i.e., refer to `conftest.exe'), while it won't with
2075# `rm'.
2076for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 export ac_cv_exeext
2082 break;;
2083 * ) break;;
2084 esac
2085done
2086else
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }; }
2094fi
2095
2096rm -f conftest$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100rm -f conftest.$ac_ext
2101EXEEXT=$ac_cv_exeext
2102ac_exeext=$EXEEXT
2103echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h. */
2114
2115int
2116main ()
2117{
2118
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123rm -f conftest.o conftest.obj
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135done
2136else
2137 echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }; }
2147fi
2148
2149rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150fi
2151echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152echo "${ECHO_T}$ac_cv_objext" >&6
2153OBJEXT=$ac_cv_objext
2154ac_objext=$OBJEXT
2155echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170#ifndef __GNUC__
2171 choke me
2172#endif
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178rm -f conftest.$ac_objext
2179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205ac_compiler_gnu=no
2206fi
2207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213GCC=`test $ac_compiler_gnu = yes && echo yes`
2214ac_test_CFLAGS=${CFLAGS+set}
2215ac_save_CFLAGS=$CFLAGS
2216CFLAGS="-g"
2217echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228
2229int
2230main ()
2231{
2232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237rm -f conftest.$ac_objext
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260else
2261 echo "$as_me: failed program was:" >&5
2262sed 's/^/| /' conftest.$ac_ext >&5
2263
2264ac_cv_prog_cc_g=no
2265fi
2266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267fi
2268echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284fi
2285echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 ac_cv_prog_cc_stdc=no
2291ac_save_CC=$CC
2292cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298#include <stdarg.h>
2299#include <stdio.h>
2300#include <sys/types.h>
2301#include <sys/stat.h>
2302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303struct buf { int x; };
2304FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305static char *e (p, i)
2306 char **p;
2307 int i;
2308{
2309 return p[i];
2310}
2311static char *f (char * (*g) (char **, int), char **p, ...)
2312{
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319}
2320
2321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330int test (int i, double x);
2331struct s1 {int (*f) (int a);};
2332struct s2 {int (*f) (double a);};
2333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334int argc;
2335char **argv;
2336int
2337main ()
2338{
2339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344# Don't try gcc -ansi; that turns off useful extensions and
2345# breaks some systems' header files.
2346# AIX -qlanglvl=ansi
2347# Ultrix and OSF/1 -std1
2348# HP-UX 10.20 and later -Ae
2349# HP-UX older versions -Aa -D_HPUX_SOURCE
2350# SVR4 -Xc -D__EXTENSIONS__
2351for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377break
2378else
2379 echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382fi
2383rm -f conftest.err conftest.$ac_objext
2384done
2385rm -f conftest.$ac_ext conftest.$ac_objext
2386CC=$ac_save_CC
2387
2388fi
2389
2390case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393echo "${ECHO_T}none needed" >&6 ;;
2394 *)
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398esac
2399
2400# Some people use a C++ compiler to compile C. Since we use `exit',
2401# in C++ we need to declare it. In case someone uses the same compiler
2402# for both compiling C and C++ we need to have the C++ compiler decide
2403# the declaration of exit, since it's the most demanding environment.
2404cat >conftest.$ac_ext <<_ACEOF
2405#ifndef __cplusplus
2406 choke me
2407#endif
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2438do
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445$ac_declaration
2446#include <stdlib.h>
2447int
2448main ()
2449{
2450exit (42);
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 :
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491$ac_declaration
2492int
2493main ()
2494{
2495exit (42);
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523else
2524 echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527fi
2528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529done
2530rm -f conftest*
2531if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2535fi
2536
2537else
2538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541fi
2542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549
2550echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552if test "${ac_cv_search_strerror+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 ac_func_search_save_LIBS=$LIBS
2556ac_cv_search_strerror=no
2557cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564/* Override any gcc2 internal prototype to avoid an error. */
2565#ifdef __cplusplus
2566extern "C"
2567#endif
2568/* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570char strerror ();
2571int
2572main ()
2573{
2574strerror ();
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext conftest$ac_exeext
2580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_cv_search_strerror="none required"
2602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2609if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
2618
2619/* Override any gcc2 internal prototype to avoid an error. */
2620#ifdef __cplusplus
2621extern "C"
2622#endif
2623/* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625char strerror ();
2626int
2627main ()
2628{
2629strerror ();
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext conftest$ac_exeext
2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2657break
2658else
2659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662fi
2663rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
2666fi
2667LIBS=$ac_func_search_save_LIBS
2668fi
2669echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2673
2674fi
2675
2676
2677am__api_version="1.9"
2678# Find a good install program. We prefer a C program (faster),
2679# so one script is as good as another. But avoid the broken or
2680# incompatible versions:
2681# SysV /etc/install, /usr/sbin/install
2682# SunOS /usr/etc/install
2683# IRIX /sbin/install
2684# AIX /bin/install
2685# AmigaOS /C/install, which installs bootblocks on floppy discs
2686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689# OS/2's system install, which has a completely different semantic
2690# ./install, which can be erroneously created by make from ./install.sh.
2691# Reject install programs that cannot install multiple files.
2692echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2694if test -z "$INSTALL"; then
2695if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704case $as_dir/ in
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708 /usr/ucb/* ) ;;
2709 *)
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2719 :
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2723 :
2724 else
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
2737 fi
2738 fi
2739 done
2740 done
2741 ;;
2742esac
2743done
2744
2745rm -rf conftest.one conftest.two conftest.dir
2746
2747fi
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2756 fi
2757fi
2758echo "$as_me:$LINENO: result: $INSTALL" >&5
2759echo "${ECHO_T}$INSTALL" >&6
2760
2761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762# It thinks the first close brace ends the variable substitution.
2763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766
2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
2769echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2771# Just in case
2772sleep 1
2773echo timestamp > conftest.file
2774# Do `set' in a subshell so we don't clobber the current shell's
2775# arguments. Must try -L first in case configure is actually a
2776# symlink; some systems play weird games with the mod time of symlinks
2777# (eg FreeBSD returns the mod time of the symlink's containing
2778# directory).
2779if (
2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781 if test "$*" = "X"; then
2782 # -L didn't work.
2783 set X `ls -t $srcdir/configure conftest.file`
2784 fi
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
2788
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794alias in your environment" >&5
2795echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
2798 fi
2799
2800 test "$2" = conftest.file
2801 )
2802then
2803 # Ok.
2804 :
2805else
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807Check your system clock" >&5
2808echo "$as_me: error: newly created file is older than distributed files!
2809Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
2811fi
2812echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
2814test "$program_prefix" != NONE &&
2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2816# Use a double $ so make ignores it.
2817test "$program_suffix" != NONE &&
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819# Double any \ or $. echo might interpret backslashes.
2820# By default was `s,x,x', remove it if useless.
2821cat <<\_ACEOF >conftest.sed
2822s/[\\$]/&&/g;s/;s,x,x,$//
2823_ACEOF
2824program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825rm conftest.sed
2826
2827# expand $ac_aux_dir to an absolute path
2828am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831# Use eval to expand $SHELL
2832if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838fi
2839
2840if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2845 # for two reasons:
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2856else
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2860 # exists.
2861 for d in ./-p ./--version;
2862 do
2863 test -d $d && rmdir $d
2864 done
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2868 else
2869 mkdir_p='$(install_sh) -d'
2870 fi
2871fi
2872
2873for ac_prog in gawk mawk nawk awk
2874do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901AWK=$ac_cv_prog_AWK
2902if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904echo "${ECHO_T}$AWK" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910 test -n "$AWK" && break
2911done
2912
2913echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.make <<\_ACEOF
2920all:
2921 @echo 'ac_maketemp="$(MAKE)"'
2922_ACEOF
2923# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2924eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2925if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2929fi
2930rm -f conftest.make
2931fi
2932if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935 SET_MAKE=
2936else
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
2939 SET_MAKE="MAKE=${MAKE-make}"
2940fi
2941
2942rm -rf .tst 2>/dev/null
2943mkdir .tst 2>/dev/null
2944if test -d .tst; then
2945 am__leading_dot=.
2946else
2947 am__leading_dot=_
2948fi
2949rmdir .tst 2>/dev/null
2950
2951DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956am_make=${MAKE-make}
2957cat > confinc << 'END'
2958am__doit:
2959 @echo done
2960.PHONY: am__doit
2961END
2962# If we don't find an include directive, just comment out the code.
2963echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965am__include="#"
2966am__quote=
2967_am_result=none
2968# First try GNU make style include.
2969echo "include confinc" > confmf
2970# We grep out `Entering directory' and `Leaving directory'
2971# messages which can occur if `w' ends up in MAKEFLAGS.
2972# In particular we don't look at `^make:' because GNU make might
2973# be invoked under some other name (usually "gmake"), in which
2974# case it prints its new name instead of `make'.
2975if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2979fi
2980# Now try BSD make style include.
2981if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2987 fi
2988fi
2989
2990
2991echo "$as_me:$LINENO: result: $_am_result" >&5
2992echo "${ECHO_T}$_am_result" >&6
2993rm -f confinc confmf
2994
2995# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
2998
2999fi;
3000if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003fi
3004
3005
3006if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012fi
3013
3014
3015
3016# test to see if srcdir already configured
3017if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
3022fi
3023
3024# test whether we have cygpath
3025if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3028 else
3029 CYGPATH_W=echo
3030 fi
3031fi
3032
3033
3034# Define the identity of the package.
3035 PACKAGE=bfd
3036 VERSION=2.19.50
3037
3038
3039cat >>confdefs.h <<_ACEOF
3040#define PACKAGE "$PACKAGE"
3041_ACEOF
3042
3043
3044cat >>confdefs.h <<_ACEOF
3045#define VERSION "$VERSION"
3046_ACEOF
3047
3048# Some tools Automake needs.
3049
3050ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063
3064install_sh=${install_sh-"$am_aux_dir/install-sh"}
3065
3066# Installed binaries are usually stripped using `strip' when the user
3067# run `make install-strip'. However `strip' might not be the right
3068# tool to use in cross-compilation environments, therefore Automake
3069# will honor the `STRIP' environment variable to overrule this program.
3070if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}strip; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095
3096fi
3097fi
3098STRIP=$ac_cv_prog_STRIP
3099if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101echo "${ECHO_T}$STRIP" >&6
3102else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
3107fi
3108if test -z "$ac_cv_prog_STRIP"; then
3109 ac_ct_STRIP=$STRIP
3110 # Extract the first word of "strip", so it can be a program name with args.
3111set dummy strip; ac_word=$2
3112echo "$as_me:$LINENO: checking for $ac_word" >&5
3113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131done
3132done
3133
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3135fi
3136fi
3137ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140echo "${ECHO_T}$ac_ct_STRIP" >&6
3141else
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
3144fi
3145
3146 STRIP=$ac_ct_STRIP
3147else
3148 STRIP="$ac_cv_prog_STRIP"
3149fi
3150
3151fi
3152INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153
3154# We need awk for the "check" target. The system "awk" is bad on
3155# some platforms.
3156# Always define AMTAR for backward compatibility.
3157
3158AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
3162
3163
3164
3165depcc="$CC" am_compiler_list=
3166
3167echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171else
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # in D'.
3178 mkdir conftest.dir
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3182 cd conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3188 # directory.
3189 mkdir sub
3190
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 fi
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3199 #
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3203 : > sub/conftest.c
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3209 done
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211
3212 case $depmode in
3213 nosideeffect)
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3217 continue
3218 else
3219 break
3220 fi
3221 ;;
3222 none) break ;;
3223 esac
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3245 break
3246 fi
3247 fi
3248 done
3249
3250 cd ..
3251 rm -rf conftest.dir
3252else
3253 am_cv_CC_dependencies_compiler_type=none
3254fi
3255
3256fi
3257echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3260
3261
3262
3263if
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_TRUE=
3267 am__fastdepCC_FALSE='#'
3268else
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
3271fi
3272
3273
3274
3275
3276if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}ar; ac_word=$2
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299done
3300
3301fi
3302fi
3303AR=$ac_cv_prog_AR
3304if test -n "$AR"; then
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306echo "${ECHO_T}$AR" >&6
3307else
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
3312fi
3313if test -z "$ac_cv_prog_AR"; then
3314 ac_ct_AR=$AR
3315 # Extract the first word of "ar", so it can be a program name with args.
3316set dummy ar; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
3338
3339fi
3340fi
3341ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344echo "${ECHO_T}$ac_ct_AR" >&6
3345else
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
3349
3350 AR=$ac_ct_AR
3351else
3352 AR="$ac_cv_prog_AR"
3353fi
3354
3355if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
3380fi
3381fi
3382RANLIB=$ac_cv_prog_RANLIB
3383if test -n "$RANLIB"; then
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385echo "${ECHO_T}$RANLIB" >&6
3386else
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389fi
3390
3391fi
3392if test -z "$ac_cv_prog_RANLIB"; then
3393 ac_ct_RANLIB=$RANLIB
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395set dummy ranlib; ac_word=$2
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3419fi
3420fi
3421ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425else
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428fi
3429
3430 RANLIB=$ac_ct_RANLIB
3431else
3432 RANLIB="$ac_cv_prog_RANLIB"
3433fi
3434
3435
3436# Check whether --enable-shared or --disable-shared was given.
3437if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
3440 case $enableval in
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3443 *)
3444 enable_shared=no
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3448 IFS="$lt_save_ifs"
3449 if test "X$pkg" = "X$p"; then
3450 enable_shared=yes
3451 fi
3452 done
3453 IFS="$lt_save_ifs"
3454 ;;
3455 esac
3456else
3457 enable_shared=no
3458fi;
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476echo "$as_me:$LINENO: checking for $ac_word" >&5
3477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496done
3497
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503echo "${ECHO_T}$CC" >&6
3504else
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
3507fi
3508
3509fi
3510if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513set dummy gcc; ac_word=$2
3514echo "$as_me:$LINENO: checking for $ac_word" >&5
3515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521else
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534done
3535
3536fi
3537fi
3538ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541echo "${ECHO_T}$ac_ct_CC" >&6
3542else
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545fi
3546
3547 CC=$ac_ct_CC
3548else
3549 CC="$ac_cv_prog_CC"
3550fi
3551
3552if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}cc; ac_word=$2
3556echo "$as_me:$LINENO: checking for $ac_word" >&5
3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558if test "${ac_cv_prog_CC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576done
3577
3578fi
3579fi
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583echo "${ECHO_T}$CC" >&6
3584else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587fi
3588
3589fi
3590if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "cc", so it can be a program name with args.
3593set dummy cc; ac_word=$2
3594echo "$as_me:$LINENO: checking for $ac_word" >&5
3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601else
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613done
3614done
3615
3616fi
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621echo "${ECHO_T}$ac_ct_CC" >&6
3622else
3623 echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6
3625fi
3626
3627 CC=$ac_ct_CC
3628else
3629 CC="$ac_cv_prog_CC"
3630fi
3631
3632fi
3633if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635set dummy cc; ac_word=$2
3636echo "$as_me:$LINENO: checking for $ac_word" >&5
3637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643else
3644 ac_prog_rejected=no
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3655 fi
3656 ac_cv_prog_CC="cc"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660done
3661done
3662
3663if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 fi
3674fi
3675fi
3676fi
3677CC=$ac_cv_prog_CC
3678if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680echo "${ECHO_T}$CC" >&6
3681else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
3684fi
3685
3686fi
3687if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl
3690 do
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693echo "$as_me:$LINENO: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713done
3714
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720echo "${ECHO_T}$CC" >&6
3721else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724fi
3725
3726 test -n "$CC" && break
3727 done
3728fi
3729if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3732do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734set dummy $ac_prog; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
3756
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762echo "${ECHO_T}$ac_ct_CC" >&6
3763else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766fi
3767
3768 test -n "$ac_ct_CC" && break
3769done
3770
3771 CC=$ac_ct_CC
3772fi
3773
3774fi
3775
3776
3777test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3780See \`config.log' for more details." >&5
3781echo "$as_me: error: no acceptable C compiler found in \$PATH
3782See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }; }
3784
3785# Provide some information about the compiler.
3786echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788ac_compiler=`set X $ac_compile; echo $2`
3789{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
3804
3805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807if test "${ac_cv_c_compiler_gnu+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810 cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
3816
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
3823
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext
3829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_compiler_gnu=yes
3851else
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855ac_compiler_gnu=no
3856fi
3857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860fi
3861echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863GCC=`test $ac_compiler_gnu = yes && echo yes`
3864ac_test_CFLAGS=${CFLAGS+set}
3865ac_save_CFLAGS=$CFLAGS
3866CFLAGS="-g"
3867echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869if test "${ac_cv_prog_cc_g+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_cc_g=yes
3910else
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914ac_cv_prog_cc_g=no
3915fi
3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917fi
3918echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3924 CFLAGS="-g -O2"
3925 else
3926 CFLAGS="-g"
3927 fi
3928else
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3933 fi
3934fi
3935echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937if test "${ac_cv_prog_cc_stdc+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940 ac_cv_prog_cc_stdc=no
3941ac_save_CC=$CC
3942cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <stdarg.h>
3949#include <stdio.h>
3950#include <sys/types.h>
3951#include <sys/stat.h>
3952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953struct buf { int x; };
3954FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955static char *e (p, i)
3956 char **p;
3957 int i;
3958{
3959 return p[i];
3960}
3961static char *f (char * (*g) (char **, int), char **p, ...)
3962{
3963 char *s;
3964 va_list v;
3965 va_start (v,p);
3966 s = g (p, va_arg (v,int));
3967 va_end (v);
3968 return s;
3969}
3970
3971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979
3980int test (int i, double x);
3981struct s1 {int (*f) (int a);};
3982struct s2 {int (*f) (double a);};
3983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984int argc;
3985char **argv;
3986int
3987main ()
3988{
3989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994# Don't try gcc -ansi; that turns off useful extensions and
3995# breaks some systems' header files.
3996# AIX -qlanglvl=ansi
3997# Ultrix and OSF/1 -std1
3998# HP-UX 10.20 and later -Ae
3999# HP-UX older versions -Aa -D_HPUX_SOURCE
4000# SVR4 -Xc -D__EXTENSIONS__
4001for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002do
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4027break
4028else
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032fi
4033rm -f conftest.err conftest.$ac_objext
4034done
4035rm -f conftest.$ac_ext conftest.$ac_objext
4036CC=$ac_save_CC
4037
4038fi
4039
4040case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043echo "${ECHO_T}none needed" >&6 ;;
4044 *)
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048esac
4049
4050# Some people use a C++ compiler to compile C. Since we use `exit',
4051# in C++ we need to declare it. In case someone uses the same compiler
4052# for both compiling C and C++ we need to have the C++ compiler decide
4053# the declaration of exit, since it's the most demanding environment.
4054cat >conftest.$ac_ext <<_ACEOF
4055#ifndef __cplusplus
4056 choke me
4057#endif
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4088do
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095$ac_declaration
4096#include <stdlib.h>
4097int
4098main ()
4099{
4100exit (42);
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 :
4128else
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132continue
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141$ac_declaration
4142int
4143main ()
4144{
4145exit (42);
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 break
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177fi
4178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179done
4180rm -f conftest*
4181if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
4185fi
4186
4187else
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191fi
4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199
4200cat >>confdefs.h <<\_ACEOF
4201#define _GNU_SOURCE 1
4202_ACEOF
4203
4204
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212# On Suns, sometimes $CPP names a directory.
4213if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215fi
4216if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 do
4223 ac_preproc_ok=false
4224for ac_c_preproc_warn_flag in '' yes
4225do
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
4238#ifdef __STDC__
4239# include <limits.h>
4240#else
4241# include <assert.h>
4242#endif
4243 Syntax error
4244_ACEOF
4245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256 else
4257 ac_cpp_err=
4258 fi
4259else
4260 ac_cpp_err=yes
4261fi
4262if test -z "$ac_cpp_err"; then
4263 :
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.$ac_ext
4272
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <ac_nonexistent.h>
4282_ACEOF
4283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4296 fi
4297else
4298 ac_cpp_err=yes
4299fi
4300if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302continue
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.$ac_ext
4312
4313done
4314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315rm -f conftest.err conftest.$ac_ext
4316if $ac_preproc_ok; then
4317 break
4318fi
4319
4320 done
4321 ac_cv_prog_CPP=$CPP
4322
4323fi
4324 CPP=$ac_cv_prog_CPP
4325else
4326 ac_cv_prog_CPP=$CPP
4327fi
4328echo "$as_me:$LINENO: result: $CPP" >&5
4329echo "${ECHO_T}$CPP" >&6
4330ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
4350 Syntax error
4351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
4379
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
4419
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 :
4425else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429See \`config.log' for more details." >&5
4430echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4433fi
4434
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442echo "$as_me:$LINENO: checking for egrep" >&5
4443echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4450 fi
4451fi
4452echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
4455
4456
4457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdlib.h>
4469#include <stdarg.h>
4470#include <string.h>
4471#include <float.h>
4472
4473int
4474main ()
4475{
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
4504else
4505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
4508ac_cv_header_stdc=no
4509fi
4510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511
4512if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520#include <string.h>
4521
4522_ACEOF
4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4525 :
4526else
4527 ac_cv_header_stdc=no
4528fi
4529rm -f conftest*
4530
4531fi
4532
4533if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h. */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h. */
4541#include <stdlib.h>
4542
4543_ACEOF
4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4546 :
4547else
4548 ac_cv_header_stdc=no
4549fi
4550rm -f conftest*
4551
4552fi
4553
4554if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4557 :
4558else
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565#include <ctype.h>
4566#if ((' ' & 0x0FF) == 0x020)
4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569#else
4570# define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575#endif
4576
4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578int
4579main ()
4580{
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 exit(2);
4586 exit (0);
4587}
4588_ACEOF
4589rm -f conftest$ac_exeext
4590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 :
4601else
4602 echo "$as_me: program exited with status $ac_status" >&5
4603echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
4605
4606( exit $ac_status )
4607ac_cv_header_stdc=no
4608fi
4609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610fi
4611fi
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615if test $ac_cv_header_stdc = yes; then
4616
4617cat >>confdefs.h <<\_ACEOF
4618#define STDC_HEADERS 1
4619_ACEOF
4620
4621fi
4622
4623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4635do
4636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648$ac_includes_default
4649
4650#include <$ac_header>
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4675else
4676 echo "$as_me: failed program was:" >&5
4677sed 's/^/| /' conftest.$ac_ext >&5
4678
4679eval "$as_ac_Header=no"
4680fi
4681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688_ACEOF
4689
4690fi
4691
4692done
4693
4694
4695
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4704else
4705 # Is the header compilable?
4706echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714$ac_includes_default
4715#include <minix/config.h>
4716_ACEOF
4717rm -f conftest.$ac_objext
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
4744ac_header_compiler=no
4745fi
4746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748echo "${ECHO_T}$ac_header_compiler" >&6
4749
4750# Is the header present?
4751echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759#include <minix/config.h>
4760_ACEOF
4761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ac_header_preproc=no
4785fi
4786rm -f conftest.err conftest.$ac_ext
4787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788echo "${ECHO_T}$ac_header_preproc" >&6
4789
4790# So? What about this header?
4791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4798 ;;
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812 (
4813 cat <<\_ASBOX
4814## ------------------------------------------ ##
4815## Report this to the AC_PACKAGE_NAME lists. ##
4816## ------------------------------------------ ##
4817_ASBOX
4818 ) |
4819 sed "s/^/$as_me: WARNING: /" >&2
4820 ;;
4821esac
4822echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4828fi
4829echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4831
4832fi
4833if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835else
4836 MINIX=
4837fi
4838
4839
4840 if test "$MINIX" = yes; then
4841
4842cat >>confdefs.h <<\_ACEOF
4843#define _POSIX_SOURCE 1
4844_ACEOF
4845
4846
4847cat >>confdefs.h <<\_ACEOF
4848#define _POSIX_1_SOURCE 2
4849_ACEOF
4850
4851
4852cat >>confdefs.h <<\_ACEOF
4853#define _MINIX 1
4854_ACEOF
4855
4856 fi
4857
4858
4859
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871
4872# define __EXTENSIONS__ 1
4873 $ac_includes_default
4874int
4875main ()
4876{
4877
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
4905else
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909ac_cv_safe_to_define___extensions__=no
4910fi
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917#define __EXTENSIONS__ 1
4918_ACEOF
4919
4920 cat >>confdefs.h <<\_ACEOF
4921#define _ALL_SOURCE 1
4922_ACEOF
4923
4924 cat >>confdefs.h <<\_ACEOF
4925#define _GNU_SOURCE 1
4926_ACEOF
4927
4928 cat >>confdefs.h <<\_ACEOF
4929#define _POSIX_PTHREAD_SEMANTICS 1
4930_ACEOF
4931
4932 cat >>confdefs.h <<\_ACEOF
4933#define _TANDEM_SOURCE 1
4934_ACEOF
4935
4936
4937
4938case "${target}" in
4939 sparc-*-solaris*)
4940 # On native 32bit sparc-solaris, large-file and procfs support are
4941 # mutually exclusive; and without procfs support, the elf module
4942 # cannot provide certain routines such as elfcore_write_prpsinfo
4943 # or elfcore_write_prstatus. So unless the user explicitly requested
4944 # large-file support through the --enable-largefile switch, disable
4945 # large-file support in favor of procfs support.
4946 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4947 enable_largefile="no"
4948 fi
4949 ;;
4950esac
4951
4952# Check whether --enable-largefile or --disable-largefile was given.
4953if test "${enable_largefile+set}" = set; then
4954 enableval="$enable_largefile"
4955
4956fi;
4957if test "$enable_largefile" != no; then
4958
4959 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4960echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4961if test "${ac_cv_sys_largefile_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 ac_cv_sys_largefile_CC=no
4965 if test "$GCC" != yes; then
4966 ac_save_CC=$CC
4967 while :; do
4968 # IRIX 6.2 and later do not support large files by default,
4969 # so use the C compiler's -n32 option if that helps.
4970 cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h. */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h. */
4976#include <sys/types.h>
4977 /* Check that off_t can represent 2**63 - 1 correctly.
4978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4979 since some C++ compilers masquerading as C compilers
4980 incorrectly reject 9223372036854775807. */
4981#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4983 && LARGE_OFF_T % 2147483647 == 1)
4984 ? 1 : -1];
4985int
4986main ()
4987{
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993 rm -f conftest.$ac_objext
4994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 break
5016else
5017 echo "$as_me: failed program was:" >&5
5018sed 's/^/| /' conftest.$ac_ext >&5
5019
5020fi
5021rm -f conftest.err conftest.$ac_objext
5022 CC="$CC -n32"
5023 rm -f conftest.$ac_objext
5024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_sys_largefile_CC=' -n32'; break
5046else
5047 echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050fi
5051rm -f conftest.err conftest.$ac_objext
5052 break
5053 done
5054 CC=$ac_save_CC
5055 rm -f conftest.$ac_ext
5056 fi
5057fi
5058echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5059echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5060 if test "$ac_cv_sys_largefile_CC" != no; then
5061 CC=$CC$ac_cv_sys_largefile_CC
5062 fi
5063
5064 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5065echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5066if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 while :; do
5070 ac_cv_sys_file_offset_bits=no
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077#include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5086int
5087main ()
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.$ac_objext
5095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 break
5117else
5118 echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121fi
5122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129#define _FILE_OFFSET_BITS 64
5130#include <sys/types.h>
5131 /* Check that off_t can represent 2**63 - 1 correctly.
5132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5133 since some C++ compilers masquerading as C compilers
5134 incorrectly reject 9223372036854775807. */
5135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5137 && LARGE_OFF_T % 2147483647 == 1)
5138 ? 1 : -1];
5139int
5140main ()
5141{
5142
5143 ;
5144 return 0;
5145}
5146_ACEOF
5147rm -f conftest.$ac_objext
5148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_c_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_sys_file_offset_bits=64; break
5170else
5171 echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174fi
5175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176 break
5177done
5178fi
5179echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5180echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5181if test "$ac_cv_sys_file_offset_bits" != no; then
5182
5183cat >>confdefs.h <<_ACEOF
5184#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5185_ACEOF
5186
5187fi
5188rm -f conftest*
5189 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5190echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5191if test "${ac_cv_sys_large_files+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 while :; do
5195 ac_cv_sys_large_files=no
5196 cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h. */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h. */
5202#include <sys/types.h>
5203 /* Check that off_t can represent 2**63 - 1 correctly.
5204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5205 since some C++ compilers masquerading as C compilers
5206 incorrectly reject 9223372036854775807. */
5207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5209 && LARGE_OFF_T % 2147483647 == 1)
5210 ? 1 : -1];
5211int
5212main ()
5213{
5214
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 break
5242else
5243 echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246fi
5247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
5254#define _LARGE_FILES 1
5255#include <sys/types.h>
5256 /* Check that off_t can represent 2**63 - 1 correctly.
5257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5258 since some C++ compilers masquerading as C compilers
5259 incorrectly reject 9223372036854775807. */
5260#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5262 && LARGE_OFF_T % 2147483647 == 1)
5263 ? 1 : -1];
5264int
5265main ()
5266{
5267
5268 ;
5269 return 0;
5270}
5271_ACEOF
5272rm -f conftest.$ac_objext
5273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_sys_large_files=1; break
5295else
5296 echo "$as_me: failed program was:" >&5
5297sed 's/^/| /' conftest.$ac_ext >&5
5298
5299fi
5300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 break
5302done
5303fi
5304echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5305echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5306if test "$ac_cv_sys_large_files" != no; then
5307
5308cat >>confdefs.h <<_ACEOF
5309#define _LARGE_FILES $ac_cv_sys_large_files
5310_ACEOF
5311
5312fi
5313rm -f conftest*
5314fi
5315
5316
5317case `pwd` in
5318 *\ * | *\ *)
5319 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5320echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5321esac
5322
5323
5324
5325macro_version='2.2.6'
5326macro_revision='1.3012'
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340ltmain="$ac_aux_dir/ltmain.sh"
5341
5342echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5343echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5344if test "${lt_cv_path_SED+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347 # Loop through the user's path and test for sed and gsed.
5348# Then use that list of sed's as ones to test for truncation.
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for lt_ac_prog in sed gsed; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5357 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5358 fi
5359 done
5360 done
5361done
5362IFS=$as_save_IFS
5363lt_ac_max=0
5364lt_ac_count=0
5365# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5366# along with /bin/sed that truncates output.
5367for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5368 test ! -f $lt_ac_sed && continue
5369 cat /dev/null > conftest.in
5370 lt_ac_count=0
5371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5372 # Check for GNU sed and select it if it is found.
5373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5374 lt_cv_path_SED=$lt_ac_sed
5375 break
5376 fi
5377 while true; do
5378 cat conftest.in conftest.in >conftest.tmp
5379 mv conftest.tmp conftest.in
5380 cp conftest.in conftest.nl
5381 echo >>conftest.nl
5382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5383 cmp -s conftest.out conftest.nl || break
5384 # 10000 chars as input seems more than enough
5385 test $lt_ac_count -gt 10 && break
5386 lt_ac_count=`expr $lt_ac_count + 1`
5387 if test $lt_ac_count -gt $lt_ac_max; then
5388 lt_ac_max=$lt_ac_count
5389 lt_cv_path_SED=$lt_ac_sed
5390 fi
5391 done
5392done
5393
5394fi
5395
5396SED=$lt_cv_path_SED
5397
5398echo "$as_me:$LINENO: result: $SED" >&5
5399echo "${ECHO_T}$SED" >&6
5400
5401test -z "$SED" && SED=sed
5402Xsed="$SED -e 1s/^X//"
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414echo "$as_me:$LINENO: checking for fgrep" >&5
5415echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5416if test "${ac_cv_prog_fgrep+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
5419 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5420 then ac_cv_prog_fgrep='grep -F'
5421 else ac_cv_prog_fgrep='fgrep'
5422 fi
5423fi
5424echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5425echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5426 FGREP=$ac_cv_prog_fgrep
5427
5428
5429test -z "$GREP" && GREP=grep
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449# Check whether --with-gnu-ld or --without-gnu-ld was given.
5450if test "${with_gnu_ld+set}" = set; then
5451 withval="$with_gnu_ld"
5452 test "$withval" = no || with_gnu_ld=yes
5453else
5454 with_gnu_ld=no
5455fi;
5456ac_prog=ld
5457if test "$GCC" = yes; then
5458 # Check if gcc -print-prog-name=ld gives a path.
5459 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5460echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5461 case $host in
5462 *-*-mingw*)
5463 # gcc leaves a trailing carriage return which upsets mingw
5464 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5465 *)
5466 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5467 esac
5468 case $ac_prog in
5469 # Accept absolute paths.
5470 [\\/]* | ?:[\\/]*)
5471 re_direlt='/[^/][^/]*/\.\./'
5472 # Canonicalize the pathname of ld
5473 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5474 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5475 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5476 done
5477 test -z "$LD" && LD="$ac_prog"
5478 ;;
5479 "")
5480 # If it fails, then pretend we aren't using GCC.
5481 ac_prog=ld
5482 ;;
5483 *)
5484 # If it is relative, then search for the first ld in PATH.
5485 with_gnu_ld=unknown
5486 ;;
5487 esac
5488elif test "$with_gnu_ld" = yes; then
5489 echo "$as_me:$LINENO: checking for GNU ld" >&5
5490echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5491else
5492 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5493echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5494fi
5495if test "${lt_cv_path_LD+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498 if test -z "$LD"; then
5499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5500 for ac_dir in $PATH; do
5501 IFS="$lt_save_ifs"
5502 test -z "$ac_dir" && ac_dir=.
5503 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5504 lt_cv_path_LD="$ac_dir/$ac_prog"
5505 # Check to see if the program is GNU ld. I'd rather use --version,
5506 # but apparently some variants of GNU ld only accept -v.
5507 # Break only if it was the GNU/non-GNU ld that we prefer.
5508 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
5510 test "$with_gnu_ld" != no && break
5511 ;;
5512 *)
5513 test "$with_gnu_ld" != yes && break
5514 ;;
5515 esac
5516 fi
5517 done
5518 IFS="$lt_save_ifs"
5519else
5520 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5521fi
5522fi
5523
5524LD="$lt_cv_path_LD"
5525if test -n "$LD"; then
5526 echo "$as_me:$LINENO: result: $LD" >&5
5527echo "${ECHO_T}$LD" >&6
5528else
5529 echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531fi
5532test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5533echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5534 { (exit 1); exit 1; }; }
5535echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5536echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5537if test "${lt_cv_prog_gnu_ld+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541case `$LD -v 2>&1 </dev/null` in
5542*GNU* | *'with BFD'*)
5543 lt_cv_prog_gnu_ld=yes
5544 ;;
5545*)
5546 lt_cv_prog_gnu_ld=no
5547 ;;
5548esac
5549fi
5550echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5551echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5552with_gnu_ld=$lt_cv_prog_gnu_ld
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5563echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5564if test "${lt_cv_path_NM+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566else
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5569 lt_cv_path_NM="$NM"
5570else
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5574 fi
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578 IFS="$lt_save_ifs"
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5589 break
5590 ;;
5591 *)
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 */dev/null*)
5594 lt_cv_path_NM="$tmp_nm -p"
5595 break
5596 ;;
5597 *)
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5600 ;;
5601 esac
5602 ;;
5603 esac
5604 fi
5605 done
5606 IFS="$lt_save_ifs"
5607 done
5608 : ${lt_cv_path_NM=no}
5609fi
5610fi
5611echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612echo "${ECHO_T}$lt_cv_path_NM" >&6
5613if test "$lt_cv_path_NM" != "no"; then
5614 NM="$lt_cv_path_NM"
5615else
5616 # Didn't find any BSD compatible name lister, look for dumpbin.
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5619 do
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5622echo "$as_me:$LINENO: checking for $ac_word" >&5
5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626else
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642done
5643
5644fi
5645fi
5646DUMPBIN=$ac_cv_prog_DUMPBIN
5647if test -n "$DUMPBIN"; then
5648 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5649echo "${ECHO_T}$DUMPBIN" >&6
5650else
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653fi
5654
5655 test -n "$DUMPBIN" && break
5656 done
5657fi
5658if test -z "$DUMPBIN"; then
5659 ac_ct_DUMPBIN=$DUMPBIN
5660 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5661do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663set dummy $ac_prog; ac_word=$2
5664echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 if test -n "$ac_ct_DUMPBIN"; then
5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684done
5685
5686fi
5687fi
5688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689if test -n "$ac_ct_DUMPBIN"; then
5690 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5691echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5692else
5693 echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
5695fi
5696
5697 test -n "$ac_ct_DUMPBIN" && break
5698done
5699test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5700
5701 DUMPBIN=$ac_ct_DUMPBIN
5702fi
5703
5704
5705 if test "$DUMPBIN" != ":"; then
5706 NM="$DUMPBIN"
5707 fi
5708fi
5709test -z "$NM" && NM=nm
5710
5711
5712
5713
5714
5715
5716echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5717echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5718if test "${lt_cv_nm_interface+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 lt_cv_nm_interface="BSD nm"
5722 echo "int some_variable = 0;" > conftest.$ac_ext
5723 (eval echo "\"\$as_me:5723: $ac_compile\"" >&5)
5724 (eval "$ac_compile" 2>conftest.err)
5725 cat conftest.err >&5
5726 (eval echo "\"\$as_me:5726: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5728 cat conftest.err >&5
5729 (eval echo "\"\$as_me:5729: output\"" >&5)
5730 cat conftest.out >&5
5731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5732 lt_cv_nm_interface="MS dumpbin"
5733 fi
5734 rm -f conftest*
5735fi
5736echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5737echo "${ECHO_T}$lt_cv_nm_interface" >&6
5738
5739echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5741LN_S=$as_ln_s
5742if test "$LN_S" = "ln -s"; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744echo "${ECHO_T}yes" >&6
5745else
5746 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747echo "${ECHO_T}no, using $LN_S" >&6
5748fi
5749
5750# find the maximum length of command line arguments
5751echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5752echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5753if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 i=0
5757 teststring="ABCD"
5758
5759 case $build_os in
5760 msdosdjgpp*)
5761 # On DJGPP, this test can blow up pretty badly due to problems in libc
5762 # (any single argument exceeding 2000 bytes causes a buffer overrun
5763 # during glob expansion). Even if it were fixed, the result of this
5764 # check would be larger than it should be.
5765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5766 ;;
5767
5768 gnu*)
5769 # Under GNU Hurd, this test is not required because there is
5770 # no limit to the length of command line arguments.
5771 # Libtool will interpret -1 as no limit whatsoever
5772 lt_cv_sys_max_cmd_len=-1;
5773 ;;
5774
5775 cygwin* | mingw* | cegcc*)
5776 # On Win9x/ME, this test blows up -- it succeeds, but takes
5777 # about 5 minutes as the teststring grows exponentially.
5778 # Worse, since 9x/ME are not pre-emptively multitasking,
5779 # you end up with a "frozen" computer, even though with patience
5780 # the test eventually succeeds (with a max line length of 256k).
5781 # Instead, let's just punt: use the minimum linelength reported by
5782 # all of the supported platforms: 8192 (on NT/2K/XP).
5783 lt_cv_sys_max_cmd_len=8192;
5784 ;;
5785
5786 amigaos*)
5787 # On AmigaOS with pdksh, this test takes hours, literally.
5788 # So we just punt and use a minimum line length of 8192.
5789 lt_cv_sys_max_cmd_len=8192;
5790 ;;
5791
5792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5793 # This has been around since 386BSD, at least. Likely further.
5794 if test -x /sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5796 elif test -x /usr/sbin/sysctl; then
5797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5798 else
5799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5800 fi
5801 # And add a safety zone
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 ;;
5805
5806 interix*)
5807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5808 lt_cv_sys_max_cmd_len=196608
5809 ;;
5810
5811 osf*)
5812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814 # nice to cause kernel panics so lets avoid the loop below.
5815 # First set a reasonable default.
5816 lt_cv_sys_max_cmd_len=16384
5817 #
5818 if test -x /sbin/sysconfig; then
5819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821 esac
5822 fi
5823 ;;
5824 sco3.2v5*)
5825 lt_cv_sys_max_cmd_len=102400
5826 ;;
5827 sysv5* | sco5v6* | sysv4.2uw2*)
5828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829 if test -n "$kargmax"; then
5830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5831 else
5832 lt_cv_sys_max_cmd_len=32768
5833 fi
5834 ;;
5835 *)
5836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837 if test -n "$lt_cv_sys_max_cmd_len"; then
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 else
5841 # Make teststring a little bigger before we do anything with it.
5842 # a 1K string should be a reasonable start.
5843 for i in 1 2 3 4 5 6 7 8 ; do
5844 teststring=$teststring$teststring
5845 done
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 # If test is not a shell built-in, we'll probably end up computing a
5848 # maximum length that is only half of the actual maximum length, but
5849 # we can't tell.
5850 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5851 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5852 test $i != 17 # 1/2 MB should be enough
5853 do
5854 i=`expr $i + 1`
5855 teststring=$teststring$teststring
5856 done
5857 # Only check the string length outside the loop.
5858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5859 teststring=
5860 # Add a significant safety factor because C++ compilers can tack on
5861 # massive amounts of additional arguments before passing them to the
5862 # linker. It appears as though 1/2 is a usable value.
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5864 fi
5865 ;;
5866 esac
5867
5868fi
5869
5870if test -n $lt_cv_sys_max_cmd_len ; then
5871 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5872echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5873else
5874 echo "$as_me:$LINENO: result: none" >&5
5875echo "${ECHO_T}none" >&6
5876fi
5877max_cmd_len=$lt_cv_sys_max_cmd_len
5878
5879
5880
5881
5882
5883
5884: ${CP="cp -f"}
5885: ${MV="mv -f"}
5886: ${RM="rm -f"}
5887
5888echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5889echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5890# Try some XSI features
5891xsi_shell=no
5892( _lt_dummy="a/b/c"
5893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5894 = c,a/b,, \
5895 && eval 'test $(( 1 + 1 )) -eq 2 \
5896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5897 && xsi_shell=yes
5898echo "$as_me:$LINENO: result: $xsi_shell" >&5
5899echo "${ECHO_T}$xsi_shell" >&6
5900
5901
5902echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5903echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5904lt_shell_append=no
5905( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5906 >/dev/null 2>&1 \
5907 && lt_shell_append=yes
5908echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5909echo "${ECHO_T}$lt_shell_append" >&6
5910
5911
5912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913 lt_unset=unset
5914else
5915 lt_unset=false
5916fi
5917
5918
5919
5920
5921
5922# test EBCDIC or ASCII
5923case `echo X|tr X '\101'` in
5924 A) # ASCII based system
5925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926 lt_SP2NL='tr \040 \012'
5927 lt_NL2SP='tr \015\012 \040\040'
5928 ;;
5929 *) # EBCDIC based system
5930 lt_SP2NL='tr \100 \n'
5931 lt_NL2SP='tr \r\n \100\100'
5932 ;;
5933esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5944echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5945if test "${lt_cv_ld_reload_flag+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948 lt_cv_ld_reload_flag='-r'
5949fi
5950echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5951echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5952reload_flag=$lt_cv_ld_reload_flag
5953case $reload_flag in
5954"" | " "*) ;;
5955*) reload_flag=" $reload_flag" ;;
5956esac
5957reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958case $host_os in
5959 darwin*)
5960 if test "$GCC" = yes; then
5961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5962 else
5963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964 fi
5965 ;;
5966esac
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5978set dummy ${ac_tool_prefix}objdump; ac_word=$2
5979echo "$as_me:$LINENO: checking for $ac_word" >&5
5980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984 if test -n "$OBJDUMP"; then
5985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986else
5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988for as_dir in $PATH
5989do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998done
5999done
6000
6001fi
6002fi
6003OBJDUMP=$ac_cv_prog_OBJDUMP
6004if test -n "$OBJDUMP"; then
6005 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6006echo "${ECHO_T}$OBJDUMP" >&6
6007else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010fi
6011
6012fi
6013if test -z "$ac_cv_prog_OBJDUMP"; then
6014 ac_ct_OBJDUMP=$OBJDUMP
6015 # Extract the first word of "objdump", so it can be a program name with args.
6016set dummy objdump; ac_word=$2
6017echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037done
6038
6039 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6040fi
6041fi
6042ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6043if test -n "$ac_ct_OBJDUMP"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6045echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6046else
6047 echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6
6049fi
6050
6051 OBJDUMP=$ac_ct_OBJDUMP
6052else
6053 OBJDUMP="$ac_cv_prog_OBJDUMP"
6054fi
6055
6056test -z "$OBJDUMP" && OBJDUMP=objdump
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6067echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6068if test "${lt_cv_deplibs_check_method+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 lt_cv_file_magic_cmd='$MAGIC_CMD'
6072lt_cv_file_magic_test_file=
6073lt_cv_deplibs_check_method='unknown'
6074# Need to set the preceding variable on all platforms that support
6075# interlibrary dependencies.
6076# 'none' -- dependencies not supported.
6077# `unknown' -- same as none, but documents that we really don't know.
6078# 'pass_all' -- all dependencies passed with no checks.
6079# 'test_compile' -- check by making test program.
6080# 'file_magic [[regex]]' -- check by looking for files in library path
6081# which responds to the $file_magic_cmd with a given extended regex.
6082# If you have `file' or equivalent on your system and you're not sure
6083# whether `pass_all' will *always* work, you probably want this one.
6084
6085case $host_os in
6086aix[4-9]*)
6087 lt_cv_deplibs_check_method=pass_all
6088 ;;
6089
6090beos*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094bsdi[45]*)
6095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6096 lt_cv_file_magic_cmd='/usr/bin/file -L'
6097 lt_cv_file_magic_test_file=/shlib/libc.so
6098 ;;
6099
6100cygwin*)
6101 # func_win32_libid is a shell function defined in ltmain.sh
6102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103 lt_cv_file_magic_cmd='func_win32_libid'
6104 ;;
6105
6106mingw* | pw32*)
6107 # Base MSYS/MinGW do not provide the 'file' command needed by
6108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6109 # unless we find 'file', for example because we are cross-compiling.
6110 if ( file / ) >/dev/null 2>&1; then
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
6113 else
6114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6115 lt_cv_file_magic_cmd='$OBJDUMP -f'
6116 fi
6117 ;;
6118
6119cegcc)
6120 # use the weaker test based on 'objdump'. See mingw*.
6121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6123 ;;
6124
6125darwin* | rhapsody*)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129freebsd* | dragonfly*)
6130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6131 case $host_cpu in
6132 i*86 )
6133 # Not sure whether the presence of OpenBSD here was a mistake.
6134 # Let's accept both of them until this is cleared up.
6135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6136 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6138 ;;
6139 esac
6140 else
6141 lt_cv_deplibs_check_method=pass_all
6142 fi
6143 ;;
6144
6145gnu*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149hpux10.20* | hpux11*)
6150 lt_cv_file_magic_cmd=/usr/bin/file
6151 case $host_cpu in
6152 ia64*)
6153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6155 ;;
6156 hppa*64*)
6157 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]'
6158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6159 ;;
6160 *)
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 ;;
6164 esac
6165 ;;
6166
6167interix[3-9]*)
6168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6170 ;;
6171
6172irix5* | irix6* | nonstopux*)
6173 case $LD in
6174 *-32|*"-32 ") libmagic=32-bit;;
6175 *-n32|*"-n32 ") libmagic=N32;;
6176 *-64|*"-64 ") libmagic=64-bit;;
6177 *) libmagic=never-match;;
6178 esac
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182# This must be Linux ELF.
6183linux* | k*bsd*-gnu)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186
6187netbsd*)
6188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6190 else
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6192 fi
6193 ;;
6194
6195newos6*)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6199 ;;
6200
6201*nto* | *qnx*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205openbsd*)
6206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6210 fi
6211 ;;
6212
6213osf3* | osf4* | osf5*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217rdos*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221solaris*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229sysv4 | sysv4.3*)
6230 case $host_vendor in
6231 motorola)
6232 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]'
6233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6234 ;;
6235 ncr)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 sequent)
6239 lt_cv_file_magic_cmd='/bin/file'
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6241 ;;
6242 sni)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6245 lt_cv_file_magic_test_file=/lib/libc.so
6246 ;;
6247 siemens)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250 pc)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 esac
6254 ;;
6255
6256tpf*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259esac
6260
6261fi
6262echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6263echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6264file_magic_cmd=$lt_cv_file_magic_cmd
6265deplibs_check_method=$lt_cv_deplibs_check_method
6266test -z "$deplibs_check_method" && deplibs_check_method=unknown
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}ar; ac_word=$2
6282echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284if test "${ac_cv_prog_AR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_AR="${ac_tool_prefix}ar"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302done
6303
6304fi
6305fi
6306AR=$ac_cv_prog_AR
6307if test -n "$AR"; then
6308 echo "$as_me:$LINENO: result: $AR" >&5
6309echo "${ECHO_T}$AR" >&6
6310else
6311 echo "$as_me:$LINENO: result: no" >&5
6312echo "${ECHO_T}no" >&6
6313fi
6314
6315fi
6316if test -z "$ac_cv_prog_AR"; then
6317 ac_ct_AR=$AR
6318 # Extract the first word of "ar", so it can be a program name with args.
6319set dummy ar; ac_word=$2
6320echo "$as_me:$LINENO: checking for $ac_word" >&5
6321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
6325 if test -n "$ac_ct_AR"; then
6326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_AR="ar"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339done
6340done
6341
6342 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6343fi
6344fi
6345ac_ct_AR=$ac_cv_prog_ac_ct_AR
6346if test -n "$ac_ct_AR"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6348echo "${ECHO_T}$ac_ct_AR" >&6
6349else
6350 echo "$as_me:$LINENO: result: no" >&5
6351echo "${ECHO_T}no" >&6
6352fi
6353
6354 AR=$ac_ct_AR
6355else
6356 AR="$ac_cv_prog_AR"
6357fi
6358
6359test -z "$AR" && AR=ar
6360test -z "$AR_FLAGS" && AR_FLAGS=cru
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}strip; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_STRIP+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 if test -n "$STRIP"; then
6381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395done
6396
6397fi
6398fi
6399STRIP=$ac_cv_prog_STRIP
6400if test -n "$STRIP"; then
6401 echo "$as_me:$LINENO: result: $STRIP" >&5
6402echo "${ECHO_T}$STRIP" >&6
6403else
6404 echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408fi
6409if test -z "$ac_cv_prog_STRIP"; then
6410 ac_ct_STRIP=$STRIP
6411 # Extract the first word of "strip", so it can be a program name with args.
6412set dummy strip; ac_word=$2
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418 if test -n "$ac_ct_STRIP"; then
6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_STRIP="strip"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432done
6433done
6434
6435 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6436fi
6437fi
6438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439if test -n "$ac_ct_STRIP"; then
6440 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6441echo "${ECHO_T}$ac_ct_STRIP" >&6
6442else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445fi
6446
6447 STRIP=$ac_ct_STRIP
6448else
6449 STRIP="$ac_cv_prog_STRIP"
6450fi
6451
6452test -z "$STRIP" && STRIP=:
6453
6454
6455
6456
6457
6458
6459if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462echo "$as_me:$LINENO: checking for $ac_word" >&5
6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6464if test "${ac_cv_prog_RANLIB+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481done
6482done
6483
6484fi
6485fi
6486RANLIB=$ac_cv_prog_RANLIB
6487if test -n "$RANLIB"; then
6488 echo "$as_me:$LINENO: result: $RANLIB" >&5
6489echo "${ECHO_T}$RANLIB" >&6
6490else
6491 echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6
6493fi
6494
6495fi
6496if test -z "$ac_cv_prog_RANLIB"; then
6497 ac_ct_RANLIB=$RANLIB
6498 # Extract the first word of "ranlib", so it can be a program name with args.
6499set dummy ranlib; ac_word=$2
6500echo "$as_me:$LINENO: checking for $ac_word" >&5
6501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 if test -n "$ac_ct_RANLIB"; then
6506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_RANLIB="ranlib"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519done
6520done
6521
6522 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6523fi
6524fi
6525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526if test -n "$ac_ct_RANLIB"; then
6527 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6528echo "${ECHO_T}$ac_ct_RANLIB" >&6
6529else
6530 echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6
6532fi
6533
6534 RANLIB=$ac_ct_RANLIB
6535else
6536 RANLIB="$ac_cv_prog_RANLIB"
6537fi
6538
6539test -z "$RANLIB" && RANLIB=:
6540
6541
6542
6543
6544
6545
6546# Determine commands to create old-style static archives.
6547old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6548old_postinstall_cmds='chmod 644 $oldlib'
6549old_postuninstall_cmds=
6550
6551if test -n "$RANLIB"; then
6552 case $host_os in
6553 openbsd*)
6554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6555 ;;
6556 *)
6557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6558 ;;
6559 esac
6560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6561fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596# If no C compiler was specified, use CC.
6597LTCC=${LTCC-"$CC"}
6598
6599# If no C compiler flags were specified, use CFLAGS.
6600LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6601
6602# Allow CC to be a program name with arguments.
6603compiler=$CC
6604
6605
6606# Check for command to grab the raw symbol name followed by C symbol from nm.
6607echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6608echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6609if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611else
6612
6613# These are sane defaults that work on at least a few old systems.
6614# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6615
6616# Character class describing NM global symbol codes.
6617symcode='[BCDEGRST]'
6618
6619# Regexp to match symbols that can be accessed directly from C.
6620sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6621
6622# Define system-specific variables.
6623case $host_os in
6624aix*)
6625 symcode='[BCDT]'
6626 ;;
6627cygwin* | mingw* | pw32* | cegcc*)
6628 symcode='[ABCDGISTW]'
6629 ;;
6630hpux*)
6631 if test "$host_cpu" = ia64; then
6632 symcode='[ABCDEGRST]'
6633 fi
6634 ;;
6635irix* | nonstopux*)
6636 symcode='[BCDEGRST]'
6637 ;;
6638osf*)
6639 symcode='[BCDEGQRST]'
6640 ;;
6641solaris*)
6642 symcode='[BDRT]'
6643 ;;
6644sco3.2v5*)
6645 symcode='[DT]'
6646 ;;
6647sysv4.2uw2*)
6648 symcode='[DT]'
6649 ;;
6650sysv5* | sco5v6* | unixware* | OpenUNIX*)
6651 symcode='[ABDT]'
6652 ;;
6653sysv4)
6654 symcode='[DFNSTU]'
6655 ;;
6656esac
6657
6658# If we're using GNU nm, then use its standard symbol codes.
6659case `$NM -V 2>&1` in
6660*GNU* | *'with BFD'*)
6661 symcode='[ABCDGIRSTW]' ;;
6662esac
6663
6664# Transform an extracted symbol line into a proper C declaration.
6665# Some systems (esp. on ia64) link data and code symbols differently,
6666# so use this general approach.
6667lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6668
6669# Transform an extracted symbol line into symbol name and symbol address
6670lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6671lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6672
6673# Handle CRLF in mingw tool chain
6674opt_cr=
6675case $build_os in
6676mingw*)
6677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6678 ;;
6679esac
6680
6681# Try without a prefix underscore, then with it.
6682for ac_symprfx in "" "_"; do
6683
6684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6685 symxfrm="\\1 $ac_symprfx\\2 \\2"
6686
6687 # Write the raw and C identifiers.
6688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6689 # Fake it for dumpbin and say T for any non-static function
6690 # and D for any global variable.
6691 # Also find C++ and __fastcall symbols from MSVC++,
6692 # which start with @ or ?.
6693 lt_cv_sys_global_symbol_pipe="$AWK '"\
6694" {last_section=section; section=\$ 3};"\
6695" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696" \$ 0!~/External *\|/{next};"\
6697" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698" {if(hide[section]) next};"\
6699" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6700" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6701" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6702" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6703" ' prfx=^$ac_symprfx"
6704 else
6705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6706 fi
6707
6708 # Check to see that the pipe works correctly.
6709 pipe_works=no
6710
6711 rm -f conftest*
6712 cat > conftest.$ac_ext <<_LT_EOF
6713#ifdef __cplusplus
6714extern "C" {
6715#endif
6716char nm_test_var;
6717void nm_test_func(void);
6718void nm_test_func(void){}
6719#ifdef __cplusplus
6720}
6721#endif
6722int main(){nm_test_var='a';nm_test_func();return(0);}
6723_LT_EOF
6724
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; then
6730 # Now try to grab the symbols.
6731 nlist=conftest.nm
6732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && test -s "$nlist"; then
6737 # Try sorting and uniquifying the output.
6738 if sort "$nlist" | uniq > "$nlist"T; then
6739 mv -f "$nlist"T "$nlist"
6740 else
6741 rm -f "$nlist"T
6742 fi
6743
6744 # Make sure that we snagged all the symbols we need.
6745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6747 cat <<_LT_EOF > conftest.$ac_ext
6748#ifdef __cplusplus
6749extern "C" {
6750#endif
6751
6752_LT_EOF
6753 # Now generate the symbol file.
6754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6755
6756 cat <<_LT_EOF >> conftest.$ac_ext
6757
6758/* The mapping between symbol names and symbols. */
6759const struct {
6760 const char *name;
6761 void *address;
6762}
6763lt__PROGRAM__LTX_preloaded_symbols[] =
6764{
6765 { "@PROGRAM@", (void *) 0 },
6766_LT_EOF
6767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6768 cat <<\_LT_EOF >> conftest.$ac_ext
6769 {0, (void *) 0}
6770};
6771
6772/* This works around a problem in FreeBSD linker */
6773#ifdef FREEBSD_WORKAROUND
6774static const void *lt_preloaded_setup() {
6775 return lt__PROGRAM__LTX_preloaded_symbols;
6776}
6777#endif
6778
6779#ifdef __cplusplus
6780}
6781#endif
6782_LT_EOF
6783 # Now try linking the two files.
6784 mv conftest.$ac_objext conftstm.$ac_objext
6785 lt_save_LIBS="$LIBS"
6786 lt_save_CFLAGS="$CFLAGS"
6787 LIBS="conftstm.$ac_objext"
6788 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6794 pipe_works=yes
6795 fi
6796 LIBS="$lt_save_LIBS"
6797 CFLAGS="$lt_save_CFLAGS"
6798 else
6799 echo "cannot find nm_test_func in $nlist" >&5
6800 fi
6801 else
6802 echo "cannot find nm_test_var in $nlist" >&5
6803 fi
6804 else
6805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6806 fi
6807 else
6808 echo "$progname: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6810 fi
6811 rm -rf conftest* conftst*
6812
6813 # Do not use the global_symbol_pipe unless it works.
6814 if test "$pipe_works" = yes; then
6815 break
6816 else
6817 lt_cv_sys_global_symbol_pipe=
6818 fi
6819done
6820
6821fi
6822
6823if test -z "$lt_cv_sys_global_symbol_pipe"; then
6824 lt_cv_sys_global_symbol_to_cdecl=
6825fi
6826if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6827 echo "$as_me:$LINENO: result: failed" >&5
6828echo "${ECHO_T}failed" >&6
6829else
6830 echo "$as_me:$LINENO: result: ok" >&5
6831echo "${ECHO_T}ok" >&6
6832fi
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6856if test "${enable_libtool_lock+set}" = set; then
6857 enableval="$enable_libtool_lock"
6858
6859fi;
6860test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6861
6862# Some flags need to be propagated to the compiler or linker for good
6863# libtool support.
6864case $host in
6865ia64-*-hpux*)
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *ELF-32*)
6875 HPUX_IA64_MODE="32"
6876 ;;
6877 *ELF-64*)
6878 HPUX_IA64_MODE="64"
6879 ;;
6880 esac
6881 fi
6882 rm -rf conftest*
6883 ;;
6884*-*-irix6*)
6885 # Find out which ABI we are using.
6886 echo '#line 6886 "configure"' > conftest.$ac_ext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6894 *32-bit*)
6895 LD="${LD-ld} -melf32bsmip"
6896 ;;
6897 *N32*)
6898 LD="${LD-ld} -melf32bmipn32"
6899 ;;
6900 *64-bit*)
6901 LD="${LD-ld} -melf64bmip"
6902 ;;
6903 esac
6904 else
6905 case `/usr/bin/file conftest.$ac_objext` in
6906 *32-bit*)
6907 LD="${LD-ld} -32"
6908 ;;
6909 *N32*)
6910 LD="${LD-ld} -n32"
6911 ;;
6912 *64-bit*)
6913 LD="${LD-ld} -64"
6914 ;;
6915 esac
6916 fi
6917 fi
6918 rm -rf conftest*
6919 ;;
6920
6921x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923 # Find out which ABI we are using.
6924 echo 'int i;' > conftest.$ac_ext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; then
6930 case `/usr/bin/file conftest.o` in
6931 *32-bit*)
6932 case $host in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_i386_fbsd"
6935 ;;
6936 x86_64-*linux*)
6937 LD="${LD-ld} -m elf_i386"
6938 ;;
6939 ppc64-*linux*|powerpc64-*linux*)
6940 LD="${LD-ld} -m elf32ppclinux"
6941 ;;
6942 s390x-*linux*)
6943 LD="${LD-ld} -m elf_s390"
6944 ;;
6945 sparc64-*linux*)
6946 LD="${LD-ld} -m elf32_sparc"
6947 ;;
6948 esac
6949 ;;
6950 *64-bit*)
6951 case $host in
6952 x86_64-*kfreebsd*-gnu)
6953 LD="${LD-ld} -m elf_x86_64_fbsd"
6954 ;;
6955 x86_64-*linux*)
6956 LD="${LD-ld} -m elf_x86_64"
6957 ;;
6958 ppc*-*linux*|powerpc*-*linux*)
6959 LD="${LD-ld} -m elf64ppc"
6960 ;;
6961 s390*-*linux*|s390*-*tpf*)
6962 LD="${LD-ld} -m elf64_s390"
6963 ;;
6964 sparc*-*linux*)
6965 LD="${LD-ld} -m elf64_sparc"
6966 ;;
6967 esac
6968 ;;
6969 esac
6970 fi
6971 rm -rf conftest*
6972 ;;
6973
6974*-*-sco3.2v5*)
6975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976 SAVE_CFLAGS="$CFLAGS"
6977 CFLAGS="$CFLAGS -belf"
6978 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6979echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6980if test "${lt_cv_cc_needs_belf+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983 ac_ext=c
6984ac_cpp='$CPP $CPPFLAGS'
6985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989 cat >conftest.$ac_ext <<_ACEOF
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
6995
6996int
6997main ()
6998{
6999
7000 ;
7001 return 0;
7002}
7003_ACEOF
7004rm -f conftest.$ac_objext conftest$ac_exeext
7005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 lt_cv_cc_needs_belf=yes
7027else
7028 echo "$as_me: failed program was:" >&5
7029sed 's/^/| /' conftest.$ac_ext >&5
7030
7031lt_cv_cc_needs_belf=no
7032fi
7033rm -f conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 ac_ext=c
7036ac_cpp='$CPP $CPPFLAGS'
7037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040
7041fi
7042echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7043echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7046 CFLAGS="$SAVE_CFLAGS"
7047 fi
7048 ;;
7049sparc*-*solaris*)
7050 # Find out which ABI we are using.
7051 echo 'int i;' > conftest.$ac_ext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; then
7057 case `/usr/bin/file conftest.o` in
7058 *64-bit*)
7059 case $lt_cv_prog_gnu_ld in
7060 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7061 *)
7062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7063 LD="${LD-ld} -64"
7064 fi
7065 ;;
7066 esac
7067 ;;
7068 esac
7069 fi
7070 rm -rf conftest*
7071 ;;
7072esac
7073
7074need_locks="$enable_libtool_lock"
7075
7076
7077 case $host_os in
7078 rhapsody* | darwin*)
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7082echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087 if test -n "$DSYMUTIL"; then
7088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103
7104fi
7105fi
7106DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107if test -n "$DSYMUTIL"; then
7108 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7109echo "${ECHO_T}$DSYMUTIL" >&6
7110else
7111 echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
7113fi
7114
7115fi
7116if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119set dummy dsymutil; ac_word=$2
7120echo "$as_me:$LINENO: checking for $ac_word" >&5
7121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139done
7140done
7141
7142 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7143fi
7144fi
7145ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146if test -n "$ac_ct_DSYMUTIL"; then
7147 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7148echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7149else
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
7152fi
7153
7154 DSYMUTIL=$ac_ct_DSYMUTIL
7155else
7156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7157fi
7158
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7161set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7162echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164if test "${ac_cv_prog_NMEDIT+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 if test -n "$NMEDIT"; then
7168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183
7184fi
7185fi
7186NMEDIT=$ac_cv_prog_NMEDIT
7187if test -n "$NMEDIT"; then
7188 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7189echo "${ECHO_T}$NMEDIT" >&6
7190else
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
7193fi
7194
7195fi
7196if test -z "$ac_cv_prog_NMEDIT"; then
7197 ac_ct_NMEDIT=$NMEDIT
7198 # Extract the first word of "nmedit", so it can be a program name with args.
7199set dummy nmedit; ac_word=$2
7200echo "$as_me:$LINENO: checking for $ac_word" >&5
7201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205 if test -n "$ac_ct_NMEDIT"; then
7206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7207else
7208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209for as_dir in $PATH
7210do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219done
7220done
7221
7222 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7223fi
7224fi
7225ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7226if test -n "$ac_ct_NMEDIT"; then
7227 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7228echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7229else
7230 echo "$as_me:$LINENO: result: no" >&5
7231echo "${ECHO_T}no" >&6
7232fi
7233
7234 NMEDIT=$ac_ct_NMEDIT
7235else
7236 NMEDIT="$ac_cv_prog_NMEDIT"
7237fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7241set dummy ${ac_tool_prefix}lipo; ac_word=$2
7242echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7244if test "${ac_cv_prog_LIPO+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 if test -n "$LIPO"; then
7248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261done
7262done
7263
7264fi
7265fi
7266LIPO=$ac_cv_prog_LIPO
7267if test -n "$LIPO"; then
7268 echo "$as_me:$LINENO: result: $LIPO" >&5
7269echo "${ECHO_T}$LIPO" >&6
7270else
7271 echo "$as_me:$LINENO: result: no" >&5
7272echo "${ECHO_T}no" >&6
7273fi
7274
7275fi
7276if test -z "$ac_cv_prog_LIPO"; then
7277 ac_ct_LIPO=$LIPO
7278 # Extract the first word of "lipo", so it can be a program name with args.
7279set dummy lipo; ac_word=$2
7280echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 if test -n "$ac_ct_LIPO"; then
7286 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_LIPO="lipo"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300done
7301
7302 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7303fi
7304fi
7305ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7306if test -n "$ac_ct_LIPO"; then
7307 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7308echo "${ECHO_T}$ac_ct_LIPO" >&6
7309else
7310 echo "$as_me:$LINENO: result: no" >&5
7311echo "${ECHO_T}no" >&6
7312fi
7313
7314 LIPO=$ac_ct_LIPO
7315else
7316 LIPO="$ac_cv_prog_LIPO"
7317fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7321set dummy ${ac_tool_prefix}otool; ac_word=$2
7322echo "$as_me:$LINENO: checking for $ac_word" >&5
7323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324if test "${ac_cv_prog_OTOOL+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 if test -n "$OTOOL"; then
7328 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343
7344fi
7345fi
7346OTOOL=$ac_cv_prog_OTOOL
7347if test -n "$OTOOL"; then
7348 echo "$as_me:$LINENO: result: $OTOOL" >&5
7349echo "${ECHO_T}$OTOOL" >&6
7350else
7351 echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6
7353fi
7354
7355fi
7356if test -z "$ac_cv_prog_OTOOL"; then
7357 ac_ct_OTOOL=$OTOOL
7358 # Extract the first word of "otool", so it can be a program name with args.
7359set dummy otool; ac_word=$2
7360echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365 if test -n "$ac_ct_OTOOL"; then
7366 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7367else
7368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_ac_ct_OTOOL="otool"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381
7382 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7383fi
7384fi
7385ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7386if test -n "$ac_ct_OTOOL"; then
7387 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7388echo "${ECHO_T}$ac_ct_OTOOL" >&6
7389else
7390 echo "$as_me:$LINENO: result: no" >&5
7391echo "${ECHO_T}no" >&6
7392fi
7393
7394 OTOOL=$ac_ct_OTOOL
7395else
7396 OTOOL="$ac_cv_prog_OTOOL"
7397fi
7398
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7401set dummy ${ac_tool_prefix}otool64; ac_word=$2
7402echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7404if test "${ac_cv_prog_OTOOL64+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407 if test -n "$OTOOL64"; then
7408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423
7424fi
7425fi
7426OTOOL64=$ac_cv_prog_OTOOL64
7427if test -n "$OTOOL64"; then
7428 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7429echo "${ECHO_T}$OTOOL64" >&6
7430else
7431 echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6
7433fi
7434
7435fi
7436if test -z "$ac_cv_prog_OTOOL64"; then
7437 ac_ct_OTOOL64=$OTOOL64
7438 # Extract the first word of "otool64", so it can be a program name with args.
7439set dummy otool64; ac_word=$2
7440echo "$as_me:$LINENO: checking for $ac_word" >&5
7441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 if test -n "$ac_ct_OTOOL64"; then
7446 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447else
7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_OTOOL64="otool64"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459done
7460done
7461
7462 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7463fi
7464fi
7465ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466if test -n "$ac_ct_OTOOL64"; then
7467 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7468echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7469else
7470 echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6
7472fi
7473
7474 OTOOL64=$ac_ct_OTOOL64
7475else
7476 OTOOL64="$ac_cv_prog_OTOOL64"
7477fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7506echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7507if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 lt_cv_apple_cc_single_mod=no
7511 if test -z "${LT_MULTI_MODULE}"; then
7512 # By default we will add the -single_module flag. You can override
7513 # by either setting the environment variable LT_MULTI_MODULE
7514 # non-empty at configure time, or by adding -multi_module to the
7515 # link flags.
7516 rm -rf libconftest.dylib*
7517 echo "int foo(void){return 1;}" > conftest.c
7518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519-dynamiclib -Wl,-single_module conftest.c" >&5
7520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7522 _lt_result=$?
7523 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7524 lt_cv_apple_cc_single_mod=yes
7525 else
7526 cat conftest.err >&5
7527 fi
7528 rm -rf libconftest.dylib*
7529 rm -f conftest.*
7530 fi
7531fi
7532echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7533echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7534 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7535echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7536if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 lt_cv_ld_exported_symbols_list=no
7540 save_LDFLAGS=$LDFLAGS
7541 echo "_main" > conftest.sym
7542 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7543 cat >conftest.$ac_ext <<_ACEOF
7544/* confdefs.h. */
7545_ACEOF
7546cat confdefs.h >>conftest.$ac_ext
7547cat >>conftest.$ac_ext <<_ACEOF
7548/* end confdefs.h. */
7549
7550int
7551main ()
7552{
7553
7554 ;
7555 return 0;
7556}
7557_ACEOF
7558rm -f conftest.$ac_objext conftest$ac_exeext
7559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag"
7568 || test ! -s conftest.err'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; } &&
7574 { ac_try='test -s conftest$ac_exeext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 lt_cv_ld_exported_symbols_list=yes
7581else
7582 echo "$as_me: failed program was:" >&5
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
7585lt_cv_ld_exported_symbols_list=no
7586fi
7587rm -f conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 LDFLAGS="$save_LDFLAGS"
7590
7591fi
7592echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7593echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7594 case $host_os in
7595 rhapsody* | darwin1.[012])
7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7597 darwin1.*)
7598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 darwin*) # darwin 5.x on
7600 # if running on 10.5 or later, the deployment target defaults
7601 # to the OS version, if on x86, and 10.4, the deployment
7602 # target defaults to 10.4. Don't you love it?
7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7606 10.[012]*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 10.*)
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610 esac
7611 ;;
7612 esac
7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7614 _lt_dar_single_mod='$single_module'
7615 fi
7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7618 else
7619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7620 fi
7621 if test "$DSYMUTIL" != ":"; then
7622 _lt_dsymutil='~$DSYMUTIL $lib || :'
7623 else
7624 _lt_dsymutil=
7625 fi
7626 ;;
7627 esac
7628
7629
7630for ac_header in dlfcn.h
7631do
7632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7633echo "$as_me:$LINENO: checking for $ac_header" >&5
7634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h. */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h. */
7644$ac_includes_default
7645
7646#include <$ac_header>
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 eval "$as_ac_Header=yes"
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675eval "$as_ac_Header=no"
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7681if test `eval echo '${'$as_ac_Header'}'` = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684_ACEOF
7685
7686fi
7687
7688done
7689
7690
7691
7692# Set options
7693
7694
7695
7696 enable_dlopen=no
7697
7698
7699 enable_win32_dll=no
7700
7701
7702
7703 # Check whether --enable-static or --disable-static was given.
7704if test "${enable_static+set}" = set; then
7705 enableval="$enable_static"
7706 p=${PACKAGE-default}
7707 case $enableval in
7708 yes) enable_static=yes ;;
7709 no) enable_static=no ;;
7710 *)
7711 enable_static=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7715 IFS="$lt_save_ifs"
7716 if test "X$pkg" = "X$p"; then
7717 enable_static=yes
7718 fi
7719 done
7720 IFS="$lt_save_ifs"
7721 ;;
7722 esac
7723else
7724 enable_static=yes
7725fi;
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735# Check whether --with-pic or --without-pic was given.
7736if test "${with_pic+set}" = set; then
7737 withval="$with_pic"
7738 pic_mode="$withval"
7739else
7740 pic_mode=default
7741fi;
7742
7743test -z "$pic_mode" && pic_mode=default
7744
7745
7746
7747
7748
7749
7750
7751 # Check whether --enable-fast-install or --disable-fast-install was given.
7752if test "${enable_fast_install+set}" = set; then
7753 enableval="$enable_fast_install"
7754 p=${PACKAGE-default}
7755 case $enableval in
7756 yes) enable_fast_install=yes ;;
7757 no) enable_fast_install=no ;;
7758 *)
7759 enable_fast_install=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7762 for pkg in $enableval; do
7763 IFS="$lt_save_ifs"
7764 if test "X$pkg" = "X$p"; then
7765 enable_fast_install=yes
7766 fi
7767 done
7768 IFS="$lt_save_ifs"
7769 ;;
7770 esac
7771else
7772 enable_fast_install=yes
7773fi;
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784# This can be used to rebuild libtool when needed
7785LIBTOOL_DEPS="$ltmain"
7786
7787# Always use our own libtool.
7788LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814test -z "$LN_S" && LN_S="ln -s"
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829if test -n "${ZSH_VERSION+set}" ; then
7830 setopt NO_GLOB_SUBST
7831fi
7832
7833echo "$as_me:$LINENO: checking for objdir" >&5
7834echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7835if test "${lt_cv_objdir+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838 rm -f .libs 2>/dev/null
7839mkdir .libs 2>/dev/null
7840if test -d .libs; then
7841 lt_cv_objdir=.libs
7842else
7843 # MS-DOS does not allow filenames that begin with a dot.
7844 lt_cv_objdir=_libs
7845fi
7846rmdir .libs 2>/dev/null
7847fi
7848echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7849echo "${ECHO_T}$lt_cv_objdir" >&6
7850objdir=$lt_cv_objdir
7851
7852
7853
7854
7855
7856cat >>confdefs.h <<_ACEOF
7857#define LT_OBJDIR "$lt_cv_objdir/"
7858_ACEOF
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876case $host_os in
7877aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7884 fi
7885 ;;
7886esac
7887
7888# Sed substitution that helps us do robust quoting. It backslashifies
7889# metacharacters that are still active within double-quoted strings.
7890sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7891
7892# Same as above, but do not quote variable references.
7893double_quote_subst='s/\(["`\\]\)/\\\1/g'
7894
7895# Sed substitution to delay expansion of an escaped shell variable in a
7896# double_quote_subst'ed string.
7897delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7898
7899# Sed substitution to delay expansion of an escaped single quote.
7900delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7901
7902# Sed substitution to avoid accidental globbing in evaled expressions
7903no_glob_subst='s/\*/\\\*/g'
7904
7905# Global variables:
7906ofile=libtool
7907can_build_shared=yes
7908
7909# All known linkers require a `.a' archive for static linking (except MSVC,
7910# which needs '.lib').
7911libext=a
7912
7913with_gnu_ld="$lt_cv_prog_gnu_ld"
7914
7915old_CC="$CC"
7916old_CFLAGS="$CFLAGS"
7917
7918# Set sane defaults for various variables
7919test -z "$CC" && CC=cc
7920test -z "$LTCC" && LTCC=$CC
7921test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7922test -z "$LD" && LD=ld
7923test -z "$ac_objext" && ac_objext=o
7924
7925for cc_temp in $compiler""; do
7926 case $cc_temp in
7927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7929 \-*) ;;
7930 *) break;;
7931 esac
7932done
7933cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7934
7935
7936# Only perform the check for file, if the check method requires it
7937test -z "$MAGIC_CMD" && MAGIC_CMD=file
7938case $deplibs_check_method in
7939file_magic*)
7940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7942echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7943if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 case $MAGIC_CMD in
7947[\\/*] | ?:[\\/]*)
7948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7949 ;;
7950*)
7951 lt_save_MAGIC_CMD="$MAGIC_CMD"
7952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7954 for ac_dir in $ac_dummy; do
7955 IFS="$lt_save_ifs"
7956 test -z "$ac_dir" && ac_dir=.
7957 if test -f $ac_dir/${ac_tool_prefix}file; then
7958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7959 if test -n "$file_magic_test_file"; then
7960 case $deplibs_check_method in
7961 "file_magic "*)
7962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7965 $EGREP "$file_magic_regex" > /dev/null; then
7966 :
7967 else
7968 cat <<_LT_EOF 1>&2
7969
7970*** Warning: the command libtool uses to detect shared libraries,
7971*** $file_magic_cmd, produces output that libtool cannot recognize.
7972*** The result is that libtool may fail to recognize shared libraries
7973*** as such. This will affect the creation of libtool libraries that
7974*** depend on shared libraries, but programs linked with such libtool
7975*** libraries will work regardless of this problem. Nevertheless, you
7976*** may want to report the problem to your system manager and/or to
7977*** bug-libtool@gnu.org
7978
7979_LT_EOF
7980 fi ;;
7981 esac
7982 fi
7983 break
7984 fi
7985 done
7986 IFS="$lt_save_ifs"
7987 MAGIC_CMD="$lt_save_MAGIC_CMD"
7988 ;;
7989esac
7990fi
7991
7992MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7993if test -n "$MAGIC_CMD"; then
7994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7995echo "${ECHO_T}$MAGIC_CMD" >&6
7996else
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
7999fi
8000
8001
8002
8003
8004
8005if test -z "$lt_cv_path_MAGIC_CMD"; then
8006 if test -n "$ac_tool_prefix"; then
8007 echo "$as_me:$LINENO: checking for file" >&5
8008echo $ECHO_N "checking for file... $ECHO_C" >&6
8009if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 case $MAGIC_CMD in
8013[\\/*] | ?:[\\/]*)
8014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8015 ;;
8016*)
8017 lt_save_MAGIC_CMD="$MAGIC_CMD"
8018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8020 for ac_dir in $ac_dummy; do
8021 IFS="$lt_save_ifs"
8022 test -z "$ac_dir" && ac_dir=.
8023 if test -f $ac_dir/file; then
8024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8025 if test -n "$file_magic_test_file"; then
8026 case $deplibs_check_method in
8027 "file_magic "*)
8028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8031 $EGREP "$file_magic_regex" > /dev/null; then
8032 :
8033 else
8034 cat <<_LT_EOF 1>&2
8035
8036*** Warning: the command libtool uses to detect shared libraries,
8037*** $file_magic_cmd, produces output that libtool cannot recognize.
8038*** The result is that libtool may fail to recognize shared libraries
8039*** as such. This will affect the creation of libtool libraries that
8040*** depend on shared libraries, but programs linked with such libtool
8041*** libraries will work regardless of this problem. Nevertheless, you
8042*** may want to report the problem to your system manager and/or to
8043*** bug-libtool@gnu.org
8044
8045_LT_EOF
8046 fi ;;
8047 esac
8048 fi
8049 break
8050 fi
8051 done
8052 IFS="$lt_save_ifs"
8053 MAGIC_CMD="$lt_save_MAGIC_CMD"
8054 ;;
8055esac
8056fi
8057
8058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059if test -n "$MAGIC_CMD"; then
8060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8061echo "${ECHO_T}$MAGIC_CMD" >&6
8062else
8063 echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
8065fi
8066
8067
8068 else
8069 MAGIC_CMD=:
8070 fi
8071fi
8072
8073 fi
8074 ;;
8075esac
8076
8077# Use C for the default configuration in the libtool script
8078
8079lt_save_CC="$CC"
8080ac_ext=c
8081ac_cpp='$CPP $CPPFLAGS'
8082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084ac_compiler_gnu=$ac_cv_c_compiler_gnu
8085
8086
8087# Source file extension for C test sources.
8088ac_ext=c
8089
8090# Object file extension for compiled C test sources.
8091objext=o
8092objext=$objext
8093
8094# Code to be used in simple compile tests
8095lt_simple_compile_test_code="int some_variable = 0;"
8096
8097# Code to be used in simple link tests
8098lt_simple_link_test_code='int main(){return(0);}'
8099
8100
8101
8102
8103
8104
8105
8106# If no C compiler was specified, use CC.
8107LTCC=${LTCC-"$CC"}
8108
8109# If no C compiler flags were specified, use CFLAGS.
8110LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8111
8112# Allow CC to be a program name with arguments.
8113compiler=$CC
8114
8115# Save the default compiler, since it gets overwritten when the other
8116# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8117compiler_DEFAULT=$CC
8118
8119# save warnings/boilerplate of simple test code
8120ac_outfile=conftest.$ac_objext
8121echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8123_lt_compiler_boilerplate=`cat conftest.err`
8124$RM conftest*
8125
8126ac_outfile=conftest.$ac_objext
8127echo "$lt_simple_link_test_code" >conftest.$ac_ext
8128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8129_lt_linker_boilerplate=`cat conftest.err`
8130$RM -r conftest*
8131
8132
8133## CAVEAT EMPTOR:
8134## There is no encapsulation within the following macros, do not change
8135## the running order or otherwise move them around unless you know exactly
8136## what you are doing...
8137if test -n "$compiler"; then
8138
8139lt_prog_compiler_no_builtin_flag=
8140
8141if test "$GCC" = yes; then
8142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8143
8144 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8146if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions"
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
8162 (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
8166 echo "$as_me:8166: \$? = $ac_status" >&5
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8174 fi
8175 fi
8176 $RM conftest*
8177
8178fi
8179echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8181
8182if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184else
8185 :
8186fi
8187
8188fi
8189
8190
8191
8192
8193
8194
8195 lt_prog_compiler_wl=
8196lt_prog_compiler_pic=
8197lt_prog_compiler_static=
8198
8199echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8200echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8201
8202 if test "$GCC" = yes; then
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_static='-static'
8205
8206 case $host_os in
8207 aix*)
8208 # All AIX code is PIC.
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
8212 fi
8213 ;;
8214
8215 amigaos*)
8216 case $host_cpu in
8217 powerpc)
8218 # see comment about AmigaOS4 .so support
8219 lt_prog_compiler_pic='-fPIC'
8220 ;;
8221 m68k)
8222 # FIXME: we need at least 68020 code to build shared libraries, but
8223 # adding the `-m68020' flag to GCC prevents building anything better,
8224 # like `-m68040'.
8225 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8226 ;;
8227 esac
8228 ;;
8229
8230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8231 # PIC is the default for these OSes.
8232 ;;
8233
8234 mingw* | cygwin* | pw32* | os2* | cegcc*)
8235 # This hack is so that the source file can tell whether it is being
8236 # built for inclusion in a dll (and should export symbols for example).
8237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8238 # (--disable-auto-import) libraries
8239 lt_prog_compiler_pic='-DDLL_EXPORT'
8240 ;;
8241
8242 darwin* | rhapsody*)
8243 # PIC is the default on this platform
8244 # Common symbols not allowed in MH_DYLIB files
8245 lt_prog_compiler_pic='-fno-common'
8246 ;;
8247
8248 hpux*)
8249 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8250 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8251 # sets the default TLS model and affects inlining.
8252 case $host_cpu in
8253 hppa*64*)
8254 # +Z the default
8255 ;;
8256 *)
8257 lt_prog_compiler_pic='-fPIC'
8258 ;;
8259 esac
8260 ;;
8261
8262 interix[3-9]*)
8263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8264 # Instead, we relocate shared libraries at runtime.
8265 ;;
8266
8267 msdosdjgpp*)
8268 # Just because we use GCC doesn't mean we suddenly get shared libraries
8269 # on systems that don't support them.
8270 lt_prog_compiler_can_build_shared=no
8271 enable_shared=no
8272 ;;
8273
8274 *nto* | *qnx*)
8275 # QNX uses GNU C++, but need to define -shared option too, otherwise
8276 # it will coredump.
8277 lt_prog_compiler_pic='-fPIC -shared'
8278 ;;
8279
8280 sysv4*MP*)
8281 if test -d /usr/nec; then
8282 lt_prog_compiler_pic=-Kconform_pic
8283 fi
8284 ;;
8285
8286 *)
8287 lt_prog_compiler_pic='-fPIC'
8288 ;;
8289 esac
8290 else
8291 # PORTME Check for flag to pass linker flags through the system compiler.
8292 case $host_os in
8293 aix*)
8294 lt_prog_compiler_wl='-Wl,'
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 now supports IA64 processor
8297 lt_prog_compiler_static='-Bstatic'
8298 else
8299 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8300 fi
8301 ;;
8302
8303 mingw* | cygwin* | pw32* | os2* | cegcc*)
8304 # This hack is so that the source file can tell whether it is being
8305 # built for inclusion in a dll (and should export symbols for example).
8306 lt_prog_compiler_pic='-DDLL_EXPORT'
8307 ;;
8308
8309 hpux9* | hpux10* | hpux11*)
8310 lt_prog_compiler_wl='-Wl,'
8311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8312 # not for PA HP-UX.
8313 case $host_cpu in
8314 hppa*64*|ia64*)
8315 # +Z the default
8316 ;;
8317 *)
8318 lt_prog_compiler_pic='+Z'
8319 ;;
8320 esac
8321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8322 lt_prog_compiler_static='${wl}-a ${wl}archive'
8323 ;;
8324
8325 irix5* | irix6* | nonstopux*)
8326 lt_prog_compiler_wl='-Wl,'
8327 # PIC (with -KPIC) is the default.
8328 lt_prog_compiler_static='-non_shared'
8329 ;;
8330
8331 linux* | k*bsd*-gnu)
8332 case $cc_basename in
8333 # old Intel for x86_64 which still supported -KPIC.
8334 ecc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-static'
8338 ;;
8339 # icc used to be incompatible with GCC.
8340 # ICC 10 doesn't accept -KPIC any more.
8341 icc* | ifort*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fPIC'
8344 lt_prog_compiler_static='-static'
8345 ;;
8346 # Lahey Fortran 8.1.
8347 lf95*)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='--shared'
8350 lt_prog_compiler_static='--static'
8351 ;;
8352 pgcc* | pgf77* | pgf90* | pgf95*)
8353 # Portland Group compilers (*not* the Pentium gcc compiler,
8354 # which looks to be a dead project)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-fpic'
8357 lt_prog_compiler_static='-Bstatic'
8358 ;;
8359 ccc*)
8360 lt_prog_compiler_wl='-Wl,'
8361 # All Alpha code is PIC.
8362 lt_prog_compiler_static='-non_shared'
8363 ;;
8364 xl*)
8365 # IBM XL C 8.0/Fortran 10.1 on PPC
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-qpic'
8368 lt_prog_compiler_static='-qstaticlink'
8369 ;;
8370 *)
8371 case `$CC -V 2>&1 | sed 5q` in
8372 *Sun\ C*)
8373 # Sun C 5.9
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 lt_prog_compiler_wl='-Wl,'
8377 ;;
8378 *Sun\ F*)
8379 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 lt_prog_compiler_wl=''
8383 ;;
8384 esac
8385 ;;
8386 esac
8387 ;;
8388
8389 newsos6)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8398 ;;
8399
8400 osf3* | osf4* | osf5*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # All OSF/1 code is PIC.
8403 lt_prog_compiler_static='-non_shared'
8404 ;;
8405
8406 rdos*)
8407 lt_prog_compiler_static='-non_shared'
8408 ;;
8409
8410 solaris*)
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 case $cc_basename in
8414 f77* | f90* | f95*)
8415 lt_prog_compiler_wl='-Qoption ld ';;
8416 *)
8417 lt_prog_compiler_wl='-Wl,';;
8418 esac
8419 ;;
8420
8421 sunos4*)
8422 lt_prog_compiler_wl='-Qoption ld '
8423 lt_prog_compiler_pic='-PIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
8426
8427 sysv4 | sysv4.2uw2* | sysv4.3*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432
8433 sysv4*MP*)
8434 if test -d /usr/nec ;then
8435 lt_prog_compiler_pic='-Kconform_pic'
8436 lt_prog_compiler_static='-Bstatic'
8437 fi
8438 ;;
8439
8440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
8445
8446 unicos*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_can_build_shared=no
8449 ;;
8450
8451 uts4*)
8452 lt_prog_compiler_pic='-pic'
8453 lt_prog_compiler_static='-Bstatic'
8454 ;;
8455
8456 *)
8457 lt_prog_compiler_can_build_shared=no
8458 ;;
8459 esac
8460 fi
8461
8462case $host_os in
8463 # For platforms which do not support PIC, -DPIC is meaningless:
8464 *djgpp*)
8465 lt_prog_compiler_pic=
8466 ;;
8467 *)
8468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8469 ;;
8470esac
8471echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8472echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8473
8474
8475
8476
8477
8478
8479#
8480# Check to make sure the PIC flag actually works.
8481#
8482if test -n "$lt_prog_compiler_pic"; then
8483 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8484echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8485if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488 lt_cv_prog_compiler_pic_works=no
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 # The option is referenced via a variable to avoid confusing sed.
8497 lt_compile=`echo "$ac_compile" | $SED \
8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500 -e 's:$: $lt_compiler_flag:'`
8501 (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
8502 (eval "$lt_compile" 2>conftest.err)
8503 ac_status=$?
8504 cat conftest.err >&5
8505 echo "$as_me:8505: \$? = $ac_status" >&5
8506 if (exit $ac_status) && test -s "$ac_outfile"; then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings other than the usual output.
8509 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_pic_works=yes
8513 fi
8514 fi
8515 $RM conftest*
8516
8517fi
8518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8519echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8520
8521if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8522 case $lt_prog_compiler_pic in
8523 "" | " "*) ;;
8524 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8525 esac
8526else
8527 lt_prog_compiler_pic=
8528 lt_prog_compiler_can_build_shared=no
8529fi
8530
8531fi
8532
8533
8534
8535
8536
8537
8538#
8539# Check to make sure the static flag actually works.
8540#
8541wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8542echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8543echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8544if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547 lt_cv_prog_compiler_static_works=no
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler_static_works=yes
8561 fi
8562 else
8563 lt_cv_prog_compiler_static_works=yes
8564 fi
8565 fi
8566 $RM -r conftest*
8567 LDFLAGS="$save_LDFLAGS"
8568
8569fi
8570echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8571echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8572
8573if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8574 :
8575else
8576 lt_prog_compiler_static=
8577fi
8578
8579
8580
8581
8582
8583
8584
8585 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8586echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8587if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589else
8590 lt_cv_prog_compiler_c_o=no
8591 $RM -r conftest 2>/dev/null
8592 mkdir conftest
8593 cd conftest
8594 mkdir out
8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8596
8597 lt_compiler_flag="-o out/conftest2.$ac_objext"
8598 # Insert the option either (1) after the last *FLAGS variable, or
8599 # (2) before a word containing "conftest.", or (3) at the end.
8600 # Note that $ac_compile itself does not contain backslashes and begins
8601 # with a dollar sign (not a hyphen), so the echo should work correctly.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607 (eval "$lt_compile" 2>out/conftest.err)
8608 ac_status=$?
8609 cat out/conftest.err >&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8612 then
8613 # The compiler can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
8615 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618 lt_cv_prog_compiler_c_o=yes
8619 fi
8620 fi
8621 chmod u+w . 2>&5
8622 $RM conftest*
8623 # SGI C++ compiler will create directory out/ii_files/ for
8624 # template instantiation
8625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8626 $RM out/* && rmdir out
8627 cd ..
8628 $RM -r conftest
8629 $RM conftest*
8630
8631fi
8632echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8633echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8634
8635
8636
8637
8638
8639
8640 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8641echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8642if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645 lt_cv_prog_compiler_c_o=no
8646 $RM -r conftest 2>/dev/null
8647 mkdir conftest
8648 cd conftest
8649 mkdir out
8650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8651
8652 lt_compiler_flag="-o out/conftest2.$ac_objext"
8653 # Insert the option either (1) after the last *FLAGS variable, or
8654 # (2) before a word containing "conftest.", or (3) at the end.
8655 # Note that $ac_compile itself does not contain backslashes and begins
8656 # with a dollar sign (not a hyphen), so the echo should work correctly.
8657 lt_compile=`echo "$ac_compile" | $SED \
8658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660 -e 's:$: $lt_compiler_flag:'`
8661 (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
8662 (eval "$lt_compile" 2>out/conftest.err)
8663 ac_status=$?
8664 cat out/conftest.err >&5
8665 echo "$as_me:8665: \$? = $ac_status" >&5
8666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8667 then
8668 # The compiler can only warn and ignore the option if not recognized
8669 # So say no if there are warnings
8670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8673 lt_cv_prog_compiler_c_o=yes
8674 fi
8675 fi
8676 chmod u+w . 2>&5
8677 $RM conftest*
8678 # SGI C++ compiler will create directory out/ii_files/ for
8679 # template instantiation
8680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8681 $RM out/* && rmdir out
8682 cd ..
8683 $RM -r conftest
8684 $RM conftest*
8685
8686fi
8687echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8688echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8689
8690
8691
8692
8693hard_links="nottested"
8694if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8695 # do not overwrite the value of need_locks provided by the user
8696 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8697echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8698 hard_links=yes
8699 $RM conftest*
8700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8701 touch conftest.a
8702 ln conftest.a conftest.b 2>&5 || hard_links=no
8703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704 echo "$as_me:$LINENO: result: $hard_links" >&5
8705echo "${ECHO_T}$hard_links" >&6
8706 if test "$hard_links" = no; then
8707 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8708echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8709 need_locks=warn
8710 fi
8711else
8712 need_locks=no
8713fi
8714
8715
8716
8717
8718
8719
8720 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8721echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8722
8723 runpath_var=
8724 allow_undefined_flag=
8725 always_export_symbols=no
8726 archive_cmds=
8727 archive_expsym_cmds=
8728 compiler_needs_object=no
8729 enable_shared_with_static_runtimes=no
8730 export_dynamic_flag_spec=
8731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8732 hardcode_automatic=no
8733 hardcode_direct=no
8734 hardcode_direct_absolute=no
8735 hardcode_libdir_flag_spec=
8736 hardcode_libdir_flag_spec_ld=
8737 hardcode_libdir_separator=
8738 hardcode_minus_L=no
8739 hardcode_shlibpath_var=unsupported
8740 inherit_rpath=no
8741 link_all_deplibs=unknown
8742 module_cmds=
8743 module_expsym_cmds=
8744 old_archive_from_new_cmds=
8745 old_archive_from_expsyms_cmds=
8746 thread_safe_flag_spec=
8747 whole_archive_flag_spec=
8748 # include_expsyms should be a list of space-separated symbols to be *always*
8749 # included in the symbol list
8750 include_expsyms=
8751 # exclude_expsyms can be an extended regexp of symbols to exclude
8752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8754 # as well as any symbol that contains `d'.
8755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8757 # platforms (ab)use it in PIC code, but their linkers get confused if
8758 # the symbol is explicitly referenced. Since portable code cannot
8759 # rely on this symbol name, it's probably fine to never include it in
8760 # preloaded symbol tables.
8761 # Exclude shared library initialization/finalization symbols.
8762 extract_expsyms_cmds=
8763
8764 case $host_os in
8765 cygwin* | mingw* | pw32* | cegcc*)
8766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8767 # When not using gcc, we currently assume that we are using
8768 # Microsoft Visual C++.
8769 if test "$GCC" != yes; then
8770 with_gnu_ld=no
8771 fi
8772 ;;
8773 interix*)
8774 # we just hope/assume this is gcc and not c89 (= MSVC++)
8775 with_gnu_ld=yes
8776 ;;
8777 openbsd*)
8778 with_gnu_ld=no
8779 ;;
8780 esac
8781
8782 ld_shlibs=yes
8783 if test "$with_gnu_ld" = yes; then
8784 # If archive_cmds runs LD, not CC, wlarc should be empty
8785 wlarc='${wl}'
8786
8787 # Set some defaults for GNU ld with shared library support. These
8788 # are reset later if shared libraries are not supported. Putting them
8789 # here allows them to be overridden if necessary.
8790 runpath_var=LD_RUN_PATH
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 export_dynamic_flag_spec='${wl}--export-dynamic'
8793 # ancient GNU ld didn't support --whole-archive et. al.
8794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8796 else
8797 whole_archive_flag_spec=
8798 fi
8799 supports_anon_versioning=no
8800 case `$LD -v 2>&1` in
8801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8804 *\ 2.11.*) ;; # other 2.11 versions
8805 *) supports_anon_versioning=yes ;;
8806 esac
8807
8808 # See if GNU ld supports shared libraries.
8809 case $host_os in
8810 aix[3-9]*)
8811 # On AIX/PPC, the GNU linker is very broken
8812 if test "$host_cpu" != ia64; then
8813 ld_shlibs=no
8814 cat <<_LT_EOF 1>&2
8815
8816*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8817*** to be unable to reliably create shared libraries on AIX.
8818*** Therefore, libtool is disabling shared libraries support. If you
8819*** really care for shared libraries, you may want to modify your PATH
8820*** so that a non-GNU linker is found, and then restart.
8821
8822_LT_EOF
8823 fi
8824 ;;
8825
8826 amigaos*)
8827 case $host_cpu in
8828 powerpc)
8829 # see comment about AmigaOS4 .so support
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds=''
8832 ;;
8833 m68k)
8834 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)'
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_minus_L=yes
8837 ;;
8838 esac
8839 ;;
8840
8841 beos*)
8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843 allow_undefined_flag=unsupported
8844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8845 # support --undefined. This deserves some investigation. FIXME
8846 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 else
8848 ld_shlibs=no
8849 fi
8850 ;;
8851
8852 cygwin* | mingw* | pw32* | cegcc*)
8853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8854 # as there is no search path for DLLs.
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8870 fi~
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 interix[3-9]*)
8878 hardcode_direct=no
8879 hardcode_shlibpath_var=no
8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881 export_dynamic_flag_spec='${wl}-E'
8882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8883 # Instead, shared libraries are loaded at an image base (0x10000000 by
8884 # default) and relocated if they conflict, which is a slow very memory
8885 # consuming and fragmenting process. To avoid this, we pick a random,
8886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8890 ;;
8891
8892 gnu* | linux* | tpf* | k*bsd*-gnu)
8893 tmp_diet=no
8894 if test "$host_os" = linux-dietlibc; then
8895 case $cc_basename in
8896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8897 esac
8898 fi
8899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8900 && test "$tmp_diet" = no
8901 then
8902 tmp_addflag=
8903 tmp_sharedflag='-shared'
8904 case $cc_basename,$host_cpu in
8905 pgcc*) # Portland Group C compiler
8906 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8907 tmp_addflag=' $pic_flag'
8908 ;;
8909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8910 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8911 tmp_addflag=' $pic_flag -Mnomain' ;;
8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8913 tmp_addflag=' -i_dynamic' ;;
8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8915 tmp_addflag=' -i_dynamic -nofor_main' ;;
8916 ifc* | ifort*) # Intel Fortran compiler
8917 tmp_addflag=' -nofor_main' ;;
8918 lf95*) # Lahey Fortran 8.1
8919 whole_archive_flag_spec=
8920 tmp_sharedflag='--shared' ;;
8921 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8922 tmp_sharedflag='-qmkshrobj'
8923 tmp_addflag= ;;
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 fi
8941
8942 case $cc_basename in
8943 xlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 fi
8955 ;;
8956 esac
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 fi
8970 ;;
8971
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8976
8977*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978*** create shared libraries on Solaris systems. Therefore, libtool
8979*** is disabling shared libraries support. We urge you to upgrade GNU
8980*** binutils to release 2.9.1 or newer. Another option is to modify
8981*** your PATH or compiler configuration so that the native linker is
8982*** used, and then restart.
8983
8984_LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8998
8999*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000*** reliably create shared libraries on SCO systems. Therefore, libtool
9001*** is disabling shared libraries support. We urge you to upgrade GNU
9002*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003*** your PATH or compiler configuration so that the native linker is
9004*** used, and then restart.
9005
9006_LT_EOF
9007 ;;
9008 *)
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022 ;;
9023
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 *)
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039 esac
9040
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9046 fi
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9061 fi
9062 ;;
9063
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9075 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'
9076 else
9077 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'
9078 fi
9079 aix_use_runtimelinking=no
9080
9081 # Test if we are trying to use run time linking or normal
9082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083 # need to do runtime linking.
9084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9085 for ld_flag in $LDFLAGS; do
9086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087 aix_use_runtimelinking=yes
9088 break
9089 fi
9090 done
9091 ;;
9092 esac
9093
9094 exp_sym_flag='-bexport'
9095 no_entry_flag='-bnoentry'
9096 fi
9097
9098 # When large executables or shared objects are built, AIX ld can
9099 # have problems creating the table of contents. If linking a library
9100 # or program results in "error TOC overflow" add -mminimal-toc to
9101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103
9104 archive_cmds=''
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 file_list_spec='${wl}-f,'
9110
9111 if test "$GCC" = yes; then
9112 case $host_os in aix4.[012]|aix4.[012].*)
9113 # We only want to do this on AIX 4.2 and lower, the check
9114 # below for broken collect2 doesn't work under 4.3+
9115 collect2name=`${CC} -print-prog-name=collect2`
9116 if test -f "$collect2name" &&
9117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9118 then
9119 # We have reworked collect2
9120 :
9121 else
9122 # We have old collect2
9123 hardcode_direct=unsupported
9124 # It fails to find uninstalled libraries when the uninstalled
9125 # path is not listed in the libpath. Setting hardcode_minus_L
9126 # to unsupported forces relinking
9127 hardcode_minus_L=yes
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_libdir_separator=
9130 fi
9131 ;;
9132 esac
9133 shared_flag='-shared'
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag="$shared_flag "'${wl}-G'
9136 fi
9137 else
9138 # not using gcc
9139 if test "$host_cpu" = ia64; then
9140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141 # chokes on -Wl,-G. The following line is correct:
9142 shared_flag='-G'
9143 else
9144 if test "$aix_use_runtimelinking" = yes; then
9145 shared_flag='${wl}-G'
9146 else
9147 shared_flag='${wl}-bM:SRE'
9148 fi
9149 fi
9150 fi
9151
9152 export_dynamic_flag_spec='${wl}-bexpall'
9153 # It seems that -bexpall does not export symbols beginning with
9154 # underscore (_), so it is better to generate a list of symbols to export.
9155 always_export_symbols=yes
9156 if test "$aix_use_runtimelinking" = yes; then
9157 # Warning - without using the other runtime loading flags (-brtl),
9158 # -berok will link without error, but may produce a broken library.
9159 allow_undefined_flag='-berok'
9160 # Determine the default libpath from the value encoded in an
9161 # empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168
9169int
9170main ()
9171{
9172
9173 ;
9174 return 0;
9175}
9176_ACEOF
9177rm -f conftest.$ac_objext conftest$ac_exeext
9178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199
9200lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9202 /^0/ {
9203 s/^0 *\(.*\)$/\1/
9204 p
9205 }
9206 }'
9207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208# Check for a 64-bit object if we didn't find anything.
9209if test -z "$aix_libpath"; then
9210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211fi
9212else
9213 echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216fi
9217rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9220
9221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9223 else
9224 if test "$host_cpu" = ia64; then
9225 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9226 allow_undefined_flag="-z nodefs"
9227 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9228 else
9229 # Determine the default libpath from the value encoded in an
9230 # empty executable.
9231 cat >conftest.$ac_ext <<_ACEOF
9232/* confdefs.h. */
9233_ACEOF
9234cat confdefs.h >>conftest.$ac_ext
9235cat >>conftest.$ac_ext <<_ACEOF
9236/* end confdefs.h. */
9237
9238int
9239main ()
9240{
9241
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268
9269lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9271 /^0/ {
9272 s/^0 *\(.*\)$/\1/
9273 p
9274 }
9275 }'
9276aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277# Check for a 64-bit object if we didn't find anything.
9278if test -z "$aix_libpath"; then
9279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280fi
9281else
9282 echo "$as_me: failed program was:" >&5
9283sed 's/^/| /' conftest.$ac_ext >&5
9284
9285fi
9286rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9289
9290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9291 # Warning - without using the other run time loading flags,
9292 # -berok will link without error, but may produce a broken library.
9293 no_undefined_flag=' ${wl}-bernotok'
9294 allow_undefined_flag=' ${wl}-berok'
9295 # Exported symbols can be pulled into shared objects from archives
9296 whole_archive_flag_spec='$convenience'
9297 archive_cmds_need_lc=yes
9298 # This is similar to how AIX traditionally builds its shared libraries.
9299 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9300 fi
9301 fi
9302 ;;
9303
9304 amigaos*)
9305 case $host_cpu in
9306 powerpc)
9307 # see comment about AmigaOS4 .so support
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds=''
9310 ;;
9311 m68k)
9312 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)'
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9315 ;;
9316 esac
9317 ;;
9318
9319 bsdi[45]*)
9320 export_dynamic_flag_spec=-rdynamic
9321 ;;
9322
9323 cygwin* | mingw* | pw32* | cegcc*)
9324 # When not using gcc, we currently assume that we are using
9325 # Microsoft Visual C++.
9326 # hardcode_libdir_flag_spec is actually meaningless, as there is
9327 # no search path for DLLs.
9328 hardcode_libdir_flag_spec=' '
9329 allow_undefined_flag=unsupported
9330 # Tell ltmain to make .lib files, not .a files.
9331 libext=lib
9332 # Tell ltmain to make .dll files, not .so files.
9333 shrext_cmds=".dll"
9334 # FIXME: Setting linknames here is a bad hack.
9335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9336 # The linker will automatically build a .lib file if we build a DLL.
9337 old_archive_from_new_cmds='true'
9338 # FIXME: Should let the user specify the lib program.
9339 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9340 fix_srcfile_path='`cygpath -w "$srcfile"`'
9341 enable_shared_with_static_runtimes=yes
9342 ;;
9343
9344 darwin* | rhapsody*)
9345
9346
9347 archive_cmds_need_lc=no
9348 hardcode_direct=no
9349 hardcode_automatic=yes
9350 hardcode_shlibpath_var=unsupported
9351 whole_archive_flag_spec=''
9352 link_all_deplibs=yes
9353 allow_undefined_flag="$_lt_dar_allow_undefined"
9354 case $cc_basename in
9355 ifort*) _lt_dar_can_shared=yes ;;
9356 *) _lt_dar_can_shared=$GCC ;;
9357 esac
9358 if test "$_lt_dar_can_shared" = "yes"; then
9359 output_verbose_link_cmd=echo
9360 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9361 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9362 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9363 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9364
9365 else
9366 ld_shlibs=no
9367 fi
9368
9369 ;;
9370
9371 dgux*)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 freebsd1*)
9378 ld_shlibs=no
9379 ;;
9380
9381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9382 # support. Future versions do this automatically, but an explicit c++rt0.o
9383 # does not break anything, and helps significantly (at the cost of a little
9384 # extra space).
9385 freebsd2.2*)
9386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9387 hardcode_libdir_flag_spec='-R$libdir'
9388 hardcode_direct=yes
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9393 freebsd2*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes
9396 hardcode_minus_L=yes
9397 hardcode_shlibpath_var=no
9398 ;;
9399
9400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9401 freebsd* | dragonfly*)
9402 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9406 ;;
9407
9408 hpux9*)
9409 if test "$GCC" = yes; then
9410 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'
9411 else
9412 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'
9413 fi
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416 hardcode_direct=yes
9417
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 ;;
9423
9424 hpux10*)
9425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9426 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9429 fi
9430 if test "$with_gnu_ld" = no; then
9431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432 hardcode_libdir_flag_spec_ld='+b $libdir'
9433 hardcode_libdir_separator=:
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437 # hardcode_minus_L: Not really in the search PATH,
9438 # but as the default location of the library.
9439 hardcode_minus_L=yes
9440 fi
9441 ;;
9442
9443 hpux11*)
9444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9445 case $host_cpu in
9446 hppa*64*)
9447 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 ia64*)
9450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 *)
9453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 esac
9456 else
9457 case $host_cpu in
9458 hppa*64*)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 ;;
9461 ia64*)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9463 ;;
9464 *)
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 ;;
9467 esac
9468 fi
9469 if test "$with_gnu_ld" = no; then
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9472
9473 case $host_cpu in
9474 hppa*64*|ia64*)
9475 hardcode_direct=no
9476 hardcode_shlibpath_var=no
9477 ;;
9478 *)
9479 hardcode_direct=yes
9480 hardcode_direct_absolute=yes
9481 export_dynamic_flag_spec='${wl}-E'
9482
9483 # hardcode_minus_L: Not really in the search PATH,
9484 # but as the default location of the library.
9485 hardcode_minus_L=yes
9486 ;;
9487 esac
9488 fi
9489 ;;
9490
9491 irix5* | irix6* | nonstopux*)
9492 if test "$GCC" = yes; then
9493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9494 # Try to use the -exported_symbol ld option, if it does not
9495 # work, assume that -exports_file does not work either and
9496 # implicitly export all symbols.
9497 save_LDFLAGS="$LDFLAGS"
9498 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9499 cat >conftest.$ac_ext <<_ACEOF
9500int foo(void) {}
9501_ACEOF
9502rm -f conftest.$ac_objext conftest$ac_exeext
9503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9525
9526else
9527 echo "$as_me: failed program was:" >&5
9528sed 's/^/| /' conftest.$ac_ext >&5
9529
9530fi
9531rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LDFLAGS="$save_LDFLAGS"
9534 else
9535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9537 fi
9538 archive_cmds_need_lc='no'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 inherit_rpath=yes
9542 link_all_deplibs=yes
9543 ;;
9544
9545 netbsd*)
9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9548 else
9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9550 fi
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 newsos6)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=yes
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *nto* | *qnx*)
9565 ;;
9566
9567 openbsd*)
9568 if test -f /usr/libexec/ld.so; then
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9571 hardcode_direct_absolute=yes
9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576 export_dynamic_flag_spec='${wl}-E'
9577 else
9578 case $host_os in
9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_libdir_flag_spec='-R$libdir'
9582 ;;
9583 *)
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 ;;
9587 esac
9588 fi
9589 else
9590 ld_shlibs=no
9591 fi
9592 ;;
9593
9594 os2*)
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_minus_L=yes
9597 allow_undefined_flag=unsupported
9598 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'
9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9600 ;;
9601
9602 osf3*)
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9609 fi
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 ;;
9614
9615 osf4* | osf5*) # as osf3* with the addition of -msym flag
9616 if test "$GCC" = yes; then
9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 else
9621 allow_undefined_flag=' -expect_unresolved \*'
9622 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9623 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9624 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9625
9626 # Both c and cxx compiler support -rpath directly
9627 hardcode_libdir_flag_spec='-rpath $libdir'
9628 fi
9629 archive_cmds_need_lc='no'
9630 hardcode_libdir_separator=:
9631 ;;
9632
9633 solaris*)
9634 no_undefined_flag=' -z defs'
9635 if test "$GCC" = yes; then
9636 wlarc='${wl}'
9637 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640 else
9641 case `$CC -V 2>&1` in
9642 *"Compilers 5.0"*)
9643 wlarc=''
9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9647 ;;
9648 *)
9649 wlarc='${wl}'
9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9653 ;;
9654 esac
9655 fi
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_shlibpath_var=no
9658 case $host_os in
9659 solaris2.[0-5] | solaris2.[0-5].*) ;;
9660 *)
9661 # The compiler driver will combine and reorder linker options,
9662 # but understands `-z linker_flag'. GCC discards it without `$wl',
9663 # but is careful enough not to reorder.
9664 # Supported since Solaris 2.6 (maybe 2.5.1?)
9665 if test "$GCC" = yes; then
9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9667 else
9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9669 fi
9670 ;;
9671 esac
9672 link_all_deplibs=yes
9673 ;;
9674
9675 sunos4*)
9676 if test "x$host_vendor" = xsequent; then
9677 # Use $CC to link under sequent, because it throws in some extra .o
9678 # files that make .init and .fini sections work.
9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9682 fi
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_direct=yes
9685 hardcode_minus_L=yes
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4)
9690 case $host_vendor in
9691 sni)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=yes # is this really true???
9694 ;;
9695 siemens)
9696 ## LD is ld it makes a PLAMLIB
9697 ## CC just makes a GrossModule.
9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9699 reload_cmds='$CC -r -o $output$reload_objs'
9700 hardcode_direct=no
9701 ;;
9702 motorola)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9705 ;;
9706 esac
9707 runpath_var='LD_RUN_PATH'
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 sysv4.3*)
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_shlibpath_var=no
9714 export_dynamic_flag_spec='-Bexport'
9715 ;;
9716
9717 sysv4*MP*)
9718 if test -d /usr/nec; then
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_shlibpath_var=no
9721 runpath_var=LD_RUN_PATH
9722 hardcode_runpath_var=yes
9723 ld_shlibs=yes
9724 fi
9725 ;;
9726
9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9728 no_undefined_flag='${wl}-z,text'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 runpath_var='LD_RUN_PATH'
9732
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 fi
9740 ;;
9741
9742 sysv5* | sco3.2v5* | sco5v6*)
9743 # Note: We can NOT use -z defs as we might desire, because we do not
9744 # link with -lc, and that would cause any symbols used from libc to
9745 # always be unresolved, which means just about no library would
9746 # ever link correctly. If we're not using GNU ld we use -z text
9747 # though, which does catch some bad symbols but isn't as heavy-handed
9748 # as -z defs.
9749 no_undefined_flag='${wl}-z,text'
9750 allow_undefined_flag='${wl}-z,nodefs'
9751 archive_cmds_need_lc=no
9752 hardcode_shlibpath_var=no
9753 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9754 hardcode_libdir_separator=':'
9755 link_all_deplibs=yes
9756 export_dynamic_flag_spec='${wl}-Bexport'
9757 runpath_var='LD_RUN_PATH'
9758
9759 if test "$GCC" = yes; then
9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 fi
9766 ;;
9767
9768 uts4*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 *)
9775 ld_shlibs=no
9776 ;;
9777 esac
9778
9779 if test x$host_vendor = xsni; then
9780 case $host in
9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9782 export_dynamic_flag_spec='${wl}-Blargedynsym'
9783 ;;
9784 esac
9785 fi
9786 fi
9787
9788echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9789echo "${ECHO_T}$ld_shlibs" >&6
9790test "$ld_shlibs" = no && can_build_shared=no
9791
9792with_gnu_ld=$with_gnu_ld
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808#
9809# Do we need to explicitly link libc?
9810#
9811case "x$archive_cmds_need_lc" in
9812x|xyes)
9813 # Assume -lc should be added
9814 archive_cmds_need_lc=yes
9815
9816 if test "$enable_shared" = yes && test "$GCC" = yes; then
9817 case $archive_cmds in
9818 *'~'*)
9819 # FIXME: we may have to deal with multi-command sequences.
9820 ;;
9821 '$CC '*)
9822 # Test whether the compiler implicitly links with -lc since on some
9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9824 # to ld, don't add -lc before -lgcc.
9825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9826echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9827 $RM conftest*
9828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9829
9830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } 2>conftest.err; then
9835 soname=conftest
9836 lib=conftest
9837 libobjs=conftest.$ac_objext
9838 deplibs=
9839 wl=$lt_prog_compiler_wl
9840 pic_flag=$lt_prog_compiler_pic
9841 compiler_flags=-v
9842 linker_flags=-v
9843 verstring=
9844 output_objdir=.
9845 libname=conftest
9846 lt_save_allow_undefined_flag=$allow_undefined_flag
9847 allow_undefined_flag=
9848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9849 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }
9853 then
9854 archive_cmds_need_lc=no
9855 else
9856 archive_cmds_need_lc=yes
9857 fi
9858 allow_undefined_flag=$lt_save_allow_undefined_flag
9859 else
9860 cat conftest.err 1>&5
9861 fi
9862 $RM conftest*
9863 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9864echo "${ECHO_T}$archive_cmds_need_lc" >&6
9865 ;;
9866 esac
9867 fi
9868 ;;
9869esac
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10028echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10029
10030if test "$GCC" = yes; then
10031 case $host_os in
10032 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10033 *) lt_awk_arg="/^libraries:/" ;;
10034 esac
10035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10036 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10037 # if the path contains ";" then we assume it to be the separator
10038 # otherwise default to the standard path separator (i.e. ":") - it is
10039 # assumed that no part of a normal pathname contains ";" but that should
10040 # okay in the real world where ";" in dirpaths is itself problematic.
10041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10042 else
10043 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10044 fi
10045 # Ok, now we have the path, separated by spaces, we can step through it
10046 # and add multilib dir if necessary.
10047 lt_tmp_lt_search_path_spec=
10048 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10049 for lt_sys_path in $lt_search_path_spec; do
10050 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10052 else
10053 test -d "$lt_sys_path" && \
10054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10055 fi
10056 done
10057 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10058BEGIN {RS=" "; FS="/|\n";} {
10059 lt_foo="";
10060 lt_count=0;
10061 for (lt_i = NF; lt_i > 0; lt_i--) {
10062 if ($lt_i != "" && $lt_i != ".") {
10063 if ($lt_i == "..") {
10064 lt_count++;
10065 } else {
10066 if (lt_count == 0) {
10067 lt_foo="/" $lt_i lt_foo;
10068 } else {
10069 lt_count--;
10070 }
10071 }
10072 }
10073 }
10074 if (lt_foo != "") { lt_freq[lt_foo]++; }
10075 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10076}'`
10077 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10078else
10079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10080fi
10081library_names_spec=
10082libname_spec='lib$name'
10083soname_spec=
10084shrext_cmds=".so"
10085postinstall_cmds=
10086postuninstall_cmds=
10087finish_cmds=
10088finish_eval=
10089shlibpath_var=
10090shlibpath_overrides_runpath=unknown
10091version_type=none
10092dynamic_linker="$host_os ld.so"
10093sys_lib_dlsearch_path_spec="/lib /usr/lib"
10094need_lib_prefix=unknown
10095hardcode_into_libs=no
10096
10097# when you set need_version to no, make sure it does not cause -set_version
10098# flags to be left without arguments
10099need_version=unknown
10100
10101case $host_os in
10102aix3*)
10103 version_type=linux
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10105 shlibpath_var=LIBPATH
10106
10107 # AIX 3 has no versioning support, so we append a major version to the name.
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 ;;
10110
10111aix[4-9]*)
10112 version_type=linux
10113 need_lib_prefix=no
10114 need_version=no
10115 hardcode_into_libs=yes
10116 if test "$host_cpu" = ia64; then
10117 # AIX 5 supports IA64
10118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 else
10121 # With GCC up to 2.95.x, collect2 would create an import file
10122 # for dependence libraries. The import file would start with
10123 # the line `#! .'. This would cause the generated library to
10124 # depend on `.', always an invalid library. This was fixed in
10125 # development snapshots of GCC prior to 3.0.
10126 case $host_os in
10127 aix4 | aix4.[01] | aix4.[01].*)
10128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10129 echo ' yes '
10130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10131 :
10132 else
10133 can_build_shared=no
10134 fi
10135 ;;
10136 esac
10137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10138 # soname into executable. Probably we can add versioning support to
10139 # collect2, so additional links can be useful in future.
10140 if test "$aix_use_runtimelinking" = yes; then
10141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10142 # instead of lib<name>.a to let people know that these are not
10143 # typical AIX shared libraries.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 else
10146 # We preserve .a as extension for shared libraries through AIX4.2
10147 # and later when we are not doing run time linking.
10148 library_names_spec='${libname}${release}.a $libname.a'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 fi
10151 shlibpath_var=LIBPATH
10152 fi
10153 ;;
10154
10155amigaos*)
10156 case $host_cpu in
10157 powerpc)
10158 # Since July 2007 AmigaOS4 officially supports .so libraries.
10159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 ;;
10162 m68k)
10163 library_names_spec='$libname.ixlibrary $libname.a'
10164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10165 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'
10166 ;;
10167 esac
10168 ;;
10169
10170beos*)
10171 library_names_spec='${libname}${shared_ext}'
10172 dynamic_linker="$host_os ld.so"
10173 shlibpath_var=LIBRARY_PATH
10174 ;;
10175
10176bsdi[45]*)
10177 version_type=linux
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10185 # the default ld.so.conf also contains /usr/contrib/lib and
10186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10187 # libtool to hard-code these into programs
10188 ;;
10189
10190cygwin* | mingw* | pw32* | cegcc*)
10191 version_type=windows
10192 shrext_cmds=".dll"
10193 need_version=no
10194 need_lib_prefix=no
10195
10196 case $GCC,$host_os in
10197 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10198 library_names_spec='$libname.dll.a'
10199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10200 postinstall_cmds='base_file=`basename \${file}`~
10201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10202 dldir=$destdir/`dirname \$dlpath`~
10203 test -d \$dldir || mkdir -p \$dldir~
10204 $install_prog $dir/$dlname \$dldir/$dlname~
10205 chmod a+x \$dldir/$dlname~
10206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10208 fi'
10209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10210 dlpath=$dir/\$dldll~
10211 $RM \$dlpath'
10212 shlibpath_overrides_runpath=yes
10213
10214 case $host_os in
10215 cygwin*)
10216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10219 ;;
10220 mingw* | cegcc*)
10221 # MinGW DLLs use traditional 'lib' prefix
10222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10224 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10225 # It is most probably a Windows format PATH printed by
10226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10227 # path with ; separators, and with drive letters. We can handle the
10228 # drive letters (cygwin fileutils understands them), so leave them,
10229 # especially as we might pass files found there to a mingw objdump,
10230 # which wouldn't understand a cygwinified path. Ahh.
10231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10232 else
10233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10234 fi
10235 ;;
10236 pw32*)
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 ;;
10240 esac
10241 ;;
10242
10243 *)
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 ;;
10246 esac
10247 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10250 ;;
10251
10252darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 ;;
10266
10267dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 ;;
10275
10276freebsd1*)
10277 dynamic_linker=no
10278 ;;
10279
10280freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[123]*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10290 fi
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10297 ;;
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10301 ;;
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2*)
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 ;;
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10316 ;;
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 esac
10322 ;;
10323
10324gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 hardcode_into_libs=yes
10332 ;;
10333
10334hpux9* | hpux10* | hpux11*)
10335 # Give a soname corresponding to the major version so that dld.sl refuses to
10336 # link against other versions.
10337 version_type=sunos
10338 need_lib_prefix=no
10339 need_version=no
10340 case $host_cpu in
10341 ia64*)
10342 shrext_cmds='.so'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.so"
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 if test "X$HPUX_IA64_MODE" = X32; then
10350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351 else
10352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353 fi
10354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355 ;;
10356 hppa*64*)
10357 shrext_cmds='.sl'
10358 hardcode_into_libs=yes
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366 ;;
10367 *)
10368 shrext_cmds='.sl'
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=SHLIB_PATH
10371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 ;;
10375 esac
10376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10377 postinstall_cmds='chmod 555 $lib'
10378 ;;
10379
10380interix[3-9]*)
10381 version_type=linux
10382 need_lib_prefix=no
10383 need_version=no
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10390 ;;
10391
10392irix5* | irix6* | nonstopux*)
10393 case $host_os in
10394 nonstopux*) version_type=nonstopux ;;
10395 *)
10396 if test "$lt_cv_prog_gnu_ld" = yes; then
10397 version_type=linux
10398 else
10399 version_type=irix
10400 fi ;;
10401 esac
10402 need_lib_prefix=no
10403 need_version=no
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 case $host_os in
10407 irix5* | nonstopux*)
10408 libsuff= shlibsuff=
10409 ;;
10410 *)
10411 case $LD in # libtool.m4 will add one of these switches to LD
10412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10413 libsuff= shlibsuff= libmagic=32-bit;;
10414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10415 libsuff=32 shlibsuff=N32 libmagic=N32;;
10416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10418 *) libsuff= shlibsuff= libmagic=never-match;;
10419 esac
10420 ;;
10421 esac
10422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10426 hardcode_into_libs=yes
10427 ;;
10428
10429# No shared lib support for Linux oldld, aout, or coff.
10430linux*oldld* | linux*aout* | linux*coff*)
10431 dynamic_linker=no
10432 ;;
10433
10434# This must be Linux ELF.
10435linux* | k*bsd*-gnu)
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=no
10444 # Some binutils ld are patched to set DT_RUNPATH
10445 save_LDFLAGS=$LDFLAGS
10446 save_libdir=$libdir
10447 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10448 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10449 cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455
10456int
10457main ()
10458{
10459
10460 ;
10461 return 0;
10462}
10463_ACEOF
10464rm -f conftest.$ac_objext conftest$ac_exeext
10465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10487 shlibpath_overrides_runpath=yes
10488fi
10489
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494fi
10495rm -f conftest.err conftest.$ac_objext \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LDFLAGS=$save_LDFLAGS
10498 libdir=$save_libdir
10499
10500 # This implies no fast_install, which is unacceptable.
10501 # Some rework will be needed to allow for fast_install
10502 # before this can be enabled.
10503 hardcode_into_libs=yes
10504
10505 # Append ld.so.conf contents to the search path
10506 if test -f /etc/ld.so.conf; then
10507 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10509 fi
10510
10511 # We used to test for /lib/ld.so.1 and disable shared libraries on
10512 # powerpc, because MkLinux only supported shared libraries with the
10513 # GNU dynamic linker. Since this was broken with cross compilers,
10514 # most powerpc-linux boxes support dynamic linking these days and
10515 # people can always --disable-shared, the test was removed, and we
10516 # assume the GNU/Linux dynamic linker is in use.
10517 dynamic_linker='GNU/Linux ld.so'
10518 ;;
10519
10520netbsd*)
10521 version_type=sunos
10522 need_lib_prefix=no
10523 need_version=no
10524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 dynamic_linker='NetBSD (a.out) ld.so'
10528 else
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 dynamic_linker='NetBSD ld.elf_so'
10532 fi
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 hardcode_into_libs=yes
10536 ;;
10537
10538newsos6)
10539 version_type=linux
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 shlibpath_overrides_runpath=yes
10543 ;;
10544
10545*nto* | *qnx*)
10546 version_type=qnx
10547 need_lib_prefix=no
10548 need_version=no
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 soname_spec='${libname}${release}${shared_ext}$major'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 shlibpath_overrides_runpath=no
10553 hardcode_into_libs=yes
10554 dynamic_linker='ldqnx.so'
10555 ;;
10556
10557openbsd*)
10558 version_type=sunos
10559 sys_lib_dlsearch_path_spec="/usr/lib"
10560 need_lib_prefix=no
10561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10562 case $host_os in
10563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10564 *) need_version=no ;;
10565 esac
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10570 case $host_os in
10571 openbsd2.[89] | openbsd2.[89].*)
10572 shlibpath_overrides_runpath=no
10573 ;;
10574 *)
10575 shlibpath_overrides_runpath=yes
10576 ;;
10577 esac
10578 else
10579 shlibpath_overrides_runpath=yes
10580 fi
10581 ;;
10582
10583os2*)
10584 libname_spec='$name'
10585 shrext_cmds=".dll"
10586 need_lib_prefix=no
10587 library_names_spec='$libname${shared_ext} $libname.a'
10588 dynamic_linker='OS/2 ld.exe'
10589 shlibpath_var=LIBPATH
10590 ;;
10591
10592osf3* | osf4* | osf5*)
10593 version_type=osf
10594 need_lib_prefix=no
10595 need_version=no
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10601 ;;
10602
10603rdos*)
10604 dynamic_linker=no
10605 ;;
10606
10607solaris*)
10608 version_type=linux
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612 soname_spec='${libname}${release}${shared_ext}$major'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 shlibpath_overrides_runpath=yes
10615 hardcode_into_libs=yes
10616 # ldd complains unless libraries are executable
10617 postinstall_cmds='chmod +x $lib'
10618 ;;
10619
10620sunos4*)
10621 version_type=sunos
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 if test "$with_gnu_ld" = yes; then
10627 need_lib_prefix=no
10628 fi
10629 need_version=yes
10630 ;;
10631
10632sysv4 | sysv4.3*)
10633 version_type=linux
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 case $host_vendor in
10638 sni)
10639 shlibpath_overrides_runpath=no
10640 need_lib_prefix=no
10641 runpath_var=LD_RUN_PATH
10642 ;;
10643 siemens)
10644 need_lib_prefix=no
10645 ;;
10646 motorola)
10647 need_lib_prefix=no
10648 need_version=no
10649 shlibpath_overrides_runpath=no
10650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10651 ;;
10652 esac
10653 ;;
10654
10655sysv4*MP*)
10656 if test -d /usr/nec ;then
10657 version_type=linux
10658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10659 soname_spec='$libname${shared_ext}.$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 fi
10662 ;;
10663
10664sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10665 version_type=freebsd-elf
10666 need_lib_prefix=no
10667 need_version=no
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath=yes
10672 hardcode_into_libs=yes
10673 if test "$with_gnu_ld" = yes; then
10674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10675 else
10676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10677 case $host_os in
10678 sco3.2v5*)
10679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10680 ;;
10681 esac
10682 fi
10683 sys_lib_dlsearch_path_spec='/usr/lib'
10684 ;;
10685
10686tpf*)
10687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10688 version_type=linux
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=no
10694 hardcode_into_libs=yes
10695 ;;
10696
10697uts4*)
10698 version_type=linux
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 soname_spec='${libname}${release}${shared_ext}$major'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 ;;
10703
10704*)
10705 dynamic_linker=no
10706 ;;
10707esac
10708echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10709echo "${ECHO_T}$dynamic_linker" >&6
10710test "$dynamic_linker" = no && can_build_shared=no
10711
10712variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10713if test "$GCC" = yes; then
10714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10715fi
10716
10717if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10719fi
10720if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10722fi
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10811echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10812hardcode_action=
10813if test -n "$hardcode_libdir_flag_spec" ||
10814 test -n "$runpath_var" ||
10815 test "X$hardcode_automatic" = "Xyes" ; then
10816
10817 # We can hardcode non-existent directories.
10818 if test "$hardcode_direct" != no &&
10819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10820 # have to relink, otherwise we might link with an installed library
10821 # when we should be linking with a yet-to-be-installed one
10822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10823 test "$hardcode_minus_L" != no; then
10824 # Linking always hardcodes the temporary library directory.
10825 hardcode_action=relink
10826 else
10827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10828 hardcode_action=immediate
10829 fi
10830else
10831 # We cannot hardcode anything, or else we can only hardcode existing
10832 # directories.
10833 hardcode_action=unsupported
10834fi
10835echo "$as_me:$LINENO: result: $hardcode_action" >&5
10836echo "${ECHO_T}$hardcode_action" >&6
10837
10838if test "$hardcode_action" = relink ||
10839 test "$inherit_rpath" = yes; then
10840 # Fast installation is not supported
10841 enable_fast_install=no
10842elif test "$shlibpath_overrides_runpath" = yes ||
10843 test "$enable_shared" = no; then
10844 # Fast installation is not necessary
10845 enable_fast_install=needless
10846fi
10847
10848
10849
10850
10851
10852
10853 if test "x$enable_dlopen" != xyes; then
10854 enable_dlopen=unknown
10855 enable_dlopen_self=unknown
10856 enable_dlopen_self_static=unknown
10857else
10858 lt_cv_dlopen=no
10859 lt_cv_dlopen_libs=
10860
10861 case $host_os in
10862 beos*)
10863 lt_cv_dlopen="load_add_on"
10864 lt_cv_dlopen_libs=
10865 lt_cv_dlopen_self=yes
10866 ;;
10867
10868 mingw* | pw32* | cegcc*)
10869 lt_cv_dlopen="LoadLibrary"
10870 lt_cv_dlopen_libs=
10871 ;;
10872
10873 cygwin*)
10874 lt_cv_dlopen="dlopen"
10875 lt_cv_dlopen_libs=
10876 ;;
10877
10878 darwin*)
10879 # if libdl is installed we need to link against it
10880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10881echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10882if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 ac_check_lib_save_LIBS=$LIBS
10886LIBS="-ldl $LIBS"
10887cat >conftest.$ac_ext <<_ACEOF
10888/* confdefs.h. */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
10892/* end confdefs.h. */
10893
10894/* Override any gcc2 internal prototype to avoid an error. */
10895#ifdef __cplusplus
10896extern "C"
10897#endif
10898/* We use char because int might match the return type of a gcc2
10899 builtin and then its argument prototype would still apply. */
10900char dlopen ();
10901int
10902main ()
10903{
10904dlopen ();
10905 ;
10906 return 0;
10907}
10908_ACEOF
10909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag"
10919 || test ! -s conftest.err'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; } &&
10925 { ac_try='test -s conftest$ac_exeext'
10926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10927 (eval $ac_try) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; }; then
10931 ac_cv_lib_dl_dlopen=yes
10932else
10933 echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936ac_cv_lib_dl_dlopen=no
10937fi
10938rm -f conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940LIBS=$ac_check_lib_save_LIBS
10941fi
10942echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10943echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10944if test $ac_cv_lib_dl_dlopen = yes; then
10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946else
10947
10948 lt_cv_dlopen="dyld"
10949 lt_cv_dlopen_libs=
10950 lt_cv_dlopen_self=yes
10951
10952fi
10953
10954 ;;
10955
10956 *)
10957 echo "$as_me:$LINENO: checking for shl_load" >&5
10958echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10959if test "${ac_cv_func_shl_load+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970#define shl_load innocuous_shl_load
10971
10972/* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char shl_load (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10976
10977#ifdef __STDC__
10978# include <limits.h>
10979#else
10980# include <assert.h>
10981#endif
10982
10983#undef shl_load
10984
10985/* Override any gcc2 internal prototype to avoid an error. */
10986#ifdef __cplusplus
10987extern "C"
10988{
10989#endif
10990/* We use char because int might match the return type of a gcc2
10991 builtin and then its argument prototype would still apply. */
10992char shl_load ();
10993/* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996#if defined (__stub_shl_load) || defined (__stub___shl_load)
10997choke me
10998#else
10999char (*f) () = shl_load;
11000#endif
11001#ifdef __cplusplus
11002}
11003#endif
11004
11005int
11006main ()
11007{
11008return f != shl_load;
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013rm -f conftest.$ac_objext conftest$ac_exeext
11014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 ac_cv_func_shl_load=yes
11036else
11037 echo "$as_me: failed program was:" >&5
11038sed 's/^/| /' conftest.$ac_ext >&5
11039
11040ac_cv_func_shl_load=no
11041fi
11042rm -f conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
11044fi
11045echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11046echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11047if test $ac_cv_func_shl_load = yes; then
11048 lt_cv_dlopen="shl_load"
11049else
11050 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11051echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11052if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054else
11055 ac_check_lib_save_LIBS=$LIBS
11056LIBS="-ldld $LIBS"
11057cat >conftest.$ac_ext <<_ACEOF
11058/* confdefs.h. */
11059_ACEOF
11060cat confdefs.h >>conftest.$ac_ext
11061cat >>conftest.$ac_ext <<_ACEOF
11062/* end confdefs.h. */
11063
11064/* Override any gcc2 internal prototype to avoid an error. */
11065#ifdef __cplusplus
11066extern "C"
11067#endif
11068/* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11070char shl_load ();
11071int
11072main ()
11073{
11074shl_load ();
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079rm -f conftest.$ac_objext conftest$ac_exeext
11080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag"
11089 || test ! -s conftest.err'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; } &&
11095 { ac_try='test -s conftest$ac_exeext'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; }; then
11101 ac_cv_lib_dld_shl_load=yes
11102else
11103 echo "$as_me: failed program was:" >&5
11104sed 's/^/| /' conftest.$ac_ext >&5
11105
11106ac_cv_lib_dld_shl_load=no
11107fi
11108rm -f conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110LIBS=$ac_check_lib_save_LIBS
11111fi
11112echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11113echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11114if test $ac_cv_lib_dld_shl_load = yes; then
11115 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11116else
11117 echo "$as_me:$LINENO: checking for dlopen" >&5
11118echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11119if test "${ac_cv_func_dlopen+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121else
11122 cat >conftest.$ac_ext <<_ACEOF
11123/* confdefs.h. */
11124_ACEOF
11125cat confdefs.h >>conftest.$ac_ext
11126cat >>conftest.$ac_ext <<_ACEOF
11127/* end confdefs.h. */
11128/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11130#define dlopen innocuous_dlopen
11131
11132/* System header to define __stub macros and hopefully few prototypes,
11133 which can conflict with char dlopen (); below.
11134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11135 <limits.h> exists even on freestanding compilers. */
11136
11137#ifdef __STDC__
11138# include <limits.h>
11139#else
11140# include <assert.h>
11141#endif
11142
11143#undef dlopen
11144
11145/* Override any gcc2 internal prototype to avoid an error. */
11146#ifdef __cplusplus
11147extern "C"
11148{
11149#endif
11150/* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11152char dlopen ();
11153/* The GNU C library defines this for functions which it implements
11154 to always fail with ENOSYS. Some functions are actually named
11155 something starting with __ and the normal name is an alias. */
11156#if defined (__stub_dlopen) || defined (__stub___dlopen)
11157choke me
11158#else
11159char (*f) () = dlopen;
11160#endif
11161#ifdef __cplusplus
11162}
11163#endif
11164
11165int
11166main ()
11167{
11168return f != dlopen;
11169 ;
11170 return 0;
11171}
11172_ACEOF
11173rm -f conftest.$ac_objext conftest$ac_exeext
11174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -z "$ac_c_werror_flag"
11183 || test ! -s conftest.err'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_func_dlopen=yes
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200ac_cv_func_dlopen=no
11201fi
11202rm -f conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204fi
11205echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11206echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11207if test $ac_cv_func_dlopen = yes; then
11208 lt_cv_dlopen="dlopen"
11209else
11210 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11211echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11212if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 ac_check_lib_save_LIBS=$LIBS
11216LIBS="-ldl $LIBS"
11217cat >conftest.$ac_ext <<_ACEOF
11218/* confdefs.h. */
11219_ACEOF
11220cat confdefs.h >>conftest.$ac_ext
11221cat >>conftest.$ac_ext <<_ACEOF
11222/* end confdefs.h. */
11223
11224/* Override any gcc2 internal prototype to avoid an error. */
11225#ifdef __cplusplus
11226extern "C"
11227#endif
11228/* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11230char dlopen ();
11231int
11232main ()
11233{
11234dlopen ();
11235 ;
11236 return 0;
11237}
11238_ACEOF
11239rm -f conftest.$ac_objext conftest$ac_exeext
11240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11241 (eval $ac_link) 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -z "$ac_c_werror_flag"
11249 || test ! -s conftest.err'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; } &&
11255 { ac_try='test -s conftest$ac_exeext'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; }; then
11261 ac_cv_lib_dl_dlopen=yes
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266ac_cv_lib_dl_dlopen=no
11267fi
11268rm -f conftest.err conftest.$ac_objext \
11269 conftest$ac_exeext conftest.$ac_ext
11270LIBS=$ac_check_lib_save_LIBS
11271fi
11272echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11273echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11274if test $ac_cv_lib_dl_dlopen = yes; then
11275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11276else
11277 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11278echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11279if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 ac_check_lib_save_LIBS=$LIBS
11283LIBS="-lsvld $LIBS"
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290
11291/* Override any gcc2 internal prototype to avoid an error. */
11292#ifdef __cplusplus
11293extern "C"
11294#endif
11295/* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297char dlopen ();
11298int
11299main ()
11300{
11301dlopen ();
11302 ;
11303 return 0;
11304}
11305_ACEOF
11306rm -f conftest.$ac_objext conftest$ac_exeext
11307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_cv_lib_svld_dlopen=yes
11329else
11330 echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333ac_cv_lib_svld_dlopen=no
11334fi
11335rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337LIBS=$ac_check_lib_save_LIBS
11338fi
11339echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11340echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11341if test $ac_cv_lib_svld_dlopen = yes; then
11342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11343else
11344 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11345echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11346if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 ac_check_lib_save_LIBS=$LIBS
11350LIBS="-ldld $LIBS"
11351cat >conftest.$ac_ext <<_ACEOF
11352/* confdefs.h. */
11353_ACEOF
11354cat confdefs.h >>conftest.$ac_ext
11355cat >>conftest.$ac_ext <<_ACEOF
11356/* end confdefs.h. */
11357
11358/* Override any gcc2 internal prototype to avoid an error. */
11359#ifdef __cplusplus
11360extern "C"
11361#endif
11362/* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364char dld_link ();
11365int
11366main ()
11367{
11368dld_link ();
11369 ;
11370 return 0;
11371}
11372_ACEOF
11373rm -f conftest.$ac_objext conftest$ac_exeext
11374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag"
11383 || test ! -s conftest.err'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; } &&
11389 { ac_try='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 ac_cv_lib_dld_dld_link=yes
11396else
11397 echo "$as_me: failed program was:" >&5
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
11400ac_cv_lib_dld_dld_link=no
11401fi
11402rm -f conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404LIBS=$ac_check_lib_save_LIBS
11405fi
11406echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11407echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11408if test $ac_cv_lib_dld_dld_link = yes; then
11409 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11410fi
11411
11412
11413fi
11414
11415
11416fi
11417
11418
11419fi
11420
11421
11422fi
11423
11424
11425fi
11426
11427 ;;
11428 esac
11429
11430 if test "x$lt_cv_dlopen" != xno; then
11431 enable_dlopen=yes
11432 else
11433 enable_dlopen=no
11434 fi
11435
11436 case $lt_cv_dlopen in
11437 dlopen)
11438 save_CPPFLAGS="$CPPFLAGS"
11439 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11440
11441 save_LDFLAGS="$LDFLAGS"
11442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11443
11444 save_LIBS="$LIBS"
11445 LIBS="$lt_cv_dlopen_libs $LIBS"
11446
11447 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11448echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11449if test "${lt_cv_dlopen_self+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451else
11452 if test "$cross_compiling" = yes; then :
11453 lt_cv_dlopen_self=cross
11454else
11455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11456 lt_status=$lt_dlunknown
11457 cat > conftest.$ac_ext <<_LT_EOF
11458#line 11458 "configure"
11459#include "confdefs.h"
11460
11461#if HAVE_DLFCN_H
11462#include <dlfcn.h>
11463#endif
11464
11465#include <stdio.h>
11466
11467#ifdef RTLD_GLOBAL
11468# define LT_DLGLOBAL RTLD_GLOBAL
11469#else
11470# ifdef DL_GLOBAL
11471# define LT_DLGLOBAL DL_GLOBAL
11472# else
11473# define LT_DLGLOBAL 0
11474# endif
11475#endif
11476
11477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11478 find out it does not work in some platform. */
11479#ifndef LT_DLLAZY_OR_NOW
11480# ifdef RTLD_LAZY
11481# define LT_DLLAZY_OR_NOW RTLD_LAZY
11482# else
11483# ifdef DL_LAZY
11484# define LT_DLLAZY_OR_NOW DL_LAZY
11485# else
11486# ifdef RTLD_NOW
11487# define LT_DLLAZY_OR_NOW RTLD_NOW
11488# else
11489# ifdef DL_NOW
11490# define LT_DLLAZY_OR_NOW DL_NOW
11491# else
11492# define LT_DLLAZY_OR_NOW 0
11493# endif
11494# endif
11495# endif
11496# endif
11497#endif
11498
11499void fnord() { int i=42;}
11500int main ()
11501{
11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503 int status = $lt_dlunknown;
11504
11505 if (self)
11506 {
11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 /* dlclose (self); */
11510 }
11511 else
11512 puts (dlerror ());
11513
11514 return status;
11515}
11516_LT_EOF
11517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518 (eval $ac_link) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11522 (./conftest; exit; ) >&5 2>/dev/null
11523 lt_status=$?
11524 case x$lt_status in
11525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11528 esac
11529 else :
11530 # compilation failed
11531 lt_cv_dlopen_self=no
11532 fi
11533fi
11534rm -fr conftest*
11535
11536
11537fi
11538echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11539echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11540
11541 if test "x$lt_cv_dlopen_self" = xyes; then
11542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11543 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11544echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11545if test "${lt_cv_dlopen_self_static+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 if test "$cross_compiling" = yes; then :
11549 lt_cv_dlopen_self_static=cross
11550else
11551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11552 lt_status=$lt_dlunknown
11553 cat > conftest.$ac_ext <<_LT_EOF
11554#line 11554 "configure"
11555#include "confdefs.h"
11556
11557#if HAVE_DLFCN_H
11558#include <dlfcn.h>
11559#endif
11560
11561#include <stdio.h>
11562
11563#ifdef RTLD_GLOBAL
11564# define LT_DLGLOBAL RTLD_GLOBAL
11565#else
11566# ifdef DL_GLOBAL
11567# define LT_DLGLOBAL DL_GLOBAL
11568# else
11569# define LT_DLGLOBAL 0
11570# endif
11571#endif
11572
11573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11574 find out it does not work in some platform. */
11575#ifndef LT_DLLAZY_OR_NOW
11576# ifdef RTLD_LAZY
11577# define LT_DLLAZY_OR_NOW RTLD_LAZY
11578# else
11579# ifdef DL_LAZY
11580# define LT_DLLAZY_OR_NOW DL_LAZY
11581# else
11582# ifdef RTLD_NOW
11583# define LT_DLLAZY_OR_NOW RTLD_NOW
11584# else
11585# ifdef DL_NOW
11586# define LT_DLLAZY_OR_NOW DL_NOW
11587# else
11588# define LT_DLLAZY_OR_NOW 0
11589# endif
11590# endif
11591# endif
11592# endif
11593#endif
11594
11595void fnord() { int i=42;}
11596int main ()
11597{
11598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11599 int status = $lt_dlunknown;
11600
11601 if (self)
11602 {
11603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11605 /* dlclose (self); */
11606 }
11607 else
11608 puts (dlerror ());
11609
11610 return status;
11611}
11612_LT_EOF
11613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11614 (eval $ac_link) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11618 (./conftest; exit; ) >&5 2>/dev/null
11619 lt_status=$?
11620 case x$lt_status in
11621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11624 esac
11625 else :
11626 # compilation failed
11627 lt_cv_dlopen_self_static=no
11628 fi
11629fi
11630rm -fr conftest*
11631
11632
11633fi
11634echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11635echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11636 fi
11637
11638 CPPFLAGS="$save_CPPFLAGS"
11639 LDFLAGS="$save_LDFLAGS"
11640 LIBS="$save_LIBS"
11641 ;;
11642 esac
11643
11644 case $lt_cv_dlopen_self in
11645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11646 *) enable_dlopen_self=unknown ;;
11647 esac
11648
11649 case $lt_cv_dlopen_self_static in
11650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11651 *) enable_dlopen_self_static=unknown ;;
11652 esac
11653fi
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671striplib=
11672old_striplib=
11673echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11674echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11675if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11678 echo "$as_me:$LINENO: result: yes" >&5
11679echo "${ECHO_T}yes" >&6
11680else
11681# FIXME - insert some real tests, host_os isn't really good enough
11682 case $host_os in
11683 darwin*)
11684 if test -n "$STRIP" ; then
11685 striplib="$STRIP -x"
11686 old_striplib="$STRIP -S"
11687 echo "$as_me:$LINENO: result: yes" >&5
11688echo "${ECHO_T}yes" >&6
11689 else
11690 echo "$as_me:$LINENO: result: no" >&5
11691echo "${ECHO_T}no" >&6
11692 fi
11693 ;;
11694 *)
11695 echo "$as_me:$LINENO: result: no" >&5
11696echo "${ECHO_T}no" >&6
11697 ;;
11698 esac
11699fi
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712 # Report which library types will actually be built
11713 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11714echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11715 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11716echo "${ECHO_T}$can_build_shared" >&6
11717
11718 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11719echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11720 test "$can_build_shared" = "no" && enable_shared=no
11721
11722 # On AIX, shared libraries and static libraries use the same namespace, and
11723 # are all built from PIC.
11724 case $host_os in
11725 aix3*)
11726 test "$enable_shared" = yes && enable_static=no
11727 if test -n "$RANLIB"; then
11728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11729 postinstall_cmds='$RANLIB $lib'
11730 fi
11731 ;;
11732
11733 aix[4-9]*)
11734 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11735 test "$enable_shared" = yes && enable_static=no
11736 fi
11737 ;;
11738 esac
11739 echo "$as_me:$LINENO: result: $enable_shared" >&5
11740echo "${ECHO_T}$enable_shared" >&6
11741
11742 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11743echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11744 # Make sure either enable_shared or enable_static is yes.
11745 test "$enable_shared" = yes || enable_static=yes
11746 echo "$as_me:$LINENO: result: $enable_static" >&5
11747echo "${ECHO_T}$enable_static" >&6
11748
11749
11750
11751
11752fi
11753ac_ext=c
11754ac_cpp='$CPP $CPPFLAGS'
11755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758
11759CC="$lt_save_CC"
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 ac_config_commands="$ac_config_commands libtool"
11774
11775
11776
11777
11778# Only expand once:
11779
11780
11781
11782# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11783if test "${enable_64_bit_bfd+set}" = set; then
11784 enableval="$enable_64_bit_bfd"
11785 case "${enableval}" in
11786 yes) want64=true ;;
11787 no) want64=false ;;
11788 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11789echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11790 { (exit 1); exit 1; }; } ;;
11791esac
11792else
11793 want64=false
11794fi;
11795# Check whether --enable-targets or --disable-targets was given.
11796if test "${enable_targets+set}" = set; then
11797 enableval="$enable_targets"
11798 case "${enableval}" in
11799 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11800echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11801 { (exit 1); exit 1; }; }
11802 ;;
11803 no) enable_targets= ;;
11804 *) enable_targets=$enableval ;;
11805esac
11806fi;
11807# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11808if test "${enable_commonbfdlib+set}" = set; then
11809 enableval="$enable_commonbfdlib"
11810 case "${enableval}" in
11811 yes) commonbfdlib=true ;;
11812 no) commonbfdlib=false ;;
11813 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11814echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11815 { (exit 1); exit 1; }; } ;;
11816esac
11817fi;
11818
11819# Check whether --with-mmap or --without-mmap was given.
11820if test "${with_mmap+set}" = set; then
11821 withval="$with_mmap"
11822 case "${withval}" in
11823 yes) want_mmap=true ;;
11824 no) want_mmap=false ;;
11825 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11826echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11827 { (exit 1); exit 1; }; } ;;
11828esac
11829else
11830 want_mmap=false
11831fi;
11832# Check whether --enable-secureplt or --disable-secureplt was given.
11833if test "${enable_secureplt+set}" = set; then
11834 enableval="$enable_secureplt"
11835 case "${enableval}" in
11836 yes) use_secureplt=true ;;
11837 no) use_secureplt=false ;;
11838 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11839echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11840 { (exit 1); exit 1; }; } ;;
11841esac
11842else
11843 use_secureplt=false
11844fi; if test $use_secureplt = true; then
11845
11846cat >>confdefs.h <<\_ACEOF
11847#define USE_SECUREPLT 1
11848_ACEOF
11849
11850fi
11851
11852DEBUGDIR=${libdir}/debug
11853
11854# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11855if test "${with_separate_debug_dir+set}" = set; then
11856 withval="$with_separate_debug_dir"
11857 DEBUGDIR="${withval}"
11858fi;
11859
11860
11861# Check to see if we should allow the generation of
11862# symbols with the ELF standard's STT_COMMON type.
11863# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11864if test "${enable_elf_stt_common+set}" = set; then
11865 enableval="$enable_elf_stt_common"
11866 case "${enableval}" in
11867 yes) want_elf_stt_common=true ;;
11868 no) want_elf_stt_common=false ;;
11869 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11870echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11871 { (exit 1); exit 1; }; } ;;
11872 esac
11873else
11874 # We have to choose a default behaviour. For native builds we could
11875# test whether the loader supports the STT_COMMON type, but that would
11876# mean that built binaries could not be exported to older systems where
11877# the loader does not support it. So by default we always choose to
11878# disable this feature.
11879 want_elf_stt_common=false
11880fi; if test $want_elf_stt_common = true; then
11881
11882cat >>confdefs.h <<\_ACEOF
11883#define USE_STT_COMMON 1
11884_ACEOF
11885
11886fi
11887
11888
11889
11890# Check whether --with-pkgversion or --without-pkgversion was given.
11891if test "${with_pkgversion+set}" = set; then
11892 withval="$with_pkgversion"
11893 case "$withval" in
11894 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11895echo "$as_me: error: package version not specified" >&2;}
11896 { (exit 1); exit 1; }; } ;;
11897 no) PKGVERSION= ;;
11898 *) PKGVERSION="($withval) " ;;
11899 esac
11900else
11901 PKGVERSION="(GNU Binutils) "
11902
11903fi;
11904
11905
11906
11907
11908# Check whether --with-bugurl or --without-bugurl was given.
11909if test "${with_bugurl+set}" = set; then
11910 withval="$with_bugurl"
11911 case "$withval" in
11912 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11913echo "$as_me: error: bug URL not specified" >&2;}
11914 { (exit 1); exit 1; }; } ;;
11915 no) BUGURL=
11916 ;;
11917 *) BUGURL="$withval"
11918 ;;
11919 esac
11920else
11921 BUGURL="http://www.sourceware.org/bugzilla/"
11922
11923fi;
11924 case ${BUGURL} in
11925 "")
11926 REPORT_BUGS_TO=
11927 REPORT_BUGS_TEXI=
11928 ;;
11929 *)
11930 REPORT_BUGS_TO="<$BUGURL>"
11931 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11932 ;;
11933 esac;
11934
11935
11936
11937
11938
11939GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11940
11941# Check whether --enable-werror or --disable-werror was given.
11942if test "${enable_werror+set}" = set; then
11943 enableval="$enable_werror"
11944 case "${enableval}" in
11945 yes | y) ERROR_ON_WARNING="yes" ;;
11946 no | n) ERROR_ON_WARNING="no" ;;
11947 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11948echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11949 { (exit 1); exit 1; }; } ;;
11950 esac
11951fi;
11952
11953# Enable -Wno-format by default when using gcc on mingw
11954case "${host}" in
11955 *-*-mingw32*)
11956 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11957 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11958 fi
11959 ;;
11960 *) ;;
11961esac
11962
11963# Enable -Werror by default when using gcc
11964if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11965 ERROR_ON_WARNING=yes
11966fi
11967
11968NO_WERROR=
11969if test "${ERROR_ON_WARNING}" = yes ; then
11970 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11971 NO_WERROR="-Wno-error"
11972fi
11973
11974if test "${GCC}" = yes ; then
11975 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11976fi
11977
11978# Check whether --enable-build-warnings or --disable-build-warnings was given.
11979if test "${enable_build_warnings+set}" = set; then
11980 enableval="$enable_build_warnings"
11981 case "${enableval}" in
11982 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11983 no) if test "${GCC}" = yes ; then
11984 WARN_CFLAGS="-w"
11985 fi;;
11986 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11987 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11988 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11989 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11990 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11991esac
11992fi;
11993
11994if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11995 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11996fi
11997
11998
11999
12000
12001
12002 ac_config_headers="$ac_config_headers config.h:config.in"
12003
12004
12005if test -z "$target" ; then
12006 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12007echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12008 { (exit 1); exit 1; }; }
12009fi
12010
12011echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12012echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12013 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12014if test "${enable_maintainer_mode+set}" = set; then
12015 enableval="$enable_maintainer_mode"
12016 USE_MAINTAINER_MODE=$enableval
12017else
12018 USE_MAINTAINER_MODE=no
12019fi;
12020 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12021echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12022
12023
12024if test $USE_MAINTAINER_MODE = yes; then
12025 MAINTAINER_MODE_TRUE=
12026 MAINTAINER_MODE_FALSE='#'
12027else
12028 MAINTAINER_MODE_TRUE='#'
12029 MAINTAINER_MODE_FALSE=
12030fi
12031
12032 MAINT=$MAINTAINER_MODE_TRUE
12033
12034
12035
12036
12037if false; then
12038 GENINSRC_NEVER_TRUE=
12039 GENINSRC_NEVER_FALSE='#'
12040else
12041 GENINSRC_NEVER_TRUE='#'
12042 GENINSRC_NEVER_FALSE=
12043fi
12044
12045 case ${build_alias} in
12046 "") build_noncanonical=${build} ;;
12047 *) build_noncanonical=${build_alias} ;;
12048esac
12049
12050 case ${host_alias} in
12051 "") host_noncanonical=${build_noncanonical} ;;
12052 *) host_noncanonical=${host_alias} ;;
12053esac
12054
12055 case ${target_alias} in
12056 "") target_noncanonical=${host_noncanonical} ;;
12057 *) target_noncanonical=${target_alias} ;;
12058esac
12059
12060echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12061echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12062 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12063if test "${enable_install_libbfd+set}" = set; then
12064 enableval="$enable_install_libbfd"
12065 install_libbfd_p=$enableval
12066else
12067 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12068 install_libbfd_p=yes
12069 else
12070 install_libbfd_p=no
12071 fi
12072fi;
12073 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12074echo "${ECHO_T}$install_libbfd_p" >&6
12075
12076
12077if test $install_libbfd_p = yes; then
12078 INSTALL_LIBBFD_TRUE=
12079 INSTALL_LIBBFD_FALSE='#'
12080else
12081 INSTALL_LIBBFD_TRUE='#'
12082 INSTALL_LIBBFD_FALSE=
12083fi
12084
12085 # Need _noncanonical variables for this.
12086
12087
12088
12089
12090 # libbfd.a is a host library containing target dependent code
12091 bfdlibdir='$(libdir)'
12092 bfdincludedir='$(includedir)'
12093 if test "${host}" != "${target}"; then
12094 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12095 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12096 fi
12097
12098
12099
12100
12101
12102
12103host64=false
12104target64=false
12105bfd_default_target_size=32
12106
12107# host stuff:
12108
12109ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12110# If we haven't got the data from the intl directory,
12111# assume NLS is disabled.
12112USE_NLS=no
12113LIBINTL=
12114LIBINTL_DEP=
12115INCINTL=
12116XGETTEXT=
12117GMSGFMT=
12118POSUB=
12119
12120if test -f ../intl/config.intl; then
12121 . ../intl/config.intl
12122fi
12123echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12124echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12125if test x"$USE_NLS" != xyes; then
12126 echo "$as_me:$LINENO: result: no" >&5
12127echo "${ECHO_T}no" >&6
12128else
12129 echo "$as_me:$LINENO: result: yes" >&5
12130echo "${ECHO_T}yes" >&6
12131
12132cat >>confdefs.h <<\_ACEOF
12133#define ENABLE_NLS 1
12134_ACEOF
12135
12136
12137 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12138echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12139 # Look for .po and .gmo files in the source directory.
12140 CATALOGS=
12141 XLINGUAS=
12142 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12143 # If there aren't any .gmo files the shell will give us the
12144 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12145 # weeded out.
12146 case "$cat" in *\**)
12147 continue;;
12148 esac
12149 # The quadruple backslash is collapsed to a double backslash
12150 # by the backticks, then collapsed again by the double quotes,
12151 # leaving us with one backslash in the sed expression (right
12152 # before the dot that mustn't act as a wildcard).
12153 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12154 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12155 # The user is allowed to set LINGUAS to a list of languages to
12156 # install catalogs for. If it's empty that means "all of them."
12157 if test "x$LINGUAS" = x; then
12158 CATALOGS="$CATALOGS $cat"
12159 XLINGUAS="$XLINGUAS $lang"
12160 else
12161 case "$LINGUAS" in *$lang*)
12162 CATALOGS="$CATALOGS $cat"
12163 XLINGUAS="$XLINGUAS $lang"
12164 ;;
12165 esac
12166 fi
12167 done
12168 LINGUAS="$XLINGUAS"
12169 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12170echo "${ECHO_T}$LINGUAS" >&6
12171
12172
12173 DATADIRNAME=share
12174
12175 INSTOBJEXT=.mo
12176
12177 GENCAT=gencat
12178
12179 CATOBJEXT=.gmo
12180
12181fi
12182
12183 MKINSTALLDIRS=
12184 if test -n "$ac_aux_dir"; then
12185 case "$ac_aux_dir" in
12186 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12187 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12188 esac
12189 fi
12190 if test -z "$MKINSTALLDIRS"; then
12191 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12192 fi
12193
12194
12195
12196 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12197echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12198 # Check whether --enable-nls or --disable-nls was given.
12199if test "${enable_nls+set}" = set; then
12200 enableval="$enable_nls"
12201 USE_NLS=$enableval
12202else
12203 USE_NLS=yes
12204fi;
12205 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12206echo "${ECHO_T}$USE_NLS" >&6
12207
12208
12209
12210
12211
12212
12213# Prepare PATH_SEPARATOR.
12214# The user is always right.
12215if test "${PATH_SEPARATOR+set}" != set; then
12216 echo "#! /bin/sh" >conf$$.sh
12217 echo "exit 0" >>conf$$.sh
12218 chmod +x conf$$.sh
12219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12220 PATH_SEPARATOR=';'
12221 else
12222 PATH_SEPARATOR=:
12223 fi
12224 rm -f conf$$.sh
12225fi
12226
12227# Find out how to test for executable files. Don't use a zero-byte file,
12228# as systems may use methods other than mode bits to determine executability.
12229cat >conf$$.file <<_ASEOF
12230#! /bin/sh
12231exit 0
12232_ASEOF
12233chmod +x conf$$.file
12234if test -x conf$$.file >/dev/null 2>&1; then
12235 ac_executable_p="test -x"
12236else
12237 ac_executable_p="test -f"
12238fi
12239rm -f conf$$.file
12240
12241# Extract the first word of "msgfmt", so it can be a program name with args.
12242set dummy msgfmt; ac_word=$2
12243echo "$as_me:$LINENO: checking for $ac_word" >&5
12244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12245if test "${ac_cv_path_MSGFMT+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
12248 case "$MSGFMT" in
12249 [\\/]* | ?:[\\/]*)
12250 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12251 ;;
12252 *)
12253 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12254 for ac_dir in $PATH; do
12255 IFS="$ac_save_IFS"
12256 test -z "$ac_dir" && ac_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12259 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12260 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12261 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12262 break 2
12263 fi
12264 fi
12265 done
12266 done
12267 IFS="$ac_save_IFS"
12268 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12269 ;;
12270esac
12271fi
12272MSGFMT="$ac_cv_path_MSGFMT"
12273if test "$MSGFMT" != ":"; then
12274 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12275echo "${ECHO_T}$MSGFMT" >&6
12276else
12277 echo "$as_me:$LINENO: result: no" >&5
12278echo "${ECHO_T}no" >&6
12279fi
12280
12281 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12282set dummy gmsgfmt; ac_word=$2
12283echo "$as_me:$LINENO: checking for $ac_word" >&5
12284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12285if test "${ac_cv_path_GMSGFMT+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287else
12288 case $GMSGFMT in
12289 [\\/]* | ?:[\\/]*)
12290 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12291 ;;
12292 *)
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294for as_dir in $PATH
12295do
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12303 fi
12304done
12305done
12306
12307 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12308 ;;
12309esac
12310fi
12311GMSGFMT=$ac_cv_path_GMSGFMT
12312
12313if test -n "$GMSGFMT"; then
12314 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12315echo "${ECHO_T}$GMSGFMT" >&6
12316else
12317 echo "$as_me:$LINENO: result: no" >&5
12318echo "${ECHO_T}no" >&6
12319fi
12320
12321
12322
12323# Prepare PATH_SEPARATOR.
12324# The user is always right.
12325if test "${PATH_SEPARATOR+set}" != set; then
12326 echo "#! /bin/sh" >conf$$.sh
12327 echo "exit 0" >>conf$$.sh
12328 chmod +x conf$$.sh
12329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12330 PATH_SEPARATOR=';'
12331 else
12332 PATH_SEPARATOR=:
12333 fi
12334 rm -f conf$$.sh
12335fi
12336
12337# Find out how to test for executable files. Don't use a zero-byte file,
12338# as systems may use methods other than mode bits to determine executability.
12339cat >conf$$.file <<_ASEOF
12340#! /bin/sh
12341exit 0
12342_ASEOF
12343chmod +x conf$$.file
12344if test -x conf$$.file >/dev/null 2>&1; then
12345 ac_executable_p="test -x"
12346else
12347 ac_executable_p="test -f"
12348fi
12349rm -f conf$$.file
12350
12351# Extract the first word of "xgettext", so it can be a program name with args.
12352set dummy xgettext; ac_word=$2
12353echo "$as_me:$LINENO: checking for $ac_word" >&5
12354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12355if test "${ac_cv_path_XGETTEXT+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12357else
12358 case "$XGETTEXT" in
12359 [\\/]* | ?:[\\/]*)
12360 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12361 ;;
12362 *)
12363 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12364 for ac_dir in $PATH; do
12365 IFS="$ac_save_IFS"
12366 test -z "$ac_dir" && ac_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12369 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12370 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12371 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12372 break 2
12373 fi
12374 fi
12375 done
12376 done
12377 IFS="$ac_save_IFS"
12378 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12379 ;;
12380esac
12381fi
12382XGETTEXT="$ac_cv_path_XGETTEXT"
12383if test "$XGETTEXT" != ":"; then
12384 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12385echo "${ECHO_T}$XGETTEXT" >&6
12386else
12387 echo "$as_me:$LINENO: result: no" >&5
12388echo "${ECHO_T}no" >&6
12389fi
12390
12391 rm -f messages.po
12392
12393
12394# Prepare PATH_SEPARATOR.
12395# The user is always right.
12396if test "${PATH_SEPARATOR+set}" != set; then
12397 echo "#! /bin/sh" >conf$$.sh
12398 echo "exit 0" >>conf$$.sh
12399 chmod +x conf$$.sh
12400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12401 PATH_SEPARATOR=';'
12402 else
12403 PATH_SEPARATOR=:
12404 fi
12405 rm -f conf$$.sh
12406fi
12407
12408# Find out how to test for executable files. Don't use a zero-byte file,
12409# as systems may use methods other than mode bits to determine executability.
12410cat >conf$$.file <<_ASEOF
12411#! /bin/sh
12412exit 0
12413_ASEOF
12414chmod +x conf$$.file
12415if test -x conf$$.file >/dev/null 2>&1; then
12416 ac_executable_p="test -x"
12417else
12418 ac_executable_p="test -f"
12419fi
12420rm -f conf$$.file
12421
12422# Extract the first word of "msgmerge", so it can be a program name with args.
12423set dummy msgmerge; ac_word=$2
12424echo "$as_me:$LINENO: checking for $ac_word" >&5
12425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12426if test "${ac_cv_path_MSGMERGE+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429 case "$MSGMERGE" in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12432 ;;
12433 *)
12434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12435 for ac_dir in $PATH; do
12436 IFS="$ac_save_IFS"
12437 test -z "$ac_dir" && ac_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12440 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12441 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12442 break 2
12443 fi
12444 fi
12445 done
12446 done
12447 IFS="$ac_save_IFS"
12448 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12449 ;;
12450esac
12451fi
12452MSGMERGE="$ac_cv_path_MSGMERGE"
12453if test "$MSGMERGE" != ":"; then
12454 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12455echo "${ECHO_T}$MSGMERGE" >&6
12456else
12457 echo "$as_me:$LINENO: result: no" >&5
12458echo "${ECHO_T}no" >&6
12459fi
12460
12461
12462 if test "$GMSGFMT" != ":"; then
12463 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12464 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12465 : ;
12466 else
12467 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12468 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12469echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12470 GMSGFMT=":"
12471 fi
12472 fi
12473
12474 if test "$XGETTEXT" != ":"; then
12475 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12476 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12477 : ;
12478 else
12479 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12480echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12481 XGETTEXT=":"
12482 fi
12483 rm -f messages.po
12484 fi
12485
12486 ac_config_commands="$ac_config_commands default-1"
12487
12488
12489
12490# Permit host specific settings.
12491. ${srcdir}/configure.host
12492
12493
12494# Find a good install program. We prefer a C program (faster),
12495# so one script is as good as another. But avoid the broken or
12496# incompatible versions:
12497# SysV /etc/install, /usr/sbin/install
12498# SunOS /usr/etc/install
12499# IRIX /sbin/install
12500# AIX /bin/install
12501# AmigaOS /C/install, which installs bootblocks on floppy discs
12502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12505# OS/2's system install, which has a completely different semantic
12506# ./install, which can be erroneously created by make from ./install.sh.
12507# Reject install programs that cannot install multiple files.
12508echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12509echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12510if test -z "$INSTALL"; then
12511if test "${ac_cv_path_install+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513else
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515for as_dir in $PATH
12516do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 # Account for people who put trailing slashes in PATH elements.
12520case $as_dir/ in
12521 ./ | .// | /cC/* | \
12522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12524 /usr/ucb/* ) ;;
12525 *)
12526 # OSF1 and SCO ODT 3.0 have their own names for install.
12527 # Don't use installbsd from OSF since it installs stuff as root
12528 # by default.
12529 for ac_prog in ginstall scoinst install; do
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12532 if test $ac_prog = install &&
12533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12534 # AIX install. It has an incompatible calling convention.
12535 :
12536 elif test $ac_prog = install &&
12537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12538 # program-specific install script used by HP pwplus--don't use.
12539 :
12540 else
12541 rm -rf conftest.one conftest.two conftest.dir
12542 echo one > conftest.one
12543 echo two > conftest.two
12544 mkdir conftest.dir
12545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12546 test -s conftest.one && test -s conftest.two &&
12547 test -s conftest.dir/conftest.one &&
12548 test -s conftest.dir/conftest.two
12549 then
12550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12551 break 3
12552 fi
12553 fi
12554 fi
12555 done
12556 done
12557 ;;
12558esac
12559done
12560
12561rm -rf conftest.one conftest.two conftest.dir
12562
12563fi
12564 if test "${ac_cv_path_install+set}" = set; then
12565 INSTALL=$ac_cv_path_install
12566 else
12567 # As a last resort, use the slow shell script. Don't cache a
12568 # value for INSTALL within a source directory, because that will
12569 # break other packages using the cache if that directory is
12570 # removed, or if the value is a relative name.
12571 INSTALL=$ac_install_sh
12572 fi
12573fi
12574echo "$as_me:$LINENO: result: $INSTALL" >&5
12575echo "${ECHO_T}$INSTALL" >&6
12576
12577# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12578# It thinks the first close brace ends the variable substitution.
12579test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12580
12581test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12582
12583test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12584
12585
12586BFD_HOST_64BIT_LONG=0
12587BFD_HOST_64BIT_LONG_LONG=0
12588BFD_HOST_64_BIT_DEFINED=0
12589BFD_HOST_64_BIT=
12590BFD_HOST_U_64_BIT=
12591BFD_HOSTPTR_T="unsigned long"
12592
12593echo "$as_me:$LINENO: checking for long long" >&5
12594echo $ECHO_N "checking for long long... $ECHO_C" >&6
12595if test "${ac_cv_type_long_long+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598 cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604$ac_includes_default
12605int
12606main ()
12607{
12608if ((long long *) 0)
12609 return 0;
12610if (sizeof (long long))
12611 return 0;
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext
12617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_type_long_long=yes
12639else
12640 echo "$as_me: failed program was:" >&5
12641sed 's/^/| /' conftest.$ac_ext >&5
12642
12643ac_cv_type_long_long=no
12644fi
12645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646fi
12647echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12648echo "${ECHO_T}$ac_cv_type_long_long" >&6
12649
12650echo "$as_me:$LINENO: checking size of long long" >&5
12651echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12652if test "${ac_cv_sizeof_long_long+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655 if test "$ac_cv_type_long_long" = yes; then
12656 # The cast to unsigned long works around a bug in the HP C Compiler
12657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12659 # This bug is HP SR number 8606223364.
12660 if test "$cross_compiling" = yes; then
12661 # Depending upon the size, compute the lo and hi bounds.
12662cat >conftest.$ac_ext <<_ACEOF
12663/* confdefs.h. */
12664_ACEOF
12665cat confdefs.h >>conftest.$ac_ext
12666cat >>conftest.$ac_ext <<_ACEOF
12667/* end confdefs.h. */
12668$ac_includes_default
12669int
12670main ()
12671{
12672static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12673test_array [0] = 0
12674
12675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext
12680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_lo=0 ac_mid=0
12702 while :; do
12703 cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h. */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h. */
12709$ac_includes_default
12710int
12711main ()
12712{
12713static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12714test_array [0] = 0
12715
12716 ;
12717 return 0;
12718}
12719_ACEOF
12720rm -f conftest.$ac_objext
12721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12723 ac_status=$?
12724 grep -v '^ *+' conftest.er1 >conftest.err
12725 rm -f conftest.er1
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_hi=$ac_mid; break
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747ac_lo=`expr $ac_mid + 1`
12748 if test $ac_lo -le $ac_mid; then
12749 ac_lo= ac_hi=
12750 break
12751 fi
12752 ac_mid=`expr 2 '*' $ac_mid + 1`
12753fi
12754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755 done
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
12766$ac_includes_default
12767int
12768main ()
12769{
12770static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12771test_array [0] = 0
12772
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext
12778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag"
12787 || test ! -s conftest.err'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; } &&
12793 { ac_try='test -s conftest.$ac_objext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_hi=-1 ac_mid=-1
12800 while :; do
12801 cat >conftest.$ac_ext <<_ACEOF
12802/* confdefs.h. */
12803_ACEOF
12804cat confdefs.h >>conftest.$ac_ext
12805cat >>conftest.$ac_ext <<_ACEOF
12806/* end confdefs.h. */
12807$ac_includes_default
12808int
12809main ()
12810{
12811static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12812test_array [0] = 0
12813
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext
12819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820 (eval $ac_compile) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_c_werror_flag"
12828 || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest.$ac_objext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_lo=$ac_mid; break
12841else
12842 echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845ac_hi=`expr '(' $ac_mid ')' - 1`
12846 if test $ac_mid -le $ac_hi; then
12847 ac_lo= ac_hi=
12848 break
12849 fi
12850 ac_mid=`expr 2 '*' $ac_mid`
12851fi
12852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12853 done
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858ac_lo= ac_hi=
12859fi
12860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12861fi
12862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12863# Binary search between lo and hi bounds.
12864while test "x$ac_lo" != "x$ac_hi"; do
12865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12866 cat >conftest.$ac_ext <<_ACEOF
12867/* confdefs.h. */
12868_ACEOF
12869cat confdefs.h >>conftest.$ac_ext
12870cat >>conftest.$ac_ext <<_ACEOF
12871/* end confdefs.h. */
12872$ac_includes_default
12873int
12874main ()
12875{
12876static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12877test_array [0] = 0
12878
12879 ;
12880 return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext
12884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>conftest.er1
12886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
12892 { ac_try='test -z "$ac_c_werror_flag"
12893 || test ! -s conftest.err'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_hi=$ac_mid
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910ac_lo=`expr '(' $ac_mid ')' + 1`
12911fi
12912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913done
12914case $ac_lo in
12915?*) ac_cv_sizeof_long_long=$ac_lo;;
12916'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12917echo "$as_me: error: in \`$ac_pwd':" >&2;}
12918{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12919See \`config.log' for more details." >&5
12920echo "$as_me: error: cannot compute sizeof (long long), 77
12921See \`config.log' for more details." >&2;}
12922 { (exit 1); exit 1; }; }; } ;;
12923esac
12924else
12925 if test "$cross_compiling" = yes; then
12926 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12927echo "$as_me: error: in \`$ac_pwd':" >&2;}
12928{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12929See \`config.log' for more details." >&5
12930echo "$as_me: error: cannot run test program while cross compiling
12931See \`config.log' for more details." >&2;}
12932 { (exit 1); exit 1; }; }; }
12933else
12934 cat >conftest.$ac_ext <<_ACEOF
12935/* confdefs.h. */
12936_ACEOF
12937cat confdefs.h >>conftest.$ac_ext
12938cat >>conftest.$ac_ext <<_ACEOF
12939/* end confdefs.h. */
12940$ac_includes_default
12941long longval () { return (long) (sizeof (long long)); }
12942unsigned long ulongval () { return (long) (sizeof (long long)); }
12943#include <stdio.h>
12944#include <stdlib.h>
12945int
12946main ()
12947{
12948
12949 FILE *f = fopen ("conftest.val", "w");
12950 if (! f)
12951 exit (1);
12952 if (((long) (sizeof (long long))) < 0)
12953 {
12954 long i = longval ();
12955 if (i != ((long) (sizeof (long long))))
12956 exit (1);
12957 fprintf (f, "%ld\n", i);
12958 }
12959 else
12960 {
12961 unsigned long i = ulongval ();
12962 if (i != ((long) (sizeof (long long))))
12963 exit (1);
12964 fprintf (f, "%lu\n", i);
12965 }
12966 exit (ferror (f) || fclose (f) != 0);
12967
12968 ;
12969 return 0;
12970}
12971_ACEOF
12972rm -f conftest$ac_exeext
12973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12974 (eval $ac_link) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_sizeof_long_long=`cat conftest.val`
12984else
12985 echo "$as_me: program exited with status $ac_status" >&5
12986echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989( exit $ac_status )
12990{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12991echo "$as_me: error: in \`$ac_pwd':" >&2;}
12992{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12993See \`config.log' for more details." >&5
12994echo "$as_me: error: cannot compute sizeof (long long), 77
12995See \`config.log' for more details." >&2;}
12996 { (exit 1); exit 1; }; }; }
12997fi
12998rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12999fi
13000fi
13001rm -f conftest.val
13002else
13003 ac_cv_sizeof_long_long=0
13004fi
13005fi
13006echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13007echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13008cat >>confdefs.h <<_ACEOF
13009#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13010_ACEOF
13011
13012
13013echo "$as_me:$LINENO: checking for void *" >&5
13014echo $ECHO_N "checking for void *... $ECHO_C" >&6
13015if test "${ac_cv_type_void_p+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018 cat >conftest.$ac_ext <<_ACEOF
13019/* confdefs.h. */
13020_ACEOF
13021cat confdefs.h >>conftest.$ac_ext
13022cat >>conftest.$ac_ext <<_ACEOF
13023/* end confdefs.h. */
13024$ac_includes_default
13025int
13026main ()
13027{
13028if ((void * *) 0)
13029 return 0;
13030if (sizeof (void *))
13031 return 0;
13032 ;
13033 return 0;
13034}
13035_ACEOF
13036rm -f conftest.$ac_objext
13037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13038 (eval $ac_compile) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_type_void_p=yes
13059else
13060 echo "$as_me: failed program was:" >&5
13061sed 's/^/| /' conftest.$ac_ext >&5
13062
13063ac_cv_type_void_p=no
13064fi
13065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13066fi
13067echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13068echo "${ECHO_T}$ac_cv_type_void_p" >&6
13069
13070echo "$as_me:$LINENO: checking size of void *" >&5
13071echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13072if test "${ac_cv_sizeof_void_p+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074else
13075 if test "$ac_cv_type_void_p" = yes; then
13076 # The cast to unsigned long works around a bug in the HP C Compiler
13077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13079 # This bug is HP SR number 8606223364.
13080 if test "$cross_compiling" = yes; then
13081 # Depending upon the size, compute the lo and hi bounds.
13082cat >conftest.$ac_ext <<_ACEOF
13083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
13087/* end confdefs.h. */
13088$ac_includes_default
13089int
13090main ()
13091{
13092static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13093test_array [0] = 0
13094
13095 ;
13096 return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext
13100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_lo=0 ac_mid=0
13122 while :; do
13123 cat >conftest.$ac_ext <<_ACEOF
13124/* confdefs.h. */
13125_ACEOF
13126cat confdefs.h >>conftest.$ac_ext
13127cat >>conftest.$ac_ext <<_ACEOF
13128/* end confdefs.h. */
13129$ac_includes_default
13130int
13131main ()
13132{
13133static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13134test_array [0] = 0
13135
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13142 (eval $ac_compile) 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_hi=$ac_mid; break
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167ac_lo=`expr $ac_mid + 1`
13168 if test $ac_lo -le $ac_mid; then
13169 ac_lo= ac_hi=
13170 break
13171 fi
13172 ac_mid=`expr 2 '*' $ac_mid + 1`
13173fi
13174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 done
13176else
13177 echo "$as_me: failed program was:" >&5
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
13180cat >conftest.$ac_ext <<_ACEOF
13181/* confdefs.h. */
13182_ACEOF
13183cat confdefs.h >>conftest.$ac_ext
13184cat >>conftest.$ac_ext <<_ACEOF
13185/* end confdefs.h. */
13186$ac_includes_default
13187int
13188main ()
13189{
13190static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13191test_array [0] = 0
13192
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_hi=-1 ac_mid=-1
13220 while :; do
13221 cat >conftest.$ac_ext <<_ACEOF
13222/* confdefs.h. */
13223_ACEOF
13224cat confdefs.h >>conftest.$ac_ext
13225cat >>conftest.$ac_ext <<_ACEOF
13226/* end confdefs.h. */
13227$ac_includes_default
13228int
13229main ()
13230{
13231static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13232test_array [0] = 0
13233
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238rm -f conftest.$ac_objext
13239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240 (eval $ac_compile) 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest.$ac_objext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_lo=$ac_mid; break
13261else
13262 echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
13264
13265ac_hi=`expr '(' $ac_mid ')' - 1`
13266 if test $ac_mid -le $ac_hi; then
13267 ac_lo= ac_hi=
13268 break
13269 fi
13270 ac_mid=`expr 2 '*' $ac_mid`
13271fi
13272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13273 done
13274else
13275 echo "$as_me: failed program was:" >&5
13276sed 's/^/| /' conftest.$ac_ext >&5
13277
13278ac_lo= ac_hi=
13279fi
13280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13281fi
13282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13283# Binary search between lo and hi bounds.
13284while test "x$ac_lo" != "x$ac_hi"; do
13285 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13286 cat >conftest.$ac_ext <<_ACEOF
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
13292$ac_includes_default
13293int
13294main ()
13295{
13296static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13297test_array [0] = 0
13298
13299 ;
13300 return 0;
13301}
13302_ACEOF
13303rm -f conftest.$ac_objext
13304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_hi=$ac_mid
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330ac_lo=`expr '(' $ac_mid ')' + 1`
13331fi
13332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13333done
13334case $ac_lo in
13335?*) ac_cv_sizeof_void_p=$ac_lo;;
13336'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13337echo "$as_me: error: in \`$ac_pwd':" >&2;}
13338{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13339See \`config.log' for more details." >&5
13340echo "$as_me: error: cannot compute sizeof (void *), 77
13341See \`config.log' for more details." >&2;}
13342 { (exit 1); exit 1; }; }; } ;;
13343esac
13344else
13345 if test "$cross_compiling" = yes; then
13346 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13347echo "$as_me: error: in \`$ac_pwd':" >&2;}
13348{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13349See \`config.log' for more details." >&5
13350echo "$as_me: error: cannot run test program while cross compiling
13351See \`config.log' for more details." >&2;}
13352 { (exit 1); exit 1; }; }; }
13353else
13354 cat >conftest.$ac_ext <<_ACEOF
13355/* confdefs.h. */
13356_ACEOF
13357cat confdefs.h >>conftest.$ac_ext
13358cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */
13360$ac_includes_default
13361long longval () { return (long) (sizeof (void *)); }
13362unsigned long ulongval () { return (long) (sizeof (void *)); }
13363#include <stdio.h>
13364#include <stdlib.h>
13365int
13366main ()
13367{
13368
13369 FILE *f = fopen ("conftest.val", "w");
13370 if (! f)
13371 exit (1);
13372 if (((long) (sizeof (void *))) < 0)
13373 {
13374 long i = longval ();
13375 if (i != ((long) (sizeof (void *))))
13376 exit (1);
13377 fprintf (f, "%ld\n", i);
13378 }
13379 else
13380 {
13381 unsigned long i = ulongval ();
13382 if (i != ((long) (sizeof (void *))))
13383 exit (1);
13384 fprintf (f, "%lu\n", i);
13385 }
13386 exit (ferror (f) || fclose (f) != 0);
13387
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392rm -f conftest$ac_exeext
13393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13394 (eval $ac_link) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_cv_sizeof_void_p=`cat conftest.val`
13404else
13405 echo "$as_me: program exited with status $ac_status" >&5
13406echo "$as_me: failed program was:" >&5
13407sed 's/^/| /' conftest.$ac_ext >&5
13408
13409( exit $ac_status )
13410{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13411echo "$as_me: error: in \`$ac_pwd':" >&2;}
13412{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13413See \`config.log' for more details." >&5
13414echo "$as_me: error: cannot compute sizeof (void *), 77
13415See \`config.log' for more details." >&2;}
13416 { (exit 1); exit 1; }; }; }
13417fi
13418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13419fi
13420fi
13421rm -f conftest.val
13422else
13423 ac_cv_sizeof_void_p=0
13424fi
13425fi
13426echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13427echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13428cat >>confdefs.h <<_ACEOF
13429#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13430_ACEOF
13431
13432
13433echo "$as_me:$LINENO: checking for long" >&5
13434echo $ECHO_N "checking for long... $ECHO_C" >&6
13435if test "${ac_cv_type_long+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438 cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444$ac_includes_default
13445int
13446main ()
13447{
13448if ((long *) 0)
13449 return 0;
13450if (sizeof (long))
13451 return 0;
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
13457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -z "$ac_c_werror_flag"
13466 || test ! -s conftest.err'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13469 ac_status=$?
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_cv_type_long=yes
13479else
13480 echo "$as_me: failed program was:" >&5
13481sed 's/^/| /' conftest.$ac_ext >&5
13482
13483ac_cv_type_long=no
13484fi
13485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13486fi
13487echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13488echo "${ECHO_T}$ac_cv_type_long" >&6
13489
13490echo "$as_me:$LINENO: checking size of long" >&5
13491echo $ECHO_N "checking size of long... $ECHO_C" >&6
13492if test "${ac_cv_sizeof_long+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494else
13495 if test "$ac_cv_type_long" = yes; then
13496 # The cast to unsigned long works around a bug in the HP C Compiler
13497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13499 # This bug is HP SR number 8606223364.
13500 if test "$cross_compiling" = yes; then
13501 # Depending upon the size, compute the lo and hi bounds.
13502cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
13508$ac_includes_default
13509int
13510main ()
13511{
13512static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13513test_array [0] = 0
13514
13515 ;
13516 return 0;
13517}
13518_ACEOF
13519rm -f conftest.$ac_objext
13520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521 (eval $ac_compile) 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -z "$ac_c_werror_flag"
13529 || test ! -s conftest.err'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; } &&
13535 { ac_try='test -s conftest.$ac_objext'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_lo=0 ac_mid=0
13542 while :; do
13543 cat >conftest.$ac_ext <<_ACEOF
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549$ac_includes_default
13550int
13551main ()
13552{
13553static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13554test_array [0] = 0
13555
13556 ;
13557 return 0;
13558}
13559_ACEOF
13560rm -f conftest.$ac_objext
13561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13562 (eval $ac_compile) 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag"
13570 || test ! -s conftest.err'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_hi=$ac_mid; break
13583else
13584 echo "$as_me: failed program was:" >&5
13585sed 's/^/| /' conftest.$ac_ext >&5
13586
13587ac_lo=`expr $ac_mid + 1`
13588 if test $ac_lo -le $ac_mid; then
13589 ac_lo= ac_hi=
13590 break
13591 fi
13592 ac_mid=`expr 2 '*' $ac_mid + 1`
13593fi
13594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13595 done
13596else
13597 echo "$as_me: failed program was:" >&5
13598sed 's/^/| /' conftest.$ac_ext >&5
13599
13600cat >conftest.$ac_ext <<_ACEOF
13601/* confdefs.h. */
13602_ACEOF
13603cat confdefs.h >>conftest.$ac_ext
13604cat >>conftest.$ac_ext <<_ACEOF
13605/* end confdefs.h. */
13606$ac_includes_default
13607int
13608main ()
13609{
13610static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13611test_array [0] = 0
13612
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617rm -f conftest.$ac_objext
13618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_c_werror_flag"
13627 || test ! -s conftest.err'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; } &&
13633 { ac_try='test -s conftest.$ac_objext'
13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; }; then
13639 ac_hi=-1 ac_mid=-1
13640 while :; do
13641 cat >conftest.$ac_ext <<_ACEOF
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647$ac_includes_default
13648int
13649main ()
13650{
13651static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13652test_array [0] = 0
13653
13654 ;
13655 return 0;
13656}
13657_ACEOF
13658rm -f conftest.$ac_objext
13659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>conftest.er1
13661 ac_status=$?
13662 grep -v '^ *+' conftest.er1 >conftest.err
13663 rm -f conftest.er1
13664 cat conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -z "$ac_c_werror_flag"
13668 || test ! -s conftest.err'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_lo=$ac_mid; break
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685ac_hi=`expr '(' $ac_mid ')' - 1`
13686 if test $ac_mid -le $ac_hi; then
13687 ac_lo= ac_hi=
13688 break
13689 fi
13690 ac_mid=`expr 2 '*' $ac_mid`
13691fi
13692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13693 done
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698ac_lo= ac_hi=
13699fi
13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13701fi
13702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13703# Binary search between lo and hi bounds.
13704while test "x$ac_lo" != "x$ac_hi"; do
13705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13706 cat >conftest.$ac_ext <<_ACEOF
13707/* confdefs.h. */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
13711/* end confdefs.h. */
13712$ac_includes_default
13713int
13714main ()
13715{
13716static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13717test_array [0] = 0
13718
13719 ;
13720 return 0;
13721}
13722_ACEOF
13723rm -f conftest.$ac_objext
13724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_hi=$ac_mid
13746else
13747 echo "$as_me: failed program was:" >&5
13748sed 's/^/| /' conftest.$ac_ext >&5
13749
13750ac_lo=`expr '(' $ac_mid ')' + 1`
13751fi
13752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13753done
13754case $ac_lo in
13755?*) ac_cv_sizeof_long=$ac_lo;;
13756'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13757echo "$as_me: error: in \`$ac_pwd':" >&2;}
13758{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13759See \`config.log' for more details." >&5
13760echo "$as_me: error: cannot compute sizeof (long), 77
13761See \`config.log' for more details." >&2;}
13762 { (exit 1); exit 1; }; }; } ;;
13763esac
13764else
13765 if test "$cross_compiling" = yes; then
13766 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13767echo "$as_me: error: in \`$ac_pwd':" >&2;}
13768{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13769See \`config.log' for more details." >&5
13770echo "$as_me: error: cannot run test program while cross compiling
13771See \`config.log' for more details." >&2;}
13772 { (exit 1); exit 1; }; }; }
13773else
13774 cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780$ac_includes_default
13781long longval () { return (long) (sizeof (long)); }
13782unsigned long ulongval () { return (long) (sizeof (long)); }
13783#include <stdio.h>
13784#include <stdlib.h>
13785int
13786main ()
13787{
13788
13789 FILE *f = fopen ("conftest.val", "w");
13790 if (! f)
13791 exit (1);
13792 if (((long) (sizeof (long))) < 0)
13793 {
13794 long i = longval ();
13795 if (i != ((long) (sizeof (long))))
13796 exit (1);
13797 fprintf (f, "%ld\n", i);
13798 }
13799 else
13800 {
13801 unsigned long i = ulongval ();
13802 if (i != ((long) (sizeof (long))))
13803 exit (1);
13804 fprintf (f, "%lu\n", i);
13805 }
13806 exit (ferror (f) || fclose (f) != 0);
13807
13808 ;
13809 return 0;
13810}
13811_ACEOF
13812rm -f conftest$ac_exeext
13813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13814 (eval $ac_link) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_sizeof_long=`cat conftest.val`
13824else
13825 echo "$as_me: program exited with status $ac_status" >&5
13826echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829( exit $ac_status )
13830{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13831echo "$as_me: error: in \`$ac_pwd':" >&2;}
13832{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13833See \`config.log' for more details." >&5
13834echo "$as_me: error: cannot compute sizeof (long), 77
13835See \`config.log' for more details." >&2;}
13836 { (exit 1); exit 1; }; }; }
13837fi
13838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13839fi
13840fi
13841rm -f conftest.val
13842else
13843 ac_cv_sizeof_long=0
13844fi
13845fi
13846echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13847echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13848cat >>confdefs.h <<_ACEOF
13849#define SIZEOF_LONG $ac_cv_sizeof_long
13850_ACEOF
13851
13852
13853
13854if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13855 host64=true
13856fi
13857
13858if test "x${ac_cv_sizeof_long}" = "x8"; then
13859 BFD_HOST_64BIT_LONG=1
13860 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13861 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13862elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13863 BFD_HOST_64BIT_LONG_LONG=1
13864 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13865 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13866 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13867 BFD_HOSTPTR_T="unsigned long long"
13868 fi
13869fi
13870
13871if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13872 BFD_HOST_64_BIT_DEFINED=1
13873 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13874 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13875fi
13876
13877
13878
13879
13880
13881
13882
13883
13884# Put a plausible default for CC_FOR_BUILD in Makefile.
13885if test -z "$CC_FOR_BUILD"; then
13886 if test "x$cross_compiling" = "xno"; then
13887 CC_FOR_BUILD='$(CC)'
13888 else
13889 CC_FOR_BUILD=gcc
13890 fi
13891fi
13892
13893# Also set EXEEXT_FOR_BUILD.
13894if test "x$cross_compiling" = "xno"; then
13895 EXEEXT_FOR_BUILD='$(EXEEXT)'
13896else
13897 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13898echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13899if test "${bfd_cv_build_exeext+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 rm -f conftest*
13903 echo 'int main () { return 0; }' > conftest.c
13904 bfd_cv_build_exeext=
13905 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13906 for file in conftest.*; do
13907 case $file in
13908 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13909 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13910 esac
13911 done
13912 rm -f conftest*
13913 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13914fi
13915echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13916echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13917 EXEEXT_FOR_BUILD=""
13918 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13919fi
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13930do
13931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13932if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo "$as_me:$LINENO: checking for $ac_header" >&5
13934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13935if eval "test \"\${$as_ac_Header+set}\" = set"; then
13936 echo $ECHO_N "(cached) $ECHO_C" >&6
13937fi
13938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13940else
13941 # Is the header compilable?
13942echo "$as_me:$LINENO: checking $ac_header usability" >&5
13943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13944cat >conftest.$ac_ext <<_ACEOF
13945/* confdefs.h. */
13946_ACEOF
13947cat confdefs.h >>conftest.$ac_ext
13948cat >>conftest.$ac_ext <<_ACEOF
13949/* end confdefs.h. */
13950$ac_includes_default
13951#include <$ac_header>
13952_ACEOF
13953rm -f conftest.$ac_objext
13954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13955 (eval $ac_compile) 2>conftest.er1
13956 ac_status=$?
13957 grep -v '^ *+' conftest.er1 >conftest.err
13958 rm -f conftest.er1
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag"
13963 || test ! -s conftest.err'
13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; } &&
13969 { ac_try='test -s conftest.$ac_objext'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 ac_header_compiler=yes
13976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980ac_header_compiler=no
13981fi
13982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984echo "${ECHO_T}$ac_header_compiler" >&6
13985
13986# Is the header present?
13987echo "$as_me:$LINENO: checking $ac_header presence" >&5
13988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13989cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
13994/* end confdefs.h. */
13995#include <$ac_header>
13996_ACEOF
13997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } >/dev/null; then
14005 if test -s conftest.err; then
14006 ac_cpp_err=$ac_c_preproc_warn_flag
14007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14008 else
14009 ac_cpp_err=
14010 fi
14011else
14012 ac_cpp_err=yes
14013fi
14014if test -z "$ac_cpp_err"; then
14015 ac_header_preproc=yes
14016else
14017 echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_preproc=no
14021fi
14022rm -f conftest.err conftest.$ac_ext
14023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14024echo "${ECHO_T}$ac_header_preproc" >&6
14025
14026# So? What about this header?
14027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14028 yes:no: )
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14033 ac_header_preproc=yes
14034 ;;
14035 no:yes:* )
14036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14048 (
14049 cat <<\_ASBOX
14050## ------------------------------------------ ##
14051## Report this to the AC_PACKAGE_NAME lists. ##
14052## ------------------------------------------ ##
14053_ASBOX
14054 ) |
14055 sed "s/^/$as_me: WARNING: /" >&2
14056 ;;
14057esac
14058echo "$as_me:$LINENO: checking for $ac_header" >&5
14059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14060if eval "test \"\${$as_ac_Header+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 eval "$as_ac_Header=\$ac_header_preproc"
14064fi
14065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14067
14068fi
14069if test `eval echo '${'$as_ac_Header'}'` = yes; then
14070 cat >>confdefs.h <<_ACEOF
14071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14072_ACEOF
14073
14074fi
14075
14076done
14077
14078
14079
14080
14081for ac_header in fcntl.h sys/file.h sys/time.h
14082do
14083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14084if eval "test \"\${$as_ac_Header+set}\" = set"; then
14085 echo "$as_me:$LINENO: checking for $ac_header" >&5
14086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14087if eval "test \"\${$as_ac_Header+set}\" = set"; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089fi
14090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14092else
14093 # Is the header compilable?
14094echo "$as_me:$LINENO: checking $ac_header usability" >&5
14095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14096cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102$ac_includes_default
14103#include <$ac_header>
14104_ACEOF
14105rm -f conftest.$ac_objext
14106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14107 (eval $ac_compile) 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag"
14115 || test ! -s conftest.err'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest.$ac_objext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ac_header_compiler=yes
14128else
14129 echo "$as_me: failed program was:" >&5
14130sed 's/^/| /' conftest.$ac_ext >&5
14131
14132ac_header_compiler=no
14133fi
14134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14136echo "${ECHO_T}$ac_header_compiler" >&6
14137
14138# Is the header present?
14139echo "$as_me:$LINENO: checking $ac_header presence" >&5
14140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14141cat >conftest.$ac_ext <<_ACEOF
14142/* confdefs.h. */
14143_ACEOF
14144cat confdefs.h >>conftest.$ac_ext
14145cat >>conftest.$ac_ext <<_ACEOF
14146/* end confdefs.h. */
14147#include <$ac_header>
14148_ACEOF
14149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14151 ac_status=$?
14152 grep -v '^ *+' conftest.er1 >conftest.err
14153 rm -f conftest.er1
14154 cat conftest.err >&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev/null; then
14157 if test -s conftest.err; then
14158 ac_cpp_err=$ac_c_preproc_warn_flag
14159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14160 else
14161 ac_cpp_err=
14162 fi
14163else
14164 ac_cpp_err=yes
14165fi
14166if test -z "$ac_cpp_err"; then
14167 ac_header_preproc=yes
14168else
14169 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
14172 ac_header_preproc=no
14173fi
14174rm -f conftest.err conftest.$ac_ext
14175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176echo "${ECHO_T}$ac_header_preproc" >&6
14177
14178# So? What about this header?
14179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14180 yes:no: )
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14185 ac_header_preproc=yes
14186 ;;
14187 no:yes:* )
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14200 (
14201 cat <<\_ASBOX
14202## ------------------------------------------ ##
14203## Report this to the AC_PACKAGE_NAME lists. ##
14204## ------------------------------------------ ##
14205_ASBOX
14206 ) |
14207 sed "s/^/$as_me: WARNING: /" >&2
14208 ;;
14209esac
14210echo "$as_me:$LINENO: checking for $ac_header" >&5
14211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14212if eval "test \"\${$as_ac_Header+set}\" = set"; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214else
14215 eval "$as_ac_Header=\$ac_header_preproc"
14216fi
14217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14219
14220fi
14221if test `eval echo '${'$as_ac_Header'}'` = yes; then
14222 cat >>confdefs.h <<_ACEOF
14223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14224_ACEOF
14225
14226fi
14227
14228done
14229
14230
14231
14232inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14233
14234acx_cv_header_stdint=stddef.h
14235acx_cv_header_stdint_kind="(already complete)"
14236for i in stdint.h $inttype_headers; do
14237 unset ac_cv_type_uintptr_t
14238 unset ac_cv_type_uintmax_t
14239 unset ac_cv_type_int_least32_t
14240 unset ac_cv_type_int_fast32_t
14241 unset ac_cv_type_uint64_t
14242 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14243 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14244echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14245if test "${ac_cv_type_uintmax_t+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14247else
14248 cat >conftest.$ac_ext <<_ACEOF
14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
14254#include <sys/types.h>
14255#include <$i>
14256
14257int
14258main ()
14259{
14260if ((uintmax_t *) 0)
14261 return 0;
14262if (sizeof (uintmax_t))
14263 return 0;
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext
14269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>conftest.er1
14271 ac_status=$?
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -z "$ac_c_werror_flag"
14278 || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_type_uintmax_t=yes
14291else
14292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295ac_cv_type_uintmax_t=no
14296fi
14297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14298fi
14299echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14300echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14301if test $ac_cv_type_uintmax_t = yes; then
14302 acx_cv_header_stdint=$i
14303else
14304 continue
14305fi
14306
14307 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14308echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14309if test "${ac_cv_type_uintptr_t+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311else
14312 cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h. */
14318#include <sys/types.h>
14319#include <$i>
14320
14321int
14322main ()
14323{
14324if ((uintptr_t *) 0)
14325 return 0;
14326if (sizeof (uintptr_t))
14327 return 0;
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332rm -f conftest.$ac_objext
14333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag"
14342 || test ! -s conftest.err'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_type_uintptr_t=yes
14355else
14356 echo "$as_me: failed program was:" >&5
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
14359ac_cv_type_uintptr_t=no
14360fi
14361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14362fi
14363echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14364echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14365if test $ac_cv_type_uintptr_t = yes; then
14366 :
14367else
14368 acx_cv_header_stdint_kind="(mostly complete)"
14369fi
14370
14371 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14372echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14373if test "${ac_cv_type_int_least32_t+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14375else
14376 cat >conftest.$ac_ext <<_ACEOF
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382#include <sys/types.h>
14383#include <$i>
14384
14385int
14386main ()
14387{
14388if ((int_least32_t *) 0)
14389 return 0;
14390if (sizeof (int_least32_t))
14391 return 0;
14392 ;
14393 return 0;
14394}
14395_ACEOF
14396rm -f conftest.$ac_objext
14397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_type_int_least32_t=yes
14419else
14420 echo "$as_me: failed program was:" >&5
14421sed 's/^/| /' conftest.$ac_ext >&5
14422
14423ac_cv_type_int_least32_t=no
14424fi
14425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14426fi
14427echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14428echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14429if test $ac_cv_type_int_least32_t = yes; then
14430 :
14431else
14432 acx_cv_header_stdint_kind="(mostly complete)"
14433fi
14434
14435 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14436echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14437if test "${ac_cv_type_int_fast32_t+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439else
14440 cat >conftest.$ac_ext <<_ACEOF
14441/* confdefs.h. */
14442_ACEOF
14443cat confdefs.h >>conftest.$ac_ext
14444cat >>conftest.$ac_ext <<_ACEOF
14445/* end confdefs.h. */
14446#include <sys/types.h>
14447#include <$i>
14448
14449int
14450main ()
14451{
14452if ((int_fast32_t *) 0)
14453 return 0;
14454if (sizeof (int_fast32_t))
14455 return 0;
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext
14461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>conftest.er1
14463 ac_status=$?
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_type_int_fast32_t=yes
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487ac_cv_type_int_fast32_t=no
14488fi
14489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14490fi
14491echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14492echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14493if test $ac_cv_type_int_fast32_t = yes; then
14494 :
14495else
14496 acx_cv_header_stdint_kind="(mostly complete)"
14497fi
14498
14499 echo "$as_me:$LINENO: checking for uint64_t" >&5
14500echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14501if test "${ac_cv_type_uint64_t+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503else
14504 cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
14509/* end confdefs.h. */
14510#include <sys/types.h>
14511#include <$i>
14512
14513int
14514main ()
14515{
14516if ((uint64_t *) 0)
14517 return 0;
14518if (sizeof (uint64_t))
14519 return 0;
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524rm -f conftest.$ac_objext
14525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>conftest.er1
14527 ac_status=$?
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_type_uint64_t=yes
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551ac_cv_type_uint64_t=no
14552fi
14553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554fi
14555echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14556echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14557if test $ac_cv_type_uint64_t = yes; then
14558 :
14559else
14560 acx_cv_header_stdint_kind="(lacks uint64_t)"
14561fi
14562
14563 break
14564done
14565if test "$acx_cv_header_stdint" = stddef.h; then
14566 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14567 for i in stdint.h $inttype_headers; do
14568 unset ac_cv_type_uintptr_t
14569 unset ac_cv_type_uint32_t
14570 unset ac_cv_type_uint64_t
14571 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14572 echo "$as_me:$LINENO: checking for uint32_t" >&5
14573echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14574if test "${ac_cv_type_uint32_t+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576else
14577 cat >conftest.$ac_ext <<_ACEOF
14578/* confdefs.h. */
14579_ACEOF
14580cat confdefs.h >>conftest.$ac_ext
14581cat >>conftest.$ac_ext <<_ACEOF
14582/* end confdefs.h. */
14583#include <sys/types.h>
14584#include <$i>
14585
14586int
14587main ()
14588{
14589if ((uint32_t *) 0)
14590 return 0;
14591if (sizeof (uint32_t))
14592 return 0;
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597rm -f conftest.$ac_objext
14598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599 (eval $ac_compile) 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag"
14607 || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_type_uint32_t=yes
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624ac_cv_type_uint32_t=no
14625fi
14626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14627fi
14628echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14629echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14630if test $ac_cv_type_uint32_t = yes; then
14631 acx_cv_header_stdint=$i
14632else
14633 continue
14634fi
14635
14636 echo "$as_me:$LINENO: checking for uint64_t" >&5
14637echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14638if test "${ac_cv_type_uint64_t+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641 cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647#include <sys/types.h>
14648#include <$i>
14649
14650int
14651main ()
14652{
14653if ((uint64_t *) 0)
14654 return 0;
14655if (sizeof (uint64_t))
14656 return 0;
14657 ;
14658 return 0;
14659}
14660_ACEOF
14661rm -f conftest.$ac_objext
14662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14663 (eval $ac_compile) 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
14670 { ac_try='test -z "$ac_c_werror_flag"
14671 || test ! -s conftest.err'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; } &&
14677 { ac_try='test -s conftest.$ac_objext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 ac_cv_type_uint64_t=yes
14684else
14685 echo "$as_me: failed program was:" >&5
14686sed 's/^/| /' conftest.$ac_ext >&5
14687
14688ac_cv_type_uint64_t=no
14689fi
14690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14691fi
14692echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14693echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14694
14695 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14696echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14697if test "${ac_cv_type_uintptr_t+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699else
14700 cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
14706#include <sys/types.h>
14707#include <$i>
14708
14709int
14710main ()
14711{
14712if ((uintptr_t *) 0)
14713 return 0;
14714if (sizeof (uintptr_t))
14715 return 0;
14716 ;
14717 return 0;
14718}
14719_ACEOF
14720rm -f conftest.$ac_objext
14721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14722 (eval $ac_compile) 2>conftest.er1
14723 ac_status=$?
14724 grep -v '^ *+' conftest.er1 >conftest.err
14725 rm -f conftest.er1
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -z "$ac_c_werror_flag"
14730 || test ! -s conftest.err'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_type_uintptr_t=yes
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
14747ac_cv_type_uintptr_t=no
14748fi
14749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14750fi
14751echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14752echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14753
14754 break
14755 done
14756fi
14757if test "$acx_cv_header_stdint" = stddef.h; then
14758 acx_cv_header_stdint_kind="(u_intXX_t style)"
14759 for i in sys/types.h $inttype_headers; do
14760 unset ac_cv_type_u_int32_t
14761 unset ac_cv_type_u_int64_t
14762 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14763 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14764echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14765if test "${ac_cv_type_u_int32_t+set}" = set; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767else
14768 cat >conftest.$ac_ext <<_ACEOF
14769/* confdefs.h. */
14770_ACEOF
14771cat confdefs.h >>conftest.$ac_ext
14772cat >>conftest.$ac_ext <<_ACEOF
14773/* end confdefs.h. */
14774#include <sys/types.h>
14775#include <$i>
14776
14777int
14778main ()
14779{
14780if ((u_int32_t *) 0)
14781 return 0;
14782if (sizeof (u_int32_t))
14783 return 0;
14784 ;
14785 return 0;
14786}
14787_ACEOF
14788rm -f conftest.$ac_objext
14789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 (eval $ac_compile) 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } &&
14797 { ac_try='test -z "$ac_c_werror_flag"
14798 || test ! -s conftest.err'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_cv_type_u_int32_t=yes
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815ac_cv_type_u_int32_t=no
14816fi
14817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14818fi
14819echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14820echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14821if test $ac_cv_type_u_int32_t = yes; then
14822 acx_cv_header_stdint=$i
14823else
14824 continue
14825fi
14826
14827 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14828echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14829if test "${ac_cv_type_u_int64_t+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 cat >conftest.$ac_ext <<_ACEOF
14833/* confdefs.h. */
14834_ACEOF
14835cat confdefs.h >>conftest.$ac_ext
14836cat >>conftest.$ac_ext <<_ACEOF
14837/* end confdefs.h. */
14838#include <sys/types.h>
14839#include <$i>
14840
14841int
14842main ()
14843{
14844if ((u_int64_t *) 0)
14845 return 0;
14846if (sizeof (u_int64_t))
14847 return 0;
14848 ;
14849 return 0;
14850}
14851_ACEOF
14852rm -f conftest.$ac_objext
14853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_type_u_int64_t=yes
14875else
14876 echo "$as_me: failed program was:" >&5
14877sed 's/^/| /' conftest.$ac_ext >&5
14878
14879ac_cv_type_u_int64_t=no
14880fi
14881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14882fi
14883echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14884echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14885
14886 break
14887 done
14888fi
14889if test "$acx_cv_header_stdint" = stddef.h; then
14890 acx_cv_header_stdint_kind="(using manual detection)"
14891fi
14892
14893test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14894test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14895test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14896test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14897test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14898
14899# ----------------- Summarize what we found so far
14900
14901echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14902echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14903
14904case `$as_basename bfd_stdint.h ||
14905$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14906 Xbfd_stdint.h : 'X\(//\)$' \| \
14907 Xbfd_stdint.h : 'X\(/\)$' \| \
14908 . : '\(.\)' 2>/dev/null ||
14909echo X/bfd_stdint.h |
14910 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14911 /^X\/\(\/\/\)$/{ s//\1/; q; }
14912 /^X\/\(\/\).*/{ s//\1/; q; }
14913 s/.*/./; q'` in
14914 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14915echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14916 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14917echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14918 *) ;;
14919esac
14920
14921echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14922echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14923
14924# ----------------- done included file, check C basic types --------
14925
14926# Lacking an uintptr_t? Test size of void *
14927case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14928 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14929echo $ECHO_N "checking for void *... $ECHO_C" >&6
14930if test "${ac_cv_type_void_p+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
14932else
14933 cat >conftest.$ac_ext <<_ACEOF
14934/* confdefs.h. */
14935_ACEOF
14936cat confdefs.h >>conftest.$ac_ext
14937cat >>conftest.$ac_ext <<_ACEOF
14938/* end confdefs.h. */
14939$ac_includes_default
14940int
14941main ()
14942{
14943if ((void * *) 0)
14944 return 0;
14945if (sizeof (void *))
14946 return 0;
14947 ;
14948 return 0;
14949}
14950_ACEOF
14951rm -f conftest.$ac_objext
14952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953 (eval $ac_compile) 2>conftest.er1
14954 ac_status=$?
14955 grep -v '^ *+' conftest.er1 >conftest.err
14956 rm -f conftest.er1
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } &&
14960 { ac_try='test -z "$ac_c_werror_flag"
14961 || test ! -s conftest.err'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 ac_cv_type_void_p=yes
14974else
14975 echo "$as_me: failed program was:" >&5
14976sed 's/^/| /' conftest.$ac_ext >&5
14977
14978ac_cv_type_void_p=no
14979fi
14980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14981fi
14982echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14983echo "${ECHO_T}$ac_cv_type_void_p" >&6
14984
14985echo "$as_me:$LINENO: checking size of void *" >&5
14986echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14987if test "${ac_cv_sizeof_void_p+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 if test "$ac_cv_type_void_p" = yes; then
14991 # The cast to unsigned long works around a bug in the HP C Compiler
14992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994 # This bug is HP SR number 8606223364.
14995 if test "$cross_compiling" = yes; then
14996 # Depending upon the size, compute the lo and hi bounds.
14997cat >conftest.$ac_ext <<_ACEOF
14998/* confdefs.h. */
14999_ACEOF
15000cat confdefs.h >>conftest.$ac_ext
15001cat >>conftest.$ac_ext <<_ACEOF
15002/* end confdefs.h. */
15003$ac_includes_default
15004int
15005main ()
15006{
15007static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15008test_array [0] = 0
15009
15010 ;
15011 return 0;
15012}
15013_ACEOF
15014rm -f conftest.$ac_objext
15015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag"
15024 || test ! -s conftest.err'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; } &&
15030 { ac_try='test -s conftest.$ac_objext'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15036 ac_lo=0 ac_mid=0
15037 while :; do
15038 cat >conftest.$ac_ext <<_ACEOF
15039/* confdefs.h. */
15040_ACEOF
15041cat confdefs.h >>conftest.$ac_ext
15042cat >>conftest.$ac_ext <<_ACEOF
15043/* end confdefs.h. */
15044$ac_includes_default
15045int
15046main ()
15047{
15048static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15049test_array [0] = 0
15050
15051 ;
15052 return 0;
15053}
15054_ACEOF
15055rm -f conftest.$ac_objext
15056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 (eval $ac_compile) 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest.$ac_objext'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 ac_hi=$ac_mid; break
15078else
15079 echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5
15081
15082ac_lo=`expr $ac_mid + 1`
15083 if test $ac_lo -le $ac_mid; then
15084 ac_lo= ac_hi=
15085 break
15086 fi
15087 ac_mid=`expr 2 '*' $ac_mid + 1`
15088fi
15089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15090 done
15091else
15092 echo "$as_me: failed program was:" >&5
15093sed 's/^/| /' conftest.$ac_ext >&5
15094
15095cat >conftest.$ac_ext <<_ACEOF
15096/* confdefs.h. */
15097_ACEOF
15098cat confdefs.h >>conftest.$ac_ext
15099cat >>conftest.$ac_ext <<_ACEOF
15100/* end confdefs.h. */
15101$ac_includes_default
15102int
15103main ()
15104{
15105static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15106test_array [0] = 0
15107
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest.$ac_objext
15113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15114 (eval $ac_compile) 2>conftest.er1
15115 ac_status=$?
15116 grep -v '^ *+' conftest.er1 >conftest.err
15117 rm -f conftest.er1
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -z "$ac_c_werror_flag"
15122 || test ! -s conftest.err'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; } &&
15128 { ac_try='test -s conftest.$ac_objext'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; }; then
15134 ac_hi=-1 ac_mid=-1
15135 while :; do
15136 cat >conftest.$ac_ext <<_ACEOF
15137/* confdefs.h. */
15138_ACEOF
15139cat confdefs.h >>conftest.$ac_ext
15140cat >>conftest.$ac_ext <<_ACEOF
15141/* end confdefs.h. */
15142$ac_includes_default
15143int
15144main ()
15145{
15146static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15147test_array [0] = 0
15148
15149 ;
15150 return 0;
15151}
15152_ACEOF
15153rm -f conftest.$ac_objext
15154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15155 (eval $ac_compile) 2>conftest.er1
15156 ac_status=$?
15157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
15162 { ac_try='test -z "$ac_c_werror_flag"
15163 || test ! -s conftest.err'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_lo=$ac_mid; break
15176else
15177 echo "$as_me: failed program was:" >&5
15178sed 's/^/| /' conftest.$ac_ext >&5
15179
15180ac_hi=`expr '(' $ac_mid ')' - 1`
15181 if test $ac_mid -le $ac_hi; then
15182 ac_lo= ac_hi=
15183 break
15184 fi
15185 ac_mid=`expr 2 '*' $ac_mid`
15186fi
15187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15188 done
15189else
15190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193ac_lo= ac_hi=
15194fi
15195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15196fi
15197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15198# Binary search between lo and hi bounds.
15199while test "x$ac_lo" != "x$ac_hi"; do
15200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15201 cat >conftest.$ac_ext <<_ACEOF
15202/* confdefs.h. */
15203_ACEOF
15204cat confdefs.h >>conftest.$ac_ext
15205cat >>conftest.$ac_ext <<_ACEOF
15206/* end confdefs.h. */
15207$ac_includes_default
15208int
15209main ()
15210{
15211static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15212test_array [0] = 0
15213
15214 ;
15215 return 0;
15216}
15217_ACEOF
15218rm -f conftest.$ac_objext
15219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15237 ac_status=$?
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_hi=$ac_mid
15241else
15242 echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245ac_lo=`expr '(' $ac_mid ')' + 1`
15246fi
15247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15248done
15249case $ac_lo in
15250?*) ac_cv_sizeof_void_p=$ac_lo;;
15251'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15252echo "$as_me: error: in \`$ac_pwd':" >&2;}
15253{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15254See \`config.log' for more details." >&5
15255echo "$as_me: error: cannot compute sizeof (void *), 77
15256See \`config.log' for more details." >&2;}
15257 { (exit 1); exit 1; }; }; } ;;
15258esac
15259else
15260 if test "$cross_compiling" = yes; then
15261 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15262echo "$as_me: error: in \`$ac_pwd':" >&2;}
15263{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15264See \`config.log' for more details." >&5
15265echo "$as_me: error: cannot run test program while cross compiling
15266See \`config.log' for more details." >&2;}
15267 { (exit 1); exit 1; }; }; }
15268else
15269 cat >conftest.$ac_ext <<_ACEOF
15270/* confdefs.h. */
15271_ACEOF
15272cat confdefs.h >>conftest.$ac_ext
15273cat >>conftest.$ac_ext <<_ACEOF
15274/* end confdefs.h. */
15275$ac_includes_default
15276long longval () { return (long) (sizeof (void *)); }
15277unsigned long ulongval () { return (long) (sizeof (void *)); }
15278#include <stdio.h>
15279#include <stdlib.h>
15280int
15281main ()
15282{
15283
15284 FILE *f = fopen ("conftest.val", "w");
15285 if (! f)
15286 exit (1);
15287 if (((long) (sizeof (void *))) < 0)
15288 {
15289 long i = longval ();
15290 if (i != ((long) (sizeof (void *))))
15291 exit (1);
15292 fprintf (f, "%ld\n", i);
15293 }
15294 else
15295 {
15296 unsigned long i = ulongval ();
15297 if (i != ((long) (sizeof (void *))))
15298 exit (1);
15299 fprintf (f, "%lu\n", i);
15300 }
15301 exit (ferror (f) || fclose (f) != 0);
15302
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307rm -f conftest$ac_exeext
15308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15309 (eval $ac_link) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_cv_sizeof_void_p=`cat conftest.val`
15319else
15320 echo "$as_me: program exited with status $ac_status" >&5
15321echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324( exit $ac_status )
15325{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15326echo "$as_me: error: in \`$ac_pwd':" >&2;}
15327{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15328See \`config.log' for more details." >&5
15329echo "$as_me: error: cannot compute sizeof (void *), 77
15330See \`config.log' for more details." >&2;}
15331 { (exit 1); exit 1; }; }; }
15332fi
15333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15334fi
15335fi
15336rm -f conftest.val
15337else
15338 ac_cv_sizeof_void_p=0
15339fi
15340fi
15341echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15342echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15343cat >>confdefs.h <<_ACEOF
15344#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15345_ACEOF
15346
15347 ;;
15348esac
15349
15350# Lacking an uint64_t? Test size of long
15351case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15352 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15353echo $ECHO_N "checking for long... $ECHO_C" >&6
15354if test "${ac_cv_type_long+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356else
15357 cat >conftest.$ac_ext <<_ACEOF
15358/* confdefs.h. */
15359_ACEOF
15360cat confdefs.h >>conftest.$ac_ext
15361cat >>conftest.$ac_ext <<_ACEOF
15362/* end confdefs.h. */
15363$ac_includes_default
15364int
15365main ()
15366{
15367if ((long *) 0)
15368 return 0;
15369if (sizeof (long))
15370 return 0;
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_cv_type_long=yes
15398else
15399 echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
15402ac_cv_type_long=no
15403fi
15404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405fi
15406echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15407echo "${ECHO_T}$ac_cv_type_long" >&6
15408
15409echo "$as_me:$LINENO: checking size of long" >&5
15410echo $ECHO_N "checking size of long... $ECHO_C" >&6
15411if test "${ac_cv_sizeof_long+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413else
15414 if test "$ac_cv_type_long" = yes; then
15415 # The cast to unsigned long works around a bug in the HP C Compiler
15416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15418 # This bug is HP SR number 8606223364.
15419 if test "$cross_compiling" = yes; then
15420 # Depending upon the size, compute the lo and hi bounds.
15421cat >conftest.$ac_ext <<_ACEOF
15422/* confdefs.h. */
15423_ACEOF
15424cat confdefs.h >>conftest.$ac_ext
15425cat >>conftest.$ac_ext <<_ACEOF
15426/* end confdefs.h. */
15427$ac_includes_default
15428int
15429main ()
15430{
15431static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15432test_array [0] = 0
15433
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_lo=0 ac_mid=0
15461 while :; do
15462 cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468$ac_includes_default
15469int
15470main ()
15471{
15472static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15473test_array [0] = 0
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag"
15489 || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_hi=$ac_mid; break
15502else
15503 echo "$as_me: failed program was:" >&5
15504sed 's/^/| /' conftest.$ac_ext >&5
15505
15506ac_lo=`expr $ac_mid + 1`
15507 if test $ac_lo -le $ac_mid; then
15508 ac_lo= ac_hi=
15509 break
15510 fi
15511 ac_mid=`expr 2 '*' $ac_mid + 1`
15512fi
15513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 done
15515else
15516 echo "$as_me: failed program was:" >&5
15517sed 's/^/| /' conftest.$ac_ext >&5
15518
15519cat >conftest.$ac_ext <<_ACEOF
15520/* confdefs.h. */
15521_ACEOF
15522cat confdefs.h >>conftest.$ac_ext
15523cat >>conftest.$ac_ext <<_ACEOF
15524/* end confdefs.h. */
15525$ac_includes_default
15526int
15527main ()
15528{
15529static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15530test_array [0] = 0
15531
15532 ;
15533 return 0;
15534}
15535_ACEOF
15536rm -f conftest.$ac_objext
15537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest.$ac_objext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_hi=-1 ac_mid=-1
15559 while :; do
15560 cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
15566$ac_includes_default
15567int
15568main ()
15569{
15570static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15571test_array [0] = 0
15572
15573 ;
15574 return 0;
15575}
15576_ACEOF
15577rm -f conftest.$ac_objext
15578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_lo=$ac_mid; break
15600else
15601 echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604ac_hi=`expr '(' $ac_mid ')' - 1`
15605 if test $ac_mid -le $ac_hi; then
15606 ac_lo= ac_hi=
15607 break
15608 fi
15609 ac_mid=`expr 2 '*' $ac_mid`
15610fi
15611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 done
15613else
15614 echo "$as_me: failed program was:" >&5
15615sed 's/^/| /' conftest.$ac_ext >&5
15616
15617ac_lo= ac_hi=
15618fi
15619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15620fi
15621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15622# Binary search between lo and hi bounds.
15623while test "x$ac_lo" != "x$ac_hi"; do
15624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15625 cat >conftest.$ac_ext <<_ACEOF
15626/* confdefs.h. */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h. */
15631$ac_includes_default
15632int
15633main ()
15634{
15635static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15636test_array [0] = 0
15637
15638 ;
15639 return 0;
15640}
15641_ACEOF
15642rm -f conftest.$ac_objext
15643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag"
15652 || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15664 ac_hi=$ac_mid
15665else
15666 echo "$as_me: failed program was:" >&5
15667sed 's/^/| /' conftest.$ac_ext >&5
15668
15669ac_lo=`expr '(' $ac_mid ')' + 1`
15670fi
15671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672done
15673case $ac_lo in
15674?*) ac_cv_sizeof_long=$ac_lo;;
15675'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15676echo "$as_me: error: in \`$ac_pwd':" >&2;}
15677{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15678See \`config.log' for more details." >&5
15679echo "$as_me: error: cannot compute sizeof (long), 77
15680See \`config.log' for more details." >&2;}
15681 { (exit 1); exit 1; }; }; } ;;
15682esac
15683else
15684 if test "$cross_compiling" = yes; then
15685 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15686echo "$as_me: error: in \`$ac_pwd':" >&2;}
15687{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15688See \`config.log' for more details." >&5
15689echo "$as_me: error: cannot run test program while cross compiling
15690See \`config.log' for more details." >&2;}
15691 { (exit 1); exit 1; }; }; }
15692else
15693 cat >conftest.$ac_ext <<_ACEOF
15694/* confdefs.h. */
15695_ACEOF
15696cat confdefs.h >>conftest.$ac_ext
15697cat >>conftest.$ac_ext <<_ACEOF
15698/* end confdefs.h. */
15699$ac_includes_default
15700long longval () { return (long) (sizeof (long)); }
15701unsigned long ulongval () { return (long) (sizeof (long)); }
15702#include <stdio.h>
15703#include <stdlib.h>
15704int
15705main ()
15706{
15707
15708 FILE *f = fopen ("conftest.val", "w");
15709 if (! f)
15710 exit (1);
15711 if (((long) (sizeof (long))) < 0)
15712 {
15713 long i = longval ();
15714 if (i != ((long) (sizeof (long))))
15715 exit (1);
15716 fprintf (f, "%ld\n", i);
15717 }
15718 else
15719 {
15720 unsigned long i = ulongval ();
15721 if (i != ((long) (sizeof (long))))
15722 exit (1);
15723 fprintf (f, "%lu\n", i);
15724 }
15725 exit (ferror (f) || fclose (f) != 0);
15726
15727 ;
15728 return 0;
15729}
15730_ACEOF
15731rm -f conftest$ac_exeext
15732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15733 (eval $ac_link) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_cv_sizeof_long=`cat conftest.val`
15743else
15744 echo "$as_me: program exited with status $ac_status" >&5
15745echo "$as_me: failed program was:" >&5
15746sed 's/^/| /' conftest.$ac_ext >&5
15747
15748( exit $ac_status )
15749{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15750echo "$as_me: error: in \`$ac_pwd':" >&2;}
15751{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15752See \`config.log' for more details." >&5
15753echo "$as_me: error: cannot compute sizeof (long), 77
15754See \`config.log' for more details." >&2;}
15755 { (exit 1); exit 1; }; }; }
15756fi
15757rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15758fi
15759fi
15760rm -f conftest.val
15761else
15762 ac_cv_sizeof_long=0
15763fi
15764fi
15765echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15766echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15767cat >>confdefs.h <<_ACEOF
15768#define SIZEOF_LONG $ac_cv_sizeof_long
15769_ACEOF
15770
15771 ;;
15772esac
15773
15774if test $acx_cv_header_stdint = stddef.h; then
15775 # Lacking a good header? Test size of everything and deduce all types.
15776 echo "$as_me:$LINENO: checking for int" >&5
15777echo $ECHO_N "checking for int... $ECHO_C" >&6
15778if test "${ac_cv_type_int+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780else
15781 cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787$ac_includes_default
15788int
15789main ()
15790{
15791if ((int *) 0)
15792 return 0;
15793if (sizeof (int))
15794 return 0;
15795 ;
15796 return 0;
15797}
15798_ACEOF
15799rm -f conftest.$ac_objext
15800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -z "$ac_c_werror_flag"
15809 || test ! -s conftest.err'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; } &&
15815 { ac_try='test -s conftest.$ac_objext'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ac_cv_type_int=yes
15822else
15823 echo "$as_me: failed program was:" >&5
15824sed 's/^/| /' conftest.$ac_ext >&5
15825
15826ac_cv_type_int=no
15827fi
15828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15829fi
15830echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15831echo "${ECHO_T}$ac_cv_type_int" >&6
15832
15833echo "$as_me:$LINENO: checking size of int" >&5
15834echo $ECHO_N "checking size of int... $ECHO_C" >&6
15835if test "${ac_cv_sizeof_int+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837else
15838 if test "$ac_cv_type_int" = yes; then
15839 # The cast to unsigned long works around a bug in the HP C Compiler
15840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15842 # This bug is HP SR number 8606223364.
15843 if test "$cross_compiling" = yes; then
15844 # Depending upon the size, compute the lo and hi bounds.
15845cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851$ac_includes_default
15852int
15853main ()
15854{
15855static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15856test_array [0] = 0
15857
15858 ;
15859 return 0;
15860}
15861_ACEOF
15862rm -f conftest.$ac_objext
15863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>conftest.er1
15865 ac_status=$?
15866 grep -v '^ *+' conftest.er1 >conftest.err
15867 rm -f conftest.er1
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_lo=0 ac_mid=0
15885 while :; do
15886 cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892$ac_includes_default
15893int
15894main ()
15895{
15896static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15897test_array [0] = 0
15898
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
15912 { ac_try='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_hi=$ac_mid; break
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930ac_lo=`expr $ac_mid + 1`
15931 if test $ac_lo -le $ac_mid; then
15932 ac_lo= ac_hi=
15933 break
15934 fi
15935 ac_mid=`expr 2 '*' $ac_mid + 1`
15936fi
15937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15938 done
15939else
15940 echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
15942
15943cat >conftest.$ac_ext <<_ACEOF
15944/* confdefs.h. */
15945_ACEOF
15946cat confdefs.h >>conftest.$ac_ext
15947cat >>conftest.$ac_ext <<_ACEOF
15948/* end confdefs.h. */
15949$ac_includes_default
15950int
15951main ()
15952{
15953static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15954test_array [0] = 0
15955
15956 ;
15957 return 0;
15958}
15959_ACEOF
15960rm -f conftest.$ac_objext
15961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15962 (eval $ac_compile) 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } &&
15969 { ac_try='test -z "$ac_c_werror_flag"
15970 || test ! -s conftest.err'
15971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972 (eval $ac_try) 2>&5
15973 ac_status=$?
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); }; } &&
15976 { ac_try='test -s conftest.$ac_objext'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15979 ac_status=$?
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_hi=-1 ac_mid=-1
15983 while :; do
15984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990$ac_includes_default
15991int
15992main ()
15993{
15994static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15995test_array [0] = 0
15996
15997 ;
15998 return 0;
15999}
16000_ACEOF
16001rm -f conftest.$ac_objext
16002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16003 (eval $ac_compile) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_c_werror_flag"
16011 || test ! -s conftest.err'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16014 ac_status=$?
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16020 ac_status=$?
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 ac_lo=$ac_mid; break
16024else
16025 echo "$as_me: failed program was:" >&5
16026sed 's/^/| /' conftest.$ac_ext >&5
16027
16028ac_hi=`expr '(' $ac_mid ')' - 1`
16029 if test $ac_mid -le $ac_hi; then
16030 ac_lo= ac_hi=
16031 break
16032 fi
16033 ac_mid=`expr 2 '*' $ac_mid`
16034fi
16035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16036 done
16037else
16038 echo "$as_me: failed program was:" >&5
16039sed 's/^/| /' conftest.$ac_ext >&5
16040
16041ac_lo= ac_hi=
16042fi
16043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16044fi
16045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16046# Binary search between lo and hi bounds.
16047while test "x$ac_lo" != "x$ac_hi"; do
16048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16049 cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055$ac_includes_default
16056int
16057main ()
16058{
16059static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16060test_array [0] = 0
16061
16062 ;
16063 return 0;
16064}
16065_ACEOF
16066rm -f conftest.$ac_objext
16067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16068 (eval $ac_compile) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_hi=$ac_mid
16089else
16090 echo "$as_me: failed program was:" >&5
16091sed 's/^/| /' conftest.$ac_ext >&5
16092
16093ac_lo=`expr '(' $ac_mid ')' + 1`
16094fi
16095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16096done
16097case $ac_lo in
16098?*) ac_cv_sizeof_int=$ac_lo;;
16099'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16100echo "$as_me: error: in \`$ac_pwd':" >&2;}
16101{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16102See \`config.log' for more details." >&5
16103echo "$as_me: error: cannot compute sizeof (int), 77
16104See \`config.log' for more details." >&2;}
16105 { (exit 1); exit 1; }; }; } ;;
16106esac
16107else
16108 if test "$cross_compiling" = yes; then
16109 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16110echo "$as_me: error: in \`$ac_pwd':" >&2;}
16111{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16112See \`config.log' for more details." >&5
16113echo "$as_me: error: cannot run test program while cross compiling
16114See \`config.log' for more details." >&2;}
16115 { (exit 1); exit 1; }; }; }
16116else
16117 cat >conftest.$ac_ext <<_ACEOF
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
16123$ac_includes_default
16124long longval () { return (long) (sizeof (int)); }
16125unsigned long ulongval () { return (long) (sizeof (int)); }
16126#include <stdio.h>
16127#include <stdlib.h>
16128int
16129main ()
16130{
16131
16132 FILE *f = fopen ("conftest.val", "w");
16133 if (! f)
16134 exit (1);
16135 if (((long) (sizeof (int))) < 0)
16136 {
16137 long i = longval ();
16138 if (i != ((long) (sizeof (int))))
16139 exit (1);
16140 fprintf (f, "%ld\n", i);
16141 }
16142 else
16143 {
16144 unsigned long i = ulongval ();
16145 if (i != ((long) (sizeof (int))))
16146 exit (1);
16147 fprintf (f, "%lu\n", i);
16148 }
16149 exit (ferror (f) || fclose (f) != 0);
16150
16151 ;
16152 return 0;
16153}
16154_ACEOF
16155rm -f conftest$ac_exeext
16156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157 (eval $ac_link) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_sizeof_int=`cat conftest.val`
16167else
16168 echo "$as_me: program exited with status $ac_status" >&5
16169echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172( exit $ac_status )
16173{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16174echo "$as_me: error: in \`$ac_pwd':" >&2;}
16175{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16176See \`config.log' for more details." >&5
16177echo "$as_me: error: cannot compute sizeof (int), 77
16178See \`config.log' for more details." >&2;}
16179 { (exit 1); exit 1; }; }; }
16180fi
16181rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16182fi
16183fi
16184rm -f conftest.val
16185else
16186 ac_cv_sizeof_int=0
16187fi
16188fi
16189echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16190echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16191cat >>confdefs.h <<_ACEOF
16192#define SIZEOF_INT $ac_cv_sizeof_int
16193_ACEOF
16194
16195
16196 echo "$as_me:$LINENO: checking for short" >&5
16197echo $ECHO_N "checking for short... $ECHO_C" >&6
16198if test "${ac_cv_type_short+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200else
16201 cat >conftest.$ac_ext <<_ACEOF
16202/* confdefs.h. */
16203_ACEOF
16204cat confdefs.h >>conftest.$ac_ext
16205cat >>conftest.$ac_ext <<_ACEOF
16206/* end confdefs.h. */
16207$ac_includes_default
16208int
16209main ()
16210{
16211if ((short *) 0)
16212 return 0;
16213if (sizeof (short))
16214 return 0;
16215 ;
16216 return 0;
16217}
16218_ACEOF
16219rm -f conftest.$ac_objext
16220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221 (eval $ac_compile) 2>conftest.er1
16222 ac_status=$?
16223 grep -v '^ *+' conftest.er1 >conftest.err
16224 rm -f conftest.er1
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag"
16229 || test ! -s conftest.err'
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_type_short=yes
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246ac_cv_type_short=no
16247fi
16248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249fi
16250echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16251echo "${ECHO_T}$ac_cv_type_short" >&6
16252
16253echo "$as_me:$LINENO: checking size of short" >&5
16254echo $ECHO_N "checking size of short... $ECHO_C" >&6
16255if test "${ac_cv_sizeof_short+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16257else
16258 if test "$ac_cv_type_short" = yes; then
16259 # The cast to unsigned long works around a bug in the HP C Compiler
16260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16262 # This bug is HP SR number 8606223364.
16263 if test "$cross_compiling" = yes; then
16264 # Depending upon the size, compute the lo and hi bounds.
16265cat >conftest.$ac_ext <<_ACEOF
16266/* confdefs.h. */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h. */
16271$ac_includes_default
16272int
16273main ()
16274{
16275static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16276test_array [0] = 0
16277
16278 ;
16279 return 0;
16280}
16281_ACEOF
16282rm -f conftest.$ac_objext
16283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16284 (eval $ac_compile) 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest.$ac_objext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_lo=0 ac_mid=0
16305 while :; do
16306 cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312$ac_includes_default
16313int
16314main ()
16315{
16316static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16317test_array [0] = 0
16318
16319 ;
16320 return 0;
16321}
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16325 (eval $ac_compile) 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
16332 { ac_try='test -z "$ac_c_werror_flag"
16333 || test ! -s conftest.err'
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_hi=$ac_mid; break
16346else
16347 echo "$as_me: failed program was:" >&5
16348sed 's/^/| /' conftest.$ac_ext >&5
16349
16350ac_lo=`expr $ac_mid + 1`
16351 if test $ac_lo -le $ac_mid; then
16352 ac_lo= ac_hi=
16353 break
16354 fi
16355 ac_mid=`expr 2 '*' $ac_mid + 1`
16356fi
16357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16358 done
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363cat >conftest.$ac_ext <<_ACEOF
16364/* confdefs.h. */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h. */
16369$ac_includes_default
16370int
16371main ()
16372{
16373static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16374test_array [0] = 0
16375
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380rm -f conftest.$ac_objext
16381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16382 (eval $ac_compile) 2>conftest.er1
16383 ac_status=$?
16384 grep -v '^ *+' conftest.er1 >conftest.err
16385 rm -f conftest.er1
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_hi=-1 ac_mid=-1
16403 while :; do
16404 cat >conftest.$ac_ext <<_ACEOF
16405/* confdefs.h. */
16406_ACEOF
16407cat confdefs.h >>conftest.$ac_ext
16408cat >>conftest.$ac_ext <<_ACEOF
16409/* end confdefs.h. */
16410$ac_includes_default
16411int
16412main ()
16413{
16414static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16415test_array [0] = 0
16416
16417 ;
16418 return 0;
16419}
16420_ACEOF
16421rm -f conftest.$ac_objext
16422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16423 (eval $ac_compile) 2>conftest.er1
16424 ac_status=$?
16425 grep -v '^ *+' conftest.er1 >conftest.err
16426 rm -f conftest.er1
16427 cat conftest.err >&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -z "$ac_c_werror_flag"
16431 || test ! -s conftest.err'
16432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16433 (eval $ac_try) 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_lo=$ac_mid; break
16444else
16445 echo "$as_me: failed program was:" >&5
16446sed 's/^/| /' conftest.$ac_ext >&5
16447
16448ac_hi=`expr '(' $ac_mid ')' - 1`
16449 if test $ac_mid -le $ac_hi; then
16450 ac_lo= ac_hi=
16451 break
16452 fi
16453 ac_mid=`expr 2 '*' $ac_mid`
16454fi
16455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16456 done
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461ac_lo= ac_hi=
16462fi
16463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16464fi
16465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16466# Binary search between lo and hi bounds.
16467while test "x$ac_lo" != "x$ac_hi"; do
16468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16469 cat >conftest.$ac_ext <<_ACEOF
16470/* confdefs.h. */
16471_ACEOF
16472cat confdefs.h >>conftest.$ac_ext
16473cat >>conftest.$ac_ext <<_ACEOF
16474/* end confdefs.h. */
16475$ac_includes_default
16476int
16477main ()
16478{
16479static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16480test_array [0] = 0
16481
16482 ;
16483 return 0;
16484}
16485_ACEOF
16486rm -f conftest.$ac_objext
16487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_hi=$ac_mid
16509else
16510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
16513ac_lo=`expr '(' $ac_mid ')' + 1`
16514fi
16515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516done
16517case $ac_lo in
16518?*) ac_cv_sizeof_short=$ac_lo;;
16519'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16520echo "$as_me: error: in \`$ac_pwd':" >&2;}
16521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16522See \`config.log' for more details." >&5
16523echo "$as_me: error: cannot compute sizeof (short), 77
16524See \`config.log' for more details." >&2;}
16525 { (exit 1); exit 1; }; }; } ;;
16526esac
16527else
16528 if test "$cross_compiling" = yes; then
16529 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16530echo "$as_me: error: in \`$ac_pwd':" >&2;}
16531{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16532See \`config.log' for more details." >&5
16533echo "$as_me: error: cannot run test program while cross compiling
16534See \`config.log' for more details." >&2;}
16535 { (exit 1); exit 1; }; }; }
16536else
16537 cat >conftest.$ac_ext <<_ACEOF
16538/* confdefs.h. */
16539_ACEOF
16540cat confdefs.h >>conftest.$ac_ext
16541cat >>conftest.$ac_ext <<_ACEOF
16542/* end confdefs.h. */
16543$ac_includes_default
16544long longval () { return (long) (sizeof (short)); }
16545unsigned long ulongval () { return (long) (sizeof (short)); }
16546#include <stdio.h>
16547#include <stdlib.h>
16548int
16549main ()
16550{
16551
16552 FILE *f = fopen ("conftest.val", "w");
16553 if (! f)
16554 exit (1);
16555 if (((long) (sizeof (short))) < 0)
16556 {
16557 long i = longval ();
16558 if (i != ((long) (sizeof (short))))
16559 exit (1);
16560 fprintf (f, "%ld\n", i);
16561 }
16562 else
16563 {
16564 unsigned long i = ulongval ();
16565 if (i != ((long) (sizeof (short))))
16566 exit (1);
16567 fprintf (f, "%lu\n", i);
16568 }
16569 exit (ferror (f) || fclose (f) != 0);
16570
16571 ;
16572 return 0;
16573}
16574_ACEOF
16575rm -f conftest$ac_exeext
16576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_cv_sizeof_short=`cat conftest.val`
16587else
16588 echo "$as_me: program exited with status $ac_status" >&5
16589echo "$as_me: failed program was:" >&5
16590sed 's/^/| /' conftest.$ac_ext >&5
16591
16592( exit $ac_status )
16593{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16594echo "$as_me: error: in \`$ac_pwd':" >&2;}
16595{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16596See \`config.log' for more details." >&5
16597echo "$as_me: error: cannot compute sizeof (short), 77
16598See \`config.log' for more details." >&2;}
16599 { (exit 1); exit 1; }; }; }
16600fi
16601rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16602fi
16603fi
16604rm -f conftest.val
16605else
16606 ac_cv_sizeof_short=0
16607fi
16608fi
16609echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16610echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16611cat >>confdefs.h <<_ACEOF
16612#define SIZEOF_SHORT $ac_cv_sizeof_short
16613_ACEOF
16614
16615
16616 echo "$as_me:$LINENO: checking for char" >&5
16617echo $ECHO_N "checking for char... $ECHO_C" >&6
16618if test "${ac_cv_type_char+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620else
16621 cat >conftest.$ac_ext <<_ACEOF
16622/* confdefs.h. */
16623_ACEOF
16624cat confdefs.h >>conftest.$ac_ext
16625cat >>conftest.$ac_ext <<_ACEOF
16626/* end confdefs.h. */
16627$ac_includes_default
16628int
16629main ()
16630{
16631if ((char *) 0)
16632 return 0;
16633if (sizeof (char))
16634 return 0;
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext
16640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16641 (eval $ac_compile) 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag"
16649 || test ! -s conftest.err'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_type_char=yes
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666ac_cv_type_char=no
16667fi
16668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16669fi
16670echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16671echo "${ECHO_T}$ac_cv_type_char" >&6
16672
16673echo "$as_me:$LINENO: checking size of char" >&5
16674echo $ECHO_N "checking size of char... $ECHO_C" >&6
16675if test "${ac_cv_sizeof_char+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678 if test "$ac_cv_type_char" = yes; then
16679 # The cast to unsigned long works around a bug in the HP C Compiler
16680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16682 # This bug is HP SR number 8606223364.
16683 if test "$cross_compiling" = yes; then
16684 # Depending upon the size, compute the lo and hi bounds.
16685cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691$ac_includes_default
16692int
16693main ()
16694{
16695static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16696test_array [0] = 0
16697
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext
16703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_lo=0 ac_mid=0
16725 while :; do
16726 cat >conftest.$ac_ext <<_ACEOF
16727/* confdefs.h. */
16728_ACEOF
16729cat confdefs.h >>conftest.$ac_ext
16730cat >>conftest.$ac_ext <<_ACEOF
16731/* end confdefs.h. */
16732$ac_includes_default
16733int
16734main ()
16735{
16736static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16737test_array [0] = 0
16738
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
16744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag"
16753 || test ! -s conftest.err'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest.$ac_objext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 ac_hi=$ac_mid; break
16766else
16767 echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770ac_lo=`expr $ac_mid + 1`
16771 if test $ac_lo -le $ac_mid; then
16772 ac_lo= ac_hi=
16773 break
16774 fi
16775 ac_mid=`expr 2 '*' $ac_mid + 1`
16776fi
16777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16778 done
16779else
16780 echo "$as_me: failed program was:" >&5
16781sed 's/^/| /' conftest.$ac_ext >&5
16782
16783cat >conftest.$ac_ext <<_ACEOF
16784/* confdefs.h. */
16785_ACEOF
16786cat confdefs.h >>conftest.$ac_ext
16787cat >>conftest.$ac_ext <<_ACEOF
16788/* end confdefs.h. */
16789$ac_includes_default
16790int
16791main ()
16792{
16793static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16794test_array [0] = 0
16795
16796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext
16801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16802 (eval $ac_compile) 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag"
16810 || test ! -s conftest.err'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_hi=-1 ac_mid=-1
16823 while :; do
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830$ac_includes_default
16831int
16832main ()
16833{
16834static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16835test_array [0] = 0
16836
16837 ;
16838 return 0;
16839}
16840_ACEOF
16841rm -f conftest.$ac_objext
16842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16843 (eval $ac_compile) 2>conftest.er1
16844 ac_status=$?
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -z "$ac_c_werror_flag"
16851 || test ! -s conftest.err'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; } &&
16857 { ac_try='test -s conftest.$ac_objext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_lo=$ac_mid; break
16864else
16865 echo "$as_me: failed program was:" >&5
16866sed 's/^/| /' conftest.$ac_ext >&5
16867
16868ac_hi=`expr '(' $ac_mid ')' - 1`
16869 if test $ac_mid -le $ac_hi; then
16870 ac_lo= ac_hi=
16871 break
16872 fi
16873 ac_mid=`expr 2 '*' $ac_mid`
16874fi
16875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 done
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881ac_lo= ac_hi=
16882fi
16883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16884fi
16885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16886# Binary search between lo and hi bounds.
16887while test "x$ac_lo" != "x$ac_hi"; do
16888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16889 cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896int
16897main ()
16898{
16899static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16900test_array [0] = 0
16901
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906rm -f conftest.$ac_objext
16907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16908 (eval $ac_compile) 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try='test -z "$ac_c_werror_flag"
16916 || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try='test -s conftest.$ac_objext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_hi=$ac_mid
16929else
16930 echo "$as_me: failed program was:" >&5
16931sed 's/^/| /' conftest.$ac_ext >&5
16932
16933ac_lo=`expr '(' $ac_mid ')' + 1`
16934fi
16935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16936done
16937case $ac_lo in
16938?*) ac_cv_sizeof_char=$ac_lo;;
16939'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16940echo "$as_me: error: in \`$ac_pwd':" >&2;}
16941{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16942See \`config.log' for more details." >&5
16943echo "$as_me: error: cannot compute sizeof (char), 77
16944See \`config.log' for more details." >&2;}
16945 { (exit 1); exit 1; }; }; } ;;
16946esac
16947else
16948 if test "$cross_compiling" = yes; then
16949 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16950echo "$as_me: error: in \`$ac_pwd':" >&2;}
16951{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16952See \`config.log' for more details." >&5
16953echo "$as_me: error: cannot run test program while cross compiling
16954See \`config.log' for more details." >&2;}
16955 { (exit 1); exit 1; }; }; }
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964long longval () { return (long) (sizeof (char)); }
16965unsigned long ulongval () { return (long) (sizeof (char)); }
16966#include <stdio.h>
16967#include <stdlib.h>
16968int
16969main ()
16970{
16971
16972 FILE *f = fopen ("conftest.val", "w");
16973 if (! f)
16974 exit (1);
16975 if (((long) (sizeof (char))) < 0)
16976 {
16977 long i = longval ();
16978 if (i != ((long) (sizeof (char))))
16979 exit (1);
16980 fprintf (f, "%ld\n", i);
16981 }
16982 else
16983 {
16984 unsigned long i = ulongval ();
16985 if (i != ((long) (sizeof (char))))
16986 exit (1);
16987 fprintf (f, "%lu\n", i);
16988 }
16989 exit (ferror (f) || fclose (f) != 0);
16990
16991 ;
16992 return 0;
16993}
16994_ACEOF
16995rm -f conftest$ac_exeext
16996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16997 (eval $ac_link) 2>&5
16998 ac_status=$?
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_sizeof_char=`cat conftest.val`
17007else
17008 echo "$as_me: program exited with status $ac_status" >&5
17009echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012( exit $ac_status )
17013{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17014echo "$as_me: error: in \`$ac_pwd':" >&2;}
17015{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17016See \`config.log' for more details." >&5
17017echo "$as_me: error: cannot compute sizeof (char), 77
17018See \`config.log' for more details." >&2;}
17019 { (exit 1); exit 1; }; }; }
17020fi
17021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17022fi
17023fi
17024rm -f conftest.val
17025else
17026 ac_cv_sizeof_char=0
17027fi
17028fi
17029echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17030echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17031cat >>confdefs.h <<_ACEOF
17032#define SIZEOF_CHAR $ac_cv_sizeof_char
17033_ACEOF
17034
17035
17036
17037 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17038echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17039 case "$ac_cv_sizeof_char" in
17040 1) acx_cv_type_int8_t=char ;;
17041 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17042echo "$as_me: error: no 8-bit type" >&2;}
17043 { (exit please report a bug); exit please report a bug; }; }
17044 esac
17045 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17046echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17047
17048 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17049echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17050 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17051 2:*) acx_cv_type_int16_t=int ;;
17052 *:2) acx_cv_type_int16_t=short ;;
17053 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17054echo "$as_me: error: no 16-bit type" >&2;}
17055 { (exit please report a bug); exit please report a bug; }; }
17056 esac
17057 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17058echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17059
17060 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17061echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17062 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17063 4:*) acx_cv_type_int32_t=int ;;
17064 *:4) acx_cv_type_int32_t=long ;;
17065 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17066echo "$as_me: error: no 32-bit type" >&2;}
17067 { (exit please report a bug); exit please report a bug; }; }
17068 esac
17069 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17070echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17071fi
17072
17073# These tests are here to make the output prettier
17074
17075if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17076 case "$ac_cv_sizeof_long" in
17077 8) acx_cv_type_int64_t=long ;;
17078 esac
17079 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17080echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17081 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17082echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17083fi
17084
17085# Now we can use the above types
17086
17087if test "$ac_cv_type_uintptr_t" != yes; then
17088 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17089echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17090 case $ac_cv_sizeof_void_p in
17091 2) acx_cv_type_intptr_t=int16_t ;;
17092 4) acx_cv_type_intptr_t=int32_t ;;
17093 8) acx_cv_type_intptr_t=int64_t ;;
17094 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17095echo "$as_me: error: no equivalent for intptr_t" >&2;}
17096 { (exit please report a bug); exit please report a bug; }; }
17097 esac
17098 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17099echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17100fi
17101
17102# ----------------- done all checks, emit header -------------
17103 ac_config_commands="$ac_config_commands bfd_stdint.h"
17104
17105
17106
17107echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17108echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17109if test "${ac_cv_header_time+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118#include <sys/types.h>
17119#include <sys/time.h>
17120#include <time.h>
17121
17122int
17123main ()
17124{
17125if ((struct tm *) 0)
17126return 0;
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17133 (eval $ac_compile) 2>conftest.er1
17134 ac_status=$?
17135 grep -v '^ *+' conftest.er1 >conftest.err
17136 rm -f conftest.er1
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try='test -z "$ac_c_werror_flag"
17141 || test ! -s conftest.err'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_header_time=yes
17154else
17155 echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158ac_cv_header_time=no
17159fi
17160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17161fi
17162echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17163echo "${ECHO_T}$ac_cv_header_time" >&6
17164if test $ac_cv_header_time = yes; then
17165
17166cat >>confdefs.h <<\_ACEOF
17167#define TIME_WITH_SYS_TIME 1
17168_ACEOF
17169
17170fi
17171
17172
17173
17174
17175
17176
17177ac_header_dirent=no
17178for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17179 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17180echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17181echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17182if eval "test \"\${$as_ac_Header+set}\" = set"; then
17183 echo $ECHO_N "(cached) $ECHO_C" >&6
17184else
17185 cat >conftest.$ac_ext <<_ACEOF
17186/* confdefs.h. */
17187_ACEOF
17188cat confdefs.h >>conftest.$ac_ext
17189cat >>conftest.$ac_ext <<_ACEOF
17190/* end confdefs.h. */
17191#include <sys/types.h>
17192#include <$ac_hdr>
17193
17194int
17195main ()
17196{
17197if ((DIR *) 0)
17198return 0;
17199 ;
17200 return 0;
17201}
17202_ACEOF
17203rm -f conftest.$ac_objext
17204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17205 (eval $ac_compile) 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } &&
17212 { ac_try='test -z "$ac_c_werror_flag"
17213 || test ! -s conftest.err'
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_Header=yes"
17226else
17227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230eval "$as_ac_Header=no"
17231fi
17232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17233fi
17234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17236if test `eval echo '${'$as_ac_Header'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17239_ACEOF
17240
17241ac_header_dirent=$ac_hdr; break
17242fi
17243
17244done
17245# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17246if test $ac_header_dirent = dirent.h; then
17247 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17248echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17249if test "${ac_cv_search_opendir+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17251else
17252 ac_func_search_save_LIBS=$LIBS
17253ac_cv_search_opendir=no
17254cat >conftest.$ac_ext <<_ACEOF
17255/* confdefs.h. */
17256_ACEOF
17257cat confdefs.h >>conftest.$ac_ext
17258cat >>conftest.$ac_ext <<_ACEOF
17259/* end confdefs.h. */
17260
17261/* Override any gcc2 internal prototype to avoid an error. */
17262#ifdef __cplusplus
17263extern "C"
17264#endif
17265/* We use char because int might match the return type of a gcc2
17266 builtin and then its argument prototype would still apply. */
17267char opendir ();
17268int
17269main ()
17270{
17271opendir ();
17272 ;
17273 return 0;
17274}
17275_ACEOF
17276rm -f conftest.$ac_objext conftest$ac_exeext
17277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278 (eval $ac_link) 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag"
17286 || test ! -s conftest.err'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; }; then
17298 ac_cv_search_opendir="none required"
17299else
17300 echo "$as_me: failed program was:" >&5
17301sed 's/^/| /' conftest.$ac_ext >&5
17302
17303fi
17304rm -f conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306if test "$ac_cv_search_opendir" = no; then
17307 for ac_lib in dir; do
17308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17309 cat >conftest.$ac_ext <<_ACEOF
17310/* confdefs.h. */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h. */
17315
17316/* Override any gcc2 internal prototype to avoid an error. */
17317#ifdef __cplusplus
17318extern "C"
17319#endif
17320/* We use char because int might match the return type of a gcc2
17321 builtin and then its argument prototype would still apply. */
17322char opendir ();
17323int
17324main ()
17325{
17326opendir ();
17327 ;
17328 return 0;
17329}
17330_ACEOF
17331rm -f conftest.$ac_objext conftest$ac_exeext
17332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try='test -z "$ac_c_werror_flag"
17341 || test ! -s conftest.err'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try='test -s conftest$ac_exeext'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_search_opendir="-l$ac_lib"
17354break
17355else
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359fi
17360rm -f conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 done
17363fi
17364LIBS=$ac_func_search_save_LIBS
17365fi
17366echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17367echo "${ECHO_T}$ac_cv_search_opendir" >&6
17368if test "$ac_cv_search_opendir" != no; then
17369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17370
17371fi
17372
17373else
17374 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17375echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17376if test "${ac_cv_search_opendir+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379 ac_func_search_save_LIBS=$LIBS
17380ac_cv_search_opendir=no
17381cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
17387
17388/* Override any gcc2 internal prototype to avoid an error. */
17389#ifdef __cplusplus
17390extern "C"
17391#endif
17392/* We use char because int might match the return type of a gcc2
17393 builtin and then its argument prototype would still apply. */
17394char opendir ();
17395int
17396main ()
17397{
17398opendir ();
17399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext conftest$ac_exeext
17404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17405 (eval $ac_link) 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } &&
17412 { ac_try='test -z "$ac_c_werror_flag"
17413 || test ! -s conftest.err'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest$ac_exeext'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_search_opendir="none required"
17426else
17427 echo "$as_me: failed program was:" >&5
17428sed 's/^/| /' conftest.$ac_ext >&5
17429
17430fi
17431rm -f conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433if test "$ac_cv_search_opendir" = no; then
17434 for ac_lib in x; do
17435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17436 cat >conftest.$ac_ext <<_ACEOF
17437/* confdefs.h. */
17438_ACEOF
17439cat confdefs.h >>conftest.$ac_ext
17440cat >>conftest.$ac_ext <<_ACEOF
17441/* end confdefs.h. */
17442
17443/* Override any gcc2 internal prototype to avoid an error. */
17444#ifdef __cplusplus
17445extern "C"
17446#endif
17447/* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17449char opendir ();
17450int
17451main ()
17452{
17453opendir ();
17454 ;
17455 return 0;
17456}
17457_ACEOF
17458rm -f conftest.$ac_objext conftest$ac_exeext
17459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>conftest.er1
17461 ac_status=$?
17462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag"
17468 || test ! -s conftest.err'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; } &&
17474 { ac_try='test -s conftest$ac_exeext'
17475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17476 (eval $ac_try) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); }; }; then
17480 ac_cv_search_opendir="-l$ac_lib"
17481break
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486fi
17487rm -f conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17489 done
17490fi
17491LIBS=$ac_func_search_save_LIBS
17492fi
17493echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17494echo "${ECHO_T}$ac_cv_search_opendir" >&6
17495if test "$ac_cv_search_opendir" != no; then
17496 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17497
17498fi
17499
17500fi
17501
17502echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17503echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17504if test "${gcc_cv_header_string+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506else
17507 cat >conftest.$ac_ext <<_ACEOF
17508/* confdefs.h. */
17509_ACEOF
17510cat confdefs.h >>conftest.$ac_ext
17511cat >>conftest.$ac_ext <<_ACEOF
17512/* end confdefs.h. */
17513#include <string.h>
17514#include <strings.h>
17515int
17516main ()
17517{
17518
17519 ;
17520 return 0;
17521}
17522_ACEOF
17523rm -f conftest.$ac_objext
17524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 gcc_cv_header_string=yes
17546else
17547 echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
17550gcc_cv_header_string=no
17551fi
17552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17553fi
17554echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17555echo "${ECHO_T}$gcc_cv_header_string" >&6
17556if test $gcc_cv_header_string = yes; then
17557
17558cat >>confdefs.h <<\_ACEOF
17559#define STRING_WITH_STRINGS 1
17560_ACEOF
17561
17562fi
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17573do
17574as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17575echo "$as_me:$LINENO: checking for $ac_func" >&5
17576echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17577if eval "test \"\${$as_ac_var+set}\" = set"; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579else
17580 cat >conftest.$ac_ext <<_ACEOF
17581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
17586/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17588#define $ac_func innocuous_$ac_func
17589
17590/* System header to define __stub macros and hopefully few prototypes,
17591 which can conflict with char $ac_func (); below.
17592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17593 <limits.h> exists even on freestanding compilers. */
17594
17595#ifdef __STDC__
17596# include <limits.h>
17597#else
17598# include <assert.h>
17599#endif
17600
17601#undef $ac_func
17602
17603/* Override any gcc2 internal prototype to avoid an error. */
17604#ifdef __cplusplus
17605extern "C"
17606{
17607#endif
17608/* We use char because int might match the return type of a gcc2
17609 builtin and then its argument prototype would still apply. */
17610char $ac_func ();
17611/* The GNU C library defines this for functions which it implements
17612 to always fail with ENOSYS. Some functions are actually named
17613 something starting with __ and the normal name is an alias. */
17614#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17615choke me
17616#else
17617char (*f) () = $ac_func;
17618#endif
17619#ifdef __cplusplus
17620}
17621#endif
17622
17623int
17624main ()
17625{
17626return f != $ac_func;
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631rm -f conftest.$ac_objext conftest$ac_exeext
17632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17633 (eval $ac_link) 2>conftest.er1
17634 ac_status=$?
17635 grep -v '^ *+' conftest.er1 >conftest.err
17636 rm -f conftest.er1
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } &&
17640 { ac_try='test -z "$ac_c_werror_flag"
17641 || test ! -s conftest.err'
17642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); }; } &&
17647 { ac_try='test -s conftest$ac_exeext'
17648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17649 (eval $ac_try) 2>&5
17650 ac_status=$?
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; }; then
17653 eval "$as_ac_var=yes"
17654else
17655 echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
17658eval "$as_ac_var=no"
17659fi
17660rm -f conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662fi
17663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17665if test `eval echo '${'$as_ac_var'}'` = yes; then
17666 cat >>confdefs.h <<_ACEOF
17667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17668_ACEOF
17669
17670fi
17671done
17672
17673
17674for ac_func in strtoull
17675do
17676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17677echo "$as_me:$LINENO: checking for $ac_func" >&5
17678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17679if eval "test \"\${$as_ac_var+set}\" = set"; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
17683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
17688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17690#define $ac_func innocuous_$ac_func
17691
17692/* System header to define __stub macros and hopefully few prototypes,
17693 which can conflict with char $ac_func (); below.
17694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695 <limits.h> exists even on freestanding compilers. */
17696
17697#ifdef __STDC__
17698# include <limits.h>
17699#else
17700# include <assert.h>
17701#endif
17702
17703#undef $ac_func
17704
17705/* Override any gcc2 internal prototype to avoid an error. */
17706#ifdef __cplusplus
17707extern "C"
17708{
17709#endif
17710/* We use char because int might match the return type of a gcc2
17711 builtin and then its argument prototype would still apply. */
17712char $ac_func ();
17713/* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17717choke me
17718#else
17719char (*f) () = $ac_func;
17720#endif
17721#ifdef __cplusplus
17722}
17723#endif
17724
17725int
17726main ()
17727{
17728return f != $ac_func;
17729 ;
17730 return 0;
17731}
17732_ACEOF
17733rm -f conftest.$ac_objext conftest$ac_exeext
17734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735 (eval $ac_link) 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 eval "$as_ac_var=yes"
17756else
17757 echo "$as_me: failed program was:" >&5
17758sed 's/^/| /' conftest.$ac_ext >&5
17759
17760eval "$as_ac_var=no"
17761fi
17762rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17764fi
17765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17767if test `eval echo '${'$as_ac_var'}'` = yes; then
17768 cat >>confdefs.h <<_ACEOF
17769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17770_ACEOF
17771
17772fi
17773done
17774
17775
17776echo "$as_me:$LINENO: checking whether basename is declared" >&5
17777echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17778if test "${ac_cv_have_decl_basename+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780else
17781 cat >conftest.$ac_ext <<_ACEOF
17782/* confdefs.h. */
17783_ACEOF
17784cat confdefs.h >>conftest.$ac_ext
17785cat >>conftest.$ac_ext <<_ACEOF
17786/* end confdefs.h. */
17787$ac_includes_default
17788int
17789main ()
17790{
17791#ifndef basename
17792 char *p = (char *) basename;
17793#endif
17794
17795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest.$ac_objext
17800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17801 (eval $ac_compile) 2>conftest.er1
17802 ac_status=$?
17803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
17808 { ac_try='test -z "$ac_c_werror_flag"
17809 || test ! -s conftest.err'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest.$ac_objext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_have_decl_basename=yes
17822else
17823 echo "$as_me: failed program was:" >&5
17824sed 's/^/| /' conftest.$ac_ext >&5
17825
17826ac_cv_have_decl_basename=no
17827fi
17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17829fi
17830echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17831echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17832if test $ac_cv_have_decl_basename = yes; then
17833
17834cat >>confdefs.h <<_ACEOF
17835#define HAVE_DECL_BASENAME 1
17836_ACEOF
17837
17838
17839else
17840 cat >>confdefs.h <<_ACEOF
17841#define HAVE_DECL_BASENAME 0
17842_ACEOF
17843
17844
17845fi
17846
17847
17848echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17849echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17850if test "${ac_cv_have_decl_ftello+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852else
17853 cat >conftest.$ac_ext <<_ACEOF
17854/* confdefs.h. */
17855_ACEOF
17856cat confdefs.h >>conftest.$ac_ext
17857cat >>conftest.$ac_ext <<_ACEOF
17858/* end confdefs.h. */
17859$ac_includes_default
17860int
17861main ()
17862{
17863#ifndef ftello
17864 char *p = (char *) ftello;
17865#endif
17866
17867 ;
17868 return 0;
17869}
17870_ACEOF
17871rm -f conftest.$ac_objext
17872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17873 (eval $ac_compile) 2>conftest.er1
17874 ac_status=$?
17875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
17880 { ac_try='test -z "$ac_c_werror_flag"
17881 || test ! -s conftest.err'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_have_decl_ftello=yes
17894else
17895 echo "$as_me: failed program was:" >&5
17896sed 's/^/| /' conftest.$ac_ext >&5
17897
17898ac_cv_have_decl_ftello=no
17899fi
17900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17901fi
17902echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17903echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17904if test $ac_cv_have_decl_ftello = yes; then
17905
17906cat >>confdefs.h <<_ACEOF
17907#define HAVE_DECL_FTELLO 1
17908_ACEOF
17909
17910
17911else
17912 cat >>confdefs.h <<_ACEOF
17913#define HAVE_DECL_FTELLO 0
17914_ACEOF
17915
17916
17917fi
17918
17919
17920echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17921echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17922if test "${ac_cv_have_decl_ftello64+set}" = set; then
17923 echo $ECHO_N "(cached) $ECHO_C" >&6
17924else
17925 cat >conftest.$ac_ext <<_ACEOF
17926/* confdefs.h. */
17927_ACEOF
17928cat confdefs.h >>conftest.$ac_ext
17929cat >>conftest.$ac_ext <<_ACEOF
17930/* end confdefs.h. */
17931$ac_includes_default
17932int
17933main ()
17934{
17935#ifndef ftello64
17936 char *p = (char *) ftello64;
17937#endif
17938
17939 ;
17940 return 0;
17941}
17942_ACEOF
17943rm -f conftest.$ac_objext
17944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17945 (eval $ac_compile) 2>conftest.er1
17946 ac_status=$?
17947 grep -v '^ *+' conftest.er1 >conftest.err
17948 rm -f conftest.er1
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } &&
17952 { ac_try='test -z "$ac_c_werror_flag"
17953 || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_have_decl_ftello64=yes
17966else
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970ac_cv_have_decl_ftello64=no
17971fi
17972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17973fi
17974echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17975echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17976if test $ac_cv_have_decl_ftello64 = yes; then
17977
17978cat >>confdefs.h <<_ACEOF
17979#define HAVE_DECL_FTELLO64 1
17980_ACEOF
17981
17982
17983else
17984 cat >>confdefs.h <<_ACEOF
17985#define HAVE_DECL_FTELLO64 0
17986_ACEOF
17987
17988
17989fi
17990
17991
17992echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17993echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17994if test "${ac_cv_have_decl_fseeko+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996else
17997 cat >conftest.$ac_ext <<_ACEOF
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
18003$ac_includes_default
18004int
18005main ()
18006{
18007#ifndef fseeko
18008 char *p = (char *) fseeko;
18009#endif
18010
18011 ;
18012 return 0;
18013}
18014_ACEOF
18015rm -f conftest.$ac_objext
18016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017 (eval $ac_compile) 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_have_decl_fseeko=yes
18038else
18039 echo "$as_me: failed program was:" >&5
18040sed 's/^/| /' conftest.$ac_ext >&5
18041
18042ac_cv_have_decl_fseeko=no
18043fi
18044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045fi
18046echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18047echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18048if test $ac_cv_have_decl_fseeko = yes; then
18049
18050cat >>confdefs.h <<_ACEOF
18051#define HAVE_DECL_FSEEKO 1
18052_ACEOF
18053
18054
18055else
18056 cat >>confdefs.h <<_ACEOF
18057#define HAVE_DECL_FSEEKO 0
18058_ACEOF
18059
18060
18061fi
18062
18063
18064echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18065echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18066if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18068else
18069 cat >conftest.$ac_ext <<_ACEOF
18070/* confdefs.h. */
18071_ACEOF
18072cat confdefs.h >>conftest.$ac_ext
18073cat >>conftest.$ac_ext <<_ACEOF
18074/* end confdefs.h. */
18075$ac_includes_default
18076int
18077main ()
18078{
18079#ifndef fseeko64
18080 char *p = (char *) fseeko64;
18081#endif
18082
18083 ;
18084 return 0;
18085}
18086_ACEOF
18087rm -f conftest.$ac_objext
18088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18089 (eval $ac_compile) 2>conftest.er1
18090 ac_status=$?
18091 grep -v '^ *+' conftest.er1 >conftest.err
18092 rm -f conftest.er1
18093 cat conftest.err >&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } &&
18096 { ac_try='test -z "$ac_c_werror_flag"
18097 || test ! -s conftest.err'
18098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18099 (eval $ac_try) 2>&5
18100 ac_status=$?
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest.$ac_objext'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; }; then
18109 ac_cv_have_decl_fseeko64=yes
18110else
18111 echo "$as_me: failed program was:" >&5
18112sed 's/^/| /' conftest.$ac_ext >&5
18113
18114ac_cv_have_decl_fseeko64=no
18115fi
18116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18117fi
18118echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18119echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18120if test $ac_cv_have_decl_fseeko64 = yes; then
18121
18122cat >>confdefs.h <<_ACEOF
18123#define HAVE_DECL_FSEEKO64 1
18124_ACEOF
18125
18126
18127else
18128 cat >>confdefs.h <<_ACEOF
18129#define HAVE_DECL_FSEEKO64 0
18130_ACEOF
18131
18132
18133fi
18134
18135
18136
18137
18138case "${host}" in
18139*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18140
18141cat >>confdefs.h <<\_ACEOF
18142#define USE_BINARY_FOPEN 1
18143_ACEOF
18144 ;;
18145esac
18146
18147echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18148echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18149if test "${ac_cv_have_decl_ffs+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151else
18152 cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h. */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h. */
18158$ac_includes_default
18159int
18160main ()
18161{
18162#ifndef ffs
18163 char *p = (char *) ffs;
18164#endif
18165
18166 ;
18167 return 0;
18168}
18169_ACEOF
18170rm -f conftest.$ac_objext
18171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172 (eval $ac_compile) 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag"
18180 || test ! -s conftest.err'
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_have_decl_ffs=yes
18193else
18194 echo "$as_me: failed program was:" >&5
18195sed 's/^/| /' conftest.$ac_ext >&5
18196
18197ac_cv_have_decl_ffs=no
18198fi
18199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18200fi
18201echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18202echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18203if test $ac_cv_have_decl_ffs = yes; then
18204
18205cat >>confdefs.h <<_ACEOF
18206#define HAVE_DECL_FFS 1
18207_ACEOF
18208
18209
18210else
18211 cat >>confdefs.h <<_ACEOF
18212#define HAVE_DECL_FFS 0
18213_ACEOF
18214
18215
18216fi
18217
18218
18219echo "$as_me:$LINENO: checking whether free is declared" >&5
18220echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18221if test "${ac_cv_have_decl_free+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
18224 cat >conftest.$ac_ext <<_ACEOF
18225/* confdefs.h. */
18226_ACEOF
18227cat confdefs.h >>conftest.$ac_ext
18228cat >>conftest.$ac_ext <<_ACEOF
18229/* end confdefs.h. */
18230$ac_includes_default
18231int
18232main ()
18233{
18234#ifndef free
18235 char *p = (char *) free;
18236#endif
18237
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest.$ac_objext
18243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18244 (eval $ac_compile) 2>conftest.er1
18245 ac_status=$?
18246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -z "$ac_c_werror_flag"
18252 || test ! -s conftest.err'
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest.$ac_objext'
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_cv_have_decl_free=yes
18265else
18266 echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269ac_cv_have_decl_free=no
18270fi
18271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18272fi
18273echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18274echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18275if test $ac_cv_have_decl_free = yes; then
18276
18277cat >>confdefs.h <<_ACEOF
18278#define HAVE_DECL_FREE 1
18279_ACEOF
18280
18281
18282else
18283 cat >>confdefs.h <<_ACEOF
18284#define HAVE_DECL_FREE 0
18285_ACEOF
18286
18287
18288fi
18289
18290
18291echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18292echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18293if test "${ac_cv_have_decl_getenv+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296 cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302$ac_includes_default
18303int
18304main ()
18305{
18306#ifndef getenv
18307 char *p = (char *) getenv;
18308#endif
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext
18315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316 (eval $ac_compile) 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag"
18324 || test ! -s conftest.err'
18325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326 (eval $ac_try) 2>&5
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; } &&
18330 { ac_try='test -s conftest.$ac_objext'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_have_decl_getenv=yes
18337else
18338 echo "$as_me: failed program was:" >&5
18339sed 's/^/| /' conftest.$ac_ext >&5
18340
18341ac_cv_have_decl_getenv=no
18342fi
18343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18344fi
18345echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18346echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18347if test $ac_cv_have_decl_getenv = yes; then
18348
18349cat >>confdefs.h <<_ACEOF
18350#define HAVE_DECL_GETENV 1
18351_ACEOF
18352
18353
18354else
18355 cat >>confdefs.h <<_ACEOF
18356#define HAVE_DECL_GETENV 0
18357_ACEOF
18358
18359
18360fi
18361
18362
18363echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18364echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18365if test "${ac_cv_have_decl_malloc+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18367else
18368 cat >conftest.$ac_ext <<_ACEOF
18369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
18374$ac_includes_default
18375int
18376main ()
18377{
18378#ifndef malloc
18379 char *p = (char *) malloc;
18380#endif
18381
18382 ;
18383 return 0;
18384}
18385_ACEOF
18386rm -f conftest.$ac_objext
18387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18389 ac_status=$?
18390 grep -v '^ *+' conftest.er1 >conftest.err
18391 rm -f conftest.er1
18392 cat conftest.err >&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_have_decl_malloc=yes
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413ac_cv_have_decl_malloc=no
18414fi
18415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416fi
18417echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18418echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18419if test $ac_cv_have_decl_malloc = yes; then
18420
18421cat >>confdefs.h <<_ACEOF
18422#define HAVE_DECL_MALLOC 1
18423_ACEOF
18424
18425
18426else
18427 cat >>confdefs.h <<_ACEOF
18428#define HAVE_DECL_MALLOC 0
18429_ACEOF
18430
18431
18432fi
18433
18434
18435echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18436echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18437if test "${ac_cv_have_decl_realloc+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18439else
18440 cat >conftest.$ac_ext <<_ACEOF
18441/* confdefs.h. */
18442_ACEOF
18443cat confdefs.h >>conftest.$ac_ext
18444cat >>conftest.$ac_ext <<_ACEOF
18445/* end confdefs.h. */
18446$ac_includes_default
18447int
18448main ()
18449{
18450#ifndef realloc
18451 char *p = (char *) realloc;
18452#endif
18453
18454 ;
18455 return 0;
18456}
18457_ACEOF
18458rm -f conftest.$ac_objext
18459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18460 (eval $ac_compile) 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
18467 { ac_try='test -z "$ac_c_werror_flag"
18468 || test ! -s conftest.err'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; } &&
18474 { ac_try='test -s conftest.$ac_objext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_have_decl_realloc=yes
18481else
18482 echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485ac_cv_have_decl_realloc=no
18486fi
18487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18488fi
18489echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18490echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18491if test $ac_cv_have_decl_realloc = yes; then
18492
18493cat >>confdefs.h <<_ACEOF
18494#define HAVE_DECL_REALLOC 1
18495_ACEOF
18496
18497
18498else
18499 cat >>confdefs.h <<_ACEOF
18500#define HAVE_DECL_REALLOC 0
18501_ACEOF
18502
18503
18504fi
18505
18506
18507echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18508echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18509if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18511else
18512 cat >conftest.$ac_ext <<_ACEOF
18513/* confdefs.h. */
18514_ACEOF
18515cat confdefs.h >>conftest.$ac_ext
18516cat >>conftest.$ac_ext <<_ACEOF
18517/* end confdefs.h. */
18518$ac_includes_default
18519int
18520main ()
18521{
18522#ifndef stpcpy
18523 char *p = (char *) stpcpy;
18524#endif
18525
18526 ;
18527 return 0;
18528}
18529_ACEOF
18530rm -f conftest.$ac_objext
18531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18532 (eval $ac_compile) 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_c_werror_flag"
18540 || test ! -s conftest.err'
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest.$ac_objext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_have_decl_stpcpy=yes
18553else
18554 echo "$as_me: failed program was:" >&5
18555sed 's/^/| /' conftest.$ac_ext >&5
18556
18557ac_cv_have_decl_stpcpy=no
18558fi
18559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18560fi
18561echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18562echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18563if test $ac_cv_have_decl_stpcpy = yes; then
18564
18565cat >>confdefs.h <<_ACEOF
18566#define HAVE_DECL_STPCPY 1
18567_ACEOF
18568
18569
18570else
18571 cat >>confdefs.h <<_ACEOF
18572#define HAVE_DECL_STPCPY 0
18573_ACEOF
18574
18575
18576fi
18577
18578
18579echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18580echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18581if test "${ac_cv_have_decl_strstr+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583else
18584 cat >conftest.$ac_ext <<_ACEOF
18585/* confdefs.h. */
18586_ACEOF
18587cat confdefs.h >>conftest.$ac_ext
18588cat >>conftest.$ac_ext <<_ACEOF
18589/* end confdefs.h. */
18590$ac_includes_default
18591int
18592main ()
18593{
18594#ifndef strstr
18595 char *p = (char *) strstr;
18596#endif
18597
18598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext
18603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604 (eval $ac_compile) 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag"
18612 || test ! -s conftest.err'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; } &&
18618 { ac_try='test -s conftest.$ac_objext'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; }; then
18624 ac_cv_have_decl_strstr=yes
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629ac_cv_have_decl_strstr=no
18630fi
18631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18632fi
18633echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18634echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18635if test $ac_cv_have_decl_strstr = yes; then
18636
18637cat >>confdefs.h <<_ACEOF
18638#define HAVE_DECL_STRSTR 1
18639_ACEOF
18640
18641
18642else
18643 cat >>confdefs.h <<_ACEOF
18644#define HAVE_DECL_STRSTR 0
18645_ACEOF
18646
18647
18648fi
18649
18650
18651echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18652echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18653if test "${ac_cv_have_decl_snprintf+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655else
18656 cat >conftest.$ac_ext <<_ACEOF
18657/* confdefs.h. */
18658_ACEOF
18659cat confdefs.h >>conftest.$ac_ext
18660cat >>conftest.$ac_ext <<_ACEOF
18661/* end confdefs.h. */
18662$ac_includes_default
18663int
18664main ()
18665{
18666#ifndef snprintf
18667 char *p = (char *) snprintf;
18668#endif
18669
18670 ;
18671 return 0;
18672}
18673_ACEOF
18674rm -f conftest.$ac_objext
18675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18676 (eval $ac_compile) 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag"
18684 || test ! -s conftest.err'
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; } &&
18690 { ac_try='test -s conftest.$ac_objext'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696 ac_cv_have_decl_snprintf=yes
18697else
18698 echo "$as_me: failed program was:" >&5
18699sed 's/^/| /' conftest.$ac_ext >&5
18700
18701ac_cv_have_decl_snprintf=no
18702fi
18703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18704fi
18705echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18706echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18707if test $ac_cv_have_decl_snprintf = yes; then
18708
18709cat >>confdefs.h <<_ACEOF
18710#define HAVE_DECL_SNPRINTF 1
18711_ACEOF
18712
18713
18714else
18715 cat >>confdefs.h <<_ACEOF
18716#define HAVE_DECL_SNPRINTF 0
18717_ACEOF
18718
18719
18720fi
18721
18722
18723echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18724echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18725if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727else
18728 cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
18734$ac_includes_default
18735int
18736main ()
18737{
18738#ifndef vsnprintf
18739 char *p = (char *) vsnprintf;
18740#endif
18741
18742 ;
18743 return 0;
18744}
18745_ACEOF
18746rm -f conftest.$ac_objext
18747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18748 (eval $ac_compile) 2>conftest.er1
18749 ac_status=$?
18750 grep -v '^ *+' conftest.er1 >conftest.err
18751 rm -f conftest.er1
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag"
18756 || test ! -s conftest.err'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; } &&
18762 { ac_try='test -s conftest.$ac_objext'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; }; then
18768 ac_cv_have_decl_vsnprintf=yes
18769else
18770 echo "$as_me: failed program was:" >&5
18771sed 's/^/| /' conftest.$ac_ext >&5
18772
18773ac_cv_have_decl_vsnprintf=no
18774fi
18775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18776fi
18777echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18778echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18779if test $ac_cv_have_decl_vsnprintf = yes; then
18780
18781cat >>confdefs.h <<_ACEOF
18782#define HAVE_DECL_VSNPRINTF 1
18783_ACEOF
18784
18785
18786else
18787 cat >>confdefs.h <<_ACEOF
18788#define HAVE_DECL_VSNPRINTF 0
18789_ACEOF
18790
18791
18792fi
18793
18794
18795
18796# Link in zlib if we can. This allows us to read compressed debug sections.
18797# This is used only by compress.c.
18798echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18799echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18800if test "${ac_cv_search_zlibVersion+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18802else
18803 ac_func_search_save_LIBS=$LIBS
18804ac_cv_search_zlibVersion=no
18805cat >conftest.$ac_ext <<_ACEOF
18806/* confdefs.h. */
18807_ACEOF
18808cat confdefs.h >>conftest.$ac_ext
18809cat >>conftest.$ac_ext <<_ACEOF
18810/* end confdefs.h. */
18811
18812/* Override any gcc2 internal prototype to avoid an error. */
18813#ifdef __cplusplus
18814extern "C"
18815#endif
18816/* We use char because int might match the return type of a gcc2
18817 builtin and then its argument prototype would still apply. */
18818char zlibVersion ();
18819int
18820main ()
18821{
18822zlibVersion ();
18823 ;
18824 return 0;
18825}
18826_ACEOF
18827rm -f conftest.$ac_objext conftest$ac_exeext
18828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18829 (eval $ac_link) 2>conftest.er1
18830 ac_status=$?
18831 grep -v '^ *+' conftest.er1 >conftest.err
18832 rm -f conftest.er1
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -z "$ac_c_werror_flag"
18837 || test ! -s conftest.err'
18838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18839 (eval $ac_try) 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest$ac_exeext'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18846 ac_status=$?
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18849 ac_cv_search_zlibVersion="none required"
18850else
18851 echo "$as_me: failed program was:" >&5
18852sed 's/^/| /' conftest.$ac_ext >&5
18853
18854fi
18855rm -f conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857if test "$ac_cv_search_zlibVersion" = no; then
18858 for ac_lib in z; do
18859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866
18867/* Override any gcc2 internal prototype to avoid an error. */
18868#ifdef __cplusplus
18869extern "C"
18870#endif
18871/* We use char because int might match the return type of a gcc2
18872 builtin and then its argument prototype would still apply. */
18873char zlibVersion ();
18874int
18875main ()
18876{
18877zlibVersion ();
18878 ;
18879 return 0;
18880}
18881_ACEOF
18882rm -f conftest.$ac_objext conftest$ac_exeext
18883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884 (eval $ac_link) 2>conftest.er1
18885 ac_status=$?
18886 grep -v '^ *+' conftest.er1 >conftest.err
18887 rm -f conftest.er1
18888 cat conftest.err >&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); } &&
18891 { ac_try='test -z "$ac_c_werror_flag"
18892 || test ! -s conftest.err'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; } &&
18898 { ac_try='test -s conftest$ac_exeext'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_search_zlibVersion="-l$ac_lib"
18905break
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
18910fi
18911rm -f conftest.err conftest.$ac_objext \
18912 conftest$ac_exeext conftest.$ac_ext
18913 done
18914fi
18915LIBS=$ac_func_search_save_LIBS
18916fi
18917echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18918echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18919if test "$ac_cv_search_zlibVersion" != no; then
18920 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18921
18922for ac_header in zlib.h
18923do
18924as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18925if eval "test \"\${$as_ac_Header+set}\" = set"; then
18926 echo "$as_me:$LINENO: checking for $ac_header" >&5
18927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18928if eval "test \"\${$as_ac_Header+set}\" = set"; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930fi
18931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18933else
18934 # Is the header compilable?
18935echo "$as_me:$LINENO: checking $ac_header usability" >&5
18936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18937cat >conftest.$ac_ext <<_ACEOF
18938/* confdefs.h. */
18939_ACEOF
18940cat confdefs.h >>conftest.$ac_ext
18941cat >>conftest.$ac_ext <<_ACEOF
18942/* end confdefs.h. */
18943$ac_includes_default
18944#include <$ac_header>
18945_ACEOF
18946rm -f conftest.$ac_objext
18947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18948 (eval $ac_compile) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest.$ac_objext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_header_compiler=yes
18969else
18970 echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973ac_header_compiler=no
18974fi
18975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18977echo "${ECHO_T}$ac_header_compiler" >&6
18978
18979# Is the header present?
18980echo "$as_me:$LINENO: checking $ac_header presence" >&5
18981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18982cat >conftest.$ac_ext <<_ACEOF
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
18988#include <$ac_header>
18989_ACEOF
18990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } >/dev/null; then
18998 if test -s conftest.err; then
18999 ac_cpp_err=$ac_c_preproc_warn_flag
19000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19001 else
19002 ac_cpp_err=
19003 fi
19004else
19005 ac_cpp_err=yes
19006fi
19007if test -z "$ac_cpp_err"; then
19008 ac_header_preproc=yes
19009else
19010 echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 ac_header_preproc=no
19014fi
19015rm -f conftest.err conftest.$ac_ext
19016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19017echo "${ECHO_T}$ac_header_preproc" >&6
19018
19019# So? What about this header?
19020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19021 yes:no: )
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19026 ac_header_preproc=yes
19027 ;;
19028 no:yes:* )
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19036echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19041 (
19042 cat <<\_ASBOX
19043## ------------------------------------------ ##
19044## Report this to the AC_PACKAGE_NAME lists. ##
19045## ------------------------------------------ ##
19046_ASBOX
19047 ) |
19048 sed "s/^/$as_me: WARNING: /" >&2
19049 ;;
19050esac
19051echo "$as_me:$LINENO: checking for $ac_header" >&5
19052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19053if eval "test \"\${$as_ac_Header+set}\" = set"; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19055else
19056 eval "$as_ac_Header=\$ac_header_preproc"
19057fi
19058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19060
19061fi
19062if test `eval echo '${'$as_ac_Header'}'` = yes; then
19063 cat >>confdefs.h <<_ACEOF
19064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19065_ACEOF
19066
19067fi
19068
19069done
19070
19071fi
19072
19073
19074# If we are configured native, pick a core file support file.
19075COREFILE=
19076COREFLAG=
19077TRAD_HEADER=
19078if test "${target}" = "${host}"; then
19079 case "${host}" in
19080 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19081 COREFILE=''
19082 ;;
19083 alpha*-*-linux-*)
19084 COREFILE=trad-core.lo
19085 TRAD_HEADER='"hosts/alphalinux.h"'
19086 ;;
19087 alpha*-*-netbsd* | alpha*-*-openbsd*)
19088 COREFILE=netbsd-core.lo
19089 ;;
19090 alpha*-*-*) COREFILE=osf-core.lo ;;
19091 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19092 COREFILE='' ;;
19093 arm-*-netbsd* | arm-*-openbsd*)
19094 COREFILE=netbsd-core.lo
19095 ;;
19096 arm-*-riscix) COREFILE=trad-core.lo ;;
19097 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19098 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19099 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19100 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19101 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19102 hppa*-*-netbsd* | hppa*-*-openbsd*)
19103 COREFILE=netbsd-core.lo
19104 ;;
19105
19106 i370-*-*)
19107 COREFILE=trad-core.lo
19108 TRAD_HEADER='"hosts/i370linux.h"'
19109 ;;
19110
19111 i[3-7]86-sequent-bsd*)
19112 COREFILE=trad-core.lo
19113 TRAD_HEADER='"hosts/symmetry.h"'
19114 ;;
19115 i[3-7]86-sequent-sysv4*) ;;
19116 i[3-7]86-sequent-sysv*)
19117 COREFILE=trad-core.lo
19118 TRAD_HEADER='"hosts/symmetry.h"'
19119 ;;
19120 i[3-7]86-*-bsdi)
19121 COREFILE=
19122 ;;
19123 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
19124 COREFILE=trad-core.lo
19125 TRAD_HEADER='"hosts/i386bsd.h"'
19126 ;;
19127 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19128 COREFILE=''
19129 TRAD_HEADER='"hosts/i386bsd.h"'
19130 ;;
19131 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19132 COREFILE=netbsd-core.lo
19133 ;;
19134 i[3-7]86-esix-sysv3*)
19135 COREFILE=trad-core.lo
19136 TRAD_HEADER='"hosts/esix.h"'
19137 ;;
19138 i[3-7]86-*-sco3.2v5*)
19139 COREFILE=sco5-core.lo
19140 ;;
19141 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19142 COREFILE=trad-core.lo
19143 TRAD_HEADER='"hosts/i386sco.h"'
19144 ;;
19145 i[3-7]86-*-mach3*)
19146 COREFILE=trad-core.lo
19147 TRAD_HEADER='"hosts/i386mach3.h"'
19148 ;;
19149 i[3-7]86-*-linux-*)
19150 COREFILE=trad-core.lo
19151 TRAD_HEADER='"hosts/i386linux.h"'
19152 ;;
19153 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19154 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19155 i860-*-mach3* | i860-*-osf1*)
19156 COREFILE=trad-core.lo
19157 TRAD_HEADER='"hosts/i860mach3.h"'
19158 ;;
19159 mips-*-netbsd* | mips*-*-openbsd*)
19160 COREFILE=netbsd-core.lo
19161 ;;
19162 mips-dec-*)
19163 COREFILE=trad-core.lo
19164 TRAD_HEADER='"hosts/decstation.h"'
19165 ;;
19166 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19167 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19168 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19169 mips-*-sysv4*) ;;
19170 mips-*-sysv* | mips-*-riscos*)
19171 COREFILE=trad-core.lo
19172 TRAD_HEADER='"hosts/riscos.h"'
19173 ;;
19174 mips-sony-bsd*)
19175 COREFILE=trad-core.lo
19176 TRAD_HEADER='"hosts/news-mips.h"'
19177 ;;
19178 m68*-bull*-sysv*)
19179 COREFILE=trad-core.lo
19180 TRAD_HEADER='"hosts/dpx2.h"'
19181 ;;
19182 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19183 m68*-hp-bsd*)
19184 COREFILE=trad-core.lo
19185 TRAD_HEADER='"hosts/hp300bsd.h"'
19186 ;;
19187 m68*-*-linux-*)
19188 COREFILE=trad-core.lo
19189 TRAD_HEADER='"hosts/m68klinux.h"'
19190 ;;
19191 m68*-motorola-sysv*)
19192 COREFILE=trad-core.lo
19193 TRAD_HEADER='"hosts/delta68.h"'
19194 ;;
19195 m68*-sony-*)
19196 COREFILE=trad-core.lo
19197 TRAD_HEADER='"hosts/news.h"'
19198 ;;
19199 m68*-*-netbsd* | m68*-*-openbsd*)
19200 COREFILE=netbsd-core.lo
19201 ;;
19202 m68*-apple-aux*)
19203 COREFILE=trad-core.lo
19204 TRAD_HEADER='"hosts/m68kaux.h"'
19205 ;;
19206 m88*-*-sysv4*)
19207 ;;
19208 m88*-motorola-sysv*)
19209 COREFILE=ptrace-core.lo
19210 ;;
19211 m88*-*-mach3*)
19212 COREFILE=trad-core.lo
19213 TRAD_HEADER='"hosts/m88kmach3.h"'
19214 ;;
19215 m88*-*-openbsd*)
19216 COREFILE=netbsd-core.lo
19217 ;;
19218 ns32k-pc532-mach)
19219 COREFILE=trad-core.lo
19220 TRAD_HEADER='"hosts/pc532mach.h"'
19221 ;;
19222 ns32k-*-netbsd* | ns32k-*-openbsd*)
19223 COREFILE=netbsd-core.lo
19224 ;;
19225 rs6000-*-lynx*)
19226 COREFILE=lynx-core.lo
19227 ;;
19228 rs6000-*-aix5.* | powerpc-*-aix5.*)
19229 COREFILE=rs6000-core.lo
19230 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19231 ;;
19232 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19233 COREFILE=rs6000-core.lo
19234 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19235 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19236 # have c_impl as a member of struct core_dumpx
19237 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19238echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19240/* confdefs.h. */
19241_ACEOF
19242cat confdefs.h >>conftest.$ac_ext
19243cat >>conftest.$ac_ext <<_ACEOF
19244/* end confdefs.h. */
19245#include <core.h>
19246int
19247main ()
19248{
19249struct core_dumpx c; c.c_impl = 0;
19250 ;
19251 return 0;
19252}
19253_ACEOF
19254rm -f conftest.$ac_objext
19255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256 (eval $ac_compile) 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_c_werror_flag"
19264 || test ! -s conftest.err'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest.$ac_objext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276
19277cat >>confdefs.h <<\_ACEOF
19278#define HAVE_ST_C_IMPL 1
19279_ACEOF
19280
19281 echo "$as_me:$LINENO: result: yes" >&5
19282echo "${ECHO_T}yes" >&6
19283else
19284 echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287echo "$as_me:$LINENO: result: no" >&5
19288echo "${ECHO_T}no" >&6
19289fi
19290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19291 ;;
19292 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19293 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19294 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19295 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19296 powerpc-*-beos*) ;;
19297 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19298 COREFILE='' ;;
19299 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19300 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19301 s390*-*-*) COREFILE=trad-core.lo ;;
19302 sh*-*-netbsd* | sh*-*-openbsd*)
19303 COREFILE=netbsd-core.lo
19304 ;;
19305 sparc-*-netbsd* | sparc*-*-openbsd*)
19306 COREFILE=netbsd-core.lo
19307 ;;
19308 tahoe-*-*)
19309 COREFILE=trad-core.lo
19310 TRAD_HEADER='"hosts/tahoe.h"'
19311 ;;
19312 vax-*-netbsd* | vax-*-openbsd*)
19313 COREFILE=netbsd-core.lo
19314 ;;
19315 vax-*-ultrix2*)
19316 COREFILE=trad-core.lo
19317 TRAD_HEADER='"hosts/vaxult2.h"'
19318 ;;
19319 vax-*-ultrix*)
19320 COREFILE=trad-core.lo
19321 TRAD_HEADER='"hosts/vaxult2.h"'
19322 ;;
19323 vax-*-linux-*)
19324 COREFILE=trad-core.lo
19325 TRAD_HEADER='"hosts/vaxlinux.h"'
19326 ;;
19327 vax-*-*)
19328 COREFILE=trad-core.lo
19329 TRAD_HEADER='"hosts/vaxbsd.h"'
19330 ;;
19331 x86_64-*-netbsd* | x86_64-*-openbsd*)
19332 COREFILE=netbsd-core.lo
19333 ;;
19334 esac
19335
19336 case "$COREFILE" in
19337 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19338 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19339 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19340 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19341 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19342 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19343 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19344 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19345 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19346 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19347 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19348 esac
19349
19350 # ELF corefile support has several flavors, but all of
19351 # them use something called <sys/procfs.h>
19352
19353for ac_header in sys/procfs.h
19354do
19355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19356if eval "test \"\${$as_ac_Header+set}\" = set"; then
19357 echo "$as_me:$LINENO: checking for $ac_header" >&5
19358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19359if eval "test \"\${$as_ac_Header+set}\" = set"; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361fi
19362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19364else
19365 # Is the header compilable?
19366echo "$as_me:$LINENO: checking $ac_header usability" >&5
19367echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19368cat >conftest.$ac_ext <<_ACEOF
19369/* confdefs.h. */
19370_ACEOF
19371cat confdefs.h >>conftest.$ac_ext
19372cat >>conftest.$ac_ext <<_ACEOF
19373/* end confdefs.h. */
19374$ac_includes_default
19375#include <$ac_header>
19376_ACEOF
19377rm -f conftest.$ac_objext
19378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19379 (eval $ac_compile) 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } &&
19386 { ac_try='test -z "$ac_c_werror_flag"
19387 || test ! -s conftest.err'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try='test -s conftest.$ac_objext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19396 ac_status=$?
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_header_compiler=yes
19400else
19401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404ac_header_compiler=no
19405fi
19406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19407echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19408echo "${ECHO_T}$ac_header_compiler" >&6
19409
19410# Is the header present?
19411echo "$as_me:$LINENO: checking $ac_header presence" >&5
19412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19413cat >conftest.$ac_ext <<_ACEOF
19414/* confdefs.h. */
19415_ACEOF
19416cat confdefs.h >>conftest.$ac_ext
19417cat >>conftest.$ac_ext <<_ACEOF
19418/* end confdefs.h. */
19419#include <$ac_header>
19420_ACEOF
19421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } >/dev/null; then
19429 if test -s conftest.err; then
19430 ac_cpp_err=$ac_c_preproc_warn_flag
19431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19432 else
19433 ac_cpp_err=
19434 fi
19435else
19436 ac_cpp_err=yes
19437fi
19438if test -z "$ac_cpp_err"; then
19439 ac_header_preproc=yes
19440else
19441 echo "$as_me: failed program was:" >&5
19442sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_header_preproc=no
19445fi
19446rm -f conftest.err conftest.$ac_ext
19447echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19448echo "${ECHO_T}$ac_header_preproc" >&6
19449
19450# So? What about this header?
19451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19452 yes:no: )
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19454echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19456echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19457 ac_header_preproc=yes
19458 ;;
19459 no:yes:* )
19460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19461echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19463echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19465echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19467echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19471echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19472 (
19473 cat <<\_ASBOX
19474## ------------------------------------------ ##
19475## Report this to the AC_PACKAGE_NAME lists. ##
19476## ------------------------------------------ ##
19477_ASBOX
19478 ) |
19479 sed "s/^/$as_me: WARNING: /" >&2
19480 ;;
19481esac
19482echo "$as_me:$LINENO: checking for $ac_header" >&5
19483echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19484if eval "test \"\${$as_ac_Header+set}\" = set"; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486else
19487 eval "$as_ac_Header=\$ac_header_preproc"
19488fi
19489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19491
19492fi
19493if test `eval echo '${'$as_ac_Header'}'` = yes; then
19494 cat >>confdefs.h <<_ACEOF
19495#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19496_ACEOF
19497
19498fi
19499
19500done
19501
19502 if test "$ac_cv_header_sys_procfs_h" = yes; then
19503 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19504echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19505 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507else
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514
19515#define _SYSCALL32
19516#include <sys/procfs.h>
19517int
19518main ()
19519{
19520prstatus_t avar
19521 ;
19522 return 0;
19523}
19524_ACEOF
19525rm -f conftest.$ac_objext
19526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19527 (eval $ac_compile) 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
19534 { ac_try='test -z "$ac_c_werror_flag"
19535 || test ! -s conftest.err'
19536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; } &&
19541 { ac_try='test -s conftest.$ac_objext'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19548else
19549 echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552bfd_cv_have_sys_procfs_type_prstatus_t=no
19553
19554fi
19555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556fi
19557
19558 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19559
19560cat >>confdefs.h <<\_ACEOF
19561#define HAVE_PRSTATUS_T 1
19562_ACEOF
19563
19564 fi
19565 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19566echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19567
19568 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19569echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19570 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572else
19573 cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
19579
19580#define _SYSCALL32
19581#include <sys/procfs.h>
19582int
19583main ()
19584{
19585prstatus32_t avar
19586 ;
19587 return 0;
19588}
19589_ACEOF
19590rm -f conftest.$ac_objext
19591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19592 (eval $ac_compile) 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_c_werror_flag"
19600 || test ! -s conftest.err'
19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602 (eval $ac_try) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; }; then
19612 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19613else
19614 echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617bfd_cv_have_sys_procfs_type_prstatus32_t=no
19618
19619fi
19620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19621fi
19622
19623 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19624
19625cat >>confdefs.h <<\_ACEOF
19626#define HAVE_PRSTATUS32_T 1
19627_ACEOF
19628
19629 fi
19630 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19631echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19632
19633 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19634echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19635 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19637else
19638 cat >conftest.$ac_ext <<_ACEOF
19639/* confdefs.h. */
19640_ACEOF
19641cat confdefs.h >>conftest.$ac_ext
19642cat >>conftest.$ac_ext <<_ACEOF
19643/* end confdefs.h. */
19644
19645#define _SYSCALL32
19646#include <sys/procfs.h>
19647int
19648main ()
19649{
19650prstatus_t avar; void* aref = (void*) &avar.pr_who
19651 ;
19652 return 0;
19653}
19654_ACEOF
19655rm -f conftest.$ac_objext
19656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657 (eval $ac_compile) 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_c_werror_flag"
19665 || test ! -s conftest.err'
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; } &&
19671 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19677 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19678else
19679 echo "$as_me: failed program was:" >&5
19680sed 's/^/| /' conftest.$ac_ext >&5
19681
19682bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19683
19684fi
19685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19686fi
19687
19688 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19689
19690cat >>confdefs.h <<\_ACEOF
19691#define HAVE_PRSTATUS_T_PR_WHO 1
19692_ACEOF
19693
19694 fi
19695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19696echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19697
19698 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19699echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19700 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
19702else
19703 cat >conftest.$ac_ext <<_ACEOF
19704/* confdefs.h. */
19705_ACEOF
19706cat confdefs.h >>conftest.$ac_ext
19707cat >>conftest.$ac_ext <<_ACEOF
19708/* end confdefs.h. */
19709
19710#define _SYSCALL32
19711#include <sys/procfs.h>
19712int
19713main ()
19714{
19715prstatus32_t avar; void* aref = (void*) &avar.pr_who
19716 ;
19717 return 0;
19718}
19719_ACEOF
19720rm -f conftest.$ac_objext
19721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19722 (eval $ac_compile) 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } &&
19729 { ac_try='test -z "$ac_c_werror_flag"
19730 || test ! -s conftest.err'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19743else
19744 echo "$as_me: failed program was:" >&5
19745sed 's/^/| /' conftest.$ac_ext >&5
19746
19747bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19748
19749fi
19750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19751fi
19752
19753 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19754
19755cat >>confdefs.h <<\_ACEOF
19756#define HAVE_PRSTATUS32_T_PR_WHO 1
19757_ACEOF
19758
19759 fi
19760 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19761echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19762
19763 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19764echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19765 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767else
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774
19775#define _SYSCALL32
19776#include <sys/procfs.h>
19777int
19778main ()
19779{
19780pstatus_t avar
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19808else
19809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812bfd_cv_have_sys_procfs_type_pstatus_t=no
19813
19814fi
19815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816fi
19817
19818 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19819
19820cat >>confdefs.h <<\_ACEOF
19821#define HAVE_PSTATUS_T 1
19822_ACEOF
19823
19824 fi
19825 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19826echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19827
19828 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19829echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19830 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 cat >conftest.$ac_ext <<_ACEOF
19834/* confdefs.h. */
19835_ACEOF
19836cat confdefs.h >>conftest.$ac_ext
19837cat >>conftest.$ac_ext <<_ACEOF
19838/* end confdefs.h. */
19839
19840#define _SYSCALL32
19841#include <sys/procfs.h>
19842int
19843main ()
19844{
19845pxstatus_t avar
19846 ;
19847 return 0;
19848}
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19852 (eval $ac_compile) 2>conftest.er1
19853 ac_status=$?
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_c_werror_flag"
19860 || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19873else
19874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877bfd_cv_have_sys_procfs_type_pxstatus_t=no
19878
19879fi
19880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19881fi
19882
19883 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19884
19885cat >>confdefs.h <<\_ACEOF
19886#define HAVE_PXSTATUS_T 1
19887_ACEOF
19888
19889 fi
19890 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19891echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19892
19893 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19894echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19895 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19897else
19898 cat >conftest.$ac_ext <<_ACEOF
19899/* confdefs.h. */
19900_ACEOF
19901cat confdefs.h >>conftest.$ac_ext
19902cat >>conftest.$ac_ext <<_ACEOF
19903/* end confdefs.h. */
19904
19905#define _SYSCALL32
19906#include <sys/procfs.h>
19907int
19908main ()
19909{
19910pstatus32_t avar
19911 ;
19912 return 0;
19913}
19914_ACEOF
19915rm -f conftest.$ac_objext
19916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19917 (eval $ac_compile) 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19938else
19939 echo "$as_me: failed program was:" >&5
19940sed 's/^/| /' conftest.$ac_ext >&5
19941
19942bfd_cv_have_sys_procfs_type_pstatus32_t=no
19943
19944fi
19945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19946fi
19947
19948 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19949
19950cat >>confdefs.h <<\_ACEOF
19951#define HAVE_PSTATUS32_T 1
19952_ACEOF
19953
19954 fi
19955 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19956echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19957
19958 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19959echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19960 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962else
19963 cat >conftest.$ac_ext <<_ACEOF
19964/* confdefs.h. */
19965_ACEOF
19966cat confdefs.h >>conftest.$ac_ext
19967cat >>conftest.$ac_ext <<_ACEOF
19968/* end confdefs.h. */
19969
19970#define _SYSCALL32
19971#include <sys/procfs.h>
19972int
19973main ()
19974{
19975prpsinfo_t avar
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982 (eval $ac_compile) 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
19989 { ac_try='test -z "$ac_c_werror_flag"
19990 || test ! -s conftest.err'
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; } &&
19996 { ac_try='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20003else
20004 echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
20007bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20008
20009fi
20010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20011fi
20012
20013 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20014
20015cat >>confdefs.h <<\_ACEOF
20016#define HAVE_PRPSINFO_T 1
20017_ACEOF
20018
20019 fi
20020 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20021echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20022
20023 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20024echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20025 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20026 echo $ECHO_N "(cached) $ECHO_C" >&6
20027else
20028 cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
20034
20035#define _SYSCALL32
20036#include <sys/procfs.h>
20037int
20038main ()
20039{
20040prpsinfo32_t avar
20041 ;
20042 return 0;
20043}
20044_ACEOF
20045rm -f conftest.$ac_objext
20046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047 (eval $ac_compile) 2>conftest.er1
20048 ac_status=$?
20049 grep -v '^ *+' conftest.er1 >conftest.err
20050 rm -f conftest.er1
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } &&
20054 { ac_try='test -z "$ac_c_werror_flag"
20055 || test ! -s conftest.err'
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; } &&
20061 { ac_try='test -s conftest.$ac_objext'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20068else
20069 echo "$as_me: failed program was:" >&5
20070sed 's/^/| /' conftest.$ac_ext >&5
20071
20072bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20073
20074fi
20075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20076fi
20077
20078 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20079
20080cat >>confdefs.h <<\_ACEOF
20081#define HAVE_PRPSINFO32_T 1
20082_ACEOF
20083
20084 fi
20085 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20086echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20087
20088 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20089echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20090 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093 cat >conftest.$ac_ext <<_ACEOF
20094/* confdefs.h. */
20095_ACEOF
20096cat confdefs.h >>conftest.$ac_ext
20097cat >>conftest.$ac_ext <<_ACEOF
20098/* end confdefs.h. */
20099
20100#define _SYSCALL32
20101#include <sys/procfs.h>
20102int
20103main ()
20104{
20105psinfo_t avar
20106 ;
20107 return 0;
20108}
20109_ACEOF
20110rm -f conftest.$ac_objext
20111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112 (eval $ac_compile) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137bfd_cv_have_sys_procfs_type_psinfo_t=no
20138
20139fi
20140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20141fi
20142
20143 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20144
20145cat >>confdefs.h <<\_ACEOF
20146#define HAVE_PSINFO_T 1
20147_ACEOF
20148
20149 fi
20150 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20151echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20152
20153 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20154echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20155 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158 cat >conftest.$ac_ext <<_ACEOF
20159/* confdefs.h. */
20160_ACEOF
20161cat confdefs.h >>conftest.$ac_ext
20162cat >>conftest.$ac_ext <<_ACEOF
20163/* end confdefs.h. */
20164
20165#define _SYSCALL32
20166#include <sys/procfs.h>
20167int
20168main ()
20169{
20170psinfo32_t avar
20171 ;
20172 return 0;
20173}
20174_ACEOF
20175rm -f conftest.$ac_objext
20176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20177 (eval $ac_compile) 2>conftest.er1
20178 ac_status=$?
20179 grep -v '^ *+' conftest.er1 >conftest.err
20180 rm -f conftest.er1
20181 cat conftest.err >&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } &&
20184 { ac_try='test -z "$ac_c_werror_flag"
20185 || test ! -s conftest.err'
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20198else
20199 echo "$as_me: failed program was:" >&5
20200sed 's/^/| /' conftest.$ac_ext >&5
20201
20202bfd_cv_have_sys_procfs_type_psinfo32_t=no
20203
20204fi
20205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20206fi
20207
20208 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20209
20210cat >>confdefs.h <<\_ACEOF
20211#define HAVE_PSINFO32_T 1
20212_ACEOF
20213
20214 fi
20215 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20216echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20217
20218 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20219echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20220 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20221 echo $ECHO_N "(cached) $ECHO_C" >&6
20222else
20223 cat >conftest.$ac_ext <<_ACEOF
20224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
20229
20230#define _SYSCALL32
20231#include <sys/procfs.h>
20232int
20233main ()
20234{
20235lwpstatus_t avar
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest.$ac_objext
20241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20242 (eval $ac_compile) 2>conftest.er1
20243 ac_status=$?
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_c_werror_flag"
20250 || test ! -s conftest.err'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20263else
20264 echo "$as_me: failed program was:" >&5
20265sed 's/^/| /' conftest.$ac_ext >&5
20266
20267bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20268
20269fi
20270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20271fi
20272
20273 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20274
20275cat >>confdefs.h <<\_ACEOF
20276#define HAVE_LWPSTATUS_T 1
20277_ACEOF
20278
20279 fi
20280 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20281echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20282
20283 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20284echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20285 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20287else
20288 cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h. */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h. */
20294
20295#define _SYSCALL32
20296#include <sys/procfs.h>
20297int
20298main ()
20299{
20300lwpxstatus_t avar
20301 ;
20302 return 0;
20303}
20304_ACEOF
20305rm -f conftest.$ac_objext
20306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20307 (eval $ac_compile) 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } &&
20314 { ac_try='test -z "$ac_c_werror_flag"
20315 || test ! -s conftest.err'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; } &&
20321 { ac_try='test -s conftest.$ac_objext'
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20333
20334fi
20335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20336fi
20337
20338 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20339
20340cat >>confdefs.h <<\_ACEOF
20341#define HAVE_LWPXSTATUS_T 1
20342_ACEOF
20343
20344 fi
20345 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20346echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20347
20348 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20349echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20350 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
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
20360#define _SYSCALL32
20361#include <sys/procfs.h>
20362int
20363main ()
20364{
20365lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20366 ;
20367 return 0;
20368}
20369_ACEOF
20370rm -f conftest.$ac_objext
20371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag"
20380 || test ! -s conftest.err'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20383 ac_status=$?
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20389 ac_status=$?
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20393else
20394 echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20398
20399fi
20400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401fi
20402
20403 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20404
20405cat >>confdefs.h <<\_ACEOF
20406#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20407_ACEOF
20408
20409 fi
20410 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20411echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20412
20413 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20414echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20415 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417else
20418 cat >conftest.$ac_ext <<_ACEOF
20419/* confdefs.h. */
20420_ACEOF
20421cat confdefs.h >>conftest.$ac_ext
20422cat >>conftest.$ac_ext <<_ACEOF
20423/* end confdefs.h. */
20424
20425#define _SYSCALL32
20426#include <sys/procfs.h>
20427int
20428main ()
20429{
20430lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20431 ;
20432 return 0;
20433}
20434_ACEOF
20435rm -f conftest.$ac_objext
20436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20458else
20459 echo "$as_me: failed program was:" >&5
20460sed 's/^/| /' conftest.$ac_ext >&5
20461
20462bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20463
20464fi
20465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20466fi
20467
20468 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20469
20470cat >>confdefs.h <<\_ACEOF
20471#define HAVE_LWPSTATUS_T_PR_REG 1
20472_ACEOF
20473
20474 fi
20475 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20476echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20477
20478 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20479echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20480 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482else
20483 cat >conftest.$ac_ext <<_ACEOF
20484/* confdefs.h. */
20485_ACEOF
20486cat confdefs.h >>conftest.$ac_ext
20487cat >>conftest.$ac_ext <<_ACEOF
20488/* end confdefs.h. */
20489
20490#define _SYSCALL32
20491#include <sys/procfs.h>
20492int
20493main ()
20494{
20495win32_pstatus_t avar
20496 ;
20497 return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502 (eval $ac_compile) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20523else
20524 echo "$as_me: failed program was:" >&5
20525sed 's/^/| /' conftest.$ac_ext >&5
20526
20527bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20528
20529fi
20530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531fi
20532
20533 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20534
20535cat >>confdefs.h <<\_ACEOF
20536#define HAVE_WIN32_PSTATUS_T 1
20537_ACEOF
20538
20539 fi
20540 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20541echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20542
20543 fi
20544fi
20545
20546
20547if test -n "$TRAD_HEADER"; then
20548
20549cat >>confdefs.h <<_ACEOF
20550#define TRAD_HEADER $TRAD_HEADER
20551_ACEOF
20552
20553fi
20554
20555# Horrible hacks to build DLLs on Windows.
20556WIN32LDFLAGS=
20557WIN32LIBADD=
20558case "${host}" in
20559*-*-cygwin*)
20560 if test "$enable_shared" = "yes"; then
20561 WIN32LDFLAGS="-no-undefined"
20562 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20563 fi
20564 ;;
20565*-*-linux*)
20566 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20567 # libiberty.a.
20568 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20569 if test -n "$x"; then
20570 WIN32LIBADD="-L../libiberty/pic -liberty"
20571 fi
20572 ;;
20573esac
20574
20575
20576
20577# target stuff:
20578
20579# Canonicalize the secondary target names.
20580if test -n "$enable_targets" ; then
20581 for targ in `echo $enable_targets | sed 's/,/ /g'`
20582 do
20583 result=`$ac_config_sub $targ 2>/dev/null`
20584 if test -n "$result" ; then
20585 canon_targets="$canon_targets $result"
20586 else
20587 # Allow targets that config.sub doesn't recognize, like "all".
20588 canon_targets="$canon_targets $targ"
20589 fi
20590 done
20591fi
20592
20593all_targets=false
20594defvec=
20595selvecs=
20596assocvecs=
20597selarchs=
20598TDEFINES=
20599for targ in $target $canon_targets
20600do
20601 if test "x$targ" = "xall"; then
20602 all_targets=true
20603 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20604 else
20605 . $srcdir/config.bfd
20606 if test "x$targ" = "x$target"; then
20607 defvec=$targ_defvec
20608 fi
20609 selvecs="$selvecs $targ_defvec $targ_selvecs"
20610 selarchs="$selarchs $targ_archs"
20611 TDEFINES="$TDEFINES $targ_cflags"
20612 fi
20613done
20614
20615
20616# This processing still needs to be done if we're to decide properly whether
20617# 64-bit support needs to be compiled in. Currently, it will be included if
20618# the default or any other explicitly requested target requires it; it
20619# will not be included on a 32-bit host if no 64-bit target is requested, and
20620# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20621# used.
20622
20623# uniq the default and selected vectors in all the configured targets.
20624f=""
20625for i in $selvecs ; do
20626 case " $f " in
20627 *" $i "*) ;;
20628 *) f="$f $i" ;;
20629 esac
20630done
20631selvecs="$f"
20632
20633
20634# uniq the associated vectors in all the configured targets.
20635f=""
20636for i in $assocvecs ; do
20637 case " $f " in
20638 *" $i "*) ;;
20639 *) f="$f $i" ;;
20640 esac
20641done
20642assocvecs="$f"
20643
20644
20645# uniq the architectures in all the configured targets.
20646f=""
20647for i in $selarchs ; do
20648 case " $f " in
20649 *" $i "*) ;;
20650 *) f="$f $i" ;;
20651 esac
20652done
20653selarchs="$f"
20654
20655# Target backend .o files.
20656tb=
20657
20658elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20659
20660for vec in $selvecs
20661do
20662 target_size=32
20663 case "$vec" in
20664 # This list is alphabetized to make it easy to compare
20665 # with the two vector lists in targets.c. For the same reason,
20666 # use one entry per line, even though this leads to long lines.
20667 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20668 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20669 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20670 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20671 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20672 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20673 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20674 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20675 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20676 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20677 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20678 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20679 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20680 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20681 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20682 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20683 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20684 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20685 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20686 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20687 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20688 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20689 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20690 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20691 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20692 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20693 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20694 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20695 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20696 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20697 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20698 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20699 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20700 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20701 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20702 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20703 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20704 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20705 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20706 bfd_elf32_bigarm_symbian_vec)
20707 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20708 bfd_elf32_bigarm_vxworks_vec)
20709 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20710 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20711 bfd_elf32_bigmips_vxworks_vec)
20712 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20713 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20714 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20715 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20716 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20717 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20718 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20719 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20720 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20721 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20722 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20723 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20724 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20725 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20726 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20727 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20728 bfd_elf32_i386_dragonfly_vec)
20729 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20730 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20731 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20732 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20733 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20734 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20735 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20736 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20737 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20738 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20739 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20740 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20741 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20742 bfd_elf32_littlearm_symbian_vec)
20743 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20744 bfd_elf32_littlearm_vxworks_vec)
20745 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20746 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20747 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20748 bfd_elf32_littlemips_vxworks_vec)
20749 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20750 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20751 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20752 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20753 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20754 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20755 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20756 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20757 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20758 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20759 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20760 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20761 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20762 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20763 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20764 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20765 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20766 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20767 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20768 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20769 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20770 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20771 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20772 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20773 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20774 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20775 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20776 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20777 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20778 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20779 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20780 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20781 # FIXME: We include cofflink.lo not because it's needed for
20782 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20783 # which needs it but does not list it. Should be fixed in right place.
20784 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20785 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20786 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20787 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20788 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20789 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20790 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20791 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20792 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20793 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20794 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20795 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20796 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20797 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20798 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20799 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20800 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20801 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20802 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20803 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20804 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20805 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20806 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20807 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20808 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20809 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20810 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20811 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20812 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20813 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20814 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20815 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20816 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20817 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20818 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20819 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20820 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20821 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20822 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20823 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20824 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20825 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20826 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20827 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20828 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20829 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20830 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20831 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20832 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20833 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20834 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20835 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20836 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20837 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20838 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20839 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20840 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20841 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20842 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20843 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20844 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20845 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20846 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20847 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20848 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20849 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20850 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20851 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20852 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20853 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20854 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20855 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20856 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20857 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20858 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20859 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20860 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20861 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20862 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20863 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20864 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20865 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20866 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20867 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20868 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20869 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20870 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20871 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20872 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20873 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20874 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20875 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20876 ieee_vec) tb="$tb ieee.lo" ;;
20877 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20878 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20879 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20880 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20881 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20882 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20883 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20884 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20885 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20886 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20887 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20888 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20889 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20890 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20891 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20892 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20893 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20894 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20895 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20896 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20897 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20898 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20899 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20900 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20901 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20902 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20903 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20904 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20905 pef_vec) tb="$tb pef.lo" ;;
20906 pef_xlib_vec) tb="$tb pef.lo" ;;
20907 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20908 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20909 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20910 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20911 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20912 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20913 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20914 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20915 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20916 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20917 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20918 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20919 som_vec) tb="$tb som.lo" ;;
20920 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20921 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20922 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20923 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20924 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20925 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20926 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20927 sym_vec) tb="$tb xsym.lo" ;;
20928 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20929 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20930 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20931 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20932 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20933 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20934 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20935 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20936 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20937 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20938 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20939 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20940 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20941 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20942 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20943 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20944 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20945 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20946 versados_vec) tb="$tb versados.lo" ;;
20947 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20948 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20949 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20950 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20951 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20952 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20953
20954 # These appear out of order in targets.c
20955 srec_vec) tb="$tb srec.lo" ;;
20956 symbolsrec_vec) tb="$tb srec.lo" ;;
20957 tekhex_vec) tb="$tb tekhex.lo" ;;
20958 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20959 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20960
20961 "") ;;
20962 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20963echo "$as_me: error: *** unknown target vector $vec" >&2;}
20964 { (exit 1); exit 1; }; } ;;
20965 esac
20966
20967 if test ${target_size} = 64; then
20968 target64=true
20969 fi
20970 if test x"${vec}" = x"${defvec}"; then
20971 bfd_default_target_size=${target_size}
20972 fi
20973done
20974
20975# Target architecture .o files.
20976# A couple of CPUs use shorter file names to avoid problems on DOS
20977# filesystems.
20978ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20979
20980# Weed out duplicate .o files.
20981f=""
20982for i in $tb ; do
20983 case " $f " in
20984 *" $i "*) ;;
20985 *) f="$f $i" ;;
20986 esac
20987done
20988tb="$f"
20989
20990f=""
20991for i in $ta ; do
20992 case " $f " in
20993 *" $i "*) ;;
20994 *) f="$f $i" ;;
20995 esac
20996done
20997ta="$f"
20998
20999bfd_backends="$tb"
21000bfd_machines="$ta"
21001
21002if test x${all_targets} = xtrue ; then
21003 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21004 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21005 selvecs=
21006 havevecs=
21007 selarchs=
21008 test -n "$assocvecs" &&
21009 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21010else # all_targets is true
21011 # Only set these if they will be nonempty, for the clever echo.
21012 havevecs=
21013 assocvecs=
21014 test -n "$selvecs" &&
21015 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21016 test -n "$selvecs" &&
21017 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21018 test -n "$selarchs" &&
21019 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21020fi # all_targets is true
21021
21022case ${host64}-${target64}-${want64} in
21023 *true*)
21024 wordsize=64
21025 bfd64_libs='$(BFD64_LIBS)'
21026 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21027 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21028 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21029echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21031echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21032 fi
21033 if test -n "$GCC" ; then
21034 bad_64bit_gcc=no;
21035 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21036echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21037 # Add more tests for gcc versions with non-working 64-bit support here.
21038 cat >conftest.$ac_ext <<_ACEOF
21039/* confdefs.h. */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h. */
21044:__GNUC__:__GNUC_MINOR__:__i386__:
21045_ACEOF
21046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21047 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21048 bad_64bit_gcc=yes;
21049 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21050echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21051else
21052 echo "$as_me:$LINENO: result: no" >&5
21053echo "${ECHO_T}no" >&6
21054fi
21055rm -f conftest*
21056
21057 if test $bad_64bit_gcc = yes ; then
21058 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21059echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21060 { (exit 1); exit 1; }; }
21061 fi
21062 fi
21063 ;;
21064 false-false-false)
21065 wordsize=32
21066 all_backends='$(BFD32_BACKENDS)'
21067 ;;
21068esac
21069
21070
21071
21072
21073
21074
21075
21076
21077# Determine the host dependant file_ptr a.k.a. off_t type. In order
21078# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21079# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21080# Hopefully a reasonable assumption since fseeko et.al. should be
21081# upward compatible.
21082
21083
21084
21085
21086
21087for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21088do
21089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21090echo "$as_me:$LINENO: checking for $ac_func" >&5
21091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21092if eval "test \"\${$as_ac_var+set}\" = set"; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094else
21095 cat >conftest.$ac_ext <<_ACEOF
21096/* confdefs.h. */
21097_ACEOF
21098cat confdefs.h >>conftest.$ac_ext
21099cat >>conftest.$ac_ext <<_ACEOF
21100/* end confdefs.h. */
21101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21103#define $ac_func innocuous_$ac_func
21104
21105/* System header to define __stub macros and hopefully few prototypes,
21106 which can conflict with char $ac_func (); below.
21107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21108 <limits.h> exists even on freestanding compilers. */
21109
21110#ifdef __STDC__
21111# include <limits.h>
21112#else
21113# include <assert.h>
21114#endif
21115
21116#undef $ac_func
21117
21118/* Override any gcc2 internal prototype to avoid an error. */
21119#ifdef __cplusplus
21120extern "C"
21121{
21122#endif
21123/* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21125char $ac_func ();
21126/* The GNU C library defines this for functions which it implements
21127 to always fail with ENOSYS. Some functions are actually named
21128 something starting with __ and the normal name is an alias. */
21129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21130choke me
21131#else
21132char (*f) () = $ac_func;
21133#endif
21134#ifdef __cplusplus
21135}
21136#endif
21137
21138int
21139main ()
21140{
21141return f != $ac_func;
21142 ;
21143 return 0;
21144}
21145_ACEOF
21146rm -f conftest.$ac_objext conftest$ac_exeext
21147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21148 (eval $ac_link) 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -z "$ac_c_werror_flag"
21156 || test ! -s conftest.err'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; } &&
21162 { ac_try='test -s conftest$ac_exeext'
21163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164 (eval $ac_try) 2>&5
21165 ac_status=$?
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); }; }; then
21168 eval "$as_ac_var=yes"
21169else
21170 echo "$as_me: failed program was:" >&5
21171sed 's/^/| /' conftest.$ac_ext >&5
21172
21173eval "$as_ac_var=no"
21174fi
21175rm -f conftest.err conftest.$ac_objext \
21176 conftest$ac_exeext conftest.$ac_ext
21177fi
21178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21180if test `eval echo '${'$as_ac_var'}'` = yes; then
21181 cat >>confdefs.h <<_ACEOF
21182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21183_ACEOF
21184
21185fi
21186done
21187
21188if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21189 echo "$as_me:$LINENO: checking for off_t" >&5
21190echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21191if test "${ac_cv_type_off_t+set}" = set; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193else
21194 cat >conftest.$ac_ext <<_ACEOF
21195/* confdefs.h. */
21196_ACEOF
21197cat confdefs.h >>conftest.$ac_ext
21198cat >>conftest.$ac_ext <<_ACEOF
21199/* end confdefs.h. */
21200$ac_includes_default
21201int
21202main ()
21203{
21204if ((off_t *) 0)
21205 return 0;
21206if (sizeof (off_t))
21207 return 0;
21208 ;
21209 return 0;
21210}
21211_ACEOF
21212rm -f conftest.$ac_objext
21213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214 (eval $ac_compile) 2>conftest.er1
21215 ac_status=$?
21216 grep -v '^ *+' conftest.er1 >conftest.err
21217 rm -f conftest.er1
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
21221 { ac_try='test -z "$ac_c_werror_flag"
21222 || test ! -s conftest.err'
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_cv_type_off_t=yes
21235else
21236 echo "$as_me: failed program was:" >&5
21237sed 's/^/| /' conftest.$ac_ext >&5
21238
21239ac_cv_type_off_t=no
21240fi
21241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21242fi
21243echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21244echo "${ECHO_T}$ac_cv_type_off_t" >&6
21245
21246echo "$as_me:$LINENO: checking size of off_t" >&5
21247echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21248if test "${ac_cv_sizeof_off_t+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21250else
21251 if test "$ac_cv_type_off_t" = yes; then
21252 # The cast to unsigned long works around a bug in the HP C Compiler
21253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21255 # This bug is HP SR number 8606223364.
21256 if test "$cross_compiling" = yes; then
21257 # Depending upon the size, compute the lo and hi bounds.
21258cat >conftest.$ac_ext <<_ACEOF
21259/* confdefs.h. */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h. */
21264$ac_includes_default
21265int
21266main ()
21267{
21268static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21269test_array [0] = 0
21270
21271 ;
21272 return 0;
21273}
21274_ACEOF
21275rm -f conftest.$ac_objext
21276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21277 (eval $ac_compile) 2>conftest.er1
21278 ac_status=$?
21279 grep -v '^ *+' conftest.er1 >conftest.err
21280 rm -f conftest.er1
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } &&
21284 { ac_try='test -z "$ac_c_werror_flag"
21285 || test ! -s conftest.err'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21288 ac_status=$?
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; } &&
21291 { ac_try='test -s conftest.$ac_objext'
21292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21294 ac_status=$?
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); }; }; then
21297 ac_lo=0 ac_mid=0
21298 while :; do
21299 cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305$ac_includes_default
21306int
21307main ()
21308{
21309static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21310test_array [0] = 0
21311
21312 ;
21313 return 0;
21314}
21315_ACEOF
21316rm -f conftest.$ac_objext
21317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21318 (eval $ac_compile) 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
21325 { ac_try='test -z "$ac_c_werror_flag"
21326 || test ! -s conftest.err'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; } &&
21332 { ac_try='test -s conftest.$ac_objext'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; }; then
21338 ac_hi=$ac_mid; break
21339else
21340 echo "$as_me: failed program was:" >&5
21341sed 's/^/| /' conftest.$ac_ext >&5
21342
21343ac_lo=`expr $ac_mid + 1`
21344 if test $ac_lo -le $ac_mid; then
21345 ac_lo= ac_hi=
21346 break
21347 fi
21348 ac_mid=`expr 2 '*' $ac_mid + 1`
21349fi
21350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21351 done
21352else
21353 echo "$as_me: failed program was:" >&5
21354sed 's/^/| /' conftest.$ac_ext >&5
21355
21356cat >conftest.$ac_ext <<_ACEOF
21357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
21362$ac_includes_default
21363int
21364main ()
21365{
21366static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21367test_array [0] = 0
21368
21369 ;
21370 return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375 (eval $ac_compile) 2>conftest.er1
21376 ac_status=$?
21377 grep -v '^ *+' conftest.er1 >conftest.err
21378 rm -f conftest.er1
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
21382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_hi=-1 ac_mid=-1
21396 while :; do
21397 cat >conftest.$ac_ext <<_ACEOF
21398/* confdefs.h. */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h. */
21403$ac_includes_default
21404int
21405main ()
21406{
21407static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21408test_array [0] = 0
21409
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext
21415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21416 (eval $ac_compile) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_lo=$ac_mid; break
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441ac_hi=`expr '(' $ac_mid ')' - 1`
21442 if test $ac_mid -le $ac_hi; then
21443 ac_lo= ac_hi=
21444 break
21445 fi
21446 ac_mid=`expr 2 '*' $ac_mid`
21447fi
21448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21449 done
21450else
21451 echo "$as_me: failed program was:" >&5
21452sed 's/^/| /' conftest.$ac_ext >&5
21453
21454ac_lo= ac_hi=
21455fi
21456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21457fi
21458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21459# Binary search between lo and hi bounds.
21460while test "x$ac_lo" != "x$ac_hi"; do
21461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21462 cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468$ac_includes_default
21469int
21470main ()
21471{
21472static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21473test_array [0] = 0
21474
21475 ;
21476 return 0;
21477}
21478_ACEOF
21479rm -f conftest.$ac_objext
21480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481 (eval $ac_compile) 2>conftest.er1
21482 ac_status=$?
21483 grep -v '^ *+' conftest.er1 >conftest.err
21484 rm -f conftest.er1
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); } &&
21488 { ac_try='test -z "$ac_c_werror_flag"
21489 || test ! -s conftest.err'
21490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491 (eval $ac_try) 2>&5
21492 ac_status=$?
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; } &&
21495 { ac_try='test -s conftest.$ac_objext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_hi=$ac_mid
21502else
21503 echo "$as_me: failed program was:" >&5
21504sed 's/^/| /' conftest.$ac_ext >&5
21505
21506ac_lo=`expr '(' $ac_mid ')' + 1`
21507fi
21508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21509done
21510case $ac_lo in
21511?*) ac_cv_sizeof_off_t=$ac_lo;;
21512'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21513echo "$as_me: error: in \`$ac_pwd':" >&2;}
21514{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21515See \`config.log' for more details." >&5
21516echo "$as_me: error: cannot compute sizeof (off_t), 77
21517See \`config.log' for more details." >&2;}
21518 { (exit 1); exit 1; }; }; } ;;
21519esac
21520else
21521 if test "$cross_compiling" = yes; then
21522 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21523echo "$as_me: error: in \`$ac_pwd':" >&2;}
21524{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21525See \`config.log' for more details." >&5
21526echo "$as_me: error: cannot run test program while cross compiling
21527See \`config.log' for more details." >&2;}
21528 { (exit 1); exit 1; }; }; }
21529else
21530 cat >conftest.$ac_ext <<_ACEOF
21531/* confdefs.h. */
21532_ACEOF
21533cat confdefs.h >>conftest.$ac_ext
21534cat >>conftest.$ac_ext <<_ACEOF
21535/* end confdefs.h. */
21536$ac_includes_default
21537long longval () { return (long) (sizeof (off_t)); }
21538unsigned long ulongval () { return (long) (sizeof (off_t)); }
21539#include <stdio.h>
21540#include <stdlib.h>
21541int
21542main ()
21543{
21544
21545 FILE *f = fopen ("conftest.val", "w");
21546 if (! f)
21547 exit (1);
21548 if (((long) (sizeof (off_t))) < 0)
21549 {
21550 long i = longval ();
21551 if (i != ((long) (sizeof (off_t))))
21552 exit (1);
21553 fprintf (f, "%ld\n", i);
21554 }
21555 else
21556 {
21557 unsigned long i = ulongval ();
21558 if (i != ((long) (sizeof (off_t))))
21559 exit (1);
21560 fprintf (f, "%lu\n", i);
21561 }
21562 exit (ferror (f) || fclose (f) != 0);
21563
21564 ;
21565 return 0;
21566}
21567_ACEOF
21568rm -f conftest$ac_exeext
21569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21570 (eval $ac_link) 2>&5
21571 ac_status=$?
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 ac_cv_sizeof_off_t=`cat conftest.val`
21580else
21581 echo "$as_me: program exited with status $ac_status" >&5
21582echo "$as_me: failed program was:" >&5
21583sed 's/^/| /' conftest.$ac_ext >&5
21584
21585( exit $ac_status )
21586{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21587echo "$as_me: error: in \`$ac_pwd':" >&2;}
21588{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21589See \`config.log' for more details." >&5
21590echo "$as_me: error: cannot compute sizeof (off_t), 77
21591See \`config.log' for more details." >&2;}
21592 { (exit 1); exit 1; }; }; }
21593fi
21594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21595fi
21596fi
21597rm -f conftest.val
21598else
21599 ac_cv_sizeof_off_t=0
21600fi
21601fi
21602echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21603echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21604cat >>confdefs.h <<_ACEOF
21605#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21606_ACEOF
21607
21608
21609fi
21610echo "$as_me:$LINENO: checking file_ptr type" >&5
21611echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21612bfd_file_ptr="long"
21613bfd_ufile_ptr="unsigned long"
21614if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21615 -o x"${ac_cv_sizeof_off_t}" = x8; then
21616 bfd_file_ptr=BFD_HOST_64_BIT
21617 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21618fi
21619echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21620echo "${ECHO_T}$bfd_file_ptr" >&6
21621
21622
21623
21624
21625tdefaults=""
21626test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21627test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21628test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21629test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21630test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21631
21632
21633
21634
21635for ac_header in stdlib.h unistd.h
21636do
21637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21638if eval "test \"\${$as_ac_Header+set}\" = set"; then
21639 echo "$as_me:$LINENO: checking for $ac_header" >&5
21640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21641if eval "test \"\${$as_ac_Header+set}\" = set"; then
21642 echo $ECHO_N "(cached) $ECHO_C" >&6
21643fi
21644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21646else
21647 # Is the header compilable?
21648echo "$as_me:$LINENO: checking $ac_header usability" >&5
21649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21650cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
21656$ac_includes_default
21657#include <$ac_header>
21658_ACEOF
21659rm -f conftest.$ac_objext
21660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21661 (eval $ac_compile) 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } &&
21668 { ac_try='test -z "$ac_c_werror_flag"
21669 || test ! -s conftest.err'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; } &&
21675 { ac_try='test -s conftest.$ac_objext'
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; }; then
21681 ac_header_compiler=yes
21682else
21683 echo "$as_me: failed program was:" >&5
21684sed 's/^/| /' conftest.$ac_ext >&5
21685
21686ac_header_compiler=no
21687fi
21688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21690echo "${ECHO_T}$ac_header_compiler" >&6
21691
21692# Is the header present?
21693echo "$as_me:$LINENO: checking $ac_header presence" >&5
21694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21695cat >conftest.$ac_ext <<_ACEOF
21696/* confdefs.h. */
21697_ACEOF
21698cat confdefs.h >>conftest.$ac_ext
21699cat >>conftest.$ac_ext <<_ACEOF
21700/* end confdefs.h. */
21701#include <$ac_header>
21702_ACEOF
21703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev/null; then
21711 if test -s conftest.err; then
21712 ac_cpp_err=$ac_c_preproc_warn_flag
21713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21714 else
21715 ac_cpp_err=
21716 fi
21717else
21718 ac_cpp_err=yes
21719fi
21720if test -z "$ac_cpp_err"; then
21721 ac_header_preproc=yes
21722else
21723 echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
21726 ac_header_preproc=no
21727fi
21728rm -f conftest.err conftest.$ac_ext
21729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21730echo "${ECHO_T}$ac_header_preproc" >&6
21731
21732# So? What about this header?
21733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21734 yes:no: )
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21739 ac_header_preproc=yes
21740 ;;
21741 no:yes:* )
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21754 (
21755 cat <<\_ASBOX
21756## ------------------------------------------ ##
21757## Report this to the AC_PACKAGE_NAME lists. ##
21758## ------------------------------------------ ##
21759_ASBOX
21760 ) |
21761 sed "s/^/$as_me: WARNING: /" >&2
21762 ;;
21763esac
21764echo "$as_me:$LINENO: checking for $ac_header" >&5
21765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21766if eval "test \"\${$as_ac_Header+set}\" = set"; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21768else
21769 eval "$as_ac_Header=\$ac_header_preproc"
21770fi
21771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21773
21774fi
21775if test `eval echo '${'$as_ac_Header'}'` = yes; then
21776 cat >>confdefs.h <<_ACEOF
21777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21778_ACEOF
21779
21780fi
21781
21782done
21783
21784
21785for ac_func in getpagesize
21786do
21787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21788echo "$as_me:$LINENO: checking for $ac_func" >&5
21789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21790if eval "test \"\${$as_ac_var+set}\" = set"; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21792else
21793 cat >conftest.$ac_ext <<_ACEOF
21794/* confdefs.h. */
21795_ACEOF
21796cat confdefs.h >>conftest.$ac_ext
21797cat >>conftest.$ac_ext <<_ACEOF
21798/* end confdefs.h. */
21799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21801#define $ac_func innocuous_$ac_func
21802
21803/* System header to define __stub macros and hopefully few prototypes,
21804 which can conflict with char $ac_func (); below.
21805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21806 <limits.h> exists even on freestanding compilers. */
21807
21808#ifdef __STDC__
21809# include <limits.h>
21810#else
21811# include <assert.h>
21812#endif
21813
21814#undef $ac_func
21815
21816/* Override any gcc2 internal prototype to avoid an error. */
21817#ifdef __cplusplus
21818extern "C"
21819{
21820#endif
21821/* We use char because int might match the return type of a gcc2
21822 builtin and then its argument prototype would still apply. */
21823char $ac_func ();
21824/* The GNU C library defines this for functions which it implements
21825 to always fail with ENOSYS. Some functions are actually named
21826 something starting with __ and the normal name is an alias. */
21827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21828choke me
21829#else
21830char (*f) () = $ac_func;
21831#endif
21832#ifdef __cplusplus
21833}
21834#endif
21835
21836int
21837main ()
21838{
21839return f != $ac_func;
21840 ;
21841 return 0;
21842}
21843_ACEOF
21844rm -f conftest.$ac_objext conftest$ac_exeext
21845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21846 (eval $ac_link) 2>conftest.er1
21847 ac_status=$?
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try='test -z "$ac_c_werror_flag"
21854 || test ! -s conftest.err'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; } &&
21860 { ac_try='test -s conftest$ac_exeext'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; }; then
21866 eval "$as_ac_var=yes"
21867else
21868 echo "$as_me: failed program was:" >&5
21869sed 's/^/| /' conftest.$ac_ext >&5
21870
21871eval "$as_ac_var=no"
21872fi
21873rm -f conftest.err conftest.$ac_objext \
21874 conftest$ac_exeext conftest.$ac_ext
21875fi
21876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21878if test `eval echo '${'$as_ac_var'}'` = yes; then
21879 cat >>confdefs.h <<_ACEOF
21880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21881_ACEOF
21882
21883fi
21884done
21885
21886echo "$as_me:$LINENO: checking for working mmap" >&5
21887echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21888if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21890else
21891 if test "$cross_compiling" = yes; then
21892 ac_cv_func_mmap_fixed_mapped=no
21893else
21894 cat >conftest.$ac_ext <<_ACEOF
21895/* confdefs.h. */
21896_ACEOF
21897cat confdefs.h >>conftest.$ac_ext
21898cat >>conftest.$ac_ext <<_ACEOF
21899/* end confdefs.h. */
21900$ac_includes_default
21901/* malloc might have been renamed as rpl_malloc. */
21902#undef malloc
21903
21904/* Thanks to Mike Haertel and Jim Avera for this test.
21905 Here is a matrix of mmap possibilities:
21906 mmap private not fixed
21907 mmap private fixed at somewhere currently unmapped
21908 mmap private fixed at somewhere already mapped
21909 mmap shared not fixed
21910 mmap shared fixed at somewhere currently unmapped
21911 mmap shared fixed at somewhere already mapped
21912 For private mappings, we should verify that changes cannot be read()
21913 back from the file, nor mmap's back from the file at a different
21914 address. (There have been systems where private was not correctly
21915 implemented like the infamous i386 svr4.0, and systems where the
21916 VM page cache was not coherent with the file system buffer cache
21917 like early versions of FreeBSD and possibly contemporary NetBSD.)
21918 For shared mappings, we should conversely verify that changes get
21919 propagated back to all the places they're supposed to be.
21920
21921 Grep wants private fixed already mapped.
21922 The main things grep needs to know about mmap are:
21923 * does it exist and is it safe to write into the mmap'd area
21924 * how to use it (BSD variants) */
21925
21926#include <fcntl.h>
21927#include <sys/mman.h>
21928
21929#if !STDC_HEADERS && !HAVE_STDLIB_H
21930char *malloc ();
21931#endif
21932
21933/* This mess was copied from the GNU getpagesize.h. */
21934#if !HAVE_GETPAGESIZE
21935/* Assume that all systems that can run configure have sys/param.h. */
21936# if !HAVE_SYS_PARAM_H
21937# define HAVE_SYS_PARAM_H 1
21938# endif
21939
21940# ifdef _SC_PAGESIZE
21941# define getpagesize() sysconf(_SC_PAGESIZE)
21942# else /* no _SC_PAGESIZE */
21943# if HAVE_SYS_PARAM_H
21944# include <sys/param.h>
21945# ifdef EXEC_PAGESIZE
21946# define getpagesize() EXEC_PAGESIZE
21947# else /* no EXEC_PAGESIZE */
21948# ifdef NBPG
21949# define getpagesize() NBPG * CLSIZE
21950# ifndef CLSIZE
21951# define CLSIZE 1
21952# endif /* no CLSIZE */
21953# else /* no NBPG */
21954# ifdef NBPC
21955# define getpagesize() NBPC
21956# else /* no NBPC */
21957# ifdef PAGESIZE
21958# define getpagesize() PAGESIZE
21959# endif /* PAGESIZE */
21960# endif /* no NBPC */
21961# endif /* no NBPG */
21962# endif /* no EXEC_PAGESIZE */
21963# else /* no HAVE_SYS_PARAM_H */
21964# define getpagesize() 8192 /* punt totally */
21965# endif /* no HAVE_SYS_PARAM_H */
21966# endif /* no _SC_PAGESIZE */
21967
21968#endif /* no HAVE_GETPAGESIZE */
21969
21970int
21971main ()
21972{
21973 char *data, *data2, *data3;
21974 int i, pagesize;
21975 int fd;
21976
21977 pagesize = getpagesize ();
21978
21979 /* First, make a file with some known garbage in it. */
21980 data = (char *) malloc (pagesize);
21981 if (!data)
21982 exit (1);
21983 for (i = 0; i < pagesize; ++i)
21984 *(data + i) = rand ();
21985 umask (0);
21986 fd = creat ("conftest.mmap", 0600);
21987 if (fd < 0)
21988 exit (1);
21989 if (write (fd, data, pagesize) != pagesize)
21990 exit (1);
21991 close (fd);
21992
21993 /* Next, try to mmap the file at a fixed address which already has
21994 something else allocated at it. If we can, also make sure that
21995 we see the same garbage. */
21996 fd = open ("conftest.mmap", O_RDWR);
21997 if (fd < 0)
21998 exit (1);
21999 data2 = (char *) malloc (2 * pagesize);
22000 if (!data2)
22001 exit (1);
22002 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22003 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22004 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22005 exit (1);
22006 for (i = 0; i < pagesize; ++i)
22007 if (*(data + i) != *(data2 + i))
22008 exit (1);
22009
22010 /* Finally, make sure that changes to the mapped area do not
22011 percolate back to the file as seen by read(). (This is a bug on
22012 some variants of i386 svr4.0.) */
22013 for (i = 0; i < pagesize; ++i)
22014 *(data2 + i) = *(data2 + i) + 1;
22015 data3 = (char *) malloc (pagesize);
22016 if (!data3)
22017 exit (1);
22018 if (read (fd, data3, pagesize) != pagesize)
22019 exit (1);
22020 for (i = 0; i < pagesize; ++i)
22021 if (*(data + i) != *(data3 + i))
22022 exit (1);
22023 close (fd);
22024 exit (0);
22025}
22026_ACEOF
22027rm -f conftest$ac_exeext
22028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22029 (eval $ac_link) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_func_mmap_fixed_mapped=yes
22039else
22040 echo "$as_me: program exited with status $ac_status" >&5
22041echo "$as_me: failed program was:" >&5
22042sed 's/^/| /' conftest.$ac_ext >&5
22043
22044( exit $ac_status )
22045ac_cv_func_mmap_fixed_mapped=no
22046fi
22047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22048fi
22049fi
22050echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22051echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22052if test $ac_cv_func_mmap_fixed_mapped = yes; then
22053
22054cat >>confdefs.h <<\_ACEOF
22055#define HAVE_MMAP 1
22056_ACEOF
22057
22058fi
22059rm -f conftest.mmap
22060
22061
22062
22063for ac_func in madvise mprotect
22064do
22065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066echo "$as_me:$LINENO: checking for $ac_func" >&5
22067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22068if eval "test \"\${$as_ac_var+set}\" = set"; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070else
22071 cat >conftest.$ac_ext <<_ACEOF
22072/* confdefs.h. */
22073_ACEOF
22074cat confdefs.h >>conftest.$ac_ext
22075cat >>conftest.$ac_ext <<_ACEOF
22076/* end confdefs.h. */
22077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22079#define $ac_func innocuous_$ac_func
22080
22081/* System header to define __stub macros and hopefully few prototypes,
22082 which can conflict with char $ac_func (); below.
22083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084 <limits.h> exists even on freestanding compilers. */
22085
22086#ifdef __STDC__
22087# include <limits.h>
22088#else
22089# include <assert.h>
22090#endif
22091
22092#undef $ac_func
22093
22094/* Override any gcc2 internal prototype to avoid an error. */
22095#ifdef __cplusplus
22096extern "C"
22097{
22098#endif
22099/* We use char because int might match the return type of a gcc2
22100 builtin and then its argument prototype would still apply. */
22101char $ac_func ();
22102/* The GNU C library defines this for functions which it implements
22103 to always fail with ENOSYS. Some functions are actually named
22104 something starting with __ and the normal name is an alias. */
22105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22106choke me
22107#else
22108char (*f) () = $ac_func;
22109#endif
22110#ifdef __cplusplus
22111}
22112#endif
22113
22114int
22115main ()
22116{
22117return f != $ac_func;
22118 ;
22119 return 0;
22120}
22121_ACEOF
22122rm -f conftest.$ac_objext conftest$ac_exeext
22123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22124 (eval $ac_link) 2>conftest.er1
22125 ac_status=$?
22126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
22131 { ac_try='test -z "$ac_c_werror_flag"
22132 || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest$ac_exeext'
22139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 eval "$as_ac_var=yes"
22145else
22146 echo "$as_me: failed program was:" >&5
22147sed 's/^/| /' conftest.$ac_ext >&5
22148
22149eval "$as_ac_var=no"
22150fi
22151rm -f conftest.err conftest.$ac_objext \
22152 conftest$ac_exeext conftest.$ac_ext
22153fi
22154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22156if test `eval echo '${'$as_ac_var'}'` = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22159_ACEOF
22160
22161fi
22162done
22163
22164case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22165 true+yes )
22166cat >>confdefs.h <<\_ACEOF
22167#define USE_MMAP 1
22168_ACEOF
22169 ;;
22170esac
22171
22172rm -f doc/config.status
22173 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22174
22175
22176 ac_config_commands="$ac_config_commands default"
22177
22178
22179
22180
22181
22182
22183cat >confcache <<\_ACEOF
22184# This file is a shell script that caches the results of configure
22185# tests run on this system so they can be shared between configure
22186# scripts and configure runs, see configure's option --config-cache.
22187# It is not useful on other systems. If it contains results you don't
22188# want to keep, you may remove or edit it.
22189#
22190# config.status only pays attention to the cache file if you give it
22191# the --recheck option to rerun configure.
22192#
22193# `ac_cv_env_foo' variables (set or unset) will be overridden when
22194# loading this file, other *unset* `ac_cv_foo' will be assigned the
22195# following values.
22196
22197_ACEOF
22198
22199# The following way of writing the cache mishandles newlines in values,
22200# but we know of no workaround that is simple, portable, and efficient.
22201# So, don't put newlines in cache variables' values.
22202# Ultrix sh set writes to stderr and can't be redirected directly,
22203# and sets the high bit in the cache file unless we assign to the vars.
22204{
22205 (set) 2>&1 |
22206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22207 *ac_space=\ *)
22208 # `set' does not quote correctly, so add quotes (double-quote
22209 # substitution turns \\\\ into \\, and sed turns \\ into \).
22210 sed -n \
22211 "s/'/'\\\\''/g;
22212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22213 ;;
22214 *)
22215 # `set' quotes correctly as required by POSIX, so do not add quotes.
22216 sed -n \
22217 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22218 ;;
22219 esac;
22220} |
22221 sed '
22222 t clear
22223 : clear
22224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22225 t end
22226 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22227 : end' >>confcache
22228if diff $cache_file confcache >/dev/null 2>&1; then :; else
22229 if test -w $cache_file; then
22230 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22231 cat confcache >$cache_file
22232 else
22233 echo "not updating unwritable cache $cache_file"
22234 fi
22235fi
22236rm -f confcache
22237
22238test "x$prefix" = xNONE && prefix=$ac_default_prefix
22239# Let make expand exec_prefix.
22240test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22241
22242# VPATH may cause trouble with some makes, so we remove $(srcdir),
22243# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22244# trailing colons and then remove the whole line if VPATH becomes empty
22245# (actually we leave an empty line to preserve line numbers).
22246if test "x$srcdir" = x.; then
22247 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22248s/:*\$(srcdir):*/:/;
22249s/:*\${srcdir}:*/:/;
22250s/:*@srcdir@:*/:/;
22251s/^\([^=]*=[ ]*\):*/\1/;
22252s/:*$//;
22253s/^[^=]*=[ ]*$//;
22254}'
22255fi
22256
22257DEFS=-DHAVE_CONFIG_H
22258
22259ac_libobjs=
22260ac_ltlibobjs=
22261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22262 # 1. Remove the extension, and $U if already installed.
22263 ac_i=`echo "$ac_i" |
22264 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22265 # 2. Add them.
22266 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22267 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22268done
22269LIBOBJS=$ac_libobjs
22270
22271LTLIBOBJS=$ac_ltlibobjs
22272
22273
22274if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22275 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22276Usually this means the macro was only invoked conditionally." >&5
22277echo "$as_me: error: conditional \"AMDEP\" was never defined.
22278Usually this means the macro was only invoked conditionally." >&2;}
22279 { (exit 1); exit 1; }; }
22280fi
22281if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22282 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22283Usually this means the macro was only invoked conditionally." >&5
22284echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22285Usually this means the macro was only invoked conditionally." >&2;}
22286 { (exit 1); exit 1; }; }
22287fi
22288if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22289 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22290Usually this means the macro was only invoked conditionally." >&5
22291echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22292Usually this means the macro was only invoked conditionally." >&2;}
22293 { (exit 1); exit 1; }; }
22294fi
22295if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22296 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22297Usually this means the macro was only invoked conditionally." >&5
22298echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22299Usually this means the macro was only invoked conditionally." >&2;}
22300 { (exit 1); exit 1; }; }
22301fi
22302if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22303 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22304Usually this means the macro was only invoked conditionally." >&5
22305echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22306Usually this means the macro was only invoked conditionally." >&2;}
22307 { (exit 1); exit 1; }; }
22308fi
22309
22310: ${CONFIG_STATUS=./config.status}
22311ac_clean_files_save=$ac_clean_files
22312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22313{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22314echo "$as_me: creating $CONFIG_STATUS" >&6;}
22315cat >$CONFIG_STATUS <<_ACEOF
22316#! $SHELL
22317# Generated by $as_me.
22318# Run this file to recreate the current configuration.
22319# Compiler output produced by configure, useful for debugging
22320# configure, is in config.log if it exists.
22321
22322debug=false
22323ac_cs_recheck=false
22324ac_cs_silent=false
22325SHELL=\${CONFIG_SHELL-$SHELL}
22326_ACEOF
22327
22328cat >>$CONFIG_STATUS <<\_ACEOF
22329## --------------------- ##
22330## M4sh Initialization. ##
22331## --------------------- ##
22332
22333# Be Bourne compatible
22334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22335 emulate sh
22336 NULLCMD=:
22337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22338 # is contrary to our usage. Disable this feature.
22339 alias -g '${1+"$@"}'='"$@"'
22340elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22341 set -o posix
22342fi
22343DUALCASE=1; export DUALCASE # for MKS sh
22344
22345# Support unset when possible.
22346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22347 as_unset=unset
22348else
22349 as_unset=false
22350fi
22351
22352
22353# Work around bugs in pre-3.0 UWIN ksh.
22354$as_unset ENV MAIL MAILPATH
22355PS1='$ '
22356PS2='> '
22357PS4='+ '
22358
22359# NLS nuisances.
22360for as_var in \
22361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22363 LC_TELEPHONE LC_TIME
22364do
22365 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22366 eval $as_var=C; export $as_var
22367 else
22368 $as_unset $as_var
22369 fi
22370done
22371
22372# Required to use basename.
22373if expr a : '\(a\)' >/dev/null 2>&1; then
22374 as_expr=expr
22375else
22376 as_expr=false
22377fi
22378
22379if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22380 as_basename=basename
22381else
22382 as_basename=false
22383fi
22384
22385
22386# Name of the executable.
22387as_me=`$as_basename "$0" ||
22388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22389 X"$0" : 'X\(//\)$' \| \
22390 X"$0" : 'X\(/\)$' \| \
22391 . : '\(.\)' 2>/dev/null ||
22392echo X/"$0" |
22393 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22394 /^X\/\(\/\/\)$/{ s//\1/; q; }
22395 /^X\/\(\/\).*/{ s//\1/; q; }
22396 s/.*/./; q'`
22397
22398
22399# PATH needs CR, and LINENO needs CR and PATH.
22400# Avoid depending upon Character Ranges.
22401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22404as_cr_digits='0123456789'
22405as_cr_alnum=$as_cr_Letters$as_cr_digits
22406
22407# The user is always right.
22408if test "${PATH_SEPARATOR+set}" != set; then
22409 echo "#! /bin/sh" >conf$$.sh
22410 echo "exit 0" >>conf$$.sh
22411 chmod +x conf$$.sh
22412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22413 PATH_SEPARATOR=';'
22414 else
22415 PATH_SEPARATOR=:
22416 fi
22417 rm -f conf$$.sh
22418fi
22419
22420
22421 as_lineno_1=$LINENO
22422 as_lineno_2=$LINENO
22423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22424 test "x$as_lineno_1" != "x$as_lineno_2" &&
22425 test "x$as_lineno_3" = "x$as_lineno_2" || {
22426 # Find who we are. Look in the path if we contain no path at all
22427 # relative or not.
22428 case $0 in
22429 *[\\/]* ) as_myself=$0 ;;
22430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431for as_dir in $PATH
22432do
22433 IFS=$as_save_IFS
22434 test -z "$as_dir" && as_dir=.
22435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22436done
22437
22438 ;;
22439 esac
22440 # We did not find ourselves, most probably we were run as `sh COMMAND'
22441 # in which case we are not to be found in the path.
22442 if test "x$as_myself" = x; then
22443 as_myself=$0
22444 fi
22445 if test ! -f "$as_myself"; then
22446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22447echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22448 { (exit 1); exit 1; }; }
22449 fi
22450 case $CONFIG_SHELL in
22451 '')
22452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22453for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22454do
22455 IFS=$as_save_IFS
22456 test -z "$as_dir" && as_dir=.
22457 for as_base in sh bash ksh sh5; do
22458 case $as_dir in
22459 /*)
22460 if ("$as_dir/$as_base" -c '
22461 as_lineno_1=$LINENO
22462 as_lineno_2=$LINENO
22463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22464 test "x$as_lineno_1" != "x$as_lineno_2" &&
22465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22466 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22467 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22468 CONFIG_SHELL=$as_dir/$as_base
22469 export CONFIG_SHELL
22470 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22471 fi;;
22472 esac
22473 done
22474done
22475;;
22476 esac
22477
22478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22479 # uniformly replaced by the line number. The first 'sed' inserts a
22480 # line-number line before each line; the second 'sed' does the real
22481 # work. The second script uses 'N' to pair each line-number line
22482 # with the numbered line, and appends trailing '-' during
22483 # substitution so that $LINENO is not a special case at line end.
22484 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22485 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22486 sed '=' <$as_myself |
22487 sed '
22488 N
22489 s,$,-,
22490 : loop
22491 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22492 t loop
22493 s,-$,,
22494 s,^['$as_cr_digits']*\n,,
22495 ' >$as_me.lineno &&
22496 chmod +x $as_me.lineno ||
22497 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22498echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22499 { (exit 1); exit 1; }; }
22500
22501 # Don't try to exec as it changes $[0], causing all sort of problems
22502 # (the dirname of $[0] is not the place where we might find the
22503 # original and so on. Autoconf is especially sensible to this).
22504 . ./$as_me.lineno
22505 # Exit status is that of the last command.
22506 exit
22507}
22508
22509
22510case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22511 *c*,-n*) ECHO_N= ECHO_C='
22512' ECHO_T=' ' ;;
22513 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22514 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22515esac
22516
22517if expr a : '\(a\)' >/dev/null 2>&1; then
22518 as_expr=expr
22519else
22520 as_expr=false
22521fi
22522
22523rm -f conf$$ conf$$.exe conf$$.file
22524echo >conf$$.file
22525if ln -s conf$$.file conf$$ 2>/dev/null; then
22526 # We could just check for DJGPP; but this test a) works b) is more generic
22527 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22528 if test -f conf$$.exe; then
22529 # Don't use ln at all; we don't have any links
22530 as_ln_s='cp -p'
22531 else
22532 as_ln_s='ln -s'
22533 fi
22534elif ln conf$$.file conf$$ 2>/dev/null; then
22535 as_ln_s=ln
22536else
22537 as_ln_s='cp -p'
22538fi
22539rm -f conf$$ conf$$.exe conf$$.file
22540
22541if mkdir -p . 2>/dev/null; then
22542 as_mkdir_p=:
22543else
22544 test -d ./-p && rmdir ./-p
22545 as_mkdir_p=false
22546fi
22547
22548as_executable_p="test -f"
22549
22550# Sed expression to map a string onto a valid CPP name.
22551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22552
22553# Sed expression to map a string onto a valid variable name.
22554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22555
22556
22557# IFS
22558# We need space, tab and new line, in precisely that order.
22559as_nl='
22560'
22561IFS=" $as_nl"
22562
22563# CDPATH.
22564$as_unset CDPATH
22565
22566exec 6>&1
22567
22568# Open the log real soon, to keep \$[0] and so on meaningful, and to
22569# report actual input values of CONFIG_FILES etc. instead of their
22570# values after options handling. Logging --version etc. is OK.
22571exec 5>>config.log
22572{
22573 echo
22574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575## Running $as_me. ##
22576_ASBOX
22577} >&5
22578cat >&5 <<_CSEOF
22579
22580This file was extended by $as_me, which was
22581generated by GNU Autoconf 2.59. Invocation command line was
22582
22583 CONFIG_FILES = $CONFIG_FILES
22584 CONFIG_HEADERS = $CONFIG_HEADERS
22585 CONFIG_LINKS = $CONFIG_LINKS
22586 CONFIG_COMMANDS = $CONFIG_COMMANDS
22587 $ $0 $@
22588
22589_CSEOF
22590echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22591echo >&5
22592_ACEOF
22593
22594# Files that config.status was made for.
22595if test -n "$ac_config_files"; then
22596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22597fi
22598
22599if test -n "$ac_config_headers"; then
22600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22601fi
22602
22603if test -n "$ac_config_links"; then
22604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22605fi
22606
22607if test -n "$ac_config_commands"; then
22608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22609fi
22610
22611cat >>$CONFIG_STATUS <<\_ACEOF
22612
22613ac_cs_usage="\
22614\`$as_me' instantiates files from templates according to the
22615current configuration.
22616
22617Usage: $0 [OPTIONS] [FILE]...
22618
22619 -h, --help print this help, then exit
22620 -V, --version print version number, then exit
22621 -q, --quiet do not print progress messages
22622 -d, --debug don't remove temporary files
22623 --recheck update $as_me by reconfiguring in the same conditions
22624 --file=FILE[:TEMPLATE]
22625 instantiate the configuration file FILE
22626 --header=FILE[:TEMPLATE]
22627 instantiate the configuration header FILE
22628
22629Configuration files:
22630$config_files
22631
22632Configuration headers:
22633$config_headers
22634
22635Configuration commands:
22636$config_commands
22637
22638Report bugs to <bug-autoconf@gnu.org>."
22639_ACEOF
22640
22641cat >>$CONFIG_STATUS <<_ACEOF
22642ac_cs_version="\\
22643config.status
22644configured by $0, generated by GNU Autoconf 2.59,
22645 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22646
22647Copyright (C) 2003 Free Software Foundation, Inc.
22648This config.status script is free software; the Free Software Foundation
22649gives unlimited permission to copy, distribute and modify it."
22650srcdir=$srcdir
22651INSTALL="$INSTALL"
22652_ACEOF
22653
22654cat >>$CONFIG_STATUS <<\_ACEOF
22655# If no file are specified by the user, then we need to provide default
22656# value. By we need to know if files were specified by the user.
22657ac_need_defaults=:
22658while test $# != 0
22659do
22660 case $1 in
22661 --*=*)
22662 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22663 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22664 ac_shift=:
22665 ;;
22666 -*)
22667 ac_option=$1
22668 ac_optarg=$2
22669 ac_shift=shift
22670 ;;
22671 *) # This is not an option, so the user has probably given explicit
22672 # arguments.
22673 ac_option=$1
22674 ac_need_defaults=false;;
22675 esac
22676
22677 case $ac_option in
22678 # Handling of the options.
22679_ACEOF
22680cat >>$CONFIG_STATUS <<\_ACEOF
22681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22682 ac_cs_recheck=: ;;
22683 --version | --vers* | -V )
22684 echo "$ac_cs_version"; exit 0 ;;
22685 --he | --h)
22686 # Conflict between --help and --header
22687 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22688Try \`$0 --help' for more information." >&5
22689echo "$as_me: error: ambiguous option: $1
22690Try \`$0 --help' for more information." >&2;}
22691 { (exit 1); exit 1; }; };;
22692 --help | --hel | -h )
22693 echo "$ac_cs_usage"; exit 0 ;;
22694 --debug | --d* | -d )
22695 debug=: ;;
22696 --file | --fil | --fi | --f )
22697 $ac_shift
22698 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22699 ac_need_defaults=false;;
22700 --header | --heade | --head | --hea )
22701 $ac_shift
22702 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22703 ac_need_defaults=false;;
22704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22706 ac_cs_silent=: ;;
22707
22708 # This is an error.
22709 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22710Try \`$0 --help' for more information." >&5
22711echo "$as_me: error: unrecognized option: $1
22712Try \`$0 --help' for more information." >&2;}
22713 { (exit 1); exit 1; }; } ;;
22714
22715 *) ac_config_targets="$ac_config_targets $1" ;;
22716
22717 esac
22718 shift
22719done
22720
22721ac_configure_extra_args=
22722
22723if $ac_cs_silent; then
22724 exec 6>/dev/null
22725 ac_configure_extra_args="$ac_configure_extra_args --silent"
22726fi
22727
22728_ACEOF
22729cat >>$CONFIG_STATUS <<_ACEOF
22730if \$ac_cs_recheck; then
22731 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22732 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22733fi
22734
22735_ACEOF
22736
22737cat >>$CONFIG_STATUS <<_ACEOF
22738#
22739# INIT-COMMANDS section.
22740#
22741
22742AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22743
22744
22745# The HP-UX ksh and POSIX shell print the target directory to stdout
22746# if CDPATH is set.
22747(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22748
22749sed_quote_subst='$sed_quote_subst'
22750double_quote_subst='$double_quote_subst'
22751delay_variable_subst='$delay_variable_subst'
22752enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22753macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22754macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22755enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22756pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22757enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22758host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22759host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22760host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22761build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22762build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22763build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22764SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22765Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22766GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22767EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22768FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22769LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22770NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22771LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22772max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22773ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22774exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22775lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22776lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22777lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22778reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22779reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22780OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22781deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22782file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22783AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22784AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22785STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22786RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22787old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22788old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22789old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22790CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22791CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22792compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22793GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22794lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22795lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22796lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
22797lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22798objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22799SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22800ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22801MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22802lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22803lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22804lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22805lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22806lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22807need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22808DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22809NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22810LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22811OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22812OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22813libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22814shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22815extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22816archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22817enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22818export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22819whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22820compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22821old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22822old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22823archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22824archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22825module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22826module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22827with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22828allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22829no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22830hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22831hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22832hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22833hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22834hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22835hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22836hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22838inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22839link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22840fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22841always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22842export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22844include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22845prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22846file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22847variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22848need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22849need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22850version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22851runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22852shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22853shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22854libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22855library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22856soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22857postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22858postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22859finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22860finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22861hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22862sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22863sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22864hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22865enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22866enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22867enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22868old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22869striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22870
22871LTCC='$LTCC'
22872LTCFLAGS='$LTCFLAGS'
22873compiler='$compiler_DEFAULT'
22874
22875# Quote evaled strings.
22876for var in SED \
22877GREP \
22878EGREP \
22879FGREP \
22880LD \
22881NM \
22882LN_S \
22883lt_SP2NL \
22884lt_NL2SP \
22885reload_flag \
22886OBJDUMP \
22887deplibs_check_method \
22888file_magic_cmd \
22889AR \
22890AR_FLAGS \
22891STRIP \
22892RANLIB \
22893CC \
22894CFLAGS \
22895compiler \
22896lt_cv_sys_global_symbol_pipe \
22897lt_cv_sys_global_symbol_to_cdecl \
22898lt_cv_sys_global_symbol_to_c_name_address \
22899lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22900SHELL \
22901ECHO \
22902lt_prog_compiler_no_builtin_flag \
22903lt_prog_compiler_wl \
22904lt_prog_compiler_pic \
22905lt_prog_compiler_static \
22906lt_cv_prog_compiler_c_o \
22907need_locks \
22908DSYMUTIL \
22909NMEDIT \
22910LIPO \
22911OTOOL \
22912OTOOL64 \
22913shrext_cmds \
22914export_dynamic_flag_spec \
22915whole_archive_flag_spec \
22916compiler_needs_object \
22917with_gnu_ld \
22918allow_undefined_flag \
22919no_undefined_flag \
22920hardcode_libdir_flag_spec \
22921hardcode_libdir_flag_spec_ld \
22922hardcode_libdir_separator \
22923fix_srcfile_path \
22924exclude_expsyms \
22925include_expsyms \
22926file_list_spec \
22927variables_saved_for_relink \
22928libname_spec \
22929library_names_spec \
22930soname_spec \
22931finish_eval \
22932old_striplib \
22933striplib; do
22934 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22935 *[\\\\\\\`\\"\\\$]*)
22936 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22937 ;;
22938 *)
22939 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22940 ;;
22941 esac
22942done
22943
22944# Double-quote double-evaled strings.
22945for var in reload_cmds \
22946old_postinstall_cmds \
22947old_postuninstall_cmds \
22948old_archive_cmds \
22949extract_expsyms_cmds \
22950old_archive_from_new_cmds \
22951old_archive_from_expsyms_cmds \
22952archive_cmds \
22953archive_expsym_cmds \
22954module_cmds \
22955module_expsym_cmds \
22956export_symbols_cmds \
22957prelink_cmds \
22958postinstall_cmds \
22959postuninstall_cmds \
22960finish_cmds \
22961sys_lib_search_path_spec \
22962sys_lib_dlsearch_path_spec; do
22963 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22964 *[\\\\\\\`\\"\\\$]*)
22965 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22966 ;;
22967 *)
22968 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22969 ;;
22970 esac
22971done
22972
22973# Fix-up fallback echo if it was mangled by the above quoting rules.
22974case \$lt_ECHO in
22975*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22976 ;;
22977esac
22978
22979ac_aux_dir='$ac_aux_dir'
22980xsi_shell='$xsi_shell'
22981lt_shell_append='$lt_shell_append'
22982
22983# See if we are running on zsh, and set the options which allow our
22984# commands through without removal of \ escapes INIT.
22985if test -n "\${ZSH_VERSION+set}" ; then
22986 setopt NO_GLOB_SUBST
22987fi
22988
22989
22990 PACKAGE='$PACKAGE'
22991 VERSION='$VERSION'
22992 TIMESTAMP='$TIMESTAMP'
22993 RM='$RM'
22994 ofile='$ofile'
22995
22996
22997
22998# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22999 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23000 # from automake.
23001 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23002 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23003 LINGUAS="${LINGUAS-%UNSET%}"
23004
23005
23006GCC="$GCC"
23007CC="$CC"
23008acx_cv_header_stdint="$acx_cv_header_stdint"
23009acx_cv_type_int8_t="$acx_cv_type_int8_t"
23010acx_cv_type_int16_t="$acx_cv_type_int16_t"
23011acx_cv_type_int32_t="$acx_cv_type_int32_t"
23012acx_cv_type_int64_t="$acx_cv_type_int64_t"
23013acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23014ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23015ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23016ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23017ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23018ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23019ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23020ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23021ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23022
23023
23024
23025_ACEOF
23026
23027
23028
23029cat >>$CONFIG_STATUS <<\_ACEOF
23030for ac_config_target in $ac_config_targets
23031do
23032 case "$ac_config_target" in
23033 # Handling of arguments.
23034 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23035 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23036 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23037 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23038 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23039 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23040 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23041 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23042 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23043 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23045echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23046 { (exit 1); exit 1; }; };;
23047 esac
23048done
23049
23050# If the user did not use the arguments to specify the items to instantiate,
23051# then the envvar interface is used. Set only those that are not.
23052# We use the long form for the default assignment because of an extremely
23053# bizarre bug on SunOS 4.1.3.
23054if $ac_need_defaults; then
23055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23058fi
23059
23060# Have a temporary directory for convenience. Make it in the build tree
23061# simply because there is no reason to put it here, and in addition,
23062# creating and moving files from /tmp can sometimes cause problems.
23063# Create a temporary directory, and hook for its removal unless debugging.
23064$debug ||
23065{
23066 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23067 trap '{ (exit 1); exit 1; }' 1 2 13 15
23068}
23069
23070# Create a (secure) tmp directory for tmp files.
23071
23072{
23073 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23074 test -n "$tmp" && test -d "$tmp"
23075} ||
23076{
23077 tmp=./confstat$$-$RANDOM
23078 (umask 077 && mkdir $tmp)
23079} ||
23080{
23081 echo "$me: cannot create a temporary directory in ." >&2
23082 { (exit 1); exit 1; }
23083}
23084
23085_ACEOF
23086
23087cat >>$CONFIG_STATUS <<_ACEOF
23088
23089#
23090# CONFIG_FILES section.
23091#
23092
23093# No need to generate the scripts if there are no CONFIG_FILES.
23094# This happens for instance when ./config.status config.h
23095if test -n "\$CONFIG_FILES"; then
23096 # Protect against being on the right side of a sed subst in config.status.
23097 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23098 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23099s,@SHELL@,$SHELL,;t t
23100s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23101s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23102s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23103s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23104s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23105s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23106s,@exec_prefix@,$exec_prefix,;t t
23107s,@prefix@,$prefix,;t t
23108s,@program_transform_name@,$program_transform_name,;t t
23109s,@bindir@,$bindir,;t t
23110s,@sbindir@,$sbindir,;t t
23111s,@libexecdir@,$libexecdir,;t t
23112s,@datadir@,$datadir,;t t
23113s,@sysconfdir@,$sysconfdir,;t t
23114s,@sharedstatedir@,$sharedstatedir,;t t
23115s,@localstatedir@,$localstatedir,;t t
23116s,@libdir@,$libdir,;t t
23117s,@includedir@,$includedir,;t t
23118s,@oldincludedir@,$oldincludedir,;t t
23119s,@infodir@,$infodir,;t t
23120s,@mandir@,$mandir,;t t
23121s,@build_alias@,$build_alias,;t t
23122s,@host_alias@,$host_alias,;t t
23123s,@target_alias@,$target_alias,;t t
23124s,@DEFS@,$DEFS,;t t
23125s,@ECHO_C@,$ECHO_C,;t t
23126s,@ECHO_N@,$ECHO_N,;t t
23127s,@ECHO_T@,$ECHO_T,;t t
23128s,@LIBS@,$LIBS,;t t
23129s,@build@,$build,;t t
23130s,@build_cpu@,$build_cpu,;t t
23131s,@build_vendor@,$build_vendor,;t t
23132s,@build_os@,$build_os,;t t
23133s,@host@,$host,;t t
23134s,@host_cpu@,$host_cpu,;t t
23135s,@host_vendor@,$host_vendor,;t t
23136s,@host_os@,$host_os,;t t
23137s,@target@,$target,;t t
23138s,@target_cpu@,$target_cpu,;t t
23139s,@target_vendor@,$target_vendor,;t t
23140s,@target_os@,$target_os,;t t
23141s,@CC@,$CC,;t t
23142s,@CFLAGS@,$CFLAGS,;t t
23143s,@LDFLAGS@,$LDFLAGS,;t t
23144s,@CPPFLAGS@,$CPPFLAGS,;t t
23145s,@ac_ct_CC@,$ac_ct_CC,;t t
23146s,@EXEEXT@,$EXEEXT,;t t
23147s,@OBJEXT@,$OBJEXT,;t t
23148s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23149s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23150s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23151s,@CYGPATH_W@,$CYGPATH_W,;t t
23152s,@PACKAGE@,$PACKAGE,;t t
23153s,@VERSION@,$VERSION,;t t
23154s,@ACLOCAL@,$ACLOCAL,;t t
23155s,@AUTOCONF@,$AUTOCONF,;t t
23156s,@AUTOMAKE@,$AUTOMAKE,;t t
23157s,@AUTOHEADER@,$AUTOHEADER,;t t
23158s,@MAKEINFO@,$MAKEINFO,;t t
23159s,@install_sh@,$install_sh,;t t
23160s,@STRIP@,$STRIP,;t t
23161s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23162s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23163s,@mkdir_p@,$mkdir_p,;t t
23164s,@AWK@,$AWK,;t t
23165s,@SET_MAKE@,$SET_MAKE,;t t
23166s,@am__leading_dot@,$am__leading_dot,;t t
23167s,@AMTAR@,$AMTAR,;t t
23168s,@am__tar@,$am__tar,;t t
23169s,@am__untar@,$am__untar,;t t
23170s,@DEPDIR@,$DEPDIR,;t t
23171s,@am__include@,$am__include,;t t
23172s,@am__quote@,$am__quote,;t t
23173s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23174s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23175s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23176s,@CCDEPMODE@,$CCDEPMODE,;t t
23177s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23178s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23179s,@AR@,$AR,;t t
23180s,@ac_ct_AR@,$ac_ct_AR,;t t
23181s,@RANLIB@,$RANLIB,;t t
23182s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23183s,@CPP@,$CPP,;t t
23184s,@EGREP@,$EGREP,;t t
23185s,@LIBTOOL@,$LIBTOOL,;t t
23186s,@SED@,$SED,;t t
23187s,@FGREP@,$FGREP,;t t
23188s,@GREP@,$GREP,;t t
23189s,@LD@,$LD,;t t
23190s,@DUMPBIN@,$DUMPBIN,;t t
23191s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23192s,@NM@,$NM,;t t
23193s,@LN_S@,$LN_S,;t t
23194s,@OBJDUMP@,$OBJDUMP,;t t
23195s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23196s,@lt_ECHO@,$lt_ECHO,;t t
23197s,@DSYMUTIL@,$DSYMUTIL,;t t
23198s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23199s,@NMEDIT@,$NMEDIT,;t t
23200s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23201s,@LIPO@,$LIPO,;t t
23202s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23203s,@OTOOL@,$OTOOL,;t t
23204s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23205s,@OTOOL64@,$OTOOL64,;t t
23206s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23207s,@DEBUGDIR@,$DEBUGDIR,;t t
23208s,@PKGVERSION@,$PKGVERSION,;t t
23209s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23210s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23211s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23212s,@NO_WERROR@,$NO_WERROR,;t t
23213s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23214s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23215s,@MAINT@,$MAINT,;t t
23216s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23217s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23218s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23219s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23220s,@host_noncanonical@,$host_noncanonical,;t t
23221s,@target_noncanonical@,$target_noncanonical,;t t
23222s,@bfdlibdir@,$bfdlibdir,;t t
23223s,@bfdincludedir@,$bfdincludedir,;t t
23224s,@USE_NLS@,$USE_NLS,;t t
23225s,@LIBINTL@,$LIBINTL,;t t
23226s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23227s,@INCINTL@,$INCINTL,;t t
23228s,@XGETTEXT@,$XGETTEXT,;t t
23229s,@GMSGFMT@,$GMSGFMT,;t t
23230s,@POSUB@,$POSUB,;t t
23231s,@CATALOGS@,$CATALOGS,;t t
23232s,@DATADIRNAME@,$DATADIRNAME,;t t
23233s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23234s,@GENCAT@,$GENCAT,;t t
23235s,@CATOBJEXT@,$CATOBJEXT,;t t
23236s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23237s,@MSGFMT@,$MSGFMT,;t t
23238s,@MSGMERGE@,$MSGMERGE,;t t
23239s,@HDEFINES@,$HDEFINES,;t t
23240s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23241s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23242s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23243s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23244s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23245s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23246s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23247s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23248s,@COREFILE@,$COREFILE,;t t
23249s,@COREFLAG@,$COREFLAG,;t t
23250s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23251s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23252s,@TDEFINES@,$TDEFINES,;t t
23253s,@wordsize@,$wordsize,;t t
23254s,@bfd64_libs@,$bfd64_libs,;t t
23255s,@all_backends@,$all_backends,;t t
23256s,@bfd_backends@,$bfd_backends,;t t
23257s,@bfd_machines@,$bfd_machines,;t t
23258s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23259s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23260s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23261s,@tdefaults@,$tdefaults,;t t
23262s,@datarootdir@,$datarootdir,;t t
23263s,@docdir@,$docdir,;t t
23264s,@htmldir@,$htmldir,;t t
23265s,@LIBOBJS@,$LIBOBJS,;t t
23266s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23267CEOF
23268
23269_ACEOF
23270
23271 cat >>$CONFIG_STATUS <<\_ACEOF
23272 # Split the substitutions into bite-sized pieces for seds with
23273 # small command number limits, like on Digital OSF/1 and HP-UX.
23274 ac_max_sed_lines=48
23275 ac_sed_frag=1 # Number of current file.
23276 ac_beg=1 # First line for current file.
23277 ac_end=$ac_max_sed_lines # Line after last line for current file.
23278 ac_more_lines=:
23279 ac_sed_cmds=
23280 while $ac_more_lines; do
23281 if test $ac_beg -gt 1; then
23282 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23283 else
23284 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23285 fi
23286 if test ! -s $tmp/subs.frag; then
23287 ac_more_lines=false
23288 else
23289 # The purpose of the label and of the branching condition is to
23290 # speed up the sed processing (if there are no `@' at all, there
23291 # is no need to browse any of the substitutions).
23292 # These are the two extra sed commands mentioned above.
23293 (echo ':t
23294 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23295 if test -z "$ac_sed_cmds"; then
23296 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23297 else
23298 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23299 fi
23300 ac_sed_frag=`expr $ac_sed_frag + 1`
23301 ac_beg=$ac_end
23302 ac_end=`expr $ac_end + $ac_max_sed_lines`
23303 fi
23304 done
23305 if test -z "$ac_sed_cmds"; then
23306 ac_sed_cmds=cat
23307 fi
23308fi # test -n "$CONFIG_FILES"
23309
23310_ACEOF
23311cat >>$CONFIG_STATUS <<\_ACEOF
23312for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23314 case $ac_file in
23315 - | *:- | *:-:* ) # input from stdin
23316 cat >$tmp/stdin
23317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23321 * ) ac_file_in=$ac_file.in ;;
23322 esac
23323
23324 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23325 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23327 X"$ac_file" : 'X\(//\)[^/]' \| \
23328 X"$ac_file" : 'X\(//\)$' \| \
23329 X"$ac_file" : 'X\(/\)' \| \
23330 . : '\(.\)' 2>/dev/null ||
23331echo X"$ac_file" |
23332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23334 /^X\(\/\/\)$/{ s//\1/; q; }
23335 /^X\(\/\).*/{ s//\1/; q; }
23336 s/.*/./; q'`
23337 { if $as_mkdir_p; then
23338 mkdir -p "$ac_dir"
23339 else
23340 as_dir="$ac_dir"
23341 as_dirs=
23342 while test ! -d "$as_dir"; do
23343 as_dirs="$as_dir $as_dirs"
23344 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23346 X"$as_dir" : 'X\(//\)[^/]' \| \
23347 X"$as_dir" : 'X\(//\)$' \| \
23348 X"$as_dir" : 'X\(/\)' \| \
23349 . : '\(.\)' 2>/dev/null ||
23350echo X"$as_dir" |
23351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23353 /^X\(\/\/\)$/{ s//\1/; q; }
23354 /^X\(\/\).*/{ s//\1/; q; }
23355 s/.*/./; q'`
23356 done
23357 test ! -n "$as_dirs" || mkdir $as_dirs
23358 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23360 { (exit 1); exit 1; }; }; }
23361
23362 ac_builddir=.
23363
23364if test "$ac_dir" != .; then
23365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23366 # A "../" for each directory in $ac_dir_suffix.
23367 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23368else
23369 ac_dir_suffix= ac_top_builddir=
23370fi
23371
23372case $srcdir in
23373 .) # No --srcdir option. We are building in place.
23374 ac_srcdir=.
23375 if test -z "$ac_top_builddir"; then
23376 ac_top_srcdir=.
23377 else
23378 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23379 fi ;;
23380 [\\/]* | ?:[\\/]* ) # Absolute path.
23381 ac_srcdir=$srcdir$ac_dir_suffix;
23382 ac_top_srcdir=$srcdir ;;
23383 *) # Relative path.
23384 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23385 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23386esac
23387
23388# Do not use `cd foo && pwd` to compute absolute paths, because
23389# the directories may not exist.
23390case `pwd` in
23391.) ac_abs_builddir="$ac_dir";;
23392*)
23393 case "$ac_dir" in
23394 .) ac_abs_builddir=`pwd`;;
23395 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23396 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23397 esac;;
23398esac
23399case $ac_abs_builddir in
23400.) ac_abs_top_builddir=${ac_top_builddir}.;;
23401*)
23402 case ${ac_top_builddir}. in
23403 .) ac_abs_top_builddir=$ac_abs_builddir;;
23404 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23405 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23406 esac;;
23407esac
23408case $ac_abs_builddir in
23409.) ac_abs_srcdir=$ac_srcdir;;
23410*)
23411 case $ac_srcdir in
23412 .) ac_abs_srcdir=$ac_abs_builddir;;
23413 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23414 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23415 esac;;
23416esac
23417case $ac_abs_builddir in
23418.) ac_abs_top_srcdir=$ac_top_srcdir;;
23419*)
23420 case $ac_top_srcdir in
23421 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23422 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23423 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23424 esac;;
23425esac
23426
23427
23428 case $INSTALL in
23429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23430 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23431 esac
23432
23433 if test x"$ac_file" != x-; then
23434 { echo "$as_me:$LINENO: creating $ac_file" >&5
23435echo "$as_me: creating $ac_file" >&6;}
23436 rm -f "$ac_file"
23437 fi
23438 # Let's still pretend it is `configure' which instantiates (i.e., don't
23439 # use $as_me), people would be surprised to read:
23440 # /* config.h. Generated by config.status. */
23441 if test x"$ac_file" = x-; then
23442 configure_input=
23443 else
23444 configure_input="$ac_file. "
23445 fi
23446 configure_input=$configure_input"Generated from `echo $ac_file_in |
23447 sed 's,.*/,,'` by configure."
23448
23449 # First look for the input files in the build tree, otherwise in the
23450 # src tree.
23451 ac_file_inputs=`IFS=:
23452 for f in $ac_file_in; do
23453 case $f in
23454 -) echo $tmp/stdin ;;
23455 [\\/$]*)
23456 # Absolute (can't be DOS-style, as IFS=:)
23457 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23458echo "$as_me: error: cannot find input file: $f" >&2;}
23459 { (exit 1); exit 1; }; }
23460 echo "$f";;
23461 *) # Relative
23462 if test -f "$f"; then
23463 # Build tree
23464 echo "$f"
23465 elif test -f "$srcdir/$f"; then
23466 # Source tree
23467 echo "$srcdir/$f"
23468 else
23469 # /dev/null tree
23470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23471echo "$as_me: error: cannot find input file: $f" >&2;}
23472 { (exit 1); exit 1; }; }
23473 fi;;
23474 esac
23475 done` || { (exit 1); exit 1; }
23476_ACEOF
23477cat >>$CONFIG_STATUS <<_ACEOF
23478 sed "$ac_vpsub
23479$extrasub
23480_ACEOF
23481cat >>$CONFIG_STATUS <<\_ACEOF
23482:t
23483/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23484s,@configure_input@,$configure_input,;t t
23485s,@srcdir@,$ac_srcdir,;t t
23486s,@abs_srcdir@,$ac_abs_srcdir,;t t
23487s,@top_srcdir@,$ac_top_srcdir,;t t
23488s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23489s,@builddir@,$ac_builddir,;t t
23490s,@abs_builddir@,$ac_abs_builddir,;t t
23491s,@top_builddir@,$ac_top_builddir,;t t
23492s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23493s,@INSTALL@,$ac_INSTALL,;t t
23494" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23495 rm -f $tmp/stdin
23496 if test x"$ac_file" != x-; then
23497 mv $tmp/out $ac_file
23498 else
23499 cat $tmp/out
23500 rm -f $tmp/out
23501 fi
23502
23503done
23504_ACEOF
23505cat >>$CONFIG_STATUS <<\_ACEOF
23506
23507#
23508# CONFIG_HEADER section.
23509#
23510
23511# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23512# NAME is the cpp macro being defined and VALUE is the value it is being given.
23513#
23514# ac_d sets the value in "#define NAME VALUE" lines.
23515ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23516ac_dB='[ ].*$,\1#\2'
23517ac_dC=' '
23518ac_dD=',;t'
23519# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23520ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23521ac_uB='$,\1#\2define\3'
23522ac_uC=' '
23523ac_uD=',;t'
23524
23525for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23527 case $ac_file in
23528 - | *:- | *:-:* ) # input from stdin
23529 cat >$tmp/stdin
23530 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23531 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23532 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23534 * ) ac_file_in=$ac_file.in ;;
23535 esac
23536
23537 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23538echo "$as_me: creating $ac_file" >&6;}
23539
23540 # First look for the input files in the build tree, otherwise in the
23541 # src tree.
23542 ac_file_inputs=`IFS=:
23543 for f in $ac_file_in; do
23544 case $f in
23545 -) echo $tmp/stdin ;;
23546 [\\/$]*)
23547 # Absolute (can't be DOS-style, as IFS=:)
23548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23549echo "$as_me: error: cannot find input file: $f" >&2;}
23550 { (exit 1); exit 1; }; }
23551 # Do quote $f, to prevent DOS paths from being IFS'd.
23552 echo "$f";;
23553 *) # Relative
23554 if test -f "$f"; then
23555 # Build tree
23556 echo "$f"
23557 elif test -f "$srcdir/$f"; then
23558 # Source tree
23559 echo "$srcdir/$f"
23560 else
23561 # /dev/null tree
23562 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23563echo "$as_me: error: cannot find input file: $f" >&2;}
23564 { (exit 1); exit 1; }; }
23565 fi;;
23566 esac
23567 done` || { (exit 1); exit 1; }
23568 # Remove the trailing spaces.
23569 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23570
23571_ACEOF
23572
23573# Transform confdefs.h into two sed scripts, `conftest.defines' and
23574# `conftest.undefs', that substitutes the proper values into
23575# config.h.in to produce config.h. The first handles `#define'
23576# templates, and the second `#undef' templates.
23577# And first: Protect against being on the right side of a sed subst in
23578# config.status. Protect against being in an unquoted here document
23579# in config.status.
23580rm -f conftest.defines conftest.undefs
23581# Using a here document instead of a string reduces the quoting nightmare.
23582# Putting comments in sed scripts is not portable.
23583#
23584# `end' is used to avoid that the second main sed command (meant for
23585# 0-ary CPP macros) applies to n-ary macro definitions.
23586# See the Autoconf documentation for `clear'.
23587cat >confdef2sed.sed <<\_ACEOF
23588s/[\\&,]/\\&/g
23589s,[\\$`],\\&,g
23590t clear
23591: clear
23592s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23593t end
23594s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23595: end
23596_ACEOF
23597# If some macros were called several times there might be several times
23598# the same #defines, which is useless. Nevertheless, we may not want to
23599# sort them, since we want the *last* AC-DEFINE to be honored.
23600uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23601sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23602rm -f confdef2sed.sed
23603
23604# This sed command replaces #undef with comments. This is necessary, for
23605# example, in the case of _POSIX_SOURCE, which is predefined and required
23606# on some systems where configure will not decide to define it.
23607cat >>conftest.undefs <<\_ACEOF
23608s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23609_ACEOF
23610
23611# Break up conftest.defines because some shells have a limit on the size
23612# of here documents, and old seds have small limits too (100 cmds).
23613echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23614echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23615echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23616echo ' :' >>$CONFIG_STATUS
23617rm -f conftest.tail
23618while grep . conftest.defines >/dev/null
23619do
23620 # Write a limited-size here document to $tmp/defines.sed.
23621 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23622 # Speed up: don't consider the non `#define' lines.
23623 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23624 # Work around the forget-to-reset-the-flag bug.
23625 echo 't clr' >>$CONFIG_STATUS
23626 echo ': clr' >>$CONFIG_STATUS
23627 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23628 echo 'CEOF
23629 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23630 rm -f $tmp/in
23631 mv $tmp/out $tmp/in
23632' >>$CONFIG_STATUS
23633 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23634 rm -f conftest.defines
23635 mv conftest.tail conftest.defines
23636done
23637rm -f conftest.defines
23638echo ' fi # grep' >>$CONFIG_STATUS
23639echo >>$CONFIG_STATUS
23640
23641# Break up conftest.undefs because some shells have a limit on the size
23642# of here documents, and old seds have small limits too (100 cmds).
23643echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23644rm -f conftest.tail
23645while grep . conftest.undefs >/dev/null
23646do
23647 # Write a limited-size here document to $tmp/undefs.sed.
23648 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23649 # Speed up: don't consider the non `#undef'
23650 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23651 # Work around the forget-to-reset-the-flag bug.
23652 echo 't clr' >>$CONFIG_STATUS
23653 echo ': clr' >>$CONFIG_STATUS
23654 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23655 echo 'CEOF
23656 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23657 rm -f $tmp/in
23658 mv $tmp/out $tmp/in
23659' >>$CONFIG_STATUS
23660 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23661 rm -f conftest.undefs
23662 mv conftest.tail conftest.undefs
23663done
23664rm -f conftest.undefs
23665
23666cat >>$CONFIG_STATUS <<\_ACEOF
23667 # Let's still pretend it is `configure' which instantiates (i.e., don't
23668 # use $as_me), people would be surprised to read:
23669 # /* config.h. Generated by config.status. */
23670 if test x"$ac_file" = x-; then
23671 echo "/* Generated by configure. */" >$tmp/config.h
23672 else
23673 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23674 fi
23675 cat $tmp/in >>$tmp/config.h
23676 rm -f $tmp/in
23677 if test x"$ac_file" != x-; then
23678 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23680echo "$as_me: $ac_file is unchanged" >&6;}
23681 else
23682 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23683$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23684 X"$ac_file" : 'X\(//\)[^/]' \| \
23685 X"$ac_file" : 'X\(//\)$' \| \
23686 X"$ac_file" : 'X\(/\)' \| \
23687 . : '\(.\)' 2>/dev/null ||
23688echo X"$ac_file" |
23689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23690 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23691 /^X\(\/\/\)$/{ s//\1/; q; }
23692 /^X\(\/\).*/{ s//\1/; q; }
23693 s/.*/./; q'`
23694 { if $as_mkdir_p; then
23695 mkdir -p "$ac_dir"
23696 else
23697 as_dir="$ac_dir"
23698 as_dirs=
23699 while test ! -d "$as_dir"; do
23700 as_dirs="$as_dir $as_dirs"
23701 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23703 X"$as_dir" : 'X\(//\)[^/]' \| \
23704 X"$as_dir" : 'X\(//\)$' \| \
23705 X"$as_dir" : 'X\(/\)' \| \
23706 . : '\(.\)' 2>/dev/null ||
23707echo X"$as_dir" |
23708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23710 /^X\(\/\/\)$/{ s//\1/; q; }
23711 /^X\(\/\).*/{ s//\1/; q; }
23712 s/.*/./; q'`
23713 done
23714 test ! -n "$as_dirs" || mkdir $as_dirs
23715 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23716echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23717 { (exit 1); exit 1; }; }; }
23718
23719 rm -f $ac_file
23720 mv $tmp/config.h $ac_file
23721 fi
23722 else
23723 cat $tmp/config.h
23724 rm -f $tmp/config.h
23725 fi
23726# Compute $ac_file's index in $config_headers.
23727_am_stamp_count=1
23728for _am_header in $config_headers :; do
23729 case $_am_header in
23730 $ac_file | $ac_file:* )
23731 break ;;
23732 * )
23733 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23734 esac
23735done
23736echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23737$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23738 X$ac_file : 'X\(//\)[^/]' \| \
23739 X$ac_file : 'X\(//\)$' \| \
23740 X$ac_file : 'X\(/\)' \| \
23741 . : '\(.\)' 2>/dev/null ||
23742echo X$ac_file |
23743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23745 /^X\(\/\/\)$/{ s//\1/; q; }
23746 /^X\(\/\).*/{ s//\1/; q; }
23747 s/.*/./; q'`/stamp-h$_am_stamp_count
23748done
23749_ACEOF
23750cat >>$CONFIG_STATUS <<\_ACEOF
23751
23752#
23753# CONFIG_COMMANDS section.
23754#
23755for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23756 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23757 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23758 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23759$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23760 X"$ac_dest" : 'X\(//\)[^/]' \| \
23761 X"$ac_dest" : 'X\(//\)$' \| \
23762 X"$ac_dest" : 'X\(/\)' \| \
23763 . : '\(.\)' 2>/dev/null ||
23764echo X"$ac_dest" |
23765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23767 /^X\(\/\/\)$/{ s//\1/; q; }
23768 /^X\(\/\).*/{ s//\1/; q; }
23769 s/.*/./; q'`
23770 { if $as_mkdir_p; then
23771 mkdir -p "$ac_dir"
23772 else
23773 as_dir="$ac_dir"
23774 as_dirs=
23775 while test ! -d "$as_dir"; do
23776 as_dirs="$as_dir $as_dirs"
23777 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23778$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23779 X"$as_dir" : 'X\(//\)[^/]' \| \
23780 X"$as_dir" : 'X\(//\)$' \| \
23781 X"$as_dir" : 'X\(/\)' \| \
23782 . : '\(.\)' 2>/dev/null ||
23783echo X"$as_dir" |
23784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23786 /^X\(\/\/\)$/{ s//\1/; q; }
23787 /^X\(\/\).*/{ s//\1/; q; }
23788 s/.*/./; q'`
23789 done
23790 test ! -n "$as_dirs" || mkdir $as_dirs
23791 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23792echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23793 { (exit 1); exit 1; }; }; }
23794
23795 ac_builddir=.
23796
23797if test "$ac_dir" != .; then
23798 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23799 # A "../" for each directory in $ac_dir_suffix.
23800 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23801else
23802 ac_dir_suffix= ac_top_builddir=
23803fi
23804
23805case $srcdir in
23806 .) # No --srcdir option. We are building in place.
23807 ac_srcdir=.
23808 if test -z "$ac_top_builddir"; then
23809 ac_top_srcdir=.
23810 else
23811 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23812 fi ;;
23813 [\\/]* | ?:[\\/]* ) # Absolute path.
23814 ac_srcdir=$srcdir$ac_dir_suffix;
23815 ac_top_srcdir=$srcdir ;;
23816 *) # Relative path.
23817 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23818 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23819esac
23820
23821# Do not use `cd foo && pwd` to compute absolute paths, because
23822# the directories may not exist.
23823case `pwd` in
23824.) ac_abs_builddir="$ac_dir";;
23825*)
23826 case "$ac_dir" in
23827 .) ac_abs_builddir=`pwd`;;
23828 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23829 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23830 esac;;
23831esac
23832case $ac_abs_builddir in
23833.) ac_abs_top_builddir=${ac_top_builddir}.;;
23834*)
23835 case ${ac_top_builddir}. in
23836 .) ac_abs_top_builddir=$ac_abs_builddir;;
23837 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23838 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23839 esac;;
23840esac
23841case $ac_abs_builddir in
23842.) ac_abs_srcdir=$ac_srcdir;;
23843*)
23844 case $ac_srcdir in
23845 .) ac_abs_srcdir=$ac_abs_builddir;;
23846 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23847 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23848 esac;;
23849esac
23850case $ac_abs_builddir in
23851.) ac_abs_top_srcdir=$ac_top_srcdir;;
23852*)
23853 case $ac_top_srcdir in
23854 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23855 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23856 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23857 esac;;
23858esac
23859
23860
23861 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23862echo "$as_me: executing $ac_dest commands" >&6;}
23863 case $ac_dest in
23864 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23865 # Strip MF so we end up with the name of the file.
23866 mf=`echo "$mf" | sed -e 's/:.*$//'`
23867 # Check whether this is an Automake generated Makefile or not.
23868 # We used to match only the files named `Makefile.in', but
23869 # some people rename them; so instead we look at the file content.
23870 # Grep'ing the first line is not enough: some people post-process
23871 # each Makefile.in and add a new line on top of each file to say so.
23872 # So let's grep whole file.
23873 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23874 dirpart=`(dirname "$mf") 2>/dev/null ||
23875$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23876 X"$mf" : 'X\(//\)[^/]' \| \
23877 X"$mf" : 'X\(//\)$' \| \
23878 X"$mf" : 'X\(/\)' \| \
23879 . : '\(.\)' 2>/dev/null ||
23880echo X"$mf" |
23881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23883 /^X\(\/\/\)$/{ s//\1/; q; }
23884 /^X\(\/\).*/{ s//\1/; q; }
23885 s/.*/./; q'`
23886 else
23887 continue
23888 fi
23889 # Extract the definition of DEPDIR, am__include, and am__quote
23890 # from the Makefile without running `make'.
23891 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23892 test -z "$DEPDIR" && continue
23893 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23894 test -z "am__include" && continue
23895 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23896 # When using ansi2knr, U may be empty or an underscore; expand it
23897 U=`sed -n 's/^U = //p' < "$mf"`
23898 # Find all dependency output files, they are included files with
23899 # $(DEPDIR) in their names. We invoke sed twice because it is the
23900 # simplest approach to changing $(DEPDIR) to its actual value in the
23901 # expansion.
23902 for file in `sed -n "
23903 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23904 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23905 # Make sure the directory exists.
23906 test -f "$dirpart/$file" && continue
23907 fdir=`(dirname "$file") 2>/dev/null ||
23908$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23909 X"$file" : 'X\(//\)[^/]' \| \
23910 X"$file" : 'X\(//\)$' \| \
23911 X"$file" : 'X\(/\)' \| \
23912 . : '\(.\)' 2>/dev/null ||
23913echo X"$file" |
23914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23916 /^X\(\/\/\)$/{ s//\1/; q; }
23917 /^X\(\/\).*/{ s//\1/; q; }
23918 s/.*/./; q'`
23919 { if $as_mkdir_p; then
23920 mkdir -p $dirpart/$fdir
23921 else
23922 as_dir=$dirpart/$fdir
23923 as_dirs=
23924 while test ! -d "$as_dir"; do
23925 as_dirs="$as_dir $as_dirs"
23926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23927$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23928 X"$as_dir" : 'X\(//\)[^/]' \| \
23929 X"$as_dir" : 'X\(//\)$' \| \
23930 X"$as_dir" : 'X\(/\)' \| \
23931 . : '\(.\)' 2>/dev/null ||
23932echo X"$as_dir" |
23933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23935 /^X\(\/\/\)$/{ s//\1/; q; }
23936 /^X\(\/\).*/{ s//\1/; q; }
23937 s/.*/./; q'`
23938 done
23939 test ! -n "$as_dirs" || mkdir $as_dirs
23940 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23941echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23942 { (exit 1); exit 1; }; }; }
23943
23944 # echo "creating $dirpart/$file"
23945 echo '# dummy' > "$dirpart/$file"
23946 done
23947done
23948 ;;
23949 libtool )
23950
23951 # See if we are running on zsh, and set the options which allow our
23952 # commands through without removal of \ escapes.
23953 if test -n "${ZSH_VERSION+set}" ; then
23954 setopt NO_GLOB_SUBST
23955 fi
23956
23957 cfgfile="${ofile}T"
23958 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23959 $RM "$cfgfile"
23960
23961 cat <<_LT_EOF >> "$cfgfile"
23962#! $SHELL
23963
23964# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23965# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23966# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23967# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23968#
23969# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23970# 2006, 2007, 2008 Free Software Foundation, Inc.
23971# Written by Gordon Matzigkeit, 1996
23972#
23973# This file is part of GNU Libtool.
23974#
23975# GNU Libtool is free software; you can redistribute it and/or
23976# modify it under the terms of the GNU General Public License as
23977# published by the Free Software Foundation; either version 2 of
23978# the License, or (at your option) any later version.
23979#
23980# As a special exception to the GNU General Public License,
23981# if you distribute this file as part of a program or library that
23982# is built using GNU Libtool, you may include this file under the
23983# same distribution terms that you use for the rest of that program.
23984#
23985# GNU Libtool is distributed in the hope that it will be useful,
23986# but WITHOUT ANY WARRANTY; without even the implied warranty of
23987# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23988# GNU General Public License for more details.
23989#
23990# You should have received a copy of the GNU General Public License
23991# along with GNU Libtool; see the file COPYING. If not, a copy
23992# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23993# obtained by writing to the Free Software Foundation, Inc.,
23994# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23995
23996
23997# The names of the tagged configurations supported by this script.
23998available_tags=""
23999
24000# ### BEGIN LIBTOOL CONFIG
24001
24002# Whether or not to build shared libraries.
24003build_libtool_libs=$enable_shared
24004
24005# Which release of libtool.m4 was used?
24006macro_version=$macro_version
24007macro_revision=$macro_revision
24008
24009# Whether or not to build static libraries.
24010build_old_libs=$enable_static
24011
24012# What type of objects to build.
24013pic_mode=$pic_mode
24014
24015# Whether or not to optimize for fast installation.
24016fast_install=$enable_fast_install
24017
24018# The host system.
24019host_alias=$host_alias
24020host=$host
24021host_os=$host_os
24022
24023# The build system.
24024build_alias=$build_alias
24025build=$build
24026build_os=$build_os
24027
24028# A sed program that does not truncate output.
24029SED=$lt_SED
24030
24031# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24032Xsed="\$SED -e 1s/^X//"
24033
24034# A grep program that handles long lines.
24035GREP=$lt_GREP
24036
24037# An ERE matcher.
24038EGREP=$lt_EGREP
24039
24040# A literal string matcher.
24041FGREP=$lt_FGREP
24042
24043# A BSD- or MS-compatible name lister.
24044NM=$lt_NM
24045
24046# Whether we need soft or hard links.
24047LN_S=$lt_LN_S
24048
24049# What is the maximum length of a command?
24050max_cmd_len=$max_cmd_len
24051
24052# Object file suffix (normally "o").
24053objext=$ac_objext
24054
24055# Executable file suffix (normally "").
24056exeext=$exeext
24057
24058# whether the shell understands "unset".
24059lt_unset=$lt_unset
24060
24061# turn spaces into newlines.
24062SP2NL=$lt_lt_SP2NL
24063
24064# turn newlines into spaces.
24065NL2SP=$lt_lt_NL2SP
24066
24067# How to create reloadable object files.
24068reload_flag=$lt_reload_flag
24069reload_cmds=$lt_reload_cmds
24070
24071# An object symbol dumper.
24072OBJDUMP=$lt_OBJDUMP
24073
24074# Method to check whether dependent libraries are shared objects.
24075deplibs_check_method=$lt_deplibs_check_method
24076
24077# Command to use when deplibs_check_method == "file_magic".
24078file_magic_cmd=$lt_file_magic_cmd
24079
24080# The archiver.
24081AR=$lt_AR
24082AR_FLAGS=$lt_AR_FLAGS
24083
24084# A symbol stripping program.
24085STRIP=$lt_STRIP
24086
24087# Commands used to install an old-style archive.
24088RANLIB=$lt_RANLIB
24089old_postinstall_cmds=$lt_old_postinstall_cmds
24090old_postuninstall_cmds=$lt_old_postuninstall_cmds
24091
24092# A C compiler.
24093LTCC=$lt_CC
24094
24095# LTCC compiler flags.
24096LTCFLAGS=$lt_CFLAGS
24097
24098# Take the output of nm and produce a listing of raw symbols and C names.
24099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24100
24101# Transform the output of nm in a proper C declaration.
24102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24103
24104# Transform the output of nm in a C name address pair.
24105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24106
24107# Transform the output of nm in a C name address pair when lib prefix is needed.
24108global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24109
24110# The name of the directory that contains temporary libtool files.
24111objdir=$objdir
24112
24113# Shell to use when invoking shell scripts.
24114SHELL=$lt_SHELL
24115
24116# An echo program that does not interpret backslashes.
24117ECHO=$lt_ECHO
24118
24119# Used to examine libraries when file_magic_cmd begins with "file".
24120MAGIC_CMD=$MAGIC_CMD
24121
24122# Must we lock files when doing compilation?
24123need_locks=$lt_need_locks
24124
24125# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24126DSYMUTIL=$lt_DSYMUTIL
24127
24128# Tool to change global to local symbols on Mac OS X.
24129NMEDIT=$lt_NMEDIT
24130
24131# Tool to manipulate fat objects and archives on Mac OS X.
24132LIPO=$lt_LIPO
24133
24134# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24135OTOOL=$lt_OTOOL
24136
24137# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24138OTOOL64=$lt_OTOOL64
24139
24140# Old archive suffix (normally "a").
24141libext=$libext
24142
24143# Shared library suffix (normally ".so").
24144shrext_cmds=$lt_shrext_cmds
24145
24146# The commands to extract the exported symbol list from a shared archive.
24147extract_expsyms_cmds=$lt_extract_expsyms_cmds
24148
24149# Variables whose values should be saved in libtool wrapper scripts and
24150# restored at link time.
24151variables_saved_for_relink=$lt_variables_saved_for_relink
24152
24153# Do we need the "lib" prefix for modules?
24154need_lib_prefix=$need_lib_prefix
24155
24156# Do we need a version for libraries?
24157need_version=$need_version
24158
24159# Library versioning type.
24160version_type=$version_type
24161
24162# Shared library runtime path variable.
24163runpath_var=$runpath_var
24164
24165# Shared library path variable.
24166shlibpath_var=$shlibpath_var
24167
24168# Is shlibpath searched before the hard-coded library search path?
24169shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24170
24171# Format of library name prefix.
24172libname_spec=$lt_libname_spec
24173
24174# List of archive names. First name is the real one, the rest are links.
24175# The last name is the one that the linker finds with -lNAME
24176library_names_spec=$lt_library_names_spec
24177
24178# The coded name of the library, if different from the real name.
24179soname_spec=$lt_soname_spec
24180
24181# Command to use after installation of a shared archive.
24182postinstall_cmds=$lt_postinstall_cmds
24183
24184# Command to use after uninstallation of a shared archive.
24185postuninstall_cmds=$lt_postuninstall_cmds
24186
24187# Commands used to finish a libtool library installation in a directory.
24188finish_cmds=$lt_finish_cmds
24189
24190# As "finish_cmds", except a single script fragment to be evaled but
24191# not shown.
24192finish_eval=$lt_finish_eval
24193
24194# Whether we should hardcode library paths into libraries.
24195hardcode_into_libs=$hardcode_into_libs
24196
24197# Compile-time system search path for libraries.
24198sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24199
24200# Run-time system search path for libraries.
24201sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24202
24203# Whether dlopen is supported.
24204dlopen_support=$enable_dlopen
24205
24206# Whether dlopen of programs is supported.
24207dlopen_self=$enable_dlopen_self
24208
24209# Whether dlopen of statically linked programs is supported.
24210dlopen_self_static=$enable_dlopen_self_static
24211
24212# Commands to strip libraries.
24213old_striplib=$lt_old_striplib
24214striplib=$lt_striplib
24215
24216
24217# The linker used to build libraries.
24218LD=$lt_LD
24219
24220# Commands used to build an old-style archive.
24221old_archive_cmds=$lt_old_archive_cmds
24222
24223# A language specific compiler.
24224CC=$lt_compiler
24225
24226# Is the compiler the GNU compiler?
24227with_gcc=$GCC
24228
24229# Compiler flag to turn off builtin functions.
24230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24231
24232# How to pass a linker flag through the compiler.
24233wl=$lt_lt_prog_compiler_wl
24234
24235# Additional compiler flags for building library objects.
24236pic_flag=$lt_lt_prog_compiler_pic
24237
24238# Compiler flag to prevent dynamic linking.
24239link_static_flag=$lt_lt_prog_compiler_static
24240
24241# Does compiler simultaneously support -c and -o options?
24242compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24243
24244# Whether or not to add -lc for building shared libraries.
24245build_libtool_need_lc=$archive_cmds_need_lc
24246
24247# Whether or not to disallow shared libs when runtime libs are static.
24248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24249
24250# Compiler flag to allow reflexive dlopens.
24251export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24252
24253# Compiler flag to generate shared objects directly from archives.
24254whole_archive_flag_spec=$lt_whole_archive_flag_spec
24255
24256# Whether the compiler copes with passing no objects directly.
24257compiler_needs_object=$lt_compiler_needs_object
24258
24259# Create an old-style archive from a shared archive.
24260old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24261
24262# Create a temporary old-style archive to link instead of a shared archive.
24263old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24264
24265# Commands used to build a shared archive.
24266archive_cmds=$lt_archive_cmds
24267archive_expsym_cmds=$lt_archive_expsym_cmds
24268
24269# Commands used to build a loadable module if different from building
24270# a shared archive.
24271module_cmds=$lt_module_cmds
24272module_expsym_cmds=$lt_module_expsym_cmds
24273
24274# Whether we are building with GNU ld or not.
24275with_gnu_ld=$lt_with_gnu_ld
24276
24277# Flag that allows shared libraries with undefined symbols to be built.
24278allow_undefined_flag=$lt_allow_undefined_flag
24279
24280# Flag that enforces no undefined symbols.
24281no_undefined_flag=$lt_no_undefined_flag
24282
24283# Flag to hardcode \$libdir into a binary during linking.
24284# This must work even if \$libdir does not exist
24285hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24286
24287# If ld is used when linking, flag to hardcode \$libdir into a binary
24288# during linking. This must work even if \$libdir does not exist.
24289hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24290
24291# Whether we need a single "-rpath" flag with a separated argument.
24292hardcode_libdir_separator=$lt_hardcode_libdir_separator
24293
24294# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24295# DIR into the resulting binary.
24296hardcode_direct=$hardcode_direct
24297
24298# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24299# DIR into the resulting binary and the resulting library dependency is
24300# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24301# library is relocated.
24302hardcode_direct_absolute=$hardcode_direct_absolute
24303
24304# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24305# into the resulting binary.
24306hardcode_minus_L=$hardcode_minus_L
24307
24308# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24309# into the resulting binary.
24310hardcode_shlibpath_var=$hardcode_shlibpath_var
24311
24312# Set to "yes" if building a shared library automatically hardcodes DIR
24313# into the library and all subsequent libraries and executables linked
24314# against it.
24315hardcode_automatic=$hardcode_automatic
24316
24317# Set to yes if linker adds runtime paths of dependent libraries
24318# to runtime path list.
24319inherit_rpath=$inherit_rpath
24320
24321# Whether libtool must link a program against all its dependency libraries.
24322link_all_deplibs=$link_all_deplibs
24323
24324# Fix the shell variable \$srcfile for the compiler.
24325fix_srcfile_path=$lt_fix_srcfile_path
24326
24327# Set to "yes" if exported symbols are required.
24328always_export_symbols=$always_export_symbols
24329
24330# The commands to list exported symbols.
24331export_symbols_cmds=$lt_export_symbols_cmds
24332
24333# Symbols that should not be listed in the preloaded symbols.
24334exclude_expsyms=$lt_exclude_expsyms
24335
24336# Symbols that must always be exported.
24337include_expsyms=$lt_include_expsyms
24338
24339# Commands necessary for linking programs (against libraries) with templates.
24340prelink_cmds=$lt_prelink_cmds
24341
24342# Specify filename containing input files.
24343file_list_spec=$lt_file_list_spec
24344
24345# How to hardcode a shared library path into an executable.
24346hardcode_action=$hardcode_action
24347
24348# ### END LIBTOOL CONFIG
24349
24350_LT_EOF
24351
24352 case $host_os in
24353 aix3*)
24354 cat <<\_LT_EOF >> "$cfgfile"
24355# AIX sometimes has problems with the GCC collect2 program. For some
24356# reason, if we set the COLLECT_NAMES environment variable, the problems
24357# vanish in a puff of smoke.
24358if test "X${COLLECT_NAMES+set}" != Xset; then
24359 COLLECT_NAMES=
24360 export COLLECT_NAMES
24361fi
24362_LT_EOF
24363 ;;
24364 esac
24365
24366
24367ltmain="$ac_aux_dir/ltmain.sh"
24368
24369
24370 # We use sed instead of cat because bash on DJGPP gets confused if
24371 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24372 # text mode, it properly converts lines to CR/LF. This bash problem
24373 # is reportedly fixed, but why not run on old versions too?
24374 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24375 || (rm -f "$cfgfile"; exit 1)
24376
24377 case $xsi_shell in
24378 yes)
24379 cat << \_LT_EOF >> "$cfgfile"
24380
24381# func_dirname file append nondir_replacement
24382# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24383# otherwise set result to NONDIR_REPLACEMENT.
24384func_dirname ()
24385{
24386 case ${1} in
24387 */*) func_dirname_result="${1%/*}${2}" ;;
24388 * ) func_dirname_result="${3}" ;;
24389 esac
24390}
24391
24392# func_basename file
24393func_basename ()
24394{
24395 func_basename_result="${1##*/}"
24396}
24397
24398# func_dirname_and_basename file append nondir_replacement
24399# perform func_basename and func_dirname in a single function
24400# call:
24401# dirname: Compute the dirname of FILE. If nonempty,
24402# add APPEND to the result, otherwise set result
24403# to NONDIR_REPLACEMENT.
24404# value returned in "$func_dirname_result"
24405# basename: Compute filename of FILE.
24406# value retuned in "$func_basename_result"
24407# Implementation must be kept synchronized with func_dirname
24408# and func_basename. For efficiency, we do not delegate to
24409# those functions but instead duplicate the functionality here.
24410func_dirname_and_basename ()
24411{
24412 case ${1} in
24413 */*) func_dirname_result="${1%/*}${2}" ;;
24414 * ) func_dirname_result="${3}" ;;
24415 esac
24416 func_basename_result="${1##*/}"
24417}
24418
24419# func_stripname prefix suffix name
24420# strip PREFIX and SUFFIX off of NAME.
24421# PREFIX and SUFFIX must not contain globbing or regex special
24422# characters, hashes, percent signs, but SUFFIX may contain a leading
24423# dot (in which case that matches only a dot).
24424func_stripname ()
24425{
24426 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24427 # positional parameters, so assign one to ordinary parameter first.
24428 func_stripname_result=${3}
24429 func_stripname_result=${func_stripname_result#"${1}"}
24430 func_stripname_result=${func_stripname_result%"${2}"}
24431}
24432
24433# func_opt_split
24434func_opt_split ()
24435{
24436 func_opt_split_opt=${1%%=*}
24437 func_opt_split_arg=${1#*=}
24438}
24439
24440# func_lo2o object
24441func_lo2o ()
24442{
24443 case ${1} in
24444 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24445 *) func_lo2o_result=${1} ;;
24446 esac
24447}
24448
24449# func_xform libobj-or-source
24450func_xform ()
24451{
24452 func_xform_result=${1%.*}.lo
24453}
24454
24455# func_arith arithmetic-term...
24456func_arith ()
24457{
24458 func_arith_result=$(( $* ))
24459}
24460
24461# func_len string
24462# STRING may not start with a hyphen.
24463func_len ()
24464{
24465 func_len_result=${#1}
24466}
24467
24468_LT_EOF
24469 ;;
24470 *) # Bourne compatible functions.
24471 cat << \_LT_EOF >> "$cfgfile"
24472
24473# func_dirname file append nondir_replacement
24474# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24475# otherwise set result to NONDIR_REPLACEMENT.
24476func_dirname ()
24477{
24478 # Extract subdirectory from the argument.
24479 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24480 if test "X$func_dirname_result" = "X${1}"; then
24481 func_dirname_result="${3}"
24482 else
24483 func_dirname_result="$func_dirname_result${2}"
24484 fi
24485}
24486
24487# func_basename file
24488func_basename ()
24489{
24490 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24491}
24492
24493
24494# func_stripname prefix suffix name
24495# strip PREFIX and SUFFIX off of NAME.
24496# PREFIX and SUFFIX must not contain globbing or regex special
24497# characters, hashes, percent signs, but SUFFIX may contain a leading
24498# dot (in which case that matches only a dot).
24499# func_strip_suffix prefix name
24500func_stripname ()
24501{
24502 case ${2} in
24503 .*) func_stripname_result=`$ECHO "X${3}" \
24504 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24505 *) func_stripname_result=`$ECHO "X${3}" \
24506 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24507 esac
24508}
24509
24510# sed scripts:
24511my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24512my_sed_long_arg='1s/^-[^=]*=//'
24513
24514# func_opt_split
24515func_opt_split ()
24516{
24517 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24518 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24519}
24520
24521# func_lo2o object
24522func_lo2o ()
24523{
24524 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24525}
24526
24527# func_xform libobj-or-source
24528func_xform ()
24529{
24530 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24531}
24532
24533# func_arith arithmetic-term...
24534func_arith ()
24535{
24536 func_arith_result=`expr "$@"`
24537}
24538
24539# func_len string
24540# STRING may not start with a hyphen.
24541func_len ()
24542{
24543 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24544}
24545
24546_LT_EOF
24547esac
24548
24549case $lt_shell_append in
24550 yes)
24551 cat << \_LT_EOF >> "$cfgfile"
24552
24553# func_append var value
24554# Append VALUE to the end of shell variable VAR.
24555func_append ()
24556{
24557 eval "$1+=\$2"
24558}
24559_LT_EOF
24560 ;;
24561 *)
24562 cat << \_LT_EOF >> "$cfgfile"
24563
24564# func_append var value
24565# Append VALUE to the end of shell variable VAR.
24566func_append ()
24567{
24568 eval "$1=\$$1\$2"
24569}
24570
24571_LT_EOF
24572 ;;
24573 esac
24574
24575
24576 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24577 || (rm -f "$cfgfile"; exit 1)
24578
24579 mv -f "$cfgfile" "$ofile" ||
24580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24581 chmod +x "$ofile"
24582
24583 ;;
24584 default-1 )
24585 for ac_file in $CONFIG_FILES; do
24586 # Support "outfile[:infile[:infile...]]"
24587 case "$ac_file" in
24588 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24589 esac
24590 # PO directories have a Makefile.in generated from Makefile.in.in.
24591 case "$ac_file" in */Makefile.in)
24592 # Adjust a relative srcdir.
24593 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24594 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24595 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24596 # In autoconf-2.13 it is called $ac_given_srcdir.
24597 # In autoconf-2.50 it is called $srcdir.
24598 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24599 case "$ac_given_srcdir" in
24600 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24601 /*) top_srcdir="$ac_given_srcdir" ;;
24602 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24603 esac
24604 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24605 rm -f "$ac_dir/POTFILES"
24606 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24607 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24608 POMAKEFILEDEPS="POTFILES.in"
24609 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24610 # on $ac_dir but don't depend on user-specified configuration
24611 # parameters.
24612 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24613 # The LINGUAS file contains the set of available languages.
24614 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24615 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24616 fi
24617 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24618 # Hide the ALL_LINGUAS assigment from automake.
24619 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24620 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24621 else
24622 # The set of available languages was given in configure.in.
24623 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24624 fi
24625 case "$ac_given_srcdir" in
24626 .) srcdirpre= ;;
24627 *) srcdirpre='$(srcdir)/' ;;
24628 esac
24629 POFILES=
24630 GMOFILES=
24631 UPDATEPOFILES=
24632 DUMMYPOFILES=
24633 for lang in $ALL_LINGUAS; do
24634 POFILES="$POFILES $srcdirpre$lang.po"
24635 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24636 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24637 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24638 done
24639 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24640 # environment variable.
24641 INST_LINGUAS=
24642 if test -n "$ALL_LINGUAS"; then
24643 for presentlang in $ALL_LINGUAS; do
24644 useit=no
24645 if test "%UNSET%" != "$LINGUAS"; then
24646 desiredlanguages="$LINGUAS"
24647 else
24648 desiredlanguages="$ALL_LINGUAS"
24649 fi
24650 for desiredlang in $desiredlanguages; do
24651 # Use the presentlang catalog if desiredlang is
24652 # a. equal to presentlang, or
24653 # b. a variant of presentlang (because in this case,
24654 # presentlang can be used as a fallback for messages
24655 # which are not translated in the desiredlang catalog).
24656 case "$desiredlang" in
24657 "$presentlang"*) useit=yes;;
24658 esac
24659 done
24660 if test $useit = yes; then
24661 INST_LINGUAS="$INST_LINGUAS $presentlang"
24662 fi
24663 done
24664 fi
24665 CATALOGS=
24666 if test -n "$INST_LINGUAS"; then
24667 for lang in $INST_LINGUAS; do
24668 CATALOGS="$CATALOGS $lang.gmo"
24669 done
24670 fi
24671 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24672 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" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24673 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24674 if test -f "$f"; then
24675 case "$f" in
24676 *.orig | *.bak | *~) ;;
24677 *) cat "$f" >> "$ac_dir/Makefile" ;;
24678 esac
24679 fi
24680 done
24681 fi
24682 ;;
24683 esac
24684 done ;;
24685 bfd_stdint.h )
24686if test "$GCC" = yes; then
24687 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24688else
24689 echo "/* generated for $CC */" > tmp-stdint.h
24690fi
24691
24692sed 's/^ *//' >> tmp-stdint.h <<EOF
24693
24694 #ifndef GCC_GENERATED_STDINT_H
24695 #define GCC_GENERATED_STDINT_H 1
24696
24697 #include <sys/types.h>
24698EOF
24699
24700if test "$acx_cv_header_stdint" != stdint.h; then
24701 echo "#include <stddef.h>" >> tmp-stdint.h
24702fi
24703if test "$acx_cv_header_stdint" != stddef.h; then
24704 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24705fi
24706
24707sed 's/^ *//' >> tmp-stdint.h <<EOF
24708 /* glibc uses these symbols as guards to prevent redefinitions. */
24709 #ifdef __int8_t_defined
24710 #define _INT8_T
24711 #define _INT16_T
24712 #define _INT32_T
24713 #endif
24714 #ifdef __uint32_t_defined
24715 #define _UINT32_T
24716 #endif
24717
24718EOF
24719
24720# ----------------- done header, emit basic int types -------------
24721if test "$acx_cv_header_stdint" = stddef.h; then
24722 sed 's/^ *//' >> tmp-stdint.h <<EOF
24723
24724 #ifndef _UINT8_T
24725 #define _UINT8_T
24726 #ifndef __uint8_t_defined
24727 #define __uint8_t_defined
24728 typedef unsigned $acx_cv_type_int8_t uint8_t;
24729 #endif
24730 #endif
24731
24732 #ifndef _UINT16_T
24733 #define _UINT16_T
24734 #ifndef __uint16_t_defined
24735 #define __uint16_t_defined
24736 typedef unsigned $acx_cv_type_int16_t uint16_t;
24737 #endif
24738 #endif
24739
24740 #ifndef _UINT32_T
24741 #define _UINT32_T
24742 #ifndef __uint32_t_defined
24743 #define __uint32_t_defined
24744 typedef unsigned $acx_cv_type_int32_t uint32_t;
24745 #endif
24746 #endif
24747
24748 #ifndef _INT8_T
24749 #define _INT8_T
24750 #ifndef __int8_t_defined
24751 #define __int8_t_defined
24752 typedef $acx_cv_type_int8_t int8_t;
24753 #endif
24754 #endif
24755
24756 #ifndef _INT16_T
24757 #define _INT16_T
24758 #ifndef __int16_t_defined
24759 #define __int16_t_defined
24760 typedef $acx_cv_type_int16_t int16_t;
24761 #endif
24762 #endif
24763
24764 #ifndef _INT32_T
24765 #define _INT32_T
24766 #ifndef __int32_t_defined
24767 #define __int32_t_defined
24768 typedef $acx_cv_type_int32_t int32_t;
24769 #endif
24770 #endif
24771EOF
24772elif test "$ac_cv_type_u_int32_t" = yes; then
24773 sed 's/^ *//' >> tmp-stdint.h <<EOF
24774
24775 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24776 #ifndef _INT8_T
24777 #define _INT8_T
24778 #endif
24779 #ifndef _INT16_T
24780 #define _INT16_T
24781 #endif
24782 #ifndef _INT32_T
24783 #define _INT32_T
24784 #endif
24785
24786 #ifndef _UINT8_T
24787 #define _UINT8_T
24788 #ifndef __uint8_t_defined
24789 #define __uint8_t_defined
24790 typedef u_int8_t uint8_t;
24791 #endif
24792 #endif
24793
24794 #ifndef _UINT16_T
24795 #define _UINT16_T
24796 #ifndef __uint16_t_defined
24797 #define __uint16_t_defined
24798 typedef u_int16_t uint16_t;
24799 #endif
24800 #endif
24801
24802 #ifndef _UINT32_T
24803 #define _UINT32_T
24804 #ifndef __uint32_t_defined
24805 #define __uint32_t_defined
24806 typedef u_int32_t uint32_t;
24807 #endif
24808 #endif
24809EOF
24810else
24811 sed 's/^ *//' >> tmp-stdint.h <<EOF
24812
24813 /* Some systems have guard macros to prevent redefinitions, define them. */
24814 #ifndef _INT8_T
24815 #define _INT8_T
24816 #endif
24817 #ifndef _INT16_T
24818 #define _INT16_T
24819 #endif
24820 #ifndef _INT32_T
24821 #define _INT32_T
24822 #endif
24823 #ifndef _UINT8_T
24824 #define _UINT8_T
24825 #endif
24826 #ifndef _UINT16_T
24827 #define _UINT16_T
24828 #endif
24829 #ifndef _UINT32_T
24830 #define _UINT32_T
24831 #endif
24832EOF
24833fi
24834
24835# ------------- done basic int types, emit int64_t types ------------
24836if test "$ac_cv_type_uint64_t" = yes; then
24837 sed 's/^ *//' >> tmp-stdint.h <<EOF
24838
24839 /* system headers have good uint64_t and int64_t */
24840 #ifndef _INT64_T
24841 #define _INT64_T
24842 #endif
24843 #ifndef _UINT64_T
24844 #define _UINT64_T
24845 #endif
24846EOF
24847elif test "$ac_cv_type_u_int64_t" = yes; then
24848 sed 's/^ *//' >> tmp-stdint.h <<EOF
24849
24850 /* system headers have an u_int64_t (and int64_t) */
24851 #ifndef _INT64_T
24852 #define _INT64_T
24853 #endif
24854 #ifndef _UINT64_T
24855 #define _UINT64_T
24856 #ifndef __uint64_t_defined
24857 #define __uint64_t_defined
24858 typedef u_int64_t uint64_t;
24859 #endif
24860 #endif
24861EOF
24862elif test -n "$acx_cv_type_int64_t"; then
24863 sed 's/^ *//' >> tmp-stdint.h <<EOF
24864
24865 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24866 #ifndef _INT64_T
24867 #define _INT64_T
24868 typedef $acx_cv_type_int64_t int64_t;
24869 #endif
24870 #ifndef _UINT64_T
24871 #define _UINT64_T
24872 #ifndef __uint64_t_defined
24873 #define __uint64_t_defined
24874 typedef unsigned $acx_cv_type_int64_t uint64_t;
24875 #endif
24876 #endif
24877EOF
24878else
24879 sed 's/^ *//' >> tmp-stdint.h <<EOF
24880
24881 /* some common heuristics for int64_t, using compiler-specific tests */
24882 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24883 #ifndef _INT64_T
24884 #define _INT64_T
24885 #ifndef __int64_t_defined
24886 typedef long long int64_t;
24887 #endif
24888 #endif
24889 #ifndef _UINT64_T
24890 #define _UINT64_T
24891 typedef unsigned long long uint64_t;
24892 #endif
24893
24894 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24895 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24896 does not implement __extension__. But that compiler doesn't define
24897 __GNUC_MINOR__. */
24898 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24899 # define __extension__
24900 # endif
24901
24902 # ifndef _INT64_T
24903 # define _INT64_T
24904 __extension__ typedef long long int64_t;
24905 # endif
24906 # ifndef _UINT64_T
24907 # define _UINT64_T
24908 __extension__ typedef unsigned long long uint64_t;
24909 # endif
24910
24911 #elif !defined __STRICT_ANSI__
24912 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24913
24914 # ifndef _INT64_T
24915 # define _INT64_T
24916 typedef __int64 int64_t;
24917 # endif
24918 # ifndef _UINT64_T
24919 # define _UINT64_T
24920 typedef unsigned __int64 uint64_t;
24921 # endif
24922 # endif /* compiler */
24923
24924 #endif /* ANSI version */
24925EOF
24926fi
24927
24928# ------------- done int64_t types, emit intptr types ------------
24929if test "$ac_cv_type_uintptr_t" != yes; then
24930 sed 's/^ *//' >> tmp-stdint.h <<EOF
24931
24932 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24933 #ifndef __uintptr_t_defined
24934 typedef u$acx_cv_type_intptr_t uintptr_t;
24935 #endif
24936 #ifndef __intptr_t_defined
24937 typedef $acx_cv_type_intptr_t intptr_t;
24938 #endif
24939EOF
24940fi
24941
24942# ------------- done intptr types, emit int_least types ------------
24943if test "$ac_cv_type_int_least32_t" != yes; then
24944 sed 's/^ *//' >> tmp-stdint.h <<EOF
24945
24946 /* Define int_least types */
24947 typedef int8_t int_least8_t;
24948 typedef int16_t int_least16_t;
24949 typedef int32_t int_least32_t;
24950 #ifdef _INT64_T
24951 typedef int64_t int_least64_t;
24952 #endif
24953
24954 typedef uint8_t uint_least8_t;
24955 typedef uint16_t uint_least16_t;
24956 typedef uint32_t uint_least32_t;
24957 #ifdef _UINT64_T
24958 typedef uint64_t uint_least64_t;
24959 #endif
24960EOF
24961fi
24962
24963# ------------- done intptr types, emit int_fast types ------------
24964if test "$ac_cv_type_int_fast32_t" != yes; then
24965 sed 's/^ *//' >> tmp-stdint.h <<EOF
24966
24967 /* Define int_fast types. short is often slow */
24968 typedef int8_t int_fast8_t;
24969 typedef int int_fast16_t;
24970 typedef int32_t int_fast32_t;
24971 #ifdef _INT64_T
24972 typedef int64_t int_fast64_t;
24973 #endif
24974
24975 typedef uint8_t uint_fast8_t;
24976 typedef unsigned int uint_fast16_t;
24977 typedef uint32_t uint_fast32_t;
24978 #ifdef _UINT64_T
24979 typedef uint64_t uint_fast64_t;
24980 #endif
24981EOF
24982fi
24983
24984if test "$ac_cv_type_uintmax_t" != yes; then
24985 sed 's/^ *//' >> tmp-stdint.h <<EOF
24986
24987 /* Define intmax based on what we found */
24988 #ifdef _INT64_T
24989 typedef int64_t intmax_t;
24990 #else
24991 typedef long intmax_t;
24992 #endif
24993 #ifdef _UINT64_T
24994 typedef uint64_t uintmax_t;
24995 #else
24996 typedef unsigned long uintmax_t;
24997 #endif
24998EOF
24999fi
25000
25001sed 's/^ *//' >> tmp-stdint.h <<EOF
25002
25003 #endif /* GCC_GENERATED_STDINT_H */
25004EOF
25005
25006if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25007 rm -f tmp-stdint.h
25008else
25009 mv -f tmp-stdint.h bfd_stdint.h
25010fi
25011
25012 ;;
25013 default )
25014case "$srcdir" in
25015 .) srcdirpre= ;;
25016 *) srcdirpre='$(srcdir)/' ;;
25017esac
25018POFILES=
25019GMOFILES=
25020for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25021 if test $lang != dummy; then
25022 POFILES="$POFILES $srcdirpre$lang.po"
25023 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25024 fi
25025done
25026sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25027 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25028 -e "s,@POFILES@,$POFILES," \
25029 -e "s,@GMOFILES@,$GMOFILES," \
25030 po/Makefile.in > po/Makefile ;;
25031 esac
25032done
25033_ACEOF
25034
25035cat >>$CONFIG_STATUS <<\_ACEOF
25036
25037{ (exit 0); exit 0; }
25038_ACEOF
25039chmod +x $CONFIG_STATUS
25040ac_clean_files=$ac_clean_files_save
25041
25042
25043# configure is writing to config.log, and then calls config.status.
25044# config.status does its own redirection, appending to config.log.
25045# Unfortunately, on DOS this fails, as config.log is still kept open
25046# by configure, so config.status won't be able to write to it; its
25047# output is simply discarded. So we exec the FD to /dev/null,
25048# effectively closing config.log, so it can be properly (re)opened and
25049# appended to by config.status. When coming back to configure, we
25050# need to make the FD available again.
25051if test "$no_create" != yes; then
25052 ac_cs_success=:
25053 ac_config_status_args=
25054 test "$silent" = yes &&
25055 ac_config_status_args="$ac_config_status_args --quiet"
25056 exec 5>/dev/null
25057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25058 exec 5>>config.log
25059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25060 # would make configure fail if this is the last instruction.
25061 $ac_cs_success || { (exit 1); exit 1; }
25062fi
25063
25064
This page took 0.155993 seconds and 4 git commands to generate.