* libtool.m4: Update to libtool 2.2.6.
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
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
d7040cdb
SE
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
5464f5a1
NN
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`
252b5132 397
5464f5a1
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
5464f5a1
NN
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
7357c5b6 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 lt_ECHO 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'
5464f5a1 462ac_subst_files=''
7357c5b6 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
5464f5a1
NN
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
5464f5a1 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
5464f5a1
NN
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.
252b5132
RH
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
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
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
5464f5a1 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
5464f5a1 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
5464f5a1 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 527 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
5464f5a1 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
5464f5a1 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
5464f5a1 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
5464f5a1
NN
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"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
5464f5a1 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
5464f5a1 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
5464f5a1
NN
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 ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
5464f5a1 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 590 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 607 libdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 614 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 628 mandir=$ac_optarg ;;
252b5132
RH
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 \
5464f5a1 635 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
5464f5a1 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 654 prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 661 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 668 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 685 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 695 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
5464f5a1 711 site=$ac_optarg ;;
6be7c12c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 716 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
5464f5a1
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
5464f5a1 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
5464f5a1
NN
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; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
5464f5a1 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
5464f5a1 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
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=*)
5464f5a1 767 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 774 x_libraries=$ac_optarg ;;
252b5132 775
5464f5a1
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
5464f5a1
NN
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
252b5132 791 *)
5464f5a1
NN
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}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
5464f5a1
NN
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; }; }
252b5132 806fi
252b5132 807
5464f5a1
NN
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
6be7c12c 818
5464f5a1
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
5464f5a1
NN
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; }; };;
252b5132
RH
828 esac
829done
830
5464f5a1
NN
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
252b5132 848
5464f5a1
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
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.
5464f5a1
NN
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'`
252b5132
RH
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
5464f5a1
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
5464f5a1
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
5464f5a1
NN
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
b3baf5d0 923
5464f5a1
NN
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.
252b5132 932
5464f5a1 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
5464f5a1
NN
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 937
5464f5a1 938Defaults for the options are specified in brackets.
6be7c12c 939
5464f5a1
NN
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]
6be7c12c 959
5464f5a1
NN
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'.
6be7c12c 964
5464f5a1 965For better control, use the options below.
6be7c12c 966
5464f5a1
NN
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
6be7c12c 981
5464f5a1 982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
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
252b5132 988
5464f5a1
NN
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
252b5132 994fi
252b5132 995
5464f5a1 996if test -n "$ac_init_help"; then
6be7c12c 997
5464f5a1 998 cat <<\_ACEOF
252b5132 999
5464f5a1
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
d053aef8 1007 --disable-largefile omit support for large files
d7040cdb
SE
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
5464f5a1
NN
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
6ec7057a 1016 --enable-secureplt Default to creating read-only plt entries
504b7d20 1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
5464f5a1
NN
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)
d7040cdb
SE
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]
5464f5a1 1031 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
a1ac8190
JM
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
c428fa83 1037 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
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 ;;
6be7c12c
AO
1083esac
1084
5464f5a1
NN
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
6be7c12c 1123
5464f5a1
NN
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
7357c5b6 1139 cd $ac_popdir
5464f5a1 1140 done
6be7c12c
AO
1141fi
1142
5464f5a1
NN
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
6be7c12c 1146
5464f5a1
NN
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.
6be7c12c 1157
5464f5a1
NN
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1160
5464f5a1 1161 $ $0 $@
6be7c12c 1162
5464f5a1
NN
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
6be7c12c 1196
5464f5a1 1197} >&5
66e25bab 1198
5464f5a1 1199cat >&5 <<_ACEOF
b3baf5d0 1200
6be7c12c 1201
5464f5a1
NN
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
252b5132 1205
5464f5a1 1206_ACEOF
c5d1701e 1207
6be7c12c 1208
5464f5a1
NN
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
6194aaab
L
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
5464f5a1 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
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;}
5464f5a1
NN
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
7357c5b6
AM
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
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
7357c5b6
AM
1495
1496
1497
5464f5a1
NN
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
7357c5b6
AM
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
5464f5a1
NN
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;}
7357c5b6 1924 { (exit 1); exit 1; }; }; }
5464f5a1
NN
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
7357c5b6
AM
2010{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
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;}
7357c5b6 2016 { (exit 77); exit 77; }; }; }
5464f5a1
NN
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
7357c5b6
AM
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.
5464f5a1
NN
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;}
7357c5b6 2049 { (exit 1); exit 1; }; }; }
5464f5a1
NN
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
7357c5b6
AM
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
5464f5a1
NN
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;}
7357c5b6 2093 { (exit 1); exit 1; }; }; }
5464f5a1
NN
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
7357c5b6
AM
2140{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
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;}
7357c5b6 2146 { (exit 1); exit 1; }; }; }
5464f5a1
NN
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); } &&
7357c5b6
AM
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
5464f5a1
NN
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); } &&
7357c5b6
AM
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
5464f5a1
NN
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); } &&
7357c5b6
AM
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
5464f5a1
NN
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); } &&
7357c5b6
AM
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
5464f5a1
NN
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); } &&
7357c5b6
AM
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
5464f5a1
NN
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); } &&
7357c5b6
AM
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
5464f5a1
NN
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
f5385ebf
AM
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
5464f5a1
NN
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
f5385ebf
AM
2555 ac_func_search_save_LIBS=$LIBS
2556ac_cv_search_strerror=no
5464f5a1
NN
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); } &&
7357c5b6
AM
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
5464f5a1
NN
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
f5385ebf 2601 ac_cv_search_strerror="none required"
5464f5a1
NN
2602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
5464f5a1
NN
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
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); } &&
7357c5b6
AM
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
f5385ebf
AM
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
5464f5a1 2662fi
f5385ebf
AM
2663rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
5464f5a1 2666fi
f5385ebf
AM
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"
5464f5a1 2673
f5385ebf 2674fi
5464f5a1
NN
2675
2676
f5385ebf 2677am__api_version="1.9"
5464f5a1
NN
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
252b5132
RH
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"
5464f5a1 2689# OS/2's system install, which has a completely different semantic
252b5132 2690# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2691# Reject install programs that cannot install multiple files.
5464f5a1
NN
2692echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2694if test -z "$INSTALL"; then
5464f5a1
NN
2695if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2697else
5464f5a1
NN
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
252b5132 2716 if test $ac_prog = install &&
5464f5a1 2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2718 # AIX install. It has an incompatible calling convention.
2719 :
5464f5a1
NN
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 :
252b5132 2724 else
58c85be7
RW
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
252b5132
RH
2737 fi
2738 fi
2739 done
5464f5a1
NN
2740 done
2741 ;;
2742esac
2743done
2744
58c85be7 2745rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2746
2747fi
2748 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2749 INSTALL=$ac_cv_path_install
252b5132 2750 else
58c85be7
RW
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
252b5132 2753 # break other packages using the cache if that directory is
58c85be7 2754 # removed, or if the value is a relative name.
5464f5a1 2755 INSTALL=$ac_install_sh
252b5132
RH
2756 fi
2757fi
5464f5a1
NN
2758echo "$as_me:$LINENO: result: $INSTALL" >&5
2759echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
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
5464f5a1 2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2766
2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
5464f5a1
NN
2769echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2771# Just in case
2772sleep 1
f5385ebf 2773echo timestamp > conftest.file
252b5132
RH
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 (
f5385ebf 2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2781 if test "$*" = "X"; then
2782 # -L didn't work.
f5385ebf 2783 set X `ls -t $srcdir/configure conftest.file`
252b5132 2784 fi
f5385ebf
AM
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
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".
5464f5a1
NN
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; }; }
252b5132
RH
2798 fi
2799
f5385ebf 2800 test "$2" = conftest.file
252b5132
RH
2801 )
2802then
2803 # Ok.
2804 :
2805else
5464f5a1
NN
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; }; }
252b5132 2811fi
5464f5a1
NN
2812echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
252b5132 2814test "$program_prefix" != NONE &&
5464f5a1 2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2816# Use a double $ so make ignores it.
2817test "$program_suffix" != NONE &&
5464f5a1
NN
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
f5385ebf
AM
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
5464f5a1
NN
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
252b5132 2920all:
5464f5a1
NN
2921 @echo 'ac_maketemp="$(MAKE)"'
2922_ACEOF
252b5132 2923# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2924eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
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
5464f5a1 2930rm -f conftest.make
252b5132
RH
2931fi
2932if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
252b5132
RH
2935 SET_MAKE=
2936else
5464f5a1
NN
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
252b5132
RH
2939 SET_MAKE="MAKE=${MAKE-make}"
2940fi
2941
f5385ebf
AM
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
6be7c12c 3013
252b5132 3014
252b5132 3015
f5385ebf
AM
3016# test to see if srcdir already configured
3017if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
5464f5a1
NN
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; }; }
252b5132 3022fi
5464f5a1 3023
f5385ebf
AM
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
96497422 3036 VERSION=2.19.50
f5385ebf
AM
3037
3038
5464f5a1 3039cat >>confdefs.h <<_ACEOF
252b5132 3040#define PACKAGE "$PACKAGE"
5464f5a1 3041_ACEOF
252b5132 3042
5464f5a1
NN
3043
3044cat >>confdefs.h <<_ACEOF
252b5132 3045#define VERSION "$VERSION"
5464f5a1 3046_ACEOF
252b5132 3047
f5385ebf
AM
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"}
6be7c12c 3063
f5385ebf 3064install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3065
f5385ebf
AM
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.
252b5132 3081else
f5385ebf
AM
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
252b5132 3107fi
f5385ebf
AM
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
252b5132 3133
f5385ebf
AM
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
252b5132 3141else
f5385ebf
AM
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
252b5132
RH
3144fi
3145
f5385ebf 3146 STRIP=$ac_ct_STRIP
252b5132 3147else
f5385ebf
AM
3148 STRIP="$ac_cv_prog_STRIP"
3149fi
3150
252b5132 3151fi
f5385ebf
AM
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
252b5132 3162
f5385ebf
AM
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
252b5132 3171else
f5385ebf
AM
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
252b5132 3256fi
f5385ebf
AM
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
252b5132 3260
f5385ebf
AM
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='#'
252b5132 3268else
f5385ebf
AM
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
252b5132
RH
3271fi
3272
6be7c12c 3273
e43d48cc 3274
f5385ebf 3275
5464f5a1
NN
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.
252b5132 3278set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
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
252b5132
RH
3283else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286else
5464f5a1
NN
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
252b5132
RH
3301fi
3302fi
5464f5a1 3303AR=$ac_cv_prog_AR
252b5132 3304if test -n "$AR"; then
5464f5a1
NN
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306echo "${ECHO_T}$AR" >&6
252b5132 3307else
5464f5a1
NN
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
252b5132 3312fi
5464f5a1
NN
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
252b5132 3338
5464f5a1
NN
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
252b5132 3349
5464f5a1
NN
3350 AR=$ac_ct_AR
3351else
3352 AR="$ac_cv_prog_AR"
3353fi
6be7c12c 3354
5464f5a1
NN
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.
252b5132 3357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
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
252b5132
RH
3362else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365else
5464f5a1
NN
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
252b5132
RH
3380fi
3381fi
5464f5a1 3382RANLIB=$ac_cv_prog_RANLIB
252b5132 3383if test -n "$RANLIB"; then
5464f5a1
NN
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385echo "${ECHO_T}$RANLIB" >&6
252b5132 3386else
5464f5a1
NN
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
252b5132
RH
3389fi
3390
5464f5a1 3391fi
252b5132 3392if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3393 ac_ct_RANLIB=$RANLIB
252b5132
RH
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395set dummy ranlib; ac_word=$2
5464f5a1
NN
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
6be7c12c 3400else
5464f5a1
NN
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3403else
5464f5a1
NN
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=":"
252b5132
RH
3419fi
3420fi
5464f5a1
NN
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
252b5132 3425else
5464f5a1
NN
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
252b5132
RH
3428fi
3429
5464f5a1 3430 RANLIB=$ac_ct_RANLIB
252b5132 3431else
5464f5a1 3432 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3433fi
3434
252b5132
RH
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}
d7040cdb
SE
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
252b5132
RH
3456else
3457 enable_shared=no
5464f5a1 3458fi;
252b5132 3459
d7040cdb
SE
3460
3461
3462
3463
3464
3465
3466
3467
cfbc9945
SE
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
252b5132 3480else
cfbc9945
SE
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3483else
cfbc9945
SE
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
c5d1701e 3497
cfbc9945
SE
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
252b5132 3504else
cfbc9945
SE
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
252b5132 3507fi
cfbc9945
SE
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
5464f5a1 3517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3518else
cfbc9945
SE
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3521else
cfbc9945
SE
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
252b5132
RH
3536fi
3537fi
cfbc9945
SE
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
252b5132 3542else
5464f5a1
NN
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
252b5132 3545fi
cfbc9945
SE
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
5464f5a1 3559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3560else
cfbc9945
SE
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3563else
cfbc9945
SE
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
252b5132
RH
3578fi
3579fi
cfbc9945
SE
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583echo "${ECHO_T}$CC" >&6
ac48eca1 3584else
cfbc9945
SE
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
ac48eca1 3587fi
ac48eca1 3588
cfbc9945
SE
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
5464f5a1 3597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3598else
cfbc9945
SE
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3601else
cfbc9945
SE
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
252b5132 3616fi
cfbc9945
SE
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
252b5132
RH
3625fi
3626
cfbc9945
SE
3627 CC=$ac_ct_CC
3628else
3629 CC="$ac_cv_prog_CC"
3630fi
252b5132 3631
cfbc9945
SE
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
6be7c12c 3640else
cfbc9945
SE
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
252b5132
RH
3684fi
3685
cfbc9945
SE
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
5464f5a1 3696 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3697else
cfbc9945
SE
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
ac48eca1 3714
cfbc9945
SE
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
ac48eca1 3725
cfbc9945
SE
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
ac48eca1 3756
cfbc9945
SE
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
ac48eca1 3767
cfbc9945
SE
3768 test -n "$ac_ct_CC" && break
3769done
ac48eca1 3770
cfbc9945
SE
3771 CC=$ac_ct_CC
3772fi
55c80943 3773
cfbc9945 3774fi
ac48eca1 3775
ac48eca1 3776
7357c5b6
AM
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
cfbc9945
SE
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;}
7357c5b6 3783 { (exit 1); exit 1; }; }; }
ac48eca1 3784
cfbc9945
SE
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); }
ac48eca1 3804
cfbc9945
SE
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
5464f5a1 3808 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3809else
cfbc9945
SE
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. */
ac48eca1 3816
cfbc9945
SE
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
5464f5a1 3823
cfbc9945
SE
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); } &&
7357c5b6
AM
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
cfbc9945
SE
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
ac48eca1 3851else
cfbc9945
SE
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855ac_compiler_gnu=no
ac48eca1 3856fi
cfbc9945
SE
3857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3859
5464f5a1 3860fi
cfbc9945
SE
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
5464f5a1 3870 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3871else
cfbc9945
SE
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); } &&
7357c5b6
AM
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
cfbc9945
SE
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
6be7c12c 3910else
cfbc9945
SE
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3913
cfbc9945 3914ac_cv_prog_cc_g=no
ac48eca1 3915fi
cfbc9945 3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3917fi
cfbc9945
SE
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
ac48eca1 3928else
cfbc9945
SE
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3933 fi
ac48eca1 3934fi
cfbc9945
SE
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
5464f5a1 3938 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3939else
cfbc9945
SE
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}
5464f5a1 3970
cfbc9945
SE
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); } &&
7357c5b6
AM
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
cfbc9945
SE
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
ac48eca1 4028else
cfbc9945
SE
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4031
5464f5a1 4032fi
cfbc9945 4033rm -f conftest.err conftest.$ac_objext
5464f5a1 4034done
cfbc9945
SE
4035rm -f conftest.$ac_ext conftest.$ac_objext
4036CC=$ac_save_CC
5464f5a1 4037
ac48eca1 4038fi
252b5132 4039
cfbc9945
SE
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
6be7c12c 4049
cfbc9945
SE
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
5464f5a1 4062 ac_status=$?
cfbc9945
SE
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
5464f5a1 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4067 (exit $ac_status); } &&
7357c5b6
AM
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
cfbc9945
SE
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
5464f5a1
NN
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
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
d70c5fc7
NC
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
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); } &&
7357c5b6
AM
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
cfbc9945
SE
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 :
b2ef150d 4128else
cfbc9945
SE
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4131
cfbc9945
SE
4132continue
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
cfbc9945 4141$ac_declaration
5464f5a1
NN
4142int
4143main ()
4144{
cfbc9945 4145exit (42);
5464f5a1
NN
4146 ;
4147 return 0;
4148}
4149_ACEOF
cfbc9945
SE
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
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); } &&
7357c5b6
AM
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
cfbc9945 4166 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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
cfbc9945 4172 break
b2ef150d 4173else
5464f5a1
NN
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
b2ef150d 4177fi
cfbc9945
SE
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
6ec7057a 4185fi
cfbc9945 4186
92f01d61 4187else
cfbc9945
SE
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4190
cfbc9945
SE
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
92f01d61
JM
4198
4199
cfbc9945
SE
4200cat >>confdefs.h <<\_ACEOF
4201#define _GNU_SOURCE 1
4202_ACEOF
a1ac8190 4203
c428fa83 4204
7357c5b6
AM
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
cfbc9945 4267
7357c5b6
AM
4268 # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.$ac_ext
d7040cdb 4272
7357c5b6
AM
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
d7040cdb 4306
7357c5b6
AM
4307 # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
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
d7040cdb 4319
7357c5b6
AM
4320 done
4321 ac_cv_prog_CPP=$CPP
d7040cdb 4322
7357c5b6
AM
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
d7040cdb 4374
7357c5b6
AM
4375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
d7040cdb 4379
7357c5b6
AM
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
d7040cdb 4413
7357c5b6
AM
4414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
d7040cdb 4419
7357c5b6
AM
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
d7040cdb 4434
7357c5b6
AM
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
d7040cdb 4440
d7040cdb 4441
7357c5b6
AM
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
d7040cdb
SE
4455
4456
7357c5b6
AM
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>
d7040cdb 4472
7357c5b6
AM
4473int
4474main ()
4475{
d7040cdb 4476
7357c5b6
AM
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
c428fa83 4504else
7357c5b6
AM
4505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4507
7357c5b6
AM
4508ac_cv_header_stdc=no
4509fi
4510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4511
7357c5b6
AM
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>
d7040cdb 4521
7357c5b6
AM
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*
d7040cdb 4530
7357c5b6 4531fi
d7040cdb 4532
7357c5b6
AM
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>
d7040cdb 4542
7357c5b6
AM
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*
d7040cdb 4551
7357c5b6 4552fi
d7040cdb 4553
7357c5b6
AM
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
d7040cdb 4576
7357c5b6
AM
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 :
d7040cdb 4601else
7357c5b6
AM
4602 echo "$as_me: program exited with status $ac_status" >&5
4603echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4605
7357c5b6
AM
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
d7040cdb 4616
7357c5b6
AM
4617cat >>confdefs.h <<\_ACEOF
4618#define STDC_HEADERS 1
4619_ACEOF
d7040cdb 4620
7357c5b6 4621fi
d7040cdb 4622
7357c5b6 4623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4624
4625
4626
4627
c428fa83 4628
d7040cdb
SE
4629
4630
4631
4632
7357c5b6
AM
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
d7040cdb 4649
7357c5b6
AM
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
d7040cdb 4678
7357c5b6
AM
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
d7040cdb 4689
7357c5b6
AM
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
d7040cdb 4700 echo $ECHO_N "(cached) $ECHO_C" >&6
7357c5b6
AM
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4704else
7357c5b6
AM
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
d7040cdb 4743
7357c5b6 4744ac_header_compiler=no
d7040cdb 4745fi
7357c5b6
AM
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
d7040cdb 4749
7357c5b6
AM
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
d7040cdb 4783
7357c5b6
AM
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
d7040cdb 4789
7357c5b6
AM
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
d7040cdb
SE
4838
4839
7357c5b6 4840 if test "$MINIX" = yes; then
d7040cdb 4841
7357c5b6
AM
4842cat >>confdefs.h <<\_ACEOF
4843#define _POSIX_SOURCE 1
4844_ACEOF
d7040cdb
SE
4845
4846
7357c5b6
AM
4847cat >>confdefs.h <<\_ACEOF
4848#define _POSIX_1_SOURCE 2
4849_ACEOF
d7040cdb
SE
4850
4851
7357c5b6
AM
4852cat >>confdefs.h <<\_ACEOF
4853#define _MINIX 1
4854_ACEOF
d7040cdb 4855
7357c5b6 4856 fi
d7040cdb
SE
4857
4858
4859
7357c5b6
AM
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
d7040cdb
SE
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
7357c5b6
AM
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. */
d7040cdb 4871
7357c5b6
AM
4872# define __EXTENSIONS__ 1
4873 $ac_includes_default
4874int
4875main ()
4876{
d7040cdb 4877
7357c5b6
AM
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
d7040cdb 4905else
7357c5b6
AM
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909ac_cv_safe_to_define___extensions__=no
d7040cdb 4910fi
7357c5b6
AM
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
d7040cdb 4919
7357c5b6
AM
4920 cat >>confdefs.h <<\_ACEOF
4921#define _ALL_SOURCE 1
4922_ACEOF
d7040cdb 4923
7357c5b6
AM
4924 cat >>confdefs.h <<\_ACEOF
4925#define _GNU_SOURCE 1
4926_ACEOF
d7040cdb 4927
7357c5b6
AM
4928 cat >>confdefs.h <<\_ACEOF
4929#define _POSIX_PTHREAD_SEMANTICS 1
4930_ACEOF
d7040cdb 4931
7357c5b6
AM
4932 cat >>confdefs.h <<\_ACEOF
4933#define _TANDEM_SOURCE 1
4934_ACEOF
d7040cdb
SE
4935
4936
d053aef8
JK
4937# Check whether --enable-largefile or --disable-largefile was given.
4938if test "${enable_largefile+set}" = set; then
4939 enableval="$enable_largefile"
4940
4941fi;
4942if test "$enable_largefile" != no; then
4943
4944 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4945echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4946if test "${ac_cv_sys_largefile_CC+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949 ac_cv_sys_largefile_CC=no
4950 if test "$GCC" != yes; then
4951 ac_save_CC=$CC
4952 while :; do
4953 # IRIX 6.2 and later do not support large files by default,
4954 # so use the C compiler's -n32 option if that helps.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978 rm -f conftest.$ac_objext
4979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 break
5001else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005fi
5006rm -f conftest.err conftest.$ac_objext
5007 CC="$CC -n32"
5008 rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_sys_largefile_CC=' -n32'; break
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035fi
5036rm -f conftest.err conftest.$ac_objext
5037 break
5038 done
5039 CC=$ac_save_CC
5040 rm -f conftest.$ac_ext
5041 fi
5042fi
5043echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5044echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5047 fi
5048
5049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5051if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 while :; do
5055 ac_cv_sys_file_offset_bits=no
5056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#include <sys/types.h>
5063 /* Check that off_t can represent 2**63 - 1 correctly.
5064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5065 since some C++ compilers masquerading as C compilers
5066 incorrectly reject 9223372036854775807. */
5067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5069 && LARGE_OFF_T % 2147483647 == 1)
5070 ? 1 : -1];
5071int
5072main ()
5073{
5074
5075 ;
5076 return 0;
5077}
5078_ACEOF
5079rm -f conftest.$ac_objext
5080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 break
5102else
5103 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106fi
5107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h. */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h. */
5114#define _FILE_OFFSET_BITS 64
5115#include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5123 ? 1 : -1];
5124int
5125main ()
5126{
5127
5128 ;
5129 return 0;
5130}
5131_ACEOF
5132rm -f conftest.$ac_objext
5133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_file_offset_bits=64; break
5155else
5156 echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159fi
5160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 break
5162done
5163fi
5164echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5165echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5166if test "$ac_cv_sys_file_offset_bits" != no; then
5167
5168cat >>confdefs.h <<_ACEOF
5169#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5170_ACEOF
5171
5172fi
5173rm -f conftest*
5174 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5175echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5176if test "${ac_cv_sys_large_files+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179 while :; do
5180 ac_cv_sys_large_files=no
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187#include <sys/types.h>
5188 /* Check that off_t can represent 2**63 - 1 correctly.
5189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5190 since some C++ compilers masquerading as C compilers
5191 incorrectly reject 9223372036854775807. */
5192#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5194 && LARGE_OFF_T % 2147483647 == 1)
5195 ? 1 : -1];
5196int
5197main ()
5198{
5199
5200 ;
5201 return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 break
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231fi
5232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239#define _LARGE_FILES 1
5240#include <sys/types.h>
5241 /* Check that off_t can represent 2**63 - 1 correctly.
5242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243 since some C++ compilers masquerading as C compilers
5244 incorrectly reject 9223372036854775807. */
5245#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247 && LARGE_OFF_T % 2147483647 == 1)
5248 ? 1 : -1];
5249int
5250main ()
5251{
5252
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sys_large_files=1; break
5280else
5281 echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284fi
5285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 break
5287done
5288fi
5289echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5290echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5291if test "$ac_cv_sys_large_files" != no; then
5292
5293cat >>confdefs.h <<_ACEOF
5294#define _LARGE_FILES $ac_cv_sys_large_files
5295_ACEOF
5296
5297fi
5298rm -f conftest*
5299fi
5300
d7040cdb
SE
5301
5302
5303
7357c5b6
AM
5304macro_version='2.1a'
5305macro_revision='1.2435'
d7040cdb
SE
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
7357c5b6
AM
5318ltmain="$ac_aux_dir/ltmain.sh"
5319
5320# Set options
5321
5322enable_dlopen=no
5323
5324
5325enable_win32_dll=no
5326
5327
5328
5329# Check whether --enable-static or --disable-static was given.
5330if test "${enable_static+set}" = set; then
5331 enableval="$enable_static"
5332 p=${PACKAGE-default}
5333 case $enableval in
5334 yes) enable_static=yes ;;
5335 no) enable_static=no ;;
5336 *)
5337 enable_static=no
5338 # Look at the argument we got. We use all the common list separators.
5339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5340 for pkg in $enableval; do
5341 IFS="$lt_save_ifs"
5342 if test "X$pkg" = "X$p"; then
5343 enable_static=yes
5344 fi
5345 done
5346 IFS="$lt_save_ifs"
5347 ;;
5348 esac
5349else
5350 enable_static=yes
5351fi;
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361# Check whether --with-pic or --without-pic was given.
5362if test "${with_pic+set}" = set; then
5363 withval="$with_pic"
5364 pic_mode="$withval"
5365else
5366 pic_mode=default
5367fi;
5368
5369test -z "$pic_mode" && pic_mode=default
5370
5371
5372
5373
5374
5375
5376
5377# Check whether --enable-fast-install or --disable-fast-install was given.
5378if test "${enable_fast_install+set}" = set; then
5379 enableval="$enable_fast_install"
5380 p=${PACKAGE-default}
5381 case $enableval in
5382 yes) enable_fast_install=yes ;;
5383 no) enable_fast_install=no ;;
5384 *)
5385 enable_fast_install=no
5386 # Look at the argument we got. We use all the common list separators.
5387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5388 for pkg in $enableval; do
5389 IFS="$lt_save_ifs"
5390 if test "X$pkg" = "X$p"; then
5391 enable_fast_install=yes
5392 fi
5393 done
5394 IFS="$lt_save_ifs"
5395 ;;
5396 esac
5397else
5398 enable_fast_install=yes
5399fi;
5400
5401
5402
5403
5404
5405
5406
5407
5408echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5409echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5410if test "${lt_cv_path_SED+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 # Loop through the user's path and test for sed and gsed.
5414# Then use that list of sed's as ones to test for truncation.
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for lt_ac_prog in sed gsed; do
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5423 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5424 fi
5425 done
5426 done
5427done
5428IFS=$as_save_IFS
5429lt_ac_max=0
5430lt_ac_count=0
5431# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5432# along with /bin/sed that truncates output.
5433for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5434 test ! -f $lt_ac_sed && continue
5435 cat /dev/null > conftest.in
5436 lt_ac_count=0
5437 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5438 # Check for GNU sed and select it if it is found.
5439 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5440 lt_cv_path_SED=$lt_ac_sed
5441 break
5442 fi
5443 while true; do
5444 cat conftest.in conftest.in >conftest.tmp
5445 mv conftest.tmp conftest.in
5446 cp conftest.in conftest.nl
5447 echo >>conftest.nl
5448 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5449 cmp -s conftest.out conftest.nl || break
5450 # 10000 chars as input seems more than enough
5451 test $lt_ac_count -gt 10 && break
5452 lt_ac_count=`expr $lt_ac_count + 1`
5453 if test $lt_ac_count -gt $lt_ac_max; then
5454 lt_ac_max=$lt_ac_count
5455 lt_cv_path_SED=$lt_ac_sed
5456 fi
5457 done
5458done
5459
5460fi
5461
5462SED=$lt_cv_path_SED
5463
5464echo "$as_me:$LINENO: result: $SED" >&5
5465echo "${ECHO_T}$SED" >&6
5466
5467test -z "$SED" && SED=sed
5468Xsed="$SED -e 1s/^X//"
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480echo "$as_me:$LINENO: checking for fgrep" >&5
5481echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5482if test "${ac_cv_prog_fgrep+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5486 then ac_cv_prog_fgrep='grep -F'
5487 else ac_cv_prog_fgrep='fgrep'
5488 fi
5489fi
5490echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5491echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5492 FGREP=$ac_cv_prog_fgrep
5493
5494
5495test -z "$GREP" && GREP=grep
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515# Check whether --with-gnu-ld or --without-gnu-ld was given.
5516if test "${with_gnu_ld+set}" = set; then
5517 withval="$with_gnu_ld"
5518 test "$withval" = no || with_gnu_ld=yes
5519else
5520 with_gnu_ld=no
5521fi;
5522ac_prog=ld
5523if test "$GCC" = yes; then
5524 # Check if gcc -print-prog-name=ld gives a path.
5525 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5526echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5527 case $host in
5528 *-*-mingw*)
5529 # gcc leaves a trailing carriage return which upsets mingw
5530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5531 *)
5532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5533 esac
5534 case $ac_prog in
5535 # Accept absolute paths.
5536 [\\/]* | ?:[\\/]*)
5537 re_direlt='/[^/][^/]*/\.\./'
5538 # Canonicalize the pathname of ld
5539 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5540 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5541 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5542 done
5543 test -z "$LD" && LD="$ac_prog"
5544 ;;
5bd8253d 5545 "")
cfbc9945
SE
5546 # If it fails, then pretend we aren't using GCC.
5547 ac_prog=ld
5bd8253d
L
5548 ;;
5549 *)
cfbc9945
SE
5550 # If it is relative, then search for the first ld in PATH.
5551 with_gnu_ld=unknown
5bd8253d 5552 ;;
cfbc9945
SE
5553 esac
5554elif test "$with_gnu_ld" = yes; then
5555 echo "$as_me:$LINENO: checking for GNU ld" >&5
5556echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5557else
5558 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5559echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5560fi
5561if test "${lt_cv_path_LD+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564 if test -z "$LD"; then
d7040cdb 5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5566 for ac_dir in $PATH; do
d7040cdb 5567 IFS="$lt_save_ifs"
cfbc9945
SE
5568 test -z "$ac_dir" && ac_dir=.
5569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5570 lt_cv_path_LD="$ac_dir/$ac_prog"
5571 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5572 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5573 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5575 *GNU* | *'with BFD'*)
cfbc9945 5576 test "$with_gnu_ld" != no && break
d7040cdb
SE
5577 ;;
5578 *)
cfbc9945 5579 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5580 ;;
5581 esac
cfbc9945
SE
5582 fi
5583 done
d7040cdb 5584 IFS="$lt_save_ifs"
cfbc9945
SE
5585else
5586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5587fi
1ad12f97
NC
5588fi
5589
cfbc9945
SE
5590LD="$lt_cv_path_LD"
5591if test -n "$LD"; then
5592 echo "$as_me:$LINENO: result: $LD" >&5
5593echo "${ECHO_T}$LD" >&6
5594else
5595 echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597fi
5598test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5599echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5600 { (exit 1); exit 1; }; }
5601echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5602echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5603if test "${lt_cv_prog_gnu_ld+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
d7040cdb
SE
5606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5607case `$LD -v 2>&1 </dev/null` in
5608*GNU* | *'with BFD'*)
cfbc9945 5609 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5610 ;;
5611*)
cfbc9945 5612 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5613 ;;
5614esac
49c96104 5615fi
cfbc9945
SE
5616echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5617echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5618with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5619
9e9b66a9 5620
cfbc9945 5621
d7040cdb
SE
5622
5623
5624
5625
5626
5627
5628
5629echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5630echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5631if test "${lt_cv_path_NM+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634 if test -n "$NM"; then
5635 # Let the user override the test.
5636 lt_cv_path_NM="$NM"
5637else
d7040cdb
SE
5638 lt_nm_to_check="${ac_tool_prefix}nm"
5639 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5640 lt_nm_to_check="$lt_nm_to_check nm"
5641 fi
5642 for lt_tmp_nm in $lt_nm_to_check; do
5643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5645 IFS="$lt_save_ifs"
5646 test -z "$ac_dir" && ac_dir=.
5647 tmp_nm="$ac_dir/$lt_tmp_nm"
5648 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5649 # Check to see if the nm accepts a BSD-compat flag.
5650 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5651 # nm: unknown option "B" ignored
5652 # Tru64's nm complains that /dev/null is an invalid object file
5653 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5654 */dev/null* | *'Invalid file or object type'*)
5655 lt_cv_path_NM="$tmp_nm -B"
5656 break
5657 ;;
5658 *)
5659 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5660 */dev/null*)
5661 lt_cv_path_NM="$tmp_nm -p"
5662 break
5663 ;;
5664 *)
5665 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5666 continue # so that we can try to find one that supports BSD flags
5667 ;;
5668 esac
5669 ;;
5670 esac
cfbc9945 5671 fi
d7040cdb
SE
5672 done
5673 IFS="$lt_save_ifs"
cfbc9945 5674 done
d7040cdb 5675 : ${lt_cv_path_NM=no}
cfbc9945 5676fi
a2d91340 5677fi
d7040cdb
SE
5678echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5679echo "${ECHO_T}$lt_cv_path_NM" >&6
5680if test "$lt_cv_path_NM" != "no"; then
5681 NM="$lt_cv_path_NM"
cfbc9945 5682else
d7040cdb
SE
5683 # Didn't find any BSD compatible name lister, look for dumpbin.
5684 if test -n "$ac_tool_prefix"; then
5685 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5686 do
5687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5689echo "$as_me:$LINENO: checking for $ac_word" >&5
5690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5691if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5692 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5693else
d7040cdb
SE
5694 if test -n "$DUMPBIN"; then
5695 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708done
5709done
5464f5a1 5710
d7040cdb
SE
5711fi
5712fi
5713DUMPBIN=$ac_cv_prog_DUMPBIN
5714if test -n "$DUMPBIN"; then
5715 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5716echo "${ECHO_T}$DUMPBIN" >&6
5717else
5718 echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6
5720fi
d5fbea21 5721
d7040cdb
SE
5722 test -n "$DUMPBIN" && break
5723 done
5724fi
5725if test -z "$DUMPBIN"; then
5726 ac_ct_DUMPBIN=$DUMPBIN
5727 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5728do
5729 # Extract the first word of "$ac_prog", so it can be a program name with args.
5730set dummy $ac_prog; ac_word=$2
5731echo "$as_me:$LINENO: checking for $ac_word" >&5
5732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 if test -n "$ac_ct_DUMPBIN"; then
5737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
cfbc9945 5749 fi
d7040cdb
SE
5750done
5751done
d5fbea21 5752
d7040cdb
SE
5753fi
5754fi
5755ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5756if test -n "$ac_ct_DUMPBIN"; then
5757 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5758echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5759else
5760 echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6
5762fi
d5fbea21 5763
d7040cdb
SE
5764 test -n "$ac_ct_DUMPBIN" && break
5765done
5766test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5767
d7040cdb
SE
5768 DUMPBIN=$ac_ct_DUMPBIN
5769fi
24443139 5770
24443139 5771
d7040cdb
SE
5772 if test "$DUMPBIN" != ":"; then
5773 NM="$DUMPBIN"
cfbc9945 5774 fi
d7040cdb
SE
5775fi
5776test -z "$NM" && NM=nm
a703a6ea 5777
f5385ebf 5778
cfbc9945 5779
24443139
AS
5780
5781
5782
d7040cdb
SE
5783echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5784echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5785if test "${lt_cv_nm_interface+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 lt_cv_nm_interface="BSD nm"
5789 echo "int some_variable = 0;" > conftest.$ac_ext
7357c5b6 5790 (eval echo "\"\$as_me:5425: $ac_compile\"" >&5)
d7040cdb
SE
5791 (eval "$ac_compile" 2>conftest.err)
5792 cat conftest.err >&5
7357c5b6 5793 (eval echo "\"\$as_me:5428: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5794 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5795 cat conftest.err >&5
7357c5b6 5796 (eval echo "\"\$as_me:5431: output\"" >&5)
d7040cdb
SE
5797 cat conftest.out >&5
5798 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5799 lt_cv_nm_interface="MS dumpbin"
5800 fi
5801 rm -f conftest*
cfbc9945 5802fi
d7040cdb
SE
5803echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5804echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5805
d7040cdb
SE
5806echo "$as_me:$LINENO: checking whether ln -s works" >&5
5807echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5808LN_S=$as_ln_s
5809if test "$LN_S" = "ln -s"; then
5810 echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6
5812else
5813 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5814echo "${ECHO_T}no, using $LN_S" >&6
5815fi
252b5132 5816
cfbc9945
SE
5817# find the maximum length of command line arguments
5818echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5819echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5820if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823 i=0
5824 teststring="ABCD"
5464f5a1 5825
cfbc9945
SE
5826 case $build_os in
5827 msdosdjgpp*)
5828 # On DJGPP, this test can blow up pretty badly due to problems in libc
5829 # (any single argument exceeding 2000 bytes causes a buffer overrun
5830 # during glob expansion). Even if it were fixed, the result of this
5831 # check would be larger than it should be.
5832 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5833 ;;
5464f5a1 5834
d7040cdb
SE
5835 gnu*)
5836 # Under GNU Hurd, this test is not required because there is
5837 # no limit to the length of command line arguments.
5838 # Libtool will interpret -1 as no limit whatsoever
5839 lt_cv_sys_max_cmd_len=-1;
5840 ;;
5841
cfbc9945
SE
5842 cygwin* | mingw*)
5843 # On Win9x/ME, this test blows up -- it succeeds, but takes
5844 # about 5 minutes as the teststring grows exponentially.
5845 # Worse, since 9x/ME are not pre-emptively multitasking,
5846 # you end up with a "frozen" computer, even though with patience
5847 # the test eventually succeeds (with a max line length of 256k).
5848 # Instead, let's just punt: use the minimum linelength reported by
5849 # all of the supported platforms: 8192 (on NT/2K/XP).
5850 lt_cv_sys_max_cmd_len=8192;
5851 ;;
5464f5a1 5852
cfbc9945
SE
5853 amigaos*)
5854 # On AmigaOS with pdksh, this test takes hours, literally.
5855 # So we just punt and use a minimum line length of 8192.
5856 lt_cv_sys_max_cmd_len=8192;
5857 ;;
5464f5a1 5858
cfbc9945
SE
5859 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5860 # This has been around since 386BSD, at least. Likely further.
5861 if test -x /sbin/sysctl; then
5862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5863 elif test -x /usr/sbin/sysctl; then
5864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5865 else
d7040cdb 5866 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5867 fi
5868 # And add a safety zone
5869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5871 ;;
d7040cdb
SE
5872
5873 interix*)
5874 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5875 lt_cv_sys_max_cmd_len=196608
5876 ;;
5877
5878 osf*)
5879 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5880 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5881 # nice to cause kernel panics so lets avoid the loop below.
5882 # First set a reasonable default.
5883 lt_cv_sys_max_cmd_len=16384
5884 #
5885 if test -x /sbin/sysconfig; then
5886 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5887 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5888 esac
5889 fi
5890 ;;
5891 sco3.2v5*)
5892 lt_cv_sys_max_cmd_len=102400
5893 ;;
5894 sysv5* | sco5v6* | sysv4.2uw2*)
5895 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5896 if test -n "$kargmax"; then
5897 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5898 else
5899 lt_cv_sys_max_cmd_len=32768
5900 fi
5901 ;;
5902 *)
79887925
L
5903 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5904 if test -n $lt_cv_sys_max_cmd_len; then
5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5907 else
5908 # Make teststring a little bigger before we do anything with it.
5909 # a 1K string should be a reasonable start.
5910 for i in 1 2 3 4 5 6 7 8 ; do
5911 teststring=$teststring$teststring
5912 done
5913 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5914 # If test is not a shell built-in, we'll probably end up computing a
5915 # maximum length that is only half of the actual maximum length, but
5916 # we can't tell.
5917 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5918 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5919 test $i != 17 # 1/2 MB should be enough
5920 do
5921 i=`expr $i + 1`
5922 teststring=$teststring$teststring
5923 done
5924 # Only check the string length outside the loop.
5925 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5926 teststring=
5927 # Add a significant safety factor because C++ compilers can tack on
5928 # massive amounts of additional arguments before passing them to the
5929 # linker. It appears as though 1/2 is a usable value.
5930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5931 fi
d7040cdb 5932 ;;
cfbc9945 5933 esac
5464f5a1 5934
252b5132 5935fi
cfbc9945 5936
d7040cdb 5937if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5938 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5939echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5940else
cfbc9945
SE
5941 echo "$as_me:$LINENO: result: none" >&5
5942echo "${ECHO_T}none" >&6
5464f5a1 5943fi
d7040cdb 5944max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5945
cfbc9945 5946
252b5132 5947
cfbc9945 5948
cfbc9945 5949
d7040cdb
SE
5950
5951
5952: ${CP="cp -f"}
5953: ${MV="mv -f"}
5954: ${RM="rm -f"}
5955
5956echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5957echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5958# Try some XSI features
5959xsi_shell=no
5960( _lt_dummy="a/b/c"
5961 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5962 = c,a/b,, ) >/dev/null 2>&1 \
5963 && xsi_shell=yes
5964echo "$as_me:$LINENO: result: $xsi_shell" >&5
5965echo "${ECHO_T}$xsi_shell" >&6
5966
5967
5968echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5969echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5970lt_shell_append=no
5971( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5972 >/dev/null 2>&1 \
5973 && lt_shell_append=yes
5974echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5975echo "${ECHO_T}$lt_shell_append" >&6
5976
5977
5978if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5979 lt_unset=unset
5464f5a1 5980else
d7040cdb 5981 lt_unset=false
5464f5a1 5982fi
252b5132 5983
d7040cdb
SE
5984
5985
5986
5987
5988# test EBCDIC or ASCII
5989case `echo X|tr X '\101'` in
5990 A) # ASCII based system
5991 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5992 lt_SP2NL='tr \040 \012'
5993 lt_NL2SP='tr \015\012 \040\040'
5994 ;;
5995 *) # EBCDIC based system
5996 lt_SP2NL='tr \100 \n'
5997 lt_NL2SP='tr \r\n \100\100'
5998 ;;
5999esac
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6010echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6011if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
d7040cdb
SE
6014 lt_cv_ld_reload_flag='-r'
6015fi
6016echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6017echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6018reload_flag=$lt_cv_ld_reload_flag
6019case $reload_flag in
6020"" | " "*) ;;
6021*) reload_flag=" $reload_flag" ;;
6022esac
6023reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024case $host_os in
6025 darwin*)
6026 if test "$GCC" = yes; then
6027 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6028 else
6029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030 fi
6031 ;;
6032esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6044echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6045if test "${lt_cv_deplibs_check_method+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047else
6048 lt_cv_file_magic_cmd='$MAGIC_CMD'
6049lt_cv_file_magic_test_file=
6050lt_cv_deplibs_check_method='unknown'
6051# Need to set the preceding variable on all platforms that support
6052# interlibrary dependencies.
6053# 'none' -- dependencies not supported.
6054# `unknown' -- same as none, but documents that we really don't know.
6055# 'pass_all' -- all dependencies passed with no checks.
6056# 'test_compile' -- check by making test program.
6057# 'file_magic [[regex]]' -- check by looking for files in library path
6058# which responds to the $file_magic_cmd with a given extended regex.
6059# If you have `file' or equivalent on your system and you're not sure
6060# whether `pass_all' will *always* work, you probably want this one.
6061
6062case $host_os in
e81819a5 6063aix[4-9]*)
d7040cdb
SE
6064 lt_cv_deplibs_check_method=pass_all
6065 ;;
6066
6067beos*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071bsdi[45]*)
6072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6073 lt_cv_file_magic_cmd='/usr/bin/file -L'
6074 lt_cv_file_magic_test_file=/shlib/libc.so
6075 ;;
6076
6077cygwin*)
6078 # func_win32_libid is a shell function defined in ltmain.sh
6079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080 lt_cv_file_magic_cmd='func_win32_libid'
6081 ;;
6082
6083mingw* | pw32*)
6084 # Base MSYS/MinGW do not provide the 'file' command needed by
6085 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6086 # unless we find 'file', for example because we are cross-compiling.
6087 if ( file / ) >/dev/null 2>&1; then
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6092 lt_cv_file_magic_cmd='$OBJDUMP -f'
6093 fi
6094 ;;
6095
6096darwin* | rhapsody*)
6097 lt_cv_deplibs_check_method=pass_all
cfbc9945 6098 ;;
d7040cdb
SE
6099
6100freebsd* | dragonfly*)
6101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6102 case $host_cpu in
6103 i*86 )
6104 # Not sure whether the presence of OpenBSD here was a mistake.
6105 # Let's accept both of them until this is cleared up.
6106 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6107 lt_cv_file_magic_cmd=/usr/bin/file
6108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6109 ;;
6110 esac
6111 else
6112 lt_cv_deplibs_check_method=pass_all
6113 fi
6114 ;;
6115
6116gnu*)
6117 lt_cv_deplibs_check_method=pass_all
cfbc9945 6118 ;;
d7040cdb
SE
6119
6120hpux10.20* | hpux11*)
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 case $host_cpu in
6123 ia64*)
6124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6125 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6126 ;;
6127 hppa*64*)
6128 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]'
6129 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6130 ;;
cfbc9945 6131 *)
d7040cdb
SE
6132 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6133 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6134 ;;
6135 esac
6136 ;;
6be7c12c 6137
d7040cdb
SE
6138interix[3-9]*)
6139 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6141 ;;
cfbc9945 6142
d7040cdb
SE
6143irix5* | irix6* | nonstopux*)
6144 case $LD in
6145 *-32|*"-32 ") libmagic=32-bit;;
6146 *-n32|*"-n32 ") libmagic=N32;;
6147 *-64|*"-64 ") libmagic=64-bit;;
6148 *) libmagic=never-match;;
6149 esac
6150 lt_cv_deplibs_check_method=pass_all
cfbc9945 6151 ;;
cfbc9945 6152
d7040cdb
SE
6153# This must be Linux ELF.
6154linux* | k*bsd*-gnu)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
5464f5a1 6157
d7040cdb
SE
6158netbsd*)
6159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6161 else
d7040cdb 6162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6163 fi
d7040cdb
SE
6164 ;;
6165
6166newos6*)
6167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6168 lt_cv_file_magic_cmd=/usr/bin/file
6169 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6170 ;;
6171
6172*nto* | *qnx*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
cfbc9945 6175
d7040cdb
SE
6176openbsd*)
6177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6179 else
6180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6181 fi
6182 ;;
d7040cdb
SE
6183
6184osf3* | osf4* | osf5*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188rdos*)
6189 lt_cv_deplibs_check_method=pass_all
6190 ;;
6191
6192solaris*)
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200sysv4 | sysv4.3*)
6201 case $host_vendor in
6202 motorola)
6203 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]'
6204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6205 ;;
6206 ncr)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209 sequent)
6210 lt_cv_file_magic_cmd='/bin/file'
6211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6212 ;;
6213 sni)
6214 lt_cv_file_magic_cmd='/bin/file'
6215 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6216 lt_cv_file_magic_test_file=/lib/libc.so
6217 ;;
6218 siemens)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
6221 pc)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224 esac
6225 ;;
6226
6227tpf*)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
cfbc9945
SE
6230esac
6231
d7040cdb
SE
6232fi
6233echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6234echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6235file_magic_cmd=$lt_cv_file_magic_cmd
6236deplibs_check_method=$lt_cv_deplibs_check_method
6237test -z "$deplibs_check_method" && deplibs_check_method=unknown
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
cfbc9945 6250if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6251 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6252set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
6253echo "$as_me:$LINENO: checking for $ac_word" >&5
6254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6255if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
d7040cdb
SE
6258 if test -n "$AR"; then
6259 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6268 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6271 fi
6272done
6273done
6274
6275fi
6276fi
d7040cdb
SE
6277AR=$ac_cv_prog_AR
6278if test -n "$AR"; then
6279 echo "$as_me:$LINENO: result: $AR" >&5
6280echo "${ECHO_T}$AR" >&6
5464f5a1
NN
6281else
6282 echo "$as_me:$LINENO: result: no" >&5
6283echo "${ECHO_T}no" >&6
6284fi
6285
5464f5a1 6286fi
d7040cdb
SE
6287if test -z "$ac_cv_prog_AR"; then
6288 ac_ct_AR=$AR
6289 # Extract the first word of "ar", so it can be a program name with args.
6290set dummy ar; ac_word=$2
5464f5a1
NN
6291echo "$as_me:$LINENO: checking for $ac_word" >&5
6292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6293if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 6294 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6295else
d7040cdb
SE
6296 if test -n "$ac_ct_AR"; then
6297 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6298else
5464f5a1
NN
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6306 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
6307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310done
6311done
6312
d7040cdb 6313 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
6314fi
6315fi
d7040cdb
SE
6316ac_ct_AR=$ac_cv_prog_ac_ct_AR
6317if test -n "$ac_ct_AR"; then
6318 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6319echo "${ECHO_T}$ac_ct_AR" >&6
6320else
6321 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
6322echo "${ECHO_T}no" >&6
6323fi
6324
d7040cdb 6325 AR=$ac_ct_AR
cfbc9945 6326else
d7040cdb 6327 AR="$ac_cv_prog_AR"
5464f5a1 6328fi
cfbc9945 6329
d7040cdb
SE
6330test -z "$AR" && AR=ar
6331test -z "$AR_FLAGS" && AR_FLAGS=cru
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
cfbc9945
SE
6343if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
6346echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6348if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
cfbc9945
SE
6351 if test -n "$STRIP"; then
6352 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6361 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365done
6366done
6367
6368fi
6369fi
cfbc9945
SE
6370STRIP=$ac_cv_prog_STRIP
6371if test -n "$STRIP"; then
6372 echo "$as_me:$LINENO: result: $STRIP" >&5
6373echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6374else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377fi
6378
252b5132 6379fi
cfbc9945
SE
6380if test -z "$ac_cv_prog_STRIP"; then
6381 ac_ct_STRIP=$STRIP
6382 # Extract the first word of "strip", so it can be a program name with args.
6383set dummy strip; ac_word=$2
5464f5a1
NN
6384echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
cfbc9945
SE
6389 if test -n "$ac_ct_STRIP"; then
6390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6399 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403done
6404done
6405
cfbc9945 6406 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6407fi
6408fi
cfbc9945
SE
6409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6410if test -n "$ac_ct_STRIP"; then
6411 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6412echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6413else
6414 echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6
6416fi
6417
cfbc9945
SE
6418 STRIP=$ac_ct_STRIP
6419else
6420 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6421fi
6422
d7040cdb 6423test -z "$STRIP" && STRIP=:
5464f5a1 6424
cfbc9945
SE
6425
6426
cfbc9945 6427
cfbc9945
SE
6428
6429
d7040cdb
SE
6430if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6435if test "${ac_cv_prog_RANLIB+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6437else
d7040cdb
SE
6438 if test -n "$RANLIB"; then
6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
cfbc9945 6451 fi
d7040cdb
SE
6452done
6453done
cfbc9945 6454
d7040cdb
SE
6455fi
6456fi
6457RANLIB=$ac_cv_prog_RANLIB
6458if test -n "$RANLIB"; then
6459 echo "$as_me:$LINENO: result: $RANLIB" >&5
6460echo "${ECHO_T}$RANLIB" >&6
6461else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464fi
cfbc9945 6465
d7040cdb
SE
6466fi
6467if test -z "$ac_cv_prog_RANLIB"; then
6468 ac_ct_RANLIB=$RANLIB
6469 # Extract the first word of "ranlib", so it can be a program name with args.
6470set dummy ranlib; ac_word=$2
6471echo "$as_me:$LINENO: checking for $ac_word" >&5
6472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6473if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475else
6476 if test -n "$ac_ct_RANLIB"; then
6477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_ac_ct_RANLIB="ranlib"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
cfbc9945 6489 fi
d7040cdb
SE
6490done
6491done
cfbc9945 6492
d7040cdb
SE
6493 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6494fi
6495fi
6496ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6497if test -n "$ac_ct_RANLIB"; then
6498 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6499echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6500else
d7040cdb
SE
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
6503fi
5464f5a1 6504
d7040cdb
SE
6505 RANLIB=$ac_ct_RANLIB
6506else
6507 RANLIB="$ac_cv_prog_RANLIB"
6508fi
5464f5a1 6509
d7040cdb 6510test -z "$RANLIB" && RANLIB=:
5464f5a1 6511
5464f5a1 6512
5464f5a1 6513
cfbc9945 6514
cfbc9945 6515
d7040cdb
SE
6516
6517# Determine commands to create old-style static archives.
6518old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6519old_postinstall_cmds='chmod 644 $oldlib'
6520old_postuninstall_cmds=
6521
6522if test -n "$RANLIB"; then
6523 case $host_os in
6524 openbsd*)
6525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6526 ;;
6527 *)
6528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6529 ;;
6530 esac
6531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6532fi
cfbc9945
SE
6533
6534
cfbc9945
SE
6535
6536
cfbc9945 6537
cfbc9945 6538
cfbc9945 6539
cfbc9945 6540
cfbc9945
SE
6541
6542
cfbc9945 6543
cfbc9945 6544
cfbc9945
SE
6545
6546
6547
6548
6549
6550
6551
5464f5a1 6552
5464f5a1 6553
cfbc9945
SE
6554
6555
6556
5464f5a1 6557
5464f5a1 6558
cfbc9945
SE
6559
6560
6561
5464f5a1 6562
cfbc9945
SE
6563
6564
6565
6566
d7040cdb
SE
6567# If no C compiler was specified, use CC.
6568LTCC=${LTCC-"$CC"}
cfbc9945 6569
d7040cdb
SE
6570# If no C compiler flags were specified, use CFLAGS.
6571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6572
d7040cdb
SE
6573# Allow CC to be a program name with arguments.
6574compiler=$CC
cfbc9945 6575
cfbc9945 6576
d7040cdb
SE
6577# Check for command to grab the raw symbol name followed by C symbol from nm.
6578echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6579echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6580if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6582else
5464f5a1 6583
d7040cdb
SE
6584# These are sane defaults that work on at least a few old systems.
6585# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6586
d7040cdb
SE
6587# Character class describing NM global symbol codes.
6588symcode='[BCDEGRST]'
6589
6590# Regexp to match symbols that can be accessed directly from C.
6591sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6592
6593# Define system-specific variables.
6594case $host_os in
6595aix*)
6596 symcode='[BCDT]'
6597 ;;
6598cygwin* | mingw* | pw32*)
6599 symcode='[ABCDGISTW]'
6600 ;;
6601hpux*)
6602 if test "$host_cpu" = ia64; then
6603 symcode='[ABCDEGRST]'
6604 fi
6605 ;;
6606irix* | nonstopux*)
6607 symcode='[BCDEGRST]'
6608 ;;
6609osf*)
6610 symcode='[BCDEGQRST]'
6611 ;;
6612solaris*)
6613 symcode='[BDRT]'
6614 ;;
6615sco3.2v5*)
6616 symcode='[DT]'
6617 ;;
6618sysv4.2uw2*)
6619 symcode='[DT]'
6620 ;;
6621sysv5* | sco5v6* | unixware* | OpenUNIX*)
6622 symcode='[ABDT]'
6623 ;;
6624sysv4)
6625 symcode='[DFNSTU]'
6626 ;;
cfbc9945 6627esac
5464f5a1 6628
d7040cdb
SE
6629# If we're using GNU nm, then use its standard symbol codes.
6630case `$NM -V 2>&1` in
6631*GNU* | *'with BFD'*)
6632 symcode='[ABCDGIRSTW]' ;;
6633esac
5464f5a1 6634
d7040cdb
SE
6635# Transform an extracted symbol line into a proper C declaration.
6636# Some systems (esp. on ia64) link data and code symbols differently,
6637# so use this general approach.
6638lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6639
d7040cdb
SE
6640# Transform an extracted symbol line into symbol name and symbol address
6641lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 6642
d7040cdb
SE
6643# Handle CRLF in mingw tool chain
6644opt_cr=
6645case $build_os in
6646mingw*)
6647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6648 ;;
6649esac
5464f5a1 6650
d7040cdb
SE
6651# Try without a prefix underscore, then with it.
6652for ac_symprfx in "" "_"; do
6653
6654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6655 symxfrm="\\1 $ac_symprfx\\2 \\2"
6656
6657 # Write the raw and C identifiers.
6658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6659 # Fake it for dumpbin and say T for any non-static function
6660 # and D for any global variable.
6661 # Also find C++ and __fastcall symbols from MSVC++,
6662 # which start with @ or ?.
6663 lt_cv_sys_global_symbol_pipe="$AWK '"\
6664" {last_section=section; section=\$ 3};"\
6665" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6666" \$ 0!~/External *\|/{next};"\
6667" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6668" {if(hide[section]) next};"\
6669" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6670" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6671" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6672" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6673" ' prfx=^$ac_symprfx"
6674 else
6675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6676 fi
cfbc9945 6677
d7040cdb
SE
6678 # Check to see that the pipe works correctly.
6679 pipe_works=no
cfbc9945 6680
d7040cdb
SE
6681 rm -f conftest*
6682 cat > conftest.$ac_ext <<_LT_EOF
6683#ifdef __cplusplus
6684extern "C" {
6685#endif
6686char nm_test_var;
6687void nm_test_func(void);
6688void nm_test_func(void){}
6689#ifdef __cplusplus
6690}
6691#endif
6692int main(){nm_test_var='a';nm_test_func();return(0);}
6693_LT_EOF
cfbc9945 6694
d7040cdb
SE
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; then
6700 # Now try to grab the symbols.
6701 nlist=conftest.nm
6702 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6703 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && test -s "$nlist"; then
6707 # Try sorting and uniquifying the output.
6708 if sort "$nlist" | uniq > "$nlist"T; then
6709 mv -f "$nlist"T "$nlist"
6710 else
6711 rm -f "$nlist"T
6712 fi
cfbc9945 6713
d7040cdb
SE
6714 # Make sure that we snagged all the symbols we need.
6715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6717 cat <<_LT_EOF > conftest.$ac_ext
6718#ifdef __cplusplus
6719extern "C" {
6720#endif
cfbc9945 6721
d7040cdb
SE
6722_LT_EOF
6723 # Now generate the symbol file.
6724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6725
d7040cdb 6726 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6727
d7040cdb
SE
6728/* The mapping between symbol names and symbols. */
6729const struct {
6730 const char *name;
6731 void *address;
6732}
6733lt__PROGRAM__LTX_preloaded_symbols[] =
6734{
6735 { "@PROGRAM@", (void *) 0 },
6736_LT_EOF
6737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6738 cat <<\_LT_EOF >> conftest.$ac_ext
6739 {0, (void *) 0}
6740};
6741
6742/* This works around a problem in FreeBSD linker */
6743#ifdef FREEBSD_WORKAROUND
6744static const void *lt_preloaded_setup() {
6745 return lt__PROGRAM__LTX_preloaded_symbols;
6746}
6747#endif
cfbc9945 6748
d7040cdb
SE
6749#ifdef __cplusplus
6750}
6751#endif
6752_LT_EOF
6753 # Now try linking the two files.
6754 mv conftest.$ac_objext conftstm.$ac_objext
6755 lt_save_LIBS="$LIBS"
6756 lt_save_CFLAGS="$CFLAGS"
6757 LIBS="conftstm.$ac_objext"
6758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6760 (eval $ac_link) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6764 pipe_works=yes
6765 fi
6766 LIBS="$lt_save_LIBS"
6767 CFLAGS="$lt_save_CFLAGS"
6768 else
6769 echo "cannot find nm_test_func in $nlist" >&5
6770 fi
6771 else
6772 echo "cannot find nm_test_var in $nlist" >&5
6773 fi
6774 else
6775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6776 fi
6777 else
6778 echo "$progname: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6780 fi
6781 rm -f conftest* conftst*
cfbc9945 6782
d7040cdb
SE
6783 # Do not use the global_symbol_pipe unless it works.
6784 if test "$pipe_works" = yes; then
6785 break
6786 else
6787 lt_cv_sys_global_symbol_pipe=
6788 fi
6789done
cfbc9945 6790
252b5132 6791fi
5464f5a1 6792
d7040cdb
SE
6793if test -z "$lt_cv_sys_global_symbol_pipe"; then
6794 lt_cv_sys_global_symbol_to_cdecl=
6795fi
6796if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6797 echo "$as_me:$LINENO: result: failed" >&5
6798echo "${ECHO_T}failed" >&6
b3baf5d0 6799else
d7040cdb
SE
6800 echo "$as_me:$LINENO: result: ok" >&5
6801echo "${ECHO_T}ok" >&6
6802fi
5464f5a1 6803
cfbc9945 6804
b3baf5d0 6805
cfbc9945
SE
6806
6807
6808
6809
5464f5a1 6810
4a2a2686
HPN
6811
6812
6813
cfbc9945
SE
6814
6815
cfbc9945 6816
cfbc9945 6817
9d7cbccd 6818
20e95c23 6819
d7040cdb
SE
6820# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6821if test "${enable_libtool_lock+set}" = set; then
6822 enableval="$enable_libtool_lock"
20e95c23 6823
d7040cdb
SE
6824fi;
6825test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6826
d7040cdb
SE
6827# Some flags need to be propagated to the compiler or linker for good
6828# libtool support.
6829case $host in
6830ia64-*-hpux*)
6831 # Find out which ABI we are using.
6832 echo 'int i;' > conftest.$ac_ext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; then
6838 case `/usr/bin/file conftest.$ac_objext` in
6839 *ELF-32*)
6840 HPUX_IA64_MODE="32"
6841 ;;
6842 *ELF-64*)
6843 HPUX_IA64_MODE="64"
6844 ;;
20e95c23 6845 esac
d7040cdb
SE
6846 fi
6847 rm -rf conftest*
6848 ;;
6849*-*-irix6*)
6850 # Find out which ABI we are using.
7357c5b6 6851 echo '#line 6486 "configure"' > conftest.$ac_ext
d7040cdb
SE
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; then
6857 if test "$lt_cv_prog_gnu_ld" = yes; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *32-bit*)
6860 LD="${LD-ld} -melf32bsmip"
6861 ;;
6862 *N32*)
6863 LD="${LD-ld} -melf32bmipn32"
6864 ;;
6865 *64-bit*)
6866 LD="${LD-ld} -melf64bmip"
6867 ;;
6868 esac
20e95c23 6869 else
d7040cdb
SE
6870 case `/usr/bin/file conftest.$ac_objext` in
6871 *32-bit*)
6872 LD="${LD-ld} -32"
6873 ;;
6874 *N32*)
6875 LD="${LD-ld} -n32"
6876 ;;
6877 *64-bit*)
6878 LD="${LD-ld} -64"
6879 ;;
20e95c23
DJ
6880 esac
6881 fi
d7040cdb
SE
6882 fi
6883 rm -rf conftest*
6884 ;;
20e95c23 6885
d7040cdb
SE
6886x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6887s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6888 # Find out which ABI we are using.
6889 echo 'int i;' > conftest.$ac_ext
6890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; then
6895 case `/usr/bin/file conftest.o` in
6896 *32-bit*)
6897 case $host in
6898 x86_64-*kfreebsd*-gnu)
6899 LD="${LD-ld} -m elf_i386_fbsd"
6900 ;;
6901 x86_64-*linux*)
6902 LD="${LD-ld} -m elf_i386"
6903 ;;
6904 ppc64-*linux*|powerpc64-*linux*)
6905 LD="${LD-ld} -m elf32ppclinux"
6906 ;;
6907 s390x-*linux*)
6908 LD="${LD-ld} -m elf_s390"
6909 ;;
6910 sparc64-*linux*)
6911 LD="${LD-ld} -m elf32_sparc"
6912 ;;
6913 esac
6914 ;;
6915 *64-bit*)
6916 case $host in
6917 x86_64-*kfreebsd*-gnu)
6918 LD="${LD-ld} -m elf_x86_64_fbsd"
6919 ;;
6920 x86_64-*linux*)
6921 LD="${LD-ld} -m elf_x86_64"
6922 ;;
6923 ppc*-*linux*|powerpc*-*linux*)
6924 LD="${LD-ld} -m elf64ppc"
6925 ;;
6926 s390*-*linux*|s390*-*tpf*)
6927 LD="${LD-ld} -m elf64_s390"
6928 ;;
6929 sparc*-*linux*)
6930 LD="${LD-ld} -m elf64_sparc"
6931 ;;
6932 esac
6933 ;;
20e95c23
DJ
6934 esac
6935 fi
d7040cdb 6936 rm -rf conftest*
7357c5b6 6937 ;;
d7040cdb 6938
7357c5b6
AM
6939*-*-sco3.2v5*)
6940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6941 SAVE_CFLAGS="$CFLAGS"
6942 CFLAGS="$CFLAGS -belf"
6943 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6944echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6945if test "${lt_cv_cc_needs_belf+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6947else
7357c5b6
AM
6948 ac_ext=c
6949ac_cpp='$CPP $CPPFLAGS'
6950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6953
7357c5b6 6954 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h. */
d7040cdb 6960
d7040cdb
SE
6961int
6962main ()
6963{
7357c5b6
AM
6964
6965 ;
6966 return 0;
d7040cdb
SE
6967}
6968_ACEOF
7357c5b6 6969rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 6970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 6971 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
7357c5b6
AM
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
d7040cdb
SE
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
7357c5b6 6985 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
7357c5b6 6991 lt_cv_cc_needs_belf=yes
d7040cdb
SE
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
7357c5b6 6996lt_cv_cc_needs_belf=no
d7040cdb 6997fi
7357c5b6
AM
6998rm -f conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 ac_ext=c
7001ac_cpp='$CPP $CPPFLAGS'
7002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7005
7006fi
7357c5b6
AM
7007echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7008echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7009 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7010 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7011 CFLAGS="$SAVE_CFLAGS"
7012 fi
7013 ;;
7014sparc*-*solaris*)
7015 # Find out which ABI we are using.
7016 echo 'int i;' > conftest.$ac_ext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018 (eval $ac_compile) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; then
7022 case `/usr/bin/file conftest.o` in
7023 *64-bit*)
7024 case $lt_cv_prog_gnu_ld in
7025 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7026 *) LD="${LD-ld} -64" ;;
7027 esac
7028 ;;
7029 esac
7030 fi
7031 rm -rf conftest*
7032 ;;
7033esac
d7040cdb 7034
7357c5b6 7035need_locks="$enable_libtool_lock"
d7040cdb
SE
7036
7037
7038for ac_header in dlfcn.h
7039do
7040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7041echo "$as_me:$LINENO: checking for $ac_header" >&5
7042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7043if eval "test \"\${$as_ac_Header+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052$ac_includes_default
7053
7054#include <$ac_header>
7055_ACEOF
7056rm -f conftest.$ac_objext
7057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7357c5b6
AM
7065 { ac_try='test -z "$ac_c_werror_flag"
7066 || test ! -s conftest.err'
d7040cdb
SE
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; } &&
7072 { ac_try='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 eval "$as_ac_Header=yes"
7079else
7080 echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083eval "$as_ac_Header=no"
7084fi
7085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086fi
7087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090 cat >>confdefs.h <<_ACEOF
7091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7092_ACEOF
7093
7094fi
7095
7096done
7097
7098
7099
7100# This can be used to rebuild libtool when needed
7101LIBTOOL_DEPS="$ltmain"
7102
7103# Always use our own libtool.
7104LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130test -z "$LN_S" && LN_S="ln -s"
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145if test -n "${ZSH_VERSION+set}" ; then
7146 setopt NO_GLOB_SUBST
7147fi
7148
7149echo "$as_me:$LINENO: checking for objdir" >&5
7150echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7151if test "${lt_cv_objdir+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154 rm -f .libs 2>/dev/null
7155mkdir .libs 2>/dev/null
7156if test -d .libs; then
7157 lt_cv_objdir=.libs
7158else
7159 # MS-DOS does not allow filenames that begin with a dot.
7160 lt_cv_objdir=_libs
7161fi
7162rmdir .libs 2>/dev/null
7163fi
7164echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7165echo "${ECHO_T}$lt_cv_objdir" >&6
7166objdir=$lt_cv_objdir
7167
7168
7169
7170
7171
7172cat >>confdefs.h <<_ACEOF
7173#define LT_OBJDIR "$lt_cv_objdir/"
7174_ACEOF
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192case $host_os in
7193aix3*)
7194 # AIX sometimes has problems with the GCC collect2 program. For some
7195 # reason, if we set the COLLECT_NAMES environment variable, the problems
7196 # vanish in a puff of smoke.
7197 if test "X${COLLECT_NAMES+set}" != Xset; then
7198 COLLECT_NAMES=
7199 export COLLECT_NAMES
7200 fi
7201 ;;
7202esac
7203
7204# Sed substitution that helps us do robust quoting. It backslashifies
7205# metacharacters that are still active within double-quoted strings.
7206sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7207
7208# Same as above, but do not quote variable references.
7209double_quote_subst='s/\(["`\\]\)/\\\1/g'
7210
7211# Sed substitution to delay expansion of an escaped shell variable in a
7212# double_quote_subst'ed string.
7213delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7214
7215# Sed substitution to delay expansion of an escaped single quote.
7216delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7217
7218# Sed substitution to avoid accidental globbing in evaled expressions
7219no_glob_subst='s/\*/\\\*/g'
7220
7221# Global variables:
7222ofile=libtool
7223can_build_shared=yes
7224
7225# All known linkers require a `.a' archive for static linking (except MSVC,
7226# which needs '.lib').
7227libext=a
7228
7229with_gnu_ld="$lt_cv_prog_gnu_ld"
7230
7231old_CC="$CC"
7232old_CFLAGS="$CFLAGS"
7233
7234# Set sane defaults for various variables
7235test -z "$CC" && CC=cc
7236test -z "$LTCC" && LTCC=$CC
7237test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7238test -z "$LD" && LD=ld
7239test -z "$ac_objext" && ac_objext=o
7240
7241for cc_temp in $compiler""; do
7242 case $cc_temp in
7243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7245 \-*) ;;
7246 *) break;;
7247 esac
7248done
7249cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7250
7251
7252# Only perform the check for file, if the check method requires it
7253test -z "$MAGIC_CMD" && MAGIC_CMD=file
7254case $deplibs_check_method in
7255file_magic*)
7256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7257 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7258echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7259if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262 case $MAGIC_CMD in
7263[\\/*] | ?:[\\/]*)
7264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7265 ;;
7266*)
7267 lt_save_MAGIC_CMD="$MAGIC_CMD"
7268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7270 for ac_dir in $ac_dummy; do
7271 IFS="$lt_save_ifs"
7272 test -z "$ac_dir" && ac_dir=.
7273 if test -f $ac_dir/${ac_tool_prefix}file; then
7274 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7275 if test -n "$file_magic_test_file"; then
7276 case $deplibs_check_method in
7277 "file_magic "*)
7278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7281 $EGREP "$file_magic_regex" > /dev/null; then
7282 :
7283 else
7284 cat <<_LT_EOF 1>&2
7285
7286*** Warning: the command libtool uses to detect shared libraries,
7287*** $file_magic_cmd, produces output that libtool cannot recognize.
7288*** The result is that libtool may fail to recognize shared libraries
7289*** as such. This will affect the creation of libtool libraries that
7290*** depend on shared libraries, but programs linked with such libtool
7291*** libraries will work regardless of this problem. Nevertheless, you
7292*** may want to report the problem to your system manager and/or to
7293*** bug-libtool@gnu.org
7294
7295_LT_EOF
7296 fi ;;
7297 esac
7298 fi
7299 break
7300 fi
7301 done
7302 IFS="$lt_save_ifs"
7303 MAGIC_CMD="$lt_save_MAGIC_CMD"
7304 ;;
7305esac
7306fi
7307
7308MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7309if test -n "$MAGIC_CMD"; then
7310 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7311echo "${ECHO_T}$MAGIC_CMD" >&6
7312else
7313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
7315fi
7316
7317
7318
7319
7320
7321if test -z "$lt_cv_path_MAGIC_CMD"; then
7322 if test -n "$ac_tool_prefix"; then
7323 echo "$as_me:$LINENO: checking for file" >&5
7324echo $ECHO_N "checking for file... $ECHO_C" >&6
7325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 case $MAGIC_CMD in
7329[\\/*] | ?:[\\/]*)
7330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7331 ;;
7332*)
7333 lt_save_MAGIC_CMD="$MAGIC_CMD"
7334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7336 for ac_dir in $ac_dummy; do
7337 IFS="$lt_save_ifs"
7338 test -z "$ac_dir" && ac_dir=.
7339 if test -f $ac_dir/file; then
7340 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7341 if test -n "$file_magic_test_file"; then
7342 case $deplibs_check_method in
7343 "file_magic "*)
7344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7347 $EGREP "$file_magic_regex" > /dev/null; then
7348 :
7349 else
7350 cat <<_LT_EOF 1>&2
7351
7352*** Warning: the command libtool uses to detect shared libraries,
7353*** $file_magic_cmd, produces output that libtool cannot recognize.
7354*** The result is that libtool may fail to recognize shared libraries
7355*** as such. This will affect the creation of libtool libraries that
7356*** depend on shared libraries, but programs linked with such libtool
7357*** libraries will work regardless of this problem. Nevertheless, you
7358*** may want to report the problem to your system manager and/or to
7359*** bug-libtool@gnu.org
7360
7361_LT_EOF
7362 fi ;;
7363 esac
7364 fi
7365 break
7366 fi
7367 done
7368 IFS="$lt_save_ifs"
7369 MAGIC_CMD="$lt_save_MAGIC_CMD"
7370 ;;
7371esac
7372fi
7373
7374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7375if test -n "$MAGIC_CMD"; then
7376 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7377echo "${ECHO_T}$MAGIC_CMD" >&6
7378else
7379 echo "$as_me:$LINENO: result: no" >&5
7380echo "${ECHO_T}no" >&6
7381fi
7382
7383
7384 else
7385 MAGIC_CMD=:
7386 fi
7387fi
7388
7389 fi
7390 ;;
7391esac
7392
7393# Use C for the default configuration in the libtool script
7394
7395lt_save_CC="$CC"
7396ac_ext=c
7397ac_cpp='$CPP $CPPFLAGS'
7398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402
7403# Source file extension for C test sources.
7404ac_ext=c
7405
7406# Object file extension for compiled C test sources.
7407objext=o
7408objext=$objext
7409
7410# Code to be used in simple compile tests
7411lt_simple_compile_test_code="int some_variable = 0;"
7412
7413# Code to be used in simple link tests
7414lt_simple_link_test_code='int main(){return(0);}'
7415
7416
7417
7418
7419
7420
7421
7422# If no C compiler was specified, use CC.
7423LTCC=${LTCC-"$CC"}
7424
7425# If no C compiler flags were specified, use CFLAGS.
7426LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7427
7428# Allow CC to be a program name with arguments.
7429compiler=$CC
7430
7431# Save the default compiler, since it gets overwritten when the other
7432# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7433compiler_DEFAULT=$CC
7434
7435# save warnings/boilerplate of simple test code
7436ac_outfile=conftest.$ac_objext
7437echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7439_lt_compiler_boilerplate=`cat conftest.err`
7440$RM conftest*
7441
7442ac_outfile=conftest.$ac_objext
7443echo "$lt_simple_link_test_code" >conftest.$ac_ext
7444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7445_lt_linker_boilerplate=`cat conftest.err`
7446$RM conftest*
7447
7448
7449## CAVEAT EMPTOR:
7450## There is no encapsulation within the following macros, do not change
7451## the running order or otherwise move them around unless you know exactly
7452## what you are doing...
7453if test -n "$compiler"; then
7454
7455lt_prog_compiler_no_builtin_flag=
7456
7457if test "$GCC" = yes; then
7458 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7459
7460 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7461echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7462if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465 lt_cv_prog_compiler_rtti_exceptions=no
7466 ac_outfile=conftest.$ac_objext
7467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468 lt_compiler_flag="-fno-rtti -fno-exceptions"
7469 # Insert the option either (1) after the last *FLAGS variable, or
7470 # (2) before a word containing "conftest.", or (3) at the end.
7471 # Note that $ac_compile itself does not contain backslashes and begins
7472 # with a dollar sign (not a hyphen), so the echo should work correctly.
7473 # The option is referenced via a variable to avoid confusing sed.
7474 lt_compile=`echo "$ac_compile" | $SED \
7475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7478 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
d7040cdb
SE
7479 (eval "$lt_compile" 2>conftest.err)
7480 ac_status=$?
7481 cat conftest.err >&5
7357c5b6 7482 echo "$as_me:7117: \$? = $ac_status" >&5
d7040cdb
SE
7483 if (exit $ac_status) && test -s "$ac_outfile"; then
7484 # The compiler can only warn and ignore the option if not recognized
7485 # So say no if there are warnings other than the usual output.
7486 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_cv_prog_compiler_rtti_exceptions=yes
7490 fi
7491 fi
7492 $RM conftest*
7493
7494fi
7495echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7496echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7497
7498if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7499 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7500else
7501 :
7502fi
7503
7504fi
7505
7506
7507
7508
7509
7510
7511 lt_prog_compiler_wl=
7512lt_prog_compiler_pic=
7513lt_prog_compiler_static=
7514
7515echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7516echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7517
7518 if test "$GCC" = yes; then
7519 lt_prog_compiler_wl='-Wl,'
7520 lt_prog_compiler_static='-static'
7521
7522 case $host_os in
7523 aix*)
7524 # All AIX code is PIC.
7525 if test "$host_cpu" = ia64; then
7526 # AIX 5 now supports IA64 processor
7527 lt_prog_compiler_static='-Bstatic'
7528 fi
7529 ;;
7530
7531 amigaos*)
7532 if test "$host_cpu" = m68k; then
7533 # FIXME: we need at least 68020 code to build shared libraries, but
7534 # adding the `-m68020' flag to GCC prevents building anything better,
7535 # like `-m68040'.
7536 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7537 fi
7538 ;;
7539
7540 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7541 # PIC is the default for these OSes.
7542 ;;
7543
7544 mingw* | cygwin* | pw32* | os2*)
7545 # This hack is so that the source file can tell whether it is being
7546 # built for inclusion in a dll (and should export symbols for example).
7547 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7548 # (--disable-auto-import) libraries
7549 lt_prog_compiler_pic='-DDLL_EXPORT'
7550 ;;
7551
7552 darwin* | rhapsody*)
7553 # PIC is the default on this platform
7554 # Common symbols not allowed in MH_DYLIB files
7555 lt_prog_compiler_pic='-fno-common'
7556 ;;
7557
7558 hpux*)
7559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7560 # not for PA HP-UX.
7561 case $host_cpu in
7562 hppa*64*|ia64*)
7563 # +Z the default
7564 ;;
7565 *)
7566 lt_prog_compiler_pic='-fPIC'
7567 ;;
7568 esac
7569 ;;
7570
7571 interix[3-9]*)
7572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7573 # Instead, we relocate shared libraries at runtime.
7574 ;;
7575
7576 msdosdjgpp*)
7577 # Just because we use GCC doesn't mean we suddenly get shared libraries
7578 # on systems that don't support them.
7579 lt_prog_compiler_can_build_shared=no
7580 enable_shared=no
7581 ;;
7582
7583 *nto* | *qnx*)
7584 # QNX uses GNU C++, but need to define -shared option too, otherwise
7585 # it will coredump.
7586 lt_prog_compiler_pic='-fPIC -shared'
7587 ;;
7588
7589 sysv4*MP*)
7590 if test -d /usr/nec; then
7591 lt_prog_compiler_pic=-Kconform_pic
7592 fi
7593 ;;
7594
7595 *)
7596 lt_prog_compiler_pic='-fPIC'
7597 ;;
7598 esac
7599 else
7600 # PORTME Check for flag to pass linker flags through the system compiler.
7601 case $host_os in
7602 aix*)
7603 lt_prog_compiler_wl='-Wl,'
7604 if test "$host_cpu" = ia64; then
7605 # AIX 5 now supports IA64 processor
7606 lt_prog_compiler_static='-Bstatic'
7607 else
7608 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7609 fi
7610 ;;
7611 darwin*)
7612 # PIC is the default on this platform
7613 # Common symbols not allowed in MH_DYLIB files
7614 case $cc_basename in
7615 xlc*)
7616 lt_prog_compiler_pic='-qnocommon'
7617 lt_prog_compiler_wl='-Wl,'
7618 ;;
7619 esac
7620 ;;
7621
7622 mingw* | cygwin* | pw32* | os2*)
7623 # This hack is so that the source file can tell whether it is being
7624 # built for inclusion in a dll (and should export symbols for example).
7625 lt_prog_compiler_pic='-DDLL_EXPORT'
7626 ;;
7627
7628 hpux9* | hpux10* | hpux11*)
7629 lt_prog_compiler_wl='-Wl,'
7630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7631 # not for PA HP-UX.
7632 case $host_cpu in
7633 hppa*64*|ia64*)
7634 # +Z the default
7635 ;;
7636 *)
7637 lt_prog_compiler_pic='+Z'
7638 ;;
7639 esac
7640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7641 lt_prog_compiler_static='${wl}-a ${wl}archive'
7642 ;;
7643
7644 irix5* | irix6* | nonstopux*)
7645 lt_prog_compiler_wl='-Wl,'
7646 # PIC (with -KPIC) is the default.
7647 lt_prog_compiler_static='-non_shared'
7648 ;;
7649
7650 linux* | k*bsd*-gnu)
7651 case $cc_basename in
7652 icc* | ecc*)
7653 lt_prog_compiler_wl='-Wl,'
7654 lt_prog_compiler_pic='-KPIC'
7655 lt_prog_compiler_static='-static'
7656 ;;
7657 pgcc* | pgf77* | pgf90* | pgf95*)
7658 # Portland Group compilers (*not* the Pentium gcc compiler,
7659 # which looks to be a dead project)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-fpic'
7662 lt_prog_compiler_static='-Bstatic'
7663 ;;
7664 ccc*)
7665 lt_prog_compiler_wl='-Wl,'
7666 # All Alpha code is PIC.
7667 lt_prog_compiler_static='-non_shared'
7668 ;;
7669 *)
7670 case `$CC -V 2>&1 | sed 5q` in
7671 *Sun\ C*)
7672 # Sun C 5.9
7673 lt_prog_compiler_pic='-KPIC'
7674 lt_prog_compiler_static='-Bstatic'
7675 lt_prog_compiler_wl='-Wl,'
7676 ;;
7677 *Sun\ F*)
7678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7679 lt_prog_compiler_pic='-KPIC'
7680 lt_prog_compiler_static='-Bstatic'
7681 lt_prog_compiler_wl=''
7682 ;;
7683 esac
7684 ;;
7685 esac
7686 ;;
7687
7688 newsos6)
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7691 ;;
7692
7693 *nto* | *qnx*)
7694 # QNX uses GNU C++, but need to define -shared option too, otherwise
7695 # it will coredump.
7696 lt_prog_compiler_pic='-fPIC -shared'
7697 ;;
7698
7699 osf3* | osf4* | osf5*)
7700 lt_prog_compiler_wl='-Wl,'
7701 # All OSF/1 code is PIC.
7702 lt_prog_compiler_static='-non_shared'
7703 ;;
7704
7705 rdos*)
7706 lt_prog_compiler_static='-non_shared'
7707 ;;
7708
7709 solaris*)
7710 lt_prog_compiler_pic='-KPIC'
7711 lt_prog_compiler_static='-Bstatic'
7712 case $cc_basename in
7713 f77* | f90* | f95*)
7714 lt_prog_compiler_wl='-Qoption ld ';;
7715 *)
7716 lt_prog_compiler_wl='-Wl,';;
7717 esac
7718 ;;
7719
7720 sunos4*)
7721 lt_prog_compiler_wl='-Qoption ld '
7722 lt_prog_compiler_pic='-PIC'
7723 lt_prog_compiler_static='-Bstatic'
7724 ;;
7725
7726 sysv4 | sysv4.2uw2* | sysv4.3*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7730 ;;
7731
7732 sysv4*MP*)
7733 if test -d /usr/nec ;then
7734 lt_prog_compiler_pic='-Kconform_pic'
7735 lt_prog_compiler_static='-Bstatic'
7736 fi
7737 ;;
7738
7739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-KPIC'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744
7745 unicos*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_can_build_shared=no
7748 ;;
7749
7750 uts4*)
7751 lt_prog_compiler_pic='-pic'
7752 lt_prog_compiler_static='-Bstatic'
7753 ;;
7754
7755 *)
7756 lt_prog_compiler_can_build_shared=no
7757 ;;
7758 esac
7759 fi
7760
7761case $host_os in
7762 # For platforms which do not support PIC, -DPIC is meaningless:
7763 *djgpp*)
7764 lt_prog_compiler_pic=
7765 ;;
7766 *)
7767 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7768 ;;
7769esac
7770echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7771echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7772
7773
7774
7775
7776
7777
7778#
7779# Check to make sure the PIC flag actually works.
7780#
7781if test -n "$lt_prog_compiler_pic"; then
7782 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7783echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7784if test "${lt_prog_compiler_pic_works+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787 lt_prog_compiler_pic_works=no
7788 ac_outfile=conftest.$ac_objext
7789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7791 # Insert the option either (1) after the last *FLAGS variable, or
7792 # (2) before a word containing "conftest.", or (3) at the end.
7793 # Note that $ac_compile itself does not contain backslashes and begins
7794 # with a dollar sign (not a hyphen), so the echo should work correctly.
7795 # The option is referenced via a variable to avoid confusing sed.
7796 lt_compile=`echo "$ac_compile" | $SED \
7797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7799 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7800 (eval echo "\"\$as_me:7435: $lt_compile\"" >&5)
d7040cdb
SE
7801 (eval "$lt_compile" 2>conftest.err)
7802 ac_status=$?
7803 cat conftest.err >&5
7357c5b6 7804 echo "$as_me:7439: \$? = $ac_status" >&5
d7040cdb
SE
7805 if (exit $ac_status) && test -s "$ac_outfile"; then
7806 # The compiler can only warn and ignore the option if not recognized
7807 # So say no if there are warnings other than the usual output.
7808 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7811 lt_prog_compiler_pic_works=yes
7812 fi
7813 fi
7814 $RM conftest*
7815
7816fi
7817echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7818echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7819
7820if test x"$lt_prog_compiler_pic_works" = xyes; then
7821 case $lt_prog_compiler_pic in
7822 "" | " "*) ;;
7823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7824 esac
7825else
7826 lt_prog_compiler_pic=
7827 lt_prog_compiler_can_build_shared=no
7828fi
7829
7830fi
7831
7832
7833
7834
7835
7836
7837#
7838# Check to make sure the static flag actually works.
7839#
7840wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7841echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7842echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7843if test "${lt_prog_compiler_static_works+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846 lt_prog_compiler_static_works=no
7847 save_LDFLAGS="$LDFLAGS"
7848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7851 # The linker can only warn and ignore the option if not recognized
7852 # So say no if there are warnings
7853 if test -s conftest.err; then
7854 # Append any errors to the config.log.
7855 cat conftest.err 1>&5
7856 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858 if diff conftest.exp conftest.er2 >/dev/null; then
7859 lt_prog_compiler_static_works=yes
7860 fi
7861 else
7862 lt_prog_compiler_static_works=yes
7863 fi
7864 fi
7865 $RM conftest*
7866 LDFLAGS="$save_LDFLAGS"
7867
7868fi
7869echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7870echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7871
7872if test x"$lt_prog_compiler_static_works" = xyes; then
7873 :
7874else
7875 lt_prog_compiler_static=
7876fi
7877
7878
7879
7880
7881
7882
7883
7884 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7885echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7886if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889 lt_cv_prog_compiler_c_o=no
7890 $RM -r conftest 2>/dev/null
7891 mkdir conftest
7892 cd conftest
7893 mkdir out
7894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7895
7896 lt_compiler_flag="-o out/conftest2.$ac_objext"
7897 # Insert the option either (1) after the last *FLAGS variable, or
7898 # (2) before a word containing "conftest.", or (3) at the end.
7899 # Note that $ac_compile itself does not contain backslashes and begins
7900 # with a dollar sign (not a hyphen), so the echo should work correctly.
7901 lt_compile=`echo "$ac_compile" | $SED \
7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7905 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5)
d7040cdb
SE
7906 (eval "$lt_compile" 2>out/conftest.err)
7907 ac_status=$?
7908 cat out/conftest.err >&5
7357c5b6 7909 echo "$as_me:7544: \$? = $ac_status" >&5
d7040cdb
SE
7910 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7911 then
7912 # The compiler can only warn and ignore the option if not recognized
7913 # So say no if there are warnings
7914 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7915 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7916 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7917 lt_cv_prog_compiler_c_o=yes
7918 fi
7919 fi
7920 chmod u+w . 2>&5
7921 $RM conftest*
7922 # SGI C++ compiler will create directory out/ii_files/ for
7923 # template instantiation
7924 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7925 $RM out/* && rmdir out
7926 cd ..
7927 $RM -r conftest
7928 $RM conftest*
7929
7930fi
7931echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7932echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7933
7934
7935
7936
7937
7938
7939 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7940echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7941if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944 lt_cv_prog_compiler_c_o=no
7945 $RM -r conftest 2>/dev/null
7946 mkdir conftest
7947 cd conftest
7948 mkdir out
7949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7950
7951 lt_compiler_flag="-o out/conftest2.$ac_objext"
7952 # Insert the option either (1) after the last *FLAGS variable, or
7953 # (2) before a word containing "conftest.", or (3) at the end.
7954 # Note that $ac_compile itself does not contain backslashes and begins
7955 # with a dollar sign (not a hyphen), so the echo should work correctly.
7956 lt_compile=`echo "$ac_compile" | $SED \
7957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7959 -e 's:$: $lt_compiler_flag:'`
7357c5b6 7960 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
d7040cdb
SE
7961 (eval "$lt_compile" 2>out/conftest.err)
7962 ac_status=$?
7963 cat out/conftest.err >&5
7357c5b6 7964 echo "$as_me:7599: \$? = $ac_status" >&5
d7040cdb
SE
7965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7966 then
7967 # The compiler can only warn and ignore the option if not recognized
7968 # So say no if there are warnings
7969 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7972 lt_cv_prog_compiler_c_o=yes
7973 fi
7974 fi
7975 chmod u+w . 2>&5
7976 $RM conftest*
7977 # SGI C++ compiler will create directory out/ii_files/ for
7978 # template instantiation
7979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7980 $RM out/* && rmdir out
7981 cd ..
7982 $RM -r conftest
7983 $RM conftest*
7984
7985fi
7986echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7987echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7988
7989
7990
7991
7992hard_links="nottested"
7993if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7994 # do not overwrite the value of need_locks provided by the user
7995 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7996echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7997 hard_links=yes
7998 $RM conftest*
7999 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8000 touch conftest.a
8001 ln conftest.a conftest.b 2>&5 || hard_links=no
8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8003 echo "$as_me:$LINENO: result: $hard_links" >&5
8004echo "${ECHO_T}$hard_links" >&6
8005 if test "$hard_links" = no; then
8006 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8007echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8008 need_locks=warn
8009 fi
8010else
8011 need_locks=no
8012fi
8013
8014
8015
8016
8017
8018
8019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8020echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8021
8022 runpath_var=
8023 allow_undefined_flag=
8024 always_export_symbols=no
8025 archive_cmds=
8026 archive_expsym_cmds=
8027 compiler_needs_object=no
8028 enable_shared_with_static_runtimes=no
8029 export_dynamic_flag_spec=
8030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8031 hardcode_automatic=no
8032 hardcode_direct=no
8033 hardcode_direct_absolute=no
8034 hardcode_libdir_flag_spec=
8035 hardcode_libdir_flag_spec_ld=
8036 hardcode_libdir_separator=
8037 hardcode_minus_L=no
8038 hardcode_shlibpath_var=unsupported
8039 inherit_rpath=no
8040 link_all_deplibs=unknown
8041 module_cmds=
8042 module_expsym_cmds=
8043 old_archive_from_new_cmds=
8044 old_archive_from_expsyms_cmds=
8045 thread_safe_flag_spec=
8046 whole_archive_flag_spec=
8047 # include_expsyms should be a list of space-separated symbols to be *always*
8048 # included in the symbol list
8049 include_expsyms=
8050 # exclude_expsyms can be an extended regexp of symbols to exclude
8051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8053 # as well as any symbol that contains `d'.
8054 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8056 # platforms (ab)use it in PIC code, but their linkers get confused if
8057 # the symbol is explicitly referenced. Since portable code cannot
8058 # rely on this symbol name, it's probably fine to never include it in
8059 # preloaded symbol tables.
8060 extract_expsyms_cmds=
8061
8062 case $host_os in
8063 cygwin* | mingw* | pw32*)
8064 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8065 # When not using gcc, we currently assume that we are using
8066 # Microsoft Visual C++.
8067 if test "$GCC" != yes; then
8068 with_gnu_ld=no
8069 fi
8070 ;;
8071 interix*)
8072 # we just hope/assume this is gcc and not c89 (= MSVC++)
8073 with_gnu_ld=yes
8074 ;;
8075 openbsd*)
8076 with_gnu_ld=no
8077 ;;
8078 esac
8079
8080 ld_shlibs=yes
8081 if test "$with_gnu_ld" = yes; then
8082 # If archive_cmds runs LD, not CC, wlarc should be empty
8083 wlarc='${wl}'
8084
8085 # Set some defaults for GNU ld with shared library support. These
8086 # are reset later if shared libraries are not supported. Putting them
8087 # here allows them to be overridden if necessary.
8088 runpath_var=LD_RUN_PATH
8089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8090 export_dynamic_flag_spec='${wl}--export-dynamic'
8091 # ancient GNU ld didn't support --whole-archive et. al.
8092 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8093 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8094 else
8095 whole_archive_flag_spec=
8096 fi
8097 supports_anon_versioning=no
8098 case `$LD -v 2>&1` in
8099 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8100 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8101 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8102 *\ 2.11.*) ;; # other 2.11 versions
8103 *) supports_anon_versioning=yes ;;
8104 esac
8105
8106 # See if GNU ld supports shared libraries.
8107 case $host_os in
e81819a5 8108 aix[3-9]*)
d7040cdb
SE
8109 # On AIX/PPC, the GNU linker is very broken
8110 if test "$host_cpu" != ia64; then
8111 ld_shlibs=no
8112 cat <<_LT_EOF 1>&2
8113
8114*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8115*** to be unable to reliably create shared libraries on AIX.
8116*** Therefore, libtool is disabling shared libraries support. If you
8117*** really care for shared libraries, you may want to modify your PATH
8118*** so that a non-GNU linker is found, and then restart.
8119
8120_LT_EOF
8121 fi
8122 ;;
8123
8124 amigaos*)
8125 if test "$host_cpu" = m68k; then
8126 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)'
8127 hardcode_libdir_flag_spec='-L$libdir'
8128 hardcode_minus_L=yes
8129 fi
8130
8131 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8132 # that the semantics of dynamic libraries on AmigaOS, at least up
8133 # to version 4, is to share data among multiple programs linked
8134 # with the same dynamic library. Since this doesn't match the
8135 # behavior of shared libraries on other platforms, we can't use
8136 # them.
8137 ld_shlibs=no
8138 ;;
8139
8140 beos*)
8141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8142 allow_undefined_flag=unsupported
8143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8144 # support --undefined. This deserves some investigation. FIXME
8145 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146 else
8147 ld_shlibs=no
8148 fi
8149 ;;
8150
8151 cygwin* | mingw* | pw32*)
8152 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8153 # as there is no search path for DLLs.
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 allow_undefined_flag=unsupported
8156 always_export_symbols=no
8157 enable_shared_with_static_runtimes=yes
8158 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8159
8160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162 # If the export-symbols file already is a .def file (1st line
8163 # is EXPORTS), use it as is; otherwise, prepend...
8164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8165 cp $export_symbols $output_objdir/$soname.def;
8166 else
8167 echo EXPORTS > $output_objdir/$soname.def;
8168 cat $export_symbols >> $output_objdir/$soname.def;
8169 fi~
8170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8171 else
8172 ld_shlibs=no
8173 fi
8174 ;;
8175
8176 interix[3-9]*)
8177 hardcode_direct=no
8178 hardcode_shlibpath_var=no
8179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8180 export_dynamic_flag_spec='${wl}-E'
8181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8182 # Instead, shared libraries are loaded at an image base (0x10000000 by
8183 # default) and relocated if they conflict, which is a slow very memory
8184 # consuming and fragmenting process. To avoid this, we pick a random,
8185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8188 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'
8189 ;;
8190
8191 gnu* | linux* | tpf* | k*bsd*-gnu)
8192 tmp_diet=no
8193 if test "$host_os" = linux-dietlibc; then
8194 case $cc_basename in
8195 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8196 esac
8197 fi
8198 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8199 && test "$tmp_diet" = no
8200 then
8201 tmp_addflag=
8202 case $cc_basename,$host_cpu in
8203 pgcc*) # Portland Group C compiler
8204 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'
8205 tmp_addflag=' $pic_flag'
8206 ;;
8207 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8208 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'
8209 tmp_addflag=' $pic_flag -Mnomain' ;;
8210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8211 tmp_addflag=' -i_dynamic' ;;
8212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8213 tmp_addflag=' -i_dynamic -nofor_main' ;;
8214 ifc* | ifort*) # Intel Fortran compiler
8215 tmp_addflag=' -nofor_main' ;;
8216 esac
8217 case `$CC -V 2>&1 | sed 5q` in
8218 *Sun\ C*) # Sun C 5.9
8219 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'
8220 compiler_needs_object=yes
8221 tmp_sharedflag='-G' ;;
8222 *Sun\ F*) # Sun Fortran 8.3
8223 tmp_sharedflag='-G' ;;
8224 *)
8225 tmp_sharedflag='-shared' ;;
8226 esac
8227 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228
8229 if test "x$supports_anon_versioning" = xyes; then
8230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8232 echo "local: *; };" >> $output_objdir/$libname.ver~
8233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8234 fi
8235 else
8236 ld_shlibs=no
8237 fi
8238 ;;
8239
8240 netbsd*)
8241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8243 wlarc=
8244 else
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 fi
8248 ;;
8249
8250 solaris*)
8251 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8252 ld_shlibs=no
8253 cat <<_LT_EOF 1>&2
8254
8255*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8256*** create shared libraries on Solaris systems. Therefore, libtool
8257*** is disabling shared libraries support. We urge you to upgrade GNU
8258*** binutils to release 2.9.1 or newer. Another option is to modify
8259*** your PATH or compiler configuration so that the native linker is
8260*** used, and then restart.
8261
8262_LT_EOF
8263 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 else
8267 ld_shlibs=no
8268 fi
8269 ;;
8270
8271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8272 case `$LD -v 2>&1` in
8273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8274 ld_shlibs=no
8275 cat <<_LT_EOF 1>&2
8276
8277*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8278*** reliably create shared libraries on SCO systems. Therefore, libtool
8279*** is disabling shared libraries support. We urge you to upgrade GNU
8280*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8281*** your PATH or compiler configuration so that the native linker is
8282*** used, and then restart.
8283
8284_LT_EOF
8285 ;;
8286 *)
8287 # For security reasons, it is highly recommended that you always
8288 # use absolute paths for naming shared libraries, and exclude the
8289 # DT_RUNPATH tag from executables and libraries. But doing so
8290 # requires that you compile everything twice, which is a pain.
8291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295 else
8296 ld_shlibs=no
8297 fi
8298 ;;
8299 esac
8300 ;;
8301
8302 sunos4*)
8303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8304 wlarc=
8305 hardcode_direct=yes
8306 hardcode_shlibpath_var=no
8307 ;;
8308
8309 *)
8310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313 else
8314 ld_shlibs=no
8315 fi
8316 ;;
8317 esac
8318
8319 if test "$ld_shlibs" = no; then
8320 runpath_var=
8321 hardcode_libdir_flag_spec=
8322 export_dynamic_flag_spec=
8323 whole_archive_flag_spec=
8324 fi
8325 else
8326 # PORTME fill in a description of your system's linker (not GNU ld)
8327 case $host_os in
8328 aix3*)
8329 allow_undefined_flag=unsupported
8330 always_export_symbols=yes
8331 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'
8332 # Note: this linker hardcodes the directories in LIBPATH if there
8333 # are no directories specified by -L.
8334 hardcode_minus_L=yes
8335 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8336 # Neither direct hardcoding nor static linking is supported with a
8337 # broken collect2.
8338 hardcode_direct=unsupported
8339 fi
8340 ;;
8341
e81819a5 8342 aix[4-9]*)
d7040cdb
SE
8343 if test "$host_cpu" = ia64; then
8344 # On IA64, the linker does run time linking by default, so we don't
8345 # have to do anything special.
8346 aix_use_runtimelinking=no
8347 exp_sym_flag='-Bexport'
8348 no_entry_flag=""
8349 else
8350 # If we're using GNU nm, then we don't want the "-C" option.
8351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8353 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'
8354 else
8355 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'
8356 fi
8357 aix_use_runtimelinking=no
8358
8359 # Test if we are trying to use run time linking or normal
8360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8361 # need to do runtime linking.
e81819a5 8362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8363 for ld_flag in $LDFLAGS; do
8364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8365 aix_use_runtimelinking=yes
8366 break
8367 fi
8368 done
8369 ;;
8370 esac
8371
8372 exp_sym_flag='-bexport'
8373 no_entry_flag='-bnoentry'
8374 fi
8375
8376 # When large executables or shared objects are built, AIX ld can
8377 # have problems creating the table of contents. If linking a library
8378 # or program results in "error TOC overflow" add -mminimal-toc to
8379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8381
8382 archive_cmds=''
8383 hardcode_direct=yes
8384 hardcode_direct_absolute=yes
8385 hardcode_libdir_separator=':'
8386 link_all_deplibs=yes
8387 file_list_spec='${wl}-f,'
8388
8389 if test "$GCC" = yes; then
8390 case $host_os in aix4.[012]|aix4.[012].*)
8391 # We only want to do this on AIX 4.2 and lower, the check
8392 # below for broken collect2 doesn't work under 4.3+
8393 collect2name=`${CC} -print-prog-name=collect2`
8394 if test -f "$collect2name" &&
8395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8396 then
8397 # We have reworked collect2
8398 :
8399 else
8400 # We have old collect2
8401 hardcode_direct=unsupported
8402 # It fails to find uninstalled libraries when the uninstalled
8403 # path is not listed in the libpath. Setting hardcode_minus_L
8404 # to unsupported forces relinking
8405 hardcode_minus_L=yes
8406 hardcode_libdir_flag_spec='-L$libdir'
8407 hardcode_libdir_separator=
8408 fi
8409 ;;
8410 esac
8411 shared_flag='-shared'
8412 if test "$aix_use_runtimelinking" = yes; then
8413 shared_flag="$shared_flag "'${wl}-G'
8414 fi
8415 else
8416 # not using gcc
8417 if test "$host_cpu" = ia64; then
8418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8419 # chokes on -Wl,-G. The following line is correct:
8420 shared_flag='-G'
8421 else
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag='${wl}-G'
8424 else
8425 shared_flag='${wl}-bM:SRE'
8426 fi
8427 fi
8428 fi
8429
8430 # It seems that -bexpall does not export symbols beginning with
8431 # underscore (_), so it is better to generate a list of symbols to export.
8432 always_export_symbols=yes
8433 if test "$aix_use_runtimelinking" = yes; then
8434 # Warning - without using the other runtime loading flags (-brtl),
8435 # -berok will link without error, but may produce a broken library.
8436 allow_undefined_flag='-berok'
8437 # Determine the default libpath from the value encoded in an
8438 # empty executable.
8439 cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445
8446int
8447main ()
8448{
8449
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext conftest$ac_exeext
8455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } &&
7357c5b6
AM
8463 { ac_try='test -z "$ac_c_werror_flag"
8464 || test ! -s conftest.err'
d7040cdb
SE
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476
8477lt_aix_libpath_sed='
8478 /Import File Strings/,/^$/ {
8479 /^0/ {
8480 s/^0 *\(.*\)$/\1/
8481 p
8482 }
8483 }'
8484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8485# Check for a 64-bit object if we didn't find anything.
8486if test -z "$aix_libpath"; then
8487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8488fi
8489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493fi
8494rm -f conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8497
8498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8499 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"
8500 else
8501 if test "$host_cpu" = ia64; then
8502 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8503 allow_undefined_flag="-z nodefs"
8504 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"
8505 else
8506 # Determine the default libpath from the value encoded in an
8507 # empty executable.
8508 cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514
8515int
8516main ()
8517{
8518
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523rm -f conftest.$ac_objext conftest$ac_exeext
8524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
7357c5b6
AM
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
d7040cdb
SE
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545
8546lt_aix_libpath_sed='
8547 /Import File Strings/,/^$/ {
8548 /^0/ {
8549 s/^0 *\(.*\)$/\1/
8550 p
8551 }
8552 }'
8553aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8554# Check for a 64-bit object if we didn't find anything.
8555if test -z "$aix_libpath"; then
8556 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8557fi
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562fi
8563rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8566
8567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8568 # Warning - without using the other run time loading flags,
8569 # -berok will link without error, but may produce a broken library.
8570 no_undefined_flag=' ${wl}-bernotok'
8571 allow_undefined_flag=' ${wl}-berok'
8572 # Exported symbols can be pulled into shared objects from archives
8573 whole_archive_flag_spec='$convenience'
8574 archive_cmds_need_lc=yes
8575 # This is similar to how AIX traditionally builds its shared libraries.
8576 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'
8577 fi
8578 fi
8579 ;;
8580
8581 amigaos*)
8582 if test "$host_cpu" = m68k; then
8583 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)'
8584 hardcode_libdir_flag_spec='-L$libdir'
8585 hardcode_minus_L=yes
8586 fi
8587 # see comment about different semantics on the GNU ld section
8588 ld_shlibs=no
8589 ;;
8590
8591 bsdi[45]*)
8592 export_dynamic_flag_spec=-rdynamic
8593 ;;
8594
8595 cygwin* | mingw* | pw32*)
8596 # When not using gcc, we currently assume that we are using
8597 # Microsoft Visual C++.
8598 # hardcode_libdir_flag_spec is actually meaningless, as there is
8599 # no search path for DLLs.
8600 hardcode_libdir_flag_spec=' '
8601 allow_undefined_flag=unsupported
8602 # Tell ltmain to make .lib files, not .a files.
8603 libext=lib
8604 # Tell ltmain to make .dll files, not .so files.
8605 shrext_cmds=".dll"
8606 # FIXME: Setting linknames here is a bad hack.
8607 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8608 # The linker will automatically build a .lib file if we build a DLL.
8609 old_archive_from_new_cmds='true'
8610 # FIXME: Should let the user specify the lib program.
8611 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8612 fix_srcfile_path='`cygpath -w "$srcfile"`'
8613 enable_shared_with_static_runtimes=yes
8614 ;;
8615
8616 darwin* | rhapsody*)
8617 case $host_os in
8618 rhapsody* | darwin1.[012])
8619 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8620 ;;
8621 *) # Darwin 1.3 on
8622 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8623 10.[012])
8624 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8625 ;;
8626 10.*)
8627 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8628 ;;
8629 esac
8630 ;;
8631 esac
8632 archive_cmds_need_lc=no
8633 hardcode_direct=no
8634 hardcode_automatic=yes
8635 hardcode_shlibpath_var=unsupported
8636 whole_archive_flag_spec=''
8637 link_all_deplibs=yes
8638 if test "$GCC" = yes ; then
8639 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8641else
8642 lt_cv_apple_cc_single_mod=no
8643 if test -z "${LT_MULTI_MODULE}"; then
8644 # By default we will add the -single_module flag. You can override
8645 # by either setting the environment variable LT_MULTI_MODULE
8646 # non-empty at configure time, or by adding -multi-module to the
8647 # link flags.
8648 echo "int foo(void){return 1;}" > conftest.c
8649 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8650 -dynamiclib ${wl}-single_module conftest.c
8651 if test -f libconftest.dylib; then
8652 lt_cv_apple_cc_single_mod=yes
8653 rm libconftest.dylib
8654 fi
8655 rm conftest.$ac_ext
8656 fi
8657fi
8658
8659 output_verbose_link_cmd=echo
8660 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8661 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8662 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8663 else
8664 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8665 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8666 fi
8667 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8668 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8669 else
8670 case $cc_basename in
8671 xlc*)
8672 output_verbose_link_cmd=echo
8673 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8674 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8675 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8676 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8677 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8678 ;;
8679 *)
8680 ld_shlibs=no
8681 ;;
8682 esac
8683 fi
8684 ;;
8685
8686 dgux*)
8687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8688 hardcode_libdir_flag_spec='-L$libdir'
8689 hardcode_shlibpath_var=no
8690 ;;
8691
8692 freebsd1*)
8693 ld_shlibs=no
8694 ;;
8695
8696 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8697 # support. Future versions do this automatically, but an explicit c++rt0.o
8698 # does not break anything, and helps significantly (at the cost of a little
8699 # extra space).
8700 freebsd2.2*)
8701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8702 hardcode_libdir_flag_spec='-R$libdir'
8703 hardcode_direct=yes
8704 hardcode_shlibpath_var=no
8705 ;;
8706
8707 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8708 freebsd2*)
8709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8710 hardcode_direct=yes
8711 hardcode_minus_L=yes
8712 hardcode_shlibpath_var=no
8713 ;;
8714
8715 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8716 freebsd* | dragonfly*)
8717 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8718 hardcode_libdir_flag_spec='-R$libdir'
8719 hardcode_direct=yes
8720 hardcode_shlibpath_var=no
8721 ;;
8722
8723 hpux9*)
8724 if test "$GCC" = yes; then
8725 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'
8726 else
8727 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'
8728 fi
8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8730 hardcode_libdir_separator=:
8731 hardcode_direct=yes
8732
8733 # hardcode_minus_L: Not really in the search PATH,
8734 # but as the default location of the library.
8735 hardcode_minus_L=yes
8736 export_dynamic_flag_spec='${wl}-E'
8737 ;;
8738
8739 hpux10*)
8740 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8741 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8742 else
8743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8744 fi
8745 if test "$with_gnu_ld" = no; then
8746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8747 hardcode_libdir_flag_spec_ld='+b $libdir'
8748 hardcode_libdir_separator=:
8749 hardcode_direct=yes
8750 hardcode_direct_absolute=yes
8751 export_dynamic_flag_spec='${wl}-E'
8752 # hardcode_minus_L: Not really in the search PATH,
8753 # but as the default location of the library.
8754 hardcode_minus_L=yes
8755 fi
8756 ;;
8757
8758 hpux11*)
8759 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8760 case $host_cpu in
8761 hppa*64*)
8762 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8763 ;;
8764 ia64*)
8765 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8766 ;;
8767 *)
8768 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8769 ;;
8770 esac
8771 else
8772 case $host_cpu in
8773 hppa*64*)
8774 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 ;;
8776 ia64*)
8777 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8778 ;;
8779 *)
8780 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8781 ;;
8782 esac
8783 fi
8784 if test "$with_gnu_ld" = no; then
8785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8786 hardcode_libdir_separator=:
8787
8788 case $host_cpu in
8789 hppa*64*|ia64*)
8790 hardcode_direct=no
8791 hardcode_shlibpath_var=no
8792 ;;
8793 *)
8794 hardcode_direct=yes
8795 hardcode_direct_absolute=yes
8796 export_dynamic_flag_spec='${wl}-E'
8797
8798 # hardcode_minus_L: Not really in the search PATH,
8799 # but as the default location of the library.
8800 hardcode_minus_L=yes
8801 ;;
8802 esac
8803 fi
8804 ;;
8805
8806 irix5* | irix6* | nonstopux*)
8807 if test "$GCC" = yes; then
8808 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'
8809 # Try to use the -exported_symbol ld option, if it does not
8810 # work, assume that -exports_file does not work either and
8811 # implicitly export all symbols.
8812 save_LDFLAGS="$LDFLAGS"
8813 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8814 cat >conftest.$ac_ext <<_ACEOF
8815int foo(void) {}
8816_ACEOF
8817rm -f conftest.$ac_objext conftest$ac_exeext
8818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
7357c5b6
AM
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
d7040cdb
SE
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 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'
8840
8841else
8842 echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
8845fi
8846rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LDFLAGS="$save_LDFLAGS"
8849 else
8850 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'
8851 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'
8852 fi
8853 archive_cmds_need_lc='no'
8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855 hardcode_libdir_separator=:
8856 inherit_rpath=yes
8857 link_all_deplibs=yes
8858 ;;
8859
8860 netbsd*)
8861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8863 else
8864 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8865 fi
8866 hardcode_libdir_flag_spec='-R$libdir'
8867 hardcode_direct=yes
8868 hardcode_shlibpath_var=no
8869 ;;
8870
8871 newsos6)
8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873 hardcode_direct=yes
8874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875 hardcode_libdir_separator=:
8876 hardcode_shlibpath_var=no
8877 ;;
8878
8879 *nto* | *qnx*)
8880 ;;
8881
8882 openbsd*)
8883 hardcode_direct=yes
8884 hardcode_shlibpath_var=no
8885 hardcode_direct_absolute=yes
8886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 else
8892 case $host_os in
8893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_libdir_flag_spec='-R$libdir'
8896 ;;
8897 *)
8898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900 ;;
8901 esac
8902 fi
8903 ;;
8904
8905 os2*)
8906 hardcode_libdir_flag_spec='-L$libdir'
8907 hardcode_minus_L=yes
8908 allow_undefined_flag=unsupported
8909 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'
8910 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8911 ;;
8912
8913 osf3*)
8914 if test "$GCC" = yes; then
8915 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8916 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'
8917 else
8918 allow_undefined_flag=' -expect_unresolved \*'
8919 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'
8920 fi
8921 archive_cmds_need_lc='no'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 ;;
8925
8926 osf4* | osf5*) # as osf3* with the addition of -msym flag
8927 if test "$GCC" = yes; then
8928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8929 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'
8930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8931 else
8932 allow_undefined_flag=' -expect_unresolved \*'
8933 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'
8934 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~
8935 $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'
8936
8937 # Both c and cxx compiler support -rpath directly
8938 hardcode_libdir_flag_spec='-rpath $libdir'
8939 fi
8940 archive_cmds_need_lc='no'
8941 hardcode_libdir_separator=:
8942 ;;
8943
8944 solaris*)
8945 no_undefined_flag=' -z defs'
8946 if test "$GCC" = yes; then
8947 wlarc='${wl}'
8948 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8950 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8951 else
8952 case `$CC -V 2>&1` in
8953 *"Compilers 5.0"*)
8954 wlarc=''
8955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8958 ;;
8959 *)
8960 wlarc='${wl}'
8961 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8963 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8964 ;;
8965 esac
8966 fi
8967 hardcode_libdir_flag_spec='-R$libdir'
8968 hardcode_shlibpath_var=no
8969 case $host_os in
8970 solaris2.[0-5] | solaris2.[0-5].*) ;;
8971 *)
8972 # The compiler driver will combine and reorder linker options,
8973 # but understands `-z linker_flag'. GCC discards it without `$wl',
8974 # but is careful enough not to reorder.
8975 # Supported since Solaris 2.6 (maybe 2.5.1?)
8976 if test "$GCC" = yes; then
8977 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8978 else
8979 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8980 fi
8981 ;;
8982 esac
8983 link_all_deplibs=yes
8984 ;;
8985
8986 sunos4*)
8987 if test "x$host_vendor" = xsequent; then
8988 # Use $CC to link under sequent, because it throws in some extra .o
8989 # files that make .init and .fini sections work.
8990 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8991 else
8992 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8993 fi
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_direct=yes
8996 hardcode_minus_L=yes
8997 hardcode_shlibpath_var=no
8998 ;;
8999
9000 sysv4)
9001 case $host_vendor in
9002 sni)
9003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 hardcode_direct=yes # is this really true???
9005 ;;
9006 siemens)
9007 ## LD is ld it makes a PLAMLIB
9008 ## CC just makes a GrossModule.
9009 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9010 reload_cmds='$CC -r -o $output$reload_objs'
9011 hardcode_direct=no
9012 ;;
9013 motorola)
9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9016 ;;
9017 esac
9018 runpath_var='LD_RUN_PATH'
9019 hardcode_shlibpath_var=no
9020 ;;
9021
9022 sysv4.3*)
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_shlibpath_var=no
9025 export_dynamic_flag_spec='-Bexport'
9026 ;;
9027
9028 sysv4*MP*)
9029 if test -d /usr/nec; then
9030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031 hardcode_shlibpath_var=no
9032 runpath_var=LD_RUN_PATH
9033 hardcode_runpath_var=yes
9034 ld_shlibs=yes
9035 fi
9036 ;;
9037
9038 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9039 no_undefined_flag='${wl}-z,text'
9040 archive_cmds_need_lc=no
9041 hardcode_shlibpath_var=no
9042 runpath_var='LD_RUN_PATH'
9043
9044 if test "$GCC" = yes; then
9045 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047 else
9048 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9049 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050 fi
9051 ;;
9052
9053 sysv5* | sco3.2v5* | sco5v6*)
9054 # Note: We can NOT use -z defs as we might desire, because we do not
9055 # link with -lc, and that would cause any symbols used from libc to
9056 # always be unresolved, which means just about no library would
9057 # ever link correctly. If we're not using GNU ld we use -z text
9058 # though, which does catch some bad symbols but isn't as heavy-handed
9059 # as -z defs.
9060 no_undefined_flag='${wl}-z,text'
9061 allow_undefined_flag='${wl}-z,nodefs'
9062 archive_cmds_need_lc=no
9063 hardcode_shlibpath_var=no
9064 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9065 hardcode_libdir_separator=':'
9066 link_all_deplibs=yes
9067 export_dynamic_flag_spec='${wl}-Bexport'
9068 runpath_var='LD_RUN_PATH'
9069
9070 if test "$GCC" = yes; then
9071 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9073 else
9074 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9075 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 fi
9077 ;;
9078
9079 uts4*)
9080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081 hardcode_libdir_flag_spec='-L$libdir'
9082 hardcode_shlibpath_var=no
9083 ;;
9084
9085 *)
9086 ld_shlibs=no
9087 ;;
9088 esac
9089
9090 if test x$host_vendor = xsni; then
9091 case $host in
9092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9093 export_dynamic_flag_spec='${wl}-Blargedynsym'
9094 ;;
9095 esac
9096 fi
9097 fi
9098
9099echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9100echo "${ECHO_T}$ld_shlibs" >&6
9101test "$ld_shlibs" = no && can_build_shared=no
9102
9103with_gnu_ld=$with_gnu_ld
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119#
9120# Do we need to explicitly link libc?
9121#
9122case "x$archive_cmds_need_lc" in
9123x|xyes)
9124 # Assume -lc should be added
9125 archive_cmds_need_lc=yes
9126
9127 if test "$enable_shared" = yes && test "$GCC" = yes; then
9128 case $archive_cmds in
9129 *'~'*)
9130 # FIXME: we may have to deal with multi-command sequences.
9131 ;;
9132 '$CC '*)
9133 # Test whether the compiler implicitly links with -lc since on some
9134 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9135 # to ld, don't add -lc before -lgcc.
9136 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9137echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9138 $RM conftest*
9139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9140
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142 (eval $ac_compile) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } 2>conftest.err; then
9146 soname=conftest
9147 lib=conftest
9148 libobjs=conftest.$ac_objext
9149 deplibs=
9150 wl=$lt_prog_compiler_wl
9151 pic_flag=$lt_prog_compiler_pic
9152 compiler_flags=-v
9153 linker_flags=-v
9154 verstring=
9155 output_objdir=.
9156 libname=conftest
9157 lt_save_allow_undefined_flag=$allow_undefined_flag
9158 allow_undefined_flag=
9159 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9160 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }
9164 then
9165 archive_cmds_need_lc=no
9166 else
9167 archive_cmds_need_lc=yes
9168 fi
9169 allow_undefined_flag=$lt_save_allow_undefined_flag
9170 else
9171 cat conftest.err 1>&5
9172 fi
9173 $RM conftest*
9174 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9175echo "${ECHO_T}$archive_cmds_need_lc" >&6
9176 ;;
9177 esac
9178 fi
9179 ;;
9180esac
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9339echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9340withGCC=$GCC
9341if test "$withGCC" = yes; then
9342 case $host_os in
9343 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9344 *) lt_awk_arg="/^libraries:/" ;;
9345 esac
9346 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9347 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9348 # if the path contains ";" then we assume it to be the separator
9349 # otherwise default to the standard path separator (i.e. ":") - it is
9350 # assumed that no part of a normal pathname contains ";" but that should
9351 # okay in the real world where ";" in dirpaths is itself problematic.
9352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9353 else
9354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9355 fi
9356 # Ok, now we have the path, separated by spaces, we can step through it
9357 # and add multilib dir if necessary.
9358 lt_tmp_lt_search_path_spec=
9359 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9360 for lt_sys_path in $lt_search_path_spec; do
9361 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9363 else
9364 test -d "$lt_sys_path" && \
9365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9366 fi
9367 done
9368 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9369BEGIN {RS=" "; FS="/|\n";} {
9370 lt_foo="";
9371 lt_count=0;
9372 for (lt_i = NF; lt_i > 0; lt_i--) {
9373 if ($lt_i != "" && $lt_i != ".") {
9374 if ($lt_i == "..") {
9375 lt_count++;
9376 } else {
9377 if (lt_count == 0) {
9378 lt_foo="/" $lt_i lt_foo;
9379 } else {
9380 lt_count--;
9381 }
9382 }
9383 }
9384 }
9385 if (lt_foo != "") { lt_freq[lt_foo]++; }
9386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9387}'`
9388 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9389else
9390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9391fi
9392library_names_spec=
9393libname_spec='lib$name'
9394soname_spec=
9395shrext_cmds=".so"
9396postinstall_cmds=
9397postuninstall_cmds=
9398finish_cmds=
9399finish_eval=
9400shlibpath_var=
9401shlibpath_overrides_runpath=unknown
9402version_type=none
9403dynamic_linker="$host_os ld.so"
9404sys_lib_dlsearch_path_spec="/lib /usr/lib"
9405need_lib_prefix=unknown
9406hardcode_into_libs=no
9407
9408# when you set need_version to no, make sure it does not cause -set_version
9409# flags to be left without arguments
9410need_version=unknown
9411
9412case $host_os in
9413aix3*)
9414 version_type=linux
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9416 shlibpath_var=LIBPATH
9417
9418 # AIX 3 has no versioning support, so we append a major version to the name.
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 ;;
9421
e81819a5 9422aix[4-9]*)
d7040cdb
SE
9423 version_type=linux
9424 need_lib_prefix=no
9425 need_version=no
9426 hardcode_into_libs=yes
9427 if test "$host_cpu" = ia64; then
9428 # AIX 5 supports IA64
9429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9430 shlibpath_var=LD_LIBRARY_PATH
9431 else
9432 # With GCC up to 2.95.x, collect2 would create an import file
9433 # for dependence libraries. The import file would start with
9434 # the line `#! .'. This would cause the generated library to
9435 # depend on `.', always an invalid library. This was fixed in
9436 # development snapshots of GCC prior to 3.0.
9437 case $host_os in
9438 aix4 | aix4.[01] | aix4.[01].*)
9439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9440 echo ' yes '
9441 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9442 :
9443 else
9444 can_build_shared=no
9445 fi
9446 ;;
9447 esac
9448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9449 # soname into executable. Probably we can add versioning support to
9450 # collect2, so additional links can be useful in future.
9451 if test "$aix_use_runtimelinking" = yes; then
9452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9453 # instead of lib<name>.a to let people know that these are not
9454 # typical AIX shared libraries.
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 else
9457 # We preserve .a as extension for shared libraries through AIX4.2
9458 # and later when we are not doing run time linking.
9459 library_names_spec='${libname}${release}.a $libname.a'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 fi
9462 shlibpath_var=LIBPATH
9463 fi
9464 ;;
9465
9466amigaos*)
9467 if test "$host_cpu" = m68k; then
9468 library_names_spec='$libname.ixlibrary $libname.a'
9469 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9470 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'
9471 else
9472 dynamic_linker=no
9473 fi
9474 ;;
9475
9476beos*)
9477 library_names_spec='${libname}${shared_ext}'
9478 dynamic_linker="$host_os ld.so"
9479 shlibpath_var=LIBRARY_PATH
9480 ;;
9481
9482bsdi[45]*)
9483 version_type=linux
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9491 # the default ld.so.conf also contains /usr/contrib/lib and
9492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9493 # libtool to hard-code these into programs
9494 ;;
9495
9496cygwin* | mingw* | pw32*)
9497 version_type=windows
9498 shrext_cmds=".dll"
9499 need_version=no
9500 need_lib_prefix=no
9501
9502 case $withGCC,$host_os in
9503 yes,cygwin* | yes,mingw* | yes,pw32*)
9504 library_names_spec='$libname.dll.a'
9505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9506 postinstall_cmds='base_file=`basename \${file}`~
9507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9508 dldir=$destdir/`dirname \$dlpath`~
9509 test -d \$dldir || mkdir -p \$dldir~
9510 $install_prog $dir/$dlname \$dldir/$dlname~
9511 chmod a+x \$dldir/$dlname~
9512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9514 fi'
9515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9516 dlpath=$dir/\$dldll~
9517 $RM \$dlpath'
9518 shlibpath_overrides_runpath=yes
9519
9520 case $host_os in
9521 cygwin*)
9522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9524 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9525 ;;
9526 mingw*)
9527 # MinGW DLLs use traditional 'lib' prefix
9528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9529 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9531 # It is most probably a Windows format PATH printed by
9532 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9533 # path with ; separators, and with drive letters. We can handle the
9534 # drive letters (cygwin fileutils understands them), so leave them,
9535 # especially as we might pass files found there to a mingw objdump,
9536 # which wouldn't understand a cygwinified path. Ahh.
9537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9538 else
9539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9540 fi
9541 ;;
9542 pw32*)
9543 # pw32 DLLs use 'pw' prefix rather than 'lib'
9544 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9545 ;;
9546 esac
9547 ;;
9548
9549 *)
9550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9551 ;;
9552 esac
9553 dynamic_linker='Win32 ld.exe'
9554 # FIXME: first we should search . and the directory the executable is in
9555 shlibpath_var=PATH
9556 ;;
9557
9558darwin* | rhapsody*)
9559 dynamic_linker="$host_os dyld"
9560 version_type=darwin
9561 need_lib_prefix=no
9562 need_version=no
9563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9564 soname_spec='${libname}${release}${major}$shared_ext'
9565 shlibpath_overrides_runpath=yes
9566 shlibpath_var=DYLD_LIBRARY_PATH
9567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9568
9569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9571 ;;
9572
9573dgux*)
9574 version_type=linux
9575 need_lib_prefix=no
9576 need_version=no
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 ;;
9581
9582freebsd1*)
9583 dynamic_linker=no
9584 ;;
9585
9586freebsd* | dragonfly*)
9587 # DragonFly does not have aout. When/if they implement a new
9588 # versioning mechanism, adjust this.
9589 if test -x /usr/bin/objformat; then
9590 objformat=`/usr/bin/objformat`
9591 else
9592 case $host_os in
9593 freebsd[123]*) objformat=aout ;;
9594 *) objformat=elf ;;
9595 esac
9596 fi
9597 version_type=freebsd-$objformat
9598 case $version_type in
9599 freebsd-elf*)
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9601 need_version=no
9602 need_lib_prefix=no
9603 ;;
9604 freebsd-*)
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9606 need_version=yes
9607 ;;
9608 esac
9609 shlibpath_var=LD_LIBRARY_PATH
9610 case $host_os in
9611 freebsd2*)
9612 shlibpath_overrides_runpath=yes
9613 ;;
9614 freebsd3.[01]* | freebsdelf3.[01]*)
9615 shlibpath_overrides_runpath=yes
9616 hardcode_into_libs=yes
9617 ;;
9618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9620 shlibpath_overrides_runpath=no
9621 hardcode_into_libs=yes
9622 ;;
9623 *) # from 4.6 on, and DragonFly
9624 shlibpath_overrides_runpath=yes
9625 hardcode_into_libs=yes
9626 ;;
9627 esac
9628 ;;
9629
9630gnu*)
9631 version_type=linux
9632 need_lib_prefix=no
9633 need_version=no
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9635 soname_spec='${libname}${release}${shared_ext}$major'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 hardcode_into_libs=yes
9638 ;;
9639
9640hpux9* | hpux10* | hpux11*)
9641 # Give a soname corresponding to the major version so that dld.sl refuses to
9642 # link against other versions.
9643 version_type=sunos
9644 need_lib_prefix=no
9645 need_version=no
9646 case $host_cpu in
9647 ia64*)
9648 shrext_cmds='.so'
9649 hardcode_into_libs=yes
9650 dynamic_linker="$host_os dld.so"
9651 shlibpath_var=LD_LIBRARY_PATH
9652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654 soname_spec='${libname}${release}${shared_ext}$major'
9655 if test "X$HPUX_IA64_MODE" = X32; then
9656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9657 else
9658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9659 fi
9660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9661 ;;
9662 hppa*64*)
9663 shrext_cmds='.sl'
9664 hardcode_into_libs=yes
9665 dynamic_linker="$host_os dld.sl"
9666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9672 ;;
9673 *)
9674 shrext_cmds='.sl'
9675 dynamic_linker="$host_os dld.sl"
9676 shlibpath_var=SHLIB_PATH
9677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 ;;
9681 esac
9682 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9683 postinstall_cmds='chmod 555 $lib'
9684 ;;
9685
9686interix[3-9]*)
9687 version_type=linux
9688 need_lib_prefix=no
9689 need_version=no
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9691 soname_spec='${libname}${release}${shared_ext}$major'
9692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 shlibpath_overrides_runpath=no
9695 hardcode_into_libs=yes
9696 ;;
9697
9698irix5* | irix6* | nonstopux*)
9699 case $host_os in
9700 nonstopux*) version_type=nonstopux ;;
9701 *)
9702 if test "$lt_cv_prog_gnu_ld" = yes; then
9703 version_type=linux
9704 else
9705 version_type=irix
9706 fi ;;
9707 esac
9708 need_lib_prefix=no
9709 need_version=no
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9712 case $host_os in
9713 irix5* | nonstopux*)
9714 libsuff= shlibsuff=
9715 ;;
9716 *)
9717 case $LD in # libtool.m4 will add one of these switches to LD
9718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9719 libsuff= shlibsuff= libmagic=32-bit;;
9720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9721 libsuff=32 shlibsuff=N32 libmagic=N32;;
9722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9723 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9724 *) libsuff= shlibsuff= libmagic=never-match;;
9725 esac
9726 ;;
9727 esac
9728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9729 shlibpath_overrides_runpath=no
9730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9732 hardcode_into_libs=yes
9733 ;;
9734
9735# No shared lib support for Linux oldld, aout, or coff.
9736linux*oldld* | linux*aout* | linux*coff*)
9737 dynamic_linker=no
9738 ;;
9739
9740# This must be Linux ELF.
9741linux* | k*bsd*-gnu)
9742 version_type=linux
9743 need_lib_prefix=no
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=no
9750 # Some binutils ld are patched to set DT_RUNPATH
9751 save_LDFLAGS=$LDFLAGS
9752 save_libdir=$libdir
9753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9755 cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761
9762int
9763main ()
9764{
9765
9766 ;
9767 return 0;
9768}
9769_ACEOF
9770rm -f conftest.$ac_objext conftest$ac_exeext
9771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
7357c5b6
AM
9779 { ac_try='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
d7040cdb
SE
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest$ac_exeext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9793 shlibpath_overrides_runpath=yes
9794fi
9795
9796else
9797 echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
9800fi
9801rm -f conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LDFLAGS=$save_LDFLAGS
9804 libdir=$save_libdir
9805
9806 # This implies no fast_install, which is unacceptable.
9807 # Some rework will be needed to allow for fast_install
9808 # before this can be enabled.
9809 hardcode_into_libs=yes
9810
9811 # Append ld.so.conf contents to the search path
9812 if test -f /etc/ld.so.conf; then
9813 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9814 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9815 fi
9816
9817 # We used to test for /lib/ld.so.1 and disable shared libraries on
9818 # powerpc, because MkLinux only supported shared libraries with the
9819 # GNU dynamic linker. Since this was broken with cross compilers,
9820 # most powerpc-linux boxes support dynamic linking these days and
9821 # people can always --disable-shared, the test was removed, and we
9822 # assume the GNU/Linux dynamic linker is in use.
9823 dynamic_linker='GNU/Linux ld.so'
9824 ;;
9825
9826netbsd*)
9827 version_type=sunos
9828 need_lib_prefix=no
9829 need_version=no
9830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9833 dynamic_linker='NetBSD (a.out) ld.so'
9834 else
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 dynamic_linker='NetBSD ld.elf_so'
9838 fi
9839 shlibpath_var=LD_LIBRARY_PATH
9840 shlibpath_overrides_runpath=yes
9841 hardcode_into_libs=yes
9842 ;;
9843
9844newsos6)
9845 version_type=linux
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9849 ;;
9850
9851*nto* | *qnx*)
9852 version_type=qnx
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=no
9859 hardcode_into_libs=yes
9860 dynamic_linker='ldqnx.so'
9861 ;;
9862
9863openbsd*)
9864 version_type=sunos
9865 sys_lib_dlsearch_path_spec="/usr/lib"
9866 need_lib_prefix=no
9867 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9868 case $host_os in
9869 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9870 *) need_version=no ;;
9871 esac
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9874 shlibpath_var=LD_LIBRARY_PATH
9875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9876 case $host_os in
9877 openbsd2.[89] | openbsd2.[89].*)
9878 shlibpath_overrides_runpath=no
9879 ;;
9880 *)
9881 shlibpath_overrides_runpath=yes
9882 ;;
9883 esac
9884 else
9885 shlibpath_overrides_runpath=yes
9886 fi
9887 ;;
9888
9889os2*)
9890 libname_spec='$name'
9891 shrext_cmds=".dll"
9892 need_lib_prefix=no
9893 library_names_spec='$libname${shared_ext} $libname.a'
9894 dynamic_linker='OS/2 ld.exe'
9895 shlibpath_var=LIBPATH
9896 ;;
9897
9898osf3* | osf4* | osf5*)
9899 version_type=osf
9900 need_lib_prefix=no
9901 need_version=no
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9906 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9907 ;;
9908
9909rdos*)
9910 dynamic_linker=no
9911 ;;
9912
9913solaris*)
9914 version_type=linux
9915 need_lib_prefix=no
9916 need_version=no
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=yes
9921 hardcode_into_libs=yes
9922 # ldd complains unless libraries are executable
9923 postinstall_cmds='chmod +x $lib'
9924 ;;
9925
9926sunos4*)
9927 version_type=sunos
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 shlibpath_overrides_runpath=yes
9932 if test "$with_gnu_ld" = yes; then
9933 need_lib_prefix=no
9934 fi
9935 need_version=yes
9936 ;;
9937
9938sysv4 | sysv4.3*)
9939 version_type=linux
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 case $host_vendor in
9944 sni)
9945 shlibpath_overrides_runpath=no
9946 need_lib_prefix=no
9947 runpath_var=LD_RUN_PATH
9948 ;;
9949 siemens)
9950 need_lib_prefix=no
9951 ;;
9952 motorola)
9953 need_lib_prefix=no
9954 need_version=no
9955 shlibpath_overrides_runpath=no
9956 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9957 ;;
9958 esac
9959 ;;
9960
9961sysv4*MP*)
9962 if test -d /usr/nec ;then
9963 version_type=linux
9964 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9965 soname_spec='$libname${shared_ext}.$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 fi
9968 ;;
9969
9970sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9971 version_type=freebsd-elf
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 hardcode_into_libs=yes
9979 if test "$with_gnu_ld" = yes; then
9980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9981 else
9982 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9983 case $host_os in
9984 sco3.2v5*)
9985 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9986 ;;
9987 esac
9988 fi
9989 sys_lib_dlsearch_path_spec='/usr/lib'
9990 ;;
9991
9992tpf*)
9993 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9994 version_type=linux
9995 need_lib_prefix=no
9996 need_version=no
9997 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 shlibpath_var=LD_LIBRARY_PATH
9999 shlibpath_overrides_runpath=no
10000 hardcode_into_libs=yes
10001 ;;
10002
10003uts4*)
10004 version_type=linux
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 ;;
10009
10010*)
10011 dynamic_linker=no
10012 ;;
10013esac
10014echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10015echo "${ECHO_T}$dynamic_linker" >&6
10016test "$dynamic_linker" = no && can_build_shared=no
10017
10018variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10019if test "$GCC" = yes; then
10020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10021fi
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10110echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10111hardcode_action=
10112if test -n "$hardcode_libdir_flag_spec" ||
10113 test -n "$runpath_var" ||
10114 test "X$hardcode_automatic" = "Xyes" ; then
10115
10116 # We can hardcode non-existent directories.
10117 if test "$hardcode_direct" != no &&
10118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10119 # have to relink, otherwise we might link with an installed library
10120 # when we should be linking with a yet-to-be-installed one
10121 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10122 test "$hardcode_minus_L" != no; then
10123 # Linking always hardcodes the temporary library directory.
10124 hardcode_action=relink
10125 else
10126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10127 hardcode_action=immediate
10128 fi
10129else
10130 # We cannot hardcode anything, or else we can only hardcode existing
10131 # directories.
10132 hardcode_action=unsupported
10133fi
10134echo "$as_me:$LINENO: result: $hardcode_action" >&5
10135echo "${ECHO_T}$hardcode_action" >&6
10136
10137if test "$hardcode_action" = relink ||
10138 test "$inherit_rpath" = yes; then
10139 # Fast installation is not supported
10140 enable_fast_install=no
10141elif test "$shlibpath_overrides_runpath" = yes ||
10142 test "$enable_shared" = no; then
10143 # Fast installation is not necessary
10144 enable_fast_install=needless
10145fi
10146
10147
10148
10149
10150
10151
10152 if test "x$enable_dlopen" != xyes; then
10153 enable_dlopen=unknown
10154 enable_dlopen_self=unknown
10155 enable_dlopen_self_static=unknown
10156else
10157 lt_cv_dlopen=no
10158 lt_cv_dlopen_libs=
10159
10160 case $host_os in
10161 beos*)
10162 lt_cv_dlopen="load_add_on"
10163 lt_cv_dlopen_libs=
10164 lt_cv_dlopen_self=yes
10165 ;;
10166
10167 mingw* | pw32*)
10168 lt_cv_dlopen="LoadLibrary"
10169 lt_cv_dlopen_libs=
10170 ;;
10171
10172 cygwin*)
10173 lt_cv_dlopen="dlopen"
10174 lt_cv_dlopen_libs=
10175 ;;
10176
10177 darwin*)
10178 # if libdl is installed we need to link against it
10179 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10180echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10181if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 ac_check_lib_save_LIBS=$LIBS
10185LIBS="-ldl $LIBS"
10186cat >conftest.$ac_ext <<_ACEOF
10187/* confdefs.h. */
10188_ACEOF
10189cat confdefs.h >>conftest.$ac_ext
10190cat >>conftest.$ac_ext <<_ACEOF
10191/* end confdefs.h. */
10192
10193/* Override any gcc2 internal prototype to avoid an error. */
10194#ifdef __cplusplus
10195extern "C"
10196#endif
10197/* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199char dlopen ();
10200int
10201main ()
10202{
10203dlopen ();
10204 ;
10205 return 0;
10206}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
7357c5b6
AM
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
d7040cdb
SE
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_lib_dl_dlopen=yes
10231else
10232 echo "$as_me: failed program was:" >&5
10233sed 's/^/| /' conftest.$ac_ext >&5
10234
10235ac_cv_lib_dl_dlopen=no
10236fi
10237rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239LIBS=$ac_check_lib_save_LIBS
10240fi
10241echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10242echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10243if test $ac_cv_lib_dl_dlopen = yes; then
10244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10245else
10246
10247 lt_cv_dlopen="dyld"
10248 lt_cv_dlopen_libs=
10249 lt_cv_dlopen_self=yes
10250
10251fi
10252
10253 ;;
10254
10255 *)
10256 echo "$as_me:$LINENO: checking for shl_load" >&5
10257echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10258if test "${ac_cv_func_shl_load+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261 cat >conftest.$ac_ext <<_ACEOF
10262/* confdefs.h. */
10263_ACEOF
10264cat confdefs.h >>conftest.$ac_ext
10265cat >>conftest.$ac_ext <<_ACEOF
10266/* end confdefs.h. */
10267/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10269#define shl_load innocuous_shl_load
10270
10271/* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char shl_load (); below.
10273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274 <limits.h> exists even on freestanding compilers. */
10275
10276#ifdef __STDC__
10277# include <limits.h>
10278#else
10279# include <assert.h>
10280#endif
10281
10282#undef shl_load
10283
10284/* Override any gcc2 internal prototype to avoid an error. */
10285#ifdef __cplusplus
10286extern "C"
10287{
10288#endif
10289/* We use char because int might match the return type of a gcc2
10290 builtin and then its argument prototype would still apply. */
10291char shl_load ();
10292/* The GNU C library defines this for functions which it implements
10293 to always fail with ENOSYS. Some functions are actually named
10294 something starting with __ and the normal name is an alias. */
10295#if defined (__stub_shl_load) || defined (__stub___shl_load)
10296choke me
10297#else
10298char (*f) () = shl_load;
10299#endif
10300#ifdef __cplusplus
10301}
10302#endif
10303
10304int
10305main ()
10306{
10307return f != shl_load;
10308 ;
10309 return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
10313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } &&
7357c5b6
AM
10321 { ac_try='test -z "$ac_c_werror_flag"
10322 || test ! -s conftest.err'
d7040cdb
SE
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_func_shl_load=yes
10335else
10336 echo "$as_me: failed program was:" >&5
10337sed 's/^/| /' conftest.$ac_ext >&5
10338
10339ac_cv_func_shl_load=no
10340fi
10341rm -f conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343fi
10344echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10345echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10346if test $ac_cv_func_shl_load = yes; then
10347 lt_cv_dlopen="shl_load"
10348else
10349 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10350echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10351if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
10354 ac_check_lib_save_LIBS=$LIBS
10355LIBS="-ldld $LIBS"
10356cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h. */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h. */
10362
10363/* Override any gcc2 internal prototype to avoid an error. */
10364#ifdef __cplusplus
10365extern "C"
10366#endif
10367/* We use char because int might match the return type of a gcc2
10368 builtin and then its argument prototype would still apply. */
10369char shl_load ();
10370int
10371main ()
10372{
10373shl_load ();
10374 ;
10375 return 0;
10376}
10377_ACEOF
10378rm -f conftest.$ac_objext conftest$ac_exeext
10379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
7357c5b6
AM
10387 { ac_try='test -z "$ac_c_werror_flag"
10388 || test ! -s conftest.err'
d7040cdb
SE
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_cv_lib_dld_shl_load=yes
10401else
10402 echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405ac_cv_lib_dld_shl_load=no
10406fi
10407rm -f conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409LIBS=$ac_check_lib_save_LIBS
10410fi
10411echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10412echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10413if test $ac_cv_lib_dld_shl_load = yes; then
10414 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10415else
10416 echo "$as_me:$LINENO: checking for dlopen" >&5
10417echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10418if test "${ac_cv_func_dlopen+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10420else
10421 cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10429#define dlopen innocuous_dlopen
10430
10431/* System header to define __stub macros and hopefully few prototypes,
10432 which can conflict with char dlopen (); below.
10433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10434 <limits.h> exists even on freestanding compilers. */
10435
10436#ifdef __STDC__
10437# include <limits.h>
10438#else
10439# include <assert.h>
10440#endif
10441
10442#undef dlopen
10443
10444/* Override any gcc2 internal prototype to avoid an error. */
10445#ifdef __cplusplus
10446extern "C"
10447{
10448#endif
10449/* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451char dlopen ();
10452/* The GNU C library defines this for functions which it implements
10453 to always fail with ENOSYS. Some functions are actually named
10454 something starting with __ and the normal name is an alias. */
10455#if defined (__stub_dlopen) || defined (__stub___dlopen)
10456choke me
10457#else
10458char (*f) () = dlopen;
10459#endif
10460#ifdef __cplusplus
10461}
10462#endif
10463
10464int
10465main ()
10466{
10467return f != dlopen;
10468 ;
10469 return 0;
10470}
10471_ACEOF
10472rm -f conftest.$ac_objext conftest$ac_exeext
10473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
7357c5b6
AM
10481 { ac_try='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
d7040cdb
SE
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10491 ac_status=$?
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_func_dlopen=yes
10495else
10496 echo "$as_me: failed program was:" >&5
10497sed 's/^/| /' conftest.$ac_ext >&5
10498
10499ac_cv_func_dlopen=no
10500fi
10501rm -f conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503fi
10504echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10505echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10506if test $ac_cv_func_dlopen = yes; then
10507 lt_cv_dlopen="dlopen"
10508else
10509 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10510echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10511if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514 ac_check_lib_save_LIBS=$LIBS
10515LIBS="-ldl $LIBS"
10516cat >conftest.$ac_ext <<_ACEOF
10517/* confdefs.h. */
10518_ACEOF
10519cat confdefs.h >>conftest.$ac_ext
10520cat >>conftest.$ac_ext <<_ACEOF
10521/* end confdefs.h. */
10522
10523/* Override any gcc2 internal prototype to avoid an error. */
10524#ifdef __cplusplus
10525extern "C"
10526#endif
10527/* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10529char dlopen ();
10530int
10531main ()
10532{
10533dlopen ();
10534 ;
10535 return 0;
10536}
10537_ACEOF
10538rm -f conftest.$ac_objext conftest$ac_exeext
10539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10540 (eval $ac_link) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
7357c5b6
AM
10547 { ac_try='test -z "$ac_c_werror_flag"
10548 || test ! -s conftest.err'
d7040cdb
SE
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_lib_dl_dlopen=yes
10561else
10562 echo "$as_me: failed program was:" >&5
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
10565ac_cv_lib_dl_dlopen=no
10566fi
10567rm -f conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569LIBS=$ac_check_lib_save_LIBS
10570fi
10571echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10572echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10573if test $ac_cv_lib_dl_dlopen = yes; then
10574 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10575else
10576 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10577echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10578if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581 ac_check_lib_save_LIBS=$LIBS
10582LIBS="-lsvld $LIBS"
10583cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h. */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h. */
10589
10590/* Override any gcc2 internal prototype to avoid an error. */
10591#ifdef __cplusplus
10592extern "C"
10593#endif
10594/* We use char because int might match the return type of a gcc2
10595 builtin and then its argument prototype would still apply. */
10596char dlopen ();
10597int
10598main ()
10599{
10600dlopen ();
10601 ;
10602 return 0;
10603}
10604_ACEOF
10605rm -f conftest.$ac_objext conftest$ac_exeext
10606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10607 (eval $ac_link) 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
7357c5b6
AM
10614 { ac_try='test -z "$ac_c_werror_flag"
10615 || test ! -s conftest.err'
d7040cdb
SE
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; } &&
10621 { ac_try='test -s conftest$ac_exeext'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10624 ac_status=$?
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }; then
10627 ac_cv_lib_svld_dlopen=yes
10628else
10629 echo "$as_me: failed program was:" >&5
10630sed 's/^/| /' conftest.$ac_ext >&5
10631
10632ac_cv_lib_svld_dlopen=no
10633fi
10634rm -f conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext conftest.$ac_ext
10636LIBS=$ac_check_lib_save_LIBS
10637fi
10638echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10639echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10640if test $ac_cv_lib_svld_dlopen = yes; then
10641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10642else
10643 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10644echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10645if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647else
10648 ac_check_lib_save_LIBS=$LIBS
10649LIBS="-ldld $LIBS"
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h. */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h. */
10656
10657/* Override any gcc2 internal prototype to avoid an error. */
10658#ifdef __cplusplus
10659extern "C"
10660#endif
10661/* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663char dld_link ();
10664int
10665main ()
10666{
10667dld_link ();
10668 ;
10669 return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext conftest$ac_exeext
10673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674 (eval $ac_link) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } &&
7357c5b6
AM
10681 { ac_try='test -z "$ac_c_werror_flag"
10682 || test ! -s conftest.err'
d7040cdb
SE
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_lib_dld_dld_link=yes
10695else
10696 echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699ac_cv_lib_dld_dld_link=no
10700fi
10701rm -f conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703LIBS=$ac_check_lib_save_LIBS
10704fi
10705echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10706echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10707if test $ac_cv_lib_dld_dld_link = yes; then
10708 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10709fi
10710
10711
10712fi
10713
10714
10715fi
10716
10717
10718fi
10719
10720
10721fi
10722
10723
10724fi
10725
10726 ;;
10727 esac
10728
10729 if test "x$lt_cv_dlopen" != xno; then
10730 enable_dlopen=yes
20e95c23 10731 else
d7040cdb 10732 enable_dlopen=no
252b5132 10733 fi
5464f5a1 10734
d7040cdb
SE
10735 case $lt_cv_dlopen in
10736 dlopen)
10737 save_CPPFLAGS="$CPPFLAGS"
10738 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10739
10740 save_LDFLAGS="$LDFLAGS"
10741 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10742
10743 save_LIBS="$LIBS"
10744 LIBS="$lt_cv_dlopen_libs $LIBS"
10745
10746 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10747echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10748if test "${lt_cv_dlopen_self+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10750else
d7040cdb
SE
10751 if test "$cross_compiling" = yes; then :
10752 lt_cv_dlopen_self=cross
10753else
10754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10755 lt_status=$lt_dlunknown
10756 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10757#line 10392 "configure"
d7040cdb
SE
10758#include "confdefs.h"
10759
10760#if HAVE_DLFCN_H
10761#include <dlfcn.h>
10762#endif
10763
10764#include <stdio.h>
10765
10766#ifdef RTLD_GLOBAL
10767# define LT_DLGLOBAL RTLD_GLOBAL
10768#else
10769# ifdef DL_GLOBAL
10770# define LT_DLGLOBAL DL_GLOBAL
10771# else
10772# define LT_DLGLOBAL 0
10773# endif
10774#endif
10775
10776/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10777 find out it does not work in some platform. */
10778#ifndef LT_DLLAZY_OR_NOW
10779# ifdef RTLD_LAZY
10780# define LT_DLLAZY_OR_NOW RTLD_LAZY
10781# else
10782# ifdef DL_LAZY
10783# define LT_DLLAZY_OR_NOW DL_LAZY
10784# else
10785# ifdef RTLD_NOW
10786# define LT_DLLAZY_OR_NOW RTLD_NOW
10787# else
10788# ifdef DL_NOW
10789# define LT_DLLAZY_OR_NOW DL_NOW
10790# else
10791# define LT_DLLAZY_OR_NOW 0
10792# endif
10793# endif
10794# endif
10795# endif
10796#endif
10797
10798#ifdef __cplusplus
10799extern "C" void exit (int);
10800#endif
10801
10802void fnord() { int i=42;}
10803int main ()
10804{
10805 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10806 int status = $lt_dlunknown;
10807
10808 if (self)
10809 {
10810 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10811 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10812 /* dlclose (self); */
10813 }
10814 else
10815 puts (dlerror ());
10816
10817 exit (status);
10818}
10819_LT_EOF
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821 (eval $ac_link) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10825 (./conftest; exit; ) >&5 2>/dev/null
10826 lt_status=$?
10827 case x$lt_status in
10828 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10829 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10830 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10831 esac
10832 else :
10833 # compilation failed
10834 lt_cv_dlopen_self=no
10835 fi
252b5132 10836fi
d7040cdb 10837rm -fr conftest*
20e95c23 10838
d7040cdb
SE
10839
10840fi
10841echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10842echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10843
10844 if test "x$lt_cv_dlopen_self" = xyes; then
10845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10846 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10847echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10848if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
d7040cdb
SE
10851 if test "$cross_compiling" = yes; then :
10852 lt_cv_dlopen_self_static=cross
10853else
10854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10855 lt_status=$lt_dlunknown
10856 cat > conftest.$ac_ext <<_LT_EOF
7357c5b6 10857#line 10492 "configure"
d7040cdb
SE
10858#include "confdefs.h"
10859
10860#if HAVE_DLFCN_H
10861#include <dlfcn.h>
10862#endif
10863
10864#include <stdio.h>
10865
10866#ifdef RTLD_GLOBAL
10867# define LT_DLGLOBAL RTLD_GLOBAL
10868#else
10869# ifdef DL_GLOBAL
10870# define LT_DLGLOBAL DL_GLOBAL
10871# else
10872# define LT_DLGLOBAL 0
10873# endif
10874#endif
10875
10876/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10877 find out it does not work in some platform. */
10878#ifndef LT_DLLAZY_OR_NOW
10879# ifdef RTLD_LAZY
10880# define LT_DLLAZY_OR_NOW RTLD_LAZY
10881# else
10882# ifdef DL_LAZY
10883# define LT_DLLAZY_OR_NOW DL_LAZY
10884# else
10885# ifdef RTLD_NOW
10886# define LT_DLLAZY_OR_NOW RTLD_NOW
10887# else
10888# ifdef DL_NOW
10889# define LT_DLLAZY_OR_NOW DL_NOW
10890# else
10891# define LT_DLLAZY_OR_NOW 0
10892# endif
10893# endif
10894# endif
10895# endif
10896#endif
10897
10898#ifdef __cplusplus
10899extern "C" void exit (int);
10900#endif
10901
10902void fnord() { int i=42;}
10903int main ()
10904{
10905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10906 int status = $lt_dlunknown;
10907
10908 if (self)
10909 {
10910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10911 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10912 /* dlclose (self); */
10913 }
10914 else
10915 puts (dlerror ());
10916
10917 exit (status);
10918}
10919_LT_EOF
10920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921 (eval $ac_link) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10925 (./conftest; exit; ) >&5 2>/dev/null
10926 lt_status=$?
10927 case x$lt_status in
10928 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10929 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10930 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10931 esac
10932 else :
10933 # compilation failed
10934 lt_cv_dlopen_self_static=no
10935 fi
10936fi
10937rm -fr conftest*
10938
10939
10940fi
10941echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10942echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10943 fi
10944
10945 CPPFLAGS="$save_CPPFLAGS"
10946 LDFLAGS="$save_LDFLAGS"
10947 LIBS="$save_LIBS"
10948 ;;
10949 esac
10950
10951 case $lt_cv_dlopen_self in
10952 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10953 *) enable_dlopen_self=unknown ;;
10954 esac
10955
10956 case $lt_cv_dlopen_self_static in
10957 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10958 *) enable_dlopen_self_static=unknown ;;
10959 esac
10960fi
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978striplib=
10979old_striplib=
10980echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10981echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10982if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10983 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10984 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10985 echo "$as_me:$LINENO: result: yes" >&5
10986echo "${ECHO_T}yes" >&6
10987else
10988# FIXME - insert some real tests, host_os isn't really good enough
10989 case $host_os in
10990 darwin*)
10991 if test -n "$STRIP" ; then
10992 striplib="$STRIP -x"
10993 old_striplib="$STRIP -S"
10994 echo "$as_me:$LINENO: result: yes" >&5
10995echo "${ECHO_T}yes" >&6
10996 else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999 fi
20e95c23
DJ
11000 ;;
11001 *)
d7040cdb
SE
11002 echo "$as_me:$LINENO: result: no" >&5
11003echo "${ECHO_T}no" >&6
11004 ;;
11005 esac
11006fi
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 # Report which library types will actually be built
11020 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11021echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11022 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11023echo "${ECHO_T}$can_build_shared" >&6
11024
11025 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11026echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11027 test "$can_build_shared" = "no" && enable_shared=no
11028
11029 # On AIX, shared libraries and static libraries use the same namespace, and
11030 # are all built from PIC.
11031 case $host_os in
11032 aix3*)
11033 test "$enable_shared" = yes && enable_static=no
11034 if test -n "$RANLIB"; then
11035 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11036 postinstall_cmds='$RANLIB $lib'
11037 fi
11038 ;;
11039
e81819a5 11040 aix[4-9]*)
d7040cdb
SE
11041 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11042 test "$enable_shared" = yes && enable_static=no
11043 fi
20e95c23 11044 ;;
d7040cdb
SE
11045 esac
11046 echo "$as_me:$LINENO: result: $enable_shared" >&5
11047echo "${ECHO_T}$enable_shared" >&6
11048
11049 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11050echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11051 # Make sure either enable_shared or enable_static is yes.
11052 test "$enable_shared" = yes || enable_static=yes
11053 echo "$as_me:$LINENO: result: $enable_static" >&5
11054echo "${ECHO_T}$enable_static" >&6
11055
11056
11057
11058
11059fi
11060ac_ext=c
11061ac_cpp='$CPP $CPPFLAGS'
11062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064ac_compiler_gnu=$ac_cv_c_compiler_gnu
11065
11066CC="$lt_save_CC"
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080 ac_config_commands="$ac_config_commands libtool"
11081
11082
11083
11084
11085# Only expand once:
11086
11087
11088
11089# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11090if test "${enable_64_bit_bfd+set}" = set; then
11091 enableval="$enable_64_bit_bfd"
11092 case "${enableval}" in
11093 yes) want64=true ;;
11094 no) want64=false ;;
11095 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11096echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11097 { (exit 1); exit 1; }; } ;;
11098esac
11099else
11100 want64=false
504b7d20
NC
11101fi;
11102# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
11103if test "${enable_targets+set}" = set; then
11104 enableval="$enable_targets"
11105 case "${enableval}" in
11106 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11107echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11108 { (exit 1); exit 1; }; }
11109 ;;
11110 no) enable_targets= ;;
11111 *) enable_targets=$enableval ;;
11112esac
504b7d20
NC
11113fi;
11114# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
11115if test "${enable_commonbfdlib+set}" = set; then
11116 enableval="$enable_commonbfdlib"
11117 case "${enableval}" in
11118 yes) commonbfdlib=true ;;
11119 no) commonbfdlib=false ;;
11120 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11121echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11122 { (exit 1); exit 1; }; } ;;
11123esac
11124fi;
504b7d20 11125
d7040cdb
SE
11126# Check whether --with-mmap or --without-mmap was given.
11127if test "${with_mmap+set}" = set; then
11128 withval="$with_mmap"
11129 case "${withval}" in
11130 yes) want_mmap=true ;;
11131 no) want_mmap=false ;;
11132 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11133echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11134 { (exit 1); exit 1; }; } ;;
20e95c23 11135esac
252b5132 11136else
d7040cdb
SE
11137 want_mmap=false
11138fi;
11139# Check whether --enable-secureplt or --disable-secureplt was given.
11140if test "${enable_secureplt+set}" = set; then
11141 enableval="$enable_secureplt"
11142 case "${enableval}" in
11143 yes) use_secureplt=true ;;
11144 no) use_secureplt=false ;;
11145 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11146echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11147 { (exit 1); exit 1; }; } ;;
11148esac
252b5132 11149else
d7040cdb
SE
11150 use_secureplt=false
11151fi; if test $use_secureplt = true; then
11152
11153cat >>confdefs.h <<\_ACEOF
11154#define USE_SECUREPLT 1
11155_ACEOF
5464f5a1 11156
252b5132 11157fi
20e95c23 11158
0d4a1476
AS
11159DEBUGDIR=${libdir}/debug
11160
0d4a1476
AS
11161# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11162if test "${with_separate_debug_dir+set}" = set; then
11163 withval="$with_separate_debug_dir"
11164 DEBUGDIR="${withval}"
11165fi;
11166
11167
504b7d20
NC
11168# Check to see if we should allow the generation of
11169# symbols with the ELF standard's STT_COMMON type.
11170# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11171if test "${enable_elf_stt_common+set}" = set; then
11172 enableval="$enable_elf_stt_common"
11173 case "${enableval}" in
11174 yes) want_elf_stt_common=true ;;
11175 no) want_elf_stt_common=false ;;
11176 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11177echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11178 { (exit 1); exit 1; }; } ;;
11179 esac
11180else
11181 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11182# test whether the loader supports the STT_COMMON type, but that would
11183# mean that built binaries could not be exported to older systems where
11184# the loader does not support it. So by default we always choose to
11185# disable this feature.
504b7d20 11186 want_elf_stt_common=false
504b7d20
NC
11187fi; if test $want_elf_stt_common = true; then
11188
11189cat >>confdefs.h <<\_ACEOF
11190#define USE_STT_COMMON 1
11191_ACEOF
11192
11193fi
11194
11195
d7040cdb 11196
d7040cdb
SE
11197# Check whether --with-pkgversion or --without-pkgversion was given.
11198if test "${with_pkgversion+set}" = set; then
11199 withval="$with_pkgversion"
11200 case "$withval" in
11201 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11202echo "$as_me: error: package version not specified" >&2;}
11203 { (exit 1); exit 1; }; } ;;
11204 no) PKGVERSION= ;;
11205 *) PKGVERSION="($withval) " ;;
11206 esac
252b5132 11207else
d7040cdb 11208 PKGVERSION="(GNU Binutils) "
252b5132 11209
d7040cdb 11210fi;
20e95c23
DJ
11211
11212
5464f5a1 11213
20e95c23 11214
d7040cdb
SE
11215# Check whether --with-bugurl or --without-bugurl was given.
11216if test "${with_bugurl+set}" = set; then
11217 withval="$with_bugurl"
11218 case "$withval" in
11219 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11220echo "$as_me: error: bug URL not specified" >&2;}
11221 { (exit 1); exit 1; }; } ;;
11222 no) BUGURL=
11223 ;;
11224 *) BUGURL="$withval"
11225 ;;
11226 esac
252b5132 11227else
d7040cdb
SE
11228 BUGURL="http://www.sourceware.org/bugzilla/"
11229
11230fi;
11231 case ${BUGURL} in
11232 "")
11233 REPORT_BUGS_TO=
11234 REPORT_BUGS_TEXI=
20e95c23
DJ
11235 ;;
11236 *)
d7040cdb
SE
11237 REPORT_BUGS_TO="<$BUGURL>"
11238 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11239 ;;
d7040cdb
SE
11240 esac;
11241
11242
11243
11244
11245
11246GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11247
11248# Check whether --enable-werror or --disable-werror was given.
11249if test "${enable_werror+set}" = set; then
11250 enableval="$enable_werror"
11251 case "${enableval}" in
11252 yes | y) ERROR_ON_WARNING="yes" ;;
11253 no | n) ERROR_ON_WARNING="no" ;;
11254 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11255echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11256 { (exit 1); exit 1; }; } ;;
11257 esac
11258fi;
11259
bb8541b9
L
11260# Enable -Wno-format by default when using gcc on mingw
11261case "${host}" in
11262 *-*-mingw32*)
11263 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11264 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11265 fi
11266 ;;
11267 *) ;;
11268esac
11269
d7040cdb
SE
11270# Enable -Werror by default when using gcc
11271if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11272 ERROR_ON_WARNING=yes
11273fi
11274
11275NO_WERROR=
11276if test "${ERROR_ON_WARNING}" = yes ; then
11277 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11278 NO_WERROR="-Wno-error"
11279fi
11280
11281if test "${GCC}" = yes ; then
11282 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11283fi
11284
11285# Check whether --enable-build-warnings or --disable-build-warnings was given.
11286if test "${enable_build_warnings+set}" = set; then
11287 enableval="$enable_build_warnings"
11288 case "${enableval}" in
11289 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11290 no) if test "${GCC}" = yes ; then
11291 WARN_CFLAGS="-w"
11292 fi;;
11293 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11294 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11295 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11296 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11297 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 11298esac
d7040cdb
SE
11299fi;
11300
11301if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11302 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 11303fi
d7040cdb
SE
11304
11305
11306
11307
11308
11309 ac_config_headers="$ac_config_headers config.h:config.in"
11310
11311
11312if test -z "$target" ; then
11313 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11314echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11315 { (exit 1); exit 1; }; }
20e95c23
DJ
11316fi
11317
d7040cdb
SE
11318echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11319echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11320 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11321if test "${enable_maintainer_mode+set}" = set; then
11322 enableval="$enable_maintainer_mode"
11323 USE_MAINTAINER_MODE=$enableval
11324else
11325 USE_MAINTAINER_MODE=no
11326fi;
11327 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11328echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
11329
11330
d7040cdb
SE
11331if test $USE_MAINTAINER_MODE = yes; then
11332 MAINTAINER_MODE_TRUE=
11333 MAINTAINER_MODE_FALSE='#'
11334else
11335 MAINTAINER_MODE_TRUE='#'
11336 MAINTAINER_MODE_FALSE=
6be7c12c 11337fi
5464f5a1 11338
d7040cdb
SE
11339 MAINT=$MAINTAINER_MODE_TRUE
11340
11341
11342
11343
11344if false; then
11345 GENINSRC_NEVER_TRUE=
11346 GENINSRC_NEVER_FALSE='#'
20e95c23 11347else
d7040cdb
SE
11348 GENINSRC_NEVER_TRUE='#'
11349 GENINSRC_NEVER_FALSE=
5464f5a1 11350fi
5464f5a1 11351
d7040cdb
SE
11352 case ${build_alias} in
11353 "") build_noncanonical=${build} ;;
11354 *) build_noncanonical=${build_alias} ;;
20e95c23 11355esac
d7040cdb
SE
11356
11357 case ${host_alias} in
11358 "") host_noncanonical=${build_noncanonical} ;;
11359 *) host_noncanonical=${host_alias} ;;
11360esac
11361
11362 case ${target_alias} in
11363 "") target_noncanonical=${host_noncanonical} ;;
11364 *) target_noncanonical=${target_alias} ;;
11365esac
11366
11367echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11368echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11369 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11370if test "${enable_install_libbfd+set}" = set; then
11371 enableval="$enable_install_libbfd"
11372 install_libbfd_p=$enableval
252b5132 11373else
d7040cdb
SE
11374 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11375 install_libbfd_p=yes
11376 else
11377 install_libbfd_p=no
11378 fi
11379fi;
11380 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11381echo "${ECHO_T}$install_libbfd_p" >&6
11382
11383
11384if test $install_libbfd_p = yes; then
11385 INSTALL_LIBBFD_TRUE=
11386 INSTALL_LIBBFD_FALSE='#'
11387else
11388 INSTALL_LIBBFD_TRUE='#'
11389 INSTALL_LIBBFD_FALSE=
5464f5a1 11390fi
5464f5a1 11391
d7040cdb 11392 # Need _noncanonical variables for this.
5464f5a1 11393
5464f5a1 11394
d7040cdb
SE
11395
11396
11397 # libbfd.a is a host library containing target dependent code
11398 bfdlibdir='$(libdir)'
11399 bfdincludedir='$(includedir)'
11400 if test "${host}" != "${target}"; then
11401 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11402 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 11403 fi
6be7c12c 11404
5464f5a1 11405
5464f5a1
NN
11406
11407
5464f5a1 11408
ac48eca1 11409
d7040cdb
SE
11410host64=false
11411target64=false
11412bfd_default_target_size=32
252b5132 11413
d7040cdb 11414# host stuff:
20e95c23 11415
041a1845 11416ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
11417# If we haven't got the data from the intl directory,
11418# assume NLS is disabled.
11419USE_NLS=no
11420LIBINTL=
11421LIBINTL_DEP=
11422INCINTL=
11423XGETTEXT=
11424GMSGFMT=
11425POSUB=
11426
11427if test -f ../intl/config.intl; then
11428 . ../intl/config.intl
252b5132 11429fi
d7040cdb
SE
11430echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11431echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11432if test x"$USE_NLS" != xyes; then
11433 echo "$as_me:$LINENO: result: no" >&5
11434echo "${ECHO_T}no" >&6
11435else
11436 echo "$as_me:$LINENO: result: yes" >&5
11437echo "${ECHO_T}yes" >&6
5464f5a1 11438
d7040cdb
SE
11439cat >>confdefs.h <<\_ACEOF
11440#define ENABLE_NLS 1
11441_ACEOF
252b5132 11442
6be7c12c 11443
d7040cdb
SE
11444 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11445echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11446 # Look for .po and .gmo files in the source directory.
11447 CATALOGS=
11448 XLINGUAS=
11449 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11450 # If there aren't any .gmo files the shell will give us the
11451 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11452 # weeded out.
11453 case "$cat" in *\**)
11454 continue;;
11455 esac
11456 # The quadruple backslash is collapsed to a double backslash
11457 # by the backticks, then collapsed again by the double quotes,
11458 # leaving us with one backslash in the sed expression (right
11459 # before the dot that mustn't act as a wildcard).
11460 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11461 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11462 # The user is allowed to set LINGUAS to a list of languages to
11463 # install catalogs for. If it's empty that means "all of them."
11464 if test "x$LINGUAS" = x; then
11465 CATALOGS="$CATALOGS $cat"
11466 XLINGUAS="$XLINGUAS $lang"
11467 else
11468 case "$LINGUAS" in *$lang*)
11469 CATALOGS="$CATALOGS $cat"
11470 XLINGUAS="$XLINGUAS $lang"
11471 ;;
11472 esac
11473 fi
11474 done
11475 LINGUAS="$XLINGUAS"
11476 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11477echo "${ECHO_T}$LINGUAS" >&6
11478
252b5132 11479
d7040cdb 11480 DATADIRNAME=share
252b5132 11481
d7040cdb 11482 INSTOBJEXT=.mo
5464f5a1 11483
d7040cdb 11484 GENCAT=gencat
20e95c23 11485
d7040cdb 11486 CATOBJEXT=.gmo
5464f5a1 11487
20e95c23 11488fi
5464f5a1 11489
d7040cdb
SE
11490 MKINSTALLDIRS=
11491 if test -n "$ac_aux_dir"; then
11492 case "$ac_aux_dir" in
11493 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11494 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11495 esac
11496 fi
11497 if test -z "$MKINSTALLDIRS"; then
11498 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 11499 fi
5464f5a1 11500
5464f5a1 11501
d7040cdb
SE
11502
11503 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11504echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11505 # Check whether --enable-nls or --disable-nls was given.
11506if test "${enable_nls+set}" = set; then
11507 enableval="$enable_nls"
11508 USE_NLS=$enableval
252b5132 11509else
d7040cdb
SE
11510 USE_NLS=yes
11511fi;
11512 echo "$as_me:$LINENO: result: $USE_NLS" >&5
11513echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 11514
252b5132 11515
5464f5a1 11516
252b5132 11517
d7040cdb
SE
11518
11519
11520# Prepare PATH_SEPARATOR.
11521# The user is always right.
11522if test "${PATH_SEPARATOR+set}" != set; then
11523 echo "#! /bin/sh" >conf$$.sh
11524 echo "exit 0" >>conf$$.sh
11525 chmod +x conf$$.sh
11526 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11527 PATH_SEPARATOR=';'
20e95c23 11528 else
d7040cdb 11529 PATH_SEPARATOR=:
20e95c23 11530 fi
d7040cdb
SE
11531 rm -f conf$$.sh
11532fi
11533
11534# Find out how to test for executable files. Don't use a zero-byte file,
11535# as systems may use methods other than mode bits to determine executability.
11536cat >conf$$.file <<_ASEOF
11537#! /bin/sh
11538exit 0
11539_ASEOF
11540chmod +x conf$$.file
11541if test -x conf$$.file >/dev/null 2>&1; then
11542 ac_executable_p="test -x"
20e95c23 11543else
d7040cdb 11544 ac_executable_p="test -f"
20e95c23 11545fi
d7040cdb 11546rm -f conf$$.file
5464f5a1 11547
d7040cdb
SE
11548# Extract the first word of "msgfmt", so it can be a program name with args.
11549set dummy msgfmt; ac_word=$2
11550echo "$as_me:$LINENO: checking for $ac_word" >&5
11551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552if test "${ac_cv_path_MSGFMT+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 case "$MSGFMT" in
11556 [\\/]* | ?:[\\/]*)
11557 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11558 ;;
11559 *)
11560 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11561 for ac_dir in $PATH; do
11562 IFS="$ac_save_IFS"
11563 test -z "$ac_dir" && ac_dir=.
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11566 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11567 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11568 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11569 break 2
11570 fi
11571 fi
11572 done
11573 done
11574 IFS="$ac_save_IFS"
11575 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11576 ;;
11577esac
5464f5a1 11578fi
d7040cdb
SE
11579MSGFMT="$ac_cv_path_MSGFMT"
11580if test "$MSGFMT" != ":"; then
11581 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11582echo "${ECHO_T}$MSGFMT" >&6
20e95c23 11583else
d7040cdb
SE
11584 echo "$as_me:$LINENO: result: no" >&5
11585echo "${ECHO_T}no" >&6
252b5132 11586fi
d7040cdb
SE
11587
11588 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11589set dummy gmsgfmt; ac_word=$2
11590echo "$as_me:$LINENO: checking for $ac_word" >&5
11591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11592if test "${ac_cv_path_GMSGFMT+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11594else
d7040cdb
SE
11595 case $GMSGFMT in
11596 [\\/]* | ?:[\\/]*)
11597 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11598 ;;
11599 *)
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11607 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611done
11612done
5464f5a1 11613
d7040cdb
SE
11614 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11615 ;;
11616esac
252b5132 11617fi
d7040cdb 11618GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 11619
d7040cdb
SE
11620if test -n "$GMSGFMT"; then
11621 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11622echo "${ECHO_T}$GMSGFMT" >&6
252b5132 11623else
d7040cdb
SE
11624 echo "$as_me:$LINENO: result: no" >&5
11625echo "${ECHO_T}no" >&6
252b5132
RH
11626fi
11627
20e95c23
DJ
11628
11629
d7040cdb
SE
11630# Prepare PATH_SEPARATOR.
11631# The user is always right.
11632if test "${PATH_SEPARATOR+set}" != set; then
11633 echo "#! /bin/sh" >conf$$.sh
11634 echo "exit 0" >>conf$$.sh
11635 chmod +x conf$$.sh
11636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11637 PATH_SEPARATOR=';'
11638 else
11639 PATH_SEPARATOR=:
11640 fi
11641 rm -f conf$$.sh
252b5132 11642fi
20e95c23 11643
d7040cdb
SE
11644# Find out how to test for executable files. Don't use a zero-byte file,
11645# as systems may use methods other than mode bits to determine executability.
11646cat >conf$$.file <<_ASEOF
11647#! /bin/sh
11648exit 0
11649_ASEOF
11650chmod +x conf$$.file
11651if test -x conf$$.file >/dev/null 2>&1; then
11652 ac_executable_p="test -x"
11653else
11654 ac_executable_p="test -f"
11655fi
11656rm -f conf$$.file
252b5132 11657
d7040cdb
SE
11658# Extract the first word of "xgettext", so it can be a program name with args.
11659set dummy xgettext; ac_word=$2
11660echo "$as_me:$LINENO: checking for $ac_word" >&5
11661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11662if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
d7040cdb
SE
11665 case "$XGETTEXT" in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11668 ;;
11669 *)
11670 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11671 for ac_dir in $PATH; do
11672 IFS="$ac_save_IFS"
11673 test -z "$ac_dir" && ac_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11676 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11677 (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
11678 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11679 break 2
11680 fi
11681 fi
11682 done
11683 done
11684 IFS="$ac_save_IFS"
11685 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11686 ;;
11687esac
11688fi
11689XGETTEXT="$ac_cv_path_XGETTEXT"
11690if test "$XGETTEXT" != ":"; then
11691 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11692echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11693else
d7040cdb
SE
11694 echo "$as_me:$LINENO: result: no" >&5
11695echo "${ECHO_T}no" >&6
252b5132
RH
11696fi
11697
d7040cdb 11698 rm -f messages.po
5464f5a1 11699
252b5132 11700
d7040cdb
SE
11701# Prepare PATH_SEPARATOR.
11702# The user is always right.
11703if test "${PATH_SEPARATOR+set}" != set; then
11704 echo "#! /bin/sh" >conf$$.sh
11705 echo "exit 0" >>conf$$.sh
11706 chmod +x conf$$.sh
11707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11708 PATH_SEPARATOR=';'
11709 else
11710 PATH_SEPARATOR=:
11711 fi
11712 rm -f conf$$.sh
252b5132
RH
11713fi
11714
d7040cdb
SE
11715# Find out how to test for executable files. Don't use a zero-byte file,
11716# as systems may use methods other than mode bits to determine executability.
11717cat >conf$$.file <<_ASEOF
11718#! /bin/sh
11719exit 0
11720_ASEOF
11721chmod +x conf$$.file
11722if test -x conf$$.file >/dev/null 2>&1; then
11723 ac_executable_p="test -x"
5464f5a1 11724else
d7040cdb 11725 ac_executable_p="test -f"
20e95c23 11726fi
d7040cdb 11727rm -f conf$$.file
5464f5a1 11728
d7040cdb
SE
11729# Extract the first word of "msgmerge", so it can be a program name with args.
11730set dummy msgmerge; ac_word=$2
11731echo "$as_me:$LINENO: checking for $ac_word" >&5
11732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11733if test "${ac_cv_path_MSGMERGE+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
11736 case "$MSGMERGE" in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11739 ;;
11740 *)
11741 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11742 for ac_dir in $PATH; do
11743 IFS="$ac_save_IFS"
11744 test -z "$ac_dir" && ac_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11747 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11748 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11749 break 2
11750 fi
11751 fi
11752 done
11753 done
11754 IFS="$ac_save_IFS"
11755 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11756 ;;
11757esac
5464f5a1 11758fi
d7040cdb
SE
11759MSGMERGE="$ac_cv_path_MSGMERGE"
11760if test "$MSGMERGE" != ":"; then
11761 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11762echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11763else
d7040cdb
SE
11764 echo "$as_me:$LINENO: result: no" >&5
11765echo "${ECHO_T}no" >&6
11766fi
20e95c23 11767
5464f5a1 11768
d7040cdb
SE
11769 if test "$GMSGFMT" != ":"; then
11770 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11771 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11772 : ;
11773 else
11774 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11775 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11776echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11777 GMSGFMT=":"
11778 fi
11779 fi
252b5132 11780
d7040cdb
SE
11781 if test "$XGETTEXT" != ":"; then
11782 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11783 (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
11784 : ;
11785 else
11786 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11787echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11788 XGETTEXT=":"
11789 fi
11790 rm -f messages.po
11791 fi
6be7c12c 11792
d7040cdb 11793 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11794
252b5132 11795
5464f5a1 11796
d7040cdb
SE
11797# Permit host specific settings.
11798. ${srcdir}/configure.host
11799
11800
11801# Find a good install program. We prefer a C program (faster),
11802# so one script is as good as another. But avoid the broken or
11803# incompatible versions:
11804# SysV /etc/install, /usr/sbin/install
11805# SunOS /usr/etc/install
11806# IRIX /sbin/install
11807# AIX /bin/install
11808# AmigaOS /C/install, which installs bootblocks on floppy discs
11809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11812# OS/2's system install, which has a completely different semantic
11813# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11814# Reject install programs that cannot install multiple files.
d7040cdb
SE
11815echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11816echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11817if test -z "$INSTALL"; then
11818if test "${ac_cv_path_install+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 # Account for people who put trailing slashes in PATH elements.
11827case $as_dir/ in
11828 ./ | .// | /cC/* | \
11829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11830 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11831 /usr/ucb/* ) ;;
11832 *)
11833 # OSF1 and SCO ODT 3.0 have their own names for install.
11834 # Don't use installbsd from OSF since it installs stuff as root
11835 # by default.
11836 for ac_prog in ginstall scoinst install; do
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11839 if test $ac_prog = install &&
11840 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11841 # AIX install. It has an incompatible calling convention.
11842 :
11843 elif test $ac_prog = install &&
11844 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11845 # program-specific install script used by HP pwplus--don't use.
11846 :
11847 else
58c85be7
RW
11848 rm -rf conftest.one conftest.two conftest.dir
11849 echo one > conftest.one
11850 echo two > conftest.two
11851 mkdir conftest.dir
11852 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11853 test -s conftest.one && test -s conftest.two &&
11854 test -s conftest.dir/conftest.one &&
11855 test -s conftest.dir/conftest.two
11856 then
11857 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11858 break 3
11859 fi
d7040cdb
SE
11860 fi
11861 fi
11862 done
11863 done
11864 ;;
11865esac
11866done
11867
58c85be7 11868rm -rf conftest.one conftest.two conftest.dir
252b5132 11869
d7040cdb
SE
11870fi
11871 if test "${ac_cv_path_install+set}" = set; then
11872 INSTALL=$ac_cv_path_install
11873 else
58c85be7
RW
11874 # As a last resort, use the slow shell script. Don't cache a
11875 # value for INSTALL within a source directory, because that will
d7040cdb 11876 # break other packages using the cache if that directory is
58c85be7 11877 # removed, or if the value is a relative name.
d7040cdb
SE
11878 INSTALL=$ac_install_sh
11879 fi
11880fi
11881echo "$as_me:$LINENO: result: $INSTALL" >&5
11882echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11883
d7040cdb
SE
11884# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11885# It thinks the first close brace ends the variable substitution.
11886test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11887
d7040cdb 11888test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11889
d7040cdb 11890test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11891
252b5132 11892
d7040cdb 11893BFD_HOST_64BIT_LONG=0
d2df793a 11894BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11895BFD_HOST_64_BIT_DEFINED=0
11896BFD_HOST_64_BIT=
11897BFD_HOST_U_64_BIT=
d2df793a 11898BFD_HOSTPTR_T="unsigned long"
6be7c12c 11899
d7040cdb
SE
11900echo "$as_me:$LINENO: checking for long long" >&5
11901echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11902if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11903 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11904else
5464f5a1
NN
11905 cat >conftest.$ac_ext <<_ACEOF
11906/* confdefs.h. */
11907_ACEOF
11908cat confdefs.h >>conftest.$ac_ext
11909cat >>conftest.$ac_ext <<_ACEOF
11910/* end confdefs.h. */
2ba49b59 11911$ac_includes_default
5464f5a1
NN
11912int
11913main ()
11914{
2ba49b59
KC
11915if ((long long *) 0)
11916 return 0;
11917if (sizeof (long long))
11918 return 0;
5464f5a1
NN
11919 ;
11920 return 0;
11921}
11922_ACEOF
11923rm -f conftest.$ac_objext
11924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925 (eval $ac_compile) 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
7357c5b6
AM
11932 { ac_try='test -z "$ac_c_werror_flag"
11933 || test ! -s conftest.err'
5464f5a1
NN
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
2ba49b59 11945 ac_cv_type_long_long=yes
6726e1ea 11946else
5464f5a1
NN
11947 echo "$as_me: failed program was:" >&5
11948sed 's/^/| /' conftest.$ac_ext >&5
11949
2ba49b59 11950ac_cv_type_long_long=no
6726e1ea 11951fi
5464f5a1 11952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11953fi
2ba49b59
KC
11954echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11955echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11956
2ba49b59
KC
11957echo "$as_me:$LINENO: checking size of long long" >&5
11958echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11959if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11960 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11961else
2ba49b59
KC
11962 if test "$ac_cv_type_long_long" = yes; then
11963 # The cast to unsigned long works around a bug in the HP C Compiler
11964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11966 # This bug is HP SR number 8606223364.
11967 if test "$cross_compiling" = yes; then
11968 # Depending upon the size, compute the lo and hi bounds.
11969cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
2ba49b59
KC
11975$ac_includes_default
11976int
11977main ()
11978{
11979static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11980test_array [0] = 0
6726e1ea 11981
2ba49b59
KC
11982 ;
11983 return 0;
11984}
11985_ACEOF
11986rm -f conftest.$ac_objext
11987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11988 (eval $ac_compile) 2>conftest.er1
11989 ac_status=$?
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
7357c5b6
AM
11995 { ac_try='test -z "$ac_c_werror_flag"
11996 || test ! -s conftest.err'
2ba49b59
KC
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest.$ac_objext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 ac_lo=0 ac_mid=0
12009 while :; do
12010 cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016$ac_includes_default
5464f5a1
NN
12017int
12018main ()
12019{
2ba49b59
KC
12020static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12021test_array [0] = 0
12022
5464f5a1
NN
12023 ;
12024 return 0;
12025}
12026_ACEOF
12027rm -f conftest.$ac_objext
12028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12029 (eval $ac_compile) 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
7357c5b6
AM
12036 { ac_try='test -z "$ac_c_werror_flag"
12037 || test ! -s conftest.err'
5464f5a1
NN
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
2ba49b59 12049 ac_hi=$ac_mid; break
6726e1ea 12050else
5464f5a1
NN
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
2ba49b59
KC
12054ac_lo=`expr $ac_mid + 1`
12055 if test $ac_lo -le $ac_mid; then
12056 ac_lo= ac_hi=
12057 break
12058 fi
12059 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 12060fi
5464f5a1 12061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 12062 done
252b5132 12063else
2ba49b59
KC
12064 echo "$as_me: failed program was:" >&5
12065sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 12066
5464f5a1
NN
12067cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073$ac_includes_default
2ba49b59
KC
12074int
12075main ()
12076{
12077static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12078test_array [0] = 0
12079
12080 ;
12081 return 0;
12082}
5464f5a1
NN
12083_ACEOF
12084rm -f conftest.$ac_objext
12085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12086 (eval $ac_compile) 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
7357c5b6
AM
12093 { ac_try='test -z "$ac_c_werror_flag"
12094 || test ! -s conftest.err'
5464f5a1
NN
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest.$ac_objext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
2ba49b59
KC
12106 ac_hi=-1 ac_mid=-1
12107 while :; do
12108 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
2ba49b59
KC
12114$ac_includes_default
12115int
12116main ()
12117{
12118static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12119test_array [0] = 0
12120
12121 ;
12122 return 0;
12123}
5464f5a1 12124_ACEOF
2ba49b59
KC
12125rm -f conftest.$ac_objext
12126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12133 (exit $ac_status); } &&
7357c5b6
AM
12134 { ac_try='test -z "$ac_c_werror_flag"
12135 || test ! -s conftest.err'
2ba49b59
KC
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_lo=$ac_mid; break
252b5132 12148else
2ba49b59
KC
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152ac_hi=`expr '(' $ac_mid ')' - 1`
12153 if test $ac_mid -le $ac_hi; then
12154 ac_lo= ac_hi=
12155 break
12156 fi
12157 ac_mid=`expr 2 '*' $ac_mid`
252b5132 12158fi
2ba49b59
KC
12159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 done
5464f5a1
NN
12161else
12162 echo "$as_me: failed program was:" >&5
12163sed 's/^/| /' conftest.$ac_ext >&5
12164
2ba49b59 12165ac_lo= ac_hi=
252b5132 12166fi
2ba49b59
KC
12167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12168fi
12169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12170# Binary search between lo and hi bounds.
12171while test "x$ac_lo" != "x$ac_hi"; do
12172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12173 cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179$ac_includes_default
12180int
12181main ()
12182{
12183static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12184test_array [0] = 0
5464f5a1 12185
2ba49b59
KC
12186 ;
12187 return 0;
12188}
5464f5a1
NN
12189_ACEOF
12190rm -f conftest.$ac_objext
12191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
7357c5b6
AM
12199 { ac_try='test -z "$ac_c_werror_flag"
12200 || test ! -s conftest.err'
5464f5a1
NN
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12209 ac_status=$?
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
2ba49b59 12212 ac_hi=$ac_mid
5464f5a1
NN
12213else
12214 echo "$as_me: failed program was:" >&5
12215sed 's/^/| /' conftest.$ac_ext >&5
12216
2ba49b59 12217ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
12218fi
12219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
12220done
12221case $ac_lo in
12222?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
12223'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12224echo "$as_me: error: in \`$ac_pwd':" >&2;}
12225{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
12226See \`config.log' for more details." >&5
12227echo "$as_me: error: cannot compute sizeof (long long), 77
12228See \`config.log' for more details." >&2;}
7357c5b6 12229 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12230esac
12231else
12232 if test "$cross_compiling" = yes; then
7357c5b6
AM
12233 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12234echo "$as_me: error: in \`$ac_pwd':" >&2;}
12235{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12236See \`config.log' for more details." >&5
12237echo "$as_me: error: cannot run test program while cross compiling
12238See \`config.log' for more details." >&2;}
12239 { (exit 1); exit 1; }; }; }
2ba49b59
KC
12240else
12241 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
2ba49b59
KC
12247$ac_includes_default
12248long longval () { return (long) (sizeof (long long)); }
12249unsigned long ulongval () { return (long) (sizeof (long long)); }
12250#include <stdio.h>
12251#include <stdlib.h>
12252int
12253main ()
12254{
12255
12256 FILE *f = fopen ("conftest.val", "w");
12257 if (! f)
12258 exit (1);
12259 if (((long) (sizeof (long long))) < 0)
12260 {
12261 long i = longval ();
12262 if (i != ((long) (sizeof (long long))))
12263 exit (1);
12264 fprintf (f, "%ld\n", i);
12265 }
12266 else
12267 {
12268 unsigned long i = ulongval ();
12269 if (i != ((long) (sizeof (long long))))
12270 exit (1);
12271 fprintf (f, "%lu\n", i);
12272 }
12273 exit (ferror (f) || fclose (f) != 0);
12274
12275 ;
12276 return 0;
12277}
5464f5a1 12278_ACEOF
2ba49b59
KC
12279rm -f conftest$ac_exeext
12280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>&5
5464f5a1 12282 ac_status=$?
5464f5a1 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
12284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; }; then
12290 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 12291else
2ba49b59
KC
12292 echo "$as_me: program exited with status $ac_status" >&5
12293echo "$as_me: failed program was:" >&5
5464f5a1
NN
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
2ba49b59 12296( exit $ac_status )
7357c5b6
AM
12297{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12298echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
12299{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12300See \`config.log' for more details." >&5
12301echo "$as_me: error: cannot compute sizeof (long long), 77
12302See \`config.log' for more details." >&2;}
7357c5b6 12303 { (exit 1); exit 1; }; }; }
252b5132 12304fi
2ba49b59
KC
12305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12306fi
12307fi
12308rm -f conftest.val
6be7c12c 12309else
2ba49b59 12310 ac_cv_sizeof_long_long=0
5464f5a1 12311fi
5464f5a1 12312fi
2ba49b59
KC
12313echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12314echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12315cat >>confdefs.h <<_ACEOF
12316#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
12317_ACEOF
12318
5464f5a1 12319
d2df793a
NC
12320echo "$as_me:$LINENO: checking for void *" >&5
12321echo $ECHO_N "checking for void *... $ECHO_C" >&6
12322if test "${ac_cv_type_void_p+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326/* confdefs.h. */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
12330/* end confdefs.h. */
12331$ac_includes_default
12332int
12333main ()
12334{
12335if ((void * *) 0)
12336 return 0;
12337if (sizeof (void *))
12338 return 0;
12339 ;
12340 return 0;
12341}
12342_ACEOF
12343rm -f conftest.$ac_objext
12344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
7357c5b6
AM
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
d2df793a
NC
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_type_void_p=yes
12366else
12367 echo "$as_me: failed program was:" >&5
12368sed 's/^/| /' conftest.$ac_ext >&5
12369
12370ac_cv_type_void_p=no
12371fi
12372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12373fi
12374echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12375echo "${ECHO_T}$ac_cv_type_void_p" >&6
12376
12377echo "$as_me:$LINENO: checking size of void *" >&5
12378echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12379if test "${ac_cv_sizeof_void_p+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12381else
12382 if test "$ac_cv_type_void_p" = yes; then
12383 # The cast to unsigned long works around a bug in the HP C Compiler
12384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12386 # This bug is HP SR number 8606223364.
12387 if test "$cross_compiling" = yes; then
12388 # Depending upon the size, compute the lo and hi bounds.
12389cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395$ac_includes_default
12396int
12397main ()
12398{
12399static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12400test_array [0] = 0
12401
12402 ;
12403 return 0;
12404}
12405_ACEOF
12406rm -f conftest.$ac_objext
12407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12408 (eval $ac_compile) 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
7357c5b6
AM
12415 { ac_try='test -z "$ac_c_werror_flag"
12416 || test ! -s conftest.err'
d2df793a
NC
12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; } &&
12422 { ac_try='test -s conftest.$ac_objext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428 ac_lo=0 ac_mid=0
12429 while :; do
12430 cat >conftest.$ac_ext <<_ACEOF
12431/* confdefs.h. */
12432_ACEOF
12433cat confdefs.h >>conftest.$ac_ext
12434cat >>conftest.$ac_ext <<_ACEOF
12435/* end confdefs.h. */
12436$ac_includes_default
12437int
12438main ()
12439{
12440static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12441test_array [0] = 0
12442
12443 ;
12444 return 0;
12445}
12446_ACEOF
12447rm -f conftest.$ac_objext
12448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12449 (eval $ac_compile) 2>conftest.er1
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } &&
7357c5b6
AM
12456 { ac_try='test -z "$ac_c_werror_flag"
12457 || test ! -s conftest.err'
d2df793a
NC
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; } &&
12463 { ac_try='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_hi=$ac_mid; break
12470else
12471 echo "$as_me: failed program was:" >&5
12472sed 's/^/| /' conftest.$ac_ext >&5
12473
12474ac_lo=`expr $ac_mid + 1`
12475 if test $ac_lo -le $ac_mid; then
12476 ac_lo= ac_hi=
12477 break
12478 fi
12479 ac_mid=`expr 2 '*' $ac_mid + 1`
12480fi
12481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12482 done
12483else
12484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487cat >conftest.$ac_ext <<_ACEOF
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
12493$ac_includes_default
12494int
12495main ()
12496{
12497static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12498test_array [0] = 0
12499
12500 ;
12501 return 0;
12502}
12503_ACEOF
12504rm -f conftest.$ac_objext
12505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506 (eval $ac_compile) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
7357c5b6
AM
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
d2df793a
NC
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_hi=-1 ac_mid=-1
12527 while :; do
12528 cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534$ac_includes_default
12535int
12536main ()
12537{
12538static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12539test_array [0] = 0
12540
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext
12546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
7357c5b6
AM
12554 { ac_try='test -z "$ac_c_werror_flag"
12555 || test ! -s conftest.err'
d2df793a
NC
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest.$ac_objext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_lo=$ac_mid; break
12568else
12569 echo "$as_me: failed program was:" >&5
12570sed 's/^/| /' conftest.$ac_ext >&5
12571
12572ac_hi=`expr '(' $ac_mid ')' - 1`
12573 if test $ac_mid -le $ac_hi; then
12574 ac_lo= ac_hi=
12575 break
12576 fi
12577 ac_mid=`expr 2 '*' $ac_mid`
12578fi
12579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 done
12581else
12582 echo "$as_me: failed program was:" >&5
12583sed 's/^/| /' conftest.$ac_ext >&5
12584
12585ac_lo= ac_hi=
12586fi
12587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12588fi
12589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590# Binary search between lo and hi bounds.
12591while test "x$ac_lo" != "x$ac_hi"; do
12592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12593 cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h. */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h. */
12599$ac_includes_default
12600int
12601main ()
12602{
12603static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12604test_array [0] = 0
12605
12606 ;
12607 return 0;
12608}
12609_ACEOF
12610rm -f conftest.$ac_objext
12611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12612 (eval $ac_compile) 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
7357c5b6
AM
12619 { ac_try='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
d2df793a
NC
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12632 ac_hi=$ac_mid
12633else
12634 echo "$as_me: failed program was:" >&5
12635sed 's/^/| /' conftest.$ac_ext >&5
12636
12637ac_lo=`expr '(' $ac_mid ')' + 1`
12638fi
12639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12640done
12641case $ac_lo in
12642?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
12643'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12644echo "$as_me: error: in \`$ac_pwd':" >&2;}
12645{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
12646See \`config.log' for more details." >&5
12647echo "$as_me: error: cannot compute sizeof (void *), 77
12648See \`config.log' for more details." >&2;}
7357c5b6 12649 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
12650esac
12651else
12652 if test "$cross_compiling" = yes; then
7357c5b6
AM
12653 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12654echo "$as_me: error: in \`$ac_pwd':" >&2;}
12655{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12656See \`config.log' for more details." >&5
12657echo "$as_me: error: cannot run test program while cross compiling
12658See \`config.log' for more details." >&2;}
12659 { (exit 1); exit 1; }; }; }
d2df793a
NC
12660else
12661 cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667$ac_includes_default
12668long longval () { return (long) (sizeof (void *)); }
12669unsigned long ulongval () { return (long) (sizeof (void *)); }
12670#include <stdio.h>
12671#include <stdlib.h>
12672int
12673main ()
12674{
12675
12676 FILE *f = fopen ("conftest.val", "w");
12677 if (! f)
12678 exit (1);
12679 if (((long) (sizeof (void *))) < 0)
12680 {
12681 long i = longval ();
12682 if (i != ((long) (sizeof (void *))))
12683 exit (1);
12684 fprintf (f, "%ld\n", i);
12685 }
12686 else
12687 {
12688 unsigned long i = ulongval ();
12689 if (i != ((long) (sizeof (void *))))
12690 exit (1);
12691 fprintf (f, "%lu\n", i);
12692 }
12693 exit (ferror (f) || fclose (f) != 0);
12694
12695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest$ac_exeext
12700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_sizeof_void_p=`cat conftest.val`
12711else
12712 echo "$as_me: program exited with status $ac_status" >&5
12713echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716( exit $ac_status )
7357c5b6
AM
12717{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12718echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
12719{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12720See \`config.log' for more details." >&5
12721echo "$as_me: error: cannot compute sizeof (void *), 77
12722See \`config.log' for more details." >&2;}
7357c5b6 12723 { (exit 1); exit 1; }; }; }
d2df793a
NC
12724fi
12725rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12726fi
12727fi
12728rm -f conftest.val
12729else
12730 ac_cv_sizeof_void_p=0
12731fi
12732fi
12733echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12734echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12735cat >>confdefs.h <<_ACEOF
12736#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12737_ACEOF
12738
12739
2ba49b59
KC
12740echo "$as_me:$LINENO: checking for long" >&5
12741echo $ECHO_N "checking for long... $ECHO_C" >&6
12742if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
2ba49b59 12751$ac_includes_default
5464f5a1
NN
12752int
12753main ()
12754{
2ba49b59
KC
12755if ((long *) 0)
12756 return 0;
12757if (sizeof (long))
12758 return 0;
5464f5a1
NN
12759 ;
12760 return 0;
12761}
12762_ACEOF
12763rm -f conftest.$ac_objext
12764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12765 (eval $ac_compile) 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
7357c5b6
AM
12772 { ac_try='test -z "$ac_c_werror_flag"
12773 || test ! -s conftest.err'
5464f5a1
NN
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; } &&
12779 { ac_try='test -s conftest.$ac_objext'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12782 ac_status=$?
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; }; then
2ba49b59 12785 ac_cv_type_long=yes
252b5132 12786else
5464f5a1
NN
12787 echo "$as_me: failed program was:" >&5
12788sed 's/^/| /' conftest.$ac_ext >&5
12789
2ba49b59 12790ac_cv_type_long=no
252b5132 12791fi
5464f5a1 12792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12793fi
2ba49b59
KC
12794echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12795echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12796
2ba49b59
KC
12797echo "$as_me:$LINENO: checking size of long" >&5
12798echo $ECHO_N "checking size of long... $ECHO_C" >&6
12799if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
2ba49b59
KC
12802 if test "$ac_cv_type_long" = yes; then
12803 # The cast to unsigned long works around a bug in the HP C Compiler
12804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12806 # This bug is HP SR number 8606223364.
12807 if test "$cross_compiling" = yes; then
12808 # Depending upon the size, compute the lo and hi bounds.
12809cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
12814/* end confdefs.h. */
2ba49b59 12815$ac_includes_default
5464f5a1
NN
12816int
12817main ()
12818{
2ba49b59
KC
12819static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12820test_array [0] = 0
12821
5464f5a1
NN
12822 ;
12823 return 0;
12824}
12825_ACEOF
12826rm -f conftest.$ac_objext
12827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
7357c5b6
AM
12835 { ac_try='test -z "$ac_c_werror_flag"
12836 || test ! -s conftest.err'
5464f5a1
NN
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
2ba49b59
KC
12848 ac_lo=0 ac_mid=0
12849 while :; do
12850 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
12855/* end confdefs.h. */
2ba49b59 12856$ac_includes_default
5464f5a1
NN
12857int
12858main ()
12859{
2ba49b59
KC
12860static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12861test_array [0] = 0
12862
5464f5a1
NN
12863 ;
12864 return 0;
12865}
12866_ACEOF
2ba49b59
KC
12867rm -f conftest.$ac_objext
12868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } &&
7357c5b6
AM
12876 { ac_try='test -z "$ac_c_werror_flag"
12877 || test ! -s conftest.err'
5464f5a1
NN
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; } &&
2ba49b59 12883 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
2ba49b59 12889 ac_hi=$ac_mid; break
5464f5a1
NN
12890else
12891 echo "$as_me: failed program was:" >&5
12892sed 's/^/| /' conftest.$ac_ext >&5
12893
2ba49b59
KC
12894ac_lo=`expr $ac_mid + 1`
12895 if test $ac_lo -le $ac_mid; then
12896 ac_lo= ac_hi=
12897 break
12898 fi
12899 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 12900fi
2ba49b59
KC
12901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 done
12903else
12904 echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
12906
12907cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
2ba49b59 12913$ac_includes_default
5464f5a1
NN
12914int
12915main ()
12916{
2ba49b59
KC
12917static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12918test_array [0] = 0
12919
5464f5a1
NN
12920 ;
12921 return 0;
12922}
12923_ACEOF
2ba49b59
KC
12924rm -f conftest.$ac_objext
12925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
7357c5b6
AM
12933 { ac_try='test -z "$ac_c_werror_flag"
12934 || test ! -s conftest.err'
5464f5a1
NN
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
2ba49b59 12940 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
2ba49b59
KC
12946 ac_hi=-1 ac_mid=-1
12947 while :; do
12948 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
2ba49b59 12954$ac_includes_default
5464f5a1
NN
12955int
12956main ()
12957{
2ba49b59
KC
12958static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12959test_array [0] = 0
12960
5464f5a1
NN
12961 ;
12962 return 0;
12963}
12964_ACEOF
2ba49b59
KC
12965rm -f conftest.$ac_objext
12966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
7357c5b6
AM
12974 { ac_try='test -z "$ac_c_werror_flag"
12975 || test ! -s conftest.err'
5464f5a1
NN
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; } &&
2ba49b59 12981 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
2ba49b59 12987 ac_lo=$ac_mid; break
5464f5a1
NN
12988else
12989 echo "$as_me: failed program was:" >&5
12990sed 's/^/| /' conftest.$ac_ext >&5
12991
2ba49b59
KC
12992ac_hi=`expr '(' $ac_mid ')' - 1`
12993 if test $ac_mid -le $ac_hi; then
12994 ac_lo= ac_hi=
12995 break
12996 fi
12997 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 12998fi
2ba49b59
KC
12999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000 done
13001else
13002 echo "$as_me: failed program was:" >&5
13003sed 's/^/| /' conftest.$ac_ext >&5
13004
13005ac_lo= ac_hi=
13006fi
13007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13008fi
13009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010# Binary search between lo and hi bounds.
13011while test "x$ac_lo" != "x$ac_hi"; do
13012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13013 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
2ba49b59 13019$ac_includes_default
5464f5a1
NN
13020int
13021main ()
13022{
2ba49b59
KC
13023static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13024test_array [0] = 0
13025
5464f5a1
NN
13026 ;
13027 return 0;
13028}
13029_ACEOF
2ba49b59
KC
13030rm -f conftest.$ac_objext
13031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13032 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } &&
7357c5b6
AM
13039 { ac_try='test -z "$ac_c_werror_flag"
13040 || test ! -s conftest.err'
5464f5a1
NN
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
2ba49b59 13046 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
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); }; }; then
2ba49b59 13052 ac_hi=$ac_mid
5464f5a1
NN
13053else
13054 echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
2ba49b59 13057ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 13058fi
2ba49b59
KC
13059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13060done
13061case $ac_lo in
13062?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
13063'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13064echo "$as_me: error: in \`$ac_pwd':" >&2;}
13065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
13066See \`config.log' for more details." >&5
13067echo "$as_me: error: cannot compute sizeof (long), 77
13068See \`config.log' for more details." >&2;}
7357c5b6 13069 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
13070esac
13071else
13072 if test "$cross_compiling" = yes; then
7357c5b6
AM
13073 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13074echo "$as_me: error: in \`$ac_pwd':" >&2;}
13075{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13076See \`config.log' for more details." >&5
13077echo "$as_me: error: cannot run test program while cross compiling
13078See \`config.log' for more details." >&2;}
13079 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
13080else
13081 cat >conftest.$ac_ext <<_ACEOF
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
2ba49b59
KC
13087$ac_includes_default
13088long longval () { return (long) (sizeof (long)); }
13089unsigned long ulongval () { return (long) (sizeof (long)); }
13090#include <stdio.h>
13091#include <stdlib.h>
2e0fbf77
JW
13092int
13093main ()
13094{
13095
2ba49b59
KC
13096 FILE *f = fopen ("conftest.val", "w");
13097 if (! f)
13098 exit (1);
13099 if (((long) (sizeof (long))) < 0)
13100 {
13101 long i = longval ();
13102 if (i != ((long) (sizeof (long))))
13103 exit (1);
13104 fprintf (f, "%ld\n", i);
13105 }
13106 else
13107 {
13108 unsigned long i = ulongval ();
13109 if (i != ((long) (sizeof (long))))
13110 exit (1);
13111 fprintf (f, "%lu\n", i);
13112 }
13113 exit (ferror (f) || fclose (f) != 0);
13114
2e0fbf77
JW
13115 ;
13116 return 0;
13117}
13118_ACEOF
2ba49b59
KC
13119rm -f conftest$ac_exeext
13120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>&5
2e0fbf77
JW
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 13124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
2ba49b59 13130 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 13131else
2ba49b59
KC
13132 echo "$as_me: program exited with status $ac_status" >&5
13133echo "$as_me: failed program was:" >&5
2e0fbf77
JW
13134sed 's/^/| /' conftest.$ac_ext >&5
13135
2ba49b59 13136( exit $ac_status )
7357c5b6
AM
13137{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13138echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13139{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13140See \`config.log' for more details." >&5
13141echo "$as_me: error: cannot compute sizeof (long), 77
13142See \`config.log' for more details." >&2;}
7357c5b6 13143 { (exit 1); exit 1; }; }; }
2e0fbf77 13144fi
2ba49b59 13145rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 13146fi
2ba49b59
KC
13147fi
13148rm -f conftest.val
13149else
13150 ac_cv_sizeof_long=0
13151fi
13152fi
13153echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13154echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13155cat >>confdefs.h <<_ACEOF
13156#define SIZEOF_LONG $ac_cv_sizeof_long
13157_ACEOF
13158
13159
d2df793a
NC
13160
13161if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 13162 host64=true
bce5e5c9
AM
13163fi
13164
13165if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
13166 BFD_HOST_64BIT_LONG=1
13167 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13168 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13169elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 13170 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
13171 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13172 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
13173 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13174 BFD_HOSTPTR_T="unsigned long long"
13175 fi
2ba49b59
KC
13176fi
13177
13178if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13179 BFD_HOST_64_BIT_DEFINED=1
13180 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13181 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13182fi
13183
13184
13185
13186
13187
13188
13189
d2df793a 13190
2ba49b59
KC
13191# Put a plausible default for CC_FOR_BUILD in Makefile.
13192if test -z "$CC_FOR_BUILD"; then
13193 if test "x$cross_compiling" = "xno"; then
13194 CC_FOR_BUILD='$(CC)'
13195 else
13196 CC_FOR_BUILD=gcc
13197 fi
13198fi
13199
13200# Also set EXEEXT_FOR_BUILD.
13201if test "x$cross_compiling" = "xno"; then
13202 EXEEXT_FOR_BUILD='$(EXEEXT)'
13203else
13204 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13205echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13206if test "${bfd_cv_build_exeext+set}" = set; then
13207 echo $ECHO_N "(cached) $ECHO_C" >&6
13208else
13209 rm -f conftest*
13210 echo 'int main () { return 0; }' > conftest.c
13211 bfd_cv_build_exeext=
13212 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13213 for file in conftest.*; do
13214 case $file in
13215 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13216 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13217 esac
13218 done
13219 rm -f conftest*
13220 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13221fi
13222echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13223echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13224 EXEEXT_FOR_BUILD=""
13225 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13226fi
13227
13228
13229
13230
13231
13232
13233
13234
8bc9c892
NC
13235
13236for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
13237do
13238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13239if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240 echo "$as_me:$LINENO: checking for $ac_header" >&5
13241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13242if eval "test \"\${$as_ac_Header+set}\" = set"; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244fi
13245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13247else
13248 # Is the header compilable?
13249echo "$as_me:$LINENO: checking $ac_header usability" >&5
13250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13251cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
13257$ac_includes_default
13258#include <$ac_header>
13259_ACEOF
13260rm -f conftest.$ac_objext
13261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262 (eval $ac_compile) 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
7357c5b6
AM
13269 { ac_try='test -z "$ac_c_werror_flag"
13270 || test ! -s conftest.err'
2ba49b59
KC
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest.$ac_objext'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13282 ac_header_compiler=yes
13283else
13284 echo "$as_me: failed program was:" >&5
13285sed 's/^/| /' conftest.$ac_ext >&5
13286
13287ac_header_compiler=no
13288fi
13289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13291echo "${ECHO_T}$ac_header_compiler" >&6
13292
13293# Is the header present?
13294echo "$as_me:$LINENO: checking $ac_header presence" >&5
13295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13296cat >conftest.$ac_ext <<_ACEOF
13297/* confdefs.h. */
13298_ACEOF
13299cat confdefs.h >>conftest.$ac_ext
13300cat >>conftest.$ac_ext <<_ACEOF
13301/* end confdefs.h. */
13302#include <$ac_header>
13303_ACEOF
13304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13305 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
13312 if test -s conftest.err; then
13313 ac_cpp_err=$ac_c_preproc_warn_flag
13314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13315 else
13316 ac_cpp_err=
13317 fi
13318else
13319 ac_cpp_err=yes
13320fi
13321if test -z "$ac_cpp_err"; then
13322 ac_header_preproc=yes
13323else
13324 echo "$as_me: failed program was:" >&5
13325sed 's/^/| /' conftest.$ac_ext >&5
13326
13327 ac_header_preproc=no
13328fi
13329rm -f conftest.err conftest.$ac_ext
13330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13331echo "${ECHO_T}$ac_header_preproc" >&6
13332
13333# So? What about this header?
13334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13335 yes:no: )
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13340 ac_header_preproc=yes
13341 ;;
13342 no:yes:* )
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13355 (
13356 cat <<\_ASBOX
13357## ------------------------------------------ ##
13358## Report this to the AC_PACKAGE_NAME lists. ##
13359## ------------------------------------------ ##
13360_ASBOX
13361 ) |
13362 sed "s/^/$as_me: WARNING: /" >&2
13363 ;;
13364esac
13365echo "$as_me:$LINENO: checking for $ac_header" >&5
13366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13367if eval "test \"\${$as_ac_Header+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369else
13370 eval "$as_ac_Header=\$ac_header_preproc"
13371fi
13372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13374
13375fi
13376if test `eval echo '${'$as_ac_Header'}'` = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13379_ACEOF
13380
13381fi
13382
13383done
13384
13385
13386
13387
13388for ac_header in fcntl.h sys/file.h sys/time.h
13389do
13390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13391if eval "test \"\${$as_ac_Header+set}\" = set"; then
13392 echo "$as_me:$LINENO: checking for $ac_header" >&5
13393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13394if eval "test \"\${$as_ac_Header+set}\" = set"; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396fi
13397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13399else
13400 # Is the header compilable?
13401echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13403cat >conftest.$ac_ext <<_ACEOF
13404/* confdefs.h. */
13405_ACEOF
13406cat confdefs.h >>conftest.$ac_ext
13407cat >>conftest.$ac_ext <<_ACEOF
13408/* end confdefs.h. */
13409$ac_includes_default
13410#include <$ac_header>
13411_ACEOF
13412rm -f conftest.$ac_objext
13413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
7357c5b6
AM
13421 { ac_try='test -z "$ac_c_werror_flag"
13422 || test ! -s conftest.err'
2ba49b59
KC
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_header_compiler=yes
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
13439ac_header_compiler=no
13440fi
13441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443echo "${ECHO_T}$ac_header_compiler" >&6
13444
13445# Is the header present?
13446echo "$as_me:$LINENO: checking $ac_header presence" >&5
13447echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13448cat >conftest.$ac_ext <<_ACEOF
13449/* confdefs.h. */
13450_ACEOF
13451cat confdefs.h >>conftest.$ac_ext
13452cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h. */
13454#include <$ac_header>
13455_ACEOF
13456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } >/dev/null; then
13464 if test -s conftest.err; then
13465 ac_cpp_err=$ac_c_preproc_warn_flag
13466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13467 else
13468 ac_cpp_err=
13469 fi
13470else
13471 ac_cpp_err=yes
13472fi
13473if test -z "$ac_cpp_err"; then
13474 ac_header_preproc=yes
13475else
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
13479 ac_header_preproc=no
13480fi
13481rm -f conftest.err conftest.$ac_ext
13482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13483echo "${ECHO_T}$ac_header_preproc" >&6
13484
13485# So? What about this header?
13486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13487 yes:no: )
13488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13491echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13492 ac_header_preproc=yes
13493 ;;
13494 no:yes:* )
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13496echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13498echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13500echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13502echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13506echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13507 (
13508 cat <<\_ASBOX
13509## ------------------------------------------ ##
13510## Report this to the AC_PACKAGE_NAME lists. ##
13511## ------------------------------------------ ##
13512_ASBOX
13513 ) |
13514 sed "s/^/$as_me: WARNING: /" >&2
13515 ;;
13516esac
13517echo "$as_me:$LINENO: checking for $ac_header" >&5
13518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13519if eval "test \"\${$as_ac_Header+set}\" = set"; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13521else
13522 eval "$as_ac_Header=\$ac_header_preproc"
13523fi
13524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13526
13527fi
13528if test `eval echo '${'$as_ac_Header'}'` = yes; then
13529 cat >>confdefs.h <<_ACEOF
13530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13531_ACEOF
13532
13533fi
13534
13535done
13536
d5efd9fc
AM
13537
13538
13539inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13540
13541acx_cv_header_stdint=stddef.h
13542acx_cv_header_stdint_kind="(already complete)"
13543for i in stdint.h $inttype_headers; do
13544 unset ac_cv_type_uintptr_t
13545 unset ac_cv_type_uintmax_t
13546 unset ac_cv_type_int_least32_t
13547 unset ac_cv_type_int_fast32_t
13548 unset ac_cv_type_uint64_t
13549 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
13550 echo "$as_me:$LINENO: checking for uintmax_t" >&5
13551echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
13552if test "${ac_cv_type_uintmax_t+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13554else
13555 cat >conftest.$ac_ext <<_ACEOF
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561#include <sys/types.h>
13562#include <$i>
13563
13564int
13565main ()
13566{
13567if ((uintmax_t *) 0)
13568 return 0;
13569if (sizeof (uintmax_t))
13570 return 0;
13571 ;
13572 return 0;
13573}
13574_ACEOF
13575rm -f conftest.$ac_objext
13576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
7357c5b6
AM
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
d5efd9fc
AM
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_type_uintmax_t=yes
13598else
13599 echo "$as_me: failed program was:" >&5
13600sed 's/^/| /' conftest.$ac_ext >&5
13601
13602ac_cv_type_uintmax_t=no
13603fi
13604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13605fi
13606echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13607echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13608if test $ac_cv_type_uintmax_t = yes; then
13609 acx_cv_header_stdint=$i
13610else
13611 continue
13612fi
13613
13614 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13615echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13616if test "${ac_cv_type_uintptr_t+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 cat >conftest.$ac_ext <<_ACEOF
13620/* confdefs.h. */
13621_ACEOF
13622cat confdefs.h >>conftest.$ac_ext
13623cat >>conftest.$ac_ext <<_ACEOF
13624/* end confdefs.h. */
13625#include <sys/types.h>
13626#include <$i>
13627
13628int
13629main ()
13630{
13631if ((uintptr_t *) 0)
13632 return 0;
13633if (sizeof (uintptr_t))
13634 return 0;
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext
13640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
7357c5b6
AM
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
d5efd9fc
AM
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_type_uintptr_t=yes
13662else
13663 echo "$as_me: failed program was:" >&5
13664sed 's/^/| /' conftest.$ac_ext >&5
13665
13666ac_cv_type_uintptr_t=no
13667fi
13668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13669fi
13670echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13671echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13672if test $ac_cv_type_uintptr_t = yes; then
13673 :
13674else
13675 acx_cv_header_stdint_kind="(mostly complete)"
13676fi
13677
13678 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13679echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13680if test "${ac_cv_type_int_least32_t+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682else
13683 cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689#include <sys/types.h>
13690#include <$i>
13691
13692int
13693main ()
13694{
13695if ((int_least32_t *) 0)
13696 return 0;
13697if (sizeof (int_least32_t))
13698 return 0;
13699 ;
13700 return 0;
13701}
13702_ACEOF
13703rm -f conftest.$ac_objext
13704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705 (eval $ac_compile) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
7357c5b6
AM
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
d5efd9fc
AM
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_type_int_least32_t=yes
13726else
13727 echo "$as_me: failed program was:" >&5
13728sed 's/^/| /' conftest.$ac_ext >&5
13729
13730ac_cv_type_int_least32_t=no
13731fi
13732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733fi
13734echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13735echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13736if test $ac_cv_type_int_least32_t = yes; then
13737 :
13738else
13739 acx_cv_header_stdint_kind="(mostly complete)"
13740fi
13741
13742 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13743echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13744if test "${ac_cv_type_int_fast32_t+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746else
13747 cat >conftest.$ac_ext <<_ACEOF
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753#include <sys/types.h>
13754#include <$i>
13755
13756int
13757main ()
13758{
13759if ((int_fast32_t *) 0)
13760 return 0;
13761if (sizeof (int_fast32_t))
13762 return 0;
13763 ;
13764 return 0;
13765}
13766_ACEOF
13767rm -f conftest.$ac_objext
13768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>conftest.er1
13770 ac_status=$?
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } &&
7357c5b6
AM
13776 { ac_try='test -z "$ac_c_werror_flag"
13777 || test ! -s conftest.err'
d5efd9fc
AM
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 ac_cv_type_int_fast32_t=yes
13790else
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794ac_cv_type_int_fast32_t=no
13795fi
13796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13797fi
13798echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13799echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13800if test $ac_cv_type_int_fast32_t = yes; then
13801 :
13802else
13803 acx_cv_header_stdint_kind="(mostly complete)"
13804fi
13805
13806 echo "$as_me:$LINENO: checking for uint64_t" >&5
13807echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13808if test "${ac_cv_type_uint64_t+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810else
13811 cat >conftest.$ac_ext <<_ACEOF
13812/* confdefs.h. */
13813_ACEOF
13814cat confdefs.h >>conftest.$ac_ext
13815cat >>conftest.$ac_ext <<_ACEOF
13816/* end confdefs.h. */
13817#include <sys/types.h>
13818#include <$i>
13819
13820int
13821main ()
13822{
13823if ((uint64_t *) 0)
13824 return 0;
13825if (sizeof (uint64_t))
13826 return 0;
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext
13832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
7357c5b6
AM
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
d5efd9fc
AM
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_type_uint64_t=yes
13854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858ac_cv_type_uint64_t=no
13859fi
13860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13861fi
13862echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13863echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13864if test $ac_cv_type_uint64_t = yes; then
13865 :
13866else
13867 acx_cv_header_stdint_kind="(lacks uint64_t)"
13868fi
13869
13870 break
13871done
13872if test "$acx_cv_header_stdint" = stddef.h; then
13873 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13874 for i in stdint.h $inttype_headers; do
13875 unset ac_cv_type_uintptr_t
13876 unset ac_cv_type_uint32_t
13877 unset ac_cv_type_uint64_t
13878 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13879 echo "$as_me:$LINENO: checking for uint32_t" >&5
13880echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13881if test "${ac_cv_type_uint32_t+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884 cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890#include <sys/types.h>
13891#include <$i>
13892
13893int
13894main ()
13895{
13896if ((uint32_t *) 0)
13897 return 0;
13898if (sizeof (uint32_t))
13899 return 0;
13900 ;
13901 return 0;
13902}
13903_ACEOF
13904rm -f conftest.$ac_objext
13905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>conftest.er1
13907 ac_status=$?
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
7357c5b6
AM
13913 { ac_try='test -z "$ac_c_werror_flag"
13914 || test ! -s conftest.err'
d5efd9fc
AM
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } &&
13920 { ac_try='test -s conftest.$ac_objext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_type_uint32_t=yes
13927else
13928 echo "$as_me: failed program was:" >&5
13929sed 's/^/| /' conftest.$ac_ext >&5
13930
13931ac_cv_type_uint32_t=no
13932fi
13933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13934fi
13935echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13936echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13937if test $ac_cv_type_uint32_t = yes; then
13938 acx_cv_header_stdint=$i
13939else
13940 continue
13941fi
13942
13943 echo "$as_me:$LINENO: checking for uint64_t" >&5
13944echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13945if test "${ac_cv_type_uint64_t+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
13948 cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
13954#include <sys/types.h>
13955#include <$i>
13956
13957int
13958main ()
13959{
13960if ((uint64_t *) 0)
13961 return 0;
13962if (sizeof (uint64_t))
13963 return 0;
13964 ;
13965 return 0;
13966}
13967_ACEOF
13968rm -f conftest.$ac_objext
13969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
7357c5b6
AM
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
d5efd9fc
AM
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest.$ac_objext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_cv_type_uint64_t=yes
13991else
13992 echo "$as_me: failed program was:" >&5
13993sed 's/^/| /' conftest.$ac_ext >&5
13994
13995ac_cv_type_uint64_t=no
13996fi
13997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998fi
13999echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14000echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14001
14002 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14003echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14004if test "${ac_cv_type_uintptr_t+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006else
14007 cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
14012/* end confdefs.h. */
14013#include <sys/types.h>
14014#include <$i>
14015
14016int
14017main ()
14018{
14019if ((uintptr_t *) 0)
14020 return 0;
14021if (sizeof (uintptr_t))
14022 return 0;
14023 ;
14024 return 0;
14025}
14026_ACEOF
14027rm -f conftest.$ac_objext
14028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029 (eval $ac_compile) 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
7357c5b6
AM
14036 { ac_try='test -z "$ac_c_werror_flag"
14037 || test ! -s conftest.err'
d5efd9fc
AM
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest.$ac_objext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14046 ac_status=$?
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_cv_type_uintptr_t=yes
14050else
14051 echo "$as_me: failed program was:" >&5
14052sed 's/^/| /' conftest.$ac_ext >&5
14053
14054ac_cv_type_uintptr_t=no
14055fi
14056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057fi
14058echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14059echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14060
14061 break
14062 done
14063fi
14064if test "$acx_cv_header_stdint" = stddef.h; then
14065 acx_cv_header_stdint_kind="(u_intXX_t style)"
14066 for i in sys/types.h $inttype_headers; do
14067 unset ac_cv_type_u_int32_t
14068 unset ac_cv_type_u_int64_t
14069 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14070 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14071echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14072if test "${ac_cv_type_u_int32_t+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074else
14075 cat >conftest.$ac_ext <<_ACEOF
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
14081#include <sys/types.h>
14082#include <$i>
14083
14084int
14085main ()
14086{
14087if ((u_int32_t *) 0)
14088 return 0;
14089if (sizeof (u_int32_t))
14090 return 0;
14091 ;
14092 return 0;
14093}
14094_ACEOF
14095rm -f conftest.$ac_objext
14096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
7357c5b6
AM
14104 { ac_try='test -z "$ac_c_werror_flag"
14105 || test ! -s conftest.err'
d5efd9fc
AM
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest.$ac_objext'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_type_u_int32_t=yes
14118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122ac_cv_type_u_int32_t=no
14123fi
14124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125fi
14126echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14127echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14128if test $ac_cv_type_u_int32_t = yes; then
14129 acx_cv_header_stdint=$i
14130else
14131 continue
14132fi
14133
14134 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14135echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14136if test "${ac_cv_type_u_int64_t+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 cat >conftest.$ac_ext <<_ACEOF
14140/* confdefs.h. */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h. */
14145#include <sys/types.h>
14146#include <$i>
14147
14148int
14149main ()
14150{
14151if ((u_int64_t *) 0)
14152 return 0;
14153if (sizeof (u_int64_t))
14154 return 0;
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
7357c5b6
AM
14168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
d5efd9fc
AM
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_type_u_int64_t=yes
14182else
14183 echo "$as_me: failed program was:" >&5
14184sed 's/^/| /' conftest.$ac_ext >&5
14185
14186ac_cv_type_u_int64_t=no
14187fi
14188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14189fi
14190echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14191echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14192
14193 break
14194 done
14195fi
14196if test "$acx_cv_header_stdint" = stddef.h; then
14197 acx_cv_header_stdint_kind="(using manual detection)"
14198fi
14199
14200test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14201test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14202test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14203test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14204test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14205
14206# ----------------- Summarize what we found so far
14207
14208echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14209echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14210
14211case `$as_basename bfd_stdint.h ||
14212$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14213 Xbfd_stdint.h : 'X\(//\)$' \| \
14214 Xbfd_stdint.h : 'X\(/\)$' \| \
14215 . : '\(.\)' 2>/dev/null ||
14216echo X/bfd_stdint.h |
14217 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14218 /^X\/\(\/\/\)$/{ s//\1/; q; }
14219 /^X\/\(\/\).*/{ s//\1/; q; }
14220 s/.*/./; q'` in
14221 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14222echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14223 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14224echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14225 *) ;;
14226esac
14227
14228echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14229echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14230
14231# ----------------- done included file, check C basic types --------
14232
14233# Lacking an uintptr_t? Test size of void *
14234case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14235 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14236echo $ECHO_N "checking for void *... $ECHO_C" >&6
14237if test "${ac_cv_type_void_p+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239else
14240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247int
14248main ()
14249{
14250if ((void * *) 0)
14251 return 0;
14252if (sizeof (void *))
14253 return 0;
14254 ;
14255 return 0;
14256}
14257_ACEOF
14258rm -f conftest.$ac_objext
14259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
7357c5b6
AM
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
d5efd9fc
AM
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_type_void_p=yes
14281else
14282 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
14285ac_cv_type_void_p=no
14286fi
14287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288fi
14289echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14290echo "${ECHO_T}$ac_cv_type_void_p" >&6
14291
14292echo "$as_me:$LINENO: checking size of void *" >&5
14293echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14294if test "${ac_cv_sizeof_void_p+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296else
14297 if test "$ac_cv_type_void_p" = yes; then
14298 # The cast to unsigned long works around a bug in the HP C Compiler
14299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14301 # This bug is HP SR number 8606223364.
14302 if test "$cross_compiling" = yes; then
14303 # Depending upon the size, compute the lo and hi bounds.
14304cat >conftest.$ac_ext <<_ACEOF
14305/* confdefs.h. */
14306_ACEOF
14307cat confdefs.h >>conftest.$ac_ext
14308cat >>conftest.$ac_ext <<_ACEOF
14309/* end confdefs.h. */
14310$ac_includes_default
14311int
14312main ()
14313{
14314static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14315test_array [0] = 0
14316
14317 ;
14318 return 0;
14319}
14320_ACEOF
14321rm -f conftest.$ac_objext
14322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
7357c5b6
AM
14330 { ac_try='test -z "$ac_c_werror_flag"
14331 || test ! -s conftest.err'
d5efd9fc
AM
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; } &&
14337 { ac_try='test -s conftest.$ac_objext'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_lo=0 ac_mid=0
14344 while :; do
14345 cat >conftest.$ac_ext <<_ACEOF
14346/* confdefs.h. */
14347_ACEOF
14348cat confdefs.h >>conftest.$ac_ext
14349cat >>conftest.$ac_ext <<_ACEOF
14350/* end confdefs.h. */
14351$ac_includes_default
14352int
14353main ()
14354{
14355static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14356test_array [0] = 0
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362rm -f conftest.$ac_objext
14363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
7357c5b6
AM
14371 { ac_try='test -z "$ac_c_werror_flag"
14372 || test ! -s conftest.err'
d5efd9fc
AM
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_hi=$ac_mid; break
14385else
14386 echo "$as_me: failed program was:" >&5
14387sed 's/^/| /' conftest.$ac_ext >&5
14388
14389ac_lo=`expr $ac_mid + 1`
14390 if test $ac_lo -le $ac_mid; then
14391 ac_lo= ac_hi=
14392 break
14393 fi
14394 ac_mid=`expr 2 '*' $ac_mid + 1`
14395fi
14396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14397 done
14398else
14399 echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
14402cat >conftest.$ac_ext <<_ACEOF
14403/* confdefs.h. */
14404_ACEOF
14405cat confdefs.h >>conftest.$ac_ext
14406cat >>conftest.$ac_ext <<_ACEOF
14407/* end confdefs.h. */
14408$ac_includes_default
14409int
14410main ()
14411{
14412static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14413test_array [0] = 0
14414
14415 ;
14416 return 0;
14417}
14418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
7357c5b6
AM
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
d5efd9fc
AM
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_hi=-1 ac_mid=-1
14442 while :; do
14443 cat >conftest.$ac_ext <<_ACEOF
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
14449$ac_includes_default
14450int
14451main ()
14452{
14453static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14454test_array [0] = 0
14455
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); } &&
7357c5b6
AM
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
d5efd9fc
AM
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_lo=$ac_mid; break
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487ac_hi=`expr '(' $ac_mid ')' - 1`
14488 if test $ac_mid -le $ac_hi; then
14489 ac_lo= ac_hi=
14490 break
14491 fi
14492 ac_mid=`expr 2 '*' $ac_mid`
14493fi
14494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 done
14496else
14497 echo "$as_me: failed program was:" >&5
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
14500ac_lo= ac_hi=
14501fi
14502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14503fi
14504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505# Binary search between lo and hi bounds.
14506while test "x$ac_lo" != "x$ac_hi"; do
14507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14508 cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h. */
14514$ac_includes_default
14515int
14516main ()
14517{
14518static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14519test_array [0] = 0
14520
14521 ;
14522 return 0;
14523}
14524_ACEOF
14525rm -f conftest.$ac_objext
14526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14527 (eval $ac_compile) 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
7357c5b6
AM
14534 { ac_try='test -z "$ac_c_werror_flag"
14535 || test ! -s conftest.err'
d5efd9fc
AM
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest.$ac_objext'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_hi=$ac_mid
14548else
14549 echo "$as_me: failed program was:" >&5
14550sed 's/^/| /' conftest.$ac_ext >&5
14551
14552ac_lo=`expr '(' $ac_mid ')' + 1`
14553fi
14554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14555done
14556case $ac_lo in
14557?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
14558'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14559echo "$as_me: error: in \`$ac_pwd':" >&2;}
14560{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
14561See \`config.log' for more details." >&5
14562echo "$as_me: error: cannot compute sizeof (void *), 77
14563See \`config.log' for more details." >&2;}
7357c5b6 14564 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
14565esac
14566else
14567 if test "$cross_compiling" = yes; then
7357c5b6
AM
14568 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14569echo "$as_me: error: in \`$ac_pwd':" >&2;}
14570{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14571See \`config.log' for more details." >&5
14572echo "$as_me: error: cannot run test program while cross compiling
14573See \`config.log' for more details." >&2;}
14574 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14575else
14576 cat >conftest.$ac_ext <<_ACEOF
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
14582$ac_includes_default
14583long longval () { return (long) (sizeof (void *)); }
14584unsigned long ulongval () { return (long) (sizeof (void *)); }
14585#include <stdio.h>
14586#include <stdlib.h>
14587int
14588main ()
14589{
14590
14591 FILE *f = fopen ("conftest.val", "w");
14592 if (! f)
14593 exit (1);
14594 if (((long) (sizeof (void *))) < 0)
14595 {
14596 long i = longval ();
14597 if (i != ((long) (sizeof (void *))))
14598 exit (1);
14599 fprintf (f, "%ld\n", i);
14600 }
14601 else
14602 {
14603 unsigned long i = ulongval ();
14604 if (i != ((long) (sizeof (void *))))
14605 exit (1);
14606 fprintf (f, "%lu\n", i);
14607 }
14608 exit (ferror (f) || fclose (f) != 0);
14609
14610 ;
14611 return 0;
14612}
14613_ACEOF
14614rm -f conftest$ac_exeext
14615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14616 (eval $ac_link) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_sizeof_void_p=`cat conftest.val`
14626else
14627 echo "$as_me: program exited with status $ac_status" >&5
14628echo "$as_me: failed program was:" >&5
14629sed 's/^/| /' conftest.$ac_ext >&5
14630
14631( exit $ac_status )
7357c5b6
AM
14632{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14633echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
14634{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14635See \`config.log' for more details." >&5
14636echo "$as_me: error: cannot compute sizeof (void *), 77
14637See \`config.log' for more details." >&2;}
7357c5b6 14638 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14639fi
14640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14641fi
14642fi
14643rm -f conftest.val
14644else
14645 ac_cv_sizeof_void_p=0
14646fi
14647fi
14648echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14649echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14650cat >>confdefs.h <<_ACEOF
14651#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14652_ACEOF
14653
14654 ;;
14655esac
14656
14657# Lacking an uint64_t? Test size of long
14658case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14659 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14660echo $ECHO_N "checking for long... $ECHO_C" >&6
14661if test "${ac_cv_type_long+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664 cat >conftest.$ac_ext <<_ACEOF
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670$ac_includes_default
14671int
14672main ()
14673{
14674if ((long *) 0)
14675 return 0;
14676if (sizeof (long))
14677 return 0;
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
7357c5b6
AM
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
d5efd9fc
AM
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_type_long=yes
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709ac_cv_type_long=no
14710fi
14711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14712fi
14713echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14714echo "${ECHO_T}$ac_cv_type_long" >&6
14715
14716echo "$as_me:$LINENO: checking size of long" >&5
14717echo $ECHO_N "checking size of long... $ECHO_C" >&6
14718if test "${ac_cv_sizeof_long+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
14721 if test "$ac_cv_type_long" = yes; then
14722 # The cast to unsigned long works around a bug in the HP C Compiler
14723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14725 # This bug is HP SR number 8606223364.
14726 if test "$cross_compiling" = yes; then
14727 # Depending upon the size, compute the lo and hi bounds.
14728cat >conftest.$ac_ext <<_ACEOF
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734$ac_includes_default
14735int
14736main ()
14737{
14738static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14739test_array [0] = 0
14740
14741 ;
14742 return 0;
14743}
14744_ACEOF
14745rm -f conftest.$ac_objext
14746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747 (eval $ac_compile) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
7357c5b6
AM
14754 { ac_try='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
d5efd9fc
AM
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest.$ac_objext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_lo=0 ac_mid=0
14768 while :; do
14769 cat >conftest.$ac_ext <<_ACEOF
14770/* confdefs.h. */
14771_ACEOF
14772cat confdefs.h >>conftest.$ac_ext
14773cat >>conftest.$ac_ext <<_ACEOF
14774/* end confdefs.h. */
14775$ac_includes_default
14776int
14777main ()
14778{
14779static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14780test_array [0] = 0
14781
14782 ;
14783 return 0;
14784}
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
7357c5b6
AM
14795 { ac_try='test -z "$ac_c_werror_flag"
14796 || test ! -s conftest.err'
d5efd9fc
AM
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest.$ac_objext'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_hi=$ac_mid; break
14809else
14810 echo "$as_me: failed program was:" >&5
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
14813ac_lo=`expr $ac_mid + 1`
14814 if test $ac_lo -le $ac_mid; then
14815 ac_lo= ac_hi=
14816 break
14817 fi
14818 ac_mid=`expr 2 '*' $ac_mid + 1`
14819fi
14820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14821 done
14822else
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
14826cat >conftest.$ac_ext <<_ACEOF
14827/* confdefs.h. */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832$ac_includes_default
14833int
14834main ()
14835{
14836static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14837test_array [0] = 0
14838
14839 ;
14840 return 0;
14841}
14842_ACEOF
14843rm -f conftest.$ac_objext
14844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845 (eval $ac_compile) 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
7357c5b6
AM
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
d5efd9fc
AM
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest.$ac_objext'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_hi=-1 ac_mid=-1
14866 while :; do
14867 cat >conftest.$ac_ext <<_ACEOF
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
14873$ac_includes_default
14874int
14875main ()
14876{
14877static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14878test_array [0] = 0
14879
14880 ;
14881 return 0;
14882}
14883_ACEOF
14884rm -f conftest.$ac_objext
14885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14886 (eval $ac_compile) 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
7357c5b6
AM
14893 { ac_try='test -z "$ac_c_werror_flag"
14894 || test ! -s conftest.err'
d5efd9fc
AM
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; } &&
14900 { ac_try='test -s conftest.$ac_objext'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 ac_lo=$ac_mid; break
14907else
14908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911ac_hi=`expr '(' $ac_mid ')' - 1`
14912 if test $ac_mid -le $ac_hi; then
14913 ac_lo= ac_hi=
14914 break
14915 fi
14916 ac_mid=`expr 2 '*' $ac_mid`
14917fi
14918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14919 done
14920else
14921 echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
14924ac_lo= ac_hi=
14925fi
14926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14927fi
14928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14929# Binary search between lo and hi bounds.
14930while test "x$ac_lo" != "x$ac_hi"; do
14931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14932 cat >conftest.$ac_ext <<_ACEOF
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
14938$ac_includes_default
14939int
14940main ()
14941{
14942static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14943test_array [0] = 0
14944
14945 ;
14946 return 0;
14947}
14948_ACEOF
14949rm -f conftest.$ac_objext
14950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
7357c5b6
AM
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
d5efd9fc
AM
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_hi=$ac_mid
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976ac_lo=`expr '(' $ac_mid ')' + 1`
14977fi
14978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14979done
14980case $ac_lo in
14981?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
14982'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14983echo "$as_me: error: in \`$ac_pwd':" >&2;}
14984{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
14985See \`config.log' for more details." >&5
14986echo "$as_me: error: cannot compute sizeof (long), 77
14987See \`config.log' for more details." >&2;}
7357c5b6 14988 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
14989esac
14990else
14991 if test "$cross_compiling" = yes; then
7357c5b6
AM
14992 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14993echo "$as_me: error: in \`$ac_pwd':" >&2;}
14994{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14995See \`config.log' for more details." >&5
14996echo "$as_me: error: cannot run test program while cross compiling
14997See \`config.log' for more details." >&2;}
14998 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14999else
15000 cat >conftest.$ac_ext <<_ACEOF
15001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
15006$ac_includes_default
15007long longval () { return (long) (sizeof (long)); }
15008unsigned long ulongval () { return (long) (sizeof (long)); }
15009#include <stdio.h>
15010#include <stdlib.h>
15011int
15012main ()
15013{
15014
15015 FILE *f = fopen ("conftest.val", "w");
15016 if (! f)
15017 exit (1);
15018 if (((long) (sizeof (long))) < 0)
15019 {
15020 long i = longval ();
15021 if (i != ((long) (sizeof (long))))
15022 exit (1);
15023 fprintf (f, "%ld\n", i);
15024 }
15025 else
15026 {
15027 unsigned long i = ulongval ();
15028 if (i != ((long) (sizeof (long))))
15029 exit (1);
15030 fprintf (f, "%lu\n", i);
15031 }
15032 exit (ferror (f) || fclose (f) != 0);
15033
15034 ;
15035 return 0;
15036}
15037_ACEOF
15038rm -f conftest$ac_exeext
15039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040 (eval $ac_link) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_sizeof_long=`cat conftest.val`
15050else
15051 echo "$as_me: program exited with status $ac_status" >&5
15052echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055( exit $ac_status )
7357c5b6
AM
15056{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15057echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15058{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15059See \`config.log' for more details." >&5
15060echo "$as_me: error: cannot compute sizeof (long), 77
15061See \`config.log' for more details." >&2;}
7357c5b6 15062 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15063fi
15064rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15065fi
15066fi
15067rm -f conftest.val
15068else
15069 ac_cv_sizeof_long=0
15070fi
15071fi
15072echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15073echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15074cat >>confdefs.h <<_ACEOF
15075#define SIZEOF_LONG $ac_cv_sizeof_long
15076_ACEOF
15077
15078 ;;
15079esac
15080
15081if test $acx_cv_header_stdint = stddef.h; then
15082 # Lacking a good header? Test size of everything and deduce all types.
15083 echo "$as_me:$LINENO: checking for int" >&5
15084echo $ECHO_N "checking for int... $ECHO_C" >&6
15085if test "${ac_cv_type_int+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087else
15088 cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
15093/* end confdefs.h. */
15094$ac_includes_default
15095int
15096main ()
15097{
15098if ((int *) 0)
15099 return 0;
15100if (sizeof (int))
15101 return 0;
15102 ;
15103 return 0;
15104}
15105_ACEOF
15106rm -f conftest.$ac_objext
15107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
7357c5b6
AM
15115 { ac_try='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
d5efd9fc
AM
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15128 ac_cv_type_int=yes
15129else
15130 echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133ac_cv_type_int=no
15134fi
15135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136fi
15137echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15138echo "${ECHO_T}$ac_cv_type_int" >&6
15139
15140echo "$as_me:$LINENO: checking size of int" >&5
15141echo $ECHO_N "checking size of int... $ECHO_C" >&6
15142if test "${ac_cv_sizeof_int+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144else
15145 if test "$ac_cv_type_int" = yes; then
15146 # The cast to unsigned long works around a bug in the HP C Compiler
15147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15149 # This bug is HP SR number 8606223364.
15150 if test "$cross_compiling" = yes; then
15151 # Depending upon the size, compute the lo and hi bounds.
15152cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158$ac_includes_default
15159int
15160main ()
15161{
15162static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15163test_array [0] = 0
15164
15165 ;
15166 return 0;
15167}
15168_ACEOF
15169rm -f conftest.$ac_objext
15170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>conftest.er1
15172 ac_status=$?
15173 grep -v '^ *+' conftest.er1 >conftest.err
15174 rm -f conftest.er1
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
7357c5b6
AM
15178 { ac_try='test -z "$ac_c_werror_flag"
15179 || test ! -s conftest.err'
d5efd9fc
AM
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_lo=0 ac_mid=0
15192 while :; do
15193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
15200int
15201main ()
15202{
15203static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15204test_array [0] = 0
15205
15206 ;
15207 return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext
15211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15212 (eval $ac_compile) 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
7357c5b6
AM
15219 { ac_try='test -z "$ac_c_werror_flag"
15220 || test ! -s conftest.err'
d5efd9fc
AM
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_hi=$ac_mid; break
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_lo=`expr $ac_mid + 1`
15238 if test $ac_lo -le $ac_mid; then
15239 ac_lo= ac_hi=
15240 break
15241 fi
15242 ac_mid=`expr 2 '*' $ac_mid + 1`
15243fi
15244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 done
15246else
15247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256$ac_includes_default
15257int
15258main ()
15259{
15260static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15261test_array [0] = 0
15262
15263 ;
15264 return 0;
15265}
15266_ACEOF
15267rm -f conftest.$ac_objext
15268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } &&
7357c5b6
AM
15276 { ac_try='test -z "$ac_c_werror_flag"
15277 || test ! -s conftest.err'
d5efd9fc
AM
15278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279 (eval $ac_try) 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; } &&
15283 { ac_try='test -s conftest.$ac_objext'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15286 ac_status=$?
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; }; then
15289 ac_hi=-1 ac_mid=-1
15290 while :; do
15291 cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297$ac_includes_default
15298int
15299main ()
15300{
15301static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15302test_array [0] = 0
15303
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308rm -f conftest.$ac_objext
15309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310 (eval $ac_compile) 2>conftest.er1
15311 ac_status=$?
15312 grep -v '^ *+' conftest.er1 >conftest.err
15313 rm -f conftest.er1
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
7357c5b6
AM
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
d5efd9fc
AM
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest.$ac_objext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15327 ac_status=$?
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_lo=$ac_mid; break
15331else
15332 echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335ac_hi=`expr '(' $ac_mid ')' - 1`
15336 if test $ac_mid -le $ac_hi; then
15337 ac_lo= ac_hi=
15338 break
15339 fi
15340 ac_mid=`expr 2 '*' $ac_mid`
15341fi
15342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 done
15344else
15345 echo "$as_me: failed program was:" >&5
15346sed 's/^/| /' conftest.$ac_ext >&5
15347
15348ac_lo= ac_hi=
15349fi
15350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15351fi
15352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15353# Binary search between lo and hi bounds.
15354while test "x$ac_lo" != "x$ac_hi"; do
15355 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15356 cat >conftest.$ac_ext <<_ACEOF
15357/* confdefs.h. */
15358_ACEOF
15359cat confdefs.h >>conftest.$ac_ext
15360cat >>conftest.$ac_ext <<_ACEOF
15361/* end confdefs.h. */
15362$ac_includes_default
15363int
15364main ()
15365{
15366static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15367test_array [0] = 0
15368
15369 ;
15370 return 0;
15371}
15372_ACEOF
15373rm -f conftest.$ac_objext
15374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15375 (eval $ac_compile) 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
7357c5b6
AM
15382 { ac_try='test -z "$ac_c_werror_flag"
15383 || test ! -s conftest.err'
d5efd9fc
AM
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try='test -s conftest.$ac_objext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 ac_hi=$ac_mid
15396else
15397 echo "$as_me: failed program was:" >&5
15398sed 's/^/| /' conftest.$ac_ext >&5
15399
15400ac_lo=`expr '(' $ac_mid ')' + 1`
15401fi
15402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15403done
15404case $ac_lo in
15405?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
15406'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15407echo "$as_me: error: in \`$ac_pwd':" >&2;}
15408{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
15409See \`config.log' for more details." >&5
15410echo "$as_me: error: cannot compute sizeof (int), 77
15411See \`config.log' for more details." >&2;}
7357c5b6 15412 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15413esac
15414else
15415 if test "$cross_compiling" = yes; then
7357c5b6
AM
15416 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15417echo "$as_me: error: in \`$ac_pwd':" >&2;}
15418{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15419See \`config.log' for more details." >&5
15420echo "$as_me: error: cannot run test program while cross compiling
15421See \`config.log' for more details." >&2;}
15422 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15423else
15424 cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
15431long longval () { return (long) (sizeof (int)); }
15432unsigned long ulongval () { return (long) (sizeof (int)); }
15433#include <stdio.h>
15434#include <stdlib.h>
15435int
15436main ()
15437{
15438
15439 FILE *f = fopen ("conftest.val", "w");
15440 if (! f)
15441 exit (1);
15442 if (((long) (sizeof (int))) < 0)
15443 {
15444 long i = longval ();
15445 if (i != ((long) (sizeof (int))))
15446 exit (1);
15447 fprintf (f, "%ld\n", i);
15448 }
15449 else
15450 {
15451 unsigned long i = ulongval ();
15452 if (i != ((long) (sizeof (int))))
15453 exit (1);
15454 fprintf (f, "%lu\n", i);
15455 }
15456 exit (ferror (f) || fclose (f) != 0);
15457
15458 ;
15459 return 0;
15460}
15461_ACEOF
15462rm -f conftest$ac_exeext
15463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>&5
15465 ac_status=$?
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_sizeof_int=`cat conftest.val`
15474else
15475 echo "$as_me: program exited with status $ac_status" >&5
15476echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
15479( exit $ac_status )
7357c5b6
AM
15480{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15481echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15482{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15483See \`config.log' for more details." >&5
15484echo "$as_me: error: cannot compute sizeof (int), 77
15485See \`config.log' for more details." >&2;}
7357c5b6 15486 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15487fi
15488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15489fi
15490fi
15491rm -f conftest.val
15492else
15493 ac_cv_sizeof_int=0
15494fi
15495fi
15496echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15497echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15498cat >>confdefs.h <<_ACEOF
15499#define SIZEOF_INT $ac_cv_sizeof_int
15500_ACEOF
15501
15502
15503 echo "$as_me:$LINENO: checking for short" >&5
15504echo $ECHO_N "checking for short... $ECHO_C" >&6
15505if test "${ac_cv_type_short+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507else
15508 cat >conftest.$ac_ext <<_ACEOF
15509/* confdefs.h. */
15510_ACEOF
15511cat confdefs.h >>conftest.$ac_ext
15512cat >>conftest.$ac_ext <<_ACEOF
15513/* end confdefs.h. */
15514$ac_includes_default
15515int
15516main ()
15517{
15518if ((short *) 0)
15519 return 0;
15520if (sizeof (short))
15521 return 0;
15522 ;
15523 return 0;
15524}
15525_ACEOF
15526rm -f conftest.$ac_objext
15527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
7357c5b6
AM
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
d5efd9fc
AM
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_type_short=yes
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553ac_cv_type_short=no
15554fi
15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15556fi
15557echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15558echo "${ECHO_T}$ac_cv_type_short" >&6
15559
15560echo "$as_me:$LINENO: checking size of short" >&5
15561echo $ECHO_N "checking size of short... $ECHO_C" >&6
15562if test "${ac_cv_sizeof_short+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564else
15565 if test "$ac_cv_type_short" = yes; then
15566 # The cast to unsigned long works around a bug in the HP C Compiler
15567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15569 # This bug is HP SR number 8606223364.
15570 if test "$cross_compiling" = yes; then
15571 # Depending upon the size, compute the lo and hi bounds.
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578$ac_includes_default
15579int
15580main ()
15581{
15582static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15583test_array [0] = 0
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext
15590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
7357c5b6
AM
15598 { ac_try='test -z "$ac_c_werror_flag"
15599 || test ! -s conftest.err'
d5efd9fc
AM
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_lo=0 ac_mid=0
15612 while :; do
15613 cat >conftest.$ac_ext <<_ACEOF
15614/* confdefs.h. */
15615_ACEOF
15616cat confdefs.h >>conftest.$ac_ext
15617cat >>conftest.$ac_ext <<_ACEOF
15618/* end confdefs.h. */
15619$ac_includes_default
15620int
15621main ()
15622{
15623static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15624test_array [0] = 0
15625
15626 ;
15627 return 0;
15628}
15629_ACEOF
15630rm -f conftest.$ac_objext
15631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
7357c5b6
AM
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
d5efd9fc
AM
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_hi=$ac_mid; break
15653else
15654 echo "$as_me: failed program was:" >&5
15655sed 's/^/| /' conftest.$ac_ext >&5
15656
15657ac_lo=`expr $ac_mid + 1`
15658 if test $ac_lo -le $ac_mid; then
15659 ac_lo= ac_hi=
15660 break
15661 fi
15662 ac_mid=`expr 2 '*' $ac_mid + 1`
15663fi
15664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15665 done
15666else
15667 echo "$as_me: failed program was:" >&5
15668sed 's/^/| /' conftest.$ac_ext >&5
15669
15670cat >conftest.$ac_ext <<_ACEOF
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676$ac_includes_default
15677int
15678main ()
15679{
15680static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15681test_array [0] = 0
15682
15683 ;
15684 return 0;
15685}
15686_ACEOF
15687rm -f conftest.$ac_objext
15688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15689 (eval $ac_compile) 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
7357c5b6
AM
15696 { ac_try='test -z "$ac_c_werror_flag"
15697 || test ! -s conftest.err'
d5efd9fc
AM
15698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15699 (eval $ac_try) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_hi=-1 ac_mid=-1
15710 while :; do
15711 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718int
15719main ()
15720{
15721static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15722test_array [0] = 0
15723
15724 ;
15725 return 0;
15726}
15727_ACEOF
15728rm -f conftest.$ac_objext
15729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15730 (eval $ac_compile) 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
7357c5b6
AM
15737 { ac_try='test -z "$ac_c_werror_flag"
15738 || test ! -s conftest.err'
d5efd9fc
AM
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_lo=$ac_mid; break
15751else
15752 echo "$as_me: failed program was:" >&5
15753sed 's/^/| /' conftest.$ac_ext >&5
15754
15755ac_hi=`expr '(' $ac_mid ')' - 1`
15756 if test $ac_mid -le $ac_hi; then
15757 ac_lo= ac_hi=
15758 break
15759 fi
15760 ac_mid=`expr 2 '*' $ac_mid`
15761fi
15762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15763 done
15764else
15765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768ac_lo= ac_hi=
15769fi
15770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15771fi
15772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15773# Binary search between lo and hi bounds.
15774while test "x$ac_lo" != "x$ac_hi"; do
15775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15776 cat >conftest.$ac_ext <<_ACEOF
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
15782$ac_includes_default
15783int
15784main ()
15785{
15786static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15787test_array [0] = 0
15788
15789 ;
15790 return 0;
15791}
15792_ACEOF
15793rm -f conftest.$ac_objext
15794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
7357c5b6
AM
15802 { ac_try='test -z "$ac_c_werror_flag"
15803 || test ! -s conftest.err'
d5efd9fc
AM
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; } &&
15809 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15815 ac_hi=$ac_mid
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820ac_lo=`expr '(' $ac_mid ')' + 1`
15821fi
15822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15823done
15824case $ac_lo in
15825?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
15826'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15827echo "$as_me: error: in \`$ac_pwd':" >&2;}
15828{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
15829See \`config.log' for more details." >&5
15830echo "$as_me: error: cannot compute sizeof (short), 77
15831See \`config.log' for more details." >&2;}
7357c5b6 15832 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15833esac
15834else
15835 if test "$cross_compiling" = yes; then
7357c5b6
AM
15836 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15837echo "$as_me: error: in \`$ac_pwd':" >&2;}
15838{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15839See \`config.log' for more details." >&5
15840echo "$as_me: error: cannot run test program while cross compiling
15841See \`config.log' for more details." >&2;}
15842 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15843else
15844 cat >conftest.$ac_ext <<_ACEOF
15845/* confdefs.h. */
15846_ACEOF
15847cat confdefs.h >>conftest.$ac_ext
15848cat >>conftest.$ac_ext <<_ACEOF
15849/* end confdefs.h. */
15850$ac_includes_default
15851long longval () { return (long) (sizeof (short)); }
15852unsigned long ulongval () { return (long) (sizeof (short)); }
15853#include <stdio.h>
15854#include <stdlib.h>
15855int
15856main ()
15857{
15858
15859 FILE *f = fopen ("conftest.val", "w");
15860 if (! f)
15861 exit (1);
15862 if (((long) (sizeof (short))) < 0)
15863 {
15864 long i = longval ();
15865 if (i != ((long) (sizeof (short))))
15866 exit (1);
15867 fprintf (f, "%ld\n", i);
15868 }
15869 else
15870 {
15871 unsigned long i = ulongval ();
15872 if (i != ((long) (sizeof (short))))
15873 exit (1);
15874 fprintf (f, "%lu\n", i);
15875 }
15876 exit (ferror (f) || fclose (f) != 0);
15877
15878 ;
15879 return 0;
15880}
15881_ACEOF
15882rm -f conftest$ac_exeext
15883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15884 (eval $ac_link) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_cv_sizeof_short=`cat conftest.val`
15894else
15895 echo "$as_me: program exited with status $ac_status" >&5
15896echo "$as_me: failed program was:" >&5
15897sed 's/^/| /' conftest.$ac_ext >&5
15898
15899( exit $ac_status )
7357c5b6
AM
15900{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15901echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15902{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15903See \`config.log' for more details." >&5
15904echo "$as_me: error: cannot compute sizeof (short), 77
15905See \`config.log' for more details." >&2;}
7357c5b6 15906 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15907fi
15908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15909fi
15910fi
15911rm -f conftest.val
15912else
15913 ac_cv_sizeof_short=0
15914fi
15915fi
15916echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15917echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15918cat >>confdefs.h <<_ACEOF
15919#define SIZEOF_SHORT $ac_cv_sizeof_short
15920_ACEOF
15921
15922
15923 echo "$as_me:$LINENO: checking for char" >&5
15924echo $ECHO_N "checking for char... $ECHO_C" >&6
15925if test "${ac_cv_type_char+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15927else
15928 cat >conftest.$ac_ext <<_ACEOF
15929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
15933/* end confdefs.h. */
15934$ac_includes_default
15935int
15936main ()
15937{
15938if ((char *) 0)
15939 return 0;
15940if (sizeof (char))
15941 return 0;
15942 ;
15943 return 0;
15944}
15945_ACEOF
15946rm -f conftest.$ac_objext
15947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15948 (eval $ac_compile) 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } &&
7357c5b6
AM
15955 { ac_try='test -z "$ac_c_werror_flag"
15956 || test ! -s conftest.err'
d5efd9fc
AM
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; } &&
15962 { ac_try='test -s conftest.$ac_objext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_type_char=yes
15969else
15970 echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973ac_cv_type_char=no
15974fi
15975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976fi
15977echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15978echo "${ECHO_T}$ac_cv_type_char" >&6
15979
15980echo "$as_me:$LINENO: checking size of char" >&5
15981echo $ECHO_N "checking size of char... $ECHO_C" >&6
15982if test "${ac_cv_sizeof_char+set}" = set; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984else
15985 if test "$ac_cv_type_char" = yes; then
15986 # The cast to unsigned long works around a bug in the HP C Compiler
15987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15989 # This bug is HP SR number 8606223364.
15990 if test "$cross_compiling" = yes; then
15991 # Depending upon the size, compute the lo and hi bounds.
15992cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998$ac_includes_default
15999int
16000main ()
16001{
16002static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16003test_array [0] = 0
16004
16005 ;
16006 return 0;
16007}
16008_ACEOF
16009rm -f conftest.$ac_objext
16010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16011 (eval $ac_compile) 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
7357c5b6
AM
16018 { ac_try='test -z "$ac_c_werror_flag"
16019 || test ! -s conftest.err'
d5efd9fc
AM
16020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021 (eval $ac_try) 2>&5
16022 ac_status=$?
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }; then
16031 ac_lo=0 ac_mid=0
16032 while :; do
16033 cat >conftest.$ac_ext <<_ACEOF
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039$ac_includes_default
16040int
16041main ()
16042{
16043static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16044test_array [0] = 0
16045
16046 ;
16047 return 0;
16048}
16049_ACEOF
16050rm -f conftest.$ac_objext
16051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>conftest.er1
16053 ac_status=$?
16054 grep -v '^ *+' conftest.er1 >conftest.err
16055 rm -f conftest.er1
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
7357c5b6
AM
16059 { ac_try='test -z "$ac_c_werror_flag"
16060 || test ! -s conftest.err'
d5efd9fc
AM
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest.$ac_objext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 ac_hi=$ac_mid; break
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077ac_lo=`expr $ac_mid + 1`
16078 if test $ac_lo -le $ac_mid; then
16079 ac_lo= ac_hi=
16080 break
16081 fi
16082 ac_mid=`expr 2 '*' $ac_mid + 1`
16083fi
16084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16085 done
16086else
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
16090cat >conftest.$ac_ext <<_ACEOF
16091/* confdefs.h. */
16092_ACEOF
16093cat confdefs.h >>conftest.$ac_ext
16094cat >>conftest.$ac_ext <<_ACEOF
16095/* end confdefs.h. */
16096$ac_includes_default
16097int
16098main ()
16099{
16100static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16101test_array [0] = 0
16102
16103 ;
16104 return 0;
16105}
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
7357c5b6
AM
16116 { ac_try='test -z "$ac_c_werror_flag"
16117 || test ! -s conftest.err'
d5efd9fc
AM
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_hi=-1 ac_mid=-1
16130 while :; do
16131 cat >conftest.$ac_ext <<_ACEOF
16132/* confdefs.h. */
16133_ACEOF
16134cat confdefs.h >>conftest.$ac_ext
16135cat >>conftest.$ac_ext <<_ACEOF
16136/* end confdefs.h. */
16137$ac_includes_default
16138int
16139main ()
16140{
16141static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16142test_array [0] = 0
16143
16144 ;
16145 return 0;
16146}
16147_ACEOF
16148rm -f conftest.$ac_objext
16149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
7357c5b6
AM
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
d5efd9fc
AM
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_lo=$ac_mid; break
16171else
16172 echo "$as_me: failed program was:" >&5
16173sed 's/^/| /' conftest.$ac_ext >&5
16174
16175ac_hi=`expr '(' $ac_mid ')' - 1`
16176 if test $ac_mid -le $ac_hi; then
16177 ac_lo= ac_hi=
16178 break
16179 fi
16180 ac_mid=`expr 2 '*' $ac_mid`
16181fi
16182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16183 done
16184else
16185 echo "$as_me: failed program was:" >&5
16186sed 's/^/| /' conftest.$ac_ext >&5
16187
16188ac_lo= ac_hi=
16189fi
16190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16191fi
16192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16193# Binary search between lo and hi bounds.
16194while test "x$ac_lo" != "x$ac_hi"; do
16195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16196 cat >conftest.$ac_ext <<_ACEOF
16197/* confdefs.h. */
16198_ACEOF
16199cat confdefs.h >>conftest.$ac_ext
16200cat >>conftest.$ac_ext <<_ACEOF
16201/* end confdefs.h. */
16202$ac_includes_default
16203int
16204main ()
16205{
16206static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16207test_array [0] = 0
16208
16209 ;
16210 return 0;
16211}
16212_ACEOF
16213rm -f conftest.$ac_objext
16214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>conftest.er1
16216 ac_status=$?
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } &&
7357c5b6
AM
16222 { ac_try='test -z "$ac_c_werror_flag"
16223 || test ! -s conftest.err'
d5efd9fc
AM
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16226 ac_status=$?
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; } &&
16229 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16235 ac_hi=$ac_mid
16236else
16237 echo "$as_me: failed program was:" >&5
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
16240ac_lo=`expr '(' $ac_mid ')' + 1`
16241fi
16242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243done
16244case $ac_lo in
16245?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
16246'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16247echo "$as_me: error: in \`$ac_pwd':" >&2;}
16248{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
16249See \`config.log' for more details." >&5
16250echo "$as_me: error: cannot compute sizeof (char), 77
16251See \`config.log' for more details." >&2;}
7357c5b6 16252 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16253esac
16254else
16255 if test "$cross_compiling" = yes; then
7357c5b6
AM
16256 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16257echo "$as_me: error: in \`$ac_pwd':" >&2;}
16258{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16259See \`config.log' for more details." >&5
16260echo "$as_me: error: cannot run test program while cross compiling
16261See \`config.log' for more details." >&2;}
16262 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16263else
16264 cat >conftest.$ac_ext <<_ACEOF
16265/* confdefs.h. */
16266_ACEOF
16267cat confdefs.h >>conftest.$ac_ext
16268cat >>conftest.$ac_ext <<_ACEOF
16269/* end confdefs.h. */
16270$ac_includes_default
16271long longval () { return (long) (sizeof (char)); }
16272unsigned long ulongval () { return (long) (sizeof (char)); }
16273#include <stdio.h>
16274#include <stdlib.h>
16275int
16276main ()
16277{
16278
16279 FILE *f = fopen ("conftest.val", "w");
16280 if (! f)
16281 exit (1);
16282 if (((long) (sizeof (char))) < 0)
16283 {
16284 long i = longval ();
16285 if (i != ((long) (sizeof (char))))
16286 exit (1);
16287 fprintf (f, "%ld\n", i);
16288 }
16289 else
16290 {
16291 unsigned long i = ulongval ();
16292 if (i != ((long) (sizeof (char))))
16293 exit (1);
16294 fprintf (f, "%lu\n", i);
16295 }
16296 exit (ferror (f) || fclose (f) != 0);
16297
16298 ;
16299 return 0;
16300}
16301_ACEOF
16302rm -f conftest$ac_exeext
16303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16304 (eval $ac_link) 2>&5
16305 ac_status=$?
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_sizeof_char=`cat conftest.val`
16314else
16315 echo "$as_me: program exited with status $ac_status" >&5
16316echo "$as_me: failed program was:" >&5
16317sed 's/^/| /' conftest.$ac_ext >&5
16318
16319( exit $ac_status )
7357c5b6
AM
16320{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16321echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16322{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16323See \`config.log' for more details." >&5
16324echo "$as_me: error: cannot compute sizeof (char), 77
16325See \`config.log' for more details." >&2;}
7357c5b6 16326 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16327fi
16328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16329fi
16330fi
16331rm -f conftest.val
16332else
16333 ac_cv_sizeof_char=0
16334fi
16335fi
16336echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16337echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16338cat >>confdefs.h <<_ACEOF
16339#define SIZEOF_CHAR $ac_cv_sizeof_char
16340_ACEOF
16341
16342
16343
16344 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
16345echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
16346 case "$ac_cv_sizeof_char" in
16347 1) acx_cv_type_int8_t=char ;;
16348 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
16349echo "$as_me: error: no 8-bit type" >&2;}
16350 { (exit please report a bug); exit please report a bug; }; }
16351 esac
16352 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
16353echo "${ECHO_T}$acx_cv_type_int8_t" >&6
16354
16355 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
16356echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
16357 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16358 2:*) acx_cv_type_int16_t=int ;;
16359 *:2) acx_cv_type_int16_t=short ;;
16360 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
16361echo "$as_me: error: no 16-bit type" >&2;}
16362 { (exit please report a bug); exit please report a bug; }; }
16363 esac
16364 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
16365echo "${ECHO_T}$acx_cv_type_int16_t" >&6
16366
16367 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
16368echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
16369 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16370 4:*) acx_cv_type_int32_t=int ;;
16371 *:4) acx_cv_type_int32_t=long ;;
16372 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
16373echo "$as_me: error: no 32-bit type" >&2;}
16374 { (exit please report a bug); exit please report a bug; }; }
16375 esac
16376 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
16377echo "${ECHO_T}$acx_cv_type_int32_t" >&6
16378fi
16379
16380# These tests are here to make the output prettier
16381
16382if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16383 case "$ac_cv_sizeof_long" in
16384 8) acx_cv_type_int64_t=long ;;
16385 esac
16386 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
16387echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
16388 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16389echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
16390fi
16391
16392# Now we can use the above types
16393
16394if test "$ac_cv_type_uintptr_t" != yes; then
16395 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
16396echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
16397 case $ac_cv_sizeof_void_p in
16398 2) acx_cv_type_intptr_t=int16_t ;;
16399 4) acx_cv_type_intptr_t=int32_t ;;
16400 8) acx_cv_type_intptr_t=int64_t ;;
16401 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
16402echo "$as_me: error: no equivalent for intptr_t" >&2;}
16403 { (exit please report a bug); exit please report a bug; }; }
16404 esac
16405 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
16406echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
16407fi
16408
16409# ----------------- done all checks, emit header -------------
16410 ac_config_commands="$ac_config_commands bfd_stdint.h"
16411
16412
16413
2ba49b59
KC
16414echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
16415echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
16416if test "${ac_cv_header_time+set}" = set; then
16417 echo $ECHO_N "(cached) $ECHO_C" >&6
16418else
16419 cat >conftest.$ac_ext <<_ACEOF
16420/* confdefs.h. */
16421_ACEOF
16422cat confdefs.h >>conftest.$ac_ext
16423cat >>conftest.$ac_ext <<_ACEOF
16424/* end confdefs.h. */
16425#include <sys/types.h>
16426#include <sys/time.h>
16427#include <time.h>
16428
16429int
16430main ()
16431{
16432if ((struct tm *) 0)
16433return 0;
16434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
16439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16440 (eval $ac_compile) 2>conftest.er1
16441 ac_status=$?
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
7357c5b6
AM
16447 { ac_try='test -z "$ac_c_werror_flag"
16448 || test ! -s conftest.err'
2ba49b59
KC
16449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); }; } &&
16454 { ac_try='test -s conftest.$ac_objext'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; }; then
16460 ac_cv_header_time=yes
16461else
16462 echo "$as_me: failed program was:" >&5
16463sed 's/^/| /' conftest.$ac_ext >&5
16464
16465ac_cv_header_time=no
16466fi
16467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16468fi
16469echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
16470echo "${ECHO_T}$ac_cv_header_time" >&6
16471if test $ac_cv_header_time = yes; then
16472
16473cat >>confdefs.h <<\_ACEOF
16474#define TIME_WITH_SYS_TIME 1
16475_ACEOF
16476
16477fi
16478
16479
16480
16481
16482
16483
16484ac_header_dirent=no
16485for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16486 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16487echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16488echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
16489if eval "test \"\${$as_ac_Header+set}\" = set"; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16491else
16492 cat >conftest.$ac_ext <<_ACEOF
16493/* confdefs.h. */
16494_ACEOF
16495cat confdefs.h >>conftest.$ac_ext
16496cat >>conftest.$ac_ext <<_ACEOF
16497/* end confdefs.h. */
16498#include <sys/types.h>
16499#include <$ac_hdr>
16500
16501int
16502main ()
16503{
16504if ((DIR *) 0)
16505return 0;
16506 ;
16507 return 0;
16508}
16509_ACEOF
16510rm -f conftest.$ac_objext
16511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16512 (eval $ac_compile) 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
7357c5b6
AM
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
2ba49b59
KC
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 eval "$as_ac_Header=yes"
16533else
16534 echo "$as_me: failed program was:" >&5
16535sed 's/^/| /' conftest.$ac_ext >&5
16536
16537eval "$as_ac_Header=no"
16538fi
16539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16540fi
16541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16543if test `eval echo '${'$as_ac_Header'}'` = yes; then
16544 cat >>confdefs.h <<_ACEOF
16545#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16546_ACEOF
16547
16548ac_header_dirent=$ac_hdr; break
16549fi
16550
16551done
16552# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16553if test $ac_header_dirent = dirent.h; then
16554 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16555echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16556if test "${ac_cv_search_opendir+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559 ac_func_search_save_LIBS=$LIBS
16560ac_cv_search_opendir=no
16561cat >conftest.$ac_ext <<_ACEOF
16562/* confdefs.h. */
16563_ACEOF
16564cat confdefs.h >>conftest.$ac_ext
16565cat >>conftest.$ac_ext <<_ACEOF
16566/* end confdefs.h. */
16567
16568/* Override any gcc2 internal prototype to avoid an error. */
16569#ifdef __cplusplus
16570extern "C"
16571#endif
16572/* We use char because int might match the return type of a gcc2
16573 builtin and then its argument prototype would still apply. */
16574char opendir ();
16575int
16576main ()
16577{
16578opendir ();
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext conftest$ac_exeext
16584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>conftest.er1
16586 ac_status=$?
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
7357c5b6
AM
16592 { ac_try='test -z "$ac_c_werror_flag"
16593 || test ! -s conftest.err'
2ba49b59
KC
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_search_opendir="none required"
16606else
16607 echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
16610fi
16611rm -f conftest.err conftest.$ac_objext \
16612 conftest$ac_exeext conftest.$ac_ext
16613if test "$ac_cv_search_opendir" = no; then
16614 for ac_lib in dir; do
16615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16616 cat >conftest.$ac_ext <<_ACEOF
16617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
16622
16623/* Override any gcc2 internal prototype to avoid an error. */
16624#ifdef __cplusplus
16625extern "C"
16626#endif
16627/* We use char because int might match the return type of a gcc2
16628 builtin and then its argument prototype would still apply. */
16629char opendir ();
16630int
16631main ()
16632{
16633opendir ();
16634 ;
16635 return 0;
16636}
16637_ACEOF
16638rm -f conftest.$ac_objext conftest$ac_exeext
16639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640 (eval $ac_link) 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
7357c5b6
AM
16647 { ac_try='test -z "$ac_c_werror_flag"
16648 || test ! -s conftest.err'
2ba49b59
KC
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; } &&
16654 { ac_try='test -s conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 ac_cv_search_opendir="-l$ac_lib"
16661break
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666fi
16667rm -f conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 done
16670fi
16671LIBS=$ac_func_search_save_LIBS
16672fi
16673echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16674echo "${ECHO_T}$ac_cv_search_opendir" >&6
16675if test "$ac_cv_search_opendir" != no; then
16676 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16677
16678fi
16679
16680else
16681 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16682echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16683if test "${ac_cv_search_opendir+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685else
16686 ac_func_search_save_LIBS=$LIBS
16687ac_cv_search_opendir=no
16688cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694
16695/* Override any gcc2 internal prototype to avoid an error. */
16696#ifdef __cplusplus
16697extern "C"
16698#endif
16699/* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16701char opendir ();
16702int
16703main ()
16704{
16705opendir ();
16706 ;
16707 return 0;
16708}
16709_ACEOF
16710rm -f conftest.$ac_objext conftest$ac_exeext
16711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
7357c5b6
AM
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
2ba49b59
KC
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_search_opendir="none required"
16733else
16734 echo "$as_me: failed program was:" >&5
16735sed 's/^/| /' conftest.$ac_ext >&5
16736
16737fi
16738rm -f conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740if test "$ac_cv_search_opendir" = no; then
16741 for ac_lib in x; do
16742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744/* confdefs.h. */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h. */
16749
16750/* Override any gcc2 internal prototype to avoid an error. */
16751#ifdef __cplusplus
16752extern "C"
16753#endif
16754/* We use char because int might match the return type of a gcc2
16755 builtin and then its argument prototype would still apply. */
16756char opendir ();
16757int
16758main ()
16759{
16760opendir ();
16761 ;
16762 return 0;
16763}
16764_ACEOF
16765rm -f conftest.$ac_objext conftest$ac_exeext
16766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767 (eval $ac_link) 2>conftest.er1
16768 ac_status=$?
16769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
7357c5b6
AM
16774 { ac_try='test -z "$ac_c_werror_flag"
16775 || test ! -s conftest.err'
2ba49b59
KC
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; } &&
16781 { ac_try='test -s conftest$ac_exeext'
16782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16784 ac_status=$?
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16787 ac_cv_search_opendir="-l$ac_lib"
16788break
16789else
16790 echo "$as_me: failed program was:" >&5
16791sed 's/^/| /' conftest.$ac_ext >&5
16792
16793fi
16794rm -f conftest.err conftest.$ac_objext \
16795 conftest$ac_exeext conftest.$ac_ext
16796 done
16797fi
16798LIBS=$ac_func_search_save_LIBS
16799fi
16800echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16801echo "${ECHO_T}$ac_cv_search_opendir" >&6
16802if test "$ac_cv_search_opendir" != no; then
16803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16804
16805fi
16806
16807fi
16808
16809echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16810echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16811if test "${gcc_cv_header_string+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
16814 cat >conftest.$ac_ext <<_ACEOF
16815/* confdefs.h. */
16816_ACEOF
16817cat confdefs.h >>conftest.$ac_ext
16818cat >>conftest.$ac_ext <<_ACEOF
16819/* end confdefs.h. */
16820#include <string.h>
16821#include <strings.h>
16822int
16823main ()
16824{
16825
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext
16831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
7357c5b6
AM
16839 { ac_try='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
2ba49b59
KC
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 gcc_cv_header_string=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857gcc_cv_header_string=no
16858fi
16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16860fi
16861echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16862echo "${ECHO_T}$gcc_cv_header_string" >&6
16863if test $gcc_cv_header_string = yes; then
16864
16865cat >>confdefs.h <<\_ACEOF
16866#define STRING_WITH_STRINGS 1
16867_ACEOF
16868
2e0fbf77
JW
16869fi
16870
5464f5a1
NN
16871
16872
16873
16874
16875
16876
16877
633fd09f 16878for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16879do
5464f5a1
NN
16880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881echo "$as_me:$LINENO: checking for $ac_func" >&5
16882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883if eval "test \"\${$as_ac_var+set}\" = set"; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
16892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894#define $ac_func innocuous_$ac_func
16895
252b5132 16896/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16900
16901#ifdef __STDC__
16902# include <limits.h>
16903#else
16904# include <assert.h>
16905#endif
6be7c12c 16906
5464f5a1 16907#undef $ac_func
252b5132 16908
5464f5a1
NN
16909/* Override any gcc2 internal prototype to avoid an error. */
16910#ifdef __cplusplus
16911extern "C"
16912{
16913#endif
16914/* We use char because int might match the return type of a gcc2
16915 builtin and then its argument prototype would still apply. */
16916char $ac_func ();
252b5132
RH
16917/* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921choke me
16922#else
5464f5a1
NN
16923char (*f) () = $ac_func;
16924#endif
16925#ifdef __cplusplus
16926}
252b5132
RH
16927#endif
16928
5464f5a1
NN
16929int
16930main ()
16931{
16932return f != $ac_func;
16933 ;
16934 return 0;
16935}
16936_ACEOF
16937rm -f conftest.$ac_objext conftest$ac_exeext
16938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939 (eval $ac_link) 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
7357c5b6
AM
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
5464f5a1
NN
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 eval "$as_ac_var=yes"
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964eval "$as_ac_var=no"
16965fi
16966rm -f conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16968fi
16969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16971if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16974_ACEOF
252b5132 16975
252b5132
RH
16976fi
16977done
16978
5464f5a1 16979
49c97a80
ILT
16980for ac_func in strtoull
16981do
5464f5a1
NN
16982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16983echo "$as_me:$LINENO: checking for $ac_func" >&5
16984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16985if eval "test \"\${$as_ac_var+set}\" = set"; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 cat >conftest.$ac_ext <<_ACEOF
16989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
16994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996#define $ac_func innocuous_$ac_func
16997
49c97a80 16998/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16999 which can conflict with char $ac_func (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
17002
17003#ifdef __STDC__
17004# include <limits.h>
17005#else
17006# include <assert.h>
17007#endif
49c97a80 17008
5464f5a1 17009#undef $ac_func
49c97a80 17010
5464f5a1
NN
17011/* Override any gcc2 internal prototype to avoid an error. */
17012#ifdef __cplusplus
17013extern "C"
17014{
17015#endif
17016/* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17018char $ac_func ();
49c97a80
ILT
17019/* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17023choke me
17024#else
5464f5a1
NN
17025char (*f) () = $ac_func;
17026#endif
17027#ifdef __cplusplus
17028}
49c97a80
ILT
17029#endif
17030
5464f5a1
NN
17031int
17032main ()
17033{
17034return f != $ac_func;
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext conftest$ac_exeext
17040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>conftest.er1
17042 ac_status=$?
17043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
7357c5b6
AM
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
5464f5a1
NN
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 eval "$as_ac_var=yes"
17062else
17063 echo "$as_me: failed program was:" >&5
17064sed 's/^/| /' conftest.$ac_ext >&5
17065
17066eval "$as_ac_var=no"
17067fi
17068rm -f conftest.err conftest.$ac_objext \
17069 conftest$ac_exeext conftest.$ac_ext
17070fi
17071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17073if test `eval echo '${'$as_ac_var'}'` = yes; then
17074 cat >>confdefs.h <<_ACEOF
17075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17076_ACEOF
49c97a80 17077
49c97a80
ILT
17078fi
17079done
17080
6be7c12c 17081
2e9ebff5
JG
17082echo "$as_me:$LINENO: checking whether basename is declared" >&5
17083echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17084if test "${ac_cv_have_decl_basename+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
17087 cat >conftest.$ac_ext <<_ACEOF
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
ec7b76fe 17093$ac_includes_default
2e9ebff5
JG
17094int
17095main ()
17096{
17097#ifndef basename
17098 char *p = (char *) basename;
17099#endif
17100
17101 ;
17102 return 0;
17103}
17104_ACEOF
17105rm -f conftest.$ac_objext
17106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
7357c5b6
AM
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
2e9ebff5
JG
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_cv_have_decl_basename=yes
17128else
17129 echo "$as_me: failed program was:" >&5
17130sed 's/^/| /' conftest.$ac_ext >&5
17131
17132ac_cv_have_decl_basename=no
17133fi
17134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17135fi
17136echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17137echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17138if test $ac_cv_have_decl_basename = yes; then
17139
17140cat >>confdefs.h <<_ACEOF
17141#define HAVE_DECL_BASENAME 1
17142_ACEOF
17143
17144
17145else
17146 cat >>confdefs.h <<_ACEOF
17147#define HAVE_DECL_BASENAME 0
17148_ACEOF
17149
17150
17151fi
17152
17153
ec7b76fe
JG
17154echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17155echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17156if test "${ac_cv_have_decl_ftello+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158else
17159 cat >conftest.$ac_ext <<_ACEOF
17160/* confdefs.h. */
17161_ACEOF
17162cat confdefs.h >>conftest.$ac_ext
17163cat >>conftest.$ac_ext <<_ACEOF
17164/* end confdefs.h. */
17165$ac_includes_default
17166int
17167main ()
17168{
17169#ifndef ftello
17170 char *p = (char *) ftello;
17171#endif
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext
17178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
7357c5b6
AM
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
ec7b76fe
JG
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_have_decl_ftello=yes
17200else
17201 echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204ac_cv_have_decl_ftello=no
17205fi
17206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17207fi
17208echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17209echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17210if test $ac_cv_have_decl_ftello = yes; then
17211
17212cat >>confdefs.h <<_ACEOF
17213#define HAVE_DECL_FTELLO 1
17214_ACEOF
17215
17216
17217else
17218 cat >>confdefs.h <<_ACEOF
17219#define HAVE_DECL_FTELLO 0
17220_ACEOF
17221
17222
17223fi
17224
17225
17226echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17227echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17228if test "${ac_cv_have_decl_ftello64+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 cat >conftest.$ac_ext <<_ACEOF
17232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
17237$ac_includes_default
17238int
17239main ()
17240{
17241#ifndef ftello64
17242 char *p = (char *) ftello64;
17243#endif
17244
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext
17250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
7357c5b6
AM
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
ec7b76fe
JG
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_have_decl_ftello64=yes
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276ac_cv_have_decl_ftello64=no
17277fi
17278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17281echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17282if test $ac_cv_have_decl_ftello64 = yes; then
17283
17284cat >>confdefs.h <<_ACEOF
17285#define HAVE_DECL_FTELLO64 1
17286_ACEOF
17287
17288
17289else
17290 cat >>confdefs.h <<_ACEOF
17291#define HAVE_DECL_FTELLO64 0
17292_ACEOF
17293
17294
17295fi
17296
17297
17298echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17299echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17300if test "${ac_cv_have_decl_fseeko+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17302else
17303 cat >conftest.$ac_ext <<_ACEOF
17304/* confdefs.h. */
17305_ACEOF
17306cat confdefs.h >>conftest.$ac_ext
17307cat >>conftest.$ac_ext <<_ACEOF
17308/* end confdefs.h. */
17309$ac_includes_default
17310int
17311main ()
17312{
17313#ifndef fseeko
17314 char *p = (char *) fseeko;
17315#endif
17316
17317 ;
17318 return 0;
17319}
17320_ACEOF
17321rm -f conftest.$ac_objext
17322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } &&
7357c5b6
AM
17330 { ac_try='test -z "$ac_c_werror_flag"
17331 || test ! -s conftest.err'
ec7b76fe
JG
17332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333 (eval $ac_try) 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; } &&
17337 { ac_try='test -s conftest.$ac_objext'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343 ac_cv_have_decl_fseeko=yes
17344else
17345 echo "$as_me: failed program was:" >&5
17346sed 's/^/| /' conftest.$ac_ext >&5
17347
17348ac_cv_have_decl_fseeko=no
17349fi
17350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17351fi
17352echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
17353echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
17354if test $ac_cv_have_decl_fseeko = yes; then
17355
17356cat >>confdefs.h <<_ACEOF
17357#define HAVE_DECL_FSEEKO 1
17358_ACEOF
17359
17360
17361else
17362 cat >>confdefs.h <<_ACEOF
17363#define HAVE_DECL_FSEEKO 0
17364_ACEOF
17365
17366
17367fi
17368
17369
17370echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
17371echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
17372if test "${ac_cv_have_decl_fseeko64+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374else
17375 cat >conftest.$ac_ext <<_ACEOF
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
17380/* end confdefs.h. */
17381$ac_includes_default
17382int
17383main ()
17384{
17385#ifndef fseeko64
17386 char *p = (char *) fseeko64;
17387#endif
17388
17389 ;
17390 return 0;
17391}
17392_ACEOF
17393rm -f conftest.$ac_objext
17394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17395 (eval $ac_compile) 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
7357c5b6
AM
17402 { ac_try='test -z "$ac_c_werror_flag"
17403 || test ! -s conftest.err'
ec7b76fe
JG
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_have_decl_fseeko64=yes
17416else
17417 echo "$as_me: failed program was:" >&5
17418sed 's/^/| /' conftest.$ac_ext >&5
17419
17420ac_cv_have_decl_fseeko64=no
17421fi
17422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17423fi
17424echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
17425echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
17426if test $ac_cv_have_decl_fseeko64 = yes; then
17427
17428cat >>confdefs.h <<_ACEOF
17429#define HAVE_DECL_FSEEKO64 1
17430_ACEOF
17431
17432
17433else
17434 cat >>confdefs.h <<_ACEOF
17435#define HAVE_DECL_FSEEKO64 0
17436_ACEOF
17437
17438
17439fi
17440
17441
2e9ebff5 17442
6be7c12c 17443
252b5132 17444case "${host}" in
855b0be7 17445*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
17446
17447cat >>confdefs.h <<\_ACEOF
252b5132 17448#define USE_BINARY_FOPEN 1
5464f5a1 17449_ACEOF
252b5132
RH
17450 ;;
17451esac
17452
d34a2b1d
JG
17453echo "$as_me:$LINENO: checking whether ffs is declared" >&5
17454echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
17455if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 17456 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17457else
5464f5a1
NN
17458 cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
d34a2b1d 17464$ac_includes_default
5464f5a1
NN
17465int
17466main ()
17467{
d34a2b1d
JG
17468#ifndef ffs
17469 char *p = (char *) ffs;
17470#endif
17471
5464f5a1
NN
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17478 (eval $ac_compile) 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
7357c5b6
AM
17485 { ac_try='test -z "$ac_c_werror_flag"
17486 || test ! -s conftest.err'
5464f5a1
NN
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
d34a2b1d 17498 ac_cv_have_decl_ffs=yes
252b5132 17499else
5464f5a1
NN
17500 echo "$as_me: failed program was:" >&5
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
d34a2b1d 17503ac_cv_have_decl_ffs=no
252b5132 17504fi
5464f5a1 17505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17506fi
d34a2b1d
JG
17507echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
17508echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
17509if test $ac_cv_have_decl_ffs = yes; then
252b5132 17510
d34a2b1d
JG
17511cat >>confdefs.h <<_ACEOF
17512#define HAVE_DECL_FFS 1
17513_ACEOF
5464f5a1 17514
d34a2b1d
JG
17515
17516else
17517 cat >>confdefs.h <<_ACEOF
17518#define HAVE_DECL_FFS 0
5464f5a1 17519_ACEOF
252b5132 17520
d34a2b1d 17521
252b5132
RH
17522fi
17523
d34a2b1d
JG
17524
17525echo "$as_me:$LINENO: checking whether free is declared" >&5
17526echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
17527if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 17528 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17529else
5464f5a1
NN
17530 cat >conftest.$ac_ext <<_ACEOF
17531/* confdefs.h. */
17532_ACEOF
17533cat confdefs.h >>conftest.$ac_ext
17534cat >>conftest.$ac_ext <<_ACEOF
17535/* end confdefs.h. */
d34a2b1d 17536$ac_includes_default
5464f5a1
NN
17537int
17538main ()
17539{
d34a2b1d
JG
17540#ifndef free
17541 char *p = (char *) free;
17542#endif
17543
5464f5a1
NN
17544 ;
17545 return 0;
17546}
17547_ACEOF
17548rm -f conftest.$ac_objext
17549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17550 (eval $ac_compile) 2>conftest.er1
17551 ac_status=$?
17552 grep -v '^ *+' conftest.er1 >conftest.err
17553 rm -f conftest.er1
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
7357c5b6
AM
17557 { ac_try='test -z "$ac_c_werror_flag"
17558 || test ! -s conftest.err'
5464f5a1
NN
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17561 ac_status=$?
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; } &&
17564 { ac_try='test -s conftest.$ac_objext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
d34a2b1d 17570 ac_cv_have_decl_free=yes
252b5132 17571else
5464f5a1
NN
17572 echo "$as_me: failed program was:" >&5
17573sed 's/^/| /' conftest.$ac_ext >&5
17574
d34a2b1d 17575ac_cv_have_decl_free=no
252b5132 17576fi
5464f5a1 17577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17578fi
d34a2b1d
JG
17579echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
17580echo "${ECHO_T}$ac_cv_have_decl_free" >&6
17581if test $ac_cv_have_decl_free = yes; then
17582
17583cat >>confdefs.h <<_ACEOF
17584#define HAVE_DECL_FREE 1
17585_ACEOF
252b5132 17586
5464f5a1 17587
d34a2b1d
JG
17588else
17589 cat >>confdefs.h <<_ACEOF
17590#define HAVE_DECL_FREE 0
5464f5a1 17591_ACEOF
252b5132 17592
d34a2b1d 17593
252b5132
RH
17594fi
17595
d34a2b1d
JG
17596
17597echo "$as_me:$LINENO: checking whether getenv is declared" >&5
17598echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
17599if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 17600 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17601else
5464f5a1
NN
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
d34a2b1d 17608$ac_includes_default
5464f5a1
NN
17609int
17610main ()
17611{
d34a2b1d
JG
17612#ifndef getenv
17613 char *p = (char *) getenv;
17614#endif
17615
5464f5a1
NN
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext
17621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622 (eval $ac_compile) 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
7357c5b6
AM
17629 { ac_try='test -z "$ac_c_werror_flag"
17630 || test ! -s conftest.err'
5464f5a1
NN
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
d34a2b1d 17642 ac_cv_have_decl_getenv=yes
252b5132 17643else
5464f5a1
NN
17644 echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
d34a2b1d 17647ac_cv_have_decl_getenv=no
252b5132 17648fi
5464f5a1 17649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17650fi
d34a2b1d
JG
17651echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17652echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17653if test $ac_cv_have_decl_getenv = yes; then
252b5132 17654
d34a2b1d
JG
17655cat >>confdefs.h <<_ACEOF
17656#define HAVE_DECL_GETENV 1
17657_ACEOF
5464f5a1 17658
d34a2b1d
JG
17659
17660else
17661 cat >>confdefs.h <<_ACEOF
17662#define HAVE_DECL_GETENV 0
5464f5a1 17663_ACEOF
252b5132 17664
d34a2b1d 17665
252b5132
RH
17666fi
17667
d34a2b1d
JG
17668
17669echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17670echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17671if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 17672 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17673else
5464f5a1
NN
17674 cat >conftest.$ac_ext <<_ACEOF
17675/* confdefs.h. */
17676_ACEOF
17677cat confdefs.h >>conftest.$ac_ext
17678cat >>conftest.$ac_ext <<_ACEOF
17679/* end confdefs.h. */
d34a2b1d 17680$ac_includes_default
5464f5a1
NN
17681int
17682main ()
17683{
d34a2b1d
JG
17684#ifndef malloc
17685 char *p = (char *) malloc;
17686#endif
17687
5464f5a1
NN
17688 ;
17689 return 0;
17690}
17691_ACEOF
17692rm -f conftest.$ac_objext
17693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17694 (eval $ac_compile) 2>conftest.er1
17695 ac_status=$?
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
7357c5b6
AM
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
5464f5a1
NN
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
d34a2b1d 17714 ac_cv_have_decl_malloc=yes
252b5132 17715else
5464f5a1
NN
17716 echo "$as_me: failed program was:" >&5
17717sed 's/^/| /' conftest.$ac_ext >&5
17718
d34a2b1d 17719ac_cv_have_decl_malloc=no
252b5132 17720fi
5464f5a1 17721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17722fi
d34a2b1d
JG
17723echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17724echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17725if test $ac_cv_have_decl_malloc = yes; then
252b5132 17726
d34a2b1d
JG
17727cat >>confdefs.h <<_ACEOF
17728#define HAVE_DECL_MALLOC 1
17729_ACEOF
5464f5a1 17730
d34a2b1d
JG
17731
17732else
17733 cat >>confdefs.h <<_ACEOF
17734#define HAVE_DECL_MALLOC 0
5464f5a1 17735_ACEOF
252b5132 17736
d34a2b1d 17737
252b5132
RH
17738fi
17739
d34a2b1d
JG
17740
17741echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17742echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17743if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 17744 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17745else
5464f5a1
NN
17746 cat >conftest.$ac_ext <<_ACEOF
17747/* confdefs.h. */
17748_ACEOF
17749cat confdefs.h >>conftest.$ac_ext
17750cat >>conftest.$ac_ext <<_ACEOF
17751/* end confdefs.h. */
d34a2b1d 17752$ac_includes_default
5464f5a1
NN
17753int
17754main ()
17755{
d34a2b1d
JG
17756#ifndef realloc
17757 char *p = (char *) realloc;
17758#endif
17759
5464f5a1
NN
17760 ;
17761 return 0;
17762}
17763_ACEOF
17764rm -f conftest.$ac_objext
17765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>conftest.er1
17767 ac_status=$?
17768 grep -v '^ *+' conftest.er1 >conftest.err
17769 rm -f conftest.er1
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
7357c5b6
AM
17773 { ac_try='test -z "$ac_c_werror_flag"
17774 || test ! -s conftest.err'
5464f5a1
NN
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
d34a2b1d 17786 ac_cv_have_decl_realloc=yes
252b5132 17787else
5464f5a1
NN
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
d34a2b1d 17791ac_cv_have_decl_realloc=no
252b5132 17792fi
5464f5a1 17793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17794fi
d34a2b1d
JG
17795echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17796echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17797if test $ac_cv_have_decl_realloc = yes; then
17798
17799cat >>confdefs.h <<_ACEOF
17800#define HAVE_DECL_REALLOC 1
17801_ACEOF
252b5132 17802
5464f5a1 17803
d34a2b1d
JG
17804else
17805 cat >>confdefs.h <<_ACEOF
17806#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17807_ACEOF
17808
d34a2b1d 17809
efa9bda4
AL
17810fi
17811
d34a2b1d 17812
be5cacdb
L
17813echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17814echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17815if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17817else
17818 cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
17824$ac_includes_default
17825int
17826main ()
17827{
17828#ifndef stpcpy
17829 char *p = (char *) stpcpy;
17830#endif
17831
17832 ;
17833 return 0;
17834}
17835_ACEOF
17836rm -f conftest.$ac_objext
17837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17838 (eval $ac_compile) 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
7357c5b6
AM
17845 { ac_try='test -z "$ac_c_werror_flag"
17846 || test ! -s conftest.err'
be5cacdb
L
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_cv_have_decl_stpcpy=yes
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863ac_cv_have_decl_stpcpy=no
17864fi
17865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17866fi
17867echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17868echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17869if test $ac_cv_have_decl_stpcpy = yes; then
17870
17871cat >>confdefs.h <<_ACEOF
17872#define HAVE_DECL_STPCPY 1
17873_ACEOF
17874
17875
17876else
17877 cat >>confdefs.h <<_ACEOF
17878#define HAVE_DECL_STPCPY 0
17879_ACEOF
17880
17881
17882fi
17883
17884
d34a2b1d
JG
17885echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17886echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17887if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889else
17890 cat >conftest.$ac_ext <<_ACEOF
17891/* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
d34a2b1d 17896$ac_includes_default
efa9bda4
AL
17897int
17898main ()
17899{
d34a2b1d
JG
17900#ifndef strstr
17901 char *p = (char *) strstr;
17902#endif
17903
efa9bda4
AL
17904 ;
17905 return 0;
17906}
17907_ACEOF
17908rm -f conftest.$ac_objext
17909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17910 (eval $ac_compile) 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
7357c5b6
AM
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
efa9bda4
AL
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
d34a2b1d 17930 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17931else
17932 echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
d34a2b1d 17935ac_cv_have_decl_strstr=no
efa9bda4
AL
17936fi
17937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17938fi
d34a2b1d
JG
17939echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17940echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17941if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17942
d34a2b1d
JG
17943cat >>confdefs.h <<_ACEOF
17944#define HAVE_DECL_STRSTR 1
17945_ACEOF
efa9bda4 17946
d34a2b1d
JG
17947
17948else
17949 cat >>confdefs.h <<_ACEOF
17950#define HAVE_DECL_STRSTR 0
5464f5a1 17951_ACEOF
252b5132 17952
d34a2b1d 17953
252b5132
RH
17954fi
17955
6be7c12c 17956
36527912
AJ
17957echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17958echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17959if test "${ac_cv_have_decl_snprintf+set}" = set; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17961else
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969int
17970main ()
17971{
17972#ifndef snprintf
17973 char *p = (char *) snprintf;
17974#endif
17975
17976 ;
17977 return 0;
17978}
17979_ACEOF
17980rm -f conftest.$ac_objext
17981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982 (eval $ac_compile) 2>conftest.er1
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
7357c5b6
AM
17989 { ac_try='test -z "$ac_c_werror_flag"
17990 || test ! -s conftest.err'
36527912
AJ
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } &&
17996 { ac_try='test -s conftest.$ac_objext'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 ac_cv_have_decl_snprintf=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007ac_cv_have_decl_snprintf=no
18008fi
18009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18010fi
18011echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18012echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18013if test $ac_cv_have_decl_snprintf = yes; then
18014
18015cat >>confdefs.h <<_ACEOF
18016#define HAVE_DECL_SNPRINTF 1
18017_ACEOF
18018
18019
18020else
18021 cat >>confdefs.h <<_ACEOF
18022#define HAVE_DECL_SNPRINTF 0
18023_ACEOF
18024
18025
18026fi
18027
18028
18029echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18030echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18031if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034 cat >conftest.$ac_ext <<_ACEOF
18035/* confdefs.h. */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h. */
18040$ac_includes_default
18041int
18042main ()
18043{
18044#ifndef vsnprintf
18045 char *p = (char *) vsnprintf;
18046#endif
18047
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>conftest.er1
18055 ac_status=$?
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
7357c5b6
AM
18061 { ac_try='test -z "$ac_c_werror_flag"
18062 || test ! -s conftest.err'
36527912
AJ
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest.$ac_objext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_cv_have_decl_vsnprintf=yes
18075else
18076 echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079ac_cv_have_decl_vsnprintf=no
18080fi
18081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18082fi
18083echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18084echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18085if test $ac_cv_have_decl_vsnprintf = yes; then
18086
18087cat >>confdefs.h <<_ACEOF
18088#define HAVE_DECL_VSNPRINTF 1
18089_ACEOF
18090
18091
18092else
18093 cat >>confdefs.h <<_ACEOF
18094#define HAVE_DECL_VSNPRINTF 0
18095_ACEOF
18096
18097
18098fi
18099
18100
d34a2b1d 18101
1b315056 18102# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 18103# This is used only by compress.c.
1b315056
CS
18104echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18105echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18106if test "${ac_cv_search_zlibVersion+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109 ac_func_search_save_LIBS=$LIBS
18110ac_cv_search_zlibVersion=no
18111cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
18117
18118/* Override any gcc2 internal prototype to avoid an error. */
18119#ifdef __cplusplus
18120extern "C"
18121#endif
18122/* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18124char zlibVersion ();
18125int
18126main ()
18127{
18128zlibVersion ();
18129 ;
18130 return 0;
18131}
18132_ACEOF
18133rm -f conftest.$ac_objext conftest$ac_exeext
18134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18135 (eval $ac_link) 2>conftest.er1
18136 ac_status=$?
18137 grep -v '^ *+' conftest.er1 >conftest.err
18138 rm -f conftest.er1
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
7357c5b6
AM
18142 { ac_try='test -z "$ac_c_werror_flag"
18143 || test ! -s conftest.err'
1b315056
CS
18144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18145 (eval $ac_try) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; } &&
18149 { ac_try='test -s conftest$ac_exeext'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 ac_cv_search_zlibVersion="none required"
18156else
18157 echo "$as_me: failed program was:" >&5
18158sed 's/^/| /' conftest.$ac_ext >&5
18159
18160fi
18161rm -f conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163if test "$ac_cv_search_zlibVersion" = no; then
18164 for ac_lib in z; do
18165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18166 cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172
18173/* Override any gcc2 internal prototype to avoid an error. */
18174#ifdef __cplusplus
18175extern "C"
18176#endif
18177/* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179char zlibVersion ();
18180int
18181main ()
18182{
18183zlibVersion ();
18184 ;
18185 return 0;
18186}
18187_ACEOF
18188rm -f conftest.$ac_objext conftest$ac_exeext
18189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } &&
7357c5b6
AM
18197 { ac_try='test -z "$ac_c_werror_flag"
18198 || test ! -s conftest.err'
1b315056
CS
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_search_zlibVersion="-l$ac_lib"
18211break
18212else
18213 echo "$as_me: failed program was:" >&5
18214sed 's/^/| /' conftest.$ac_ext >&5
18215
18216fi
18217rm -f conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219 done
18220fi
18221LIBS=$ac_func_search_save_LIBS
18222fi
18223echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18224echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18225if test "$ac_cv_search_zlibVersion" != no; then
18226 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18227
18228for ac_header in zlib.h
18229do
18230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18231if eval "test \"\${$as_ac_Header+set}\" = set"; then
18232 echo "$as_me:$LINENO: checking for $ac_header" >&5
18233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18234if eval "test \"\${$as_ac_Header+set}\" = set"; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236fi
18237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18239else
18240 # Is the header compilable?
18241echo "$as_me:$LINENO: checking $ac_header usability" >&5
18242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18243cat >conftest.$ac_ext <<_ACEOF
18244/* confdefs.h. */
18245_ACEOF
18246cat confdefs.h >>conftest.$ac_ext
18247cat >>conftest.$ac_ext <<_ACEOF
18248/* end confdefs.h. */
18249$ac_includes_default
18250#include <$ac_header>
18251_ACEOF
18252rm -f conftest.$ac_objext
18253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18254 (eval $ac_compile) 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
7357c5b6
AM
18261 { ac_try='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
1b315056
CS
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest.$ac_objext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_header_compiler=yes
18275else
18276 echo "$as_me: failed program was:" >&5
18277sed 's/^/| /' conftest.$ac_ext >&5
18278
18279ac_header_compiler=no
18280fi
18281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18283echo "${ECHO_T}$ac_header_compiler" >&6
18284
18285# Is the header present?
18286echo "$as_me:$LINENO: checking $ac_header presence" >&5
18287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18288cat >conftest.$ac_ext <<_ACEOF
18289/* confdefs.h. */
18290_ACEOF
18291cat confdefs.h >>conftest.$ac_ext
18292cat >>conftest.$ac_ext <<_ACEOF
18293/* end confdefs.h. */
18294#include <$ac_header>
18295_ACEOF
18296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } >/dev/null; then
18304 if test -s conftest.err; then
18305 ac_cpp_err=$ac_c_preproc_warn_flag
18306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18307 else
18308 ac_cpp_err=
18309 fi
18310else
18311 ac_cpp_err=yes
18312fi
18313if test -z "$ac_cpp_err"; then
18314 ac_header_preproc=yes
18315else
18316 echo "$as_me: failed program was:" >&5
18317sed 's/^/| /' conftest.$ac_ext >&5
18318
18319 ac_header_preproc=no
18320fi
18321rm -f conftest.err conftest.$ac_ext
18322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18323echo "${ECHO_T}$ac_header_preproc" >&6
18324
18325# So? What about this header?
18326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18327 yes:no: )
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18332 ac_header_preproc=yes
18333 ;;
18334 no:yes:* )
18335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18347 (
18348 cat <<\_ASBOX
18349## ------------------------------------------ ##
18350## Report this to the AC_PACKAGE_NAME lists. ##
18351## ------------------------------------------ ##
18352_ASBOX
18353 ) |
18354 sed "s/^/$as_me: WARNING: /" >&2
18355 ;;
18356esac
18357echo "$as_me:$LINENO: checking for $ac_header" >&5
18358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18359if eval "test \"\${$as_ac_Header+set}\" = set"; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18361else
18362 eval "$as_ac_Header=\$ac_header_preproc"
18363fi
18364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18366
18367fi
18368if test `eval echo '${'$as_ac_Header'}'` = yes; then
18369 cat >>confdefs.h <<_ACEOF
18370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18371_ACEOF
18372
18373fi
18374
18375done
18376
18377fi
18378
18379
252b5132
RH
18380# If we are configured native, pick a core file support file.
18381COREFILE=
18382COREFLAG=
18383TRAD_HEADER=
18384if test "${target}" = "${host}"; then
18385 case "${host}" in
13dfd2d0 18386 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
18387 COREFILE=''
18388 ;;
ed84e695 18389 alpha*-*-linux-*)
252b5132
RH
18390 COREFILE=trad-core.lo
18391 TRAD_HEADER='"hosts/alphalinux.h"'
18392 ;;
690cc98b
NC
18393 alpha*-*-netbsd* | alpha*-*-openbsd*)
18394 COREFILE=netbsd-core.lo
18395 ;;
252b5132 18396 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
18397 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
18398 COREFILE='' ;;
e33533a4
MK
18399 arm-*-netbsd* | arm-*-openbsd*)
18400 COREFILE=netbsd-core.lo
18401 ;;
252b5132
RH
18402 arm-*-riscix) COREFILE=trad-core.lo ;;
18403 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
18404 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
18405 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
18406 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
18407 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
18408 hppa*-*-netbsd* | hppa*-*-openbsd*)
18409 COREFILE=netbsd-core.lo
18410 ;;
18411
dc810e39 18412 i370-*-*)
5b93d8bb
AM
18413 COREFILE=trad-core.lo
18414 TRAD_HEADER='"hosts/i370linux.h"'
18415 ;;
18416
80c7c40a 18417 i[3-7]86-sequent-bsd*)
5b93d8bb 18418 COREFILE=trad-core.lo
252b5132
RH
18419 TRAD_HEADER='"hosts/symmetry.h"'
18420 ;;
80c7c40a
NC
18421 i[3-7]86-sequent-sysv4*) ;;
18422 i[3-7]86-sequent-sysv*)
252b5132
RH
18423 COREFILE=trad-core.lo
18424 TRAD_HEADER='"hosts/symmetry.h"'
18425 ;;
80c7c40a 18426 i[3-7]86-*-bsdi)
7e3b3466
NC
18427 COREFILE=
18428 ;;
d2bef492 18429 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*)
252b5132
RH
18430 COREFILE=trad-core.lo
18431 TRAD_HEADER='"hosts/i386bsd.h"'
18432 ;;
0b3e17e9 18433 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
18434 COREFILE=''
18435 TRAD_HEADER='"hosts/i386bsd.h"'
18436 ;;
4615568e 18437 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
18438 COREFILE=netbsd-core.lo
18439 ;;
80c7c40a 18440 i[3-7]86-esix-sysv3*)
252b5132
RH
18441 COREFILE=trad-core.lo
18442 TRAD_HEADER='"hosts/esix.h"'
18443 ;;
80c7c40a 18444 i[3-7]86-*-sco3.2v5*)
252b5132
RH
18445 COREFILE=sco5-core.lo
18446 ;;
80c7c40a 18447 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
18448 COREFILE=trad-core.lo
18449 TRAD_HEADER='"hosts/i386sco.h"'
18450 ;;
80c7c40a 18451 i[3-7]86-*-mach3*)
252b5132
RH
18452 COREFILE=trad-core.lo
18453 TRAD_HEADER='"hosts/i386mach3.h"'
18454 ;;
ed84e695 18455 i[3-7]86-*-linux-*)
252b5132
RH
18456 COREFILE=trad-core.lo
18457 TRAD_HEADER='"hosts/i386linux.h"'
18458 ;;
80c7c40a
NC
18459 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
18460 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
18461 i860-*-mach3* | i860-*-osf1*)
18462 COREFILE=trad-core.lo
18463 TRAD_HEADER='"hosts/i860mach3.h"'
18464 ;;
252b5132
RH
18465 mips-*-netbsd* | mips*-*-openbsd*)
18466 COREFILE=netbsd-core.lo
18467 ;;
18468 mips-dec-*)
18469 COREFILE=trad-core.lo
18470 TRAD_HEADER='"hosts/decstation.h"'
18471 ;;
18472 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
18473 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
18474 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
18475 mips-*-sysv4*) ;;
18476 mips-*-sysv* | mips-*-riscos*)
18477 COREFILE=trad-core.lo
18478 TRAD_HEADER='"hosts/riscos.h"'
18479 ;;
18480 mips-sony-bsd*)
18481 COREFILE=trad-core.lo
18482 TRAD_HEADER='"hosts/news-mips.h"'
18483 ;;
18484 m68*-bull*-sysv*)
18485 COREFILE=trad-core.lo
18486 TRAD_HEADER='"hosts/dpx2.h"'
18487 ;;
18488 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
18489 m68*-hp-bsd*)
18490 COREFILE=trad-core.lo
18491 TRAD_HEADER='"hosts/hp300bsd.h"'
18492 ;;
ed84e695 18493 m68*-*-linux-*)
252b5132
RH
18494 COREFILE=trad-core.lo
18495 TRAD_HEADER='"hosts/m68klinux.h"'
18496 ;;
18497 m68*-motorola-sysv*)
18498 COREFILE=trad-core.lo
18499 TRAD_HEADER='"hosts/delta68.h"'
18500 ;;
18501 m68*-sony-*)
18502 COREFILE=trad-core.lo
18503 TRAD_HEADER='"hosts/news.h"'
18504 ;;
18505 m68*-*-netbsd* | m68*-*-openbsd*)
18506 COREFILE=netbsd-core.lo
18507 ;;
18508 m68*-apple-aux*)
18509 COREFILE=trad-core.lo
18510 TRAD_HEADER='"hosts/m68kaux.h"'
18511 ;;
eb1e0e80
NC
18512 m88*-*-sysv4*)
18513 ;;
18514 m88*-motorola-sysv*)
18515 COREFILE=ptrace-core.lo
18516 ;;
252b5132
RH
18517 m88*-*-mach3*)
18518 COREFILE=trad-core.lo
18519 TRAD_HEADER='"hosts/m88kmach3.h"'
18520 ;;
c6f8758f
NC
18521 m88*-*-openbsd*)
18522 COREFILE=netbsd-core.lo
18523 ;;
252b5132
RH
18524 ns32k-pc532-mach)
18525 COREFILE=trad-core.lo
18526 TRAD_HEADER='"hosts/pc532mach.h"'
18527 ;;
18528 ns32k-*-netbsd* | ns32k-*-openbsd*)
18529 COREFILE=netbsd-core.lo
18530 ;;
eb1e0e80
NC
18531 rs6000-*-lynx*)
18532 COREFILE=lynx-core.lo
18533 ;;
18534 rs6000-*-aix5.* | powerpc-*-aix5.*)
18535 COREFILE=rs6000-core.lo
18536 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
18537 ;;
83954261 18538 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
18539 COREFILE=rs6000-core.lo
18540 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
18541 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
18542 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
18543 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
18544echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
83954261 18551#include <core.h>
5464f5a1
NN
18552int
18553main ()
18554{
83954261 18555struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
18556 ;
18557 return 0;
18558}
18559_ACEOF
18560rm -f conftest.$ac_objext
18561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562 (eval $ac_compile) 2>conftest.er1
18563 ac_status=$?
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
7357c5b6
AM
18569 { ac_try='test -z "$ac_c_werror_flag"
18570 || test ! -s conftest.err'
5464f5a1
NN
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest.$ac_objext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582
18583cat >>confdefs.h <<\_ACEOF
83954261 18584#define HAVE_ST_C_IMPL 1
5464f5a1 18585_ACEOF
83954261 18586
5464f5a1
NN
18587 echo "$as_me:$LINENO: result: yes" >&5
18588echo "${ECHO_T}yes" >&6
83954261 18589else
5464f5a1
NN
18590 echo "$as_me: failed program was:" >&5
18591sed 's/^/| /' conftest.$ac_ext >&5
18592
18593echo "$as_me:$LINENO: result: no" >&5
18594echo "${ECHO_T}no" >&6
83954261 18595fi
5464f5a1 18596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 18597 ;;
252b5132
RH
18598 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
18599 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
18600 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
18601 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
18602 powerpc-*-beos*) ;;
13dfd2d0
NC
18603 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
18604 COREFILE='' ;;
252b5132 18605 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 18606 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 18607 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
18608 sh*-*-netbsd* | sh*-*-openbsd*)
18609 COREFILE=netbsd-core.lo
18610 ;;
a9bf1154 18611 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
18612 COREFILE=netbsd-core.lo
18613 ;;
18614 tahoe-*-*)
18615 COREFILE=trad-core.lo
18616 TRAD_HEADER='"hosts/tahoe.h"'
18617 ;;
de6e5e1a
NC
18618 vax-*-netbsd* | vax-*-openbsd*)
18619 COREFILE=netbsd-core.lo
18620 ;;
252b5132
RH
18621 vax-*-ultrix2*)
18622 COREFILE=trad-core.lo
18623 TRAD_HEADER='"hosts/vaxult2.h"'
18624 ;;
18625 vax-*-ultrix*)
18626 COREFILE=trad-core.lo
18627 TRAD_HEADER='"hosts/vaxult2.h"'
18628 ;;
ed84e695 18629 vax-*-linux-*)
f8fc3443
NC
18630 COREFILE=trad-core.lo
18631 TRAD_HEADER='"hosts/vaxlinux.h"'
18632 ;;
252b5132
RH
18633 vax-*-*)
18634 COREFILE=trad-core.lo
18635 TRAD_HEADER='"hosts/vaxbsd.h"'
18636 ;;
85cfd8d3
MK
18637 x86_64-*-netbsd* | x86_64-*-openbsd*)
18638 COREFILE=netbsd-core.lo
18639 ;;
252b5132
RH
18640 esac
18641
18642 case "$COREFILE" in
18643 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
18644 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
18645 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
18646 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
18647 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
18648 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
18649 osf-core.lo) COREFLAG=-DOSF_CORE ;;
18650 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
18651 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
18652 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
18653 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
18654 esac
18655
18656 # ELF corefile support has several flavors, but all of
18657 # them use something called <sys/procfs.h>
5464f5a1
NN
18658
18659for ac_header in sys/procfs.h
252b5132 18660do
5464f5a1
NN
18661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18662if eval "test \"\${$as_ac_Header+set}\" = set"; then
18663 echo "$as_me:$LINENO: checking for $ac_header" >&5
18664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18665if eval "test \"\${$as_ac_Header+set}\" = set"; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667fi
18668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18670else
18671 # Is the header compilable?
18672echo "$as_me:$LINENO: checking $ac_header usability" >&5
18673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18674cat >conftest.$ac_ext <<_ACEOF
18675/* confdefs.h. */
18676_ACEOF
18677cat confdefs.h >>conftest.$ac_ext
18678cat >>conftest.$ac_ext <<_ACEOF
18679/* end confdefs.h. */
18680$ac_includes_default
18681#include <$ac_header>
18682_ACEOF
18683rm -f conftest.$ac_objext
18684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685 (eval $ac_compile) 2>conftest.er1
18686 ac_status=$?
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
7357c5b6
AM
18692 { ac_try='test -z "$ac_c_werror_flag"
18693 || test ! -s conftest.err'
5464f5a1
NN
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } &&
18699 { ac_try='test -s conftest.$ac_objext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_header_compiler=yes
18706else
18707 echo "$as_me: failed program was:" >&5
18708sed 's/^/| /' conftest.$ac_ext >&5
18709
18710ac_header_compiler=no
18711fi
18712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18713echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18714echo "${ECHO_T}$ac_header_compiler" >&6
18715
18716# Is the header present?
18717echo "$as_me:$LINENO: checking $ac_header presence" >&5
18718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18719cat >conftest.$ac_ext <<_ACEOF
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725#include <$ac_header>
18726_ACEOF
18727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18729 ac_status=$?
18730 grep -v '^ *+' conftest.er1 >conftest.err
18731 rm -f conftest.er1
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } >/dev/null; then
18735 if test -s conftest.err; then
18736 ac_cpp_err=$ac_c_preproc_warn_flag
18737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18738 else
18739 ac_cpp_err=
18740 fi
252b5132 18741else
5464f5a1 18742 ac_cpp_err=yes
252b5132 18743fi
5464f5a1
NN
18744if test -z "$ac_cpp_err"; then
18745 ac_header_preproc=yes
18746else
18747 echo "$as_me: failed program was:" >&5
18748sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_header_preproc=no
252b5132 18751fi
5464f5a1
NN
18752rm -f conftest.err conftest.$ac_ext
18753echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18754echo "${ECHO_T}$ac_header_preproc" >&6
18755
18756# So? What about this header?
18757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18758 yes:no: )
18759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18763 ac_header_preproc=yes
18764 ;;
18765 no:yes:* )
18766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18778 (
18779 cat <<\_ASBOX
18780## ------------------------------------------ ##
18781## Report this to the AC_PACKAGE_NAME lists. ##
18782## ------------------------------------------ ##
18783_ASBOX
18784 ) |
18785 sed "s/^/$as_me: WARNING: /" >&2
18786 ;;
18787esac
18788echo "$as_me:$LINENO: checking for $ac_header" >&5
18789echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18790if eval "test \"\${$as_ac_Header+set}\" = set"; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 18792else
5464f5a1
NN
18793 eval "$as_ac_Header=\$ac_header_preproc"
18794fi
18795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18797
252b5132 18798fi
5464f5a1
NN
18799if test `eval echo '${'$as_ac_Header'}'` = yes; then
18800 cat >>confdefs.h <<_ACEOF
18801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18802_ACEOF
18803
18804fi
18805
252b5132
RH
18806done
18807
18808 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
18809 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
18810echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
18811 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813else
18814 cat >conftest.$ac_ext <<_ACEOF
18815/* confdefs.h. */
18816_ACEOF
18817cat confdefs.h >>conftest.$ac_ext
18818cat >>conftest.$ac_ext <<_ACEOF
18819/* end confdefs.h. */
7ee38065
MS
18820
18821#define _SYSCALL32
252b5132 18822#include <sys/procfs.h>
5464f5a1
NN
18823int
18824main ()
18825{
252b5132 18826prstatus_t avar
5464f5a1
NN
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest.$ac_objext
18832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
7357c5b6
AM
18840 { ac_try='test -z "$ac_c_werror_flag"
18841 || test ! -s conftest.err'
5464f5a1
NN
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; } &&
18847 { ac_try='test -s conftest.$ac_objext'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; }; then
252b5132
RH
18853 bfd_cv_have_sys_procfs_type_prstatus_t=yes
18854else
5464f5a1
NN
18855 echo "$as_me: failed program was:" >&5
18856sed 's/^/| /' conftest.$ac_ext >&5
18857
18858bfd_cv_have_sys_procfs_type_prstatus_t=no
18859
252b5132 18860fi
5464f5a1 18861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18862fi
18863
18864 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
18865
18866cat >>confdefs.h <<\_ACEOF
252b5132 18867#define HAVE_PRSTATUS_T 1
5464f5a1 18868_ACEOF
252b5132
RH
18869
18870 fi
5464f5a1
NN
18871 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
18872echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 18873
5464f5a1
NN
18874 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
18875echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
18876 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18878else
5464f5a1
NN
18879 cat >conftest.$ac_ext <<_ACEOF
18880/* confdefs.h. */
18881_ACEOF
18882cat confdefs.h >>conftest.$ac_ext
18883cat >>conftest.$ac_ext <<_ACEOF
18884/* end confdefs.h. */
7ee38065
MS
18885
18886#define _SYSCALL32
18887#include <sys/procfs.h>
5464f5a1
NN
18888int
18889main ()
18890{
7ee38065 18891prstatus32_t avar
5464f5a1
NN
18892 ;
18893 return 0;
18894}
18895_ACEOF
18896rm -f conftest.$ac_objext
18897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18898 (eval $ac_compile) 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
7357c5b6
AM
18905 { ac_try='test -z "$ac_c_werror_flag"
18906 || test ! -s conftest.err'
5464f5a1
NN
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest.$ac_objext'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
7ee38065
MS
18918 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18919else
5464f5a1
NN
18920 echo "$as_me: failed program was:" >&5
18921sed 's/^/| /' conftest.$ac_ext >&5
18922
18923bfd_cv_have_sys_procfs_type_prstatus32_t=no
18924
7ee38065 18925fi
5464f5a1 18926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18927fi
18928
18929 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
18930
18931cat >>confdefs.h <<\_ACEOF
7ee38065 18932#define HAVE_PRSTATUS32_T 1
5464f5a1 18933_ACEOF
7ee38065
MS
18934
18935 fi
5464f5a1
NN
18936 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18937echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 18938
5464f5a1
NN
18939 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18940echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18941 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18942 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18943else
5464f5a1
NN
18944 cat >conftest.$ac_ext <<_ACEOF
18945/* confdefs.h. */
18946_ACEOF
18947cat confdefs.h >>conftest.$ac_ext
18948cat >>conftest.$ac_ext <<_ACEOF
18949/* end confdefs.h. */
7ee38065
MS
18950
18951#define _SYSCALL32
252b5132 18952#include <sys/procfs.h>
5464f5a1
NN
18953int
18954main ()
18955{
252b5132 18956prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18957 ;
18958 return 0;
18959}
18960_ACEOF
18961rm -f conftest.$ac_objext
18962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963 (eval $ac_compile) 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
7357c5b6
AM
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
5464f5a1
NN
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
252b5132
RH
18983 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18984else
5464f5a1
NN
18985 echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18989
252b5132 18990fi
5464f5a1 18991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18992fi
18993
18994 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
18995
18996cat >>confdefs.h <<\_ACEOF
252b5132 18997#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 18998_ACEOF
252b5132
RH
18999
19000 fi
5464f5a1
NN
19001 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19002echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 19003
5464f5a1
NN
19004 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19005echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19006 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19008else
5464f5a1
NN
19009 cat >conftest.$ac_ext <<_ACEOF
19010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
7ee38065
MS
19015
19016#define _SYSCALL32
19017#include <sys/procfs.h>
5464f5a1
NN
19018int
19019main ()
19020{
7ee38065 19021prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19022 ;
19023 return 0;
19024}
19025_ACEOF
19026rm -f conftest.$ac_objext
19027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028 (eval $ac_compile) 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
7357c5b6
AM
19035 { ac_try='test -z "$ac_c_werror_flag"
19036 || test ! -s conftest.err'
5464f5a1
NN
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest.$ac_objext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
7ee38065
MS
19048 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19049else
5464f5a1
NN
19050 echo "$as_me: failed program was:" >&5
19051sed 's/^/| /' conftest.$ac_ext >&5
19052
19053bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19054
7ee38065 19055fi
5464f5a1 19056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19057fi
19058
19059 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
19060
19061cat >>confdefs.h <<\_ACEOF
7ee38065 19062#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 19063_ACEOF
7ee38065
MS
19064
19065 fi
5464f5a1
NN
19066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19067echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 19068
5464f5a1
NN
19069 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19070echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19071 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19073else
5464f5a1
NN
19074 cat >conftest.$ac_ext <<_ACEOF
19075/* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
7ee38065
MS
19080
19081#define _SYSCALL32
252b5132 19082#include <sys/procfs.h>
5464f5a1
NN
19083int
19084main ()
19085{
252b5132 19086pstatus_t avar
5464f5a1
NN
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
7357c5b6
AM
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
5464f5a1
NN
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
252b5132
RH
19113 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19114else
5464f5a1
NN
19115 echo "$as_me: failed program was:" >&5
19116sed 's/^/| /' conftest.$ac_ext >&5
19117
19118bfd_cv_have_sys_procfs_type_pstatus_t=no
19119
252b5132 19120fi
5464f5a1 19121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19122fi
19123
19124 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
19125
19126cat >>confdefs.h <<\_ACEOF
252b5132 19127#define HAVE_PSTATUS_T 1
5464f5a1 19128_ACEOF
252b5132
RH
19129
19130 fi
5464f5a1
NN
19131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19132echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 19133
5464f5a1
NN
19134 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19135echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19136 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19137 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19138else
5464f5a1
NN
19139 cat >conftest.$ac_ext <<_ACEOF
19140/* confdefs.h. */
19141_ACEOF
19142cat confdefs.h >>conftest.$ac_ext
19143cat >>conftest.$ac_ext <<_ACEOF
19144/* end confdefs.h. */
f572a39d
AM
19145
19146#define _SYSCALL32
19147#include <sys/procfs.h>
5464f5a1
NN
19148int
19149main ()
19150{
f572a39d 19151pxstatus_t avar
5464f5a1
NN
19152 ;
19153 return 0;
19154}
19155_ACEOF
19156rm -f conftest.$ac_objext
19157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19158 (eval $ac_compile) 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
7357c5b6
AM
19165 { ac_try='test -z "$ac_c_werror_flag"
19166 || test ! -s conftest.err'
5464f5a1
NN
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
f572a39d
AM
19178 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19179else
5464f5a1
NN
19180 echo "$as_me: failed program was:" >&5
19181sed 's/^/| /' conftest.$ac_ext >&5
19182
19183bfd_cv_have_sys_procfs_type_pxstatus_t=no
19184
f572a39d 19185fi
5464f5a1 19186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19187fi
19188
19189 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
19190
19191cat >>confdefs.h <<\_ACEOF
f572a39d 19192#define HAVE_PXSTATUS_T 1
5464f5a1 19193_ACEOF
f572a39d
AM
19194
19195 fi
5464f5a1
NN
19196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19197echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 19198
5464f5a1
NN
19199 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19200echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19201 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19203else
5464f5a1
NN
19204 cat >conftest.$ac_ext <<_ACEOF
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
7ee38065
MS
19210
19211#define _SYSCALL32
19212#include <sys/procfs.h>
5464f5a1
NN
19213int
19214main ()
19215{
7ee38065 19216pstatus32_t avar
5464f5a1
NN
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext
19222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
7357c5b6
AM
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
5464f5a1
NN
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest.$ac_objext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
7ee38065
MS
19243 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19244else
5464f5a1
NN
19245 echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
19248bfd_cv_have_sys_procfs_type_pstatus32_t=no
19249
7ee38065 19250fi
5464f5a1 19251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19252fi
19253
19254 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
19255
19256cat >>confdefs.h <<\_ACEOF
7ee38065 19257#define HAVE_PSTATUS32_T 1
5464f5a1 19258_ACEOF
7ee38065
MS
19259
19260 fi
5464f5a1
NN
19261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19262echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 19263
5464f5a1
NN
19264 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19265echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19266 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19268else
5464f5a1
NN
19269 cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
7ee38065
MS
19275
19276#define _SYSCALL32
252b5132 19277#include <sys/procfs.h>
5464f5a1
NN
19278int
19279main ()
19280{
252b5132 19281prpsinfo_t avar
5464f5a1
NN
19282 ;
19283 return 0;
19284}
19285_ACEOF
19286rm -f conftest.$ac_objext
19287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288 (eval $ac_compile) 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } &&
7357c5b6
AM
19295 { ac_try='test -z "$ac_c_werror_flag"
19296 || test ! -s conftest.err'
5464f5a1
NN
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
252b5132
RH
19308 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19309else
5464f5a1
NN
19310 echo "$as_me: failed program was:" >&5
19311sed 's/^/| /' conftest.$ac_ext >&5
19312
19313bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19314
252b5132 19315fi
5464f5a1 19316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19317fi
19318
19319 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
19320
19321cat >>confdefs.h <<\_ACEOF
252b5132 19322#define HAVE_PRPSINFO_T 1
5464f5a1 19323_ACEOF
252b5132
RH
19324
19325 fi
5464f5a1
NN
19326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
19327echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 19328
5464f5a1
NN
19329 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
19330echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
19331 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19333else
5464f5a1
NN
19334 cat >conftest.$ac_ext <<_ACEOF
19335/* confdefs.h. */
19336_ACEOF
19337cat confdefs.h >>conftest.$ac_ext
19338cat >>conftest.$ac_ext <<_ACEOF
19339/* end confdefs.h. */
7ee38065
MS
19340
19341#define _SYSCALL32
19342#include <sys/procfs.h>
5464f5a1
NN
19343int
19344main ()
19345{
7ee38065 19346prpsinfo32_t avar
5464f5a1
NN
19347 ;
19348 return 0;
19349}
19350_ACEOF
19351rm -f conftest.$ac_objext
19352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19353 (eval $ac_compile) 2>conftest.er1
19354 ac_status=$?
19355 grep -v '^ *+' conftest.er1 >conftest.err
19356 rm -f conftest.er1
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359 (exit $ac_status); } &&
7357c5b6
AM
19360 { ac_try='test -z "$ac_c_werror_flag"
19361 || test ! -s conftest.err'
5464f5a1
NN
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
7ee38065
MS
19373 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
19374else
5464f5a1
NN
19375 echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
19379
7ee38065 19380fi
5464f5a1 19381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19382fi
19383
19384 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
19385
19386cat >>confdefs.h <<\_ACEOF
7ee38065 19387#define HAVE_PRPSINFO32_T 1
5464f5a1 19388_ACEOF
7ee38065
MS
19389
19390 fi
5464f5a1
NN
19391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
19392echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 19393
5464f5a1
NN
19394 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
19395echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
19396 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19398else
5464f5a1
NN
19399 cat >conftest.$ac_ext <<_ACEOF
19400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
19404/* end confdefs.h. */
7ee38065
MS
19405
19406#define _SYSCALL32
252b5132 19407#include <sys/procfs.h>
5464f5a1
NN
19408int
19409main ()
19410{
252b5132 19411psinfo_t avar
5464f5a1
NN
19412 ;
19413 return 0;
19414}
19415_ACEOF
19416rm -f conftest.$ac_objext
19417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19418 (eval $ac_compile) 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
7357c5b6
AM
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
5464f5a1
NN
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest.$ac_objext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
252b5132
RH
19438 bfd_cv_have_sys_procfs_type_psinfo_t=yes
19439else
5464f5a1
NN
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443bfd_cv_have_sys_procfs_type_psinfo_t=no
19444
252b5132 19445fi
5464f5a1 19446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19447fi
19448
19449 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
19450
19451cat >>confdefs.h <<\_ACEOF
252b5132 19452#define HAVE_PSINFO_T 1
5464f5a1 19453_ACEOF
252b5132
RH
19454
19455 fi
5464f5a1
NN
19456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
19457echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 19458
5464f5a1
NN
19459 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
19460echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
19461 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19463else
5464f5a1
NN
19464 cat >conftest.$ac_ext <<_ACEOF
19465/* confdefs.h. */
19466_ACEOF
19467cat confdefs.h >>conftest.$ac_ext
19468cat >>conftest.$ac_ext <<_ACEOF
19469/* end confdefs.h. */
7ee38065
MS
19470
19471#define _SYSCALL32
19472#include <sys/procfs.h>
5464f5a1
NN
19473int
19474main ()
19475{
7ee38065 19476psinfo32_t avar
5464f5a1
NN
19477 ;
19478 return 0;
19479}
19480_ACEOF
19481rm -f conftest.$ac_objext
19482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19483 (eval $ac_compile) 2>conftest.er1
19484 ac_status=$?
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
7357c5b6
AM
19490 { ac_try='test -z "$ac_c_werror_flag"
19491 || test ! -s conftest.err'
5464f5a1
NN
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
7ee38065
MS
19503 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
19504else
5464f5a1
NN
19505 echo "$as_me: failed program was:" >&5
19506sed 's/^/| /' conftest.$ac_ext >&5
19507
19508bfd_cv_have_sys_procfs_type_psinfo32_t=no
19509
7ee38065 19510fi
5464f5a1 19511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19512fi
19513
19514 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
19515
19516cat >>confdefs.h <<\_ACEOF
7ee38065 19517#define HAVE_PSINFO32_T 1
5464f5a1 19518_ACEOF
7ee38065
MS
19519
19520 fi
5464f5a1
NN
19521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
19522echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 19523
5464f5a1
NN
19524 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
19525echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
19526 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
19527 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19528else
5464f5a1
NN
19529 cat >conftest.$ac_ext <<_ACEOF
19530/* confdefs.h. */
19531_ACEOF
19532cat confdefs.h >>conftest.$ac_ext
19533cat >>conftest.$ac_ext <<_ACEOF
19534/* end confdefs.h. */
7ee38065
MS
19535
19536#define _SYSCALL32
252b5132 19537#include <sys/procfs.h>
5464f5a1
NN
19538int
19539main ()
19540{
252b5132 19541lwpstatus_t avar
5464f5a1
NN
19542 ;
19543 return 0;
19544}
19545_ACEOF
19546rm -f conftest.$ac_objext
19547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
7357c5b6
AM
19555 { ac_try='test -z "$ac_c_werror_flag"
19556 || test ! -s conftest.err'
5464f5a1
NN
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
252b5132
RH
19568 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
19569else
5464f5a1
NN
19570 echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
19572
19573bfd_cv_have_sys_procfs_type_lwpstatus_t=no
19574
252b5132 19575fi
5464f5a1 19576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19577fi
19578
19579 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
19580
19581cat >>confdefs.h <<\_ACEOF
252b5132 19582#define HAVE_LWPSTATUS_T 1
5464f5a1 19583_ACEOF
252b5132
RH
19584
19585 fi
5464f5a1
NN
19586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
19587echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 19588
5464f5a1
NN
19589 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
19590echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
19591 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19593else
5464f5a1
NN
19594 cat >conftest.$ac_ext <<_ACEOF
19595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h. */
f572a39d
AM
19600
19601#define _SYSCALL32
19602#include <sys/procfs.h>
5464f5a1
NN
19603int
19604main ()
19605{
f572a39d 19606lwpxstatus_t avar
5464f5a1
NN
19607 ;
19608 return 0;
19609}
19610_ACEOF
19611rm -f conftest.$ac_objext
19612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19613 (eval $ac_compile) 2>conftest.er1
19614 ac_status=$?
19615 grep -v '^ *+' conftest.er1 >conftest.err
19616 rm -f conftest.er1
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
7357c5b6
AM
19620 { ac_try='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
5464f5a1
NN
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
f572a39d
AM
19633 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
19634else
5464f5a1
NN
19635 echo "$as_me: failed program was:" >&5
19636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
19639
f572a39d 19640fi
5464f5a1 19641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19642fi
19643
19644 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
19645
19646cat >>confdefs.h <<\_ACEOF
f572a39d 19647#define HAVE_LWPXSTATUS_T 1
5464f5a1 19648_ACEOF
f572a39d
AM
19649
19650 fi
5464f5a1
NN
19651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
19652echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 19653
5464f5a1
NN
19654 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
19655echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
19656 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19658else
5464f5a1
NN
19659 cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
7ee38065
MS
19665
19666#define _SYSCALL32
252b5132 19667#include <sys/procfs.h>
5464f5a1
NN
19668int
19669main ()
19670{
252b5132 19671lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
19672 ;
19673 return 0;
19674}
19675_ACEOF
19676rm -f conftest.$ac_objext
19677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678 (eval $ac_compile) 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
7357c5b6
AM
19685 { ac_try='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
5464f5a1
NN
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
252b5132
RH
19698 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
19699else
5464f5a1
NN
19700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
19703bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
19704
252b5132 19705fi
5464f5a1 19706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19707fi
19708
19709 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
19710
19711cat >>confdefs.h <<\_ACEOF
252b5132 19712#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 19713_ACEOF
252b5132
RH
19714
19715 fi
5464f5a1
NN
19716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
19717echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 19718
5464f5a1
NN
19719 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
19720echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
19721 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19723else
5464f5a1
NN
19724 cat >conftest.$ac_ext <<_ACEOF
19725/* confdefs.h. */
19726_ACEOF
19727cat confdefs.h >>conftest.$ac_ext
19728cat >>conftest.$ac_ext <<_ACEOF
19729/* end confdefs.h. */
7ee38065
MS
19730
19731#define _SYSCALL32
252b5132 19732#include <sys/procfs.h>
5464f5a1
NN
19733int
19734main ()
19735{
252b5132 19736lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
19737 ;
19738 return 0;
19739}
19740_ACEOF
19741rm -f conftest.$ac_objext
19742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19743 (eval $ac_compile) 2>conftest.er1
19744 ac_status=$?
19745 grep -v '^ *+' conftest.er1 >conftest.err
19746 rm -f conftest.er1
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
7357c5b6
AM
19750 { ac_try='test -z "$ac_c_werror_flag"
19751 || test ! -s conftest.err'
5464f5a1
NN
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
252b5132
RH
19763 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
19764else
5464f5a1
NN
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
19769
252b5132 19770fi
5464f5a1 19771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19772fi
19773
19774 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
19775
19776cat >>confdefs.h <<\_ACEOF
252b5132 19777#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 19778_ACEOF
252b5132
RH
19779
19780 fi
5464f5a1
NN
19781 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
19782echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 19783
5464f5a1
NN
19784 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
19785echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
19786 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 19788else
5464f5a1
NN
19789 cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h. */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h. */
7ee38065
MS
19795
19796#define _SYSCALL32
e3c976c4 19797#include <sys/procfs.h>
5464f5a1
NN
19798int
19799main ()
19800{
e3c976c4 19801win32_pstatus_t avar
5464f5a1
NN
19802 ;
19803 return 0;
19804}
19805_ACEOF
19806rm -f conftest.$ac_objext
19807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19808 (eval $ac_compile) 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } &&
7357c5b6
AM
19815 { ac_try='test -z "$ac_c_werror_flag"
19816 || test ! -s conftest.err'
5464f5a1
NN
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; } &&
19822 { ac_try='test -s conftest.$ac_objext'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
e3c976c4
ILT
19828 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
19829else
5464f5a1
NN
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
19834
e3c976c4 19835fi
5464f5a1 19836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19837fi
19838
e3c976c4 19839 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
19840
19841cat >>confdefs.h <<\_ACEOF
e3c976c4 19842#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 19843_ACEOF
16e9c715
NC
19844
19845 fi
5464f5a1
NN
19846 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
19847echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
19848
19849 fi
19850fi
16e9c715 19851
b3baf5d0 19852
6be7c12c 19853if test -n "$TRAD_HEADER"; then
5464f5a1
NN
19854
19855cat >>confdefs.h <<_ACEOF
252b5132 19856#define TRAD_HEADER $TRAD_HEADER
5464f5a1 19857_ACEOF
252b5132 19858
3f9b03b5 19859fi
252b5132
RH
19860
19861# Horrible hacks to build DLLs on Windows.
19862WIN32LDFLAGS=
19863WIN32LIBADD=
19864case "${host}" in
19865*-*-cygwin*)
19866 if test "$enable_shared" = "yes"; then
19867 WIN32LDFLAGS="-no-undefined"
19868 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
19869 fi
19870 ;;
78be1d6e 19871*-*-linux*)
39691762
L
19872 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
19873 # libiberty.a.
c5cb8442
TS
19874 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
19875 if test -n "$x"; then
19876 WIN32LIBADD="-L../libiberty/pic -liberty"
19877 fi
39691762 19878 ;;
252b5132
RH
19879esac
19880
6be7c12c
AO
19881
19882
252b5132
RH
19883# target stuff:
19884
19885# Canonicalize the secondary target names.
19886if test -n "$enable_targets" ; then
19887 for targ in `echo $enable_targets | sed 's/,/ /g'`
19888 do
6d83c84b 19889 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
19890 if test -n "$result" ; then
19891 canon_targets="$canon_targets $result"
19892 else
19893 # Allow targets that config.sub doesn't recognize, like "all".
19894 canon_targets="$canon_targets $targ"
19895 fi
19896 done
19897fi
19898
19899all_targets=false
19900defvec=
19901selvecs=
08f74004 19902assocvecs=
252b5132
RH
19903selarchs=
19904TDEFINES=
19905for targ in $target $canon_targets
19906do
19907 if test "x$targ" = "xall"; then
19908 all_targets=true
08f74004 19909 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
19910 else
19911 . $srcdir/config.bfd
19912 if test "x$targ" = "x$target"; then
19913 defvec=$targ_defvec
19914 fi
19915 selvecs="$selvecs $targ_defvec $targ_selvecs"
19916 selarchs="$selarchs $targ_archs"
19917 TDEFINES="$TDEFINES $targ_cflags"
19918 fi
19919done
19920
6be7c12c 19921
252b5132
RH
19922# This processing still needs to be done if we're to decide properly whether
19923# 64-bit support needs to be compiled in. Currently, it will be included if
19924# the default or any other explicitly requested target requires it; it
19925# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 19926# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
19927# used.
19928
19929# uniq the default and selected vectors in all the configured targets.
19930f=""
19931for i in $selvecs ; do
19932 case " $f " in
19933 *" $i "*) ;;
19934 *) f="$f $i" ;;
19935 esac
19936done
19937selvecs="$f"
19938
6be7c12c 19939
08f74004
AM
19940# uniq the associated vectors in all the configured targets.
19941f=""
19942for i in $assocvecs ; do
19943 case " $f " in
19944 *" $i "*) ;;
19945 *) f="$f $i" ;;
19946 esac
19947done
19948assocvecs="$f"
19949
19950
252b5132
RH
19951# uniq the architectures in all the configured targets.
19952f=""
19953for i in $selarchs ; do
19954 case " $f " in
19955 *" $i "*) ;;
19956 *) f="$f $i" ;;
19957 esac
19958done
19959selarchs="$f"
19960
19961# Target backend .o files.
19962tb=
19963
104d59d1 19964elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
19965
19966for vec in $selvecs
19967do
69263e90 19968 target_size=32
252b5132
RH
19969 case "$vec" in
19970 # This list is alphabetized to make it easy to compare
dc810e39
AM
19971 # with the two vector lists in targets.c. For the same reason,
19972 # use one entry per line, even though this leads to long lines.
252b5132 19973 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 19974 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
19975 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19976 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19977 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 19978 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
19979 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19980 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19981 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19982 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
19983 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19984 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19985 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19986 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
19987 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19988 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19989 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19990 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19991 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19992 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19993 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
19994 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19995 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 19996 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
19997 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19998 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 19999 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
20000 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20001 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 20002 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
20003 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20004 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 20005 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 20006 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 20007 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 20008 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 20009 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 20010 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 20011 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 20012 bfd_elf32_bigarm_symbian_vec)
00a97672 20013 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20014 bfd_elf32_bigarm_vxworks_vec)
00a97672 20015 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20016 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20017 bfd_elf32_bigmips_vxworks_vec)
20018 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 20019 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 20020 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 20021 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 20022 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
20023 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20024 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 20025 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 20026 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 20027 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 20028 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 20029 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 20030 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 20031 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 20032 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 20033 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
20034 bfd_elf32_i386_dragonfly_vec)
20035 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
20036 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20037 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20038 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 20039 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 20040 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 20041 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 20042 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 20043 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 20044 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 20045 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 20046 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 20047 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 20048 bfd_elf32_littlearm_symbian_vec)
00a97672 20049 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20050 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
20051 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20052 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20053 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20054 bfd_elf32_littlemips_vxworks_vec)
20055 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 20056 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 20057 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
20058 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20059 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20060 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
20061 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20062 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
20063 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20064 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20065 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20066 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
20067 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20068 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
20069 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20070 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 20071 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 20072 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
20073 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20074 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20075 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20076 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 20077 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 20078 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
20079 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20080 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
20081 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20082 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20083 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 20084 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
20085 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20086 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
20087 # FIXME: We include cofflink.lo not because it's needed for
20088 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20089 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
20090 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20091 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20092 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20093 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20094 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20095 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20096 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20097 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20098 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20099 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20100 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20101 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20102 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 20103 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 20104 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
20105 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20106 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 20107 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
20108 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20109 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 20110 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 20111 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 20112 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 20113 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 20114 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
20115 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20116 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 20117 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20118 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20119 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20120 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 ;;
dc810e39
AM
20121 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20122 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20123 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 20124 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20125 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20126 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20127 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 ;;
3c3bdf30 20128 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
20129 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20130 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20131 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
20132 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20133 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
20134 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20135 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20136 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20137 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 20138 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 20139 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
20140 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 ;;
20141 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 ;;
9d7cbccd 20142 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20143 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 20144 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
20145 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20146 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20147 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20148 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 20149 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 20150 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 20151 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 20152 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
20153 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20154 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
20155 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20156 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20157 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20158 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20159 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20160 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20161 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20162 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20163 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20164 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 20165 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20166 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20167 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
20168 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20169 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20170 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20171 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 20172 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
20173 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20174 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
20175 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20176 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
20177 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20178 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20179 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20180 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20181 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20182 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
20183 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20184 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
20185 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20186 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20187 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 20188 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
20189 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20190 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 20191 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 20192 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 20193 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
20194 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20195 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20196 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
20197 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20198 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20199 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20200 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
20201 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20202 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 20203 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 20204 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 20205 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 20206 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 20207 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 20208 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 20209 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 20210 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
20211 pef_vec) tb="$tb pef.lo" ;;
20212 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 20213 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 20214 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20215 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 20216 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 20217 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 20218 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20219 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20220 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 20221 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20222 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
20223 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20224 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 20225 som_vec) tb="$tb som.lo" ;;
dc810e39 20226 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
20227 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20228 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20229 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20230 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20231 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 20232 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 20233 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
20234 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20235 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
20236 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20237 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20238 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20239 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20240 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20241 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 20242 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20243 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20244 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20245 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20246 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20247 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 20248 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 20249 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 20250 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 20251 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 20252 versados_vec) tb="$tb versados.lo" ;;
dc810e39 20253 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
20254 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20255 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20256 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 20257 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 20258 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 20259
341ca622
AM
20260 # These appear out of order in targets.c
20261 srec_vec) tb="$tb srec.lo" ;;
20262 symbolsrec_vec) tb="$tb srec.lo" ;;
20263 tekhex_vec) tb="$tb tekhex.lo" ;;
20264 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20265 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20266
252b5132 20267 "") ;;
5464f5a1
NN
20268 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20269echo "$as_me: error: *** unknown target vector $vec" >&2;}
20270 { (exit 1); exit 1; }; } ;;
252b5132 20271 esac
69263e90
AM
20272
20273 if test ${target_size} = 64; then
20274 target64=true
20275 fi
20276 if test x"${vec}" = x"${defvec}"; then
20277 bfd_default_target_size=${target_size}
20278 fi
252b5132
RH
20279done
20280
20281# Target architecture .o files.
20282# A couple of CPUs use shorter file names to avoid problems on DOS
20283# filesystems.
d031aafb 20284ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
20285
20286# Weed out duplicate .o files.
20287f=""
20288for i in $tb ; do
20289 case " $f " in
20290 *" $i "*) ;;
20291 *) f="$f $i" ;;
20292 esac
20293done
20294tb="$f"
20295
20296f=""
20297for i in $ta ; do
20298 case " $f " in
20299 *" $i "*) ;;
20300 *) f="$f $i" ;;
20301 esac
20302done
20303ta="$f"
20304
20305bfd_backends="$tb"
20306bfd_machines="$ta"
20307
20308if test x${all_targets} = xtrue ; then
20309 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20310 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20311 selvecs=
20312 havevecs=
20313 selarchs=
08f74004
AM
20314 test -n "$assocvecs" &&
20315 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
20316else # all_targets is true
20317 # Only set these if they will be nonempty, for the clever echo.
20318 havevecs=
08f74004 20319 assocvecs=
252b5132
RH
20320 test -n "$selvecs" &&
20321 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
20322 test -n "$selvecs" &&
20323 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20324 test -n "$selarchs" &&
20325 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
20326fi # all_targets is true
20327
20328case ${host64}-${target64}-${want64} in
20329 *true*)
20330 wordsize=64
21e40a48 20331 bfd64_libs='$(BFD64_LIBS)'
252b5132 20332 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 20333 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
20334 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
20335echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
20336 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
20337echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 20338 fi
966abd70
HPN
20339 if test -n "$GCC" ; then
20340 bad_64bit_gcc=no;
5464f5a1
NN
20341 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
20342echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 20343 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
20344 cat >conftest.$ac_ext <<_ACEOF
20345/* confdefs.h. */
20346_ACEOF
20347cat confdefs.h >>conftest.$ac_ext
20348cat >>conftest.$ac_ext <<_ACEOF
20349/* end confdefs.h. */
966abd70 20350:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 20351_ACEOF
966abd70 20352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 20353 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 20354 bad_64bit_gcc=yes;
5464f5a1
NN
20355 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
20356echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 20357else
5464f5a1
NN
20358 echo "$as_me:$LINENO: result: no" >&5
20359echo "${ECHO_T}no" >&6
966abd70
HPN
20360fi
20361rm -f conftest*
20362
20363 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
20364 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
20365echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
20366 { (exit 1); exit 1; }; }
966abd70
HPN
20367 fi
20368 fi
252b5132
RH
20369 ;;
20370 false-false-false)
20371 wordsize=32
20372 all_backends='$(BFD32_BACKENDS)'
20373 ;;
20374esac
20375
6be7c12c
AO
20376
20377
20378
20379
20380
69263e90 20381
2858ef35 20382
1012372a
AC
20383# Determine the host dependant file_ptr a.k.a. off_t type. In order
20384# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
20385# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
20386# Hopefully a reasonable assumption since fseeko et.al. should be
20387# upward compatible.
5464f5a1
NN
20388
20389
20390
20391
2e6f4fae
DJ
20392
20393for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 20394do
5464f5a1
NN
20395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20396echo "$as_me:$LINENO: checking for $ac_func" >&5
20397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20398if eval "test \"\${$as_ac_var+set}\" = set"; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
2ba49b59
KC
20401 cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h. */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h. */
20407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20409#define $ac_func innocuous_$ac_func
20410
20411/* System header to define __stub macros and hopefully few prototypes,
20412 which can conflict with char $ac_func (); below.
20413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20414 <limits.h> exists even on freestanding compilers. */
20415
20416#ifdef __STDC__
20417# include <limits.h>
20418#else
20419# include <assert.h>
20420#endif
20421
20422#undef $ac_func
20423
20424/* Override any gcc2 internal prototype to avoid an error. */
20425#ifdef __cplusplus
20426extern "C"
20427{
20428#endif
20429/* We use char because int might match the return type of a gcc2
20430 builtin and then its argument prototype would still apply. */
20431char $ac_func ();
20432/* The GNU C library defines this for functions which it implements
20433 to always fail with ENOSYS. Some functions are actually named
20434 something starting with __ and the normal name is an alias. */
20435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20436choke me
20437#else
20438char (*f) () = $ac_func;
20439#endif
20440#ifdef __cplusplus
20441}
20442#endif
20443
20444int
20445main ()
20446{
20447return f != $ac_func;
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext conftest$ac_exeext
20453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454 (eval $ac_link) 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
7357c5b6
AM
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
2ba49b59
KC
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest$ac_exeext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
20474 eval "$as_ac_var=yes"
20475else
20476 echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
20479eval "$as_ac_var=no"
20480fi
20481rm -f conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20483fi
20484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20486if test `eval echo '${'$as_ac_var'}'` = yes; then
20487 cat >>confdefs.h <<_ACEOF
20488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20489_ACEOF
20490
20491fi
20492done
20493
20494if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
20495 echo "$as_me:$LINENO: checking for off_t" >&5
20496echo $ECHO_N "checking for off_t... $ECHO_C" >&6
20497if test "${ac_cv_type_off_t+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20499else
20500 cat >conftest.$ac_ext <<_ACEOF
20501/* confdefs.h. */
20502_ACEOF
20503cat confdefs.h >>conftest.$ac_ext
20504cat >>conftest.$ac_ext <<_ACEOF
20505/* end confdefs.h. */
20506$ac_includes_default
20507int
20508main ()
20509{
20510if ((off_t *) 0)
20511 return 0;
20512if (sizeof (off_t))
20513 return 0;
20514 ;
20515 return 0;
20516}
20517_ACEOF
20518rm -f conftest.$ac_objext
20519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20520 (eval $ac_compile) 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
7357c5b6
AM
20527 { ac_try='test -z "$ac_c_werror_flag"
20528 || test ! -s conftest.err'
2ba49b59
KC
20529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20530 (eval $ac_try) 2>&5
20531 ac_status=$?
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
20535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536 (eval $ac_try) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
20540 ac_cv_type_off_t=yes
20541else
20542 echo "$as_me: failed program was:" >&5
20543sed 's/^/| /' conftest.$ac_ext >&5
20544
20545ac_cv_type_off_t=no
20546fi
20547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20548fi
20549echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20550echo "${ECHO_T}$ac_cv_type_off_t" >&6
20551
20552echo "$as_me:$LINENO: checking size of off_t" >&5
20553echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
20554if test "${ac_cv_sizeof_off_t+set}" = set; then
20555 echo $ECHO_N "(cached) $ECHO_C" >&6
20556else
20557 if test "$ac_cv_type_off_t" = yes; then
20558 # The cast to unsigned long works around a bug in the HP C Compiler
20559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20561 # This bug is HP SR number 8606223364.
20562 if test "$cross_compiling" = yes; then
20563 # Depending upon the size, compute the lo and hi bounds.
20564cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
20565/* confdefs.h. */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h. */
2ba49b59
KC
20570$ac_includes_default
20571int
20572main ()
20573{
20574static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
20575test_array [0] = 0
5464f5a1 20576
2ba49b59
KC
20577 ;
20578 return 0;
20579}
20580_ACEOF
20581rm -f conftest.$ac_objext
20582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583 (eval $ac_compile) 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
7357c5b6
AM
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
2ba49b59
KC
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest.$ac_objext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_lo=0 ac_mid=0
20604 while :; do
20605 cat >conftest.$ac_ext <<_ACEOF
20606/* confdefs.h. */
20607_ACEOF
20608cat confdefs.h >>conftest.$ac_ext
20609cat >>conftest.$ac_ext <<_ACEOF
20610/* end confdefs.h. */
20611$ac_includes_default
20612int
20613main ()
20614{
20615static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20616test_array [0] = 0
5464f5a1 20617
2ba49b59
KC
20618 ;
20619 return 0;
20620}
20621_ACEOF
20622rm -f conftest.$ac_objext
20623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20624 (eval $ac_compile) 2>conftest.er1
20625 ac_status=$?
20626 grep -v '^ *+' conftest.er1 >conftest.err
20627 rm -f conftest.er1
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } &&
7357c5b6
AM
20631 { ac_try='test -z "$ac_c_werror_flag"
20632 || test ! -s conftest.err'
2ba49b59
KC
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; } &&
20638 { ac_try='test -s conftest.$ac_objext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_hi=$ac_mid; break
20645else
20646 echo "$as_me: failed program was:" >&5
20647sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20648
2ba49b59
KC
20649ac_lo=`expr $ac_mid + 1`
20650 if test $ac_lo -le $ac_mid; then
20651 ac_lo= ac_hi=
20652 break
20653 fi
20654 ac_mid=`expr 2 '*' $ac_mid + 1`
20655fi
20656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20657 done
20658else
20659 echo "$as_me: failed program was:" >&5
20660sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20661
2ba49b59
KC
20662cat >conftest.$ac_ext <<_ACEOF
20663/* confdefs.h. */
20664_ACEOF
20665cat confdefs.h >>conftest.$ac_ext
20666cat >>conftest.$ac_ext <<_ACEOF
20667/* end confdefs.h. */
20668$ac_includes_default
20669int
20670main ()
5464f5a1 20671{
2ba49b59
KC
20672static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
20673test_array [0] = 0
1012372a 20674
2ba49b59
KC
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext
20680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
7357c5b6
AM
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
2ba49b59
KC
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 ac_hi=-1 ac_mid=-1
20702 while :; do
20703 cat >conftest.$ac_ext <<_ACEOF
20704/* confdefs.h. */
20705_ACEOF
20706cat confdefs.h >>conftest.$ac_ext
20707cat >>conftest.$ac_ext <<_ACEOF
20708/* end confdefs.h. */
20709$ac_includes_default
5464f5a1
NN
20710int
20711main ()
20712{
2ba49b59
KC
20713static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
20714test_array [0] = 0
20715
5464f5a1
NN
20716 ;
20717 return 0;
20718}
20719_ACEOF
2ba49b59
KC
20720rm -f conftest.$ac_objext
20721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20722 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } &&
7357c5b6
AM
20729 { ac_try='test -z "$ac_c_werror_flag"
20730 || test ! -s conftest.err'
5464f5a1
NN
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; } &&
2ba49b59 20736 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; }; then
2ba49b59 20742 ac_lo=$ac_mid; break
5464f5a1
NN
20743else
20744 echo "$as_me: failed program was:" >&5
20745sed 's/^/| /' conftest.$ac_ext >&5
20746
2ba49b59
KC
20747ac_hi=`expr '(' $ac_mid ')' - 1`
20748 if test $ac_mid -le $ac_hi; then
20749 ac_lo= ac_hi=
20750 break
20751 fi
20752 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 20753fi
2ba49b59
KC
20754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20755 done
20756else
20757 echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20759
2ba49b59 20760ac_lo= ac_hi=
1012372a 20761fi
2ba49b59
KC
20762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20763fi
20764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20765# Binary search between lo and hi bounds.
20766while test "x$ac_lo" != "x$ac_hi"; do
20767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
20768 cat >conftest.$ac_ext <<_ACEOF
20769/* confdefs.h. */
20770_ACEOF
20771cat confdefs.h >>conftest.$ac_ext
20772cat >>conftest.$ac_ext <<_ACEOF
20773/* end confdefs.h. */
2ba49b59 20774$ac_includes_default
5464f5a1
NN
20775int
20776main ()
20777{
2ba49b59
KC
20778static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
20779test_array [0] = 0
20780
5464f5a1
NN
20781 ;
20782 return 0;
20783}
20784_ACEOF
20785rm -f conftest.$ac_objext
20786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787 (eval $ac_compile) 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
7357c5b6
AM
20794 { ac_try='test -z "$ac_c_werror_flag"
20795 || test ! -s conftest.err'
5464f5a1
NN
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
2ba49b59 20807 ac_hi=$ac_mid
1012372a 20808else
5464f5a1
NN
20809 echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811
2ba49b59 20812ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 20813fi
5464f5a1 20814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 20815done
2ba49b59
KC
20816case $ac_lo in
20817?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
20818'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20819echo "$as_me: error: in \`$ac_pwd':" >&2;}
20820{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
20821See \`config.log' for more details." >&5
20822echo "$as_me: error: cannot compute sizeof (off_t), 77
20823See \`config.log' for more details." >&2;}
7357c5b6 20824 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
20825esac
20826else
20827 if test "$cross_compiling" = yes; then
7357c5b6
AM
20828 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20829echo "$as_me: error: in \`$ac_pwd':" >&2;}
20830{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20831See \`config.log' for more details." >&5
20832echo "$as_me: error: cannot run test program while cross compiling
20833See \`config.log' for more details." >&2;}
20834 { (exit 1); exit 1; }; }; }
2ba49b59
KC
20835else
20836 cat >conftest.$ac_ext <<_ACEOF
20837/* confdefs.h. */
20838_ACEOF
20839cat confdefs.h >>conftest.$ac_ext
20840cat >>conftest.$ac_ext <<_ACEOF
20841/* end confdefs.h. */
20842$ac_includes_default
20843long longval () { return (long) (sizeof (off_t)); }
20844unsigned long ulongval () { return (long) (sizeof (off_t)); }
20845#include <stdio.h>
20846#include <stdlib.h>
20847int
20848main ()
20849{
1012372a 20850
2ba49b59
KC
20851 FILE *f = fopen ("conftest.val", "w");
20852 if (! f)
20853 exit (1);
20854 if (((long) (sizeof (off_t))) < 0)
20855 {
20856 long i = longval ();
20857 if (i != ((long) (sizeof (off_t))))
20858 exit (1);
20859 fprintf (f, "%ld\n", i);
20860 }
20861 else
20862 {
20863 unsigned long i = ulongval ();
20864 if (i != ((long) (sizeof (off_t))))
20865 exit (1);
20866 fprintf (f, "%lu\n", i);
20867 }
20868 exit (ferror (f) || fclose (f) != 0);
20869
20870 ;
20871 return 0;
20872}
20873_ACEOF
20874rm -f conftest$ac_exeext
20875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20876 (eval $ac_link) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_sizeof_off_t=`cat conftest.val`
20886else
20887 echo "$as_me: program exited with status $ac_status" >&5
20888echo "$as_me: failed program was:" >&5
20889sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20890
2ba49b59 20891( exit $ac_status )
7357c5b6
AM
20892{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20893echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
20894{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20895See \`config.log' for more details." >&5
20896echo "$as_me: error: cannot compute sizeof (off_t), 77
20897See \`config.log' for more details." >&2;}
7357c5b6 20898 { (exit 1); exit 1; }; }; }
1012372a 20899fi
2ba49b59
KC
20900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20901fi
20902fi
20903rm -f conftest.val
20904else
20905 ac_cv_sizeof_off_t=0
20906fi
20907fi
5464f5a1
NN
20908echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20909echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 20910cat >>confdefs.h <<_ACEOF
1012372a 20911#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 20912_ACEOF
1012372a
AC
20913
20914
1012372a 20915fi
5464f5a1
NN
20916echo "$as_me:$LINENO: checking file_ptr type" >&5
20917echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
20918bfd_file_ptr="long"
20919bfd_ufile_ptr="unsigned long"
20920if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20921 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
20922 bfd_file_ptr=BFD_HOST_64_BIT
20923 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20924fi
5464f5a1
NN
20925echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20926echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
20927
20928
20929
20930
252b5132
RH
20931tdefaults=""
20932test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20933test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 20934test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
20935test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20936test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20937
6be7c12c 20938
5464f5a1
NN
20939
20940
20941for ac_header in stdlib.h unistd.h
252b5132 20942do
5464f5a1
NN
20943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20944if eval "test \"\${$as_ac_Header+set}\" = set"; then
20945 echo "$as_me:$LINENO: checking for $ac_header" >&5
20946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20947if eval "test \"\${$as_ac_Header+set}\" = set"; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949fi
20950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20952else
20953 # Is the header compilable?
20954echo "$as_me:$LINENO: checking $ac_header usability" >&5
20955echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20956cat >conftest.$ac_ext <<_ACEOF
20957/* confdefs.h. */
20958_ACEOF
20959cat confdefs.h >>conftest.$ac_ext
20960cat >>conftest.$ac_ext <<_ACEOF
20961/* end confdefs.h. */
20962$ac_includes_default
20963#include <$ac_header>
20964_ACEOF
20965rm -f conftest.$ac_objext
20966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20967 (eval $ac_compile) 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
7357c5b6
AM
20974 { ac_try='test -z "$ac_c_werror_flag"
20975 || test ! -s conftest.err'
5464f5a1
NN
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_header_compiler=yes
20988else
20989 echo "$as_me: failed program was:" >&5
20990sed 's/^/| /' conftest.$ac_ext >&5
20991
20992ac_header_compiler=no
20993fi
20994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20995echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20996echo "${ECHO_T}$ac_header_compiler" >&6
20997
20998# Is the header present?
20999echo "$as_me:$LINENO: checking $ac_header presence" >&5
21000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21001cat >conftest.$ac_ext <<_ACEOF
21002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
21007#include <$ac_header>
21008_ACEOF
21009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } >/dev/null; then
21017 if test -s conftest.err; then
21018 ac_cpp_err=$ac_c_preproc_warn_flag
21019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21020 else
21021 ac_cpp_err=
21022 fi
252b5132 21023else
5464f5a1 21024 ac_cpp_err=yes
252b5132 21025fi
5464f5a1
NN
21026if test -z "$ac_cpp_err"; then
21027 ac_header_preproc=yes
21028else
21029 echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 ac_header_preproc=no
252b5132 21033fi
5464f5a1
NN
21034rm -f conftest.err conftest.$ac_ext
21035echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21036echo "${ECHO_T}$ac_header_preproc" >&6
21037
21038# So? What about this header?
21039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21040 yes:no: )
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21045 ac_header_preproc=yes
21046 ;;
21047 no:yes:* )
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21060 (
21061 cat <<\_ASBOX
21062## ------------------------------------------ ##
21063## Report this to the AC_PACKAGE_NAME lists. ##
21064## ------------------------------------------ ##
21065_ASBOX
21066 ) |
21067 sed "s/^/$as_me: WARNING: /" >&2
21068 ;;
21069esac
21070echo "$as_me:$LINENO: checking for $ac_header" >&5
21071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21072if eval "test \"\${$as_ac_Header+set}\" = set"; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 21074else
5464f5a1
NN
21075 eval "$as_ac_Header=\$ac_header_preproc"
21076fi
21077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21079
21080fi
21081if test `eval echo '${'$as_ac_Header'}'` = yes; then
21082 cat >>confdefs.h <<_ACEOF
21083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21084_ACEOF
21085
252b5132 21086fi
5464f5a1 21087
252b5132
RH
21088done
21089
5464f5a1 21090
252b5132
RH
21091for ac_func in getpagesize
21092do
5464f5a1
NN
21093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21094echo "$as_me:$LINENO: checking for $ac_func" >&5
21095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21096if eval "test \"\${$as_ac_var+set}\" = set"; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098else
21099 cat >conftest.$ac_ext <<_ACEOF
21100/* confdefs.h. */
21101_ACEOF
21102cat confdefs.h >>conftest.$ac_ext
21103cat >>conftest.$ac_ext <<_ACEOF
21104/* end confdefs.h. */
21105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21107#define $ac_func innocuous_$ac_func
21108
252b5132 21109/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
21110 which can conflict with char $ac_func (); below.
21111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21112 <limits.h> exists even on freestanding compilers. */
21113
21114#ifdef __STDC__
21115# include <limits.h>
21116#else
21117# include <assert.h>
21118#endif
6be7c12c 21119
5464f5a1 21120#undef $ac_func
252b5132 21121
5464f5a1
NN
21122/* Override any gcc2 internal prototype to avoid an error. */
21123#ifdef __cplusplus
21124extern "C"
21125{
21126#endif
21127/* We use char because int might match the return type of a gcc2
21128 builtin and then its argument prototype would still apply. */
21129char $ac_func ();
252b5132
RH
21130/* The GNU C library defines this for functions which it implements
21131 to always fail with ENOSYS. Some functions are actually named
21132 something starting with __ and the normal name is an alias. */
21133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21134choke me
21135#else
5464f5a1
NN
21136char (*f) () = $ac_func;
21137#endif
21138#ifdef __cplusplus
21139}
252b5132
RH
21140#endif
21141
5464f5a1
NN
21142int
21143main ()
21144{
21145return f != $ac_func;
21146 ;
21147 return 0;
21148}
21149_ACEOF
21150rm -f conftest.$ac_objext conftest$ac_exeext
21151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21152 (eval $ac_link) 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } &&
7357c5b6
AM
21159 { ac_try='test -z "$ac_c_werror_flag"
21160 || test ! -s conftest.err'
5464f5a1
NN
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest$ac_exeext'
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 eval "$as_ac_var=yes"
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177eval "$as_ac_var=no"
21178fi
21179rm -f conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21181fi
21182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21183echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21184if test `eval echo '${'$as_ac_var'}'` = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21187_ACEOF
252b5132 21188
252b5132
RH
21189fi
21190done
21191
5464f5a1
NN
21192echo "$as_me:$LINENO: checking for working mmap" >&5
21193echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21194if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
21196else
21197 if test "$cross_compiling" = yes; then
21198 ac_cv_func_mmap_fixed_mapped=no
21199else
5464f5a1
NN
21200 cat >conftest.$ac_ext <<_ACEOF
21201/* confdefs.h. */
21202_ACEOF
21203cat confdefs.h >>conftest.$ac_ext
21204cat >>conftest.$ac_ext <<_ACEOF
21205/* end confdefs.h. */
21206$ac_includes_default
21207/* malloc might have been renamed as rpl_malloc. */
21208#undef malloc
6be7c12c 21209
252b5132
RH
21210/* Thanks to Mike Haertel and Jim Avera for this test.
21211 Here is a matrix of mmap possibilities:
21212 mmap private not fixed
21213 mmap private fixed at somewhere currently unmapped
21214 mmap private fixed at somewhere already mapped
21215 mmap shared not fixed
21216 mmap shared fixed at somewhere currently unmapped
21217 mmap shared fixed at somewhere already mapped
21218 For private mappings, we should verify that changes cannot be read()
21219 back from the file, nor mmap's back from the file at a different
21220 address. (There have been systems where private was not correctly
21221 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 21222 VM page cache was not coherent with the file system buffer cache
252b5132
RH
21223 like early versions of FreeBSD and possibly contemporary NetBSD.)
21224 For shared mappings, we should conversely verify that changes get
5464f5a1 21225 propagated back to all the places they're supposed to be.
252b5132
RH
21226
21227 Grep wants private fixed already mapped.
21228 The main things grep needs to know about mmap are:
21229 * does it exist and is it safe to write into the mmap'd area
21230 * how to use it (BSD variants) */
5464f5a1 21231
252b5132
RH
21232#include <fcntl.h>
21233#include <sys/mman.h>
21234
5464f5a1
NN
21235#if !STDC_HEADERS && !HAVE_STDLIB_H
21236char *malloc ();
21237#endif
6be7c12c 21238
5464f5a1
NN
21239/* This mess was copied from the GNU getpagesize.h. */
21240#if !HAVE_GETPAGESIZE
252b5132 21241/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 21242# if !HAVE_SYS_PARAM_H
252b5132
RH
21243# define HAVE_SYS_PARAM_H 1
21244# endif
21245
21246# ifdef _SC_PAGESIZE
21247# define getpagesize() sysconf(_SC_PAGESIZE)
21248# else /* no _SC_PAGESIZE */
5464f5a1 21249# if HAVE_SYS_PARAM_H
252b5132
RH
21250# include <sys/param.h>
21251# ifdef EXEC_PAGESIZE
21252# define getpagesize() EXEC_PAGESIZE
21253# else /* no EXEC_PAGESIZE */
21254# ifdef NBPG
21255# define getpagesize() NBPG * CLSIZE
21256# ifndef CLSIZE
21257# define CLSIZE 1
21258# endif /* no CLSIZE */
21259# else /* no NBPG */
21260# ifdef NBPC
21261# define getpagesize() NBPC
21262# else /* no NBPC */
21263# ifdef PAGESIZE
21264# define getpagesize() PAGESIZE
21265# endif /* PAGESIZE */
21266# endif /* no NBPC */
21267# endif /* no NBPG */
21268# endif /* no EXEC_PAGESIZE */
21269# else /* no HAVE_SYS_PARAM_H */
21270# define getpagesize() 8192 /* punt totally */
21271# endif /* no HAVE_SYS_PARAM_H */
21272# endif /* no _SC_PAGESIZE */
21273
5464f5a1
NN
21274#endif /* no HAVE_GETPAGESIZE */
21275
21276int
21277main ()
21278{
21279 char *data, *data2, *data3;
21280 int i, pagesize;
21281 int fd;
21282
21283 pagesize = getpagesize ();
21284
21285 /* First, make a file with some known garbage in it. */
21286 data = (char *) malloc (pagesize);
21287 if (!data)
21288 exit (1);
21289 for (i = 0; i < pagesize; ++i)
21290 *(data + i) = rand ();
21291 umask (0);
21292 fd = creat ("conftest.mmap", 0600);
21293 if (fd < 0)
21294 exit (1);
21295 if (write (fd, data, pagesize) != pagesize)
21296 exit (1);
21297 close (fd);
21298
21299 /* Next, try to mmap the file at a fixed address which already has
21300 something else allocated at it. If we can, also make sure that
21301 we see the same garbage. */
21302 fd = open ("conftest.mmap", O_RDWR);
21303 if (fd < 0)
21304 exit (1);
21305 data2 = (char *) malloc (2 * pagesize);
21306 if (!data2)
21307 exit (1);
21308 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21309 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21310 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21311 exit (1);
21312 for (i = 0; i < pagesize; ++i)
21313 if (*(data + i) != *(data2 + i))
21314 exit (1);
21315
21316 /* Finally, make sure that changes to the mapped area do not
21317 percolate back to the file as seen by read(). (This is a bug on
21318 some variants of i386 svr4.0.) */
21319 for (i = 0; i < pagesize; ++i)
21320 *(data2 + i) = *(data2 + i) + 1;
21321 data3 = (char *) malloc (pagesize);
21322 if (!data3)
21323 exit (1);
21324 if (read (fd, data3, pagesize) != pagesize)
21325 exit (1);
21326 for (i = 0; i < pagesize; ++i)
21327 if (*(data + i) != *(data3 + i))
21328 exit (1);
21329 close (fd);
21330 exit (0);
21331}
21332_ACEOF
21333rm -f conftest$ac_exeext
21334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335 (eval $ac_link) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_cv_func_mmap_fixed_mapped=yes
21345else
21346 echo "$as_me: program exited with status $ac_status" >&5
21347echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
21350( exit $ac_status )
21351ac_cv_func_mmap_fixed_mapped=no
21352fi
21353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21354fi
21355fi
21356echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21357echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21358if test $ac_cv_func_mmap_fixed_mapped = yes; then
21359
21360cat >>confdefs.h <<\_ACEOF
21361#define HAVE_MMAP 1
21362_ACEOF
21363
21364fi
21365rm -f conftest.mmap
21366
21367
21368
21369for ac_func in madvise mprotect
21370do
21371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21372echo "$as_me:$LINENO: checking for $ac_func" >&5
21373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21374if eval "test \"\${$as_ac_var+set}\" = set"; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376else
21377 cat >conftest.$ac_ext <<_ACEOF
21378/* confdefs.h. */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h. */
21383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21385#define $ac_func innocuous_$ac_func
21386
21387/* System header to define __stub macros and hopefully few prototypes,
21388 which can conflict with char $ac_func (); below.
21389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21390 <limits.h> exists even on freestanding compilers. */
21391
21392#ifdef __STDC__
21393# include <limits.h>
21394#else
21395# include <assert.h>
21396#endif
21397
21398#undef $ac_func
21399
21400/* Override any gcc2 internal prototype to avoid an error. */
21401#ifdef __cplusplus
21402extern "C"
21403{
21404#endif
21405/* We use char because int might match the return type of a gcc2
21406 builtin and then its argument prototype would still apply. */
21407char $ac_func ();
21408/* The GNU C library defines this for functions which it implements
21409 to always fail with ENOSYS. Some functions are actually named
21410 something starting with __ and the normal name is an alias. */
21411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21412choke me
21413#else
21414char (*f) () = $ac_func;
21415#endif
21416#ifdef __cplusplus
21417}
21418#endif
21419
21420int
21421main ()
21422{
21423return f != $ac_func;
21424 ;
21425 return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext conftest$ac_exeext
21429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } &&
7357c5b6
AM
21437 { ac_try='test -z "$ac_c_werror_flag"
21438 || test ! -s conftest.err'
5464f5a1
NN
21439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21440 (eval $ac_try) 2>&5
21441 ac_status=$?
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); }; } &&
21444 { ac_try='test -s conftest$ac_exeext'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21450 eval "$as_ac_var=yes"
21451else
21452 echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455eval "$as_ac_var=no"
21456fi
21457rm -f conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21459fi
21460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21462if test `eval echo '${'$as_ac_var'}'` = yes; then
21463 cat >>confdefs.h <<_ACEOF
21464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21465_ACEOF
21466
21467fi
21468done
21469
21470case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
21471 true+yes )
21472cat >>confdefs.h <<\_ACEOF
21473#define USE_MMAP 1
21474_ACEOF
21475 ;;
21476esac
21477
21478rm -f doc/config.status
21479 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
21480
20e95c23 21481
5464f5a1
NN
21482 ac_config_commands="$ac_config_commands default"
21483
108a6f8e
CD
21484
21485
21486
21487
21488
5464f5a1
NN
21489cat >confcache <<\_ACEOF
21490# This file is a shell script that caches the results of configure
21491# tests run on this system so they can be shared between configure
21492# scripts and configure runs, see configure's option --config-cache.
21493# It is not useful on other systems. If it contains results you don't
21494# want to keep, you may remove or edit it.
21495#
21496# config.status only pays attention to the cache file if you give it
21497# the --recheck option to rerun configure.
21498#
21499# `ac_cv_env_foo' variables (set or unset) will be overridden when
21500# loading this file, other *unset* `ac_cv_foo' will be assigned the
21501# following values.
21502
21503_ACEOF
21504
21505# The following way of writing the cache mishandles newlines in values,
21506# but we know of no workaround that is simple, portable, and efficient.
21507# So, don't put newlines in cache variables' values.
21508# Ultrix sh set writes to stderr and can't be redirected directly,
21509# and sets the high bit in the cache file unless we assign to the vars.
21510{
21511 (set) 2>&1 |
21512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21513 *ac_space=\ *)
21514 # `set' does not quote correctly, so add quotes (double-quote
21515 # substitution turns \\\\ into \\, and sed turns \\ into \).
21516 sed -n \
21517 "s/'/'\\\\''/g;
21518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21519 ;;
21520 *)
21521 # `set' quotes correctly as required by POSIX, so do not add quotes.
21522 sed -n \
21523 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21524 ;;
21525 esac;
21526} |
21527 sed '
21528 t clear
21529 : clear
21530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21531 t end
21532 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21533 : end' >>confcache
21534if diff $cache_file confcache >/dev/null 2>&1; then :; else
21535 if test -w $cache_file; then
21536 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21537 cat confcache >$cache_file
21538 else
21539 echo "not updating unwritable cache $cache_file"
21540 fi
21541fi
21542rm -f confcache
21543
21544test "x$prefix" = xNONE && prefix=$ac_default_prefix
21545# Let make expand exec_prefix.
21546test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21547
21548# VPATH may cause trouble with some makes, so we remove $(srcdir),
21549# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21550# trailing colons and then remove the whole line if VPATH becomes empty
21551# (actually we leave an empty line to preserve line numbers).
21552if test "x$srcdir" = x.; then
21553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21554s/:*\$(srcdir):*/:/;
21555s/:*\${srcdir}:*/:/;
21556s/:*@srcdir@:*/:/;
21557s/^\([^=]*=[ ]*\):*/\1/;
21558s/:*$//;
21559s/^[^=]*=[ ]*$//;
21560}'
21561fi
21562
21563DEFS=-DHAVE_CONFIG_H
21564
21565ac_libobjs=
21566ac_ltlibobjs=
21567for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21568 # 1. Remove the extension, and $U if already installed.
21569 ac_i=`echo "$ac_i" |
21570 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21571 # 2. Add them.
21572 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21573 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21574done
21575LIBOBJS=$ac_libobjs
21576
21577LTLIBOBJS=$ac_ltlibobjs
21578
21579
f5385ebf
AM
21580if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21581 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21582Usually this means the macro was only invoked conditionally." >&5
21583echo "$as_me: error: conditional \"AMDEP\" was never defined.
21584Usually this means the macro was only invoked conditionally." >&2;}
21585 { (exit 1); exit 1; }; }
21586fi
21587if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21588 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21589Usually this means the macro was only invoked conditionally." >&5
21590echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21591Usually this means the macro was only invoked conditionally." >&2;}
21592 { (exit 1); exit 1; }; }
21593fi
21594if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21595 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21596Usually this means the macro was only invoked conditionally." >&5
21597echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21598Usually this means the macro was only invoked conditionally." >&2;}
21599 { (exit 1); exit 1; }; }
21600fi
d5fbea21
DJ
21601if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
21602 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
21603Usually this means the macro was only invoked conditionally." >&5
21604echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
21605Usually this means the macro was only invoked conditionally." >&2;}
21606 { (exit 1); exit 1; }; }
21607fi
f5385ebf
AM
21608if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
21609 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
21610Usually this means the macro was only invoked conditionally." >&5
21611echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
21612Usually this means the macro was only invoked conditionally." >&2;}
21613 { (exit 1); exit 1; }; }
21614fi
5464f5a1
NN
21615
21616: ${CONFIG_STATUS=./config.status}
21617ac_clean_files_save=$ac_clean_files
21618ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21619{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21620echo "$as_me: creating $CONFIG_STATUS" >&6;}
21621cat >$CONFIG_STATUS <<_ACEOF
21622#! $SHELL
21623# Generated by $as_me.
21624# Run this file to recreate the current configuration.
21625# Compiler output produced by configure, useful for debugging
21626# configure, is in config.log if it exists.
21627
21628debug=false
21629ac_cs_recheck=false
21630ac_cs_silent=false
21631SHELL=\${CONFIG_SHELL-$SHELL}
21632_ACEOF
21633
21634cat >>$CONFIG_STATUS <<\_ACEOF
21635## --------------------- ##
21636## M4sh Initialization. ##
21637## --------------------- ##
21638
21639# Be Bourne compatible
21640if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21641 emulate sh
21642 NULLCMD=:
21643 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21644 # is contrary to our usage. Disable this feature.
21645 alias -g '${1+"$@"}'='"$@"'
21646elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21647 set -o posix
21648fi
21649DUALCASE=1; export DUALCASE # for MKS sh
21650
21651# Support unset when possible.
21652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21653 as_unset=unset
21654else
21655 as_unset=false
21656fi
21657
21658
21659# Work around bugs in pre-3.0 UWIN ksh.
21660$as_unset ENV MAIL MAILPATH
21661PS1='$ '
21662PS2='> '
21663PS4='+ '
21664
21665# NLS nuisances.
21666for as_var in \
21667 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21668 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21669 LC_TELEPHONE LC_TIME
21670do
21671 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21672 eval $as_var=C; export $as_var
21673 else
21674 $as_unset $as_var
21675 fi
21676done
21677
21678# Required to use basename.
21679if expr a : '\(a\)' >/dev/null 2>&1; then
21680 as_expr=expr
21681else
21682 as_expr=false
21683fi
21684
21685if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21686 as_basename=basename
21687else
21688 as_basename=false
21689fi
252b5132 21690
6be7c12c 21691
5464f5a1
NN
21692# Name of the executable.
21693as_me=`$as_basename "$0" ||
21694$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21695 X"$0" : 'X\(//\)$' \| \
21696 X"$0" : 'X\(/\)$' \| \
21697 . : '\(.\)' 2>/dev/null ||
21698echo X/"$0" |
21699 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21700 /^X\/\(\/\/\)$/{ s//\1/; q; }
21701 /^X\/\(\/\).*/{ s//\1/; q; }
21702 s/.*/./; q'`
21703
21704
21705# PATH needs CR, and LINENO needs CR and PATH.
21706# Avoid depending upon Character Ranges.
21707as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21709as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21710as_cr_digits='0123456789'
21711as_cr_alnum=$as_cr_Letters$as_cr_digits
21712
21713# The user is always right.
21714if test "${PATH_SEPARATOR+set}" != set; then
21715 echo "#! /bin/sh" >conf$$.sh
21716 echo "exit 0" >>conf$$.sh
21717 chmod +x conf$$.sh
21718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21719 PATH_SEPARATOR=';'
21720 else
21721 PATH_SEPARATOR=:
21722 fi
21723 rm -f conf$$.sh
21724fi
21725
21726
21727 as_lineno_1=$LINENO
21728 as_lineno_2=$LINENO
21729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21730 test "x$as_lineno_1" != "x$as_lineno_2" &&
21731 test "x$as_lineno_3" = "x$as_lineno_2" || {
21732 # Find who we are. Look in the path if we contain no path at all
21733 # relative or not.
21734 case $0 in
21735 *[\\/]* ) as_myself=$0 ;;
21736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21737for as_dir in $PATH
21738do
21739 IFS=$as_save_IFS
21740 test -z "$as_dir" && as_dir=.
21741 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21742done
21743
21744 ;;
21745 esac
21746 # We did not find ourselves, most probably we were run as `sh COMMAND'
21747 # in which case we are not to be found in the path.
21748 if test "x$as_myself" = x; then
21749 as_myself=$0
21750 fi
21751 if test ! -f "$as_myself"; then
21752 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21753echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21754 { (exit 1); exit 1; }; }
21755 fi
21756 case $CONFIG_SHELL in
21757 '')
21758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21759for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21760do
21761 IFS=$as_save_IFS
21762 test -z "$as_dir" && as_dir=.
21763 for as_base in sh bash ksh sh5; do
21764 case $as_dir in
21765 /*)
21766 if ("$as_dir/$as_base" -c '
21767 as_lineno_1=$LINENO
21768 as_lineno_2=$LINENO
21769 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21770 test "x$as_lineno_1" != "x$as_lineno_2" &&
21771 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21772 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21773 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21774 CONFIG_SHELL=$as_dir/$as_base
21775 export CONFIG_SHELL
21776 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21777 fi;;
21778 esac
21779 done
21780done
21781;;
21782 esac
21783
21784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21785 # uniformly replaced by the line number. The first 'sed' inserts a
21786 # line-number line before each line; the second 'sed' does the real
21787 # work. The second script uses 'N' to pair each line-number line
21788 # with the numbered line, and appends trailing '-' during
21789 # substitution so that $LINENO is not a special case at line end.
21790 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21791 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21792 sed '=' <$as_myself |
21793 sed '
21794 N
21795 s,$,-,
21796 : loop
21797 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21798 t loop
21799 s,-$,,
21800 s,^['$as_cr_digits']*\n,,
21801 ' >$as_me.lineno &&
21802 chmod +x $as_me.lineno ||
21803 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21804echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21805 { (exit 1); exit 1; }; }
21806
21807 # Don't try to exec as it changes $[0], causing all sort of problems
21808 # (the dirname of $[0] is not the place where we might find the
21809 # original and so on. Autoconf is especially sensible to this).
21810 . ./$as_me.lineno
21811 # Exit status is that of the last command.
21812 exit
252b5132 21813}
6be7c12c 21814
5464f5a1
NN
21815
21816case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21817 *c*,-n*) ECHO_N= ECHO_C='
21818' ECHO_T=' ' ;;
21819 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21820 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21821esac
21822
21823if expr a : '\(a\)' >/dev/null 2>&1; then
21824 as_expr=expr
252b5132 21825else
5464f5a1 21826 as_expr=false
252b5132 21827fi
5464f5a1
NN
21828
21829rm -f conf$$ conf$$.exe conf$$.file
21830echo >conf$$.file
21831if ln -s conf$$.file conf$$ 2>/dev/null; then
21832 # We could just check for DJGPP; but this test a) works b) is more generic
21833 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21834 if test -f conf$$.exe; then
21835 # Don't use ln at all; we don't have any links
21836 as_ln_s='cp -p'
21837 else
21838 as_ln_s='ln -s'
21839 fi
21840elif ln conf$$.file conf$$ 2>/dev/null; then
21841 as_ln_s=ln
21842else
21843 as_ln_s='cp -p'
252b5132 21844fi
5464f5a1 21845rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 21846
5464f5a1
NN
21847if mkdir -p . 2>/dev/null; then
21848 as_mkdir_p=:
21849else
21850 test -d ./-p && rmdir ./-p
21851 as_mkdir_p=false
252b5132 21852fi
b3baf5d0 21853
5464f5a1 21854as_executable_p="test -f"
252b5132 21855
5464f5a1
NN
21856# Sed expression to map a string onto a valid CPP name.
21857as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 21858
5464f5a1
NN
21859# Sed expression to map a string onto a valid variable name.
21860as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 21861
252b5132 21862
5464f5a1
NN
21863# IFS
21864# We need space, tab and new line, in precisely that order.
21865as_nl='
21866'
21867IFS=" $as_nl"
252b5132 21868
5464f5a1
NN
21869# CDPATH.
21870$as_unset CDPATH
21871
21872exec 6>&1
21873
21874# Open the log real soon, to keep \$[0] and so on meaningful, and to
21875# report actual input values of CONFIG_FILES etc. instead of their
21876# values after options handling. Logging --version etc. is OK.
21877exec 5>>config.log
21878{
21879 echo
21880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21881## Running $as_me. ##
21882_ASBOX
21883} >&5
21884cat >&5 <<_CSEOF
21885
21886This file was extended by $as_me, which was
21887generated by GNU Autoconf 2.59. Invocation command line was
21888
21889 CONFIG_FILES = $CONFIG_FILES
21890 CONFIG_HEADERS = $CONFIG_HEADERS
21891 CONFIG_LINKS = $CONFIG_LINKS
21892 CONFIG_COMMANDS = $CONFIG_COMMANDS
21893 $ $0 $@
21894
21895_CSEOF
21896echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21897echo >&5
21898_ACEOF
21899
21900# Files that config.status was made for.
21901if test -n "$ac_config_files"; then
21902 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 21903fi
5464f5a1
NN
21904
21905if test -n "$ac_config_headers"; then
21906 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 21907fi
252b5132 21908
5464f5a1
NN
21909if test -n "$ac_config_links"; then
21910 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 21911fi
252b5132 21912
5464f5a1
NN
21913if test -n "$ac_config_commands"; then
21914 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21915fi
252b5132 21916
5464f5a1
NN
21917cat >>$CONFIG_STATUS <<\_ACEOF
21918
21919ac_cs_usage="\
21920\`$as_me' instantiates files from templates according to the
21921current configuration.
21922
21923Usage: $0 [OPTIONS] [FILE]...
21924
21925 -h, --help print this help, then exit
21926 -V, --version print version number, then exit
21927 -q, --quiet do not print progress messages
21928 -d, --debug don't remove temporary files
21929 --recheck update $as_me by reconfiguring in the same conditions
21930 --file=FILE[:TEMPLATE]
21931 instantiate the configuration file FILE
21932 --header=FILE[:TEMPLATE]
21933 instantiate the configuration header FILE
21934
21935Configuration files:
21936$config_files
21937
21938Configuration headers:
21939$config_headers
21940
21941Configuration commands:
21942$config_commands
21943
21944Report bugs to <bug-autoconf@gnu.org>."
21945_ACEOF
21946
21947cat >>$CONFIG_STATUS <<_ACEOF
21948ac_cs_version="\\
21949config.status
21950configured by $0, generated by GNU Autoconf 2.59,
21951 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21952
21953Copyright (C) 2003 Free Software Foundation, Inc.
21954This config.status script is free software; the Free Software Foundation
21955gives unlimited permission to copy, distribute and modify it."
21956srcdir=$srcdir
21957INSTALL="$INSTALL"
21958_ACEOF
21959
21960cat >>$CONFIG_STATUS <<\_ACEOF
21961# If no file are specified by the user, then we need to provide default
21962# value. By we need to know if files were specified by the user.
21963ac_need_defaults=:
21964while test $# != 0
21965do
21966 case $1 in
21967 --*=*)
21968 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21969 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21970 ac_shift=:
6be7c12c 21971 ;;
5464f5a1
NN
21972 -*)
21973 ac_option=$1
21974 ac_optarg=$2
21975 ac_shift=shift
6be7c12c 21976 ;;
5464f5a1
NN
21977 *) # This is not an option, so the user has probably given explicit
21978 # arguments.
21979 ac_option=$1
21980 ac_need_defaults=false;;
21981 esac
252b5132 21982
5464f5a1
NN
21983 case $ac_option in
21984 # Handling of the options.
21985_ACEOF
21986cat >>$CONFIG_STATUS <<\_ACEOF
21987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21988 ac_cs_recheck=: ;;
21989 --version | --vers* | -V )
21990 echo "$ac_cs_version"; exit 0 ;;
21991 --he | --h)
21992 # Conflict between --help and --header
21993 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21994Try \`$0 --help' for more information." >&5
21995echo "$as_me: error: ambiguous option: $1
21996Try \`$0 --help' for more information." >&2;}
21997 { (exit 1); exit 1; }; };;
21998 --help | --hel | -h )
21999 echo "$ac_cs_usage"; exit 0 ;;
22000 --debug | --d* | -d )
22001 debug=: ;;
22002 --file | --fil | --fi | --f )
22003 $ac_shift
22004 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22005 ac_need_defaults=false;;
22006 --header | --heade | --head | --hea )
22007 $ac_shift
22008 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22009 ac_need_defaults=false;;
22010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22011 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22012 ac_cs_silent=: ;;
6be7c12c 22013
5464f5a1
NN
22014 # This is an error.
22015 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22016Try \`$0 --help' for more information." >&5
22017echo "$as_me: error: unrecognized option: $1
22018Try \`$0 --help' for more information." >&2;}
22019 { (exit 1); exit 1; }; } ;;
252b5132 22020
5464f5a1 22021 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 22022
5464f5a1
NN
22023 esac
22024 shift
22025done
6be7c12c 22026
5464f5a1 22027ac_configure_extra_args=
252b5132 22028
5464f5a1
NN
22029if $ac_cs_silent; then
22030 exec 6>/dev/null
22031 ac_configure_extra_args="$ac_configure_extra_args --silent"
22032fi
6be7c12c 22033
5464f5a1
NN
22034_ACEOF
22035cat >>$CONFIG_STATUS <<_ACEOF
22036if \$ac_cs_recheck; then
22037 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22038 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22039fi
22040
22041_ACEOF
22042
22043cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 22044#
5464f5a1 22045# INIT-COMMANDS section.
6be7c12c 22046#
b3baf5d0 22047
f5385ebf 22048AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
22049
22050
22051# The HP-UX ksh and POSIX shell print the target directory to stdout
22052# if CDPATH is set.
22053(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22054
22055sed_quote_subst='$sed_quote_subst'
22056double_quote_subst='$double_quote_subst'
22057delay_variable_subst='$delay_variable_subst'
22058enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22059macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22060macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22061enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22062pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22063enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22064host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22065host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22066host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22067build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22068build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22069build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22070SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22071Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22072GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22073EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22074FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22075LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22076NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22077LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22078max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22079ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22080exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22081lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22082lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22083lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22084reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22085reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22086deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22087file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22088AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22089AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22090STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22091RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22092old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22093old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22094old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22095CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22096CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22097compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22098GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22099lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22100lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22101lt_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"`'
22102objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22103SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22104ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22105MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22106lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22107lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22108lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22109lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22110lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22111need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22112libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22113shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22114extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22115archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22116enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22117export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22118whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22119compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22120old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22121old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22122archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22123archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22124module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22125module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22126with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22127allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22128no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22129hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22130hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22131hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22132hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22133hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22134hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22135hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22136hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22137inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22138link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22139fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22140always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22141export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22142exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22143include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22144prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22145file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22146variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22147need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22148need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22149version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22150runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22151shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22152shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22153libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22154library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22155soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22156postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22157postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22158finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22159finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22160hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22161sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22162sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22163hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22164enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22165enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22166enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22167old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22168striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22169
22170LTCC='$LTCC'
22171LTCFLAGS='$LTCFLAGS'
22172compiler='$compiler_DEFAULT'
22173
22174# Quote evaled strings.
22175for var in SED \
22176GREP \
22177EGREP \
22178FGREP \
22179LD \
22180NM \
22181LN_S \
22182lt_SP2NL \
22183lt_NL2SP \
22184reload_flag \
22185deplibs_check_method \
22186file_magic_cmd \
22187AR \
22188AR_FLAGS \
22189STRIP \
22190RANLIB \
22191CC \
22192CFLAGS \
22193compiler \
22194lt_cv_sys_global_symbol_pipe \
22195lt_cv_sys_global_symbol_to_cdecl \
22196lt_cv_sys_global_symbol_to_c_name_address \
22197SHELL \
22198ECHO \
22199lt_prog_compiler_no_builtin_flag \
22200lt_prog_compiler_wl \
22201lt_prog_compiler_pic \
22202lt_prog_compiler_static \
22203lt_cv_prog_compiler_c_o \
22204need_locks \
22205shrext_cmds \
22206export_dynamic_flag_spec \
22207whole_archive_flag_spec \
22208compiler_needs_object \
22209with_gnu_ld \
22210allow_undefined_flag \
22211no_undefined_flag \
22212hardcode_libdir_flag_spec \
22213hardcode_libdir_flag_spec_ld \
22214hardcode_libdir_separator \
22215fix_srcfile_path \
22216exclude_expsyms \
22217include_expsyms \
22218file_list_spec \
22219variables_saved_for_relink \
22220libname_spec \
22221library_names_spec \
22222soname_spec \
22223finish_eval \
22224old_striplib \
22225striplib; do
22226 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22227 *[\\\\\\\`\\"\\\$]*)
22228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22229 ;;
22230 *)
22231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22232 ;;
22233 esac
22234done
22235
22236# Double-quote double-evaled strings.
22237for var in reload_cmds \
22238old_postinstall_cmds \
22239old_postuninstall_cmds \
22240old_archive_cmds \
22241extract_expsyms_cmds \
22242old_archive_from_new_cmds \
22243old_archive_from_expsyms_cmds \
22244archive_cmds \
22245archive_expsym_cmds \
22246module_cmds \
22247module_expsym_cmds \
22248export_symbols_cmds \
22249prelink_cmds \
22250postinstall_cmds \
22251postuninstall_cmds \
22252finish_cmds \
22253sys_lib_search_path_spec \
22254sys_lib_dlsearch_path_spec; do
22255 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22256 *[\\\\\\\`\\"\\\$]*)
22257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22258 ;;
22259 *)
22260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22261 ;;
22262 esac
22263done
22264
22265# Fix-up fallback echo if it was mangled by the above quoting rules.
22266case \$lt_ECHO in
22267*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22268 ;;
22269esac
22270
22271ac_aux_dir='$ac_aux_dir'
22272xsi_shell='$xsi_shell'
22273lt_shell_append='$lt_shell_append'
22274
22275# See if we are running on zsh, and set the options which allow our
22276# commands through without removal of \ escapes INIT.
22277if test -n "\${ZSH_VERSION+set}" ; then
22278 setopt NO_GLOB_SUBST
22279fi
22280
22281
22282 PACKAGE='$PACKAGE'
22283 VERSION='$VERSION'
22284 TIMESTAMP='$TIMESTAMP'
22285 RM='$RM'
22286 ofile='$ofile'
22287
22288
22289
20e95c23
DJ
22290# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22291 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22292 # from automake.
22293 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22294 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22295 LINGUAS="${LINGUAS-%UNSET%}"
22296
5464f5a1 22297
d5efd9fc
AM
22298GCC="$GCC"
22299CC="$CC"
22300acx_cv_header_stdint="$acx_cv_header_stdint"
22301acx_cv_type_int8_t="$acx_cv_type_int8_t"
22302acx_cv_type_int16_t="$acx_cv_type_int16_t"
22303acx_cv_type_int32_t="$acx_cv_type_int32_t"
22304acx_cv_type_int64_t="$acx_cv_type_int64_t"
22305acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22306ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
22307ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
22308ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
22309ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
22310ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
22311ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
22312ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
22313ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
22314
22315
5464f5a1
NN
22316
22317_ACEOF
22318
22319
22320
22321cat >>$CONFIG_STATUS <<\_ACEOF
22322for ac_config_target in $ac_config_targets
252b5132 22323do
5464f5a1
NN
22324 case "$ac_config_target" in
22325 # Handling of arguments.
22326 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22327 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22328 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
22329 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 22330 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 22331 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 22332 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 22333 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
22334 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22335 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22336 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22337echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22338 { (exit 1); exit 1; }; };;
252b5132
RH
22339 esac
22340done
22341
5464f5a1
NN
22342# If the user did not use the arguments to specify the items to instantiate,
22343# then the envvar interface is used. Set only those that are not.
22344# We use the long form for the default assignment because of an extremely
22345# bizarre bug on SunOS 4.1.3.
22346if $ac_need_defaults; then
22347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22350fi
22351
22352# Have a temporary directory for convenience. Make it in the build tree
22353# simply because there is no reason to put it here, and in addition,
22354# creating and moving files from /tmp can sometimes cause problems.
22355# Create a temporary directory, and hook for its removal unless debugging.
22356$debug ||
22357{
22358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22359 trap '{ (exit 1); exit 1; }' 1 2 13 15
22360}
b3baf5d0 22361
5464f5a1 22362# Create a (secure) tmp directory for tmp files.
b3baf5d0 22363
5464f5a1
NN
22364{
22365 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22366 test -n "$tmp" && test -d "$tmp"
22367} ||
22368{
22369 tmp=./confstat$$-$RANDOM
22370 (umask 077 && mkdir $tmp)
22371} ||
22372{
22373 echo "$me: cannot create a temporary directory in ." >&2
22374 { (exit 1); exit 1; }
22375}
22376
22377_ACEOF
22378
22379cat >>$CONFIG_STATUS <<_ACEOF
22380
22381#
22382# CONFIG_FILES section.
22383#
b3baf5d0 22384
5464f5a1
NN
22385# No need to generate the scripts if there are no CONFIG_FILES.
22386# This happens for instance when ./config.status config.h
22387if test -n "\$CONFIG_FILES"; then
22388 # Protect against being on the right side of a sed subst in config.status.
22389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22391s,@SHELL@,$SHELL,;t t
22392s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22393s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22394s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22395s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22396s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22397s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22398s,@exec_prefix@,$exec_prefix,;t t
22399s,@prefix@,$prefix,;t t
22400s,@program_transform_name@,$program_transform_name,;t t
22401s,@bindir@,$bindir,;t t
22402s,@sbindir@,$sbindir,;t t
22403s,@libexecdir@,$libexecdir,;t t
22404s,@datadir@,$datadir,;t t
22405s,@sysconfdir@,$sysconfdir,;t t
22406s,@sharedstatedir@,$sharedstatedir,;t t
22407s,@localstatedir@,$localstatedir,;t t
22408s,@libdir@,$libdir,;t t
22409s,@includedir@,$includedir,;t t
22410s,@oldincludedir@,$oldincludedir,;t t
22411s,@infodir@,$infodir,;t t
22412s,@mandir@,$mandir,;t t
22413s,@build_alias@,$build_alias,;t t
22414s,@host_alias@,$host_alias,;t t
22415s,@target_alias@,$target_alias,;t t
22416s,@DEFS@,$DEFS,;t t
22417s,@ECHO_C@,$ECHO_C,;t t
22418s,@ECHO_N@,$ECHO_N,;t t
22419s,@ECHO_T@,$ECHO_T,;t t
22420s,@LIBS@,$LIBS,;t t
22421s,@build@,$build,;t t
22422s,@build_cpu@,$build_cpu,;t t
22423s,@build_vendor@,$build_vendor,;t t
22424s,@build_os@,$build_os,;t t
22425s,@host@,$host,;t t
22426s,@host_cpu@,$host_cpu,;t t
22427s,@host_vendor@,$host_vendor,;t t
22428s,@host_os@,$host_os,;t t
22429s,@target@,$target,;t t
22430s,@target_cpu@,$target_cpu,;t t
22431s,@target_vendor@,$target_vendor,;t t
22432s,@target_os@,$target_os,;t t
22433s,@CC@,$CC,;t t
22434s,@CFLAGS@,$CFLAGS,;t t
22435s,@LDFLAGS@,$LDFLAGS,;t t
22436s,@CPPFLAGS@,$CPPFLAGS,;t t
22437s,@ac_ct_CC@,$ac_ct_CC,;t t
22438s,@EXEEXT@,$EXEEXT,;t t
22439s,@OBJEXT@,$OBJEXT,;t t
22440s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22441s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22442s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 22443s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
22444s,@PACKAGE@,$PACKAGE,;t t
22445s,@VERSION@,$VERSION,;t t
22446s,@ACLOCAL@,$ACLOCAL,;t t
22447s,@AUTOCONF@,$AUTOCONF,;t t
22448s,@AUTOMAKE@,$AUTOMAKE,;t t
22449s,@AUTOHEADER@,$AUTOHEADER,;t t
22450s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
22451s,@install_sh@,$install_sh,;t t
22452s,@STRIP@,$STRIP,;t t
22453s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22454s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22455s,@mkdir_p@,$mkdir_p,;t t
22456s,@AWK@,$AWK,;t t
5464f5a1 22457s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
22458s,@am__leading_dot@,$am__leading_dot,;t t
22459s,@AMTAR@,$AMTAR,;t t
22460s,@am__tar@,$am__tar,;t t
22461s,@am__untar@,$am__untar,;t t
22462s,@DEPDIR@,$DEPDIR,;t t
22463s,@am__include@,$am__include,;t t
22464s,@am__quote@,$am__quote,;t t
22465s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22466s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22467s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22468s,@CCDEPMODE@,$CCDEPMODE,;t t
22469s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22470s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
22471s,@AR@,$AR,;t t
22472s,@ac_ct_AR@,$ac_ct_AR,;t t
22473s,@RANLIB@,$RANLIB,;t t
22474s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
22475s,@CPP@,$CPP,;t t
22476s,@EGREP@,$EGREP,;t t
5464f5a1 22477s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 22478s,@SED@,$SED,;t t
d7040cdb
SE
22479s,@FGREP@,$FGREP,;t t
22480s,@GREP@,$GREP,;t t
22481s,@LD@,$LD,;t t
22482s,@DUMPBIN@,$DUMPBIN,;t t
22483s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
22484s,@NM@,$NM,;t t
22485s,@LN_S@,$LN_S,;t t
22486s,@lt_ECHO@,$lt_ECHO,;t t
0d4a1476 22487s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 22488s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
22489s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22490s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 22491s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 22492s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
22493s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22494s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22495s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
22496s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
22497s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
22498s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
22499s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
22500s,@host_noncanonical@,$host_noncanonical,;t t
22501s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
22502s,@bfdlibdir@,$bfdlibdir,;t t
22503s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 22504s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
22505s,@LIBINTL@,$LIBINTL,;t t
22506s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
22507s,@INCINTL@,$INCINTL,;t t
5464f5a1 22508s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
22509s,@GMSGFMT@,$GMSGFMT,;t t
22510s,@POSUB@,$POSUB,;t t
5464f5a1 22511s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 22512s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 22513s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
22514s,@GENCAT@,$GENCAT,;t t
22515s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 22516s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
22517s,@MSGFMT@,$MSGFMT,;t t
22518s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
22519s,@HDEFINES@,$HDEFINES,;t t
22520s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 22521s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
22522s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
22523s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
22524s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 22525s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
22526s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
22527s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
22528s,@COREFILE@,$COREFILE,;t t
22529s,@COREFLAG@,$COREFLAG,;t t
22530s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
22531s,@WIN32LIBADD@,$WIN32LIBADD,;t t
22532s,@TDEFINES@,$TDEFINES,;t t
22533s,@wordsize@,$wordsize,;t t
21e40a48 22534s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
22535s,@all_backends@,$all_backends,;t t
22536s,@bfd_backends@,$bfd_backends,;t t
22537s,@bfd_machines@,$bfd_machines,;t t
22538s,@bfd_default_target_size@,$bfd_default_target_size,;t t
22539s,@bfd_file_ptr@,$bfd_file_ptr,;t t
22540s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
22541s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
22542s,@datarootdir@,$datarootdir,;t t
22543s,@docdir@,$docdir,;t t
22544s,@htmldir@,$htmldir,;t t
5464f5a1
NN
22545s,@LIBOBJS@,$LIBOBJS,;t t
22546s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 22547CEOF
252b5132 22548
5464f5a1
NN
22549_ACEOF
22550
22551 cat >>$CONFIG_STATUS <<\_ACEOF
22552 # Split the substitutions into bite-sized pieces for seds with
22553 # small command number limits, like on Digital OSF/1 and HP-UX.
22554 ac_max_sed_lines=48
22555 ac_sed_frag=1 # Number of current file.
22556 ac_beg=1 # First line for current file.
22557 ac_end=$ac_max_sed_lines # Line after last line for current file.
22558 ac_more_lines=:
22559 ac_sed_cmds=
22560 while $ac_more_lines; do
22561 if test $ac_beg -gt 1; then
22562 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 22563 else
5464f5a1
NN
22564 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22565 fi
22566 if test ! -s $tmp/subs.frag; then
22567 ac_more_lines=false
22568 else
22569 # The purpose of the label and of the branching condition is to
22570 # speed up the sed processing (if there are no `@' at all, there
22571 # is no need to browse any of the substitutions).
22572 # These are the two extra sed commands mentioned above.
22573 (echo ':t
22574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22575 if test -z "$ac_sed_cmds"; then
22576 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22577 else
22578 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22579 fi
22580 ac_sed_frag=`expr $ac_sed_frag + 1`
22581 ac_beg=$ac_end
22582 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 22583 fi
5464f5a1
NN
22584 done
22585 if test -z "$ac_sed_cmds"; then
22586 ac_sed_cmds=cat
252b5132 22587 fi
5464f5a1 22588fi # test -n "$CONFIG_FILES"
6be7c12c 22589
5464f5a1
NN
22590_ACEOF
22591cat >>$CONFIG_STATUS <<\_ACEOF
22592for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 22593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
22594 case $ac_file in
22595 - | *:- | *:-:* ) # input from stdin
22596 cat >$tmp/stdin
22597 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22599 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22601 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
22602 esac
22603
5464f5a1
NN
22604 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22607 X"$ac_file" : 'X\(//\)[^/]' \| \
22608 X"$ac_file" : 'X\(//\)$' \| \
22609 X"$ac_file" : 'X\(/\)' \| \
22610 . : '\(.\)' 2>/dev/null ||
22611echo X"$ac_file" |
22612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22614 /^X\(\/\/\)$/{ s//\1/; q; }
22615 /^X\(\/\).*/{ s//\1/; q; }
22616 s/.*/./; q'`
22617 { if $as_mkdir_p; then
22618 mkdir -p "$ac_dir"
252b5132 22619 else
5464f5a1
NN
22620 as_dir="$ac_dir"
22621 as_dirs=
22622 while test ! -d "$as_dir"; do
22623 as_dirs="$as_dir $as_dirs"
22624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22625$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22626 X"$as_dir" : 'X\(//\)[^/]' \| \
22627 X"$as_dir" : 'X\(//\)$' \| \
22628 X"$as_dir" : 'X\(/\)' \| \
22629 . : '\(.\)' 2>/dev/null ||
22630echo X"$as_dir" |
22631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22633 /^X\(\/\/\)$/{ s//\1/; q; }
22634 /^X\(\/\).*/{ s//\1/; q; }
22635 s/.*/./; q'`
22636 done
22637 test ! -n "$as_dirs" || mkdir $as_dirs
22638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22639echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22640 { (exit 1); exit 1; }; }; }
22641
22642 ac_builddir=.
22643
22644if test "$ac_dir" != .; then
22645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22646 # A "../" for each directory in $ac_dir_suffix.
22647 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22648else
22649 ac_dir_suffix= ac_top_builddir=
22650fi
252b5132 22651
5464f5a1
NN
22652case $srcdir in
22653 .) # No --srcdir option. We are building in place.
22654 ac_srcdir=.
22655 if test -z "$ac_top_builddir"; then
22656 ac_top_srcdir=.
22657 else
22658 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22659 fi ;;
22660 [\\/]* | ?:[\\/]* ) # Absolute path.
22661 ac_srcdir=$srcdir$ac_dir_suffix;
22662 ac_top_srcdir=$srcdir ;;
252b5132 22663 *) # Relative path.
5464f5a1
NN
22664 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22665 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22666esac
252b5132 22667
5464f5a1
NN
22668# Do not use `cd foo && pwd` to compute absolute paths, because
22669# the directories may not exist.
22670case `pwd` in
22671.) ac_abs_builddir="$ac_dir";;
22672*)
22673 case "$ac_dir" in
22674 .) ac_abs_builddir=`pwd`;;
22675 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22676 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22677 esac;;
22678esac
22679case $ac_abs_builddir in
22680.) ac_abs_top_builddir=${ac_top_builddir}.;;
22681*)
22682 case ${ac_top_builddir}. in
22683 .) ac_abs_top_builddir=$ac_abs_builddir;;
22684 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22685 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22686 esac;;
22687esac
22688case $ac_abs_builddir in
22689.) ac_abs_srcdir=$ac_srcdir;;
22690*)
22691 case $ac_srcdir in
22692 .) ac_abs_srcdir=$ac_abs_builddir;;
22693 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22694 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22695 esac;;
22696esac
22697case $ac_abs_builddir in
22698.) ac_abs_top_srcdir=$ac_top_srcdir;;
22699*)
22700 case $ac_top_srcdir in
22701 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22702 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22703 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22704 esac;;
22705esac
252b5132 22706
5464f5a1
NN
22707
22708 case $INSTALL in
22709 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22710 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 22711 esac
252b5132 22712
7357c5b6
AM
22713 if test x"$ac_file" != x-; then
22714 { echo "$as_me:$LINENO: creating $ac_file" >&5
22715echo "$as_me: creating $ac_file" >&6;}
22716 rm -f "$ac_file"
22717 fi
5464f5a1
NN
22718 # Let's still pretend it is `configure' which instantiates (i.e., don't
22719 # use $as_me), people would be surprised to read:
22720 # /* config.h. Generated by config.status. */
22721 if test x"$ac_file" = x-; then
22722 configure_input=
22723 else
22724 configure_input="$ac_file. "
22725 fi
22726 configure_input=$configure_input"Generated from `echo $ac_file_in |
22727 sed 's,.*/,,'` by configure."
22728
22729 # First look for the input files in the build tree, otherwise in the
22730 # src tree.
22731 ac_file_inputs=`IFS=:
22732 for f in $ac_file_in; do
22733 case $f in
22734 -) echo $tmp/stdin ;;
22735 [\\/$]*)
22736 # Absolute (can't be DOS-style, as IFS=:)
22737 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22738echo "$as_me: error: cannot find input file: $f" >&2;}
22739 { (exit 1); exit 1; }; }
22740 echo "$f";;
22741 *) # Relative
22742 if test -f "$f"; then
22743 # Build tree
22744 echo "$f"
22745 elif test -f "$srcdir/$f"; then
22746 # Source tree
22747 echo "$srcdir/$f"
22748 else
22749 # /dev/null tree
22750 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22751echo "$as_me: error: cannot find input file: $f" >&2;}
22752 { (exit 1); exit 1; }; }
22753 fi;;
22754 esac
22755 done` || { (exit 1); exit 1; }
5464f5a1
NN
22756_ACEOF
22757cat >>$CONFIG_STATUS <<_ACEOF
22758 sed "$ac_vpsub
22759$extrasub
22760_ACEOF
22761cat >>$CONFIG_STATUS <<\_ACEOF
22762:t
22763/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22764s,@configure_input@,$configure_input,;t t
22765s,@srcdir@,$ac_srcdir,;t t
22766s,@abs_srcdir@,$ac_abs_srcdir,;t t
22767s,@top_srcdir@,$ac_top_srcdir,;t t
22768s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22769s,@builddir@,$ac_builddir,;t t
22770s,@abs_builddir@,$ac_abs_builddir,;t t
22771s,@top_builddir@,$ac_top_builddir,;t t
22772s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22773s,@INSTALL@,$ac_INSTALL,;t t
22774" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22775 rm -f $tmp/stdin
22776 if test x"$ac_file" != x-; then
22777 mv $tmp/out $ac_file
22778 else
22779 cat $tmp/out
22780 rm -f $tmp/out
22781 fi
22782
22783done
22784_ACEOF
22785cat >>$CONFIG_STATUS <<\_ACEOF
22786
22787#
22788# CONFIG_HEADER section.
22789#
252b5132
RH
22790
22791# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22792# NAME is the cpp macro being defined and VALUE is the value it is being given.
22793#
22794# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
22795ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22796ac_dB='[ ].*$,\1#\2'
22797ac_dC=' '
22798ac_dD=',;t'
22799# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22800ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22801ac_uB='$,\1#\2define\3'
252b5132 22802ac_uC=' '
5464f5a1
NN
22803ac_uD=',;t'
22804
22805for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 22806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
22807 case $ac_file in
22808 - | *:- | *:-:* ) # input from stdin
22809 cat >$tmp/stdin
22810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22814 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
22815 esac
22816
5464f5a1
NN
22817 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22818echo "$as_me: creating $ac_file" >&6;}
22819
22820 # First look for the input files in the build tree, otherwise in the
22821 # src tree.
22822 ac_file_inputs=`IFS=:
22823 for f in $ac_file_in; do
22824 case $f in
22825 -) echo $tmp/stdin ;;
22826 [\\/$]*)
22827 # Absolute (can't be DOS-style, as IFS=:)
22828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22829echo "$as_me: error: cannot find input file: $f" >&2;}
22830 { (exit 1); exit 1; }; }
22831 # Do quote $f, to prevent DOS paths from being IFS'd.
22832 echo "$f";;
22833 *) # Relative
22834 if test -f "$f"; then
22835 # Build tree
22836 echo "$f"
22837 elif test -f "$srcdir/$f"; then
22838 # Source tree
22839 echo "$srcdir/$f"
22840 else
22841 # /dev/null tree
22842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22843echo "$as_me: error: cannot find input file: $f" >&2;}
22844 { (exit 1); exit 1; }; }
22845 fi;;
22846 esac
22847 done` || { (exit 1); exit 1; }
22848 # Remove the trailing spaces.
22849 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22850
22851_ACEOF
22852
22853# Transform confdefs.h into two sed scripts, `conftest.defines' and
22854# `conftest.undefs', that substitutes the proper values into
22855# config.h.in to produce config.h. The first handles `#define'
22856# templates, and the second `#undef' templates.
22857# And first: Protect against being on the right side of a sed subst in
22858# config.status. Protect against being in an unquoted here document
22859# in config.status.
22860rm -f conftest.defines conftest.undefs
22861# Using a here document instead of a string reduces the quoting nightmare.
22862# Putting comments in sed scripts is not portable.
22863#
22864# `end' is used to avoid that the second main sed command (meant for
22865# 0-ary CPP macros) applies to n-ary macro definitions.
22866# See the Autoconf documentation for `clear'.
22867cat >confdef2sed.sed <<\_ACEOF
22868s/[\\&,]/\\&/g
22869s,[\\$`],\\&,g
22870t clear
22871: clear
22872s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22873t end
22874s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22875: end
22876_ACEOF
22877# If some macros were called several times there might be several times
22878# the same #defines, which is useless. Nevertheless, we may not want to
22879# sort them, since we want the *last* AC-DEFINE to be honored.
22880uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22881sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22882rm -f confdef2sed.sed
252b5132
RH
22883
22884# This sed command replaces #undef with comments. This is necessary, for
22885# example, in the case of _POSIX_SOURCE, which is predefined and required
22886# on some systems where configure will not decide to define it.
5464f5a1
NN
22887cat >>conftest.undefs <<\_ACEOF
22888s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22889_ACEOF
22890
22891# Break up conftest.defines because some shells have a limit on the size
22892# of here documents, and old seds have small limits too (100 cmds).
22893echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22894echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22895echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22896echo ' :' >>$CONFIG_STATUS
22897rm -f conftest.tail
22898while grep . conftest.defines >/dev/null
22899do
22900 # Write a limited-size here document to $tmp/defines.sed.
22901 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22902 # Speed up: don't consider the non `#define' lines.
22903 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22904 # Work around the forget-to-reset-the-flag bug.
22905 echo 't clr' >>$CONFIG_STATUS
22906 echo ': clr' >>$CONFIG_STATUS
22907 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22908 echo 'CEOF
22909 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22910 rm -f $tmp/in
22911 mv $tmp/out $tmp/in
22912' >>$CONFIG_STATUS
22913 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22914 rm -f conftest.defines
22915 mv conftest.tail conftest.defines
22916done
22917rm -f conftest.defines
22918echo ' fi # grep' >>$CONFIG_STATUS
22919echo >>$CONFIG_STATUS
252b5132 22920
5464f5a1
NN
22921# Break up conftest.undefs because some shells have a limit on the size
22922# of here documents, and old seds have small limits too (100 cmds).
22923echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 22924rm -f conftest.tail
5464f5a1 22925while grep . conftest.undefs >/dev/null
252b5132 22926do
5464f5a1
NN
22927 # Write a limited-size here document to $tmp/undefs.sed.
22928 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22929 # Speed up: don't consider the non `#undef'
22930 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22931 # Work around the forget-to-reset-the-flag bug.
22932 echo 't clr' >>$CONFIG_STATUS
22933 echo ': clr' >>$CONFIG_STATUS
22934 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 22935 echo 'CEOF
5464f5a1
NN
22936 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22937 rm -f $tmp/in
22938 mv $tmp/out $tmp/in
22939' >>$CONFIG_STATUS
22940 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22941 rm -f conftest.undefs
22942 mv conftest.tail conftest.undefs
252b5132 22943done
5464f5a1
NN
22944rm -f conftest.undefs
22945
22946cat >>$CONFIG_STATUS <<\_ACEOF
22947 # Let's still pretend it is `configure' which instantiates (i.e., don't
22948 # use $as_me), people would be surprised to read:
22949 # /* config.h. Generated by config.status. */
22950 if test x"$ac_file" = x-; then
22951 echo "/* Generated by configure. */" >$tmp/config.h
22952 else
22953 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22954 fi
22955 cat $tmp/in >>$tmp/config.h
22956 rm -f $tmp/in
22957 if test x"$ac_file" != x-; then
22958 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22960echo "$as_me: $ac_file is unchanged" >&6;}
22961 else
22962 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22964 X"$ac_file" : 'X\(//\)[^/]' \| \
22965 X"$ac_file" : 'X\(//\)$' \| \
22966 X"$ac_file" : 'X\(/\)' \| \
22967 . : '\(.\)' 2>/dev/null ||
22968echo X"$ac_file" |
22969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22971 /^X\(\/\/\)$/{ s//\1/; q; }
22972 /^X\(\/\).*/{ s//\1/; q; }
22973 s/.*/./; q'`
22974 { if $as_mkdir_p; then
22975 mkdir -p "$ac_dir"
252b5132 22976 else
5464f5a1
NN
22977 as_dir="$ac_dir"
22978 as_dirs=
22979 while test ! -d "$as_dir"; do
22980 as_dirs="$as_dir $as_dirs"
22981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22982$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22983 X"$as_dir" : 'X\(//\)[^/]' \| \
22984 X"$as_dir" : 'X\(//\)$' \| \
22985 X"$as_dir" : 'X\(/\)' \| \
22986 . : '\(.\)' 2>/dev/null ||
22987echo X"$as_dir" |
22988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22990 /^X\(\/\/\)$/{ s//\1/; q; }
22991 /^X\(\/\).*/{ s//\1/; q; }
22992 s/.*/./; q'`
22993 done
22994 test ! -n "$as_dirs" || mkdir $as_dirs
22995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22996echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22997 { (exit 1); exit 1; }; }; }
22998
22999 rm -f $ac_file
23000 mv $tmp/config.h $ac_file
252b5132 23001 fi
5464f5a1
NN
23002 else
23003 cat $tmp/config.h
23004 rm -f $tmp/config.h
252b5132 23005 fi
f5385ebf
AM
23006# Compute $ac_file's index in $config_headers.
23007_am_stamp_count=1
23008for _am_header in $config_headers :; do
23009 case $_am_header in
23010 $ac_file | $ac_file:* )
23011 break ;;
23012 * )
23013 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23014 esac
23015done
23016echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23017$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23018 X$ac_file : 'X\(//\)[^/]' \| \
23019 X$ac_file : 'X\(//\)$' \| \
23020 X$ac_file : 'X\(/\)' \| \
23021 . : '\(.\)' 2>/dev/null ||
23022echo X$ac_file |
23023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23025 /^X\(\/\/\)$/{ s//\1/; q; }
23026 /^X\(\/\).*/{ s//\1/; q; }
23027 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
23028done
23029_ACEOF
23030cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 23031
5464f5a1
NN
23032#
23033# CONFIG_COMMANDS section.
23034#
23035for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23036 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23037 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23038 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23039$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040 X"$ac_dest" : 'X\(//\)[^/]' \| \
23041 X"$ac_dest" : 'X\(//\)$' \| \
23042 X"$ac_dest" : 'X\(/\)' \| \
23043 . : '\(.\)' 2>/dev/null ||
23044echo X"$ac_dest" |
23045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23047 /^X\(\/\/\)$/{ s//\1/; q; }
23048 /^X\(\/\).*/{ s//\1/; q; }
23049 s/.*/./; q'`
23050 { if $as_mkdir_p; then
23051 mkdir -p "$ac_dir"
23052 else
23053 as_dir="$ac_dir"
23054 as_dirs=
23055 while test ! -d "$as_dir"; do
23056 as_dirs="$as_dir $as_dirs"
23057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23059 X"$as_dir" : 'X\(//\)[^/]' \| \
23060 X"$as_dir" : 'X\(//\)$' \| \
23061 X"$as_dir" : 'X\(/\)' \| \
23062 . : '\(.\)' 2>/dev/null ||
23063echo X"$as_dir" |
23064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23066 /^X\(\/\/\)$/{ s//\1/; q; }
23067 /^X\(\/\).*/{ s//\1/; q; }
23068 s/.*/./; q'`
23069 done
23070 test ! -n "$as_dirs" || mkdir $as_dirs
23071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23072echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23073 { (exit 1); exit 1; }; }; }
b3baf5d0 23074
5464f5a1 23075 ac_builddir=.
b3baf5d0 23076
5464f5a1
NN
23077if test "$ac_dir" != .; then
23078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23079 # A "../" for each directory in $ac_dir_suffix.
23080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23081else
23082 ac_dir_suffix= ac_top_builddir=
23083fi
23084
23085case $srcdir in
23086 .) # No --srcdir option. We are building in place.
23087 ac_srcdir=.
23088 if test -z "$ac_top_builddir"; then
23089 ac_top_srcdir=.
23090 else
23091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23092 fi ;;
23093 [\\/]* | ?:[\\/]* ) # Absolute path.
23094 ac_srcdir=$srcdir$ac_dir_suffix;
23095 ac_top_srcdir=$srcdir ;;
23096 *) # Relative path.
23097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23099esac
23100
23101# Do not use `cd foo && pwd` to compute absolute paths, because
23102# the directories may not exist.
23103case `pwd` in
23104.) ac_abs_builddir="$ac_dir";;
23105*)
23106 case "$ac_dir" in
23107 .) ac_abs_builddir=`pwd`;;
23108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23110 esac;;
23111esac
23112case $ac_abs_builddir in
23113.) ac_abs_top_builddir=${ac_top_builddir}.;;
23114*)
23115 case ${ac_top_builddir}. in
23116 .) ac_abs_top_builddir=$ac_abs_builddir;;
23117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23119 esac;;
23120esac
23121case $ac_abs_builddir in
23122.) ac_abs_srcdir=$ac_srcdir;;
23123*)
23124 case $ac_srcdir in
23125 .) ac_abs_srcdir=$ac_abs_builddir;;
23126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23128 esac;;
23129esac
23130case $ac_abs_builddir in
23131.) ac_abs_top_srcdir=$ac_top_srcdir;;
23132*)
23133 case $ac_top_srcdir in
23134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23137 esac;;
23138esac
23139
23140
23141 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23142echo "$as_me: executing $ac_dest commands" >&6;}
23143 case $ac_dest in
f5385ebf
AM
23144 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23145 # Strip MF so we end up with the name of the file.
23146 mf=`echo "$mf" | sed -e 's/:.*$//'`
23147 # Check whether this is an Automake generated Makefile or not.
23148 # We used to match only the files named `Makefile.in', but
23149 # some people rename them; so instead we look at the file content.
23150 # Grep'ing the first line is not enough: some people post-process
23151 # each Makefile.in and add a new line on top of each file to say so.
23152 # So let's grep whole file.
23153 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23154 dirpart=`(dirname "$mf") 2>/dev/null ||
23155$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23156 X"$mf" : 'X\(//\)[^/]' \| \
23157 X"$mf" : 'X\(//\)$' \| \
23158 X"$mf" : 'X\(/\)' \| \
23159 . : '\(.\)' 2>/dev/null ||
23160echo X"$mf" |
23161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23163 /^X\(\/\/\)$/{ s//\1/; q; }
23164 /^X\(\/\).*/{ s//\1/; q; }
23165 s/.*/./; q'`
23166 else
23167 continue
23168 fi
23169 # Extract the definition of DEPDIR, am__include, and am__quote
23170 # from the Makefile without running `make'.
23171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23172 test -z "$DEPDIR" && continue
23173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23174 test -z "am__include" && continue
23175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23176 # When using ansi2knr, U may be empty or an underscore; expand it
23177 U=`sed -n 's/^U = //p' < "$mf"`
23178 # Find all dependency output files, they are included files with
23179 # $(DEPDIR) in their names. We invoke sed twice because it is the
23180 # simplest approach to changing $(DEPDIR) to its actual value in the
23181 # expansion.
23182 for file in `sed -n "
23183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23185 # Make sure the directory exists.
23186 test -f "$dirpart/$file" && continue
23187 fdir=`(dirname "$file") 2>/dev/null ||
23188$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23189 X"$file" : 'X\(//\)[^/]' \| \
23190 X"$file" : 'X\(//\)$' \| \
23191 X"$file" : 'X\(/\)' \| \
23192 . : '\(.\)' 2>/dev/null ||
23193echo X"$file" |
23194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23196 /^X\(\/\/\)$/{ s//\1/; q; }
23197 /^X\(\/\).*/{ s//\1/; q; }
23198 s/.*/./; q'`
23199 { if $as_mkdir_p; then
23200 mkdir -p $dirpart/$fdir
23201 else
23202 as_dir=$dirpart/$fdir
23203 as_dirs=
23204 while test ! -d "$as_dir"; do
23205 as_dirs="$as_dir $as_dirs"
23206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23208 X"$as_dir" : 'X\(//\)[^/]' \| \
23209 X"$as_dir" : 'X\(//\)$' \| \
23210 X"$as_dir" : 'X\(/\)' \| \
23211 . : '\(.\)' 2>/dev/null ||
23212echo X"$as_dir" |
23213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23215 /^X\(\/\/\)$/{ s//\1/; q; }
23216 /^X\(\/\).*/{ s//\1/; q; }
23217 s/.*/./; q'`
23218 done
23219 test ! -n "$as_dirs" || mkdir $as_dirs
23220 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23221echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23222 { (exit 1); exit 1; }; }; }
23223
23224 # echo "creating $dirpart/$file"
23225 echo '# dummy' > "$dirpart/$file"
23226 done
23227done
d7040cdb
SE
23228 ;;
23229 libtool )
23230
23231 # See if we are running on zsh, and set the options which allow our
23232 # commands through without removal of \ escapes.
23233 if test -n "${ZSH_VERSION+set}" ; then
23234 setopt NO_GLOB_SUBST
23235 fi
23236
23237 cfgfile="${ofile}T"
23238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23239 $RM "$cfgfile"
23240
23241 cat <<_LT_EOF >> "$cfgfile"
23242#! $SHELL
23243
23244# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23245# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
23246# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23247# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23248#
23249# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23250# 2006, 2007 Free Software Foundation, Inc.
23251#
23252# This file is part of GNU Libtool:
23253# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
23254#
23255# This program is free software; you can redistribute it and/or modify
23256# it under the terms of the GNU General Public License as published by
0b3e17e9 23257# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
23258# (at your option) any later version.
23259#
23260# This program is distributed in the hope that it will be useful, but
23261# WITHOUT ANY WARRANTY; without even the implied warranty of
23262# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23263# General Public License for more details.
23264#
23265# You should have received a copy of the GNU General Public License
23266# along with this program; if not, a copy can be downloaded from
23267# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
23268# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23269# MA 02110-1301, USA.
23270#
23271# As a special exception to the GNU General Public License, if you
23272# distribute this file as part of a program that contains a
23273# configuration script generated by Autoconf, you may include it under
23274# the same distribution terms that you use for the rest of that program.
23275
23276
23277# The names of the tagged configurations supported by this script.
23278available_tags=""
23279
23280# ### BEGIN LIBTOOL CONFIG
23281
23282# Whether or not to build shared libraries.
23283build_libtool_libs=$enable_shared
23284
23285# Which release of libtool.m4 was used?
23286macro_version=$macro_version
23287macro_revision=$macro_revision
23288
23289# Whether or not to build static libraries.
23290build_old_libs=$enable_static
23291
23292# What type of objects to build.
23293pic_mode=$pic_mode
23294
23295# Whether or not to optimize for fast installation.
23296fast_install=$enable_fast_install
23297
23298# The host system.
23299host_alias=$host_alias
23300host=$host
23301host_os=$host_os
23302
23303# The build system.
23304build_alias=$build_alias
23305build=$build
23306build_os=$build_os
23307
23308# A sed program that does not truncate output.
23309SED=$lt_SED
23310
23311# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23312Xsed="\$SED -e 1s/^X//"
23313
23314# A grep program that handles long lines.
23315GREP=$lt_GREP
23316
23317# An ERE matcher.
23318EGREP=$lt_EGREP
23319
23320# A literal string matcher.
23321FGREP=$lt_FGREP
23322
23323# A BSD- or MS-compatible name lister.
23324NM=$lt_NM
23325
23326# Whether we need soft or hard links.
23327LN_S=$lt_LN_S
23328
23329# What is the maximum length of a command?
23330max_cmd_len=$max_cmd_len
23331
23332# Object file suffix (normally "o").
23333objext=$ac_objext
23334
23335# Executable file suffix (normally "").
23336exeext=$exeext
23337
23338# whether the shell understands "unset".
23339lt_unset=$lt_unset
23340
23341# turn spaces into newlines.
23342SP2NL=$lt_lt_SP2NL
23343
23344# turn newlines into spaces.
23345NL2SP=$lt_lt_NL2SP
23346
23347# How to create reloadable object files.
23348reload_flag=$lt_reload_flag
23349reload_cmds=$lt_reload_cmds
23350
23351# Method to check whether dependent libraries are shared objects.
23352deplibs_check_method=$lt_deplibs_check_method
23353
23354# Command to use when deplibs_check_method == "file_magic".
23355file_magic_cmd=$lt_file_magic_cmd
23356
23357# The archiver.
23358AR=$lt_AR
23359AR_FLAGS=$lt_AR_FLAGS
23360
23361# A symbol stripping program.
23362STRIP=$lt_STRIP
23363
23364# Commands used to install an old-style archive.
23365RANLIB=$lt_RANLIB
23366old_postinstall_cmds=$lt_old_postinstall_cmds
23367old_postuninstall_cmds=$lt_old_postuninstall_cmds
23368
23369# A C compiler.
23370LTCC=$lt_CC
23371
23372# LTCC compiler flags.
23373LTCFLAGS=$lt_CFLAGS
23374
23375# Take the output of nm and produce a listing of raw symbols and C names.
23376global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23377
23378# Transform the output of nm in a proper C declaration.
23379global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23380
23381# Transform the output of nm in a C name address pair.
23382global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23383
23384# The name of the directory that contains temporary libtool files.
23385objdir=$objdir
23386
23387# Shell to use when invoking shell scripts.
23388SHELL=$lt_SHELL
23389
23390# An echo program that does not interpret backslashes.
23391ECHO=$lt_ECHO
23392
23393# Used to examine libraries when file_magic_cmd begins with "file".
23394MAGIC_CMD=$MAGIC_CMD
23395
23396# Must we lock files when doing compilation?
23397need_locks=$lt_need_locks
23398
23399# Old archive suffix (normally "a").
23400libext=$libext
23401
23402# Shared library suffix (normally ".so").
23403shrext_cmds=$lt_shrext_cmds
23404
23405# The commands to extract the exported symbol list from a shared archive.
23406extract_expsyms_cmds=$lt_extract_expsyms_cmds
23407
23408# Variables whose values should be saved in libtool wrapper scripts and
23409# restored at link time.
23410variables_saved_for_relink=$lt_variables_saved_for_relink
23411
23412# Do we need the "lib" prefix for modules?
23413need_lib_prefix=$need_lib_prefix
23414
23415# Do we need a version for libraries?
23416need_version=$need_version
23417
23418# Library versioning type.
23419version_type=$version_type
23420
23421# Shared library runtime path variable.
23422runpath_var=$runpath_var
23423
23424# Shared library path variable.
23425shlibpath_var=$shlibpath_var
23426
23427# Is shlibpath searched before the hard-coded library search path?
23428shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23429
23430# Format of library name prefix.
23431libname_spec=$lt_libname_spec
23432
23433# List of archive names. First name is the real one, the rest are links.
23434# The last name is the one that the linker finds with -lNAME
23435library_names_spec=$lt_library_names_spec
23436
23437# The coded name of the library, if different from the real name.
23438soname_spec=$lt_soname_spec
23439
23440# Command to use after installation of a shared archive.
23441postinstall_cmds=$lt_postinstall_cmds
23442
23443# Command to use after uninstallation of a shared archive.
23444postuninstall_cmds=$lt_postuninstall_cmds
23445
23446# Commands used to finish a libtool library installation in a directory.
23447finish_cmds=$lt_finish_cmds
23448
23449# As "finish_cmds", except a single script fragment to be evaled but
23450# not shown.
23451finish_eval=$lt_finish_eval
23452
23453# Whether we should hardcode library paths into libraries.
23454hardcode_into_libs=$hardcode_into_libs
23455
23456# Compile-time system search path for libraries.
23457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23458
23459# Run-time system search path for libraries.
23460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23461
23462# Whether dlopen is supported.
23463dlopen_support=$enable_dlopen
23464
23465# Whether dlopen of programs is supported.
23466dlopen_self=$enable_dlopen_self
23467
23468# Whether dlopen of statically linked programs is supported.
23469dlopen_self_static=$enable_dlopen_self_static
23470
23471# Commands to strip libraries.
23472old_striplib=$lt_old_striplib
23473striplib=$lt_striplib
23474
23475
23476# The linker used to build libraries.
23477LD=$lt_LD
23478
23479# Commands used to build an old-style archive.
23480old_archive_cmds=$lt_old_archive_cmds
23481
23482# A language specific compiler.
23483CC=$lt_compiler
23484
23485# Is the compiler the GNU compiler?
23486with_gcc=$GCC
23487
23488# Compiler flag to turn off builtin functions.
23489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23490
23491# How to pass a linker flag through the compiler.
23492wl=$lt_lt_prog_compiler_wl
23493
23494# Additional compiler flags for building library objects.
23495pic_flag=$lt_lt_prog_compiler_pic
23496
23497# Compiler flag to prevent dynamic linking.
23498link_static_flag=$lt_lt_prog_compiler_static
23499
23500# Does compiler simultaneously support -c and -o options?
23501compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23502
23503# Whether or not to add -lc for building shared libraries.
23504build_libtool_need_lc=$archive_cmds_need_lc
23505
23506# Whether or not to disallow shared libs when runtime libs are static.
23507allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23508
23509# Compiler flag to allow reflexive dlopens.
23510export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23511
23512# Compiler flag to generate shared objects directly from archives.
23513whole_archive_flag_spec=$lt_whole_archive_flag_spec
23514
23515# Whether the compiler copes with passing no objects directly.
23516compiler_needs_object=$lt_compiler_needs_object
23517
23518# Create an old-style archive from a shared archive.
23519old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23520
23521# Create a temporary old-style archive to link instead of a shared archive.
23522old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23523
23524# Commands used to build a shared archive.
23525archive_cmds=$lt_archive_cmds
23526archive_expsym_cmds=$lt_archive_expsym_cmds
23527
23528# Commands used to build a loadable module if different from building
23529# a shared archive.
23530module_cmds=$lt_module_cmds
23531module_expsym_cmds=$lt_module_expsym_cmds
23532
23533# Whether we are building with GNU ld or not.
23534with_gnu_ld=$lt_with_gnu_ld
23535
23536# Flag that allows shared libraries with undefined symbols to be built.
23537allow_undefined_flag=$lt_allow_undefined_flag
23538
23539# Flag that enforces no undefined symbols.
23540no_undefined_flag=$lt_no_undefined_flag
23541
23542# Flag to hardcode \$libdir into a binary during linking.
23543# This must work even if \$libdir does not exist
23544hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23545
23546# If ld is used when linking, flag to hardcode \$libdir into a binary
23547# during linking. This must work even if \$libdir does not exist.
23548hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23549
23550# Whether we need a single "-rpath" flag with a separated argument.
23551hardcode_libdir_separator=$lt_hardcode_libdir_separator
23552
23553# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23554# DIR into the resulting binary.
23555hardcode_direct=$hardcode_direct
23556
23557# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23558# DIR into the resulting binary and the resulting library dependency is
23559# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23560# library is relocated.
23561hardcode_direct_absolute=$hardcode_direct_absolute
23562
23563# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23564# into the resulting binary.
23565hardcode_minus_L=$hardcode_minus_L
23566
23567# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23568# into the resulting binary.
23569hardcode_shlibpath_var=$hardcode_shlibpath_var
23570
23571# Set to "yes" if building a shared library automatically hardcodes DIR
23572# into the library and all subsequent libraries and executables linked
23573# against it.
23574hardcode_automatic=$hardcode_automatic
23575
23576# Set to yes if linker adds runtime paths of dependent libraries
23577# to runtime path list.
23578inherit_rpath=$inherit_rpath
23579
23580# Whether libtool must link a program against all its dependency libraries.
23581link_all_deplibs=$link_all_deplibs
23582
23583# Fix the shell variable \$srcfile for the compiler.
23584fix_srcfile_path=$lt_fix_srcfile_path
23585
23586# Set to "yes" if exported symbols are required.
23587always_export_symbols=$always_export_symbols
23588
23589# The commands to list exported symbols.
23590export_symbols_cmds=$lt_export_symbols_cmds
23591
23592# Symbols that should not be listed in the preloaded symbols.
23593exclude_expsyms=$lt_exclude_expsyms
23594
23595# Symbols that must always be exported.
23596include_expsyms=$lt_include_expsyms
23597
23598# Commands necessary for linking programs (against libraries) with templates.
23599prelink_cmds=$lt_prelink_cmds
23600
23601# Specify filename containing input files.
23602file_list_spec=$lt_file_list_spec
23603
23604# How to hardcode a shared library path into an executable.
23605hardcode_action=$hardcode_action
23606
23607# ### END LIBTOOL CONFIG
23608
23609_LT_EOF
23610
23611 case $host_os in
23612 aix3*)
23613 cat <<\_LT_EOF >> "$cfgfile"
23614# AIX sometimes has problems with the GCC collect2 program. For some
23615# reason, if we set the COLLECT_NAMES environment variable, the problems
23616# vanish in a puff of smoke.
23617if test "X${COLLECT_NAMES+set}" != Xset; then
23618 COLLECT_NAMES=
23619 export COLLECT_NAMES
23620fi
23621_LT_EOF
23622 ;;
23623 esac
23624
23625
23626ltmain="$ac_aux_dir/ltmain.sh"
23627
23628
23629 # We use sed instead of cat because bash on DJGPP gets confused if
23630 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23631 # text mode, it properly converts lines to CR/LF. This bash problem
23632 # is reportedly fixed, but why not run on old versions too?
23633 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23634 || (rm -f "$cfgfile"; exit 1)
23635
23636 case $xsi_shell in
23637 yes)
23638 cat << \_LT_EOF >> "$cfgfile"
23639# func_dirname file append nondir_replacement
23640# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23641# otherwise set result to NONDIR_REPLACEMENT.
23642func_dirname ()
23643{
23644 case ${1} in
23645 */*) func_dirname_result="${1%/*}${2}" ;;
23646 * ) func_dirname_result="${3}" ;;
23647 esac
23648}
23649
23650# func_basename file
23651func_basename ()
23652{
23653 func_basename_result="${1##*/}"
23654}
23655
23656# func_stripname prefix suffix name
23657# strip PREFIX and SUFFIX off of NAME.
23658# PREFIX and SUFFIX must not contain globbing or regex special
23659# characters, hashes, percent signs, but SUFFIX may contain a leading
23660# dot (in which case that matches only a dot).
23661func_stripname ()
23662{
23663 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23664 # positional parameters, so assign one to ordinary parameter first.
23665 func_stripname_result=${3}
23666 func_stripname_result=${func_stripname_result#"${1}"}
23667 func_stripname_result=${func_stripname_result%"${2}"}
23668}
23669
23670# func_opt_split
23671func_opt_split ()
23672{
23673 func_opt_split_opt=${1%%=*}
23674 func_opt_split_arg=${1#*=}
23675}
23676
23677# func_lo2o object
23678func_lo2o ()
23679{
23680 case ${1} in
23681 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23682 *) func_lo2o_result=${1} ;;
23683 esac
23684}
23685_LT_EOF
23686 ;;
23687 *) # Bourne compatible functions.
23688 cat << \_LT_EOF >> "$cfgfile"
23689# func_dirname file append nondir_replacement
23690# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23691# otherwise set result to NONDIR_REPLACEMENT.
23692func_dirname ()
23693{
23694 # Extract subdirectory from the argument.
23695 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23696 if test "X$func_dirname_result" = "X${1}"; then
23697 func_dirname_result="${3}"
23698 else
23699 func_dirname_result="$func_dirname_result${2}"
23700 fi
23701}
23702
23703# func_basename file
23704func_basename ()
23705{
23706 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23707}
23708
23709# func_stripname prefix suffix name
23710# strip PREFIX and SUFFIX off of NAME.
23711# PREFIX and SUFFIX must not contain globbing or regex special
23712# characters, hashes, percent signs, but SUFFIX may contain a leading
23713# dot (in which case that matches only a dot).
23714# func_strip_suffix prefix name
23715func_stripname ()
23716{
23717 case ${2} in
23718 .*) func_stripname_result=`$ECHO "X${3}" \
23719 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23720 *) func_stripname_result=`$ECHO "X${3}" \
23721 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23722 esac
23723}
23724
23725# sed scripts:
23726my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23727my_sed_long_arg='1s/^-[^=]*=//'
23728
23729# func_opt_split
23730func_opt_split ()
23731{
23732 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23733 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23734}
23735
23736# func_lo2o object
23737func_lo2o ()
23738{
23739 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23740}
23741_LT_EOF
23742esac
23743
23744case $lt_shell_append in
23745 yes)
23746 cat << \_LT_EOF >> "$cfgfile"
23747
23748# func_append var value
23749# Append VALUE to the end of shell variable VAR.
23750func_append ()
23751{
23752 eval "$1+=\$2"
23753}
23754_LT_EOF
23755 ;;
23756 *)
23757 cat << \_LT_EOF >> "$cfgfile"
23758
23759# func_append var value
23760# Append VALUE to the end of shell variable VAR.
23761func_append ()
23762{
23763 eval "$1=\$$1\$2"
23764}
23765_LT_EOF
23766 ;;
23767 esac
23768
23769
23770 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23771 || (rm -f "$cfgfile"; exit 1)
23772
23773 mv -f "$cfgfile" "$ofile" ||
23774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23775 chmod +x "$ofile"
23776
f5385ebf 23777 ;;
20e95c23
DJ
23778 default-1 )
23779 for ac_file in $CONFIG_FILES; do
23780 # Support "outfile[:infile[:infile...]]"
23781 case "$ac_file" in
23782 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23783 esac
23784 # PO directories have a Makefile.in generated from Makefile.in.in.
23785 case "$ac_file" in */Makefile.in)
23786 # Adjust a relative srcdir.
23787 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23788 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23789 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23790 # In autoconf-2.13 it is called $ac_given_srcdir.
23791 # In autoconf-2.50 it is called $srcdir.
23792 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23793 case "$ac_given_srcdir" in
23794 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23795 /*) top_srcdir="$ac_given_srcdir" ;;
23796 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23797 esac
23798 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23799 rm -f "$ac_dir/POTFILES"
23800 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23801 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23802 POMAKEFILEDEPS="POTFILES.in"
23803 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
23804 # on $ac_dir but don't depend on user-specified configuration
23805 # parameters.
23806 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23807 # The LINGUAS file contains the set of available languages.
23808 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23809 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23810 fi
23811 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23812 # Hide the ALL_LINGUAS assigment from automake.
23813 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23814 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23815 else
23816 # The set of available languages was given in configure.in.
23817 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23818 fi
23819 case "$ac_given_srcdir" in
23820 .) srcdirpre= ;;
23821 *) srcdirpre='$(srcdir)/' ;;
23822 esac
23823 POFILES=
23824 GMOFILES=
23825 UPDATEPOFILES=
23826 DUMMYPOFILES=
23827 for lang in $ALL_LINGUAS; do
23828 POFILES="$POFILES $srcdirpre$lang.po"
23829 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23830 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23831 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23832 done
23833 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23834 # environment variable.
23835 INST_LINGUAS=
23836 if test -n "$ALL_LINGUAS"; then
23837 for presentlang in $ALL_LINGUAS; do
23838 useit=no
23839 if test "%UNSET%" != "$LINGUAS"; then
23840 desiredlanguages="$LINGUAS"
23841 else
23842 desiredlanguages="$ALL_LINGUAS"
23843 fi
23844 for desiredlang in $desiredlanguages; do
23845 # Use the presentlang catalog if desiredlang is
23846 # a. equal to presentlang, or
23847 # b. a variant of presentlang (because in this case,
23848 # presentlang can be used as a fallback for messages
23849 # which are not translated in the desiredlang catalog).
23850 case "$desiredlang" in
23851 "$presentlang"*) useit=yes;;
23852 esac
23853 done
23854 if test $useit = yes; then
23855 INST_LINGUAS="$INST_LINGUAS $presentlang"
23856 fi
23857 done
23858 fi
23859 CATALOGS=
23860 if test -n "$INST_LINGUAS"; then
23861 for lang in $INST_LINGUAS; do
23862 CATALOGS="$CATALOGS $lang.gmo"
23863 done
23864 fi
23865 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23866 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"
23867 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23868 if test -f "$f"; then
23869 case "$f" in
23870 *.orig | *.bak | *~) ;;
23871 *) cat "$f" >> "$ac_dir/Makefile" ;;
23872 esac
23873 fi
23874 done
23875 fi
23876 ;;
23877 esac
23878 done ;;
d5efd9fc
AM
23879 bfd_stdint.h )
23880if test "$GCC" = yes; then
23881 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
23882else
23883 echo "/* generated for $CC */" > tmp-stdint.h
23884fi
23885
23886sed 's/^ *//' >> tmp-stdint.h <<EOF
23887
23888 #ifndef GCC_GENERATED_STDINT_H
23889 #define GCC_GENERATED_STDINT_H 1
23890
23891 #include <sys/types.h>
23892EOF
23893
23894if test "$acx_cv_header_stdint" != stdint.h; then
23895 echo "#include <stddef.h>" >> tmp-stdint.h
23896fi
23897if test "$acx_cv_header_stdint" != stddef.h; then
23898 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23899fi
23900
23901sed 's/^ *//' >> tmp-stdint.h <<EOF
23902 /* glibc uses these symbols as guards to prevent redefinitions. */
23903 #ifdef __int8_t_defined
23904 #define _INT8_T
23905 #define _INT16_T
23906 #define _INT32_T
23907 #endif
23908 #ifdef __uint32_t_defined
23909 #define _UINT32_T
23910 #endif
23911
23912EOF
23913
23914# ----------------- done header, emit basic int types -------------
23915if test "$acx_cv_header_stdint" = stddef.h; then
23916 sed 's/^ *//' >> tmp-stdint.h <<EOF
23917
23918 #ifndef _UINT8_T
23919 #define _UINT8_T
23920 #ifndef __uint8_t_defined
23921 #define __uint8_t_defined
23922 typedef unsigned $acx_cv_type_int8_t uint8_t;
23923 #endif
23924 #endif
23925
23926 #ifndef _UINT16_T
23927 #define _UINT16_T
23928 #ifndef __uint16_t_defined
23929 #define __uint16_t_defined
23930 typedef unsigned $acx_cv_type_int16_t uint16_t;
23931 #endif
23932 #endif
23933
23934 #ifndef _UINT32_T
23935 #define _UINT32_T
23936 #ifndef __uint32_t_defined
23937 #define __uint32_t_defined
23938 typedef unsigned $acx_cv_type_int32_t uint32_t;
23939 #endif
23940 #endif
23941
23942 #ifndef _INT8_T
23943 #define _INT8_T
23944 #ifndef __int8_t_defined
23945 #define __int8_t_defined
23946 typedef $acx_cv_type_int8_t int8_t;
23947 #endif
23948 #endif
23949
23950 #ifndef _INT16_T
23951 #define _INT16_T
23952 #ifndef __int16_t_defined
23953 #define __int16_t_defined
23954 typedef $acx_cv_type_int16_t int16_t;
23955 #endif
23956 #endif
23957
23958 #ifndef _INT32_T
23959 #define _INT32_T
23960 #ifndef __int32_t_defined
23961 #define __int32_t_defined
23962 typedef $acx_cv_type_int32_t int32_t;
23963 #endif
23964 #endif
23965EOF
23966elif test "$ac_cv_type_u_int32_t" = yes; then
23967 sed 's/^ *//' >> tmp-stdint.h <<EOF
23968
23969 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23970 #ifndef _INT8_T
23971 #define _INT8_T
23972 #endif
23973 #ifndef _INT16_T
23974 #define _INT16_T
23975 #endif
23976 #ifndef _INT32_T
23977 #define _INT32_T
23978 #endif
23979
23980 #ifndef _UINT8_T
23981 #define _UINT8_T
23982 #ifndef __uint8_t_defined
23983 #define __uint8_t_defined
23984 typedef u_int8_t uint8_t;
23985 #endif
23986 #endif
23987
23988 #ifndef _UINT16_T
23989 #define _UINT16_T
23990 #ifndef __uint16_t_defined
23991 #define __uint16_t_defined
23992 typedef u_int16_t uint16_t;
23993 #endif
23994 #endif
23995
23996 #ifndef _UINT32_T
23997 #define _UINT32_T
23998 #ifndef __uint32_t_defined
23999 #define __uint32_t_defined
24000 typedef u_int32_t uint32_t;
24001 #endif
24002 #endif
24003EOF
24004else
24005 sed 's/^ *//' >> tmp-stdint.h <<EOF
24006
24007 /* Some systems have guard macros to prevent redefinitions, define them. */
24008 #ifndef _INT8_T
24009 #define _INT8_T
24010 #endif
24011 #ifndef _INT16_T
24012 #define _INT16_T
24013 #endif
24014 #ifndef _INT32_T
24015 #define _INT32_T
24016 #endif
24017 #ifndef _UINT8_T
24018 #define _UINT8_T
24019 #endif
24020 #ifndef _UINT16_T
24021 #define _UINT16_T
24022 #endif
24023 #ifndef _UINT32_T
24024 #define _UINT32_T
24025 #endif
24026EOF
24027fi
24028
24029# ------------- done basic int types, emit int64_t types ------------
24030if test "$ac_cv_type_uint64_t" = yes; then
24031 sed 's/^ *//' >> tmp-stdint.h <<EOF
24032
24033 /* system headers have good uint64_t and int64_t */
24034 #ifndef _INT64_T
24035 #define _INT64_T
24036 #endif
24037 #ifndef _UINT64_T
24038 #define _UINT64_T
24039 #endif
24040EOF
24041elif test "$ac_cv_type_u_int64_t" = yes; then
24042 sed 's/^ *//' >> tmp-stdint.h <<EOF
24043
24044 /* system headers have an u_int64_t (and int64_t) */
24045 #ifndef _INT64_T
24046 #define _INT64_T
24047 #endif
24048 #ifndef _UINT64_T
24049 #define _UINT64_T
24050 #ifndef __uint64_t_defined
24051 #define __uint64_t_defined
24052 typedef u_int64_t uint64_t;
24053 #endif
24054 #endif
24055EOF
24056elif test -n "$acx_cv_type_int64_t"; then
24057 sed 's/^ *//' >> tmp-stdint.h <<EOF
24058
24059 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24060 #ifndef _INT64_T
24061 #define _INT64_T
24062 typedef $acx_cv_type_int64_t int64_t;
24063 #endif
24064 #ifndef _UINT64_T
24065 #define _UINT64_T
24066 #ifndef __uint64_t_defined
24067 #define __uint64_t_defined
24068 typedef unsigned $acx_cv_type_int64_t uint64_t;
24069 #endif
24070 #endif
24071EOF
24072else
24073 sed 's/^ *//' >> tmp-stdint.h <<EOF
24074
24075 /* some common heuristics for int64_t, using compiler-specific tests */
24076 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24077 #ifndef _INT64_T
24078 #define _INT64_T
24079 #ifndef __int64_t_defined
24080 typedef long long int64_t;
24081 #endif
24082 #endif
24083 #ifndef _UINT64_T
24084 #define _UINT64_T
24085 typedef unsigned long long uint64_t;
24086 #endif
24087
24088 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24089 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24090 does not implement __extension__. But that compiler doesn't define
24091 __GNUC_MINOR__. */
24092 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24093 # define __extension__
24094 # endif
24095
24096 # ifndef _INT64_T
24097 # define _INT64_T
24098 __extension__ typedef long long int64_t;
24099 # endif
24100 # ifndef _UINT64_T
24101 # define _UINT64_T
24102 __extension__ typedef unsigned long long uint64_t;
24103 # endif
24104
24105 #elif !defined __STRICT_ANSI__
24106 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24107
24108 # ifndef _INT64_T
24109 # define _INT64_T
24110 typedef __int64 int64_t;
24111 # endif
24112 # ifndef _UINT64_T
24113 # define _UINT64_T
24114 typedef unsigned __int64 uint64_t;
24115 # endif
24116 # endif /* compiler */
24117
24118 #endif /* ANSI version */
24119EOF
24120fi
24121
24122# ------------- done int64_t types, emit intptr types ------------
24123if test "$ac_cv_type_uintptr_t" != yes; then
24124 sed 's/^ *//' >> tmp-stdint.h <<EOF
24125
24126 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24127 #ifndef __uintptr_t_defined
24128 typedef u$acx_cv_type_intptr_t uintptr_t;
24129 #endif
24130 #ifndef __intptr_t_defined
24131 typedef $acx_cv_type_intptr_t intptr_t;
24132 #endif
24133EOF
24134fi
24135
24136# ------------- done intptr types, emit int_least types ------------
24137if test "$ac_cv_type_int_least32_t" != yes; then
24138 sed 's/^ *//' >> tmp-stdint.h <<EOF
24139
24140 /* Define int_least types */
24141 typedef int8_t int_least8_t;
24142 typedef int16_t int_least16_t;
24143 typedef int32_t int_least32_t;
24144 #ifdef _INT64_T
24145 typedef int64_t int_least64_t;
24146 #endif
24147
24148 typedef uint8_t uint_least8_t;
24149 typedef uint16_t uint_least16_t;
24150 typedef uint32_t uint_least32_t;
24151 #ifdef _UINT64_T
24152 typedef uint64_t uint_least64_t;
24153 #endif
24154EOF
24155fi
24156
24157# ------------- done intptr types, emit int_fast types ------------
24158if test "$ac_cv_type_int_fast32_t" != yes; then
24159 sed 's/^ *//' >> tmp-stdint.h <<EOF
24160
24161 /* Define int_fast types. short is often slow */
24162 typedef int8_t int_fast8_t;
24163 typedef int int_fast16_t;
24164 typedef int32_t int_fast32_t;
24165 #ifdef _INT64_T
24166 typedef int64_t int_fast64_t;
24167 #endif
24168
24169 typedef uint8_t uint_fast8_t;
24170 typedef unsigned int uint_fast16_t;
24171 typedef uint32_t uint_fast32_t;
24172 #ifdef _UINT64_T
24173 typedef uint64_t uint_fast64_t;
24174 #endif
24175EOF
24176fi
24177
24178if test "$ac_cv_type_uintmax_t" != yes; then
24179 sed 's/^ *//' >> tmp-stdint.h <<EOF
24180
24181 /* Define intmax based on what we found */
24182 #ifdef _INT64_T
24183 typedef int64_t intmax_t;
24184 #else
24185 typedef long intmax_t;
24186 #endif
24187 #ifdef _UINT64_T
24188 typedef uint64_t uintmax_t;
24189 #else
24190 typedef unsigned long uintmax_t;
24191 #endif
24192EOF
24193fi
24194
24195sed 's/^ *//' >> tmp-stdint.h <<EOF
24196
24197 #endif /* GCC_GENERATED_STDINT_H */
24198EOF
24199
24200if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24201 rm -f tmp-stdint.h
24202else
24203 mv -f tmp-stdint.h bfd_stdint.h
24204fi
24205
24206 ;;
20e95c23
DJ
24207 default )
24208case "$srcdir" in
24209 .) srcdirpre= ;;
24210 *) srcdirpre='$(srcdir)/' ;;
24211esac
24212POFILES=
24213GMOFILES=
24214for lang in dummy $OBSOLETE_ALL_LINGUAS; do
24215 if test $lang != dummy; then
24216 POFILES="$POFILES $srcdirpre$lang.po"
24217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24218 fi
24219done
24220sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
24221 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
24222 -e "s,@POFILES@,$POFILES," \
24223 -e "s,@GMOFILES@,$GMOFILES," \
24224 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
24225 esac
24226done
24227_ACEOF
24228
24229cat >>$CONFIG_STATUS <<\_ACEOF
24230
24231{ (exit 0); exit 0; }
24232_ACEOF
252b5132 24233chmod +x $CONFIG_STATUS
5464f5a1
NN
24234ac_clean_files=$ac_clean_files_save
24235
24236
24237# configure is writing to config.log, and then calls config.status.
24238# config.status does its own redirection, appending to config.log.
24239# Unfortunately, on DOS this fails, as config.log is still kept open
24240# by configure, so config.status won't be able to write to it; its
24241# output is simply discarded. So we exec the FD to /dev/null,
24242# effectively closing config.log, so it can be properly (re)opened and
24243# appended to by config.status. When coming back to configure, we
24244# need to make the FD available again.
24245if test "$no_create" != yes; then
24246 ac_cs_success=:
24247 ac_config_status_args=
24248 test "$silent" = yes &&
24249 ac_config_status_args="$ac_config_status_args --quiet"
24250 exec 5>/dev/null
24251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24252 exec 5>>config.log
24253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24254 # would make configure fail if this is the last instruction.
24255 $ac_cs_success || { (exit 1); exit 1; }
24256fi
252b5132 24257
55c80943 24258
This page took 1.817386 seconds and 4 git commands to generate.