]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
* configure: Regenerate.
[thirdparty/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
bce5e5c9 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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=''
7a283e07 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]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
5464f5a1
NN
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1013 --enable-targets alternative target configurations
1014 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1015 --enable-secureplt Default to creating read-only plt entries
504b7d20 1016 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1017 --enable-werror treat compile warnings as errors
1018 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1019 --enable-maintainer-mode enable make rules and dependencies not useful
1020 (and sometimes confusing) to the casual installer
5464f5a1
NN
1021 --enable-install-libbfd controls installation of libbfd and related headers
1022 --disable-nls do not use Native Language Support
1023
1024Optional Packages:
1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1027 --with-pic try to use only PIC/non-PIC objects [default=use
1028 both]
1029 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1030 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1031 --with-separate-debug-dir=DIR
1032 Look for global separate debug info in DIR
1033 [default=LIBDIR/debug]
a1ac8190
JM
1034 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1035 Binutils"
c428fa83 1036 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1037
1038Some influential environment variables:
1039 CC C compiler command
1040 CFLAGS C compiler flags
1041 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1042 nonstandard directory <lib dir>
1043 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044 headers in a nonstandard directory <include dir>
1045 CPP C preprocessor
1046
1047Use these variables to override the choices made by `configure' or to help
1048it to find libraries and programs with nonstandard names/locations.
1049
1050_ACEOF
1051fi
1052
1053if test "$ac_init_help" = "recursive"; then
1054 # If there are subdirs, report their specific --help.
1055 ac_popdir=`pwd`
1056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1057 test -d $ac_dir || continue
1058 ac_builddir=.
1059
1060if test "$ac_dir" != .; then
1061 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1062 # A "../" for each directory in $ac_dir_suffix.
1063 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1064else
1065 ac_dir_suffix= ac_top_builddir=
1066fi
1067
1068case $srcdir in
1069 .) # No --srcdir option. We are building in place.
1070 ac_srcdir=.
1071 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=.
1073 else
1074 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1075 fi ;;
1076 [\\/]* | ?:[\\/]* ) # Absolute path.
1077 ac_srcdir=$srcdir$ac_dir_suffix;
1078 ac_top_srcdir=$srcdir ;;
1079 *) # Relative path.
1080 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1081 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1082esac
1083
5464f5a1
NN
1084# Do not use `cd foo && pwd` to compute absolute paths, because
1085# the directories may not exist.
1086case `pwd` in
1087.) ac_abs_builddir="$ac_dir";;
1088*)
1089 case "$ac_dir" in
1090 .) ac_abs_builddir=`pwd`;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1092 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 esac;;
1094esac
1095case $ac_abs_builddir in
1096.) ac_abs_top_builddir=${ac_top_builddir}.;;
1097*)
1098 case ${ac_top_builddir}. in
1099 .) ac_abs_top_builddir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1101 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 esac;;
1103esac
1104case $ac_abs_builddir in
1105.) ac_abs_srcdir=$ac_srcdir;;
1106*)
1107 case $ac_srcdir in
1108 .) ac_abs_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1110 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_srcdir=$ac_top_srcdir;;
1115*)
1116 case $ac_top_srcdir in
1117 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1119 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1120 esac;;
1121esac
6be7c12c 1122
5464f5a1
NN
1123 cd $ac_dir
1124 # Check for guested configure; otherwise get Cygnus style configure.
1125 if test -f $ac_srcdir/configure.gnu; then
1126 echo
1127 $SHELL $ac_srcdir/configure.gnu --help=recursive
1128 elif test -f $ac_srcdir/configure; then
1129 echo
1130 $SHELL $ac_srcdir/configure --help=recursive
1131 elif test -f $ac_srcdir/configure.ac ||
1132 test -f $ac_srcdir/configure.in; then
1133 echo
1134 $ac_configure --help
1135 else
1136 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1137 fi
49c96104 1138 cd $ac_popdir
5464f5a1 1139 done
6be7c12c
AO
1140fi
1141
5464f5a1
NN
1142test -n "$ac_init_help" && exit 0
1143if $ac_init_version; then
1144 cat <<\_ACEOF
6be7c12c 1145
5464f5a1
NN
1146Copyright (C) 2003 Free Software Foundation, Inc.
1147This configure script is free software; the Free Software Foundation
1148gives unlimited permission to copy, distribute and modify it.
1149_ACEOF
1150 exit 0
1151fi
1152exec 5>config.log
1153cat >&5 <<_ACEOF
1154This file contains any messages produced by compilers while
1155running configure, to aid debugging if configure makes a mistake.
6be7c12c 1156
5464f5a1
NN
1157It was created by $as_me, which was
1158generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1159
5464f5a1 1160 $ $0 $@
6be7c12c 1161
5464f5a1
NN
1162_ACEOF
1163{
1164cat <<_ASUNAME
1165## --------- ##
1166## Platform. ##
1167## --------- ##
1168
1169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1170uname -m = `(uname -m) 2>/dev/null || echo unknown`
1171uname -r = `(uname -r) 2>/dev/null || echo unknown`
1172uname -s = `(uname -s) 2>/dev/null || echo unknown`
1173uname -v = `(uname -v) 2>/dev/null || echo unknown`
1174
1175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1177
1178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1181hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
1186_ASUNAME
1187
1188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189for as_dir in $PATH
1190do
1191 IFS=$as_save_IFS
1192 test -z "$as_dir" && as_dir=.
1193 echo "PATH: $as_dir"
1194done
6be7c12c 1195
5464f5a1 1196} >&5
66e25bab 1197
5464f5a1 1198cat >&5 <<_ACEOF
b3baf5d0 1199
6be7c12c 1200
5464f5a1
NN
1201## ----------- ##
1202## Core tests. ##
1203## ----------- ##
252b5132 1204
5464f5a1 1205_ACEOF
c5d1701e 1206
6be7c12c 1207
5464f5a1
NN
1208# Keep a trace of the command line.
1209# Strip out --no-create and --no-recursion so they do not pile up.
1210# Strip out --silent because we don't want to record it for future runs.
1211# Also quote any args containing shell meta-characters.
1212# Make two passes to allow for proper duplicate-argument suppression.
1213ac_configure_args=
1214ac_configure_args0=
1215ac_configure_args1=
1216ac_sep=
1217ac_must_keep_next=false
1218for ac_pass in 1 2
1219do
1220 for ac_arg
1221 do
1222 case $ac_arg in
1223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 continue ;;
1227 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1228 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 esac
1230 case $ac_pass in
1231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1232 2)
1233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1234 if test $ac_must_keep_next = true; then
1235 ac_must_keep_next=false # Got value, back to normal.
1236 else
1237 case $ac_arg in
1238 *=* | --config-cache | -C | -disable-* | --disable-* \
1239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1241 | -with-* | --with-* | -without-* | --without-* | --x)
1242 case "$ac_configure_args0 " in
1243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 esac
1245 ;;
1246 -* ) ac_must_keep_next=true ;;
1247 esac
1248 fi
1249 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1250 # Get rid of the leading space.
1251 ac_sep=" "
1252 ;;
1253 esac
1254 done
1255done
1256$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1257$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1258
1259# When interrupted or exit'd, cleanup temporary files, and complete
1260# config.log. We remove comments because anyway the quotes in there
1261# would cause problems or look ugly.
1262# WARNING: Be sure not to use single quotes in there, as some shells,
1263# such as our DU 5.0 friend, will then `close' the trap.
1264trap 'exit_status=$?
1265 # Save into config.log some information that might help in debugging.
1266 {
1267 echo
1268
1269 cat <<\_ASBOX
1270## ---------------- ##
1271## Cache variables. ##
1272## ---------------- ##
1273_ASBOX
1274 echo
1275 # The following way of writing the cache mishandles newlines in values,
1276{
1277 (set) 2>&1 |
1278 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 *ac_space=\ *)
1280 sed -n \
1281 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 ;;
1284 *)
1285 sed -n \
1286 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1287 ;;
1288 esac;
1289}
1290 echo
1291
1292 cat <<\_ASBOX
1293## ----------------- ##
1294## Output variables. ##
1295## ----------------- ##
1296_ASBOX
1297 echo
1298 for ac_var in $ac_subst_vars
1299 do
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1304
1305 if test -n "$ac_subst_files"; then
1306 cat <<\_ASBOX
1307## ------------- ##
1308## Output files. ##
1309## ------------- ##
1310_ASBOX
1311 echo
1312 for ac_var in $ac_subst_files
1313 do
1314 eval ac_val=$`echo $ac_var`
1315 echo "$ac_var='"'"'$ac_val'"'"'"
1316 done | sort
1317 echo
1318 fi
1319
1320 if test -s confdefs.h; then
1321 cat <<\_ASBOX
1322## ----------- ##
1323## confdefs.h. ##
1324## ----------- ##
1325_ASBOX
1326 echo
1327 sed "/^$/d" confdefs.h | sort
1328 echo
1329 fi
1330 test "$ac_signal" != 0 &&
1331 echo "$as_me: caught signal $ac_signal"
1332 echo "$as_me: exit $exit_status"
1333 } >&5
1334 rm -f core *.core &&
1335 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 exit $exit_status
1337 ' 0
1338for ac_signal in 1 2 13 15; do
1339 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340done
1341ac_signal=0
1342
1343# confdefs.h avoids OS command line length limits that DEFS can exceed.
1344rm -rf conftest* confdefs.h
1345# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346echo >confdefs.h
1347
1348# Predefined preprocessor variables.
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_NAME "$PACKAGE_NAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_STRING "$PACKAGE_STRING"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372_ACEOF
1373
1374
1375# Let the site file select an alternate cache file if it wants to.
1376# Prefer explicitly selected file to automatically selected ones.
1377if test -z "$CONFIG_SITE"; then
1378 if test "x$prefix" != xNONE; then
1379 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1380 else
1381 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 fi
1383fi
1384for ac_site_file in $CONFIG_SITE; do
1385 if test -r "$ac_site_file"; then
1386 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1387echo "$as_me: loading site script $ac_site_file" >&6;}
1388 sed 's/^/| /' "$ac_site_file" >&5
1389 . "$ac_site_file"
1390 fi
1391done
1392
1393if test -r "$cache_file"; then
1394 # Some versions of bash will fail to source /dev/null (special
1395 # files actually), so we avoid doing that.
1396 if test -f "$cache_file"; then
1397 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1398echo "$as_me: loading cache $cache_file" >&6;}
1399 case $cache_file in
1400 [\\/]* | ?:[\\/]* ) . $cache_file;;
1401 *) . ./$cache_file;;
1402 esac
1403 fi
1404else
1405 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1406echo "$as_me: creating cache $cache_file" >&6;}
1407 >$cache_file
1408fi
1409
1410# Check that the precious variables saved in the cache have kept the same
1411# value.
1412ac_cache_corrupted=false
1413for ac_var in `(set) 2>&1 |
1414 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1415 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1416 eval ac_new_set=\$ac_env_${ac_var}_set
1417 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1418 eval ac_new_val="\$ac_env_${ac_var}_value"
1419 case $ac_old_set,$ac_new_set in
1420 set,)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,set)
1425 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1426echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1427 ac_cache_corrupted=: ;;
1428 ,);;
1429 *)
1430 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1431 # differences in whitespace do not lead to failure.
1432 ac_old_val_w=`echo x $ac_old_val`
1433 ac_new_val_w=`echo x $ac_new_val`
1434 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1435 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1436echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1437 ac_cache_corrupted=:
1438 else
1439 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1440echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1441 eval $ac_var=\$ac_old_val
1442 fi
1443 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1444echo "$as_me: former value: \`$ac_old_val'" >&2;}
1445 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1446echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1447 fi;;
1448 esac
1449 # Pass precious variables to config.status.
1450 if test "$ac_new_set" = set; then
1451 case $ac_new_val in
1452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1453 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 *) ac_arg=$ac_var=$ac_new_val ;;
1455 esac
1456 case " $ac_configure_args " in
1457 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1458 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1459 esac
1460 fi
1461done
1462if $ac_cache_corrupted; then
7a283e07
RW
1463 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1464echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
1465 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1466echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1467 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1468echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1469 { (exit 1); exit 1; }; }
1470fi
1471
1472ac_ext=c
1473ac_cpp='$CPP $CPPFLAGS'
1474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
7a283e07
RW
1494
1495
1496
5464f5a1
NN
1497
1498
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516done
1517if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608ac_ext=c
1609ac_cpp='$CPP $CPPFLAGS'
1610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1612ac_compiler_gnu=$ac_cv_c_compiler_gnu
1613if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1615set dummy ${ac_tool_prefix}gcc; ac_word=$2
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623else
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
1636done
1637
1638fi
1639fi
1640CC=$ac_cv_prog_CC
1641if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643echo "${ECHO_T}$CC" >&6
1644else
1645 echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647fi
1648
1649fi
1650if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "gcc", so it can be a program name with args.
1653set dummy gcc; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="gcc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679if test -n "$ac_ct_CC"; then
1680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1681echo "${ECHO_T}$ac_ct_CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 CC=$ac_ct_CC
1688else
1689 CC="$ac_cv_prog_CC"
1690fi
1691
1692if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1695set dummy ${ac_tool_prefix}cc; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_CC="${ac_tool_prefix}cc"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720CC=$ac_cv_prog_CC
1721if test -n "$CC"; then
1722 echo "$as_me:$LINENO: result: $CC" >&5
1723echo "${ECHO_T}$CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729fi
1730if test -z "$ac_cv_prog_CC"; then
1731 ac_ct_CC=$CC
1732 # Extract the first word of "cc", so it can be a program name with args.
1733set dummy cc; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH
1744do
1745 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="cc"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2
1752 fi
1753done
1754done
1755
1756fi
1757fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6
1762else
1763 echo "$as_me:$LINENO: result: no" >&5
1764echo "${ECHO_T}no" >&6
1765fi
1766
1767 CC=$ac_ct_CC
1768else
1769 CC="$ac_cv_prog_CC"
1770fi
1771
1772fi
1773if test -z "$CC"; then
1774 # Extract the first word of "cc", so it can be a program name with args.
1775set dummy cc; ac_word=$2
1776echo "$as_me:$LINENO: checking for $ac_word" >&5
1777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778if test "${ac_cv_prog_CC+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781 if test -n "$CC"; then
1782 ac_cv_prog_CC="$CC" # Let the user override the test.
1783else
1784 ac_prog_rejected=no
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1793 ac_prog_rejected=yes
1794 continue
1795 fi
1796 ac_cv_prog_CC="cc"
1797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 break 2
1799 fi
1800done
1801done
1802
1803if test $ac_prog_rejected = yes; then
1804 # We found a bogon in the path, so make sure we never use it.
1805 set dummy $ac_cv_prog_CC
1806 shift
1807 if test $# != 0; then
1808 # We chose a different compiler from the bogus one.
1809 # However, it has the same basename, so the bogon will be chosen
1810 # first if we set CC to just the basename; use the full file name.
1811 shift
1812 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1813 fi
1814fi
1815fi
1816fi
1817CC=$ac_cv_prog_CC
1818if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820echo "${ECHO_T}$CC" >&6
1821else
1822 echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824fi
1825
1826fi
1827if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in cl
1830 do
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840else
1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842for as_dir in $PATH
1843do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852done
1853done
1854
1855fi
1856fi
1857CC=$ac_cv_prog_CC
1858if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860echo "${ECHO_T}$CC" >&6
1861else
1862 echo "$as_me:$LINENO: result: no" >&5
1863echo "${ECHO_T}no" >&6
1864fi
1865
1866 test -n "$CC" && break
1867 done
1868fi
1869if test -z "$CC"; then
1870 ac_ct_CC=$CC
1871 for ac_prog in cl
1872do
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874set dummy $ac_prog; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_ac_ct_CC="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1893 fi
1894done
1895done
1896
1897fi
1898fi
1899ac_ct_CC=$ac_cv_prog_ac_ct_CC
1900if test -n "$ac_ct_CC"; then
1901 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1902echo "${ECHO_T}$ac_ct_CC" >&6
1903else
1904 echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908 test -n "$ac_ct_CC" && break
1909done
1910
1911 CC=$ac_ct_CC
1912fi
1913
1914fi
1915
1916
7a283e07
RW
1917test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1918echo "$as_me: error: in \`$ac_pwd':" >&2;}
1919{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: no acceptable C compiler found in \$PATH
1922See \`config.log' for more details." >&2;}
7a283e07 1923 { (exit 1); exit 1; }; }; }
5464f5a1
NN
1924
1925# Provide some information about the compiler.
1926echo "$as_me:$LINENO:" \
1927 "checking for C compiler version" >&5
1928ac_compiler=`set X $ac_compile; echo $2`
1929{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1930 (eval $ac_compiler --version </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1935 (eval $ac_compiler -v </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1940 (eval $ac_compiler -V </dev/null >&5) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }
1944
1945cat >conftest.$ac_ext <<_ACEOF
1946/* confdefs.h. */
1947_ACEOF
1948cat confdefs.h >>conftest.$ac_ext
1949cat >>conftest.$ac_ext <<_ACEOF
1950/* end confdefs.h. */
1951
1952int
1953main ()
1954{
1955
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960ac_clean_files_save=$ac_clean_files
1961ac_clean_files="$ac_clean_files a.out a.exe b.out"
1962# Try to create an executable without -o first, disregard a.out.
1963# It will help us diagnose broken compilers, and finding out an intuition
1964# of exeext.
1965echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1966echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1967ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1968if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1969 (eval $ac_link_default) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; then
1973 # Find the output, starting from the most likely. This scheme is
1974# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1975# resort.
1976
1977# Be careful to initialize this variable, since it used to be cached.
1978# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1979ac_cv_exeext=
1980# b.out is created by i960 compilers.
1981for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1982do
1983 test -f "$ac_file" || continue
1984 case $ac_file in
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1986 ;;
1987 conftest.$ac_ext )
1988 # This is the source file.
1989 ;;
1990 [ab].out )
1991 # We found the default executable, but exeext='' is most
1992 # certainly right.
1993 break;;
1994 *.* )
1995 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996 # FIXME: I believe we export ac_cv_exeext for Libtool,
1997 # but it would be cool to find out if it's true. Does anybody
1998 # maintain Libtool? --akim.
1999 export ac_cv_exeext
2000 break;;
2001 * )
2002 break;;
2003 esac
2004done
2005else
2006 echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
7a283e07
RW
2009{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2010echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2011{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2012See \`config.log' for more details." >&5
2013echo "$as_me: error: C compiler cannot create executables
2014See \`config.log' for more details." >&2;}
7a283e07 2015 { (exit 77); exit 77; }; }; }
5464f5a1
NN
2016fi
2017
2018ac_exeext=$ac_cv_exeext
2019echo "$as_me:$LINENO: result: $ac_file" >&5
2020echo "${ECHO_T}$ac_file" >&6
2021
2022# Check the compiler produces executables we can run. If not, either
2023# the compiler is broken, or we cross compile.
2024echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2025echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2026# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2027# If not cross compiling, check that we can run a simple program.
2028if test "$cross_compiling" != yes; then
2029 if { ac_try='./$ac_file'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; }; then
2035 cross_compiling=no
2036 else
2037 if test "$cross_compiling" = maybe; then
2038 cross_compiling=yes
2039 else
7a283e07
RW
2040 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2041echo "$as_me: error: in \`$ac_pwd':" >&2;}
2042{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2043If you meant to cross compile, use \`--host'.
2044See \`config.log' for more details." >&5
2045echo "$as_me: error: cannot run C compiled programs.
2046If you meant to cross compile, use \`--host'.
2047See \`config.log' for more details." >&2;}
7a283e07 2048 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2049 fi
2050 fi
2051fi
2052echo "$as_me:$LINENO: result: yes" >&5
2053echo "${ECHO_T}yes" >&6
2054
2055rm -f a.out a.exe conftest$ac_cv_exeext b.out
2056ac_clean_files=$ac_clean_files_save
2057# Check the compiler produces executables we can run. If not, either
2058# the compiler is broken, or we cross compile.
2059echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2060echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2061echo "$as_me:$LINENO: result: $cross_compiling" >&5
2062echo "${ECHO_T}$cross_compiling" >&6
2063
2064echo "$as_me:$LINENO: checking for suffix of executables" >&5
2065echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2067 (eval $ac_link) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2072# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2073# work properly (i.e., refer to `conftest.exe'), while it won't with
2074# `rm'.
2075for ac_file in conftest.exe conftest conftest.*; do
2076 test -f "$ac_file" || continue
2077 case $ac_file in
2078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 export ac_cv_exeext
2081 break;;
2082 * ) break;;
2083 esac
2084done
2085else
7a283e07
RW
2086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2089See \`config.log' for more details." >&5
2090echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&2;}
7a283e07 2092 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2093fi
2094
2095rm -f conftest$ac_cv_exeext
2096echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2097echo "${ECHO_T}$ac_cv_exeext" >&6
2098
2099rm -f conftest.$ac_ext
2100EXEEXT=$ac_cv_exeext
2101ac_exeext=$EXEEXT
2102echo "$as_me:$LINENO: checking for suffix of object files" >&5
2103echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2104if test "${ac_cv_objext+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107 cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h. */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h. */
2113
2114int
2115main ()
2116{
2117
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122rm -f conftest.o conftest.obj
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2129 case $ac_file in
2130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2132 break;;
2133 esac
2134done
2135else
2136 echo "$as_me: failed program was:" >&5
2137sed 's/^/| /' conftest.$ac_ext >&5
2138
7a283e07
RW
2139{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2140echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
7a283e07 2145 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h. */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h. */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170 choke me
2171#endif
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2180 ac_status=$?
2181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
49c96104
SE
2186 { ac_try='test -z "$ac_c_werror_flag"
2187 || test ! -s conftest.err'
5464f5a1
NN
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; } &&
2193 { ac_try='test -s conftest.$ac_objext'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2199 ac_compiler_gnu=yes
2200else
2201 echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221 cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h. */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h. */
2227
2228int
2229main ()
2230{
2231
2232 ;
2233 return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238 (eval $ac_compile) 2>conftest.er1
2239 ac_status=$?
2240 grep -v '^ *+' conftest.er1 >conftest.err
2241 rm -f conftest.er1
2242 cat conftest.err >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); } &&
49c96104
SE
2245 { ac_try='test -z "$ac_c_werror_flag"
2246 || test ! -s conftest.err'
5464f5a1
NN
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; } &&
2252 { ac_try='test -s conftest.$ac_objext'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; }; then
2258 ac_cv_prog_cc_g=yes
2259else
2260 echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270 CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272 if test "$GCC" = yes; then
2273 CFLAGS="-g -O2"
2274 else
2275 CFLAGS="-g"
2276 fi
2277else
2278 if test "$GCC" = yes; then
2279 CFLAGS="-O2"
2280 else
2281 CFLAGS=
2282 fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h. */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h. */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305 char **p;
2306 int i;
2307{
2308 return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312 char *s;
2313 va_list v;
2314 va_start (v,p);
2315 s = g (p, va_arg (v,int));
2316 va_end (v);
2317 return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not '\xHH' hex character constants.
2322 These don't provoke an error unfortunately, instead are silently treated
2323 as 'x'. The following induces an error, until -std1 is added to get
2324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2325 array size at least. It's necessary to write '\x00'==0 to get something
2326 that's true only with -std1. */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX -qlanglvl=ansi
2346# Ultrix and OSF/1 -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions -Aa -D_HPUX_SOURCE
2349# SVR4 -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352 CC="$ac_save_CC $ac_arg"
2353 rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2356 ac_status=$?
2357 grep -v '^ *+' conftest.er1 >conftest.err
2358 rm -f conftest.er1
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
49c96104
SE
2362 { ac_try='test -z "$ac_c_werror_flag"
2363 || test ! -s conftest.err'
5464f5a1
NN
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378 echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390 x|xno)
2391 echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393 *)
2394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396 CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C. Since we use `exit',
2400# in C++ we need to declare it. In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405 choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
49c96104
SE
2417 { ac_try='test -z "$ac_c_werror_flag"
2418 || test ! -s conftest.err'
5464f5a1
NN
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 for ac_declaration in \
2431 '' \
2432 'extern "C" void std::exit (int) throw (); using std::exit;' \
2433 'extern "C" void std::exit (int); using std::exit;' \
2434 'extern "C" void exit (int) throw ();' \
2435 'extern "C" void exit (int);' \
2436 'void exit (int);'
2437do
2438 cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
49c96104
SE
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
5464f5a1
NN
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 (eval $ac_try) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 :
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
49c96104
SE
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
5464f5a1
NN
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2521 break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531 echo '#ifdef __cplusplus' >>confdefs.h
2532 echo $ac_declaration >>confdefs.h
2533 echo '#endif' >>confdefs.h
2534fi
2535
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
f5385ebf
AM
2549echo "$as_me:$LINENO: checking for library containing strerror" >&5
2550echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2551if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
f5385ebf
AM
2554 ac_func_search_save_LIBS=$LIBS
2555ac_cv_search_strerror=no
5464f5a1
NN
2556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562
2563/* Override any gcc2 internal prototype to avoid an error. */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567/* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2569char strerror ();
2570int
2571main ()
2572{
2573strerror ();
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
49c96104
SE
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
5464f5a1
NN
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
f5385ebf 2600 ac_cv_search_strerror="none required"
5464f5a1
NN
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
5464f5a1
NN
2605fi
2606rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2608if test "$ac_cv_search_strerror" = no; then
2609 for ac_lib in cposix; do
2610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2611 cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h. */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h. */
2617
2618/* Override any gcc2 internal prototype to avoid an error. */
2619#ifdef __cplusplus
2620extern "C"
2621#endif
2622/* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2624char strerror ();
2625int
2626main ()
2627{
2628strerror ();
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext conftest$ac_exeext
2634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635 (eval $ac_link) 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } &&
49c96104
SE
2642 { ac_try='test -z "$ac_c_werror_flag"
2643 || test ! -s conftest.err'
f5385ebf
AM
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; } &&
2649 { ac_try='test -s conftest$ac_exeext'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; }; then
2655 ac_cv_search_strerror="-l$ac_lib"
2656break
2657else
2658 echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
5464f5a1 2661fi
f5385ebf
AM
2662rm -f conftest.err conftest.$ac_objext \
2663 conftest$ac_exeext conftest.$ac_ext
2664 done
5464f5a1 2665fi
f5385ebf
AM
2666LIBS=$ac_func_search_save_LIBS
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2669echo "${ECHO_T}$ac_cv_search_strerror" >&6
2670if test "$ac_cv_search_strerror" != no; then
2671 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2672
f5385ebf 2673fi
5464f5a1
NN
2674
2675
f5385ebf 2676am__api_version="1.9"
5464f5a1
NN
2677# Find a good install program. We prefer a C program (faster),
2678# so one script is as good as another. But avoid the broken or
2679# incompatible versions:
2680# SysV /etc/install, /usr/sbin/install
2681# SunOS /usr/etc/install
2682# IRIX /sbin/install
2683# AIX /bin/install
2684# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2688# OS/2's system install, which has a completely different semantic
252b5132 2689# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2690# Reject install programs that cannot install multiple files.
5464f5a1
NN
2691echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2692echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2693if test -z "$INSTALL"; then
5464f5a1
NN
2694if test "${ac_cv_path_install+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2696else
5464f5a1
NN
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2703case $as_dir/ in
2704 ./ | .// | /cC/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2707 /usr/ucb/* ) ;;
2708 *)
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2711 # by default.
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2715 if test $ac_prog = install &&
5464f5a1 2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2717 # AIX install. It has an incompatible calling convention.
2718 :
5464f5a1
NN
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2722 :
252b5132 2723 else
58c85be7
RW
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2727 mkdir conftest.dir
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2732 then
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 break 3
2735 fi
252b5132
RH
2736 fi
2737 fi
2738 done
5464f5a1
NN
2739 done
2740 ;;
2741esac
2742done
2743
58c85be7 2744rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2745
2746fi
2747 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2748 INSTALL=$ac_cv_path_install
252b5132 2749 else
58c85be7
RW
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
252b5132 2752 # break other packages using the cache if that directory is
58c85be7 2753 # removed, or if the value is a relative name.
5464f5a1 2754 INSTALL=$ac_install_sh
252b5132
RH
2755 fi
2756fi
5464f5a1
NN
2757echo "$as_me:$LINENO: result: $INSTALL" >&5
2758echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2759
2760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761# It thinks the first close brace ends the variable substitution.
2762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
5464f5a1 2764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2765
2766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
5464f5a1
NN
2768echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2769echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2770# Just in case
2771sleep 1
f5385ebf 2772echo timestamp > conftest.file
252b5132
RH
2773# Do `set' in a subshell so we don't clobber the current shell's
2774# arguments. Must try -L first in case configure is actually a
2775# symlink; some systems play weird games with the mod time of symlinks
2776# (eg FreeBSD returns the mod time of the symlink's containing
2777# directory).
2778if (
f5385ebf 2779 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2780 if test "$*" = "X"; then
2781 # -L didn't work.
f5385ebf 2782 set X `ls -t $srcdir/configure conftest.file`
252b5132 2783 fi
f5385ebf
AM
2784 rm -f conftest.file
2785 if test "$*" != "X $srcdir/configure conftest.file" \
2786 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2787
2788 # If neither matched, then we have a broken ls. This can happen
2789 # if, for instance, CONFIG_SHELL is bash and it inherits a
2790 # broken ls alias from the environment. This has actually
2791 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2792 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2793alias in your environment" >&5
2794echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2795alias in your environment" >&2;}
2796 { (exit 1); exit 1; }; }
252b5132
RH
2797 fi
2798
f5385ebf 2799 test "$2" = conftest.file
252b5132
RH
2800 )
2801then
2802 # Ok.
2803 :
2804else
5464f5a1
NN
2805 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2806Check your system clock" >&5
2807echo "$as_me: error: newly created file is older than distributed files!
2808Check your system clock" >&2;}
2809 { (exit 1); exit 1; }; }
252b5132 2810fi
5464f5a1
NN
2811echo "$as_me:$LINENO: result: yes" >&5
2812echo "${ECHO_T}yes" >&6
252b5132 2813test "$program_prefix" != NONE &&
5464f5a1 2814 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2815# Use a double $ so make ignores it.
2816test "$program_suffix" != NONE &&
5464f5a1
NN
2817 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2818# Double any \ or $. echo might interpret backslashes.
2819# By default was `s,x,x', remove it if useless.
2820cat <<\_ACEOF >conftest.sed
2821s/[\\$]/&&/g;s/;s,x,x,$//
2822_ACEOF
2823program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2824rm conftest.sed
2825
f5385ebf
AM
2826# expand $ac_aux_dir to an absolute path
2827am_aux_dir=`cd $ac_aux_dir && pwd`
2828
2829test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2830# Use eval to expand $SHELL
2831if eval "$MISSING --run true"; then
2832 am_missing_run="$MISSING --run "
2833else
2834 am_missing_run=
2835 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2836echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2837fi
2838
2839if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2840 # We used to keeping the `.' as first argument, in order to
2841 # allow $(mkdir_p) to be used without argument. As in
2842 # $(mkdir_p) $(somedir)
2843 # where $(somedir) is conditionally defined. However this is wrong
2844 # for two reasons:
2845 # 1. if the package is installed by a user who cannot write `.'
2846 # make install will fail,
2847 # 2. the above comment should most certainly read
2848 # $(mkdir_p) $(DESTDIR)$(somedir)
2849 # so it does not work when $(somedir) is undefined and
2850 # $(DESTDIR) is not.
2851 # To support the latter case, we have to write
2852 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2853 # so the `.' trick is pointless.
2854 mkdir_p='mkdir -p --'
2855else
2856 # On NextStep and OpenStep, the `mkdir' command does not
2857 # recognize any option. It will interpret all options as
2858 # directories to create, and then abort because `.' already
2859 # exists.
2860 for d in ./-p ./--version;
2861 do
2862 test -d $d && rmdir $d
2863 done
2864 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2865 if test -f "$ac_aux_dir/mkinstalldirs"; then
2866 mkdir_p='$(mkinstalldirs)'
2867 else
2868 mkdir_p='$(install_sh) -d'
2869 fi
2870fi
2871
2872for ac_prog in gawk mawk nawk awk
2873do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875set dummy $ac_prog; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_AWK+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$AWK"; then
2882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_AWK="$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900AWK=$ac_cv_prog_AWK
2901if test -n "$AWK"; then
2902 echo "$as_me:$LINENO: result: $AWK" >&5
2903echo "${ECHO_T}$AWK" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
2909 test -n "$AWK" && break
2910done
2911
5464f5a1
NN
2912echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2914set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2915if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 cat >conftest.make <<\_ACEOF
252b5132 2919all:
5464f5a1
NN
2920 @echo 'ac_maketemp="$(MAKE)"'
2921_ACEOF
252b5132 2922# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2923eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2924if test -n "$ac_maketemp"; then
2925 eval ac_cv_prog_make_${ac_make}_set=yes
2926else
2927 eval ac_cv_prog_make_${ac_make}_set=no
2928fi
5464f5a1 2929rm -f conftest.make
252b5132
RH
2930fi
2931if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2932 echo "$as_me:$LINENO: result: yes" >&5
2933echo "${ECHO_T}yes" >&6
252b5132
RH
2934 SET_MAKE=
2935else
5464f5a1
NN
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
252b5132
RH
2938 SET_MAKE="MAKE=${MAKE-make}"
2939fi
2940
f5385ebf
AM
2941rm -rf .tst 2>/dev/null
2942mkdir .tst 2>/dev/null
2943if test -d .tst; then
2944 am__leading_dot=.
2945else
2946 am__leading_dot=_
2947fi
2948rmdir .tst 2>/dev/null
2949
2950DEPDIR="${am__leading_dot}deps"
2951
2952 ac_config_commands="$ac_config_commands depfiles"
2953
2954
2955am_make=${MAKE-make}
2956cat > confinc << 'END'
2957am__doit:
2958 @echo done
2959.PHONY: am__doit
2960END
2961# If we don't find an include directive, just comment out the code.
2962echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2963echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2964am__include="#"
2965am__quote=
2966_am_result=none
2967# First try GNU make style include.
2968echo "include confinc" > confmf
2969# We grep out `Entering directory' and `Leaving directory'
2970# messages which can occur if `w' ends up in MAKEFLAGS.
2971# In particular we don't look at `^make:' because GNU make might
2972# be invoked under some other name (usually "gmake"), in which
2973# case it prints its new name instead of `make'.
2974if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2975 am__include=include
2976 am__quote=
2977 _am_result=GNU
2978fi
2979# Now try BSD make style include.
2980if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2983 am__include=.include
2984 am__quote="\""
2985 _am_result=BSD
2986 fi
2987fi
2988
2989
2990echo "$as_me:$LINENO: result: $_am_result" >&5
2991echo "${ECHO_T}$_am_result" >&6
2992rm -f confinc confmf
2993
2994# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2995if test "${enable_dependency_tracking+set}" = set; then
2996 enableval="$enable_dependency_tracking"
2997
2998fi;
2999if test "x$enable_dependency_tracking" != xno; then
3000 am_depcomp="$ac_aux_dir/depcomp"
3001 AMDEPBACKSLASH='\'
3002fi
3003
3004
3005if test "x$enable_dependency_tracking" != xno; then
3006 AMDEP_TRUE=
3007 AMDEP_FALSE='#'
3008else
3009 AMDEP_TRUE='#'
3010 AMDEP_FALSE=
3011fi
6be7c12c 3012
252b5132 3013
252b5132 3014
f5385ebf
AM
3015# test to see if srcdir already configured
3016if test "`cd $srcdir && pwd`" != "`pwd`" &&
3017 test -f $srcdir/config.status; then
5464f5a1
NN
3018 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3019echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3020 { (exit 1); exit 1; }; }
252b5132 3021fi
5464f5a1 3022
f5385ebf
AM
3023# test whether we have cygpath
3024if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3027 else
3028 CYGPATH_W=echo
3029 fi
3030fi
3031
3032
3033# Define the identity of the package.
3034 PACKAGE=bfd
be118e79 3035 VERSION=2.18.50
f5385ebf
AM
3036
3037
5464f5a1 3038cat >>confdefs.h <<_ACEOF
252b5132 3039#define PACKAGE "$PACKAGE"
5464f5a1 3040_ACEOF
252b5132 3041
5464f5a1
NN
3042
3043cat >>confdefs.h <<_ACEOF
252b5132 3044#define VERSION "$VERSION"
5464f5a1 3045_ACEOF
252b5132 3046
f5385ebf
AM
3047# Some tools Automake needs.
3048
3049ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3062
f5385ebf 3063install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3064
f5385ebf
AM
3065# Installed binaries are usually stripped using `strip' when the user
3066# run `make install-strip'. However `strip' might not be the right
3067# tool to use in cross-compilation environments, therefore Automake
3068# will honor the `STRIP' environment variable to overrule this program.
3069if test "$cross_compiling" != no; then
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3072set dummy ${ac_tool_prefix}strip; ac_word=$2
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_STRIP+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077else
3078 if test -n "$STRIP"; then
3079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3080else
f5385ebf
AM
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
3095fi
3096fi
3097STRIP=$ac_cv_prog_STRIP
3098if test -n "$STRIP"; then
3099 echo "$as_me:$LINENO: result: $STRIP" >&5
3100echo "${ECHO_T}$STRIP" >&6
3101else
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
252b5132 3106fi
f5385ebf
AM
3107if test -z "$ac_cv_prog_STRIP"; then
3108 ac_ct_STRIP=$STRIP
3109 # Extract the first word of "strip", so it can be a program name with args.
3110set dummy strip; ac_word=$2
3111echo "$as_me:$LINENO: checking for $ac_word" >&5
3112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP="strip"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131done
252b5132 3132
f5385ebf
AM
3133 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3134fi
3135fi
3136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137if test -n "$ac_ct_STRIP"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3139echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3140else
f5385ebf
AM
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
252b5132
RH
3143fi
3144
f5385ebf 3145 STRIP=$ac_ct_STRIP
252b5132 3146else
f5385ebf
AM
3147 STRIP="$ac_cv_prog_STRIP"
3148fi
3149
252b5132 3150fi
f5385ebf
AM
3151INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3152
3153# We need awk for the "check" target. The system "awk" is bad on
3154# some platforms.
3155# Always define AMTAR for backward compatibility.
3156
3157AMTAR=${AMTAR-"${am_missing_run}tar"}
3158
3159am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3160
252b5132 3161
f5385ebf
AM
3162
3163
3164depcc="$CC" am_compiler_list=
3165
3166echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3167echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3168if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3170else
f5385ebf
AM
3171 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3172 # We make a subdir and do the tests there. Otherwise we can end up
3173 # making bogus files that we don't know about and never remove. For
3174 # instance it was reported that on HP-UX the gcc test will end up
3175 # making a dummy file named `D' -- because `-MD' means `put the output
3176 # in D'.
3177 mkdir conftest.dir
3178 # Copy depcomp to subdir because otherwise we won't find it if we're
3179 # using a relative directory.
3180 cp "$am_depcomp" conftest.dir
3181 cd conftest.dir
3182 # We will build objects and dependencies in a subdirectory because
3183 # it helps to detect inapplicable dependency modes. For instance
3184 # both Tru64's cc and ICC support -MD to output dependencies as a
3185 # side effect of compilation, but ICC will put the dependencies in
3186 # the current directory while Tru64 will put them in the object
3187 # directory.
3188 mkdir sub
3189
3190 am_cv_CC_dependencies_compiler_type=none
3191 if test "$am_compiler_list" = ""; then
3192 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3193 fi
3194 for depmode in $am_compiler_list; do
3195 # Setup a source with many dependencies, because some compilers
3196 # like to wrap large dependency lists on column 80 (with \), and
3197 # we should not choose a depcomp mode which is confused by this.
3198 #
3199 # We need to recreate these files for each test, as the compiler may
3200 # overwrite some of them when testing with obscure command lines.
3201 # This happens at least with the AIX C compiler.
3202 : > sub/conftest.c
3203 for i in 1 2 3 4 5 6; do
3204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3206 # Solaris 8's {/usr,}/bin/sh.
3207 touch sub/conftst$i.h
3208 done
3209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3210
3211 case $depmode in
3212 nosideeffect)
3213 # after this tag, mechanisms are not by side-effect, so they'll
3214 # only be used when explicitly requested
3215 if test "x$enable_dependency_tracking" = xyes; then
3216 continue
3217 else
3218 break
3219 fi
3220 ;;
3221 none) break ;;
3222 esac
3223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3224 # mode. It turns out that the SunPro C++ compiler does not properly
3225 # handle `-M -o', and we need to detect this.
3226 if depmode=$depmode \
3227 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3229 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3230 >/dev/null 2>conftest.err &&
3231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3232 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3234 # icc doesn't choke on unknown options, it will just issue warnings
3235 # or remarks (even with -Werror). So we grep stderr for any message
3236 # that says an option was ignored or not supported.
3237 # When given -MP, icc 7.0 and 7.1 complain thusly:
3238 # icc: Command line warning: ignoring option '-M'; no argument required
3239 # The diagnosis changed in icc 8.0:
3240 # icc: Command line remark: option '-MP' not supported
3241 if (grep 'ignoring option' conftest.err ||
3242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3243 am_cv_CC_dependencies_compiler_type=$depmode
3244 break
3245 fi
3246 fi
3247 done
3248
3249 cd ..
3250 rm -rf conftest.dir
3251else
3252 am_cv_CC_dependencies_compiler_type=none
3253fi
3254
252b5132 3255fi
f5385ebf
AM
3256echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3257echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3258CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3259
f5385ebf
AM
3260
3261
3262if
3263 test "x$enable_dependency_tracking" != xno \
3264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3265 am__fastdepCC_TRUE=
3266 am__fastdepCC_FALSE='#'
252b5132 3267else
f5385ebf
AM
3268 am__fastdepCC_TRUE='#'
3269 am__fastdepCC_FALSE=
252b5132
RH
3270fi
3271
6be7c12c 3272
e43d48cc 3273
f5385ebf 3274
5464f5a1
NN
3275if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3277set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3278echo "$as_me:$LINENO: checking for $ac_word" >&5
3279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280if test "${ac_cv_prog_AR+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3282else
3283 if test -n "$AR"; then
3284 ac_cv_prog_AR="$AR" # Let the user override the test.
3285else
5464f5a1
NN
3286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287for as_dir in $PATH
3288do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_AR="${ac_tool_prefix}ar"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297done
3298done
3299
252b5132
RH
3300fi
3301fi
5464f5a1 3302AR=$ac_cv_prog_AR
252b5132 3303if test -n "$AR"; then
5464f5a1
NN
3304 echo "$as_me:$LINENO: result: $AR" >&5
3305echo "${ECHO_T}$AR" >&6
252b5132 3306else
5464f5a1
NN
3307 echo "$as_me:$LINENO: result: no" >&5
3308echo "${ECHO_T}no" >&6
3309fi
3310
252b5132 3311fi
5464f5a1
NN
3312if test -z "$ac_cv_prog_AR"; then
3313 ac_ct_AR=$AR
3314 # Extract the first word of "ar", so it can be a program name with args.
3315set dummy ar; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -n "$ac_ct_AR"; then
3322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_AR="ar"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
252b5132 3337
5464f5a1
NN
3338fi
3339fi
3340ac_ct_AR=$ac_cv_prog_ac_ct_AR
3341if test -n "$ac_ct_AR"; then
3342 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3343echo "${ECHO_T}$ac_ct_AR" >&6
3344else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
252b5132 3348
5464f5a1
NN
3349 AR=$ac_ct_AR
3350else
3351 AR="$ac_cv_prog_AR"
3352fi
6be7c12c 3353
5464f5a1
NN
3354if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3357echo "$as_me:$LINENO: checking for $ac_word" >&5
3358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3361else
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3364else
5464f5a1
NN
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377done
3378
252b5132
RH
3379fi
3380fi
5464f5a1 3381RANLIB=$ac_cv_prog_RANLIB
252b5132 3382if test -n "$RANLIB"; then
5464f5a1
NN
3383 echo "$as_me:$LINENO: result: $RANLIB" >&5
3384echo "${ECHO_T}$RANLIB" >&6
252b5132 3385else
5464f5a1
NN
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
252b5132
RH
3388fi
3389
5464f5a1 3390fi
252b5132 3391if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3392 ac_ct_RANLIB=$RANLIB
252b5132
RH
3393 # Extract the first word of "ranlib", so it can be a program name with args.
3394set dummy ranlib; ac_word=$2
5464f5a1
NN
3395echo "$as_me:$LINENO: checking for $ac_word" >&5
3396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3399else
5464f5a1
NN
3400 if test -n "$ac_ct_RANLIB"; then
3401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3402else
5464f5a1
NN
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_RANLIB="ranlib"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414done
3415done
3416
3417 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3418fi
3419fi
5464f5a1
NN
3420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3421if test -n "$ac_ct_RANLIB"; then
3422 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3423echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3424else
5464f5a1
NN
3425 echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6
252b5132
RH
3427fi
3428
5464f5a1 3429 RANLIB=$ac_ct_RANLIB
252b5132 3430else
5464f5a1 3431 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3432fi
3433
252b5132
RH
3434
3435# Check whether --enable-shared or --disable-shared was given.
3436if test "${enable_shared+set}" = set; then
3437 enableval="$enable_shared"
3438 p=${PACKAGE-default}
d7040cdb
SE
3439 case $enableval in
3440 yes) enable_shared=yes ;;
3441 no) enable_shared=no ;;
3442 *)
3443 enable_shared=no
3444 # Look at the argument we got. We use all the common list separators.
3445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3446 for pkg in $enableval; do
3447 IFS="$lt_save_ifs"
3448 if test "X$pkg" = "X$p"; then
3449 enable_shared=yes
3450 fi
3451 done
3452 IFS="$lt_save_ifs"
3453 ;;
3454 esac
252b5132
RH
3455else
3456 enable_shared=no
5464f5a1 3457fi;
252b5132 3458
d7040cdb
SE
3459
3460
3461
3462
3463
3464
3465
3466
cfbc9945
SE
3467ac_ext=c
3468ac_cpp='$CPP $CPPFLAGS'
3469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}gcc; ac_word=$2
3475echo "$as_me:$LINENO: checking for $ac_word" >&5
3476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477if test "${ac_cv_prog_CC+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3479else
cfbc9945
SE
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3482else
cfbc9945
SE
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495done
c5d1701e 3496
cfbc9945
SE
3497fi
3498fi
3499CC=$ac_cv_prog_CC
3500if test -n "$CC"; then
3501 echo "$as_me:$LINENO: result: $CC" >&5
3502echo "${ECHO_T}$CC" >&6
252b5132 3503else
cfbc9945
SE
3504 echo "$as_me:$LINENO: result: no" >&5
3505echo "${ECHO_T}no" >&6
252b5132 3506fi
cfbc9945
SE
3507
3508fi
3509if test -z "$ac_cv_prog_CC"; then
3510 ac_ct_CC=$CC
3511 # Extract the first word of "gcc", so it can be a program name with args.
3512set dummy gcc; ac_word=$2
3513echo "$as_me:$LINENO: checking for $ac_word" >&5
3514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3517else
cfbc9945
SE
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3520else
cfbc9945
SE
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="gcc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533done
3534
252b5132
RH
3535fi
3536fi
cfbc9945
SE
3537ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538if test -n "$ac_ct_CC"; then
3539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3540echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3541else
5464f5a1
NN
3542 echo "$as_me:$LINENO: result: no" >&5
3543echo "${ECHO_T}no" >&6
252b5132 3544fi
cfbc9945
SE
3545
3546 CC=$ac_ct_CC
3547else
3548 CC="$ac_cv_prog_CC"
3549fi
3550
3551if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554set dummy ${ac_tool_prefix}cc; ac_word=$2
3555echo "$as_me:$LINENO: checking for $ac_word" >&5
3556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3559else
cfbc9945
SE
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3562else
cfbc9945
SE
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574done
3575done
3576
252b5132
RH
3577fi
3578fi
cfbc9945
SE
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581 echo "$as_me:$LINENO: result: $CC" >&5
3582echo "${ECHO_T}$CC" >&6
ac48eca1 3583else
cfbc9945
SE
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
ac48eca1 3586fi
ac48eca1 3587
cfbc9945
SE
3588fi
3589if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "cc", so it can be a program name with args.
3592set dummy cc; ac_word=$2
3593echo "$as_me:$LINENO: checking for $ac_word" >&5
3594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3596 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3597else
cfbc9945
SE
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3600else
cfbc9945
SE
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="cc"
3609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612done
3613done
3614
252b5132 3615fi
cfbc9945
SE
3616fi
3617ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618if test -n "$ac_ct_CC"; then
3619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3620echo "${ECHO_T}$ac_ct_CC" >&6
3621else
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
252b5132
RH
3624fi
3625
cfbc9945
SE
3626 CC=$ac_ct_CC
3627else
3628 CC="$ac_cv_prog_CC"
3629fi
252b5132 3630
cfbc9945
SE
3631fi
3632if test -z "$CC"; then
3633 # Extract the first word of "cc", so it can be a program name with args.
3634set dummy cc; ac_word=$2
3635echo "$as_me:$LINENO: checking for $ac_word" >&5
3636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637if test "${ac_cv_prog_CC+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3639else
cfbc9945
SE
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643 ac_prog_rejected=no
3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3652 ac_prog_rejected=yes
3653 continue
3654 fi
3655 ac_cv_prog_CC="cc"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659done
3660done
3661
3662if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3672 fi
3673fi
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678 echo "$as_me:$LINENO: result: $CC" >&5
3679echo "${ECHO_T}$CC" >&6
3680else
3681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
252b5132
RH
3683fi
3684
cfbc9945
SE
3685fi
3686if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl
3689 do
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692echo "$as_me:$LINENO: checking for $ac_word" >&5
3693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3695 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3696else
cfbc9945
SE
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699else
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711done
3712done
ac48eca1 3713
cfbc9945
SE
3714fi
3715fi
3716CC=$ac_cv_prog_CC
3717if test -n "$CC"; then
3718 echo "$as_me:$LINENO: result: $CC" >&5
3719echo "${ECHO_T}$CC" >&6
3720else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723fi
ac48eca1 3724
cfbc9945
SE
3725 test -n "$CC" && break
3726 done
3727fi
3728if test -z "$CC"; then
3729 ac_ct_CC=$CC
3730 for ac_prog in cl
3731do
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733set dummy $ac_prog; ac_word=$2
3734echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_ac_ct_CC="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754done
ac48eca1 3755
cfbc9945
SE
3756fi
3757fi
3758ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759if test -n "$ac_ct_CC"; then
3760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3761echo "${ECHO_T}$ac_ct_CC" >&6
3762else
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
3765fi
ac48eca1 3766
cfbc9945
SE
3767 test -n "$ac_ct_CC" && break
3768done
ac48eca1 3769
cfbc9945
SE
3770 CC=$ac_ct_CC
3771fi
55c80943 3772
cfbc9945 3773fi
ac48eca1 3774
ac48eca1 3775
7a283e07
RW
3776test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3779See \`config.log' for more details." >&5
3780echo "$as_me: error: no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." >&2;}
7a283e07 3782 { (exit 1); exit 1; }; }; }
ac48eca1 3783
cfbc9945
SE
3784# Provide some information about the compiler.
3785echo "$as_me:$LINENO:" \
3786 "checking for C compiler version" >&5
3787ac_compiler=`set X $ac_compile; echo $2`
3788{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3789 (eval $ac_compiler --version </dev/null >&5) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }
3793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3794 (eval $ac_compiler -v </dev/null >&5) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }
3798{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3799 (eval $ac_compiler -V </dev/null >&5) 2>&5
3800 ac_status=$?
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); }
ac48eca1 3803
cfbc9945
SE
3804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3806if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3807 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3808else
cfbc9945
SE
3809 cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h. */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h. */
ac48eca1 3815
cfbc9945
SE
3816int
3817main ()
3818{
3819#ifndef __GNUC__
3820 choke me
3821#endif
5464f5a1 3822
cfbc9945
SE
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829 (eval $ac_compile) 2>conftest.er1
3830 ac_status=$?
3831 grep -v '^ *+' conftest.er1 >conftest.err
3832 rm -f conftest.er1
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -z "$ac_c_werror_flag"
3837 || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest.$ac_objext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_compiler_gnu=yes
ac48eca1 3850else
cfbc9945
SE
3851 echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854ac_compiler_gnu=no
ac48eca1 3855fi
cfbc9945
SE
3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3857ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3858
5464f5a1 3859fi
cfbc9945
SE
3860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3862GCC=`test $ac_compiler_gnu = yes && echo yes`
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865CFLAGS="-g"
3866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3868if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3869 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3870else
cfbc9945
SE
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886rm -f conftest.$ac_objext
3887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -z "$ac_c_werror_flag"
3896 || test ! -s conftest.err'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; } &&
3902 { ac_try='test -s conftest.$ac_objext'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; }; then
3908 ac_cv_prog_cc_g=yes
6be7c12c 3909else
cfbc9945
SE
3910 echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3912
cfbc9945 3913ac_cv_prog_cc_g=no
ac48eca1 3914fi
cfbc9945 3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3916fi
cfbc9945
SE
3917echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3918echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3919if test "$ac_test_CFLAGS" = set; then
3920 CFLAGS=$ac_save_CFLAGS
3921elif test $ac_cv_prog_cc_g = yes; then
3922 if test "$GCC" = yes; then
3923 CFLAGS="-g -O2"
3924 else
3925 CFLAGS="-g"
3926 fi
ac48eca1 3927else
cfbc9945
SE
3928 if test "$GCC" = yes; then
3929 CFLAGS="-O2"
3930 else
3931 CFLAGS=
3932 fi
ac48eca1 3933fi
cfbc9945
SE
3934echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3935echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3936if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3937 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3938else
cfbc9945
SE
3939 ac_cv_prog_cc_stdc=no
3940ac_save_CC=$CC
3941cat >conftest.$ac_ext <<_ACEOF
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
3947#include <stdarg.h>
3948#include <stdio.h>
3949#include <sys/types.h>
3950#include <sys/stat.h>
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955 char **p;
3956 int i;
3957{
3958 return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962 char *s;
3963 va_list v;
3964 va_start (v,p);
3965 s = g (p, va_arg (v,int));
3966 va_end (v);
3967 return s;
3968}
5464f5a1 3969
cfbc9945
SE
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3971 function prototypes and stuff, but not '\xHH' hex character constants.
3972 These don't provoke an error unfortunately, instead are silently treated
3973 as 'x'. The following induces an error, until -std1 is added to get
3974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3975 array size at least. It's necessary to write '\x00'==0 to get something
3976 that's true only with -std1. */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979int test (int i, double x);
3980struct s1 {int (*f) (int a);};
3981struct s2 {int (*f) (double a);};
3982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983int argc;
3984char **argv;
3985int
3986main ()
3987{
3988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993# Don't try gcc -ansi; that turns off useful extensions and
3994# breaks some systems' header files.
3995# AIX -qlanglvl=ansi
3996# Ultrix and OSF/1 -std1
3997# HP-UX 10.20 and later -Ae
3998# HP-UX older versions -Aa -D_HPUX_SOURCE
3999# SVR4 -Xc -D__EXTENSIONS__
4000for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4001do
4002 CC="$ac_save_CC $ac_arg"
4003 rm -f conftest.$ac_objext
4004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4005 (eval $ac_compile) 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag"
4013 || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest.$ac_objext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_prog_cc_stdc=$ac_arg
4026break
ac48eca1 4027else
cfbc9945
SE
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4030
5464f5a1 4031fi
cfbc9945 4032rm -f conftest.err conftest.$ac_objext
5464f5a1 4033done
cfbc9945
SE
4034rm -f conftest.$ac_ext conftest.$ac_objext
4035CC=$ac_save_CC
5464f5a1 4036
ac48eca1 4037fi
252b5132 4038
cfbc9945
SE
4039case "x$ac_cv_prog_cc_stdc" in
4040 x|xno)
4041 echo "$as_me:$LINENO: result: none needed" >&5
4042echo "${ECHO_T}none needed" >&6 ;;
4043 *)
4044 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4045echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4046 CC="$CC $ac_cv_prog_cc_stdc" ;;
4047esac
6be7c12c 4048
cfbc9945
SE
4049# Some people use a C++ compiler to compile C. Since we use `exit',
4050# in C++ we need to declare it. In case someone uses the same compiler
4051# for both compiling C and C++ we need to have the C++ compiler decide
4052# the declaration of exit, since it's the most demanding environment.
4053cat >conftest.$ac_ext <<_ACEOF
4054#ifndef __cplusplus
4055 choke me
4056#endif
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4060 (eval $ac_compile) 2>conftest.er1
5464f5a1 4061 ac_status=$?
cfbc9945
SE
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
5464f5a1 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag"
4068 || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
5464f5a1
NN
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
d70c5fc7
NC
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4079 (exit $ac_status); }; }; then
4080 for ac_declaration in \
4081 '' \
4082 'extern "C" void std::exit (int) throw (); using std::exit;' \
4083 'extern "C" void std::exit (int); using std::exit;' \
4084 'extern "C" void exit (int) throw ();' \
4085 'extern "C" void exit (int);' \
4086 'void exit (int);'
4087do
4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094$ac_declaration
4095#include <stdlib.h>
4096int
4097main ()
4098{
4099exit (42);
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext
4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 :
b2ef150d 4127else
cfbc9945
SE
4128 echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4130
cfbc9945
SE
4131continue
4132fi
4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
cfbc9945 4140$ac_declaration
5464f5a1
NN
4141int
4142main ()
4143{
cfbc9945 4144exit (42);
5464f5a1
NN
4145 ;
4146 return 0;
4147}
4148_ACEOF
cfbc9945
SE
4149rm -f conftest.$ac_objext
4150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
49c96104
SE
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
5464f5a1
NN
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
cfbc9945 4165 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
cfbc9945 4171 break
b2ef150d 4172else
5464f5a1
NN
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
b2ef150d 4176fi
cfbc9945
SE
4177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178done
4179rm -f conftest*
4180if test -n "$ac_declaration"; then
4181 echo '#ifdef __cplusplus' >>confdefs.h
4182 echo $ac_declaration >>confdefs.h
4183 echo '#endif' >>confdefs.h
6ec7057a 4184fi
cfbc9945 4185
92f01d61 4186else
cfbc9945
SE
4187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4189
cfbc9945
SE
4190fi
4191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192ac_ext=c
4193ac_cpp='$CPP $CPPFLAGS'
4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4197
4198
cfbc9945
SE
4199cat >>confdefs.h <<\_ACEOF
4200#define _GNU_SOURCE 1
4201_ACEOF
a1ac8190 4202
c428fa83 4203
cfbc9945 4204
d7040cdb
SE
4205
4206
4207macro_version='2.1a'
4208macro_revision='1.2435'
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221ltmain="$ac_aux_dir/ltmain.sh"
4222
4223# Set options
4224
4225enable_dlopen=no
4226
4227
4228enable_win32_dll=no
4229
4230
4231
cfbc9945
SE
4232# Check whether --enable-static or --disable-static was given.
4233if test "${enable_static+set}" = set; then
4234 enableval="$enable_static"
4235 p=${PACKAGE-default}
d7040cdb
SE
4236 case $enableval in
4237 yes) enable_static=yes ;;
4238 no) enable_static=no ;;
4239 *)
4240 enable_static=no
4241 # Look at the argument we got. We use all the common list separators.
4242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4243 for pkg in $enableval; do
4244 IFS="$lt_save_ifs"
4245 if test "X$pkg" = "X$p"; then
4246 enable_static=yes
4247 fi
4248 done
4249 IFS="$lt_save_ifs"
4250 ;;
4251 esac
c428fa83 4252else
cfbc9945
SE
4253 enable_static=yes
4254fi;
d7040cdb
SE
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264# Check whether --with-pic or --without-pic was given.
4265if test "${with_pic+set}" = set; then
4266 withval="$with_pic"
4267 pic_mode="$withval"
4268else
4269 pic_mode=default
4270fi;
4271
4272test -z "$pic_mode" && pic_mode=default
4273
4274
4275
4276
4277
4278
4279
cfbc9945
SE
4280# Check whether --enable-fast-install or --disable-fast-install was given.
4281if test "${enable_fast_install+set}" = set; then
4282 enableval="$enable_fast_install"
4283 p=${PACKAGE-default}
d7040cdb
SE
4284 case $enableval in
4285 yes) enable_fast_install=yes ;;
4286 no) enable_fast_install=no ;;
4287 *)
4288 enable_fast_install=no
4289 # Look at the argument we got. We use all the common list separators.
4290 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4291 for pkg in $enableval; do
4292 IFS="$lt_save_ifs"
4293 if test "X$pkg" = "X$p"; then
4294 enable_fast_install=yes
4295 fi
4296 done
4297 IFS="$lt_save_ifs"
4298 ;;
4299 esac
cfbc9945
SE
4300else
4301 enable_fast_install=yes
4302fi;
c428fa83 4303
d7040cdb
SE
4304
4305
4306
4307
4308
4309
4310
4311echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4312echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4313if test "${lt_cv_path_SED+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316 # Loop through the user's path and test for sed and gsed.
4317# Then use that list of sed's as ones to test for truncation.
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for lt_ac_prog in sed gsed; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4326 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4327 fi
4328 done
4329 done
4330done
4331IFS=$as_save_IFS
4332lt_ac_max=0
4333lt_ac_count=0
4334# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4335# along with /bin/sed that truncates output.
4336for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4337 test ! -f $lt_ac_sed && continue
4338 cat /dev/null > conftest.in
4339 lt_ac_count=0
4340 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4341 # Check for GNU sed and select it if it is found.
4342 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4343 lt_cv_path_SED=$lt_ac_sed
4344 break
4345 fi
4346 while true; do
4347 cat conftest.in conftest.in >conftest.tmp
4348 mv conftest.tmp conftest.in
4349 cp conftest.in conftest.nl
4350 echo >>conftest.nl
4351 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4352 cmp -s conftest.out conftest.nl || break
4353 # 10000 chars as input seems more than enough
4354 test $lt_ac_count -gt 10 && break
4355 lt_ac_count=`expr $lt_ac_count + 1`
4356 if test $lt_ac_count -gt $lt_ac_max; then
4357 lt_ac_max=$lt_ac_count
4358 lt_cv_path_SED=$lt_ac_sed
4359 fi
4360 done
4361done
4362
4363fi
4364
4365SED=$lt_cv_path_SED
4366
4367echo "$as_me:$LINENO: result: $SED" >&5
4368echo "${ECHO_T}$SED" >&6
4369
4370test -z "$SED" && SED=sed
4371Xsed="$SED -e 1s/^X//"
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383echo "$as_me:$LINENO: checking for egrep" >&5
4384echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4385if test "${ac_cv_prog_egrep+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387else
4388 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4389 then ac_cv_prog_egrep='grep -E'
4390 else ac_cv_prog_egrep='egrep'
4391 fi
4392fi
4393echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4394echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4395 EGREP=$ac_cv_prog_egrep
4396
4397
4398echo "$as_me:$LINENO: checking for fgrep" >&5
4399echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4400if test "${ac_cv_prog_fgrep+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4404 then ac_cv_prog_fgrep='grep -F'
4405 else ac_cv_prog_fgrep='fgrep'
4406 fi
4407fi
4408echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4409echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4410 FGREP=$ac_cv_prog_fgrep
4411
4412
4413test -z "$GREP" && GREP=grep
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
cfbc9945
SE
4433# Check whether --with-gnu-ld or --without-gnu-ld was given.
4434if test "${with_gnu_ld+set}" = set; then
4435 withval="$with_gnu_ld"
4436 test "$withval" = no || with_gnu_ld=yes
4437else
4438 with_gnu_ld=no
c428fa83 4439fi;
cfbc9945
SE
4440ac_prog=ld
4441if test "$GCC" = yes; then
4442 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4443 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4444echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cfbc9945
SE
4445 case $host in
4446 *-*-mingw*)
4447 # gcc leaves a trailing carriage return which upsets mingw
4448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4449 *)
4450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4451 esac
4452 case $ac_prog in
4453 # Accept absolute paths.
d7040cdb 4454 [\\/]* | ?:[\\/]*)
cfbc9945 4455 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4456 # Canonicalize the pathname of ld
4457 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4458 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4459 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
4460 done
4461 test -z "$LD" && LD="$ac_prog"
4462 ;;
5bd8253d 4463 "")
cfbc9945
SE
4464 # If it fails, then pretend we aren't using GCC.
4465 ac_prog=ld
5bd8253d
L
4466 ;;
4467 *)
cfbc9945
SE
4468 # If it is relative, then search for the first ld in PATH.
4469 with_gnu_ld=unknown
5bd8253d 4470 ;;
cfbc9945
SE
4471 esac
4472elif test "$with_gnu_ld" = yes; then
4473 echo "$as_me:$LINENO: checking for GNU ld" >&5
4474echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4475else
4476 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4477echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4478fi
4479if test "${lt_cv_path_LD+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482 if test -z "$LD"; then
d7040cdb 4483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 4484 for ac_dir in $PATH; do
d7040cdb 4485 IFS="$lt_save_ifs"
cfbc9945
SE
4486 test -z "$ac_dir" && ac_dir=.
4487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4488 lt_cv_path_LD="$ac_dir/$ac_prog"
4489 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4490 # but apparently some variants of GNU ld only accept -v.
cfbc9945 4491 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4492 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4493 *GNU* | *'with BFD'*)
cfbc9945 4494 test "$with_gnu_ld" != no && break
d7040cdb
SE
4495 ;;
4496 *)
cfbc9945 4497 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4498 ;;
4499 esac
cfbc9945
SE
4500 fi
4501 done
d7040cdb 4502 IFS="$lt_save_ifs"
cfbc9945
SE
4503else
4504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4505fi
1ad12f97
NC
4506fi
4507
cfbc9945
SE
4508LD="$lt_cv_path_LD"
4509if test -n "$LD"; then
4510 echo "$as_me:$LINENO: result: $LD" >&5
4511echo "${ECHO_T}$LD" >&6
4512else
4513 echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
4515fi
4516test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4517echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4520echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4521if test "${lt_cv_prog_gnu_ld+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
d7040cdb
SE
4524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4525case `$LD -v 2>&1 </dev/null` in
4526*GNU* | *'with BFD'*)
cfbc9945 4527 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4528 ;;
4529*)
cfbc9945 4530 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4531 ;;
4532esac
49c96104 4533fi
cfbc9945
SE
4534echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4535echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4536with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4537
9e9b66a9 4538
cfbc9945 4539
d7040cdb
SE
4540
4541
4542
4543
4544
4545
4546
4547echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4548echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
4549if test "${lt_cv_path_NM+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551else
4552 if test -n "$NM"; then
4553 # Let the user override the test.
4554 lt_cv_path_NM="$NM"
4555else
d7040cdb
SE
4556 lt_nm_to_check="${ac_tool_prefix}nm"
4557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4558 lt_nm_to_check="$lt_nm_to_check nm"
4559 fi
4560 for lt_tmp_nm in $lt_nm_to_check; do
4561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4563 IFS="$lt_save_ifs"
4564 test -z "$ac_dir" && ac_dir=.
4565 tmp_nm="$ac_dir/$lt_tmp_nm"
4566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4567 # Check to see if the nm accepts a BSD-compat flag.
4568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4569 # nm: unknown option "B" ignored
4570 # Tru64's nm complains that /dev/null is an invalid object file
4571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4572 */dev/null* | *'Invalid file or object type'*)
4573 lt_cv_path_NM="$tmp_nm -B"
4574 break
4575 ;;
4576 *)
4577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4578 */dev/null*)
4579 lt_cv_path_NM="$tmp_nm -p"
4580 break
4581 ;;
4582 *)
4583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4584 continue # so that we can try to find one that supports BSD flags
4585 ;;
4586 esac
4587 ;;
4588 esac
cfbc9945 4589 fi
d7040cdb
SE
4590 done
4591 IFS="$lt_save_ifs"
cfbc9945 4592 done
d7040cdb 4593 : ${lt_cv_path_NM=no}
cfbc9945 4594fi
a2d91340 4595fi
d7040cdb
SE
4596echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4597echo "${ECHO_T}$lt_cv_path_NM" >&6
4598if test "$lt_cv_path_NM" != "no"; then
4599 NM="$lt_cv_path_NM"
cfbc9945 4600else
d7040cdb
SE
4601 # Didn't find any BSD compatible name lister, look for dumpbin.
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 4610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4611else
d7040cdb
SE
4612 if test -n "$DUMPBIN"; then
4613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627done
5464f5a1 4628
d7040cdb
SE
4629fi
4630fi
4631DUMPBIN=$ac_cv_prog_DUMPBIN
4632if test -n "$DUMPBIN"; then
4633 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4634echo "${ECHO_T}$DUMPBIN" >&6
4635else
4636 echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6
4638fi
d5fbea21 4639
d7040cdb
SE
4640 test -n "$DUMPBIN" && break
4641 done
4642fi
4643if test -z "$DUMPBIN"; then
4644 ac_ct_DUMPBIN=$DUMPBIN
4645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4646do
4647 # Extract the first word of "$ac_prog", so it can be a program name with args.
4648set dummy $ac_prog; ac_word=$2
4649echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4651if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$ac_ct_DUMPBIN"; then
4655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
cfbc9945 4667 fi
d7040cdb
SE
4668done
4669done
d5fbea21 4670
d7040cdb
SE
4671fi
4672fi
4673ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4674if test -n "$ac_ct_DUMPBIN"; then
4675 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4676echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4677else
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
4680fi
d5fbea21 4681
d7040cdb
SE
4682 test -n "$ac_ct_DUMPBIN" && break
4683done
4684test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 4685
d7040cdb
SE
4686 DUMPBIN=$ac_ct_DUMPBIN
4687fi
24443139 4688
24443139 4689
d7040cdb
SE
4690 if test "$DUMPBIN" != ":"; then
4691 NM="$DUMPBIN"
cfbc9945 4692 fi
d7040cdb
SE
4693fi
4694test -z "$NM" && NM=nm
a703a6ea 4695
f5385ebf 4696
cfbc9945 4697
24443139
AS
4698
4699
4700
d7040cdb
SE
4701echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4702echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4703if test "${lt_cv_nm_interface+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706 lt_cv_nm_interface="BSD nm"
4707 echo "int some_variable = 0;" > conftest.$ac_ext
7a283e07 4708 (eval echo "\"\$as_me:4708: $ac_compile\"" >&5)
d7040cdb
SE
4709 (eval "$ac_compile" 2>conftest.err)
4710 cat conftest.err >&5
7a283e07 4711 (eval echo "\"\$as_me:4711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
4712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4713 cat conftest.err >&5
7a283e07 4714 (eval echo "\"\$as_me:4714: output\"" >&5)
d7040cdb
SE
4715 cat conftest.out >&5
4716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4717 lt_cv_nm_interface="MS dumpbin"
4718 fi
4719 rm -f conftest*
cfbc9945 4720fi
d7040cdb
SE
4721echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4722echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 4723
d7040cdb
SE
4724echo "$as_me:$LINENO: checking whether ln -s works" >&5
4725echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4726LN_S=$as_ln_s
4727if test "$LN_S" = "ln -s"; then
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730else
4731 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4732echo "${ECHO_T}no, using $LN_S" >&6
4733fi
252b5132 4734
cfbc9945
SE
4735# find the maximum length of command line arguments
4736echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4737echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4738if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741 i=0
4742 teststring="ABCD"
5464f5a1 4743
cfbc9945
SE
4744 case $build_os in
4745 msdosdjgpp*)
4746 # On DJGPP, this test can blow up pretty badly due to problems in libc
4747 # (any single argument exceeding 2000 bytes causes a buffer overrun
4748 # during glob expansion). Even if it were fixed, the result of this
4749 # check would be larger than it should be.
4750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4751 ;;
5464f5a1 4752
d7040cdb
SE
4753 gnu*)
4754 # Under GNU Hurd, this test is not required because there is
4755 # no limit to the length of command line arguments.
4756 # Libtool will interpret -1 as no limit whatsoever
4757 lt_cv_sys_max_cmd_len=-1;
4758 ;;
4759
cfbc9945
SE
4760 cygwin* | mingw*)
4761 # On Win9x/ME, this test blows up -- it succeeds, but takes
4762 # about 5 minutes as the teststring grows exponentially.
4763 # Worse, since 9x/ME are not pre-emptively multitasking,
4764 # you end up with a "frozen" computer, even though with patience
4765 # the test eventually succeeds (with a max line length of 256k).
4766 # Instead, let's just punt: use the minimum linelength reported by
4767 # all of the supported platforms: 8192 (on NT/2K/XP).
4768 lt_cv_sys_max_cmd_len=8192;
4769 ;;
5464f5a1 4770
cfbc9945
SE
4771 amigaos*)
4772 # On AmigaOS with pdksh, this test takes hours, literally.
4773 # So we just punt and use a minimum line length of 8192.
4774 lt_cv_sys_max_cmd_len=8192;
4775 ;;
5464f5a1 4776
cfbc9945
SE
4777 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4778 # This has been around since 386BSD, at least. Likely further.
4779 if test -x /sbin/sysctl; then
4780 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4781 elif test -x /usr/sbin/sysctl; then
4782 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4783 else
d7040cdb 4784 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
4785 fi
4786 # And add a safety zone
4787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4789 ;;
d7040cdb
SE
4790
4791 interix*)
4792 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4793 lt_cv_sys_max_cmd_len=196608
4794 ;;
4795
4796 osf*)
4797 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4798 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4799 # nice to cause kernel panics so lets avoid the loop below.
4800 # First set a reasonable default.
4801 lt_cv_sys_max_cmd_len=16384
4802 #
4803 if test -x /sbin/sysconfig; then
4804 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4805 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4806 esac
4807 fi
4808 ;;
4809 sco3.2v5*)
4810 lt_cv_sys_max_cmd_len=102400
4811 ;;
4812 sysv5* | sco5v6* | sysv4.2uw2*)
4813 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4814 if test -n "$kargmax"; then
4815 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4816 else
4817 lt_cv_sys_max_cmd_len=32768
4818 fi
4819 ;;
4820 *)
79887925
L
4821 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4822 if test -n $lt_cv_sys_max_cmd_len; then
4823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4825 else
4826 # Make teststring a little bigger before we do anything with it.
4827 # a 1K string should be a reasonable start.
4828 for i in 1 2 3 4 5 6 7 8 ; do
4829 teststring=$teststring$teststring
4830 done
4831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4832 # If test is not a shell built-in, we'll probably end up computing a
4833 # maximum length that is only half of the actual maximum length, but
4834 # we can't tell.
4835 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4836 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4837 test $i != 17 # 1/2 MB should be enough
4838 do
4839 i=`expr $i + 1`
4840 teststring=$teststring$teststring
4841 done
4842 # Only check the string length outside the loop.
4843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4844 teststring=
4845 # Add a significant safety factor because C++ compilers can tack on
4846 # massive amounts of additional arguments before passing them to the
4847 # linker. It appears as though 1/2 is a usable value.
4848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4849 fi
d7040cdb 4850 ;;
cfbc9945 4851 esac
5464f5a1 4852
252b5132 4853fi
cfbc9945 4854
d7040cdb 4855if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4856 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4857echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4858else
cfbc9945
SE
4859 echo "$as_me:$LINENO: result: none" >&5
4860echo "${ECHO_T}none" >&6
5464f5a1 4861fi
d7040cdb 4862max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4863
cfbc9945 4864
252b5132 4865
cfbc9945 4866
cfbc9945 4867
d7040cdb
SE
4868
4869
4870: ${CP="cp -f"}
4871: ${MV="mv -f"}
4872: ${RM="rm -f"}
4873
4874echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4875echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4876# Try some XSI features
4877xsi_shell=no
4878( _lt_dummy="a/b/c"
4879 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4880 = c,a/b,, ) >/dev/null 2>&1 \
4881 && xsi_shell=yes
4882echo "$as_me:$LINENO: result: $xsi_shell" >&5
4883echo "${ECHO_T}$xsi_shell" >&6
4884
4885
4886echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4887echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4888lt_shell_append=no
4889( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4890 >/dev/null 2>&1 \
4891 && lt_shell_append=yes
4892echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4893echo "${ECHO_T}$lt_shell_append" >&6
4894
4895
4896if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4897 lt_unset=unset
5464f5a1 4898else
d7040cdb 4899 lt_unset=false
5464f5a1 4900fi
252b5132 4901
d7040cdb
SE
4902
4903
4904
4905
4906# test EBCDIC or ASCII
4907case `echo X|tr X '\101'` in
4908 A) # ASCII based system
4909 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4910 lt_SP2NL='tr \040 \012'
4911 lt_NL2SP='tr \015\012 \040\040'
4912 ;;
4913 *) # EBCDIC based system
4914 lt_SP2NL='tr \100 \n'
4915 lt_NL2SP='tr \r\n \100\100'
4916 ;;
4917esac
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4928echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4929if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
d7040cdb
SE
4932 lt_cv_ld_reload_flag='-r'
4933fi
4934echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4935echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4936reload_flag=$lt_cv_ld_reload_flag
4937case $reload_flag in
4938"" | " "*) ;;
4939*) reload_flag=" $reload_flag" ;;
4940esac
4941reload_cmds='$LD$reload_flag -o $output$reload_objs'
4942case $host_os in
4943 darwin*)
4944 if test "$GCC" = yes; then
4945 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4946 else
4947 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4948 fi
4949 ;;
4950esac
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4962echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4963if test "${lt_cv_deplibs_check_method+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966 lt_cv_file_magic_cmd='$MAGIC_CMD'
4967lt_cv_file_magic_test_file=
4968lt_cv_deplibs_check_method='unknown'
4969# Need to set the preceding variable on all platforms that support
4970# interlibrary dependencies.
4971# 'none' -- dependencies not supported.
4972# `unknown' -- same as none, but documents that we really don't know.
4973# 'pass_all' -- all dependencies passed with no checks.
4974# 'test_compile' -- check by making test program.
4975# 'file_magic [[regex]]' -- check by looking for files in library path
4976# which responds to the $file_magic_cmd with a given extended regex.
4977# If you have `file' or equivalent on your system and you're not sure
4978# whether `pass_all' will *always* work, you probably want this one.
4979
4980case $host_os in
e81819a5 4981aix[4-9]*)
d7040cdb
SE
4982 lt_cv_deplibs_check_method=pass_all
4983 ;;
4984
4985beos*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989bsdi[45]*)
4990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4991 lt_cv_file_magic_cmd='/usr/bin/file -L'
4992 lt_cv_file_magic_test_file=/shlib/libc.so
4993 ;;
4994
4995cygwin*)
4996 # func_win32_libid is a shell function defined in ltmain.sh
4997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4998 lt_cv_file_magic_cmd='func_win32_libid'
4999 ;;
5000
5001mingw* | pw32*)
5002 # Base MSYS/MinGW do not provide the 'file' command needed by
5003 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5004 # unless we find 'file', for example because we are cross-compiling.
5005 if ( file / ) >/dev/null 2>&1; then
5006 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5007 lt_cv_file_magic_cmd='func_win32_libid'
5008 else
5009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5010 lt_cv_file_magic_cmd='$OBJDUMP -f'
5011 fi
5012 ;;
5013
5014darwin* | rhapsody*)
5015 lt_cv_deplibs_check_method=pass_all
cfbc9945 5016 ;;
d7040cdb
SE
5017
5018freebsd* | dragonfly*)
5019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5020 case $host_cpu in
5021 i*86 )
5022 # Not sure whether the presence of OpenBSD here was a mistake.
5023 # Let's accept both of them until this is cleared up.
5024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5025 lt_cv_file_magic_cmd=/usr/bin/file
5026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5027 ;;
5028 esac
5029 else
5030 lt_cv_deplibs_check_method=pass_all
5031 fi
5032 ;;
5033
5034gnu*)
5035 lt_cv_deplibs_check_method=pass_all
cfbc9945 5036 ;;
d7040cdb
SE
5037
5038hpux10.20* | hpux11*)
5039 lt_cv_file_magic_cmd=/usr/bin/file
5040 case $host_cpu in
5041 ia64*)
5042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5044 ;;
5045 hppa*64*)
5046 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]'
5047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5048 ;;
cfbc9945 5049 *)
d7040cdb
SE
5050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5052 ;;
5053 esac
5054 ;;
6be7c12c 5055
d7040cdb
SE
5056interix[3-9]*)
5057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5059 ;;
cfbc9945 5060
d7040cdb
SE
5061irix5* | irix6* | nonstopux*)
5062 case $LD in
5063 *-32|*"-32 ") libmagic=32-bit;;
5064 *-n32|*"-n32 ") libmagic=N32;;
5065 *-64|*"-64 ") libmagic=64-bit;;
5066 *) libmagic=never-match;;
5067 esac
5068 lt_cv_deplibs_check_method=pass_all
cfbc9945 5069 ;;
cfbc9945 5070
d7040cdb
SE
5071# This must be Linux ELF.
5072linux* | k*bsd*-gnu)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
5464f5a1 5075
d7040cdb
SE
5076netbsd*)
5077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5079 else
d7040cdb 5080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5081 fi
d7040cdb
SE
5082 ;;
5083
5084newos6*)
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5086 lt_cv_file_magic_cmd=/usr/bin/file
5087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5088 ;;
5089
5090*nto* | *qnx*)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
cfbc9945 5093
d7040cdb
SE
5094openbsd*)
5095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5097 else
5098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5099 fi
5100 ;;
d7040cdb
SE
5101
5102osf3* | osf4* | osf5*)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
5105
5106rdos*)
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
5110solaris*)
5111 lt_cv_deplibs_check_method=pass_all
5112 ;;
5113
5114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5115 lt_cv_deplibs_check_method=pass_all
5116 ;;
5117
5118sysv4 | sysv4.3*)
5119 case $host_vendor in
5120 motorola)
5121 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]'
5122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5123 ;;
5124 ncr)
5125 lt_cv_deplibs_check_method=pass_all
5126 ;;
5127 sequent)
5128 lt_cv_file_magic_cmd='/bin/file'
5129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5130 ;;
5131 sni)
5132 lt_cv_file_magic_cmd='/bin/file'
5133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5134 lt_cv_file_magic_test_file=/lib/libc.so
5135 ;;
5136 siemens)
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139 pc)
5140 lt_cv_deplibs_check_method=pass_all
5141 ;;
5142 esac
5143 ;;
5144
5145tpf*)
5146 lt_cv_deplibs_check_method=pass_all
5147 ;;
cfbc9945
SE
5148esac
5149
d7040cdb
SE
5150fi
5151echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5152echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5153file_magic_cmd=$lt_cv_file_magic_cmd
5154deplibs_check_method=$lt_cv_deplibs_check_method
5155test -z "$deplibs_check_method" && deplibs_check_method=unknown
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
cfbc9945 5168if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5170set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5173if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
d7040cdb
SE
5176 if test -n "$AR"; then
5177 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5186 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191done
5192
5193fi
5194fi
d7040cdb
SE
5195AR=$ac_cv_prog_AR
5196if test -n "$AR"; then
5197 echo "$as_me:$LINENO: result: $AR" >&5
5198echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5199else
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202fi
5203
5464f5a1 5204fi
d7040cdb
SE
5205if test -z "$ac_cv_prog_AR"; then
5206 ac_ct_AR=$AR
5207 # Extract the first word of "ar", so it can be a program name with args.
5208set dummy ar; ac_word=$2
5464f5a1
NN
5209echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5211if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5212 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5213else
d7040cdb
SE
5214 if test -n "$ac_ct_AR"; then
5215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5216else
5464f5a1
NN
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5224 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229done
5230
d7040cdb 5231 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5232fi
5233fi
d7040cdb
SE
5234ac_ct_AR=$ac_cv_prog_ac_ct_AR
5235if test -n "$ac_ct_AR"; then
5236 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5237echo "${ECHO_T}$ac_ct_AR" >&6
5238else
5239 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5240echo "${ECHO_T}no" >&6
5241fi
5242
d7040cdb 5243 AR=$ac_ct_AR
cfbc9945 5244else
d7040cdb 5245 AR="$ac_cv_prog_AR"
5464f5a1 5246fi
cfbc9945 5247
d7040cdb
SE
5248test -z "$AR" && AR=ar
5249test -z "$AR_FLAGS" && AR_FLAGS=cru
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
cfbc9945
SE
5261if test -n "$ac_tool_prefix"; then
5262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5263set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5264echo "$as_me:$LINENO: checking for $ac_word" >&5
5265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5266if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
cfbc9945
SE
5269 if test -n "$STRIP"; then
5270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5271else
5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273for as_dir in $PATH
5274do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283done
5284done
5285
5286fi
5287fi
cfbc9945
SE
5288STRIP=$ac_cv_prog_STRIP
5289if test -n "$STRIP"; then
5290 echo "$as_me:$LINENO: result: $STRIP" >&5
5291echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5292else
5293 echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295fi
5296
252b5132 5297fi
cfbc9945
SE
5298if test -z "$ac_cv_prog_STRIP"; then
5299 ac_ct_STRIP=$STRIP
5300 # Extract the first word of "strip", so it can be a program name with args.
5301set dummy strip; ac_word=$2
5464f5a1
NN
5302echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5304if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
cfbc9945
SE
5307 if test -n "$ac_ct_STRIP"; then
5308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5317 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
5323
cfbc9945 5324 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5325fi
5326fi
cfbc9945
SE
5327ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5328if test -n "$ac_ct_STRIP"; then
5329 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5330echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5331else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334fi
5335
cfbc9945
SE
5336 STRIP=$ac_ct_STRIP
5337else
5338 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5339fi
5340
d7040cdb 5341test -z "$STRIP" && STRIP=:
5464f5a1 5342
cfbc9945
SE
5343
5344
cfbc9945 5345
cfbc9945
SE
5346
5347
d7040cdb
SE
5348if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351echo "$as_me:$LINENO: checking for $ac_word" >&5
5352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5353if test "${ac_cv_prog_RANLIB+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5355else
d7040cdb
SE
5356 if test -n "$RANLIB"; then
5357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
cfbc9945 5369 fi
d7040cdb
SE
5370done
5371done
cfbc9945 5372
d7040cdb
SE
5373fi
5374fi
5375RANLIB=$ac_cv_prog_RANLIB
5376if test -n "$RANLIB"; then
5377 echo "$as_me:$LINENO: result: $RANLIB" >&5
5378echo "${ECHO_T}$RANLIB" >&6
5379else
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382fi
cfbc9945 5383
d7040cdb
SE
5384fi
5385if test -z "$ac_cv_prog_RANLIB"; then
5386 ac_ct_RANLIB=$RANLIB
5387 # Extract the first word of "ranlib", so it can be a program name with args.
5388set dummy ranlib; ac_word=$2
5389echo "$as_me:$LINENO: checking for $ac_word" >&5
5390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394 if test -n "$ac_ct_RANLIB"; then
5395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_ac_ct_RANLIB="ranlib"
5405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
cfbc9945 5407 fi
d7040cdb
SE
5408done
5409done
cfbc9945 5410
d7040cdb
SE
5411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5412fi
5413fi
5414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5415if test -n "$ac_ct_RANLIB"; then
5416 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5417echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5418else
d7040cdb
SE
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
5421fi
5464f5a1 5422
d7040cdb
SE
5423 RANLIB=$ac_ct_RANLIB
5424else
5425 RANLIB="$ac_cv_prog_RANLIB"
5426fi
5464f5a1 5427
d7040cdb 5428test -z "$RANLIB" && RANLIB=:
5464f5a1 5429
5464f5a1 5430
5464f5a1 5431
cfbc9945 5432
cfbc9945 5433
d7040cdb
SE
5434
5435# Determine commands to create old-style static archives.
5436old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5437old_postinstall_cmds='chmod 644 $oldlib'
5438old_postuninstall_cmds=
5439
5440if test -n "$RANLIB"; then
5441 case $host_os in
5442 openbsd*)
5443 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5444 ;;
5445 *)
5446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5447 ;;
5448 esac
5449 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 5450fi
cfbc9945
SE
5451
5452
cfbc9945
SE
5453
5454
cfbc9945 5455
cfbc9945 5456
cfbc9945 5457
cfbc9945 5458
cfbc9945
SE
5459
5460
cfbc9945 5461
cfbc9945 5462
cfbc9945
SE
5463
5464
5465
5466
5467
5468
5469
5464f5a1 5470
5464f5a1 5471
cfbc9945
SE
5472
5473
5474
5464f5a1 5475
5464f5a1 5476
cfbc9945
SE
5477
5478
5479
5464f5a1 5480
cfbc9945
SE
5481
5482
5483
5484
d7040cdb
SE
5485# If no C compiler was specified, use CC.
5486LTCC=${LTCC-"$CC"}
cfbc9945 5487
d7040cdb
SE
5488# If no C compiler flags were specified, use CFLAGS.
5489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5490
d7040cdb
SE
5491# Allow CC to be a program name with arguments.
5492compiler=$CC
cfbc9945 5493
cfbc9945 5494
d7040cdb
SE
5495# Check for command to grab the raw symbol name followed by C symbol from nm.
5496echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5497echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5498if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5464f5a1 5501
d7040cdb
SE
5502# These are sane defaults that work on at least a few old systems.
5503# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 5504
d7040cdb
SE
5505# Character class describing NM global symbol codes.
5506symcode='[BCDEGRST]'
5507
5508# Regexp to match symbols that can be accessed directly from C.
5509sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5510
5511# Define system-specific variables.
5512case $host_os in
5513aix*)
5514 symcode='[BCDT]'
5515 ;;
5516cygwin* | mingw* | pw32*)
5517 symcode='[ABCDGISTW]'
5518 ;;
5519hpux*)
5520 if test "$host_cpu" = ia64; then
5521 symcode='[ABCDEGRST]'
5522 fi
5523 ;;
5524irix* | nonstopux*)
5525 symcode='[BCDEGRST]'
5526 ;;
5527osf*)
5528 symcode='[BCDEGQRST]'
5529 ;;
5530solaris*)
5531 symcode='[BDRT]'
5532 ;;
5533sco3.2v5*)
5534 symcode='[DT]'
5535 ;;
5536sysv4.2uw2*)
5537 symcode='[DT]'
5538 ;;
5539sysv5* | sco5v6* | unixware* | OpenUNIX*)
5540 symcode='[ABDT]'
5541 ;;
5542sysv4)
5543 symcode='[DFNSTU]'
5544 ;;
cfbc9945 5545esac
5464f5a1 5546
d7040cdb
SE
5547# If we're using GNU nm, then use its standard symbol codes.
5548case `$NM -V 2>&1` in
5549*GNU* | *'with BFD'*)
5550 symcode='[ABCDGIRSTW]' ;;
5551esac
5464f5a1 5552
d7040cdb
SE
5553# Transform an extracted symbol line into a proper C declaration.
5554# Some systems (esp. on ia64) link data and code symbols differently,
5555# so use this general approach.
5556lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5557
d7040cdb
SE
5558# Transform an extracted symbol line into symbol name and symbol address
5559lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5560
d7040cdb
SE
5561# Handle CRLF in mingw tool chain
5562opt_cr=
5563case $build_os in
5564mingw*)
5565 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5566 ;;
5567esac
5464f5a1 5568
d7040cdb
SE
5569# Try without a prefix underscore, then with it.
5570for ac_symprfx in "" "_"; do
5571
5572 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5573 symxfrm="\\1 $ac_symprfx\\2 \\2"
5574
5575 # Write the raw and C identifiers.
5576 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5577 # Fake it for dumpbin and say T for any non-static function
5578 # and D for any global variable.
5579 # Also find C++ and __fastcall symbols from MSVC++,
5580 # which start with @ or ?.
5581 lt_cv_sys_global_symbol_pipe="$AWK '"\
5582" {last_section=section; section=\$ 3};"\
5583" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5584" \$ 0!~/External *\|/{next};"\
5585" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5586" {if(hide[section]) next};"\
5587" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5588" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5589" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5590" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5591" ' prfx=^$ac_symprfx"
5592 else
5593 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5594 fi
cfbc9945 5595
d7040cdb
SE
5596 # Check to see that the pipe works correctly.
5597 pipe_works=no
cfbc9945 5598
d7040cdb
SE
5599 rm -f conftest*
5600 cat > conftest.$ac_ext <<_LT_EOF
5601#ifdef __cplusplus
5602extern "C" {
5603#endif
5604char nm_test_var;
5605void nm_test_func(void);
5606void nm_test_func(void){}
5607#ifdef __cplusplus
5608}
5609#endif
5610int main(){nm_test_var='a';nm_test_func();return(0);}
5611_LT_EOF
cfbc9945 5612
d7040cdb
SE
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614 (eval $ac_compile) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; then
5618 # Now try to grab the symbols.
5619 nlist=conftest.nm
5620 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5621 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && test -s "$nlist"; then
5625 # Try sorting and uniquifying the output.
5626 if sort "$nlist" | uniq > "$nlist"T; then
5627 mv -f "$nlist"T "$nlist"
5628 else
5629 rm -f "$nlist"T
5630 fi
cfbc9945 5631
d7040cdb
SE
5632 # Make sure that we snagged all the symbols we need.
5633 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5634 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5635 cat <<_LT_EOF > conftest.$ac_ext
5636#ifdef __cplusplus
5637extern "C" {
5638#endif
cfbc9945 5639
d7040cdb
SE
5640_LT_EOF
5641 # Now generate the symbol file.
5642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 5643
d7040cdb 5644 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5645
d7040cdb
SE
5646/* The mapping between symbol names and symbols. */
5647const struct {
5648 const char *name;
5649 void *address;
5650}
5651lt__PROGRAM__LTX_preloaded_symbols[] =
5652{
5653 { "@PROGRAM@", (void *) 0 },
5654_LT_EOF
5655 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5656 cat <<\_LT_EOF >> conftest.$ac_ext
5657 {0, (void *) 0}
5658};
5659
5660/* This works around a problem in FreeBSD linker */
5661#ifdef FREEBSD_WORKAROUND
5662static const void *lt_preloaded_setup() {
5663 return lt__PROGRAM__LTX_preloaded_symbols;
5664}
5665#endif
cfbc9945 5666
d7040cdb
SE
5667#ifdef __cplusplus
5668}
5669#endif
5670_LT_EOF
5671 # Now try linking the two files.
5672 mv conftest.$ac_objext conftstm.$ac_objext
5673 lt_save_LIBS="$LIBS"
5674 lt_save_CFLAGS="$CFLAGS"
5675 LIBS="conftstm.$ac_objext"
5676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5682 pipe_works=yes
5683 fi
5684 LIBS="$lt_save_LIBS"
5685 CFLAGS="$lt_save_CFLAGS"
5686 else
5687 echo "cannot find nm_test_func in $nlist" >&5
5688 fi
5689 else
5690 echo "cannot find nm_test_var in $nlist" >&5
5691 fi
5692 else
5693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5694 fi
5695 else
5696 echo "$progname: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5698 fi
5699 rm -f conftest* conftst*
cfbc9945 5700
d7040cdb
SE
5701 # Do not use the global_symbol_pipe unless it works.
5702 if test "$pipe_works" = yes; then
5703 break
5704 else
5705 lt_cv_sys_global_symbol_pipe=
5706 fi
5707done
cfbc9945 5708
252b5132 5709fi
5464f5a1 5710
d7040cdb
SE
5711if test -z "$lt_cv_sys_global_symbol_pipe"; then
5712 lt_cv_sys_global_symbol_to_cdecl=
5713fi
5714if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5715 echo "$as_me:$LINENO: result: failed" >&5
5716echo "${ECHO_T}failed" >&6
b3baf5d0 5717else
d7040cdb
SE
5718 echo "$as_me:$LINENO: result: ok" >&5
5719echo "${ECHO_T}ok" >&6
5720fi
5464f5a1 5721
cfbc9945 5722
b3baf5d0 5723
cfbc9945
SE
5724
5725
5726
5727
5464f5a1 5728
4a2a2686
HPN
5729
5730
5731
cfbc9945
SE
5732
5733
cfbc9945 5734
cfbc9945 5735
9d7cbccd 5736
20e95c23 5737
d7040cdb
SE
5738# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5739if test "${enable_libtool_lock+set}" = set; then
5740 enableval="$enable_libtool_lock"
20e95c23 5741
d7040cdb
SE
5742fi;
5743test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5744
d7040cdb
SE
5745# Some flags need to be propagated to the compiler or linker for good
5746# libtool support.
5747case $host in
5748ia64-*-hpux*)
5749 # Find out which ABI we are using.
5750 echo 'int i;' > conftest.$ac_ext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; then
5756 case `/usr/bin/file conftest.$ac_objext` in
5757 *ELF-32*)
5758 HPUX_IA64_MODE="32"
5759 ;;
5760 *ELF-64*)
5761 HPUX_IA64_MODE="64"
5762 ;;
20e95c23 5763 esac
d7040cdb
SE
5764 fi
5765 rm -rf conftest*
5766 ;;
5767*-*-irix6*)
5768 # Find out which ABI we are using.
7a283e07 5769 echo '#line 5769 "configure"' > conftest.$ac_ext
d7040cdb
SE
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; then
5775 if test "$lt_cv_prog_gnu_ld" = yes; then
5776 case `/usr/bin/file conftest.$ac_objext` in
5777 *32-bit*)
5778 LD="${LD-ld} -melf32bsmip"
5779 ;;
5780 *N32*)
5781 LD="${LD-ld} -melf32bmipn32"
5782 ;;
5783 *64-bit*)
5784 LD="${LD-ld} -melf64bmip"
5785 ;;
5786 esac
20e95c23 5787 else
d7040cdb
SE
5788 case `/usr/bin/file conftest.$ac_objext` in
5789 *32-bit*)
5790 LD="${LD-ld} -32"
5791 ;;
5792 *N32*)
5793 LD="${LD-ld} -n32"
5794 ;;
5795 *64-bit*)
5796 LD="${LD-ld} -64"
5797 ;;
20e95c23
DJ
5798 esac
5799 fi
d7040cdb
SE
5800 fi
5801 rm -rf conftest*
5802 ;;
20e95c23 5803
d7040cdb
SE
5804x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5805s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5806 # Find out which ABI we are using.
5807 echo 'int i;' > conftest.$ac_ext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; then
5813 case `/usr/bin/file conftest.o` in
5814 *32-bit*)
5815 case $host in
5816 x86_64-*kfreebsd*-gnu)
5817 LD="${LD-ld} -m elf_i386_fbsd"
5818 ;;
5819 x86_64-*linux*)
5820 LD="${LD-ld} -m elf_i386"
5821 ;;
5822 ppc64-*linux*|powerpc64-*linux*)
5823 LD="${LD-ld} -m elf32ppclinux"
5824 ;;
5825 s390x-*linux*)
5826 LD="${LD-ld} -m elf_s390"
5827 ;;
5828 sparc64-*linux*)
5829 LD="${LD-ld} -m elf32_sparc"
5830 ;;
5831 esac
5832 ;;
5833 *64-bit*)
5834 case $host in
5835 x86_64-*kfreebsd*-gnu)
5836 LD="${LD-ld} -m elf_x86_64_fbsd"
5837 ;;
5838 x86_64-*linux*)
5839 LD="${LD-ld} -m elf_x86_64"
5840 ;;
5841 ppc*-*linux*|powerpc*-*linux*)
5842 LD="${LD-ld} -m elf64ppc"
5843 ;;
5844 s390*-*linux*|s390*-*tpf*)
5845 LD="${LD-ld} -m elf64_s390"
5846 ;;
5847 sparc*-*linux*)
5848 LD="${LD-ld} -m elf64_sparc"
5849 ;;
5850 esac
5851 ;;
20e95c23
DJ
5852 esac
5853 fi
d7040cdb
SE
5854 rm -rf conftest*
5855 ;;
20e95c23 5856
d7040cdb
SE
5857*-*-sco3.2v5*)
5858 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5859 SAVE_CFLAGS="$CFLAGS"
5860 CFLAGS="$CFLAGS -belf"
5861 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5862echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5863if test "${lt_cv_cc_needs_belf+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5865else
d7040cdb
SE
5866 ac_ext=c
5867ac_cpp='$CPP $CPPFLAGS'
5868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5870ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5871
d7040cdb
SE
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
20e95c23 5878
d7040cdb
SE
5879int
5880main ()
5881{
20e95c23 5882
d7040cdb
SE
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext conftest$ac_exeext
5888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889 (eval $ac_link) 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag"
5897 || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 (eval $ac_try) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 (eval $ac_try) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 lt_cv_cc_needs_belf=yes
5910else
5911 echo "$as_me: failed program was:" >&5
5912sed 's/^/| /' conftest.$ac_ext >&5
5913
5914lt_cv_cc_needs_belf=no
5915fi
5916rm -f conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5918 ac_ext=c
5919ac_cpp='$CPP $CPPFLAGS'
5920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922ac_compiler_gnu=$ac_cv_c_compiler_gnu
5923
5924fi
5925echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5926echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5929 CFLAGS="$SAVE_CFLAGS"
5930 fi
5931 ;;
5932sparc*-*solaris*)
5933 # Find out which ABI we are using.
5934 echo 'int i;' > conftest.$ac_ext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; then
5940 case `/usr/bin/file conftest.o` in
5941 *64-bit*)
5942 case $lt_cv_prog_gnu_ld in
5943 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5944 *) LD="${LD-ld} -64" ;;
5945 esac
5946 ;;
5947 esac
5948 fi
5949 rm -rf conftest*
5950 ;;
5951esac
5952
5953need_locks="$enable_libtool_lock"
5954
5955ac_ext=c
5956ac_cpp='$CPP $CPPFLAGS'
5957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5961echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5962# On Suns, sometimes $CPP names a directory.
5963if test -n "$CPP" && test -d "$CPP"; then
5964 CPP=
5965fi
5966if test -z "$CPP"; then
5967 if test "${ac_cv_prog_CPP+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970 # Double quotes because CPP needs to be expanded
5971 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5972 do
5973 ac_preproc_ok=false
5974for ac_c_preproc_warn_flag in '' yes
5975do
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
5982 cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h. */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h. */
5988#ifdef __STDC__
5989# include <limits.h>
5990#else
5991# include <assert.h>
5992#endif
5993 Syntax error
5994_ACEOF
5995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } >/dev/null; then
6003 if test -s conftest.err; then
6004 ac_cpp_err=$ac_c_preproc_warn_flag
6005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6006 else
6007 ac_cpp_err=
6008 fi
6009else
6010 ac_cpp_err=yes
6011fi
6012if test -z "$ac_cpp_err"; then
6013 :
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 # Broken: fails on valid input.
6019continue
6020fi
6021rm -f conftest.err conftest.$ac_ext
6022
6023 # OK, works on sane cases. Now check whether non-existent headers
6024 # can be detected and how.
6025 cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h. */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h. */
6031#include <ac_nonexistent.h>
6032_ACEOF
6033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null; then
6041 if test -s conftest.err; then
6042 ac_cpp_err=$ac_c_preproc_warn_flag
6043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6044 else
6045 ac_cpp_err=
6046 fi
6047else
6048 ac_cpp_err=yes
6049fi
6050if test -z "$ac_cpp_err"; then
6051 # Broken: success on invalid input.
6052continue
6053else
6054 echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 # Passes both tests.
6058ac_preproc_ok=:
6059break
6060fi
6061rm -f conftest.err conftest.$ac_ext
6062
6063done
6064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065rm -f conftest.err conftest.$ac_ext
6066if $ac_preproc_ok; then
6067 break
6068fi
6069
6070 done
6071 ac_cv_prog_CPP=$CPP
6072
6073fi
6074 CPP=$ac_cv_prog_CPP
6075else
6076 ac_cv_prog_CPP=$CPP
6077fi
6078echo "$as_me:$LINENO: result: $CPP" >&5
6079echo "${ECHO_T}$CPP" >&6
6080ac_preproc_ok=false
6081for ac_c_preproc_warn_flag in '' yes
6082do
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 # <limits.h> exists even on freestanding compilers.
6087 # On the NeXT, cc -E runs the code through the compiler's parser,
6088 # not just through cpp. "Syntax error" is here to catch this case.
6089 cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h. */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h. */
6095#ifdef __STDC__
6096# include <limits.h>
6097#else
6098# include <assert.h>
6099#endif
6100 Syntax error
6101_ACEOF
6102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104 ac_status=$?
6105 grep -v '^ *+' conftest.er1 >conftest.err
6106 rm -f conftest.er1
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } >/dev/null; then
6110 if test -s conftest.err; then
6111 ac_cpp_err=$ac_c_preproc_warn_flag
6112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6113 else
6114 ac_cpp_err=
6115 fi
6116else
6117 ac_cpp_err=yes
6118fi
6119if test -z "$ac_cpp_err"; then
6120 :
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 # Broken: fails on valid input.
6126continue
6127fi
6128rm -f conftest.err conftest.$ac_ext
6129
6130 # OK, works on sane cases. Now check whether non-existent headers
6131 # can be detected and how.
6132 cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h. */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h. */
6138#include <ac_nonexistent.h>
6139_ACEOF
6140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } >/dev/null; then
6148 if test -s conftest.err; then
6149 ac_cpp_err=$ac_c_preproc_warn_flag
6150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6151 else
6152 ac_cpp_err=
6153 fi
6154else
6155 ac_cpp_err=yes
6156fi
6157if test -z "$ac_cpp_err"; then
6158 # Broken: success on invalid input.
6159continue
6160else
6161 echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 # Passes both tests.
6165ac_preproc_ok=:
6166break
6167fi
6168rm -f conftest.err conftest.$ac_ext
6169
6170done
6171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6172rm -f conftest.err conftest.$ac_ext
6173if $ac_preproc_ok; then
6174 :
6175else
7a283e07
RW
6176 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6177echo "$as_me: error: in \`$ac_pwd':" >&2;}
6178{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d7040cdb
SE
6179See \`config.log' for more details." >&5
6180echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6181See \`config.log' for more details." >&2;}
7a283e07 6182 { (exit 1); exit 1; }; }; }
d7040cdb
SE
6183fi
6184
6185ac_ext=c
6186ac_cpp='$CPP $CPPFLAGS'
6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191
6192echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6193echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6194if test "${ac_cv_header_stdc+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 cat >conftest.$ac_ext <<_ACEOF
6198/* confdefs.h. */
6199_ACEOF
6200cat confdefs.h >>conftest.$ac_ext
6201cat >>conftest.$ac_ext <<_ACEOF
6202/* end confdefs.h. */
6203#include <stdlib.h>
6204#include <stdarg.h>
6205#include <string.h>
6206#include <float.h>
6207
6208int
6209main ()
6210{
6211
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216rm -f conftest.$ac_objext
6217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 (eval $ac_try) 2>&5
6235 ac_status=$?
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_header_stdc=yes
6239else
6240 echo "$as_me: failed program was:" >&5
6241sed 's/^/| /' conftest.$ac_ext >&5
6242
6243ac_cv_header_stdc=no
6244fi
6245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6246
6247if test $ac_cv_header_stdc = yes; then
6248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255#include <string.h>
6256
6257_ACEOF
6258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6259 $EGREP "memchr" >/dev/null 2>&1; then
6260 :
6261else
6262 ac_cv_header_stdc=no
6263fi
6264rm -f conftest*
6265
6266fi
6267
6268if test $ac_cv_header_stdc = yes; then
6269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6270 cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h. */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h. */
6276#include <stdlib.h>
6277
6278_ACEOF
6279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "free" >/dev/null 2>&1; then
6281 :
6282else
6283 ac_cv_header_stdc=no
6284fi
6285rm -f conftest*
6286
6287fi
6288
6289if test $ac_cv_header_stdc = yes; then
6290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6291 if test "$cross_compiling" = yes; then
6292 :
6293else
6294 cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h. */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h. */
6300#include <ctype.h>
6301#if ((' ' & 0x0FF) == 0x020)
6302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6304#else
6305# define ISLOWER(c) \
6306 (('a' <= (c) && (c) <= 'i') \
6307 || ('j' <= (c) && (c) <= 'r') \
6308 || ('s' <= (c) && (c) <= 'z'))
6309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6310#endif
6311
6312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6313int
6314main ()
6315{
6316 int i;
6317 for (i = 0; i < 256; i++)
6318 if (XOR (islower (i), ISLOWER (i))
6319 || toupper (i) != TOUPPER (i))
6320 exit(2);
6321 exit (0);
6322}
6323_ACEOF
6324rm -f conftest$ac_exeext
6325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 :
6336else
6337 echo "$as_me: program exited with status $ac_status" >&5
6338echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341( exit $ac_status )
6342ac_cv_header_stdc=no
6343fi
6344rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6345fi
6346fi
6347fi
6348echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6349echo "${ECHO_T}$ac_cv_header_stdc" >&6
6350if test $ac_cv_header_stdc = yes; then
6351
6352cat >>confdefs.h <<\_ACEOF
6353#define STDC_HEADERS 1
6354_ACEOF
6355
6356fi
6357
6358# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6369 inttypes.h stdint.h unistd.h
6370do
6371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6372echo "$as_me:$LINENO: checking for $ac_header" >&5
6373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6374if eval "test \"\${$as_ac_Header+set}\" = set"; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h. */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h. */
6383$ac_includes_default
6384
6385#include <$ac_header>
6386_ACEOF
6387rm -f conftest.$ac_objext
6388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 eval "$as_ac_Header=yes"
6410else
6411 echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414eval "$as_ac_Header=no"
6415fi
6416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417fi
6418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6420if test `eval echo '${'$as_ac_Header'}'` = yes; then
6421 cat >>confdefs.h <<_ACEOF
6422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6423_ACEOF
6424
6425fi
6426
6427done
6428
6429
6430
6431for ac_header in dlfcn.h
6432do
6433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434echo "$as_me:$LINENO: checking for $ac_header" >&5
6435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6436if eval "test \"\${$as_ac_Header+set}\" = set"; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439 cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445$ac_includes_default
6446
6447#include <$ac_header>
6448_ACEOF
6449rm -f conftest.$ac_objext
6450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 eval "$as_ac_Header=yes"
6472else
6473 echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476eval "$as_ac_Header=no"
6477fi
6478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479fi
6480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6482if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483 cat >>confdefs.h <<_ACEOF
6484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6485_ACEOF
6486
6487fi
6488
6489done
6490
6491
6492
6493# This can be used to rebuild libtool when needed
6494LIBTOOL_DEPS="$ltmain"
6495
6496# Always use our own libtool.
6497LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523test -z "$LN_S" && LN_S="ln -s"
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538if test -n "${ZSH_VERSION+set}" ; then
6539 setopt NO_GLOB_SUBST
6540fi
6541
6542echo "$as_me:$LINENO: checking for objdir" >&5
6543echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6544if test "${lt_cv_objdir+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 rm -f .libs 2>/dev/null
6548mkdir .libs 2>/dev/null
6549if test -d .libs; then
6550 lt_cv_objdir=.libs
6551else
6552 # MS-DOS does not allow filenames that begin with a dot.
6553 lt_cv_objdir=_libs
6554fi
6555rmdir .libs 2>/dev/null
6556fi
6557echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6558echo "${ECHO_T}$lt_cv_objdir" >&6
6559objdir=$lt_cv_objdir
6560
6561
6562
6563
6564
6565cat >>confdefs.h <<_ACEOF
6566#define LT_OBJDIR "$lt_cv_objdir/"
6567_ACEOF
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585case $host_os in
6586aix3*)
6587 # AIX sometimes has problems with the GCC collect2 program. For some
6588 # reason, if we set the COLLECT_NAMES environment variable, the problems
6589 # vanish in a puff of smoke.
6590 if test "X${COLLECT_NAMES+set}" != Xset; then
6591 COLLECT_NAMES=
6592 export COLLECT_NAMES
6593 fi
6594 ;;
6595esac
6596
6597# Sed substitution that helps us do robust quoting. It backslashifies
6598# metacharacters that are still active within double-quoted strings.
6599sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6600
6601# Same as above, but do not quote variable references.
6602double_quote_subst='s/\(["`\\]\)/\\\1/g'
6603
6604# Sed substitution to delay expansion of an escaped shell variable in a
6605# double_quote_subst'ed string.
6606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607
6608# Sed substitution to delay expansion of an escaped single quote.
6609delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6610
6611# Sed substitution to avoid accidental globbing in evaled expressions
6612no_glob_subst='s/\*/\\\*/g'
6613
6614# Global variables:
6615ofile=libtool
6616can_build_shared=yes
6617
6618# All known linkers require a `.a' archive for static linking (except MSVC,
6619# which needs '.lib').
6620libext=a
6621
6622with_gnu_ld="$lt_cv_prog_gnu_ld"
6623
6624old_CC="$CC"
6625old_CFLAGS="$CFLAGS"
6626
6627# Set sane defaults for various variables
6628test -z "$CC" && CC=cc
6629test -z "$LTCC" && LTCC=$CC
6630test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6631test -z "$LD" && LD=ld
6632test -z "$ac_objext" && ac_objext=o
6633
6634for cc_temp in $compiler""; do
6635 case $cc_temp in
6636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6638 \-*) ;;
6639 *) break;;
6640 esac
6641done
6642cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6643
6644
6645# Only perform the check for file, if the check method requires it
6646test -z "$MAGIC_CMD" && MAGIC_CMD=file
6647case $deplibs_check_method in
6648file_magic*)
6649 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6650 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6651echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6652if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6654else
6655 case $MAGIC_CMD in
6656[\\/*] | ?:[\\/]*)
6657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6658 ;;
6659*)
6660 lt_save_MAGIC_CMD="$MAGIC_CMD"
6661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6663 for ac_dir in $ac_dummy; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 if test -f $ac_dir/${ac_tool_prefix}file; then
6667 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6668 if test -n "$file_magic_test_file"; then
6669 case $deplibs_check_method in
6670 "file_magic "*)
6671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6674 $EGREP "$file_magic_regex" > /dev/null; then
6675 :
6676 else
6677 cat <<_LT_EOF 1>&2
6678
6679*** Warning: the command libtool uses to detect shared libraries,
6680*** $file_magic_cmd, produces output that libtool cannot recognize.
6681*** The result is that libtool may fail to recognize shared libraries
6682*** as such. This will affect the creation of libtool libraries that
6683*** depend on shared libraries, but programs linked with such libtool
6684*** libraries will work regardless of this problem. Nevertheless, you
6685*** may want to report the problem to your system manager and/or to
6686*** bug-libtool@gnu.org
6687
6688_LT_EOF
6689 fi ;;
6690 esac
6691 fi
6692 break
6693 fi
6694 done
6695 IFS="$lt_save_ifs"
6696 MAGIC_CMD="$lt_save_MAGIC_CMD"
6697 ;;
6698esac
6699fi
6700
6701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6702if test -n "$MAGIC_CMD"; then
6703 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6704echo "${ECHO_T}$MAGIC_CMD" >&6
6705else
6706 echo "$as_me:$LINENO: result: no" >&5
6707echo "${ECHO_T}no" >&6
6708fi
6709
6710
6711
6712
6713
6714if test -z "$lt_cv_path_MAGIC_CMD"; then
6715 if test -n "$ac_tool_prefix"; then
6716 echo "$as_me:$LINENO: checking for file" >&5
6717echo $ECHO_N "checking for file... $ECHO_C" >&6
6718if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721 case $MAGIC_CMD in
6722[\\/*] | ?:[\\/]*)
6723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6724 ;;
6725*)
6726 lt_save_MAGIC_CMD="$MAGIC_CMD"
6727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6728 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6729 for ac_dir in $ac_dummy; do
6730 IFS="$lt_save_ifs"
6731 test -z "$ac_dir" && ac_dir=.
6732 if test -f $ac_dir/file; then
6733 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6734 if test -n "$file_magic_test_file"; then
6735 case $deplibs_check_method in
6736 "file_magic "*)
6737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6740 $EGREP "$file_magic_regex" > /dev/null; then
6741 :
6742 else
6743 cat <<_LT_EOF 1>&2
6744
6745*** Warning: the command libtool uses to detect shared libraries,
6746*** $file_magic_cmd, produces output that libtool cannot recognize.
6747*** The result is that libtool may fail to recognize shared libraries
6748*** as such. This will affect the creation of libtool libraries that
6749*** depend on shared libraries, but programs linked with such libtool
6750*** libraries will work regardless of this problem. Nevertheless, you
6751*** may want to report the problem to your system manager and/or to
6752*** bug-libtool@gnu.org
6753
6754_LT_EOF
6755 fi ;;
6756 esac
6757 fi
6758 break
6759 fi
6760 done
6761 IFS="$lt_save_ifs"
6762 MAGIC_CMD="$lt_save_MAGIC_CMD"
6763 ;;
6764esac
6765fi
6766
6767MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6768if test -n "$MAGIC_CMD"; then
6769 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6770echo "${ECHO_T}$MAGIC_CMD" >&6
6771else
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774fi
6775
6776
6777 else
6778 MAGIC_CMD=:
6779 fi
6780fi
6781
6782 fi
6783 ;;
6784esac
6785
6786# Use C for the default configuration in the libtool script
6787
6788lt_save_CC="$CC"
6789ac_ext=c
6790ac_cpp='$CPP $CPPFLAGS'
6791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793ac_compiler_gnu=$ac_cv_c_compiler_gnu
6794
6795
6796# Source file extension for C test sources.
6797ac_ext=c
6798
6799# Object file extension for compiled C test sources.
6800objext=o
6801objext=$objext
6802
6803# Code to be used in simple compile tests
6804lt_simple_compile_test_code="int some_variable = 0;"
6805
6806# Code to be used in simple link tests
6807lt_simple_link_test_code='int main(){return(0);}'
6808
6809
6810
6811
6812
6813
6814
6815# If no C compiler was specified, use CC.
6816LTCC=${LTCC-"$CC"}
6817
6818# If no C compiler flags were specified, use CFLAGS.
6819LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6820
6821# Allow CC to be a program name with arguments.
6822compiler=$CC
6823
6824# Save the default compiler, since it gets overwritten when the other
6825# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6826compiler_DEFAULT=$CC
6827
6828# save warnings/boilerplate of simple test code
6829ac_outfile=conftest.$ac_objext
6830echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6831eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6832_lt_compiler_boilerplate=`cat conftest.err`
6833$RM conftest*
6834
6835ac_outfile=conftest.$ac_objext
6836echo "$lt_simple_link_test_code" >conftest.$ac_ext
6837eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6838_lt_linker_boilerplate=`cat conftest.err`
6839$RM conftest*
6840
6841
6842## CAVEAT EMPTOR:
6843## There is no encapsulation within the following macros, do not change
6844## the running order or otherwise move them around unless you know exactly
6845## what you are doing...
6846if test -n "$compiler"; then
6847
6848lt_prog_compiler_no_builtin_flag=
6849
6850if test "$GCC" = yes; then
6851 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6852
6853 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6854echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6855if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 lt_cv_prog_compiler_rtti_exceptions=no
6859 ac_outfile=conftest.$ac_objext
6860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6861 lt_compiler_flag="-fno-rtti -fno-exceptions"
6862 # Insert the option either (1) after the last *FLAGS variable, or
6863 # (2) before a word containing "conftest.", or (3) at the end.
6864 # Note that $ac_compile itself does not contain backslashes and begins
6865 # with a dollar sign (not a hyphen), so the echo should work correctly.
6866 # The option is referenced via a variable to avoid confusing sed.
6867 lt_compile=`echo "$ac_compile" | $SED \
6868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6870 -e 's:$: $lt_compiler_flag:'`
7a283e07 6871 (eval echo "\"\$as_me:6871: $lt_compile\"" >&5)
d7040cdb
SE
6872 (eval "$lt_compile" 2>conftest.err)
6873 ac_status=$?
6874 cat conftest.err >&5
7a283e07 6875 echo "$as_me:6875: \$? = $ac_status" >&5
d7040cdb
SE
6876 if (exit $ac_status) && test -s "$ac_outfile"; then
6877 # The compiler can only warn and ignore the option if not recognized
6878 # So say no if there are warnings other than the usual output.
6879 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6882 lt_cv_prog_compiler_rtti_exceptions=yes
6883 fi
6884 fi
6885 $RM conftest*
6886
6887fi
6888echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6889echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6890
6891if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6892 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6893else
6894 :
6895fi
6896
6897fi
6898
6899
6900
6901
6902
6903
6904 lt_prog_compiler_wl=
6905lt_prog_compiler_pic=
6906lt_prog_compiler_static=
6907
6908echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6909echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6910
6911 if test "$GCC" = yes; then
6912 lt_prog_compiler_wl='-Wl,'
6913 lt_prog_compiler_static='-static'
6914
6915 case $host_os in
6916 aix*)
6917 # All AIX code is PIC.
6918 if test "$host_cpu" = ia64; then
6919 # AIX 5 now supports IA64 processor
6920 lt_prog_compiler_static='-Bstatic'
6921 fi
6922 ;;
6923
6924 amigaos*)
6925 if test "$host_cpu" = m68k; then
6926 # FIXME: we need at least 68020 code to build shared libraries, but
6927 # adding the `-m68020' flag to GCC prevents building anything better,
6928 # like `-m68040'.
6929 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6930 fi
6931 ;;
6932
6933 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6934 # PIC is the default for these OSes.
6935 ;;
6936
6937 mingw* | cygwin* | pw32* | os2*)
6938 # This hack is so that the source file can tell whether it is being
6939 # built for inclusion in a dll (and should export symbols for example).
6940 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6941 # (--disable-auto-import) libraries
6942 lt_prog_compiler_pic='-DDLL_EXPORT'
6943 ;;
6944
6945 darwin* | rhapsody*)
6946 # PIC is the default on this platform
6947 # Common symbols not allowed in MH_DYLIB files
6948 lt_prog_compiler_pic='-fno-common'
6949 ;;
6950
6951 hpux*)
6952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6953 # not for PA HP-UX.
6954 case $host_cpu in
6955 hppa*64*|ia64*)
6956 # +Z the default
6957 ;;
6958 *)
6959 lt_prog_compiler_pic='-fPIC'
6960 ;;
6961 esac
6962 ;;
6963
6964 interix[3-9]*)
6965 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6966 # Instead, we relocate shared libraries at runtime.
6967 ;;
6968
6969 msdosdjgpp*)
6970 # Just because we use GCC doesn't mean we suddenly get shared libraries
6971 # on systems that don't support them.
6972 lt_prog_compiler_can_build_shared=no
6973 enable_shared=no
6974 ;;
6975
6976 *nto* | *qnx*)
6977 # QNX uses GNU C++, but need to define -shared option too, otherwise
6978 # it will coredump.
6979 lt_prog_compiler_pic='-fPIC -shared'
6980 ;;
6981
6982 sysv4*MP*)
6983 if test -d /usr/nec; then
6984 lt_prog_compiler_pic=-Kconform_pic
6985 fi
6986 ;;
6987
6988 *)
6989 lt_prog_compiler_pic='-fPIC'
6990 ;;
6991 esac
6992 else
6993 # PORTME Check for flag to pass linker flags through the system compiler.
6994 case $host_os in
6995 aix*)
6996 lt_prog_compiler_wl='-Wl,'
6997 if test "$host_cpu" = ia64; then
6998 # AIX 5 now supports IA64 processor
6999 lt_prog_compiler_static='-Bstatic'
7000 else
7001 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7002 fi
7003 ;;
7004 darwin*)
7005 # PIC is the default on this platform
7006 # Common symbols not allowed in MH_DYLIB files
7007 case $cc_basename in
7008 xlc*)
7009 lt_prog_compiler_pic='-qnocommon'
7010 lt_prog_compiler_wl='-Wl,'
7011 ;;
7012 esac
7013 ;;
7014
7015 mingw* | cygwin* | pw32* | os2*)
7016 # This hack is so that the source file can tell whether it is being
7017 # built for inclusion in a dll (and should export symbols for example).
7018 lt_prog_compiler_pic='-DDLL_EXPORT'
7019 ;;
7020
7021 hpux9* | hpux10* | hpux11*)
7022 lt_prog_compiler_wl='-Wl,'
7023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7024 # not for PA HP-UX.
7025 case $host_cpu in
7026 hppa*64*|ia64*)
7027 # +Z the default
7028 ;;
7029 *)
7030 lt_prog_compiler_pic='+Z'
7031 ;;
7032 esac
7033 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7034 lt_prog_compiler_static='${wl}-a ${wl}archive'
7035 ;;
7036
7037 irix5* | irix6* | nonstopux*)
7038 lt_prog_compiler_wl='-Wl,'
7039 # PIC (with -KPIC) is the default.
7040 lt_prog_compiler_static='-non_shared'
7041 ;;
7042
7043 linux* | k*bsd*-gnu)
7044 case $cc_basename in
7045 icc* | ecc*)
7046 lt_prog_compiler_wl='-Wl,'
7047 lt_prog_compiler_pic='-KPIC'
7048 lt_prog_compiler_static='-static'
7049 ;;
7050 pgcc* | pgf77* | pgf90* | pgf95*)
7051 # Portland Group compilers (*not* the Pentium gcc compiler,
7052 # which looks to be a dead project)
7053 lt_prog_compiler_wl='-Wl,'
7054 lt_prog_compiler_pic='-fpic'
7055 lt_prog_compiler_static='-Bstatic'
7056 ;;
7057 ccc*)
7058 lt_prog_compiler_wl='-Wl,'
7059 # All Alpha code is PIC.
7060 lt_prog_compiler_static='-non_shared'
7061 ;;
7062 *)
7063 case `$CC -V 2>&1 | sed 5q` in
7064 *Sun\ C*)
7065 # Sun C 5.9
7066 lt_prog_compiler_pic='-KPIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 lt_prog_compiler_wl='-Wl,'
7069 ;;
7070 *Sun\ F*)
7071 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7072 lt_prog_compiler_pic='-KPIC'
7073 lt_prog_compiler_static='-Bstatic'
7074 lt_prog_compiler_wl=''
7075 ;;
7076 esac
7077 ;;
7078 esac
7079 ;;
7080
7081 newsos6)
7082 lt_prog_compiler_pic='-KPIC'
7083 lt_prog_compiler_static='-Bstatic'
7084 ;;
7085
7086 *nto* | *qnx*)
7087 # QNX uses GNU C++, but need to define -shared option too, otherwise
7088 # it will coredump.
7089 lt_prog_compiler_pic='-fPIC -shared'
7090 ;;
7091
7092 osf3* | osf4* | osf5*)
7093 lt_prog_compiler_wl='-Wl,'
7094 # All OSF/1 code is PIC.
7095 lt_prog_compiler_static='-non_shared'
7096 ;;
7097
7098 rdos*)
7099 lt_prog_compiler_static='-non_shared'
7100 ;;
7101
7102 solaris*)
7103 lt_prog_compiler_pic='-KPIC'
7104 lt_prog_compiler_static='-Bstatic'
7105 case $cc_basename in
7106 f77* | f90* | f95*)
7107 lt_prog_compiler_wl='-Qoption ld ';;
7108 *)
7109 lt_prog_compiler_wl='-Wl,';;
7110 esac
7111 ;;
7112
7113 sunos4*)
7114 lt_prog_compiler_wl='-Qoption ld '
7115 lt_prog_compiler_pic='-PIC'
7116 lt_prog_compiler_static='-Bstatic'
7117 ;;
7118
7119 sysv4 | sysv4.2uw2* | sysv4.3*)
7120 lt_prog_compiler_wl='-Wl,'
7121 lt_prog_compiler_pic='-KPIC'
7122 lt_prog_compiler_static='-Bstatic'
7123 ;;
7124
7125 sysv4*MP*)
7126 if test -d /usr/nec ;then
7127 lt_prog_compiler_pic='-Kconform_pic'
7128 lt_prog_compiler_static='-Bstatic'
7129 fi
7130 ;;
7131
7132 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7133 lt_prog_compiler_wl='-Wl,'
7134 lt_prog_compiler_pic='-KPIC'
7135 lt_prog_compiler_static='-Bstatic'
7136 ;;
7137
7138 unicos*)
7139 lt_prog_compiler_wl='-Wl,'
7140 lt_prog_compiler_can_build_shared=no
7141 ;;
7142
7143 uts4*)
7144 lt_prog_compiler_pic='-pic'
7145 lt_prog_compiler_static='-Bstatic'
7146 ;;
7147
7148 *)
7149 lt_prog_compiler_can_build_shared=no
7150 ;;
7151 esac
7152 fi
7153
7154case $host_os in
7155 # For platforms which do not support PIC, -DPIC is meaningless:
7156 *djgpp*)
7157 lt_prog_compiler_pic=
7158 ;;
7159 *)
7160 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7161 ;;
7162esac
7163echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7164echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7165
7166
7167
7168
7169
7170
7171#
7172# Check to make sure the PIC flag actually works.
7173#
7174if test -n "$lt_prog_compiler_pic"; then
7175 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7176echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7177if test "${lt_prog_compiler_pic_works+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180 lt_prog_compiler_pic_works=no
7181 ac_outfile=conftest.$ac_objext
7182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7184 # Insert the option either (1) after the last *FLAGS variable, or
7185 # (2) before a word containing "conftest.", or (3) at the end.
7186 # Note that $ac_compile itself does not contain backslashes and begins
7187 # with a dollar sign (not a hyphen), so the echo should work correctly.
7188 # The option is referenced via a variable to avoid confusing sed.
7189 lt_compile=`echo "$ac_compile" | $SED \
7190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7192 -e 's:$: $lt_compiler_flag:'`
7a283e07 7193 (eval echo "\"\$as_me:7193: $lt_compile\"" >&5)
d7040cdb
SE
7194 (eval "$lt_compile" 2>conftest.err)
7195 ac_status=$?
7196 cat conftest.err >&5
7a283e07 7197 echo "$as_me:7197: \$? = $ac_status" >&5
d7040cdb
SE
7198 if (exit $ac_status) && test -s "$ac_outfile"; then
7199 # The compiler can only warn and ignore the option if not recognized
7200 # So say no if there are warnings other than the usual output.
7201 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7204 lt_prog_compiler_pic_works=yes
7205 fi
7206 fi
7207 $RM conftest*
7208
7209fi
7210echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7211echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7212
7213if test x"$lt_prog_compiler_pic_works" = xyes; then
7214 case $lt_prog_compiler_pic in
7215 "" | " "*) ;;
7216 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7217 esac
7218else
7219 lt_prog_compiler_pic=
7220 lt_prog_compiler_can_build_shared=no
7221fi
7222
7223fi
7224
7225
7226
7227
7228
7229
7230#
7231# Check to make sure the static flag actually works.
7232#
7233wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7234echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7235echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7236if test "${lt_prog_compiler_static_works+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 lt_prog_compiler_static_works=no
7240 save_LDFLAGS="$LDFLAGS"
7241 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7242 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7243 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7244 # The linker can only warn and ignore the option if not recognized
7245 # So say no if there are warnings
7246 if test -s conftest.err; then
7247 # Append any errors to the config.log.
7248 cat conftest.err 1>&5
7249 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7251 if diff conftest.exp conftest.er2 >/dev/null; then
7252 lt_prog_compiler_static_works=yes
7253 fi
7254 else
7255 lt_prog_compiler_static_works=yes
7256 fi
7257 fi
7258 $RM conftest*
7259 LDFLAGS="$save_LDFLAGS"
7260
7261fi
7262echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7263echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7264
7265if test x"$lt_prog_compiler_static_works" = xyes; then
7266 :
7267else
7268 lt_prog_compiler_static=
7269fi
7270
7271
7272
7273
7274
7275
7276
7277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7278echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7279if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282 lt_cv_prog_compiler_c_o=no
7283 $RM -r conftest 2>/dev/null
7284 mkdir conftest
7285 cd conftest
7286 mkdir out
7287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7288
7289 lt_compiler_flag="-o out/conftest2.$ac_objext"
7290 # Insert the option either (1) after the last *FLAGS variable, or
7291 # (2) before a word containing "conftest.", or (3) at the end.
7292 # Note that $ac_compile itself does not contain backslashes and begins
7293 # with a dollar sign (not a hyphen), so the echo should work correctly.
7294 lt_compile=`echo "$ac_compile" | $SED \
7295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7297 -e 's:$: $lt_compiler_flag:'`
7a283e07 7298 (eval echo "\"\$as_me:7298: $lt_compile\"" >&5)
d7040cdb
SE
7299 (eval "$lt_compile" 2>out/conftest.err)
7300 ac_status=$?
7301 cat out/conftest.err >&5
7a283e07 7302 echo "$as_me:7302: \$? = $ac_status" >&5
d7040cdb
SE
7303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7304 then
7305 # The compiler can only warn and ignore the option if not recognized
7306 # So say no if there are warnings
7307 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7310 lt_cv_prog_compiler_c_o=yes
7311 fi
7312 fi
7313 chmod u+w . 2>&5
7314 $RM conftest*
7315 # SGI C++ compiler will create directory out/ii_files/ for
7316 # template instantiation
7317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7318 $RM out/* && rmdir out
7319 cd ..
7320 $RM -r conftest
7321 $RM conftest*
7322
7323fi
7324echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7325echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7326
7327
7328
7329
7330
7331
7332 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7333echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7334if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 lt_cv_prog_compiler_c_o=no
7338 $RM -r conftest 2>/dev/null
7339 mkdir conftest
7340 cd conftest
7341 mkdir out
7342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7343
7344 lt_compiler_flag="-o out/conftest2.$ac_objext"
7345 # Insert the option either (1) after the last *FLAGS variable, or
7346 # (2) before a word containing "conftest.", or (3) at the end.
7347 # Note that $ac_compile itself does not contain backslashes and begins
7348 # with a dollar sign (not a hyphen), so the echo should work correctly.
7349 lt_compile=`echo "$ac_compile" | $SED \
7350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7352 -e 's:$: $lt_compiler_flag:'`
7a283e07 7353 (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
d7040cdb
SE
7354 (eval "$lt_compile" 2>out/conftest.err)
7355 ac_status=$?
7356 cat out/conftest.err >&5
7a283e07 7357 echo "$as_me:7357: \$? = $ac_status" >&5
d7040cdb
SE
7358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7359 then
7360 # The compiler can only warn and ignore the option if not recognized
7361 # So say no if there are warnings
7362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7365 lt_cv_prog_compiler_c_o=yes
7366 fi
7367 fi
7368 chmod u+w . 2>&5
7369 $RM conftest*
7370 # SGI C++ compiler will create directory out/ii_files/ for
7371 # template instantiation
7372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7373 $RM out/* && rmdir out
7374 cd ..
7375 $RM -r conftest
7376 $RM conftest*
7377
7378fi
7379echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7380echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7381
7382
7383
7384
7385hard_links="nottested"
7386if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7387 # do not overwrite the value of need_locks provided by the user
7388 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7389echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7390 hard_links=yes
7391 $RM conftest*
7392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7393 touch conftest.a
7394 ln conftest.a conftest.b 2>&5 || hard_links=no
7395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7396 echo "$as_me:$LINENO: result: $hard_links" >&5
7397echo "${ECHO_T}$hard_links" >&6
7398 if test "$hard_links" = no; then
7399 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7400echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7401 need_locks=warn
7402 fi
7403else
7404 need_locks=no
7405fi
7406
7407
7408
7409
7410
7411
7412 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7413echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7414
7415 runpath_var=
7416 allow_undefined_flag=
7417 always_export_symbols=no
7418 archive_cmds=
7419 archive_expsym_cmds=
7420 compiler_needs_object=no
7421 enable_shared_with_static_runtimes=no
7422 export_dynamic_flag_spec=
7423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7424 hardcode_automatic=no
7425 hardcode_direct=no
7426 hardcode_direct_absolute=no
7427 hardcode_libdir_flag_spec=
7428 hardcode_libdir_flag_spec_ld=
7429 hardcode_libdir_separator=
7430 hardcode_minus_L=no
7431 hardcode_shlibpath_var=unsupported
7432 inherit_rpath=no
7433 link_all_deplibs=unknown
7434 module_cmds=
7435 module_expsym_cmds=
7436 old_archive_from_new_cmds=
7437 old_archive_from_expsyms_cmds=
7438 thread_safe_flag_spec=
7439 whole_archive_flag_spec=
7440 # include_expsyms should be a list of space-separated symbols to be *always*
7441 # included in the symbol list
7442 include_expsyms=
7443 # exclude_expsyms can be an extended regexp of symbols to exclude
7444 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7445 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7446 # as well as any symbol that contains `d'.
7447 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7448 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7449 # platforms (ab)use it in PIC code, but their linkers get confused if
7450 # the symbol is explicitly referenced. Since portable code cannot
7451 # rely on this symbol name, it's probably fine to never include it in
7452 # preloaded symbol tables.
7453 extract_expsyms_cmds=
7454
7455 case $host_os in
7456 cygwin* | mingw* | pw32*)
7457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7458 # When not using gcc, we currently assume that we are using
7459 # Microsoft Visual C++.
7460 if test "$GCC" != yes; then
7461 with_gnu_ld=no
7462 fi
7463 ;;
7464 interix*)
7465 # we just hope/assume this is gcc and not c89 (= MSVC++)
7466 with_gnu_ld=yes
7467 ;;
7468 openbsd*)
7469 with_gnu_ld=no
7470 ;;
7471 esac
7472
7473 ld_shlibs=yes
7474 if test "$with_gnu_ld" = yes; then
7475 # If archive_cmds runs LD, not CC, wlarc should be empty
7476 wlarc='${wl}'
7477
7478 # Set some defaults for GNU ld with shared library support. These
7479 # are reset later if shared libraries are not supported. Putting them
7480 # here allows them to be overridden if necessary.
7481 runpath_var=LD_RUN_PATH
7482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7483 export_dynamic_flag_spec='${wl}--export-dynamic'
7484 # ancient GNU ld didn't support --whole-archive et. al.
7485 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7486 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7487 else
7488 whole_archive_flag_spec=
7489 fi
7490 supports_anon_versioning=no
7491 case `$LD -v 2>&1` in
7492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7495 *\ 2.11.*) ;; # other 2.11 versions
7496 *) supports_anon_versioning=yes ;;
7497 esac
7498
7499 # See if GNU ld supports shared libraries.
7500 case $host_os in
e81819a5 7501 aix[3-9]*)
d7040cdb
SE
7502 # On AIX/PPC, the GNU linker is very broken
7503 if test "$host_cpu" != ia64; then
7504 ld_shlibs=no
7505 cat <<_LT_EOF 1>&2
7506
7507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7508*** to be unable to reliably create shared libraries on AIX.
7509*** Therefore, libtool is disabling shared libraries support. If you
7510*** really care for shared libraries, you may want to modify your PATH
7511*** so that a non-GNU linker is found, and then restart.
7512
7513_LT_EOF
7514 fi
7515 ;;
7516
7517 amigaos*)
7518 if test "$host_cpu" = m68k; then
7519 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)'
7520 hardcode_libdir_flag_spec='-L$libdir'
7521 hardcode_minus_L=yes
7522 fi
7523
7524 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7525 # that the semantics of dynamic libraries on AmigaOS, at least up
7526 # to version 4, is to share data among multiple programs linked
7527 # with the same dynamic library. Since this doesn't match the
7528 # behavior of shared libraries on other platforms, we can't use
7529 # them.
7530 ld_shlibs=no
7531 ;;
7532
7533 beos*)
7534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7535 allow_undefined_flag=unsupported
7536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7537 # support --undefined. This deserves some investigation. FIXME
7538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7539 else
7540 ld_shlibs=no
7541 fi
7542 ;;
7543
7544 cygwin* | mingw* | pw32*)
7545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7546 # as there is no search path for DLLs.
7547 hardcode_libdir_flag_spec='-L$libdir'
7548 allow_undefined_flag=unsupported
7549 always_export_symbols=no
7550 enable_shared_with_static_runtimes=yes
7551 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7552
7553 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7555 # If the export-symbols file already is a .def file (1st line
7556 # is EXPORTS), use it as is; otherwise, prepend...
7557 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7558 cp $export_symbols $output_objdir/$soname.def;
7559 else
7560 echo EXPORTS > $output_objdir/$soname.def;
7561 cat $export_symbols >> $output_objdir/$soname.def;
7562 fi~
7563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7564 else
7565 ld_shlibs=no
7566 fi
7567 ;;
7568
7569 interix[3-9]*)
7570 hardcode_direct=no
7571 hardcode_shlibpath_var=no
7572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7573 export_dynamic_flag_spec='${wl}-E'
7574 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7575 # Instead, shared libraries are loaded at an image base (0x10000000 by
7576 # default) and relocated if they conflict, which is a slow very memory
7577 # consuming and fragmenting process. To avoid this, we pick a random,
7578 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7579 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7581 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'
7582 ;;
7583
7584 gnu* | linux* | tpf* | k*bsd*-gnu)
7585 tmp_diet=no
7586 if test "$host_os" = linux-dietlibc; then
7587 case $cc_basename in
7588 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7589 esac
7590 fi
7591 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7592 && test "$tmp_diet" = no
7593 then
7594 tmp_addflag=
7595 case $cc_basename,$host_cpu in
7596 pgcc*) # Portland Group C compiler
7597 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'
7598 tmp_addflag=' $pic_flag'
7599 ;;
7600 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7601 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'
7602 tmp_addflag=' $pic_flag -Mnomain' ;;
7603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7604 tmp_addflag=' -i_dynamic' ;;
7605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7606 tmp_addflag=' -i_dynamic -nofor_main' ;;
7607 ifc* | ifort*) # Intel Fortran compiler
7608 tmp_addflag=' -nofor_main' ;;
7609 esac
7610 case `$CC -V 2>&1 | sed 5q` in
7611 *Sun\ C*) # Sun C 5.9
7612 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'
7613 compiler_needs_object=yes
7614 tmp_sharedflag='-G' ;;
7615 *Sun\ F*) # Sun Fortran 8.3
7616 tmp_sharedflag='-G' ;;
7617 *)
7618 tmp_sharedflag='-shared' ;;
7619 esac
7620 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7621
7622 if test "x$supports_anon_versioning" = xyes; then
7623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7625 echo "local: *; };" >> $output_objdir/$libname.ver~
7626 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7627 fi
7628 else
7629 ld_shlibs=no
7630 fi
7631 ;;
7632
7633 netbsd*)
7634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7636 wlarc=
7637 else
7638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7640 fi
7641 ;;
7642
7643 solaris*)
7644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7645 ld_shlibs=no
7646 cat <<_LT_EOF 1>&2
7647
7648*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7649*** create shared libraries on Solaris systems. Therefore, libtool
7650*** is disabling shared libraries support. We urge you to upgrade GNU
7651*** binutils to release 2.9.1 or newer. Another option is to modify
7652*** your PATH or compiler configuration so that the native linker is
7653*** used, and then restart.
7654
7655_LT_EOF
7656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7659 else
7660 ld_shlibs=no
7661 fi
7662 ;;
7663
7664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7665 case `$LD -v 2>&1` in
7666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7667 ld_shlibs=no
7668 cat <<_LT_EOF 1>&2
7669
7670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7671*** reliably create shared libraries on SCO systems. Therefore, libtool
7672*** is disabling shared libraries support. We urge you to upgrade GNU
7673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7674*** your PATH or compiler configuration so that the native linker is
7675*** used, and then restart.
7676
7677_LT_EOF
7678 ;;
7679 *)
7680 # For security reasons, it is highly recommended that you always
7681 # use absolute paths for naming shared libraries, and exclude the
7682 # DT_RUNPATH tag from executables and libraries. But doing so
7683 # requires that you compile everything twice, which is a pain.
7684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7688 else
7689 ld_shlibs=no
7690 fi
7691 ;;
7692 esac
7693 ;;
7694
7695 sunos4*)
7696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7697 wlarc=
7698 hardcode_direct=yes
7699 hardcode_shlibpath_var=no
7700 ;;
7701
7702 *)
7703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7706 else
7707 ld_shlibs=no
7708 fi
7709 ;;
7710 esac
7711
7712 if test "$ld_shlibs" = no; then
7713 runpath_var=
7714 hardcode_libdir_flag_spec=
7715 export_dynamic_flag_spec=
7716 whole_archive_flag_spec=
7717 fi
7718 else
7719 # PORTME fill in a description of your system's linker (not GNU ld)
7720 case $host_os in
7721 aix3*)
7722 allow_undefined_flag=unsupported
7723 always_export_symbols=yes
7724 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'
7725 # Note: this linker hardcodes the directories in LIBPATH if there
7726 # are no directories specified by -L.
7727 hardcode_minus_L=yes
7728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7729 # Neither direct hardcoding nor static linking is supported with a
7730 # broken collect2.
7731 hardcode_direct=unsupported
7732 fi
7733 ;;
7734
e81819a5 7735 aix[4-9]*)
d7040cdb
SE
7736 if test "$host_cpu" = ia64; then
7737 # On IA64, the linker does run time linking by default, so we don't
7738 # have to do anything special.
7739 aix_use_runtimelinking=no
7740 exp_sym_flag='-Bexport'
7741 no_entry_flag=""
7742 else
7743 # If we're using GNU nm, then we don't want the "-C" option.
7744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7745 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7746 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'
7747 else
7748 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'
7749 fi
7750 aix_use_runtimelinking=no
7751
7752 # Test if we are trying to use run time linking or normal
7753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7754 # need to do runtime linking.
e81819a5 7755 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
7756 for ld_flag in $LDFLAGS; do
7757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7758 aix_use_runtimelinking=yes
7759 break
7760 fi
7761 done
7762 ;;
7763 esac
7764
7765 exp_sym_flag='-bexport'
7766 no_entry_flag='-bnoentry'
7767 fi
7768
7769 # When large executables or shared objects are built, AIX ld can
7770 # have problems creating the table of contents. If linking a library
7771 # or program results in "error TOC overflow" add -mminimal-toc to
7772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7774
7775 archive_cmds=''
7776 hardcode_direct=yes
7777 hardcode_direct_absolute=yes
7778 hardcode_libdir_separator=':'
7779 link_all_deplibs=yes
7780 file_list_spec='${wl}-f,'
7781
7782 if test "$GCC" = yes; then
7783 case $host_os in aix4.[012]|aix4.[012].*)
7784 # We only want to do this on AIX 4.2 and lower, the check
7785 # below for broken collect2 doesn't work under 4.3+
7786 collect2name=`${CC} -print-prog-name=collect2`
7787 if test -f "$collect2name" &&
7788 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7789 then
7790 # We have reworked collect2
7791 :
7792 else
7793 # We have old collect2
7794 hardcode_direct=unsupported
7795 # It fails to find uninstalled libraries when the uninstalled
7796 # path is not listed in the libpath. Setting hardcode_minus_L
7797 # to unsupported forces relinking
7798 hardcode_minus_L=yes
7799 hardcode_libdir_flag_spec='-L$libdir'
7800 hardcode_libdir_separator=
7801 fi
7802 ;;
7803 esac
7804 shared_flag='-shared'
7805 if test "$aix_use_runtimelinking" = yes; then
7806 shared_flag="$shared_flag "'${wl}-G'
7807 fi
7808 else
7809 # not using gcc
7810 if test "$host_cpu" = ia64; then
7811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7812 # chokes on -Wl,-G. The following line is correct:
7813 shared_flag='-G'
7814 else
7815 if test "$aix_use_runtimelinking" = yes; then
7816 shared_flag='${wl}-G'
7817 else
7818 shared_flag='${wl}-bM:SRE'
7819 fi
7820 fi
7821 fi
7822
7823 # It seems that -bexpall does not export symbols beginning with
7824 # underscore (_), so it is better to generate a list of symbols to export.
7825 always_export_symbols=yes
7826 if test "$aix_use_runtimelinking" = yes; then
7827 # Warning - without using the other runtime loading flags (-brtl),
7828 # -berok will link without error, but may produce a broken library.
7829 allow_undefined_flag='-berok'
7830 # Determine the default libpath from the value encoded in an
7831 # empty executable.
7832 cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h. */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
7837/* end confdefs.h. */
7838
7839int
7840main ()
7841{
7842
7843 ;
7844 return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext conftest$ac_exeext
7848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>conftest.er1
7850 ac_status=$?
7851 grep -v '^ *+' conftest.er1 >conftest.err
7852 rm -f conftest.er1
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } &&
7856 { ac_try='test -z "$ac_c_werror_flag"
7857 || test ! -s conftest.err'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; } &&
7863 { ac_try='test -s conftest$ac_exeext'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869
7870lt_aix_libpath_sed='
7871 /Import File Strings/,/^$/ {
7872 /^0/ {
7873 s/^0 *\(.*\)$/\1/
7874 p
7875 }
7876 }'
7877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7878# Check for a 64-bit object if we didn't find anything.
7879if test -z "$aix_libpath"; then
7880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7881fi
7882else
7883 echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886fi
7887rm -f conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7889if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7890
7891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7892 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"
7893 else
7894 if test "$host_cpu" = ia64; then
7895 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7896 allow_undefined_flag="-z nodefs"
7897 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"
7898 else
7899 # Determine the default libpath from the value encoded in an
7900 # empty executable.
7901 cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907
7908int
7909main ()
7910{
7911
7912 ;
7913 return 0;
7914}
7915_ACEOF
7916rm -f conftest.$ac_objext conftest$ac_exeext
7917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>conftest.er1
7919 ac_status=$?
7920 grep -v '^ *+' conftest.er1 >conftest.err
7921 rm -f conftest.er1
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -z "$ac_c_werror_flag"
7926 || test ! -s conftest.err'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 (eval $ac_try) 2>&5
7929 ac_status=$?
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; } &&
7932 { ac_try='test -s conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938
7939lt_aix_libpath_sed='
7940 /Import File Strings/,/^$/ {
7941 /^0/ {
7942 s/^0 *\(.*\)$/\1/
7943 p
7944 }
7945 }'
7946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7947# Check for a 64-bit object if we didn't find anything.
7948if test -z "$aix_libpath"; then
7949 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7950fi
7951else
7952 echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955fi
7956rm -f conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7959
7960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7961 # Warning - without using the other run time loading flags,
7962 # -berok will link without error, but may produce a broken library.
7963 no_undefined_flag=' ${wl}-bernotok'
7964 allow_undefined_flag=' ${wl}-berok'
7965 # Exported symbols can be pulled into shared objects from archives
7966 whole_archive_flag_spec='$convenience'
7967 archive_cmds_need_lc=yes
7968 # This is similar to how AIX traditionally builds its shared libraries.
7969 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'
7970 fi
7971 fi
7972 ;;
7973
7974 amigaos*)
7975 if test "$host_cpu" = m68k; then
7976 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)'
7977 hardcode_libdir_flag_spec='-L$libdir'
7978 hardcode_minus_L=yes
7979 fi
7980 # see comment about different semantics on the GNU ld section
7981 ld_shlibs=no
7982 ;;
7983
7984 bsdi[45]*)
7985 export_dynamic_flag_spec=-rdynamic
7986 ;;
7987
7988 cygwin* | mingw* | pw32*)
7989 # When not using gcc, we currently assume that we are using
7990 # Microsoft Visual C++.
7991 # hardcode_libdir_flag_spec is actually meaningless, as there is
7992 # no search path for DLLs.
7993 hardcode_libdir_flag_spec=' '
7994 allow_undefined_flag=unsupported
7995 # Tell ltmain to make .lib files, not .a files.
7996 libext=lib
7997 # Tell ltmain to make .dll files, not .so files.
7998 shrext_cmds=".dll"
7999 # FIXME: Setting linknames here is a bad hack.
8000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8001 # The linker will automatically build a .lib file if we build a DLL.
8002 old_archive_from_new_cmds='true'
8003 # FIXME: Should let the user specify the lib program.
8004 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8005 fix_srcfile_path='`cygpath -w "$srcfile"`'
8006 enable_shared_with_static_runtimes=yes
8007 ;;
8008
8009 darwin* | rhapsody*)
8010 case $host_os in
8011 rhapsody* | darwin1.[012])
8012 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8013 ;;
8014 *) # Darwin 1.3 on
8015 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8016 10.[012])
8017 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8018 ;;
8019 10.*)
8020 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8021 ;;
8022 esac
8023 ;;
8024 esac
8025 archive_cmds_need_lc=no
8026 hardcode_direct=no
8027 hardcode_automatic=yes
8028 hardcode_shlibpath_var=unsupported
8029 whole_archive_flag_spec=''
8030 link_all_deplibs=yes
8031 if test "$GCC" = yes ; then
8032 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035 lt_cv_apple_cc_single_mod=no
8036 if test -z "${LT_MULTI_MODULE}"; then
8037 # By default we will add the -single_module flag. You can override
8038 # by either setting the environment variable LT_MULTI_MODULE
8039 # non-empty at configure time, or by adding -multi-module to the
8040 # link flags.
8041 echo "int foo(void){return 1;}" > conftest.c
8042 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043 -dynamiclib ${wl}-single_module conftest.c
8044 if test -f libconftest.dylib; then
8045 lt_cv_apple_cc_single_mod=yes
8046 rm libconftest.dylib
8047 fi
8048 rm conftest.$ac_ext
8049 fi
8050fi
8051
8052 output_verbose_link_cmd=echo
8053 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8054 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8055 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}'
8056 else
8057 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8058 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}'
8059 fi
8060 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8061 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}'
8062 else
8063 case $cc_basename in
8064 xlc*)
8065 output_verbose_link_cmd=echo
8066 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8067 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8068 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8069 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}'
8070 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}'
8071 ;;
8072 *)
8073 ld_shlibs=no
8074 ;;
8075 esac
8076 fi
8077 ;;
8078
8079 dgux*)
8080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8081 hardcode_libdir_flag_spec='-L$libdir'
8082 hardcode_shlibpath_var=no
8083 ;;
8084
8085 freebsd1*)
8086 ld_shlibs=no
8087 ;;
8088
8089 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8090 # support. Future versions do this automatically, but an explicit c++rt0.o
8091 # does not break anything, and helps significantly (at the cost of a little
8092 # extra space).
8093 freebsd2.2*)
8094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8095 hardcode_libdir_flag_spec='-R$libdir'
8096 hardcode_direct=yes
8097 hardcode_shlibpath_var=no
8098 ;;
8099
8100 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8101 freebsd2*)
8102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_direct=yes
8104 hardcode_minus_L=yes
8105 hardcode_shlibpath_var=no
8106 ;;
8107
8108 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8109 freebsd* | dragonfly*)
8110 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8111 hardcode_libdir_flag_spec='-R$libdir'
8112 hardcode_direct=yes
8113 hardcode_shlibpath_var=no
8114 ;;
8115
8116 hpux9*)
8117 if test "$GCC" = yes; then
8118 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'
8119 else
8120 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'
8121 fi
8122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8123 hardcode_libdir_separator=:
8124 hardcode_direct=yes
8125
8126 # hardcode_minus_L: Not really in the search PATH,
8127 # but as the default location of the library.
8128 hardcode_minus_L=yes
8129 export_dynamic_flag_spec='${wl}-E'
8130 ;;
8131
8132 hpux10*)
8133 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8134 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8135 else
8136 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8137 fi
8138 if test "$with_gnu_ld" = no; then
8139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8140 hardcode_libdir_flag_spec_ld='+b $libdir'
8141 hardcode_libdir_separator=:
8142 hardcode_direct=yes
8143 hardcode_direct_absolute=yes
8144 export_dynamic_flag_spec='${wl}-E'
8145 # hardcode_minus_L: Not really in the search PATH,
8146 # but as the default location of the library.
8147 hardcode_minus_L=yes
8148 fi
8149 ;;
8150
8151 hpux11*)
8152 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8153 case $host_cpu in
8154 hppa*64*)
8155 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 ;;
8157 ia64*)
8158 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8159 ;;
8160 *)
8161 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8162 ;;
8163 esac
8164 else
8165 case $host_cpu in
8166 hppa*64*)
8167 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8168 ;;
8169 ia64*)
8170 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8171 ;;
8172 *)
8173 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8174 ;;
8175 esac
8176 fi
8177 if test "$with_gnu_ld" = no; then
8178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8179 hardcode_libdir_separator=:
8180
8181 case $host_cpu in
8182 hppa*64*|ia64*)
8183 hardcode_direct=no
8184 hardcode_shlibpath_var=no
8185 ;;
8186 *)
8187 hardcode_direct=yes
8188 hardcode_direct_absolute=yes
8189 export_dynamic_flag_spec='${wl}-E'
8190
8191 # hardcode_minus_L: Not really in the search PATH,
8192 # but as the default location of the library.
8193 hardcode_minus_L=yes
8194 ;;
8195 esac
8196 fi
8197 ;;
8198
8199 irix5* | irix6* | nonstopux*)
8200 if test "$GCC" = yes; then
8201 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'
8202 # Try to use the -exported_symbol ld option, if it does not
8203 # work, assume that -exports_file does not work either and
8204 # implicitly export all symbols.
8205 save_LDFLAGS="$LDFLAGS"
8206 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8207 cat >conftest.$ac_ext <<_ACEOF
8208int foo(void) {}
8209_ACEOF
8210rm -f conftest.$ac_objext conftest$ac_exeext
8211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag"
8220 || test ! -s conftest.err'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest$ac_exeext'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 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'
8233
8234else
8235 echo "$as_me: failed program was:" >&5
8236sed 's/^/| /' conftest.$ac_ext >&5
8237
8238fi
8239rm -f conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 LDFLAGS="$save_LDFLAGS"
8242 else
8243 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'
8244 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'
8245 fi
8246 archive_cmds_need_lc='no'
8247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248 hardcode_libdir_separator=:
8249 inherit_rpath=yes
8250 link_all_deplibs=yes
8251 ;;
8252
8253 netbsd*)
8254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8256 else
8257 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8258 fi
8259 hardcode_libdir_flag_spec='-R$libdir'
8260 hardcode_direct=yes
8261 hardcode_shlibpath_var=no
8262 ;;
8263
8264 newsos6)
8265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8266 hardcode_direct=yes
8267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8268 hardcode_libdir_separator=:
8269 hardcode_shlibpath_var=no
8270 ;;
8271
8272 *nto* | *qnx*)
8273 ;;
8274
8275 openbsd*)
8276 hardcode_direct=yes
8277 hardcode_shlibpath_var=no
8278 hardcode_direct_absolute=yes
8279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8281 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8283 export_dynamic_flag_spec='${wl}-E'
8284 else
8285 case $host_os in
8286 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_libdir_flag_spec='-R$libdir'
8289 ;;
8290 *)
8291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8292 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8293 ;;
8294 esac
8295 fi
8296 ;;
8297
8298 os2*)
8299 hardcode_libdir_flag_spec='-L$libdir'
8300 hardcode_minus_L=yes
8301 allow_undefined_flag=unsupported
8302 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'
8303 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8304 ;;
8305
8306 osf3*)
8307 if test "$GCC" = yes; then
8308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8309 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'
8310 else
8311 allow_undefined_flag=' -expect_unresolved \*'
8312 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'
8313 fi
8314 archive_cmds_need_lc='no'
8315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8316 hardcode_libdir_separator=:
8317 ;;
8318
8319 osf4* | osf5*) # as osf3* with the addition of -msym flag
8320 if test "$GCC" = yes; then
8321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8322 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'
8323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324 else
8325 allow_undefined_flag=' -expect_unresolved \*'
8326 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'
8327 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~
8328 $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'
8329
8330 # Both c and cxx compiler support -rpath directly
8331 hardcode_libdir_flag_spec='-rpath $libdir'
8332 fi
8333 archive_cmds_need_lc='no'
8334 hardcode_libdir_separator=:
8335 ;;
8336
8337 solaris*)
8338 no_undefined_flag=' -z defs'
8339 if test "$GCC" = yes; then
8340 wlarc='${wl}'
8341 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8343 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8344 else
8345 case `$CC -V 2>&1` in
8346 *"Compilers 5.0"*)
8347 wlarc=''
8348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8351 ;;
8352 *)
8353 wlarc='${wl}'
8354 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8356 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8357 ;;
8358 esac
8359 fi
8360 hardcode_libdir_flag_spec='-R$libdir'
8361 hardcode_shlibpath_var=no
8362 case $host_os in
8363 solaris2.[0-5] | solaris2.[0-5].*) ;;
8364 *)
8365 # The compiler driver will combine and reorder linker options,
8366 # but understands `-z linker_flag'. GCC discards it without `$wl',
8367 # but is careful enough not to reorder.
8368 # Supported since Solaris 2.6 (maybe 2.5.1?)
8369 if test "$GCC" = yes; then
8370 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8371 else
8372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8373 fi
8374 ;;
8375 esac
8376 link_all_deplibs=yes
8377 ;;
8378
8379 sunos4*)
8380 if test "x$host_vendor" = xsequent; then
8381 # Use $CC to link under sequent, because it throws in some extra .o
8382 # files that make .init and .fini sections work.
8383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8384 else
8385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8386 fi
8387 hardcode_libdir_flag_spec='-L$libdir'
8388 hardcode_direct=yes
8389 hardcode_minus_L=yes
8390 hardcode_shlibpath_var=no
8391 ;;
8392
8393 sysv4)
8394 case $host_vendor in
8395 sni)
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_direct=yes # is this really true???
8398 ;;
8399 siemens)
8400 ## LD is ld it makes a PLAMLIB
8401 ## CC just makes a GrossModule.
8402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8403 reload_cmds='$CC -r -o $output$reload_objs'
8404 hardcode_direct=no
8405 ;;
8406 motorola)
8407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8409 ;;
8410 esac
8411 runpath_var='LD_RUN_PATH'
8412 hardcode_shlibpath_var=no
8413 ;;
8414
8415 sysv4.3*)
8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417 hardcode_shlibpath_var=no
8418 export_dynamic_flag_spec='-Bexport'
8419 ;;
8420
8421 sysv4*MP*)
8422 if test -d /usr/nec; then
8423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8424 hardcode_shlibpath_var=no
8425 runpath_var=LD_RUN_PATH
8426 hardcode_runpath_var=yes
8427 ld_shlibs=yes
8428 fi
8429 ;;
8430
8431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8432 no_undefined_flag='${wl}-z,text'
8433 archive_cmds_need_lc=no
8434 hardcode_shlibpath_var=no
8435 runpath_var='LD_RUN_PATH'
8436
8437 if test "$GCC" = yes; then
8438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 else
8441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 fi
8444 ;;
8445
8446 sysv5* | sco3.2v5* | sco5v6*)
8447 # Note: We can NOT use -z defs as we might desire, because we do not
8448 # link with -lc, and that would cause any symbols used from libc to
8449 # always be unresolved, which means just about no library would
8450 # ever link correctly. If we're not using GNU ld we use -z text
8451 # though, which does catch some bad symbols but isn't as heavy-handed
8452 # as -z defs.
8453 no_undefined_flag='${wl}-z,text'
8454 allow_undefined_flag='${wl}-z,nodefs'
8455 archive_cmds_need_lc=no
8456 hardcode_shlibpath_var=no
8457 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8458 hardcode_libdir_separator=':'
8459 link_all_deplibs=yes
8460 export_dynamic_flag_spec='${wl}-Bexport'
8461 runpath_var='LD_RUN_PATH'
8462
8463 if test "$GCC" = yes; then
8464 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8465 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 else
8467 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8469 fi
8470 ;;
8471
8472 uts4*)
8473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474 hardcode_libdir_flag_spec='-L$libdir'
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 *)
8479 ld_shlibs=no
8480 ;;
8481 esac
8482
8483 if test x$host_vendor = xsni; then
8484 case $host in
8485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8486 export_dynamic_flag_spec='${wl}-Blargedynsym'
8487 ;;
8488 esac
8489 fi
8490 fi
8491
8492echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8493echo "${ECHO_T}$ld_shlibs" >&6
8494test "$ld_shlibs" = no && can_build_shared=no
8495
8496with_gnu_ld=$with_gnu_ld
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512#
8513# Do we need to explicitly link libc?
8514#
8515case "x$archive_cmds_need_lc" in
8516x|xyes)
8517 # Assume -lc should be added
8518 archive_cmds_need_lc=yes
8519
8520 if test "$enable_shared" = yes && test "$GCC" = yes; then
8521 case $archive_cmds in
8522 *'~'*)
8523 # FIXME: we may have to deal with multi-command sequences.
8524 ;;
8525 '$CC '*)
8526 # Test whether the compiler implicitly links with -lc since on some
8527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8528 # to ld, don't add -lc before -lgcc.
8529 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8530echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8531 $RM conftest*
8532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8533
8534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8535 (eval $ac_compile) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } 2>conftest.err; then
8539 soname=conftest
8540 lib=conftest
8541 libobjs=conftest.$ac_objext
8542 deplibs=
8543 wl=$lt_prog_compiler_wl
8544 pic_flag=$lt_prog_compiler_pic
8545 compiler_flags=-v
8546 linker_flags=-v
8547 verstring=
8548 output_objdir=.
8549 libname=conftest
8550 lt_save_allow_undefined_flag=$allow_undefined_flag
8551 allow_undefined_flag=
8552 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8553 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }
8557 then
8558 archive_cmds_need_lc=no
8559 else
8560 archive_cmds_need_lc=yes
8561 fi
8562 allow_undefined_flag=$lt_save_allow_undefined_flag
8563 else
8564 cat conftest.err 1>&5
8565 fi
8566 $RM conftest*
8567 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8568echo "${ECHO_T}$archive_cmds_need_lc" >&6
8569 ;;
8570 esac
8571 fi
8572 ;;
8573esac
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8732echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8733withGCC=$GCC
8734if test "$withGCC" = yes; then
8735 case $host_os in
8736 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8737 *) lt_awk_arg="/^libraries:/" ;;
8738 esac
8739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8740 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8741 # if the path contains ";" then we assume it to be the separator
8742 # otherwise default to the standard path separator (i.e. ":") - it is
8743 # assumed that no part of a normal pathname contains ";" but that should
8744 # okay in the real world where ";" in dirpaths is itself problematic.
8745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8746 else
8747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8748 fi
8749 # Ok, now we have the path, separated by spaces, we can step through it
8750 # and add multilib dir if necessary.
8751 lt_tmp_lt_search_path_spec=
8752 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8753 for lt_sys_path in $lt_search_path_spec; do
8754 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8756 else
8757 test -d "$lt_sys_path" && \
8758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8759 fi
8760 done
8761 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8762BEGIN {RS=" "; FS="/|\n";} {
8763 lt_foo="";
8764 lt_count=0;
8765 for (lt_i = NF; lt_i > 0; lt_i--) {
8766 if ($lt_i != "" && $lt_i != ".") {
8767 if ($lt_i == "..") {
8768 lt_count++;
8769 } else {
8770 if (lt_count == 0) {
8771 lt_foo="/" $lt_i lt_foo;
8772 } else {
8773 lt_count--;
8774 }
8775 }
8776 }
8777 }
8778 if (lt_foo != "") { lt_freq[lt_foo]++; }
8779 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8780}'`
8781 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8782else
8783 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8784fi
8785library_names_spec=
8786libname_spec='lib$name'
8787soname_spec=
8788shrext_cmds=".so"
8789postinstall_cmds=
8790postuninstall_cmds=
8791finish_cmds=
8792finish_eval=
8793shlibpath_var=
8794shlibpath_overrides_runpath=unknown
8795version_type=none
8796dynamic_linker="$host_os ld.so"
8797sys_lib_dlsearch_path_spec="/lib /usr/lib"
8798need_lib_prefix=unknown
8799hardcode_into_libs=no
8800
8801# when you set need_version to no, make sure it does not cause -set_version
8802# flags to be left without arguments
8803need_version=unknown
8804
8805case $host_os in
8806aix3*)
8807 version_type=linux
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8809 shlibpath_var=LIBPATH
8810
8811 # AIX 3 has no versioning support, so we append a major version to the name.
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 ;;
8814
e81819a5 8815aix[4-9]*)
d7040cdb
SE
8816 version_type=linux
8817 need_lib_prefix=no
8818 need_version=no
8819 hardcode_into_libs=yes
8820 if test "$host_cpu" = ia64; then
8821 # AIX 5 supports IA64
8822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 else
8825 # With GCC up to 2.95.x, collect2 would create an import file
8826 # for dependence libraries. The import file would start with
8827 # the line `#! .'. This would cause the generated library to
8828 # depend on `.', always an invalid library. This was fixed in
8829 # development snapshots of GCC prior to 3.0.
8830 case $host_os in
8831 aix4 | aix4.[01] | aix4.[01].*)
8832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8833 echo ' yes '
8834 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8835 :
8836 else
8837 can_build_shared=no
8838 fi
8839 ;;
8840 esac
8841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8842 # soname into executable. Probably we can add versioning support to
8843 # collect2, so additional links can be useful in future.
8844 if test "$aix_use_runtimelinking" = yes; then
8845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8846 # instead of lib<name>.a to let people know that these are not
8847 # typical AIX shared libraries.
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 else
8850 # We preserve .a as extension for shared libraries through AIX4.2
8851 # and later when we are not doing run time linking.
8852 library_names_spec='${libname}${release}.a $libname.a'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 fi
8855 shlibpath_var=LIBPATH
8856 fi
8857 ;;
8858
8859amigaos*)
8860 if test "$host_cpu" = m68k; then
8861 library_names_spec='$libname.ixlibrary $libname.a'
8862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8863 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'
8864 else
8865 dynamic_linker=no
8866 fi
8867 ;;
8868
8869beos*)
8870 library_names_spec='${libname}${shared_ext}'
8871 dynamic_linker="$host_os ld.so"
8872 shlibpath_var=LIBRARY_PATH
8873 ;;
8874
8875bsdi[45]*)
8876 version_type=linux
8877 need_version=no
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8884 # the default ld.so.conf also contains /usr/contrib/lib and
8885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8886 # libtool to hard-code these into programs
8887 ;;
8888
8889cygwin* | mingw* | pw32*)
8890 version_type=windows
8891 shrext_cmds=".dll"
8892 need_version=no
8893 need_lib_prefix=no
8894
8895 case $withGCC,$host_os in
8896 yes,cygwin* | yes,mingw* | yes,pw32*)
8897 library_names_spec='$libname.dll.a'
8898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8899 postinstall_cmds='base_file=`basename \${file}`~
8900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8901 dldir=$destdir/`dirname \$dlpath`~
8902 test -d \$dldir || mkdir -p \$dldir~
8903 $install_prog $dir/$dlname \$dldir/$dlname~
8904 chmod a+x \$dldir/$dlname~
8905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8907 fi'
8908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8909 dlpath=$dir/\$dldll~
8910 $RM \$dlpath'
8911 shlibpath_overrides_runpath=yes
8912
8913 case $host_os in
8914 cygwin*)
8915 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8918 ;;
8919 mingw*)
8920 # MinGW DLLs use traditional 'lib' prefix
8921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8923 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8924 # It is most probably a Windows format PATH printed by
8925 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8926 # path with ; separators, and with drive letters. We can handle the
8927 # drive letters (cygwin fileutils understands them), so leave them,
8928 # especially as we might pass files found there to a mingw objdump,
8929 # which wouldn't understand a cygwinified path. Ahh.
8930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8931 else
8932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8933 fi
8934 ;;
8935 pw32*)
8936 # pw32 DLLs use 'pw' prefix rather than 'lib'
8937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 ;;
8939 esac
8940 ;;
8941
8942 *)
8943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8944 ;;
8945 esac
8946 dynamic_linker='Win32 ld.exe'
8947 # FIXME: first we should search . and the directory the executable is in
8948 shlibpath_var=PATH
8949 ;;
8950
8951darwin* | rhapsody*)
8952 dynamic_linker="$host_os dyld"
8953 version_type=darwin
8954 need_lib_prefix=no
8955 need_version=no
8956 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8957 soname_spec='${libname}${release}${major}$shared_ext'
8958 shlibpath_overrides_runpath=yes
8959 shlibpath_var=DYLD_LIBRARY_PATH
8960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8961
8962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8964 ;;
8965
8966dgux*)
8967 version_type=linux
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 ;;
8974
8975freebsd1*)
8976 dynamic_linker=no
8977 ;;
8978
8979freebsd* | dragonfly*)
8980 # DragonFly does not have aout. When/if they implement a new
8981 # versioning mechanism, adjust this.
8982 if test -x /usr/bin/objformat; then
8983 objformat=`/usr/bin/objformat`
8984 else
8985 case $host_os in
8986 freebsd[123]*) objformat=aout ;;
8987 *) objformat=elf ;;
8988 esac
8989 fi
8990 version_type=freebsd-$objformat
8991 case $version_type in
8992 freebsd-elf*)
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8994 need_version=no
8995 need_lib_prefix=no
8996 ;;
8997 freebsd-*)
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8999 need_version=yes
9000 ;;
9001 esac
9002 shlibpath_var=LD_LIBRARY_PATH
9003 case $host_os in
9004 freebsd2*)
9005 shlibpath_overrides_runpath=yes
9006 ;;
9007 freebsd3.[01]* | freebsdelf3.[01]*)
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 ;;
9011 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9012 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9013 shlibpath_overrides_runpath=no
9014 hardcode_into_libs=yes
9015 ;;
9016 *) # from 4.6 on, and DragonFly
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 ;;
9020 esac
9021 ;;
9022
9023gnu*)
9024 version_type=linux
9025 need_lib_prefix=no
9026 need_version=no
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 hardcode_into_libs=yes
9031 ;;
9032
9033hpux9* | hpux10* | hpux11*)
9034 # Give a soname corresponding to the major version so that dld.sl refuses to
9035 # link against other versions.
9036 version_type=sunos
9037 need_lib_prefix=no
9038 need_version=no
9039 case $host_cpu in
9040 ia64*)
9041 shrext_cmds='.so'
9042 hardcode_into_libs=yes
9043 dynamic_linker="$host_os dld.so"
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 if test "X$HPUX_IA64_MODE" = X32; then
9049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9050 else
9051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9052 fi
9053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9054 ;;
9055 hppa*64*)
9056 shrext_cmds='.sl'
9057 hardcode_into_libs=yes
9058 dynamic_linker="$host_os dld.sl"
9059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9065 ;;
9066 *)
9067 shrext_cmds='.sl'
9068 dynamic_linker="$host_os dld.sl"
9069 shlibpath_var=SHLIB_PATH
9070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 ;;
9074 esac
9075 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9076 postinstall_cmds='chmod 555 $lib'
9077 ;;
9078
9079interix[3-9]*)
9080 version_type=linux
9081 need_lib_prefix=no
9082 need_version=no
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=no
9088 hardcode_into_libs=yes
9089 ;;
9090
9091irix5* | irix6* | nonstopux*)
9092 case $host_os in
9093 nonstopux*) version_type=nonstopux ;;
9094 *)
9095 if test "$lt_cv_prog_gnu_ld" = yes; then
9096 version_type=linux
9097 else
9098 version_type=irix
9099 fi ;;
9100 esac
9101 need_lib_prefix=no
9102 need_version=no
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9105 case $host_os in
9106 irix5* | nonstopux*)
9107 libsuff= shlibsuff=
9108 ;;
9109 *)
9110 case $LD in # libtool.m4 will add one of these switches to LD
9111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9112 libsuff= shlibsuff= libmagic=32-bit;;
9113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9114 libsuff=32 shlibsuff=N32 libmagic=N32;;
9115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9117 *) libsuff= shlibsuff= libmagic=never-match;;
9118 esac
9119 ;;
9120 esac
9121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9122 shlibpath_overrides_runpath=no
9123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9125 hardcode_into_libs=yes
9126 ;;
9127
9128# No shared lib support for Linux oldld, aout, or coff.
9129linux*oldld* | linux*aout* | linux*coff*)
9130 dynamic_linker=no
9131 ;;
9132
9133# This must be Linux ELF.
9134linux* | k*bsd*-gnu)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 # Some binutils ld are patched to set DT_RUNPATH
9144 save_LDFLAGS=$LDFLAGS
9145 save_libdir=$libdir
9146 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9147 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9148 cat >conftest.$ac_ext <<_ACEOF
9149/* confdefs.h. */
9150_ACEOF
9151cat confdefs.h >>conftest.$ac_ext
9152cat >>conftest.$ac_ext <<_ACEOF
9153/* end confdefs.h. */
9154
9155int
9156main ()
9157{
9158
9159 ;
9160 return 0;
9161}
9162_ACEOF
9163rm -f conftest.$ac_objext conftest$ac_exeext
9164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try='test -z "$ac_c_werror_flag"
9173 || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9186 shlibpath_overrides_runpath=yes
9187fi
9188
9189else
9190 echo "$as_me: failed program was:" >&5
9191sed 's/^/| /' conftest.$ac_ext >&5
9192
9193fi
9194rm -f conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 LDFLAGS=$save_LDFLAGS
9197 libdir=$save_libdir
9198
9199 # This implies no fast_install, which is unacceptable.
9200 # Some rework will be needed to allow for fast_install
9201 # before this can be enabled.
9202 hardcode_into_libs=yes
9203
9204 # Append ld.so.conf contents to the search path
9205 if test -f /etc/ld.so.conf; then
9206 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' ' '`
9207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9208 fi
9209
9210 # We used to test for /lib/ld.so.1 and disable shared libraries on
9211 # powerpc, because MkLinux only supported shared libraries with the
9212 # GNU dynamic linker. Since this was broken with cross compilers,
9213 # most powerpc-linux boxes support dynamic linking these days and
9214 # people can always --disable-shared, the test was removed, and we
9215 # assume the GNU/Linux dynamic linker is in use.
9216 dynamic_linker='GNU/Linux ld.so'
9217 ;;
9218
9219netbsd*)
9220 version_type=sunos
9221 need_lib_prefix=no
9222 need_version=no
9223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9226 dynamic_linker='NetBSD (a.out) ld.so'
9227 else
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 dynamic_linker='NetBSD ld.elf_so'
9231 fi
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9234 hardcode_into_libs=yes
9235 ;;
9236
9237newsos6)
9238 version_type=linux
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=yes
9242 ;;
9243
9244*nto* | *qnx*)
9245 version_type=qnx
9246 need_lib_prefix=no
9247 need_version=no
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=no
9252 hardcode_into_libs=yes
9253 dynamic_linker='ldqnx.so'
9254 ;;
9255
9256openbsd*)
9257 version_type=sunos
9258 sys_lib_dlsearch_path_spec="/usr/lib"
9259 need_lib_prefix=no
9260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9261 case $host_os in
9262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9263 *) need_version=no ;;
9264 esac
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9269 case $host_os in
9270 openbsd2.[89] | openbsd2.[89].*)
9271 shlibpath_overrides_runpath=no
9272 ;;
9273 *)
9274 shlibpath_overrides_runpath=yes
9275 ;;
9276 esac
9277 else
9278 shlibpath_overrides_runpath=yes
9279 fi
9280 ;;
9281
9282os2*)
9283 libname_spec='$name'
9284 shrext_cmds=".dll"
9285 need_lib_prefix=no
9286 library_names_spec='$libname${shared_ext} $libname.a'
9287 dynamic_linker='OS/2 ld.exe'
9288 shlibpath_var=LIBPATH
9289 ;;
9290
9291osf3* | osf4* | osf5*)
9292 version_type=osf
9293 need_lib_prefix=no
9294 need_version=no
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9300 ;;
9301
9302rdos*)
9303 dynamic_linker=no
9304 ;;
9305
9306solaris*)
9307 version_type=linux
9308 need_lib_prefix=no
9309 need_version=no
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9315 # ldd complains unless libraries are executable
9316 postinstall_cmds='chmod +x $lib'
9317 ;;
9318
9319sunos4*)
9320 version_type=sunos
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9323 shlibpath_var=LD_LIBRARY_PATH
9324 shlibpath_overrides_runpath=yes
9325 if test "$with_gnu_ld" = yes; then
9326 need_lib_prefix=no
9327 fi
9328 need_version=yes
9329 ;;
9330
9331sysv4 | sysv4.3*)
9332 version_type=linux
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 shlibpath_var=LD_LIBRARY_PATH
9336 case $host_vendor in
9337 sni)
9338 shlibpath_overrides_runpath=no
9339 need_lib_prefix=no
9340 runpath_var=LD_RUN_PATH
9341 ;;
9342 siemens)
9343 need_lib_prefix=no
9344 ;;
9345 motorola)
9346 need_lib_prefix=no
9347 need_version=no
9348 shlibpath_overrides_runpath=no
9349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9350 ;;
9351 esac
9352 ;;
9353
9354sysv4*MP*)
9355 if test -d /usr/nec ;then
9356 version_type=linux
9357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9358 soname_spec='$libname${shared_ext}.$major'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 fi
9361 ;;
9362
9363sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9364 version_type=freebsd-elf
9365 need_lib_prefix=no
9366 need_version=no
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=yes
9371 hardcode_into_libs=yes
9372 if test "$with_gnu_ld" = yes; then
9373 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9374 else
9375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9376 case $host_os in
9377 sco3.2v5*)
9378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9379 ;;
9380 esac
9381 fi
9382 sys_lib_dlsearch_path_spec='/usr/lib'
9383 ;;
9384
9385tpf*)
9386 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9387 version_type=linux
9388 need_lib_prefix=no
9389 need_version=no
9390 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=no
9393 hardcode_into_libs=yes
9394 ;;
9395
9396uts4*)
9397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 ;;
9402
9403*)
9404 dynamic_linker=no
9405 ;;
9406esac
9407echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9408echo "${ECHO_T}$dynamic_linker" >&6
9409test "$dynamic_linker" = no && can_build_shared=no
9410
9411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9412if test "$GCC" = yes; then
9413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9414fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9503echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9504hardcode_action=
9505if test -n "$hardcode_libdir_flag_spec" ||
9506 test -n "$runpath_var" ||
9507 test "X$hardcode_automatic" = "Xyes" ; then
9508
9509 # We can hardcode non-existent directories.
9510 if test "$hardcode_direct" != no &&
9511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9512 # have to relink, otherwise we might link with an installed library
9513 # when we should be linking with a yet-to-be-installed one
9514 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9515 test "$hardcode_minus_L" != no; then
9516 # Linking always hardcodes the temporary library directory.
9517 hardcode_action=relink
9518 else
9519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9520 hardcode_action=immediate
9521 fi
9522else
9523 # We cannot hardcode anything, or else we can only hardcode existing
9524 # directories.
9525 hardcode_action=unsupported
9526fi
9527echo "$as_me:$LINENO: result: $hardcode_action" >&5
9528echo "${ECHO_T}$hardcode_action" >&6
9529
9530if test "$hardcode_action" = relink ||
9531 test "$inherit_rpath" = yes; then
9532 # Fast installation is not supported
9533 enable_fast_install=no
9534elif test "$shlibpath_overrides_runpath" = yes ||
9535 test "$enable_shared" = no; then
9536 # Fast installation is not necessary
9537 enable_fast_install=needless
9538fi
9539
9540
9541
9542
9543
9544
9545 if test "x$enable_dlopen" != xyes; then
9546 enable_dlopen=unknown
9547 enable_dlopen_self=unknown
9548 enable_dlopen_self_static=unknown
9549else
9550 lt_cv_dlopen=no
9551 lt_cv_dlopen_libs=
9552
9553 case $host_os in
9554 beos*)
9555 lt_cv_dlopen="load_add_on"
9556 lt_cv_dlopen_libs=
9557 lt_cv_dlopen_self=yes
9558 ;;
9559
9560 mingw* | pw32*)
9561 lt_cv_dlopen="LoadLibrary"
9562 lt_cv_dlopen_libs=
9563 ;;
9564
9565 cygwin*)
9566 lt_cv_dlopen="dlopen"
9567 lt_cv_dlopen_libs=
9568 ;;
9569
9570 darwin*)
9571 # if libdl is installed we need to link against it
9572 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9573echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9574if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576else
9577 ac_check_lib_save_LIBS=$LIBS
9578LIBS="-ldl $LIBS"
9579cat >conftest.$ac_ext <<_ACEOF
9580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h. */
9585
9586/* Override any gcc2 internal prototype to avoid an error. */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590/* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9592char dlopen ();
9593int
9594main ()
9595{
9596dlopen ();
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601rm -f conftest.$ac_objext conftest$ac_exeext
9602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_cv_lib_dl_dlopen=yes
9624else
9625 echo "$as_me: failed program was:" >&5
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
9628ac_cv_lib_dl_dlopen=no
9629fi
9630rm -f conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632LIBS=$ac_check_lib_save_LIBS
9633fi
9634echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9635echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9636if test $ac_cv_lib_dl_dlopen = yes; then
9637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9638else
9639
9640 lt_cv_dlopen="dyld"
9641 lt_cv_dlopen_libs=
9642 lt_cv_dlopen_self=yes
9643
9644fi
9645
9646 ;;
9647
9648 *)
9649 echo "$as_me:$LINENO: checking for shl_load" >&5
9650echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9651if test "${ac_cv_func_shl_load+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662#define shl_load innocuous_shl_load
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef shl_load
9676
9677/* Override any gcc2 internal prototype to avoid an error. */
9678#ifdef __cplusplus
9679extern "C"
9680{
9681#endif
9682/* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9684char shl_load ();
9685/* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688#if defined (__stub_shl_load) || defined (__stub___shl_load)
9689choke me
9690#else
9691char (*f) () = shl_load;
9692#endif
9693#ifdef __cplusplus
9694}
9695#endif
9696
9697int
9698main ()
9699{
9700return f != shl_load;
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
9706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_func_shl_load=yes
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732ac_cv_func_shl_load=no
9733fi
9734rm -f conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736fi
9737echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9738echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9739if test $ac_cv_func_shl_load = yes; then
9740 lt_cv_dlopen="shl_load"
9741else
9742 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9743echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9744if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747 ac_check_lib_save_LIBS=$LIBS
9748LIBS="-ldld $LIBS"
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755
9756/* Override any gcc2 internal prototype to avoid an error. */
9757#ifdef __cplusplus
9758extern "C"
9759#endif
9760/* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9762char shl_load ();
9763int
9764main ()
9765{
9766shl_load ();
9767 ;
9768 return 0;
9769}
9770_ACEOF
9771rm -f conftest.$ac_objext conftest$ac_exeext
9772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_lib_dld_shl_load=yes
9794else
9795 echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798ac_cv_lib_dld_shl_load=no
9799fi
9800rm -f conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802LIBS=$ac_check_lib_save_LIBS
9803fi
9804echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9805echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9806if test $ac_cv_lib_dld_shl_load = yes; then
9807 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9808else
9809 echo "$as_me:$LINENO: checking for dlopen" >&5
9810echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9811if test "${ac_cv_func_dlopen+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813else
9814 cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h. */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h. */
9820/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822#define dlopen innocuous_dlopen
9823
9824/* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char dlopen (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9828
9829#ifdef __STDC__
9830# include <limits.h>
9831#else
9832# include <assert.h>
9833#endif
9834
9835#undef dlopen
9836
9837/* Override any gcc2 internal prototype to avoid an error. */
9838#ifdef __cplusplus
9839extern "C"
9840{
9841#endif
9842/* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9844char dlopen ();
9845/* The GNU C library defines this for functions which it implements
9846 to always fail with ENOSYS. Some functions are actually named
9847 something starting with __ and the normal name is an alias. */
9848#if defined (__stub_dlopen) || defined (__stub___dlopen)
9849choke me
9850#else
9851char (*f) () = dlopen;
9852#endif
9853#ifdef __cplusplus
9854}
9855#endif
9856
9857int
9858main ()
9859{
9860return f != dlopen;
9861 ;
9862 return 0;
9863}
9864_ACEOF
9865rm -f conftest.$ac_objext conftest$ac_exeext
9866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_func_dlopen=yes
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
9892ac_cv_func_dlopen=no
9893fi
9894rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896fi
9897echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9898echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9899if test $ac_cv_func_dlopen = yes; then
9900 lt_cv_dlopen="dlopen"
9901else
9902 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9903echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9904if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 ac_check_lib_save_LIBS=$LIBS
9908LIBS="-ldl $LIBS"
9909cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
9915
9916/* Override any gcc2 internal prototype to avoid an error. */
9917#ifdef __cplusplus
9918extern "C"
9919#endif
9920/* We use char because int might match the return type of a gcc2
9921 builtin and then its argument prototype would still apply. */
9922char dlopen ();
9923int
9924main ()
9925{
9926dlopen ();
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext conftest$ac_exeext
9932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
9934 ac_status=$?
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
9940 { ac_try='test -z "$ac_c_werror_flag"
9941 || test ! -s conftest.err'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; } &&
9947 { ac_try='test -s conftest$ac_exeext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949 (eval $ac_try) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_lib_dl_dlopen=yes
9954else
9955 echo "$as_me: failed program was:" >&5
9956sed 's/^/| /' conftest.$ac_ext >&5
9957
9958ac_cv_lib_dl_dlopen=no
9959fi
9960rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962LIBS=$ac_check_lib_save_LIBS
9963fi
9964echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9965echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9966if test $ac_cv_lib_dl_dlopen = yes; then
9967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9968else
9969 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9970echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9971if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 ac_check_lib_save_LIBS=$LIBS
9975LIBS="-lsvld $LIBS"
9976cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h. */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
9981/* end confdefs.h. */
9982
9983/* Override any gcc2 internal prototype to avoid an error. */
9984#ifdef __cplusplus
9985extern "C"
9986#endif
9987/* We use char because int might match the return type of a gcc2
9988 builtin and then its argument prototype would still apply. */
9989char dlopen ();
9990int
9991main ()
9992{
9993dlopen ();
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext conftest$ac_exeext
9999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_lib_svld_dlopen=yes
10021else
10022 echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025ac_cv_lib_svld_dlopen=no
10026fi
10027rm -f conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029LIBS=$ac_check_lib_save_LIBS
10030fi
10031echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10032echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10033if test $ac_cv_lib_svld_dlopen = yes; then
10034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10035else
10036 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10037echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10038if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10040else
10041 ac_check_lib_save_LIBS=$LIBS
10042LIBS="-ldld $LIBS"
10043cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h. */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h. */
10049
10050/* Override any gcc2 internal prototype to avoid an error. */
10051#ifdef __cplusplus
10052extern "C"
10053#endif
10054/* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10056char dld_link ();
10057int
10058main ()
10059{
10060dld_link ();
10061 ;
10062 return 0;
10063}
10064_ACEOF
10065rm -f conftest.$ac_objext conftest$ac_exeext
10066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag"
10075 || test ! -s conftest.err'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10084 ac_status=$?
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_lib_dld_dld_link=yes
10088else
10089 echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092ac_cv_lib_dld_dld_link=no
10093fi
10094rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096LIBS=$ac_check_lib_save_LIBS
10097fi
10098echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10099echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10100if test $ac_cv_lib_dld_dld_link = yes; then
10101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10102fi
10103
10104
10105fi
10106
10107
10108fi
10109
10110
10111fi
10112
10113
10114fi
10115
10116
10117fi
10118
10119 ;;
10120 esac
10121
10122 if test "x$lt_cv_dlopen" != xno; then
10123 enable_dlopen=yes
20e95c23 10124 else
d7040cdb 10125 enable_dlopen=no
252b5132 10126 fi
5464f5a1 10127
d7040cdb
SE
10128 case $lt_cv_dlopen in
10129 dlopen)
10130 save_CPPFLAGS="$CPPFLAGS"
10131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10132
10133 save_LDFLAGS="$LDFLAGS"
10134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10135
10136 save_LIBS="$LIBS"
10137 LIBS="$lt_cv_dlopen_libs $LIBS"
10138
10139 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10140echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10141if test "${lt_cv_dlopen_self+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10143else
d7040cdb
SE
10144 if test "$cross_compiling" = yes; then :
10145 lt_cv_dlopen_self=cross
10146else
10147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10148 lt_status=$lt_dlunknown
10149 cat > conftest.$ac_ext <<_LT_EOF
7a283e07 10150#line 10150 "configure"
d7040cdb
SE
10151#include "confdefs.h"
10152
10153#if HAVE_DLFCN_H
10154#include <dlfcn.h>
10155#endif
10156
10157#include <stdio.h>
10158
10159#ifdef RTLD_GLOBAL
10160# define LT_DLGLOBAL RTLD_GLOBAL
10161#else
10162# ifdef DL_GLOBAL
10163# define LT_DLGLOBAL DL_GLOBAL
10164# else
10165# define LT_DLGLOBAL 0
10166# endif
10167#endif
10168
10169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10170 find out it does not work in some platform. */
10171#ifndef LT_DLLAZY_OR_NOW
10172# ifdef RTLD_LAZY
10173# define LT_DLLAZY_OR_NOW RTLD_LAZY
10174# else
10175# ifdef DL_LAZY
10176# define LT_DLLAZY_OR_NOW DL_LAZY
10177# else
10178# ifdef RTLD_NOW
10179# define LT_DLLAZY_OR_NOW RTLD_NOW
10180# else
10181# ifdef DL_NOW
10182# define LT_DLLAZY_OR_NOW DL_NOW
10183# else
10184# define LT_DLLAZY_OR_NOW 0
10185# endif
10186# endif
10187# endif
10188# endif
10189#endif
10190
10191#ifdef __cplusplus
10192extern "C" void exit (int);
10193#endif
10194
10195void fnord() { int i=42;}
10196int main ()
10197{
10198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10199 int status = $lt_dlunknown;
10200
10201 if (self)
10202 {
10203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10204 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10205 /* dlclose (self); */
10206 }
10207 else
10208 puts (dlerror ());
10209
10210 exit (status);
10211}
10212_LT_EOF
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10218 (./conftest; exit; ) >&5 2>/dev/null
10219 lt_status=$?
10220 case x$lt_status in
10221 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10222 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10223 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10224 esac
10225 else :
10226 # compilation failed
10227 lt_cv_dlopen_self=no
10228 fi
252b5132 10229fi
d7040cdb 10230rm -fr conftest*
20e95c23 10231
d7040cdb
SE
10232
10233fi
10234echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10235echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10236
10237 if test "x$lt_cv_dlopen_self" = xyes; then
10238 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10239 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10240echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10241if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
d7040cdb
SE
10244 if test "$cross_compiling" = yes; then :
10245 lt_cv_dlopen_self_static=cross
10246else
10247 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10248 lt_status=$lt_dlunknown
10249 cat > conftest.$ac_ext <<_LT_EOF
7a283e07 10250#line 10250 "configure"
d7040cdb
SE
10251#include "confdefs.h"
10252
10253#if HAVE_DLFCN_H
10254#include <dlfcn.h>
10255#endif
10256
10257#include <stdio.h>
10258
10259#ifdef RTLD_GLOBAL
10260# define LT_DLGLOBAL RTLD_GLOBAL
10261#else
10262# ifdef DL_GLOBAL
10263# define LT_DLGLOBAL DL_GLOBAL
10264# else
10265# define LT_DLGLOBAL 0
10266# endif
10267#endif
10268
10269/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10270 find out it does not work in some platform. */
10271#ifndef LT_DLLAZY_OR_NOW
10272# ifdef RTLD_LAZY
10273# define LT_DLLAZY_OR_NOW RTLD_LAZY
10274# else
10275# ifdef DL_LAZY
10276# define LT_DLLAZY_OR_NOW DL_LAZY
10277# else
10278# ifdef RTLD_NOW
10279# define LT_DLLAZY_OR_NOW RTLD_NOW
10280# else
10281# ifdef DL_NOW
10282# define LT_DLLAZY_OR_NOW DL_NOW
10283# else
10284# define LT_DLLAZY_OR_NOW 0
10285# endif
10286# endif
10287# endif
10288# endif
10289#endif
10290
10291#ifdef __cplusplus
10292extern "C" void exit (int);
10293#endif
10294
10295void fnord() { int i=42;}
10296int main ()
10297{
10298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10299 int status = $lt_dlunknown;
10300
10301 if (self)
10302 {
10303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10304 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10305 /* dlclose (self); */
10306 }
10307 else
10308 puts (dlerror ());
10309
10310 exit (status);
10311}
10312_LT_EOF
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10318 (./conftest; exit; ) >&5 2>/dev/null
10319 lt_status=$?
10320 case x$lt_status in
10321 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10322 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10323 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10324 esac
10325 else :
10326 # compilation failed
10327 lt_cv_dlopen_self_static=no
10328 fi
10329fi
10330rm -fr conftest*
10331
10332
10333fi
10334echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10335echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10336 fi
10337
10338 CPPFLAGS="$save_CPPFLAGS"
10339 LDFLAGS="$save_LDFLAGS"
10340 LIBS="$save_LIBS"
10341 ;;
10342 esac
10343
10344 case $lt_cv_dlopen_self in
10345 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10346 *) enable_dlopen_self=unknown ;;
10347 esac
10348
10349 case $lt_cv_dlopen_self_static in
10350 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10351 *) enable_dlopen_self_static=unknown ;;
10352 esac
10353fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371striplib=
10372old_striplib=
10373echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10374echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10375if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10376 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10377 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10378 echo "$as_me:$LINENO: result: yes" >&5
10379echo "${ECHO_T}yes" >&6
10380else
10381# FIXME - insert some real tests, host_os isn't really good enough
10382 case $host_os in
10383 darwin*)
10384 if test -n "$STRIP" ; then
10385 striplib="$STRIP -x"
10386 old_striplib="$STRIP -S"
10387 echo "$as_me:$LINENO: result: yes" >&5
10388echo "${ECHO_T}yes" >&6
10389 else
10390 echo "$as_me:$LINENO: result: no" >&5
10391echo "${ECHO_T}no" >&6
10392 fi
20e95c23
DJ
10393 ;;
10394 *)
d7040cdb
SE
10395 echo "$as_me:$LINENO: result: no" >&5
10396echo "${ECHO_T}no" >&6
10397 ;;
10398 esac
10399fi
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412 # Report which library types will actually be built
10413 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10414echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10415 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10416echo "${ECHO_T}$can_build_shared" >&6
10417
10418 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10419echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10420 test "$can_build_shared" = "no" && enable_shared=no
10421
10422 # On AIX, shared libraries and static libraries use the same namespace, and
10423 # are all built from PIC.
10424 case $host_os in
10425 aix3*)
10426 test "$enable_shared" = yes && enable_static=no
10427 if test -n "$RANLIB"; then
10428 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10429 postinstall_cmds='$RANLIB $lib'
10430 fi
10431 ;;
10432
e81819a5 10433 aix[4-9]*)
d7040cdb
SE
10434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10435 test "$enable_shared" = yes && enable_static=no
10436 fi
20e95c23 10437 ;;
d7040cdb
SE
10438 esac
10439 echo "$as_me:$LINENO: result: $enable_shared" >&5
10440echo "${ECHO_T}$enable_shared" >&6
10441
10442 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10443echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10444 # Make sure either enable_shared or enable_static is yes.
10445 test "$enable_shared" = yes || enable_static=yes
10446 echo "$as_me:$LINENO: result: $enable_static" >&5
10447echo "${ECHO_T}$enable_static" >&6
10448
10449
10450
10451
10452fi
10453ac_ext=c
10454ac_cpp='$CPP $CPPFLAGS'
10455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10457ac_compiler_gnu=$ac_cv_c_compiler_gnu
10458
10459CC="$lt_save_CC"
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473 ac_config_commands="$ac_config_commands libtool"
10474
10475
10476
10477
10478# Only expand once:
10479
10480
10481
10482# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10483if test "${enable_64_bit_bfd+set}" = set; then
10484 enableval="$enable_64_bit_bfd"
10485 case "${enableval}" in
10486 yes) want64=true ;;
10487 no) want64=false ;;
10488 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10489echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10490 { (exit 1); exit 1; }; } ;;
10491esac
10492else
10493 want64=false
504b7d20
NC
10494fi;
10495# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
10496if test "${enable_targets+set}" = set; then
10497 enableval="$enable_targets"
10498 case "${enableval}" in
10499 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10500echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10501 { (exit 1); exit 1; }; }
10502 ;;
10503 no) enable_targets= ;;
10504 *) enable_targets=$enableval ;;
10505esac
504b7d20
NC
10506fi;
10507# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
10508if test "${enable_commonbfdlib+set}" = set; then
10509 enableval="$enable_commonbfdlib"
10510 case "${enableval}" in
10511 yes) commonbfdlib=true ;;
10512 no) commonbfdlib=false ;;
10513 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10514echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10515 { (exit 1); exit 1; }; } ;;
10516esac
10517fi;
504b7d20 10518
d7040cdb
SE
10519# Check whether --with-mmap or --without-mmap was given.
10520if test "${with_mmap+set}" = set; then
10521 withval="$with_mmap"
10522 case "${withval}" in
10523 yes) want_mmap=true ;;
10524 no) want_mmap=false ;;
10525 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10526echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10527 { (exit 1); exit 1; }; } ;;
20e95c23 10528esac
252b5132 10529else
d7040cdb
SE
10530 want_mmap=false
10531fi;
10532# Check whether --enable-secureplt or --disable-secureplt was given.
10533if test "${enable_secureplt+set}" = set; then
10534 enableval="$enable_secureplt"
10535 case "${enableval}" in
10536 yes) use_secureplt=true ;;
10537 no) use_secureplt=false ;;
10538 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10539echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10540 { (exit 1); exit 1; }; } ;;
10541esac
252b5132 10542else
d7040cdb
SE
10543 use_secureplt=false
10544fi; if test $use_secureplt = true; then
10545
10546cat >>confdefs.h <<\_ACEOF
10547#define USE_SECUREPLT 1
10548_ACEOF
5464f5a1 10549
252b5132 10550fi
20e95c23 10551
0d4a1476
AS
10552DEBUGDIR=${libdir}/debug
10553
0d4a1476
AS
10554# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
10555if test "${with_separate_debug_dir+set}" = set; then
10556 withval="$with_separate_debug_dir"
10557 DEBUGDIR="${withval}"
10558fi;
10559
10560
504b7d20
NC
10561# Check to see if we should allow the generation of
10562# symbols with the ELF standard's STT_COMMON type.
10563# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
10564if test "${enable_elf_stt_common+set}" = set; then
10565 enableval="$enable_elf_stt_common"
10566 case "${enableval}" in
10567 yes) want_elf_stt_common=true ;;
10568 no) want_elf_stt_common=false ;;
10569 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
10570echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
10571 { (exit 1); exit 1; }; } ;;
10572 esac
10573else
10574 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
10575# test whether the loader supports the STT_COMMON type, but that would
10576# mean that built binaries could not be exported to older systems where
10577# the loader does not support it. So by default we always choose to
10578# disable this feature.
504b7d20 10579 want_elf_stt_common=false
504b7d20
NC
10580fi; if test $want_elf_stt_common = true; then
10581
10582cat >>confdefs.h <<\_ACEOF
10583#define USE_STT_COMMON 1
10584_ACEOF
10585
10586fi
10587
10588
d7040cdb 10589
d7040cdb
SE
10590# Check whether --with-pkgversion or --without-pkgversion was given.
10591if test "${with_pkgversion+set}" = set; then
10592 withval="$with_pkgversion"
10593 case "$withval" in
10594 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10595echo "$as_me: error: package version not specified" >&2;}
10596 { (exit 1); exit 1; }; } ;;
10597 no) PKGVERSION= ;;
10598 *) PKGVERSION="($withval) " ;;
10599 esac
252b5132 10600else
d7040cdb 10601 PKGVERSION="(GNU Binutils) "
252b5132 10602
d7040cdb 10603fi;
20e95c23
DJ
10604
10605
5464f5a1 10606
20e95c23 10607
d7040cdb
SE
10608# Check whether --with-bugurl or --without-bugurl was given.
10609if test "${with_bugurl+set}" = set; then
10610 withval="$with_bugurl"
10611 case "$withval" in
10612 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10613echo "$as_me: error: bug URL not specified" >&2;}
10614 { (exit 1); exit 1; }; } ;;
10615 no) BUGURL=
10616 ;;
10617 *) BUGURL="$withval"
10618 ;;
10619 esac
252b5132 10620else
d7040cdb
SE
10621 BUGURL="http://www.sourceware.org/bugzilla/"
10622
10623fi;
10624 case ${BUGURL} in
10625 "")
10626 REPORT_BUGS_TO=
10627 REPORT_BUGS_TEXI=
20e95c23
DJ
10628 ;;
10629 *)
d7040cdb
SE
10630 REPORT_BUGS_TO="<$BUGURL>"
10631 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10632 ;;
d7040cdb
SE
10633 esac;
10634
10635
10636
10637
10638
10639GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10640
10641# Check whether --enable-werror or --disable-werror was given.
10642if test "${enable_werror+set}" = set; then
10643 enableval="$enable_werror"
10644 case "${enableval}" in
10645 yes | y) ERROR_ON_WARNING="yes" ;;
10646 no | n) ERROR_ON_WARNING="no" ;;
10647 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10648echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10649 { (exit 1); exit 1; }; } ;;
10650 esac
10651fi;
10652
bb8541b9
L
10653# Enable -Wno-format by default when using gcc on mingw
10654case "${host}" in
10655 *-*-mingw32*)
10656 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10657 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10658 fi
10659 ;;
10660 *) ;;
10661esac
10662
d7040cdb
SE
10663# Enable -Werror by default when using gcc
10664if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10665 ERROR_ON_WARNING=yes
10666fi
10667
10668NO_WERROR=
10669if test "${ERROR_ON_WARNING}" = yes ; then
10670 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10671 NO_WERROR="-Wno-error"
10672fi
10673
10674if test "${GCC}" = yes ; then
10675 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10676fi
10677
10678# Check whether --enable-build-warnings or --disable-build-warnings was given.
10679if test "${enable_build_warnings+set}" = set; then
10680 enableval="$enable_build_warnings"
10681 case "${enableval}" in
10682 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10683 no) if test "${GCC}" = yes ; then
10684 WARN_CFLAGS="-w"
10685 fi;;
10686 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10687 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10688 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10689 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10690 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10691esac
d7040cdb
SE
10692fi;
10693
10694if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10695 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10696fi
d7040cdb
SE
10697
10698
10699
10700
10701
10702 ac_config_headers="$ac_config_headers config.h:config.in"
10703
10704
10705if test -z "$target" ; then
10706 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10707echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10708 { (exit 1); exit 1; }; }
20e95c23
DJ
10709fi
10710
d7040cdb
SE
10711echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10712echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10713 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10714if test "${enable_maintainer_mode+set}" = set; then
10715 enableval="$enable_maintainer_mode"
10716 USE_MAINTAINER_MODE=$enableval
10717else
10718 USE_MAINTAINER_MODE=no
10719fi;
10720 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10721echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10722
10723
d7040cdb
SE
10724if test $USE_MAINTAINER_MODE = yes; then
10725 MAINTAINER_MODE_TRUE=
10726 MAINTAINER_MODE_FALSE='#'
10727else
10728 MAINTAINER_MODE_TRUE='#'
10729 MAINTAINER_MODE_FALSE=
6be7c12c 10730fi
5464f5a1 10731
d7040cdb
SE
10732 MAINT=$MAINTAINER_MODE_TRUE
10733
10734
10735
10736
10737if false; then
10738 GENINSRC_NEVER_TRUE=
10739 GENINSRC_NEVER_FALSE='#'
20e95c23 10740else
d7040cdb
SE
10741 GENINSRC_NEVER_TRUE='#'
10742 GENINSRC_NEVER_FALSE=
5464f5a1 10743fi
5464f5a1 10744
d7040cdb
SE
10745 case ${build_alias} in
10746 "") build_noncanonical=${build} ;;
10747 *) build_noncanonical=${build_alias} ;;
20e95c23 10748esac
d7040cdb
SE
10749
10750 case ${host_alias} in
10751 "") host_noncanonical=${build_noncanonical} ;;
10752 *) host_noncanonical=${host_alias} ;;
10753esac
10754
10755 case ${target_alias} in
10756 "") target_noncanonical=${host_noncanonical} ;;
10757 *) target_noncanonical=${target_alias} ;;
10758esac
10759
10760echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10761echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10762 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10763if test "${enable_install_libbfd+set}" = set; then
10764 enableval="$enable_install_libbfd"
10765 install_libbfd_p=$enableval
252b5132 10766else
d7040cdb
SE
10767 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10768 install_libbfd_p=yes
10769 else
10770 install_libbfd_p=no
10771 fi
10772fi;
10773 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10774echo "${ECHO_T}$install_libbfd_p" >&6
10775
10776
10777if test $install_libbfd_p = yes; then
10778 INSTALL_LIBBFD_TRUE=
10779 INSTALL_LIBBFD_FALSE='#'
10780else
10781 INSTALL_LIBBFD_TRUE='#'
10782 INSTALL_LIBBFD_FALSE=
5464f5a1 10783fi
5464f5a1 10784
d7040cdb 10785 # Need _noncanonical variables for this.
5464f5a1 10786
5464f5a1 10787
d7040cdb
SE
10788
10789
10790 # libbfd.a is a host library containing target dependent code
10791 bfdlibdir='$(libdir)'
10792 bfdincludedir='$(includedir)'
10793 if test "${host}" != "${target}"; then
10794 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10795 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 10796 fi
6be7c12c 10797
5464f5a1 10798
5464f5a1
NN
10799
10800
5464f5a1 10801
ac48eca1 10802
d7040cdb
SE
10803host64=false
10804target64=false
10805bfd_default_target_size=32
252b5132 10806
d7040cdb 10807# host stuff:
20e95c23 10808
041a1845 10809ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi"
d7040cdb
SE
10810# If we haven't got the data from the intl directory,
10811# assume NLS is disabled.
10812USE_NLS=no
10813LIBINTL=
10814LIBINTL_DEP=
10815INCINTL=
10816XGETTEXT=
10817GMSGFMT=
10818POSUB=
10819
10820if test -f ../intl/config.intl; then
10821 . ../intl/config.intl
252b5132 10822fi
d7040cdb
SE
10823echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10824echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10825if test x"$USE_NLS" != xyes; then
10826 echo "$as_me:$LINENO: result: no" >&5
10827echo "${ECHO_T}no" >&6
10828else
10829 echo "$as_me:$LINENO: result: yes" >&5
10830echo "${ECHO_T}yes" >&6
5464f5a1 10831
d7040cdb
SE
10832cat >>confdefs.h <<\_ACEOF
10833#define ENABLE_NLS 1
10834_ACEOF
252b5132 10835
6be7c12c 10836
d7040cdb
SE
10837 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10838echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10839 # Look for .po and .gmo files in the source directory.
10840 CATALOGS=
10841 XLINGUAS=
10842 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10843 # If there aren't any .gmo files the shell will give us the
10844 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10845 # weeded out.
10846 case "$cat" in *\**)
10847 continue;;
10848 esac
10849 # The quadruple backslash is collapsed to a double backslash
10850 # by the backticks, then collapsed again by the double quotes,
10851 # leaving us with one backslash in the sed expression (right
10852 # before the dot that mustn't act as a wildcard).
10853 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10854 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10855 # The user is allowed to set LINGUAS to a list of languages to
10856 # install catalogs for. If it's empty that means "all of them."
10857 if test "x$LINGUAS" = x; then
10858 CATALOGS="$CATALOGS $cat"
10859 XLINGUAS="$XLINGUAS $lang"
10860 else
10861 case "$LINGUAS" in *$lang*)
10862 CATALOGS="$CATALOGS $cat"
10863 XLINGUAS="$XLINGUAS $lang"
10864 ;;
10865 esac
10866 fi
10867 done
10868 LINGUAS="$XLINGUAS"
10869 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10870echo "${ECHO_T}$LINGUAS" >&6
10871
252b5132 10872
d7040cdb 10873 DATADIRNAME=share
252b5132 10874
d7040cdb 10875 INSTOBJEXT=.mo
5464f5a1 10876
d7040cdb 10877 GENCAT=gencat
20e95c23 10878
d7040cdb 10879 CATOBJEXT=.gmo
5464f5a1 10880
20e95c23 10881fi
5464f5a1 10882
d7040cdb
SE
10883 MKINSTALLDIRS=
10884 if test -n "$ac_aux_dir"; then
10885 case "$ac_aux_dir" in
10886 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10887 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10888 esac
10889 fi
10890 if test -z "$MKINSTALLDIRS"; then
10891 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 10892 fi
5464f5a1 10893
5464f5a1 10894
d7040cdb
SE
10895
10896 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10897echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10898 # Check whether --enable-nls or --disable-nls was given.
10899if test "${enable_nls+set}" = set; then
10900 enableval="$enable_nls"
10901 USE_NLS=$enableval
252b5132 10902else
d7040cdb
SE
10903 USE_NLS=yes
10904fi;
10905 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10906echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10907
252b5132 10908
5464f5a1 10909
252b5132 10910
d7040cdb
SE
10911
10912
10913# Prepare PATH_SEPARATOR.
10914# The user is always right.
10915if test "${PATH_SEPARATOR+set}" != set; then
10916 echo "#! /bin/sh" >conf$$.sh
10917 echo "exit 0" >>conf$$.sh
10918 chmod +x conf$$.sh
10919 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10920 PATH_SEPARATOR=';'
20e95c23 10921 else
d7040cdb 10922 PATH_SEPARATOR=:
20e95c23 10923 fi
d7040cdb
SE
10924 rm -f conf$$.sh
10925fi
10926
10927# Find out how to test for executable files. Don't use a zero-byte file,
10928# as systems may use methods other than mode bits to determine executability.
10929cat >conf$$.file <<_ASEOF
10930#! /bin/sh
10931exit 0
10932_ASEOF
10933chmod +x conf$$.file
10934if test -x conf$$.file >/dev/null 2>&1; then
10935 ac_executable_p="test -x"
20e95c23 10936else
d7040cdb 10937 ac_executable_p="test -f"
20e95c23 10938fi
d7040cdb 10939rm -f conf$$.file
5464f5a1 10940
d7040cdb
SE
10941# Extract the first word of "msgfmt", so it can be a program name with args.
10942set dummy msgfmt; ac_word=$2
10943echo "$as_me:$LINENO: checking for $ac_word" >&5
10944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10945if test "${ac_cv_path_MSGFMT+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947else
10948 case "$MSGFMT" in
10949 [\\/]* | ?:[\\/]*)
10950 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10951 ;;
10952 *)
10953 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10954 for ac_dir in $PATH; do
10955 IFS="$ac_save_IFS"
10956 test -z "$ac_dir" && ac_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10959 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10960 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10961 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10962 break 2
10963 fi
10964 fi
10965 done
10966 done
10967 IFS="$ac_save_IFS"
10968 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10969 ;;
10970esac
5464f5a1 10971fi
d7040cdb
SE
10972MSGFMT="$ac_cv_path_MSGFMT"
10973if test "$MSGFMT" != ":"; then
10974 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10975echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10976else
d7040cdb
SE
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
252b5132 10979fi
d7040cdb
SE
10980
10981 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10982set dummy gmsgfmt; ac_word=$2
10983echo "$as_me:$LINENO: checking for $ac_word" >&5
10984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10985if test "${ac_cv_path_GMSGFMT+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10987else
d7040cdb
SE
10988 case $GMSGFMT in
10989 [\\/]* | ?:[\\/]*)
10990 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10991 ;;
10992 *)
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005done
5464f5a1 11006
d7040cdb
SE
11007 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11008 ;;
11009esac
252b5132 11010fi
d7040cdb 11011GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 11012
d7040cdb
SE
11013if test -n "$GMSGFMT"; then
11014 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11015echo "${ECHO_T}$GMSGFMT" >&6
252b5132 11016else
d7040cdb
SE
11017 echo "$as_me:$LINENO: result: no" >&5
11018echo "${ECHO_T}no" >&6
252b5132
RH
11019fi
11020
20e95c23
DJ
11021
11022
d7040cdb
SE
11023# Prepare PATH_SEPARATOR.
11024# The user is always right.
11025if test "${PATH_SEPARATOR+set}" != set; then
11026 echo "#! /bin/sh" >conf$$.sh
11027 echo "exit 0" >>conf$$.sh
11028 chmod +x conf$$.sh
11029 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11030 PATH_SEPARATOR=';'
11031 else
11032 PATH_SEPARATOR=:
11033 fi
11034 rm -f conf$$.sh
252b5132 11035fi
20e95c23 11036
d7040cdb
SE
11037# Find out how to test for executable files. Don't use a zero-byte file,
11038# as systems may use methods other than mode bits to determine executability.
11039cat >conf$$.file <<_ASEOF
11040#! /bin/sh
11041exit 0
11042_ASEOF
11043chmod +x conf$$.file
11044if test -x conf$$.file >/dev/null 2>&1; then
11045 ac_executable_p="test -x"
11046else
11047 ac_executable_p="test -f"
11048fi
11049rm -f conf$$.file
252b5132 11050
d7040cdb
SE
11051# Extract the first word of "xgettext", so it can be a program name with args.
11052set dummy xgettext; ac_word=$2
11053echo "$as_me:$LINENO: checking for $ac_word" >&5
11054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11055if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
d7040cdb
SE
11058 case "$XGETTEXT" in
11059 [\\/]* | ?:[\\/]*)
11060 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11061 ;;
11062 *)
11063 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11064 for ac_dir in $PATH; do
11065 IFS="$ac_save_IFS"
11066 test -z "$ac_dir" && ac_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11069 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11070 (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
11071 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11072 break 2
11073 fi
11074 fi
11075 done
11076 done
11077 IFS="$ac_save_IFS"
11078 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11079 ;;
11080esac
11081fi
11082XGETTEXT="$ac_cv_path_XGETTEXT"
11083if test "$XGETTEXT" != ":"; then
11084 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11085echo "${ECHO_T}$XGETTEXT" >&6
252b5132 11086else
d7040cdb
SE
11087 echo "$as_me:$LINENO: result: no" >&5
11088echo "${ECHO_T}no" >&6
252b5132
RH
11089fi
11090
d7040cdb 11091 rm -f messages.po
5464f5a1 11092
252b5132 11093
d7040cdb
SE
11094# Prepare PATH_SEPARATOR.
11095# The user is always right.
11096if test "${PATH_SEPARATOR+set}" != set; then
11097 echo "#! /bin/sh" >conf$$.sh
11098 echo "exit 0" >>conf$$.sh
11099 chmod +x conf$$.sh
11100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11101 PATH_SEPARATOR=';'
11102 else
11103 PATH_SEPARATOR=:
11104 fi
11105 rm -f conf$$.sh
252b5132
RH
11106fi
11107
d7040cdb
SE
11108# Find out how to test for executable files. Don't use a zero-byte file,
11109# as systems may use methods other than mode bits to determine executability.
11110cat >conf$$.file <<_ASEOF
11111#! /bin/sh
11112exit 0
11113_ASEOF
11114chmod +x conf$$.file
11115if test -x conf$$.file >/dev/null 2>&1; then
11116 ac_executable_p="test -x"
5464f5a1 11117else
d7040cdb 11118 ac_executable_p="test -f"
20e95c23 11119fi
d7040cdb 11120rm -f conf$$.file
5464f5a1 11121
d7040cdb
SE
11122# Extract the first word of "msgmerge", so it can be a program name with args.
11123set dummy msgmerge; ac_word=$2
11124echo "$as_me:$LINENO: checking for $ac_word" >&5
11125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11126if test "${ac_cv_path_MSGMERGE+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128else
11129 case "$MSGMERGE" in
11130 [\\/]* | ?:[\\/]*)
11131 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11132 ;;
11133 *)
11134 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11135 for ac_dir in $PATH; do
11136 IFS="$ac_save_IFS"
11137 test -z "$ac_dir" && ac_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11140 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11141 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11142 break 2
11143 fi
11144 fi
11145 done
11146 done
11147 IFS="$ac_save_IFS"
11148 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11149 ;;
11150esac
5464f5a1 11151fi
d7040cdb
SE
11152MSGMERGE="$ac_cv_path_MSGMERGE"
11153if test "$MSGMERGE" != ":"; then
11154 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11155echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11156else
d7040cdb
SE
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
20e95c23 11160
5464f5a1 11161
d7040cdb
SE
11162 if test "$GMSGFMT" != ":"; then
11163 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11164 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11165 : ;
11166 else
11167 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11168 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11169echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11170 GMSGFMT=":"
11171 fi
11172 fi
252b5132 11173
d7040cdb
SE
11174 if test "$XGETTEXT" != ":"; then
11175 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11176 (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
11177 : ;
11178 else
11179 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11180echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11181 XGETTEXT=":"
11182 fi
11183 rm -f messages.po
11184 fi
6be7c12c 11185
d7040cdb 11186 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11187
252b5132 11188
5464f5a1 11189
d7040cdb
SE
11190# Permit host specific settings.
11191. ${srcdir}/configure.host
11192
11193
11194# Find a good install program. We prefer a C program (faster),
11195# so one script is as good as another. But avoid the broken or
11196# incompatible versions:
11197# SysV /etc/install, /usr/sbin/install
11198# SunOS /usr/etc/install
11199# IRIX /sbin/install
11200# AIX /bin/install
11201# AmigaOS /C/install, which installs bootblocks on floppy discs
11202# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11203# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11204# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11205# OS/2's system install, which has a completely different semantic
11206# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 11207# Reject install programs that cannot install multiple files.
d7040cdb
SE
11208echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11209echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11210if test -z "$INSTALL"; then
11211if test "${ac_cv_path_install+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 # Account for people who put trailing slashes in PATH elements.
11220case $as_dir/ in
11221 ./ | .// | /cC/* | \
11222 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11223 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11224 /usr/ucb/* ) ;;
11225 *)
11226 # OSF1 and SCO ODT 3.0 have their own names for install.
11227 # Don't use installbsd from OSF since it installs stuff as root
11228 # by default.
11229 for ac_prog in ginstall scoinst install; do
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11232 if test $ac_prog = install &&
11233 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11234 # AIX install. It has an incompatible calling convention.
11235 :
11236 elif test $ac_prog = install &&
11237 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11238 # program-specific install script used by HP pwplus--don't use.
11239 :
11240 else
58c85be7
RW
11241 rm -rf conftest.one conftest.two conftest.dir
11242 echo one > conftest.one
11243 echo two > conftest.two
11244 mkdir conftest.dir
11245 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11246 test -s conftest.one && test -s conftest.two &&
11247 test -s conftest.dir/conftest.one &&
11248 test -s conftest.dir/conftest.two
11249 then
11250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11251 break 3
11252 fi
d7040cdb
SE
11253 fi
11254 fi
11255 done
11256 done
11257 ;;
11258esac
11259done
11260
58c85be7 11261rm -rf conftest.one conftest.two conftest.dir
252b5132 11262
d7040cdb
SE
11263fi
11264 if test "${ac_cv_path_install+set}" = set; then
11265 INSTALL=$ac_cv_path_install
11266 else
58c85be7
RW
11267 # As a last resort, use the slow shell script. Don't cache a
11268 # value for INSTALL within a source directory, because that will
d7040cdb 11269 # break other packages using the cache if that directory is
58c85be7 11270 # removed, or if the value is a relative name.
d7040cdb
SE
11271 INSTALL=$ac_install_sh
11272 fi
11273fi
11274echo "$as_me:$LINENO: result: $INSTALL" >&5
11275echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11276
d7040cdb
SE
11277# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11278# It thinks the first close brace ends the variable substitution.
11279test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11280
d7040cdb 11281test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11282
d7040cdb 11283test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11284
252b5132 11285
d7040cdb 11286BFD_HOST_64BIT_LONG=0
d2df793a 11287BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
11288BFD_HOST_64_BIT_DEFINED=0
11289BFD_HOST_64_BIT=
11290BFD_HOST_U_64_BIT=
d2df793a 11291BFD_HOSTPTR_T="unsigned long"
6be7c12c 11292
d7040cdb
SE
11293echo "$as_me:$LINENO: checking for long long" >&5
11294echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 11295if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11297else
5464f5a1
NN
11298 cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
2ba49b59 11304$ac_includes_default
5464f5a1
NN
11305int
11306main ()
11307{
2ba49b59
KC
11308if ((long long *) 0)
11309 return 0;
11310if (sizeof (long long))
11311 return 0;
5464f5a1
NN
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316rm -f conftest.$ac_objext
11317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318 (eval $ac_compile) 2>conftest.er1
11319 ac_status=$?
11320 grep -v '^ *+' conftest.er1 >conftest.err
11321 rm -f conftest.er1
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
49c96104
SE
11325 { ac_try='test -z "$ac_c_werror_flag"
11326 || test ! -s conftest.err'
5464f5a1
NN
11327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328 (eval $ac_try) 2>&5
11329 ac_status=$?
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); }; } &&
11332 { ac_try='test -s conftest.$ac_objext'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
2ba49b59 11338 ac_cv_type_long_long=yes
6726e1ea 11339else
5464f5a1
NN
11340 echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
2ba49b59 11343ac_cv_type_long_long=no
6726e1ea 11344fi
5464f5a1 11345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11346fi
2ba49b59
KC
11347echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11348echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11349
2ba49b59
KC
11350echo "$as_me:$LINENO: checking size of long long" >&5
11351echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11352if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11353 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11354else
2ba49b59
KC
11355 if test "$ac_cv_type_long_long" = yes; then
11356 # The cast to unsigned long works around a bug in the HP C Compiler
11357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11359 # This bug is HP SR number 8606223364.
11360 if test "$cross_compiling" = yes; then
11361 # Depending upon the size, compute the lo and hi bounds.
11362cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
2ba49b59
KC
11368$ac_includes_default
11369int
11370main ()
11371{
11372static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11373test_array [0] = 0
6726e1ea 11374
2ba49b59
KC
11375 ;
11376 return 0;
11377}
11378_ACEOF
11379rm -f conftest.$ac_objext
11380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381 (eval $ac_compile) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
49c96104
SE
11388 { ac_try='test -z "$ac_c_werror_flag"
11389 || test ! -s conftest.err'
2ba49b59
KC
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_lo=0 ac_mid=0
11402 while :; do
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409$ac_includes_default
5464f5a1
NN
11410int
11411main ()
11412{
2ba49b59
KC
11413static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11414test_array [0] = 0
11415
5464f5a1
NN
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext
11421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
49c96104
SE
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
5464f5a1
NN
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
2ba49b59 11442 ac_hi=$ac_mid; break
6726e1ea 11443else
5464f5a1
NN
11444 echo "$as_me: failed program was:" >&5
11445sed 's/^/| /' conftest.$ac_ext >&5
11446
2ba49b59
KC
11447ac_lo=`expr $ac_mid + 1`
11448 if test $ac_lo -le $ac_mid; then
11449 ac_lo= ac_hi=
11450 break
11451 fi
11452 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11453fi
5464f5a1 11454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11455 done
252b5132 11456else
2ba49b59
KC
11457 echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11459
5464f5a1
NN
11460cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h. */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
11465/* end confdefs.h. */
11466$ac_includes_default
2ba49b59
KC
11467int
11468main ()
11469{
11470static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11471test_array [0] = 0
11472
11473 ;
11474 return 0;
11475}
5464f5a1
NN
11476_ACEOF
11477rm -f conftest.$ac_objext
11478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
49c96104
SE
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
5464f5a1
NN
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
2ba49b59
KC
11499 ac_hi=-1 ac_mid=-1
11500 while :; do
11501 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
2ba49b59
KC
11507$ac_includes_default
11508int
11509main ()
11510{
11511static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11512test_array [0] = 0
11513
11514 ;
11515 return 0;
11516}
5464f5a1 11517_ACEOF
2ba49b59
KC
11518rm -f conftest.$ac_objext
11519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11526 (exit $ac_status); } &&
49c96104
SE
11527 { ac_try='test -z "$ac_c_werror_flag"
11528 || test ! -s conftest.err'
2ba49b59
KC
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; } &&
11534 { ac_try='test -s conftest.$ac_objext'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 ac_lo=$ac_mid; break
252b5132 11541else
2ba49b59
KC
11542 echo "$as_me: failed program was:" >&5
11543sed 's/^/| /' conftest.$ac_ext >&5
11544
11545ac_hi=`expr '(' $ac_mid ')' - 1`
11546 if test $ac_mid -le $ac_hi; then
11547 ac_lo= ac_hi=
11548 break
11549 fi
11550 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11551fi
2ba49b59
KC
11552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 done
5464f5a1
NN
11554else
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
2ba49b59 11558ac_lo= ac_hi=
252b5132 11559fi
2ba49b59
KC
11560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11561fi
11562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11563# Binary search between lo and hi bounds.
11564while test "x$ac_lo" != "x$ac_hi"; do
11565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
11572$ac_includes_default
11573int
11574main ()
11575{
11576static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11577test_array [0] = 0
5464f5a1 11578
2ba49b59
KC
11579 ;
11580 return 0;
11581}
5464f5a1
NN
11582_ACEOF
11583rm -f conftest.$ac_objext
11584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585 (eval $ac_compile) 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
49c96104
SE
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
5464f5a1
NN
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest.$ac_objext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
2ba49b59 11605 ac_hi=$ac_mid
5464f5a1
NN
11606else
11607 echo "$as_me: failed program was:" >&5
11608sed 's/^/| /' conftest.$ac_ext >&5
11609
2ba49b59 11610ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11611fi
11612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11613done
11614case $ac_lo in
11615?*) ac_cv_sizeof_long_long=$ac_lo;;
7a283e07
RW
11616'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11617echo "$as_me: error: in \`$ac_pwd':" >&2;}
11618{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
11619See \`config.log' for more details." >&5
11620echo "$as_me: error: cannot compute sizeof (long long), 77
11621See \`config.log' for more details." >&2;}
7a283e07 11622 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
11623esac
11624else
11625 if test "$cross_compiling" = yes; then
7a283e07
RW
11626 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11627echo "$as_me: error: in \`$ac_pwd':" >&2;}
11628{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49c96104
SE
11629See \`config.log' for more details." >&5
11630echo "$as_me: error: cannot run test program while cross compiling
11631See \`config.log' for more details." >&2;}
7a283e07 11632 { (exit 1); exit 1; }; }; }
2ba49b59
KC
11633else
11634 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
2ba49b59
KC
11640$ac_includes_default
11641long longval () { return (long) (sizeof (long long)); }
11642unsigned long ulongval () { return (long) (sizeof (long long)); }
11643#include <stdio.h>
11644#include <stdlib.h>
11645int
11646main ()
11647{
11648
11649 FILE *f = fopen ("conftest.val", "w");
11650 if (! f)
11651 exit (1);
11652 if (((long) (sizeof (long long))) < 0)
11653 {
11654 long i = longval ();
11655 if (i != ((long) (sizeof (long long))))
11656 exit (1);
11657 fprintf (f, "%ld\n", i);
11658 }
11659 else
11660 {
11661 unsigned long i = ulongval ();
11662 if (i != ((long) (sizeof (long long))))
11663 exit (1);
11664 fprintf (f, "%lu\n", i);
11665 }
11666 exit (ferror (f) || fclose (f) != 0);
11667
11668 ;
11669 return 0;
11670}
5464f5a1 11671_ACEOF
2ba49b59
KC
11672rm -f conftest$ac_exeext
11673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
5464f5a1 11675 ac_status=$?
5464f5a1 11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11684else
2ba49b59
KC
11685 echo "$as_me: program exited with status $ac_status" >&5
11686echo "$as_me: failed program was:" >&5
5464f5a1
NN
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
2ba49b59 11689( exit $ac_status )
7a283e07
RW
11690{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11691echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
11692{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11693See \`config.log' for more details." >&5
11694echo "$as_me: error: cannot compute sizeof (long long), 77
11695See \`config.log' for more details." >&2;}
7a283e07 11696 { (exit 1); exit 1; }; }; }
252b5132 11697fi
2ba49b59
KC
11698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11699fi
11700fi
11701rm -f conftest.val
6be7c12c 11702else
2ba49b59 11703 ac_cv_sizeof_long_long=0
5464f5a1 11704fi
5464f5a1 11705fi
2ba49b59
KC
11706echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11707echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11708cat >>confdefs.h <<_ACEOF
11709#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11710_ACEOF
11711
5464f5a1 11712
d2df793a
NC
11713echo "$as_me:$LINENO: checking for void *" >&5
11714echo $ECHO_N "checking for void *... $ECHO_C" >&6
11715if test "${ac_cv_type_void_p+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724$ac_includes_default
11725int
11726main ()
11727{
11728if ((void * *) 0)
11729 return 0;
11730if (sizeof (void *))
11731 return 0;
11732 ;
11733 return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext
11737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11738 (eval $ac_compile) 2>conftest.er1
11739 ac_status=$?
11740 grep -v '^ *+' conftest.er1 >conftest.err
11741 rm -f conftest.er1
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag"
11746 || test ! -s conftest.err'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; } &&
11752 { ac_try='test -s conftest.$ac_objext'
11753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11754 (eval $ac_try) 2>&5
11755 ac_status=$?
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_cv_type_void_p=yes
11759else
11760 echo "$as_me: failed program was:" >&5
11761sed 's/^/| /' conftest.$ac_ext >&5
11762
11763ac_cv_type_void_p=no
11764fi
11765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11766fi
11767echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11768echo "${ECHO_T}$ac_cv_type_void_p" >&6
11769
11770echo "$as_me:$LINENO: checking size of void *" >&5
11771echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11772if test "${ac_cv_sizeof_void_p+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 if test "$ac_cv_type_void_p" = yes; then
11776 # The cast to unsigned long works around a bug in the HP C Compiler
11777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11779 # This bug is HP SR number 8606223364.
11780 if test "$cross_compiling" = yes; then
11781 # Depending upon the size, compute the lo and hi bounds.
11782cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788$ac_includes_default
11789int
11790main ()
11791{
11792static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11793test_array [0] = 0
11794
11795 ;
11796 return 0;
11797}
11798_ACEOF
11799rm -f conftest.$ac_objext
11800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11801 (eval $ac_compile) 2>conftest.er1
11802 ac_status=$?
11803 grep -v '^ *+' conftest.er1 >conftest.err
11804 rm -f conftest.er1
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -z "$ac_c_werror_flag"
11809 || test ! -s conftest.err'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_lo=0 ac_mid=0
11822 while :; do
11823 cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
11829$ac_includes_default
11830int
11831main ()
11832{
11833static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11834test_array [0] = 0
11835
11836 ;
11837 return 0;
11838}
11839_ACEOF
11840rm -f conftest.$ac_objext
11841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11842 (eval $ac_compile) 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -z "$ac_c_werror_flag"
11850 || test ! -s conftest.err'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest.$ac_objext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_hi=$ac_mid; break
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867ac_lo=`expr $ac_mid + 1`
11868 if test $ac_lo -le $ac_mid; then
11869 ac_lo= ac_hi=
11870 break
11871 fi
11872 ac_mid=`expr 2 '*' $ac_mid + 1`
11873fi
11874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11875 done
11876else
11877 echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
11880cat >conftest.$ac_ext <<_ACEOF
11881/* confdefs.h. */
11882_ACEOF
11883cat confdefs.h >>conftest.$ac_ext
11884cat >>conftest.$ac_ext <<_ACEOF
11885/* end confdefs.h. */
11886$ac_includes_default
11887int
11888main ()
11889{
11890static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11891test_array [0] = 0
11892
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897rm -f conftest.$ac_objext
11898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>conftest.er1
11900 ac_status=$?
11901 grep -v '^ *+' conftest.er1 >conftest.err
11902 rm -f conftest.er1
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -z "$ac_c_werror_flag"
11907 || test ! -s conftest.err'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; } &&
11913 { ac_try='test -s conftest.$ac_objext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 ac_hi=-1 ac_mid=-1
11920 while :; do
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927$ac_includes_default
11928int
11929main ()
11930{
11931static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11932test_array [0] = 0
11933
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext
11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest.$ac_objext'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_lo=$ac_mid; break
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
11965ac_hi=`expr '(' $ac_mid ')' - 1`
11966 if test $ac_mid -le $ac_hi; then
11967 ac_lo= ac_hi=
11968 break
11969 fi
11970 ac_mid=`expr 2 '*' $ac_mid`
11971fi
11972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11973 done
11974else
11975 echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978ac_lo= ac_hi=
11979fi
11980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981fi
11982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983# Binary search between lo and hi bounds.
11984while test "x$ac_lo" != "x$ac_hi"; do
11985 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11986 cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
11992$ac_includes_default
11993int
11994main ()
11995{
11996static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11997test_array [0] = 0
11998
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003rm -f conftest.$ac_objext
12004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005 (eval $ac_compile) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_hi=$ac_mid
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030ac_lo=`expr '(' $ac_mid ')' + 1`
12031fi
12032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12033done
12034case $ac_lo in
12035?*) ac_cv_sizeof_void_p=$ac_lo;;
7a283e07
RW
12036'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12037echo "$as_me: error: in \`$ac_pwd':" >&2;}
12038{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
12039See \`config.log' for more details." >&5
12040echo "$as_me: error: cannot compute sizeof (void *), 77
12041See \`config.log' for more details." >&2;}
7a283e07 12042 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
12043esac
12044else
12045 if test "$cross_compiling" = yes; then
7a283e07
RW
12046 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12047echo "$as_me: error: in \`$ac_pwd':" >&2;}
12048{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d2df793a
NC
12049See \`config.log' for more details." >&5
12050echo "$as_me: error: cannot run test program while cross compiling
12051See \`config.log' for more details." >&2;}
7a283e07 12052 { (exit 1); exit 1; }; }; }
d2df793a
NC
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060$ac_includes_default
12061long longval () { return (long) (sizeof (void *)); }
12062unsigned long ulongval () { return (long) (sizeof (void *)); }
12063#include <stdio.h>
12064#include <stdlib.h>
12065int
12066main ()
12067{
12068
12069 FILE *f = fopen ("conftest.val", "w");
12070 if (! f)
12071 exit (1);
12072 if (((long) (sizeof (void *))) < 0)
12073 {
12074 long i = longval ();
12075 if (i != ((long) (sizeof (void *))))
12076 exit (1);
12077 fprintf (f, "%ld\n", i);
12078 }
12079 else
12080 {
12081 unsigned long i = ulongval ();
12082 if (i != ((long) (sizeof (void *))))
12083 exit (1);
12084 fprintf (f, "%lu\n", i);
12085 }
12086 exit (ferror (f) || fclose (f) != 0);
12087
12088 ;
12089 return 0;
12090}
12091_ACEOF
12092rm -f conftest$ac_exeext
12093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_cv_sizeof_void_p=`cat conftest.val`
12104else
12105 echo "$as_me: program exited with status $ac_status" >&5
12106echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109( exit $ac_status )
7a283e07
RW
12110{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12111echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
12112{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12113See \`config.log' for more details." >&5
12114echo "$as_me: error: cannot compute sizeof (void *), 77
12115See \`config.log' for more details." >&2;}
7a283e07 12116 { (exit 1); exit 1; }; }; }
d2df793a
NC
12117fi
12118rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12119fi
12120fi
12121rm -f conftest.val
12122else
12123 ac_cv_sizeof_void_p=0
12124fi
12125fi
12126echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12127echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12128cat >>confdefs.h <<_ACEOF
12129#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12130_ACEOF
12131
12132
2ba49b59
KC
12133echo "$as_me:$LINENO: checking for long" >&5
12134echo $ECHO_N "checking for long... $ECHO_C" >&6
12135if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
2ba49b59 12144$ac_includes_default
5464f5a1
NN
12145int
12146main ()
12147{
2ba49b59
KC
12148if ((long *) 0)
12149 return 0;
12150if (sizeof (long))
12151 return 0;
5464f5a1
NN
12152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext
12157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
49c96104
SE
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
5464f5a1
NN
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
2ba49b59 12178 ac_cv_type_long=yes
252b5132 12179else
5464f5a1
NN
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
2ba49b59 12183ac_cv_type_long=no
252b5132 12184fi
5464f5a1 12185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12186fi
2ba49b59
KC
12187echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12188echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 12189
2ba49b59
KC
12190echo "$as_me:$LINENO: checking size of long" >&5
12191echo $ECHO_N "checking size of long... $ECHO_C" >&6
12192if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12194else
2ba49b59
KC
12195 if test "$ac_cv_type_long" = yes; then
12196 # The cast to unsigned long works around a bug in the HP C Compiler
12197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12199 # This bug is HP SR number 8606223364.
12200 if test "$cross_compiling" = yes; then
12201 # Depending upon the size, compute the lo and hi bounds.
12202cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
2ba49b59 12208$ac_includes_default
5464f5a1
NN
12209int
12210main ()
12211{
2ba49b59
KC
12212static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12213test_array [0] = 0
12214
5464f5a1
NN
12215 ;
12216 return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext
12220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
49c96104
SE
12228 { ac_try='test -z "$ac_c_werror_flag"
12229 || test ! -s conftest.err'
5464f5a1
NN
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest.$ac_objext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
2ba49b59
KC
12241 ac_lo=0 ac_mid=0
12242 while :; do
12243 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12244/* confdefs.h. */
12245_ACEOF
12246cat confdefs.h >>conftest.$ac_ext
12247cat >>conftest.$ac_ext <<_ACEOF
12248/* end confdefs.h. */
2ba49b59 12249$ac_includes_default
5464f5a1
NN
12250int
12251main ()
12252{
2ba49b59
KC
12253static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12254test_array [0] = 0
12255
5464f5a1
NN
12256 ;
12257 return 0;
12258}
12259_ACEOF
2ba49b59
KC
12260rm -f conftest.$ac_objext
12261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12262 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12263 ac_status=$?
12264 grep -v '^ *+' conftest.er1 >conftest.err
12265 rm -f conftest.er1
12266 cat conftest.err >&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
49c96104
SE
12269 { ac_try='test -z "$ac_c_werror_flag"
12270 || test ! -s conftest.err'
5464f5a1
NN
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; } &&
2ba49b59 12276 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
2ba49b59 12282 ac_hi=$ac_mid; break
5464f5a1
NN
12283else
12284 echo "$as_me: failed program was:" >&5
12285sed 's/^/| /' conftest.$ac_ext >&5
12286
2ba49b59
KC
12287ac_lo=`expr $ac_mid + 1`
12288 if test $ac_lo -le $ac_mid; then
12289 ac_lo= ac_hi=
12290 break
12291 fi
12292 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 12293fi
2ba49b59
KC
12294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 done
12296else
12297 echo "$as_me: failed program was:" >&5
12298sed 's/^/| /' conftest.$ac_ext >&5
12299
12300cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
2ba49b59 12306$ac_includes_default
5464f5a1
NN
12307int
12308main ()
12309{
2ba49b59
KC
12310static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12311test_array [0] = 0
12312
5464f5a1
NN
12313 ;
12314 return 0;
12315}
12316_ACEOF
2ba49b59
KC
12317rm -f conftest.$ac_objext
12318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
49c96104
SE
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
5464f5a1
NN
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
2ba49b59 12333 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
2ba49b59
KC
12339 ac_hi=-1 ac_mid=-1
12340 while :; do
12341 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
2ba49b59 12347$ac_includes_default
5464f5a1
NN
12348int
12349main ()
12350{
2ba49b59
KC
12351static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12352test_array [0] = 0
12353
5464f5a1
NN
12354 ;
12355 return 0;
12356}
12357_ACEOF
2ba49b59
KC
12358rm -f conftest.$ac_objext
12359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
49c96104
SE
12367 { ac_try='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
5464f5a1
NN
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
2ba49b59 12374 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
2ba49b59 12380 ac_lo=$ac_mid; break
5464f5a1
NN
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
2ba49b59
KC
12385ac_hi=`expr '(' $ac_mid ')' - 1`
12386 if test $ac_mid -le $ac_hi; then
12387 ac_lo= ac_hi=
12388 break
12389 fi
12390 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 12391fi
2ba49b59
KC
12392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 done
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398ac_lo= ac_hi=
12399fi
12400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12401fi
12402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12403# Binary search between lo and hi bounds.
12404while test "x$ac_lo" != "x$ac_hi"; do
12405 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12406 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
2ba49b59 12412$ac_includes_default
5464f5a1
NN
12413int
12414main ()
12415{
2ba49b59
KC
12416static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12417test_array [0] = 0
12418
5464f5a1
NN
12419 ;
12420 return 0;
12421}
12422_ACEOF
2ba49b59
KC
12423rm -f conftest.$ac_objext
12424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12426 ac_status=$?
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -f conftest.er1
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
49c96104
SE
12432 { ac_try='test -z "$ac_c_werror_flag"
12433 || test ! -s conftest.err'
5464f5a1
NN
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; } &&
2ba49b59 12439 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
2ba49b59 12445 ac_hi=$ac_mid
5464f5a1
NN
12446else
12447 echo "$as_me: failed program was:" >&5
12448sed 's/^/| /' conftest.$ac_ext >&5
12449
2ba49b59 12450ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 12451fi
2ba49b59
KC
12452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12453done
12454case $ac_lo in
12455?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
12456'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12457echo "$as_me: error: in \`$ac_pwd':" >&2;}
12458{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
12459See \`config.log' for more details." >&5
12460echo "$as_me: error: cannot compute sizeof (long), 77
12461See \`config.log' for more details." >&2;}
7a283e07 12462 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12463esac
12464else
12465 if test "$cross_compiling" = yes; then
7a283e07
RW
12466 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12467echo "$as_me: error: in \`$ac_pwd':" >&2;}
12468{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49c96104
SE
12469See \`config.log' for more details." >&5
12470echo "$as_me: error: cannot run test program while cross compiling
12471See \`config.log' for more details." >&2;}
7a283e07 12472 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
12473else
12474 cat >conftest.$ac_ext <<_ACEOF
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
2ba49b59
KC
12480$ac_includes_default
12481long longval () { return (long) (sizeof (long)); }
12482unsigned long ulongval () { return (long) (sizeof (long)); }
12483#include <stdio.h>
12484#include <stdlib.h>
2e0fbf77
JW
12485int
12486main ()
12487{
12488
2ba49b59
KC
12489 FILE *f = fopen ("conftest.val", "w");
12490 if (! f)
12491 exit (1);
12492 if (((long) (sizeof (long))) < 0)
12493 {
12494 long i = longval ();
12495 if (i != ((long) (sizeof (long))))
12496 exit (1);
12497 fprintf (f, "%ld\n", i);
12498 }
12499 else
12500 {
12501 unsigned long i = ulongval ();
12502 if (i != ((long) (sizeof (long))))
12503 exit (1);
12504 fprintf (f, "%lu\n", i);
12505 }
12506 exit (ferror (f) || fclose (f) != 0);
12507
2e0fbf77
JW
12508 ;
12509 return 0;
12510}
12511_ACEOF
2ba49b59
KC
12512rm -f conftest$ac_exeext
12513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>&5
2e0fbf77
JW
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
2ba49b59 12523 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12524else
2ba49b59
KC
12525 echo "$as_me: program exited with status $ac_status" >&5
12526echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
2ba49b59 12529( exit $ac_status )
7a283e07
RW
12530{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12531echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
12532{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12533See \`config.log' for more details." >&5
12534echo "$as_me: error: cannot compute sizeof (long), 77
12535See \`config.log' for more details." >&2;}
7a283e07 12536 { (exit 1); exit 1; }; }; }
2e0fbf77 12537fi
2ba49b59 12538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12539fi
2ba49b59
KC
12540fi
12541rm -f conftest.val
12542else
12543 ac_cv_sizeof_long=0
12544fi
12545fi
12546echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12547echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12548cat >>confdefs.h <<_ACEOF
12549#define SIZEOF_LONG $ac_cv_sizeof_long
12550_ACEOF
12551
12552
d2df793a
NC
12553
12554if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 12555 host64=true
bce5e5c9
AM
12556fi
12557
12558if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
12559 BFD_HOST_64BIT_LONG=1
12560 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12561 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12562elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 12563 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
12564 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12565 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
12566 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12567 BFD_HOSTPTR_T="unsigned long long"
12568 fi
2ba49b59
KC
12569fi
12570
12571if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12572 BFD_HOST_64_BIT_DEFINED=1
12573 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12574 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12575fi
12576
12577
12578
12579
12580
12581
12582
d2df793a 12583
2ba49b59
KC
12584# Put a plausible default for CC_FOR_BUILD in Makefile.
12585if test -z "$CC_FOR_BUILD"; then
12586 if test "x$cross_compiling" = "xno"; then
12587 CC_FOR_BUILD='$(CC)'
12588 else
12589 CC_FOR_BUILD=gcc
12590 fi
12591fi
12592
12593# Also set EXEEXT_FOR_BUILD.
12594if test "x$cross_compiling" = "xno"; then
12595 EXEEXT_FOR_BUILD='$(EXEEXT)'
12596else
12597 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12598echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12599if test "${bfd_cv_build_exeext+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601else
12602 rm -f conftest*
12603 echo 'int main () { return 0; }' > conftest.c
12604 bfd_cv_build_exeext=
12605 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12606 for file in conftest.*; do
12607 case $file in
12608 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12609 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12610 esac
12611 done
12612 rm -f conftest*
12613 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12614fi
12615echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12616echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12617 EXEEXT_FOR_BUILD=""
12618 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12619fi
12620
12621
12622
12623
12624
12625
12626
12627
8bc9c892
NC
12628
12629for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
12630do
12631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12632if eval "test \"\${$as_ac_Header+set}\" = set"; then
12633 echo "$as_me:$LINENO: checking for $ac_header" >&5
12634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12635if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637fi
12638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12640else
12641 # Is the header compilable?
12642echo "$as_me:$LINENO: checking $ac_header usability" >&5
12643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12644cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650$ac_includes_default
12651#include <$ac_header>
12652_ACEOF
12653rm -f conftest.$ac_objext
12654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
49c96104
SE
12662 { ac_try='test -z "$ac_c_werror_flag"
12663 || test ! -s conftest.err'
2ba49b59
KC
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_header_compiler=yes
12676else
12677 echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
12680ac_header_compiler=no
12681fi
12682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684echo "${ECHO_T}$ac_header_compiler" >&6
12685
12686# Is the header present?
12687echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12689cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695#include <$ac_header>
12696_ACEOF
12697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } >/dev/null; then
12705 if test -s conftest.err; then
12706 ac_cpp_err=$ac_c_preproc_warn_flag
12707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12708 else
12709 ac_cpp_err=
12710 fi
12711else
12712 ac_cpp_err=yes
12713fi
12714if test -z "$ac_cpp_err"; then
12715 ac_header_preproc=yes
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_header_preproc=no
12721fi
12722rm -f conftest.err conftest.$ac_ext
12723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724echo "${ECHO_T}$ac_header_preproc" >&6
12725
12726# So? What about this header?
12727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12728 yes:no: )
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733 ac_header_preproc=yes
12734 ;;
12735 no:yes:* )
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12748 (
12749 cat <<\_ASBOX
12750## ------------------------------------------ ##
12751## Report this to the AC_PACKAGE_NAME lists. ##
12752## ------------------------------------------ ##
12753_ASBOX
12754 ) |
12755 sed "s/^/$as_me: WARNING: /" >&2
12756 ;;
12757esac
12758echo "$as_me:$LINENO: checking for $ac_header" >&5
12759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12760if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
12763 eval "$as_ac_Header=\$ac_header_preproc"
12764fi
12765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12767
12768fi
12769if test `eval echo '${'$as_ac_Header'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12772_ACEOF
12773
12774fi
12775
12776done
12777
12778
12779
12780
12781for ac_header in fcntl.h sys/file.h sys/time.h
12782do
12783as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12784if eval "test \"\${$as_ac_Header+set}\" = set"; then
12785 echo "$as_me:$LINENO: checking for $ac_header" >&5
12786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12787if eval "test \"\${$as_ac_Header+set}\" = set"; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789fi
12790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12792else
12793 # Is the header compilable?
12794echo "$as_me:$LINENO: checking $ac_header usability" >&5
12795echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12796cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802$ac_includes_default
12803#include <$ac_header>
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
49c96104
SE
12814 { ac_try='test -z "$ac_c_werror_flag"
12815 || test ! -s conftest.err'
2ba49b59
KC
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } &&
12821 { ac_try='test -s conftest.$ac_objext'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827 ac_header_compiler=yes
12828else
12829 echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
12832ac_header_compiler=no
12833fi
12834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12836echo "${ECHO_T}$ac_header_compiler" >&6
12837
12838# Is the header present?
12839echo "$as_me:$LINENO: checking $ac_header presence" >&5
12840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12841cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h. */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h. */
12847#include <$ac_header>
12848_ACEOF
12849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } >/dev/null; then
12857 if test -s conftest.err; then
12858 ac_cpp_err=$ac_c_preproc_warn_flag
12859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12860 else
12861 ac_cpp_err=
12862 fi
12863else
12864 ac_cpp_err=yes
12865fi
12866if test -z "$ac_cpp_err"; then
12867 ac_header_preproc=yes
12868else
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
12872 ac_header_preproc=no
12873fi
12874rm -f conftest.err conftest.$ac_ext
12875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12876echo "${ECHO_T}$ac_header_preproc" >&6
12877
12878# So? What about this header?
12879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12880 yes:no: )
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12885 ac_header_preproc=yes
12886 ;;
12887 no:yes:* )
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12900 (
12901 cat <<\_ASBOX
12902## ------------------------------------------ ##
12903## Report this to the AC_PACKAGE_NAME lists. ##
12904## ------------------------------------------ ##
12905_ASBOX
12906 ) |
12907 sed "s/^/$as_me: WARNING: /" >&2
12908 ;;
12909esac
12910echo "$as_me:$LINENO: checking for $ac_header" >&5
12911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12912if eval "test \"\${$as_ac_Header+set}\" = set"; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915 eval "$as_ac_Header=\$ac_header_preproc"
12916fi
12917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12919
12920fi
12921if test `eval echo '${'$as_ac_Header'}'` = yes; then
12922 cat >>confdefs.h <<_ACEOF
12923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12924_ACEOF
12925
12926fi
12927
12928done
12929
d5efd9fc
AM
12930
12931
12932inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12933
12934acx_cv_header_stdint=stddef.h
12935acx_cv_header_stdint_kind="(already complete)"
12936for i in stdint.h $inttype_headers; do
12937 unset ac_cv_type_uintptr_t
12938 unset ac_cv_type_uintmax_t
12939 unset ac_cv_type_int_least32_t
12940 unset ac_cv_type_int_fast32_t
12941 unset ac_cv_type_uint64_t
12942 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12943 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12944echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12945if test "${ac_cv_type_uintmax_t+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 cat >conftest.$ac_ext <<_ACEOF
12949/* confdefs.h. */
12950_ACEOF
12951cat confdefs.h >>conftest.$ac_ext
12952cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */
12954#include <sys/types.h>
12955#include <$i>
12956
12957int
12958main ()
12959{
12960if ((uintmax_t *) 0)
12961 return 0;
12962if (sizeof (uintmax_t))
12963 return 0;
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext
12969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12970 (eval $ac_compile) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest.$ac_objext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_type_uintmax_t=yes
12991else
12992 echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
12994
12995ac_cv_type_uintmax_t=no
12996fi
12997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12998fi
12999echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
13000echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
13001if test $ac_cv_type_uintmax_t = yes; then
13002 acx_cv_header_stdint=$i
13003else
13004 continue
13005fi
13006
13007 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13008echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13009if test "${ac_cv_type_uintptr_t+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13011else
13012 cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h. */
13018#include <sys/types.h>
13019#include <$i>
13020
13021int
13022main ()
13023{
13024if ((uintptr_t *) 0)
13025 return 0;
13026if (sizeof (uintptr_t))
13027 return 0;
13028 ;
13029 return 0;
13030}
13031_ACEOF
13032rm -f conftest.$ac_objext
13033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13035 ac_status=$?
13036 grep -v '^ *+' conftest.er1 >conftest.err
13037 rm -f conftest.er1
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_type_uintptr_t=yes
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059ac_cv_type_uintptr_t=no
13060fi
13061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13062fi
13063echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13064echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13065if test $ac_cv_type_uintptr_t = yes; then
13066 :
13067else
13068 acx_cv_header_stdint_kind="(mostly complete)"
13069fi
13070
13071 echo "$as_me:$LINENO: checking for int_least32_t" >&5
13072echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
13073if test "${ac_cv_type_int_least32_t+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075else
13076 cat >conftest.$ac_ext <<_ACEOF
13077/* confdefs.h. */
13078_ACEOF
13079cat confdefs.h >>conftest.$ac_ext
13080cat >>conftest.$ac_ext <<_ACEOF
13081/* end confdefs.h. */
13082#include <sys/types.h>
13083#include <$i>
13084
13085int
13086main ()
13087{
13088if ((int_least32_t *) 0)
13089 return 0;
13090if (sizeof (int_least32_t))
13091 return 0;
13092 ;
13093 return 0;
13094}
13095_ACEOF
13096rm -f conftest.$ac_objext
13097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -z "$ac_c_werror_flag"
13106 || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_cv_type_int_least32_t=yes
13119else
13120 echo "$as_me: failed program was:" >&5
13121sed 's/^/| /' conftest.$ac_ext >&5
13122
13123ac_cv_type_int_least32_t=no
13124fi
13125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126fi
13127echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
13128echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
13129if test $ac_cv_type_int_least32_t = yes; then
13130 :
13131else
13132 acx_cv_header_stdint_kind="(mostly complete)"
13133fi
13134
13135 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
13136echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
13137if test "${ac_cv_type_int_fast32_t+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 cat >conftest.$ac_ext <<_ACEOF
13141/* confdefs.h. */
13142_ACEOF
13143cat confdefs.h >>conftest.$ac_ext
13144cat >>conftest.$ac_ext <<_ACEOF
13145/* end confdefs.h. */
13146#include <sys/types.h>
13147#include <$i>
13148
13149int
13150main ()
13151{
13152if ((int_fast32_t *) 0)
13153 return 0;
13154if (sizeof (int_fast32_t))
13155 return 0;
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160rm -f conftest.$ac_objext
13161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_c_werror_flag"
13170 || test ! -s conftest.err'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_cv_type_int_fast32_t=yes
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
13187ac_cv_type_int_fast32_t=no
13188fi
13189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13190fi
13191echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
13192echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
13193if test $ac_cv_type_int_fast32_t = yes; then
13194 :
13195else
13196 acx_cv_header_stdint_kind="(mostly complete)"
13197fi
13198
13199 echo "$as_me:$LINENO: checking for uint64_t" >&5
13200echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13201if test "${ac_cv_type_uint64_t+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13203else
13204 cat >conftest.$ac_ext <<_ACEOF
13205/* confdefs.h. */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h. */
13210#include <sys/types.h>
13211#include <$i>
13212
13213int
13214main ()
13215{
13216if ((uint64_t *) 0)
13217 return 0;
13218if (sizeof (uint64_t))
13219 return 0;
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224rm -f conftest.$ac_objext
13225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13226 (eval $ac_compile) 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag"
13234 || test ! -s conftest.err'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest.$ac_objext'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 ac_cv_type_uint64_t=yes
13247else
13248 echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251ac_cv_type_uint64_t=no
13252fi
13253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13254fi
13255echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13256echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13257if test $ac_cv_type_uint64_t = yes; then
13258 :
13259else
13260 acx_cv_header_stdint_kind="(lacks uint64_t)"
13261fi
13262
13263 break
13264done
13265if test "$acx_cv_header_stdint" = stddef.h; then
13266 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13267 for i in stdint.h $inttype_headers; do
13268 unset ac_cv_type_uintptr_t
13269 unset ac_cv_type_uint32_t
13270 unset ac_cv_type_uint64_t
13271 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
13272 echo "$as_me:$LINENO: checking for uint32_t" >&5
13273echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
13274if test "${ac_cv_type_uint32_t+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
13277 cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283#include <sys/types.h>
13284#include <$i>
13285
13286int
13287main ()
13288{
13289if ((uint32_t *) 0)
13290 return 0;
13291if (sizeof (uint32_t))
13292 return 0;
13293 ;
13294 return 0;
13295}
13296_ACEOF
13297rm -f conftest.$ac_objext
13298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_type_uint32_t=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324ac_cv_type_uint32_t=no
13325fi
13326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13327fi
13328echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
13329echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
13330if test $ac_cv_type_uint32_t = yes; then
13331 acx_cv_header_stdint=$i
13332else
13333 continue
13334fi
13335
13336 echo "$as_me:$LINENO: checking for uint64_t" >&5
13337echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
13338if test "${ac_cv_type_uint64_t+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340else
13341 cat >conftest.$ac_ext <<_ACEOF
13342/* confdefs.h. */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h. */
13347#include <sys/types.h>
13348#include <$i>
13349
13350int
13351main ()
13352{
13353if ((uint64_t *) 0)
13354 return 0;
13355if (sizeof (uint64_t))
13356 return 0;
13357 ;
13358 return 0;
13359}
13360_ACEOF
13361rm -f conftest.$ac_objext
13362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag"
13371 || test ! -s conftest.err'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 ac_cv_type_uint64_t=yes
13384else
13385 echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388ac_cv_type_uint64_t=no
13389fi
13390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391fi
13392echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13393echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
13394
13395 echo "$as_me:$LINENO: checking for uintptr_t" >&5
13396echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
13397if test "${ac_cv_type_uintptr_t+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399else
13400 cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h. */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h. */
13406#include <sys/types.h>
13407#include <$i>
13408
13409int
13410main ()
13411{
13412if ((uintptr_t *) 0)
13413 return 0;
13414if (sizeof (uintptr_t))
13415 return 0;
13416 ;
13417 return 0;
13418}
13419_ACEOF
13420rm -f conftest.$ac_objext
13421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_type_uintptr_t=yes
13443else
13444 echo "$as_me: failed program was:" >&5
13445sed 's/^/| /' conftest.$ac_ext >&5
13446
13447ac_cv_type_uintptr_t=no
13448fi
13449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13450fi
13451echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
13452echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
13453
13454 break
13455 done
13456fi
13457if test "$acx_cv_header_stdint" = stddef.h; then
13458 acx_cv_header_stdint_kind="(u_intXX_t style)"
13459 for i in sys/types.h $inttype_headers; do
13460 unset ac_cv_type_u_int32_t
13461 unset ac_cv_type_u_int64_t
13462 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
13463 echo "$as_me:$LINENO: checking for u_int32_t" >&5
13464echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
13465if test "${ac_cv_type_u_int32_t+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467else
13468 cat >conftest.$ac_ext <<_ACEOF
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
13474#include <sys/types.h>
13475#include <$i>
13476
13477int
13478main ()
13479{
13480if ((u_int32_t *) 0)
13481 return 0;
13482if (sizeof (u_int32_t))
13483 return 0;
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488rm -f conftest.$ac_objext
13489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -z "$ac_c_werror_flag"
13498 || test ! -s conftest.err'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; } &&
13504 { ac_try='test -s conftest.$ac_objext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_type_u_int32_t=yes
13511else
13512 echo "$as_me: failed program was:" >&5
13513sed 's/^/| /' conftest.$ac_ext >&5
13514
13515ac_cv_type_u_int32_t=no
13516fi
13517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518fi
13519echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13520echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13521if test $ac_cv_type_u_int32_t = yes; then
13522 acx_cv_header_stdint=$i
13523else
13524 continue
13525fi
13526
13527 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13528echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13529if test "${ac_cv_type_u_int64_t+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531else
13532 cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
13538#include <sys/types.h>
13539#include <$i>
13540
13541int
13542main ()
13543{
13544if ((u_int64_t *) 0)
13545 return 0;
13546if (sizeof (u_int64_t))
13547 return 0;
13548 ;
13549 return 0;
13550}
13551_ACEOF
13552rm -f conftest.$ac_objext
13553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest.$ac_objext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 ac_cv_type_u_int64_t=yes
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579ac_cv_type_u_int64_t=no
13580fi
13581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13582fi
13583echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13584echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13585
13586 break
13587 done
13588fi
13589if test "$acx_cv_header_stdint" = stddef.h; then
13590 acx_cv_header_stdint_kind="(using manual detection)"
13591fi
13592
13593test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13594test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13595test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13596test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13597test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13598
13599# ----------------- Summarize what we found so far
13600
13601echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13602echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13603
13604case `$as_basename bfd_stdint.h ||
13605$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13606 Xbfd_stdint.h : 'X\(//\)$' \| \
13607 Xbfd_stdint.h : 'X\(/\)$' \| \
13608 . : '\(.\)' 2>/dev/null ||
13609echo X/bfd_stdint.h |
13610 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13611 /^X\/\(\/\/\)$/{ s//\1/; q; }
13612 /^X\/\(\/\).*/{ s//\1/; q; }
13613 s/.*/./; q'` in
13614 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13615echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13616 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13617echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13618 *) ;;
13619esac
13620
13621echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13622echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13623
13624# ----------------- done included file, check C basic types --------
13625
13626# Lacking an uintptr_t? Test size of void *
13627case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13628 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13629echo $ECHO_N "checking for void *... $ECHO_C" >&6
13630if test "${ac_cv_type_void_p+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13632else
13633 cat >conftest.$ac_ext <<_ACEOF
13634/* confdefs.h. */
13635_ACEOF
13636cat confdefs.h >>conftest.$ac_ext
13637cat >>conftest.$ac_ext <<_ACEOF
13638/* end confdefs.h. */
13639$ac_includes_default
13640int
13641main ()
13642{
13643if ((void * *) 0)
13644 return 0;
13645if (sizeof (void *))
13646 return 0;
13647 ;
13648 return 0;
13649}
13650_ACEOF
13651rm -f conftest.$ac_objext
13652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13653 (eval $ac_compile) 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag"
13661 || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_type_void_p=yes
13674else
13675 echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678ac_cv_type_void_p=no
13679fi
13680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13681fi
13682echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13683echo "${ECHO_T}$ac_cv_type_void_p" >&6
13684
13685echo "$as_me:$LINENO: checking size of void *" >&5
13686echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13687if test "${ac_cv_sizeof_void_p+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689else
13690 if test "$ac_cv_type_void_p" = yes; then
13691 # The cast to unsigned long works around a bug in the HP C Compiler
13692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13694 # This bug is HP SR number 8606223364.
13695 if test "$cross_compiling" = yes; then
13696 # Depending upon the size, compute the lo and hi bounds.
13697cat >conftest.$ac_ext <<_ACEOF
13698/* confdefs.h. */
13699_ACEOF
13700cat confdefs.h >>conftest.$ac_ext
13701cat >>conftest.$ac_ext <<_ACEOF
13702/* end confdefs.h. */
13703$ac_includes_default
13704int
13705main ()
13706{
13707static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13708test_array [0] = 0
13709
13710 ;
13711 return 0;
13712}
13713_ACEOF
13714rm -f conftest.$ac_objext
13715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag"
13724 || test ! -s conftest.err'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; } &&
13730 { ac_try='test -s conftest.$ac_objext'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_lo=0 ac_mid=0
13737 while :; do
13738 cat >conftest.$ac_ext <<_ACEOF
13739/* confdefs.h. */
13740_ACEOF
13741cat confdefs.h >>conftest.$ac_ext
13742cat >>conftest.$ac_ext <<_ACEOF
13743/* end confdefs.h. */
13744$ac_includes_default
13745int
13746main ()
13747{
13748static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13749test_array [0] = 0
13750
13751 ;
13752 return 0;
13753}
13754_ACEOF
13755rm -f conftest.$ac_objext
13756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757 (eval $ac_compile) 2>conftest.er1
13758 ac_status=$?
13759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
13764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest.$ac_objext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 ac_hi=$ac_mid; break
13778else
13779 echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782ac_lo=`expr $ac_mid + 1`
13783 if test $ac_lo -le $ac_mid; then
13784 ac_lo= ac_hi=
13785 break
13786 fi
13787 ac_mid=`expr 2 '*' $ac_mid + 1`
13788fi
13789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790 done
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795cat >conftest.$ac_ext <<_ACEOF
13796/* confdefs.h. */
13797_ACEOF
13798cat confdefs.h >>conftest.$ac_ext
13799cat >>conftest.$ac_ext <<_ACEOF
13800/* end confdefs.h. */
13801$ac_includes_default
13802int
13803main ()
13804{
13805static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13806test_array [0] = 0
13807
13808 ;
13809 return 0;
13810}
13811_ACEOF
13812rm -f conftest.$ac_objext
13813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -z "$ac_c_werror_flag"
13822 || test ! -s conftest.err'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest.$ac_objext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_hi=-1 ac_mid=-1
13835 while :; do
13836 cat >conftest.$ac_ext <<_ACEOF
13837/* confdefs.h. */
13838_ACEOF
13839cat confdefs.h >>conftest.$ac_ext
13840cat >>conftest.$ac_ext <<_ACEOF
13841/* end confdefs.h. */
13842$ac_includes_default
13843int
13844main ()
13845{
13846static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13847test_array [0] = 0
13848
13849 ;
13850 return 0;
13851}
13852_ACEOF
13853rm -f conftest.$ac_objext
13854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>conftest.er1
13856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_c_werror_flag"
13863 || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try='test -s conftest.$ac_objext'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
13875 ac_lo=$ac_mid; break
13876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880ac_hi=`expr '(' $ac_mid ')' - 1`
13881 if test $ac_mid -le $ac_hi; then
13882 ac_lo= ac_hi=
13883 break
13884 fi
13885 ac_mid=`expr 2 '*' $ac_mid`
13886fi
13887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13888 done
13889else
13890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
13892
13893ac_lo= ac_hi=
13894fi
13895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13896fi
13897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13898# Binary search between lo and hi bounds.
13899while test "x$ac_lo" != "x$ac_hi"; do
13900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13901 cat >conftest.$ac_ext <<_ACEOF
13902/* confdefs.h. */
13903_ACEOF
13904cat confdefs.h >>conftest.$ac_ext
13905cat >>conftest.$ac_ext <<_ACEOF
13906/* end confdefs.h. */
13907$ac_includes_default
13908int
13909main ()
13910{
13911static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13912test_array [0] = 0
13913
13914 ;
13915 return 0;
13916}
13917_ACEOF
13918rm -f conftest.$ac_objext
13919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag"
13928 || test ! -s conftest.err'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try='test -s conftest.$ac_objext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 ac_hi=$ac_mid
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945ac_lo=`expr '(' $ac_mid ')' + 1`
13946fi
13947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13948done
13949case $ac_lo in
13950?*) ac_cv_sizeof_void_p=$ac_lo;;
7a283e07
RW
13951'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13952echo "$as_me: error: in \`$ac_pwd':" >&2;}
13953{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
13954See \`config.log' for more details." >&5
13955echo "$as_me: error: cannot compute sizeof (void *), 77
13956See \`config.log' for more details." >&2;}
7a283e07 13957 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
13958esac
13959else
13960 if test "$cross_compiling" = yes; then
7a283e07
RW
13961 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13962echo "$as_me: error: in \`$ac_pwd':" >&2;}
13963{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d5efd9fc
AM
13964See \`config.log' for more details." >&5
13965echo "$as_me: error: cannot run test program while cross compiling
13966See \`config.log' for more details." >&2;}
7a283e07 13967 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
13968else
13969 cat >conftest.$ac_ext <<_ACEOF
13970/* confdefs.h. */
13971_ACEOF
13972cat confdefs.h >>conftest.$ac_ext
13973cat >>conftest.$ac_ext <<_ACEOF
13974/* end confdefs.h. */
13975$ac_includes_default
13976long longval () { return (long) (sizeof (void *)); }
13977unsigned long ulongval () { return (long) (sizeof (void *)); }
13978#include <stdio.h>
13979#include <stdlib.h>
13980int
13981main ()
13982{
13983
13984 FILE *f = fopen ("conftest.val", "w");
13985 if (! f)
13986 exit (1);
13987 if (((long) (sizeof (void *))) < 0)
13988 {
13989 long i = longval ();
13990 if (i != ((long) (sizeof (void *))))
13991 exit (1);
13992 fprintf (f, "%ld\n", i);
13993 }
13994 else
13995 {
13996 unsigned long i = ulongval ();
13997 if (i != ((long) (sizeof (void *))))
13998 exit (1);
13999 fprintf (f, "%lu\n", i);
14000 }
14001 exit (ferror (f) || fclose (f) != 0);
14002
14003 ;
14004 return 0;
14005}
14006_ACEOF
14007rm -f conftest$ac_exeext
14008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_sizeof_void_p=`cat conftest.val`
14019else
14020 echo "$as_me: program exited with status $ac_status" >&5
14021echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024( exit $ac_status )
7a283e07
RW
14025{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14026echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
14027{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14028See \`config.log' for more details." >&5
14029echo "$as_me: error: cannot compute sizeof (void *), 77
14030See \`config.log' for more details." >&2;}
7a283e07 14031 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14032fi
14033rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14034fi
14035fi
14036rm -f conftest.val
14037else
14038 ac_cv_sizeof_void_p=0
14039fi
14040fi
14041echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14042echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14043cat >>confdefs.h <<_ACEOF
14044#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14045_ACEOF
14046
14047 ;;
14048esac
14049
14050# Lacking an uint64_t? Test size of long
14051case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
14052 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
14053echo $ECHO_N "checking for long... $ECHO_C" >&6
14054if test "${ac_cv_type_long+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056else
14057 cat >conftest.$ac_ext <<_ACEOF
14058/* confdefs.h. */
14059_ACEOF
14060cat confdefs.h >>conftest.$ac_ext
14061cat >>conftest.$ac_ext <<_ACEOF
14062/* end confdefs.h. */
14063$ac_includes_default
14064int
14065main ()
14066{
14067if ((long *) 0)
14068 return 0;
14069if (sizeof (long))
14070 return 0;
14071 ;
14072 return 0;
14073}
14074_ACEOF
14075rm -f conftest.$ac_objext
14076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_type_long=yes
14098else
14099 echo "$as_me: failed program was:" >&5
14100sed 's/^/| /' conftest.$ac_ext >&5
14101
14102ac_cv_type_long=no
14103fi
14104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14105fi
14106echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14107echo "${ECHO_T}$ac_cv_type_long" >&6
14108
14109echo "$as_me:$LINENO: checking size of long" >&5
14110echo $ECHO_N "checking size of long... $ECHO_C" >&6
14111if test "${ac_cv_sizeof_long+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113else
14114 if test "$ac_cv_type_long" = yes; then
14115 # The cast to unsigned long works around a bug in the HP C Compiler
14116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14118 # This bug is HP SR number 8606223364.
14119 if test "$cross_compiling" = yes; then
14120 # Depending upon the size, compute the lo and hi bounds.
14121cat >conftest.$ac_ext <<_ACEOF
14122/* confdefs.h. */
14123_ACEOF
14124cat confdefs.h >>conftest.$ac_ext
14125cat >>conftest.$ac_ext <<_ACEOF
14126/* end confdefs.h. */
14127$ac_includes_default
14128int
14129main ()
14130{
14131static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
14132test_array [0] = 0
14133
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -z "$ac_c_werror_flag"
14148 || test ! -s conftest.err'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; } &&
14154 { ac_try='test -s conftest.$ac_objext'
14155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14157 ac_status=$?
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); }; }; then
14160 ac_lo=0 ac_mid=0
14161 while :; do
14162 cat >conftest.$ac_ext <<_ACEOF
14163/* confdefs.h. */
14164_ACEOF
14165cat confdefs.h >>conftest.$ac_ext
14166cat >>conftest.$ac_ext <<_ACEOF
14167/* end confdefs.h. */
14168$ac_includes_default
14169int
14170main ()
14171{
14172static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14173test_array [0] = 0
14174
14175 ;
14176 return 0;
14177}
14178_ACEOF
14179rm -f conftest.$ac_objext
14180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>conftest.er1
14182 ac_status=$?
14183 grep -v '^ *+' conftest.er1 >conftest.err
14184 rm -f conftest.er1
14185 cat conftest.err >&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); } &&
14188 { ac_try='test -z "$ac_c_werror_flag"
14189 || test ! -s conftest.err'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14192 ac_status=$?
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; } &&
14195 { ac_try='test -s conftest.$ac_objext'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14198 ac_status=$?
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; }; then
14201 ac_hi=$ac_mid; break
14202else
14203 echo "$as_me: failed program was:" >&5
14204sed 's/^/| /' conftest.$ac_ext >&5
14205
14206ac_lo=`expr $ac_mid + 1`
14207 if test $ac_lo -le $ac_mid; then
14208 ac_lo= ac_hi=
14209 break
14210 fi
14211 ac_mid=`expr 2 '*' $ac_mid + 1`
14212fi
14213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14214 done
14215else
14216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219cat >conftest.$ac_ext <<_ACEOF
14220/* confdefs.h. */
14221_ACEOF
14222cat confdefs.h >>conftest.$ac_ext
14223cat >>conftest.$ac_ext <<_ACEOF
14224/* end confdefs.h. */
14225$ac_includes_default
14226int
14227main ()
14228{
14229static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
14230test_array [0] = 0
14231
14232 ;
14233 return 0;
14234}
14235_ACEOF
14236rm -f conftest.$ac_objext
14237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>conftest.er1
14239 ac_status=$?
14240 grep -v '^ *+' conftest.er1 >conftest.err
14241 rm -f conftest.er1
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_c_werror_flag"
14246 || test ! -s conftest.err'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_hi=-1 ac_mid=-1
14259 while :; do
14260 cat >conftest.$ac_ext <<_ACEOF
14261/* confdefs.h. */
14262_ACEOF
14263cat confdefs.h >>conftest.$ac_ext
14264cat >>conftest.$ac_ext <<_ACEOF
14265/* end confdefs.h. */
14266$ac_includes_default
14267int
14268main ()
14269{
14270static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
14271test_array [0] = 0
14272
14273 ;
14274 return 0;
14275}
14276_ACEOF
14277rm -f conftest.$ac_objext
14278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279 (eval $ac_compile) 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_c_werror_flag"
14287 || test ! -s conftest.err'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest.$ac_objext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_lo=$ac_mid; break
14300else
14301 echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304ac_hi=`expr '(' $ac_mid ')' - 1`
14305 if test $ac_mid -le $ac_hi; then
14306 ac_lo= ac_hi=
14307 break
14308 fi
14309 ac_mid=`expr 2 '*' $ac_mid`
14310fi
14311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312 done
14313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317ac_lo= ac_hi=
14318fi
14319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14320fi
14321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322# Binary search between lo and hi bounds.
14323while test "x$ac_lo" != "x$ac_hi"; do
14324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14325 cat >conftest.$ac_ext <<_ACEOF
14326/* confdefs.h. */
14327_ACEOF
14328cat confdefs.h >>conftest.$ac_ext
14329cat >>conftest.$ac_ext <<_ACEOF
14330/* end confdefs.h. */
14331$ac_includes_default
14332int
14333main ()
14334{
14335static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
14336test_array [0] = 0
14337
14338 ;
14339 return 0;
14340}
14341_ACEOF
14342rm -f conftest.$ac_objext
14343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag"
14352 || test ! -s conftest.err'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14355 ac_status=$?
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14364 ac_hi=$ac_mid
14365else
14366 echo "$as_me: failed program was:" >&5
14367sed 's/^/| /' conftest.$ac_ext >&5
14368
14369ac_lo=`expr '(' $ac_mid ')' + 1`
14370fi
14371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14372done
14373case $ac_lo in
14374?*) ac_cv_sizeof_long=$ac_lo;;
7a283e07
RW
14375'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14376echo "$as_me: error: in \`$ac_pwd':" >&2;}
14377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
14378See \`config.log' for more details." >&5
14379echo "$as_me: error: cannot compute sizeof (long), 77
14380See \`config.log' for more details." >&2;}
7a283e07 14381 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
14382esac
14383else
14384 if test "$cross_compiling" = yes; then
7a283e07
RW
14385 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14386echo "$as_me: error: in \`$ac_pwd':" >&2;}
14387{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d5efd9fc
AM
14388See \`config.log' for more details." >&5
14389echo "$as_me: error: cannot run test program while cross compiling
14390See \`config.log' for more details." >&2;}
7a283e07 14391 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14392else
14393 cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
14399$ac_includes_default
14400long longval () { return (long) (sizeof (long)); }
14401unsigned long ulongval () { return (long) (sizeof (long)); }
14402#include <stdio.h>
14403#include <stdlib.h>
14404int
14405main ()
14406{
14407
14408 FILE *f = fopen ("conftest.val", "w");
14409 if (! f)
14410 exit (1);
14411 if (((long) (sizeof (long))) < 0)
14412 {
14413 long i = longval ();
14414 if (i != ((long) (sizeof (long))))
14415 exit (1);
14416 fprintf (f, "%ld\n", i);
14417 }
14418 else
14419 {
14420 unsigned long i = ulongval ();
14421 if (i != ((long) (sizeof (long))))
14422 exit (1);
14423 fprintf (f, "%lu\n", i);
14424 }
14425 exit (ferror (f) || fclose (f) != 0);
14426
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431rm -f conftest$ac_exeext
14432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14433 (eval $ac_link) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; }; then
14442 ac_cv_sizeof_long=`cat conftest.val`
14443else
14444 echo "$as_me: program exited with status $ac_status" >&5
14445echo "$as_me: failed program was:" >&5
14446sed 's/^/| /' conftest.$ac_ext >&5
14447
14448( exit $ac_status )
7a283e07
RW
14449{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14450echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
14451{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
14452See \`config.log' for more details." >&5
14453echo "$as_me: error: cannot compute sizeof (long), 77
14454See \`config.log' for more details." >&2;}
7a283e07 14455 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14456fi
14457rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14458fi
14459fi
14460rm -f conftest.val
14461else
14462 ac_cv_sizeof_long=0
14463fi
14464fi
14465echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14466echo "${ECHO_T}$ac_cv_sizeof_long" >&6
14467cat >>confdefs.h <<_ACEOF
14468#define SIZEOF_LONG $ac_cv_sizeof_long
14469_ACEOF
14470
14471 ;;
14472esac
14473
14474if test $acx_cv_header_stdint = stddef.h; then
14475 # Lacking a good header? Test size of everything and deduce all types.
14476 echo "$as_me:$LINENO: checking for int" >&5
14477echo $ECHO_N "checking for int... $ECHO_C" >&6
14478if test "${ac_cv_type_int+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 cat >conftest.$ac_ext <<_ACEOF
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
14486/* end confdefs.h. */
14487$ac_includes_default
14488int
14489main ()
14490{
14491if ((int *) 0)
14492 return 0;
14493if (sizeof (int))
14494 return 0;
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext
14500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_cv_type_int=yes
14522else
14523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
14526ac_cv_type_int=no
14527fi
14528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529fi
14530echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14531echo "${ECHO_T}$ac_cv_type_int" >&6
14532
14533echo "$as_me:$LINENO: checking size of int" >&5
14534echo $ECHO_N "checking size of int... $ECHO_C" >&6
14535if test "${ac_cv_sizeof_int+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14537else
14538 if test "$ac_cv_type_int" = yes; then
14539 # The cast to unsigned long works around a bug in the HP C Compiler
14540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14542 # This bug is HP SR number 8606223364.
14543 if test "$cross_compiling" = yes; then
14544 # Depending upon the size, compute the lo and hi bounds.
14545cat >conftest.$ac_ext <<_ACEOF
14546/* confdefs.h. */
14547_ACEOF
14548cat confdefs.h >>conftest.$ac_ext
14549cat >>conftest.$ac_ext <<_ACEOF
14550/* end confdefs.h. */
14551$ac_includes_default
14552int
14553main ()
14554{
14555static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14556test_array [0] = 0
14557
14558 ;
14559 return 0;
14560}
14561_ACEOF
14562rm -f conftest.$ac_objext
14563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14564 (eval $ac_compile) 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -z "$ac_c_werror_flag"
14572 || test ! -s conftest.err'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try='test -s conftest.$ac_objext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 ac_lo=0 ac_mid=0
14585 while :; do
14586 cat >conftest.$ac_ext <<_ACEOF
14587/* confdefs.h. */
14588_ACEOF
14589cat confdefs.h >>conftest.$ac_ext
14590cat >>conftest.$ac_ext <<_ACEOF
14591/* end confdefs.h. */
14592$ac_includes_default
14593int
14594main ()
14595{
14596static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14597test_array [0] = 0
14598
14599 ;
14600 return 0;
14601}
14602_ACEOF
14603rm -f conftest.$ac_objext
14604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14605 (eval $ac_compile) 2>conftest.er1
14606 ac_status=$?
14607 grep -v '^ *+' conftest.er1 >conftest.err
14608 rm -f conftest.er1
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag"
14613 || test ! -s conftest.err'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid; break
14626else
14627 echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5
14629
14630ac_lo=`expr $ac_mid + 1`
14631 if test $ac_lo -le $ac_mid; then
14632 ac_lo= ac_hi=
14633 break
14634 fi
14635 ac_mid=`expr 2 '*' $ac_mid + 1`
14636fi
14637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14638 done
14639else
14640 echo "$as_me: failed program was:" >&5
14641sed 's/^/| /' conftest.$ac_ext >&5
14642
14643cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h. */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
14649$ac_includes_default
14650int
14651main ()
14652{
14653static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14654test_array [0] = 0
14655
14656 ;
14657 return 0;
14658}
14659_ACEOF
14660rm -f conftest.$ac_objext
14661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag"
14670 || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest.$ac_objext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_hi=-1 ac_mid=-1
14683 while :; do
14684 cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690$ac_includes_default
14691int
14692main ()
14693{
14694static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14695test_array [0] = 0
14696
14697 ;
14698 return 0;
14699}
14700_ACEOF
14701rm -f conftest.$ac_objext
14702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14703 (eval $ac_compile) 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try='test -z "$ac_c_werror_flag"
14711 || test ! -s conftest.err'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 ac_lo=$ac_mid; break
14724else
14725 echo "$as_me: failed program was:" >&5
14726sed 's/^/| /' conftest.$ac_ext >&5
14727
14728ac_hi=`expr '(' $ac_mid ')' - 1`
14729 if test $ac_mid -le $ac_hi; then
14730 ac_lo= ac_hi=
14731 break
14732 fi
14733 ac_mid=`expr 2 '*' $ac_mid`
14734fi
14735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14736 done
14737else
14738 echo "$as_me: failed program was:" >&5
14739sed 's/^/| /' conftest.$ac_ext >&5
14740
14741ac_lo= ac_hi=
14742fi
14743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14744fi
14745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14746# Binary search between lo and hi bounds.
14747while test "x$ac_lo" != "x$ac_hi"; do
14748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14749 cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
14754/* end confdefs.h. */
14755$ac_includes_default
14756int
14757main ()
14758{
14759static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14760test_array [0] = 0
14761
14762 ;
14763 return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext
14767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_hi=$ac_mid
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793ac_lo=`expr '(' $ac_mid ')' + 1`
14794fi
14795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796done
14797case $ac_lo in
14798?*) ac_cv_sizeof_int=$ac_lo;;
7a283e07
RW
14799'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14800echo "$as_me: error: in \`$ac_pwd':" >&2;}
14801{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
14802See \`config.log' for more details." >&5
14803echo "$as_me: error: cannot compute sizeof (int), 77
14804See \`config.log' for more details." >&2;}
7a283e07 14805 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
14806esac
14807else
14808 if test "$cross_compiling" = yes; then
7a283e07
RW
14809 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14810echo "$as_me: error: in \`$ac_pwd':" >&2;}
14811{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d5efd9fc
AM
14812See \`config.log' for more details." >&5
14813echo "$as_me: error: cannot run test program while cross compiling
14814See \`config.log' for more details." >&2;}
7a283e07 14815 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14816else
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
14823$ac_includes_default
14824long longval () { return (long) (sizeof (int)); }
14825unsigned long ulongval () { return (long) (sizeof (int)); }
14826#include <stdio.h>
14827#include <stdlib.h>
14828int
14829main ()
14830{
14831
14832 FILE *f = fopen ("conftest.val", "w");
14833 if (! f)
14834 exit (1);
14835 if (((long) (sizeof (int))) < 0)
14836 {
14837 long i = longval ();
14838 if (i != ((long) (sizeof (int))))
14839 exit (1);
14840 fprintf (f, "%ld\n", i);
14841 }
14842 else
14843 {
14844 unsigned long i = ulongval ();
14845 if (i != ((long) (sizeof (int))))
14846 exit (1);
14847 fprintf (f, "%lu\n", i);
14848 }
14849 exit (ferror (f) || fclose (f) != 0);
14850
14851 ;
14852 return 0;
14853}
14854_ACEOF
14855rm -f conftest$ac_exeext
14856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14857 (eval $ac_link) 2>&5
14858 ac_status=$?
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_sizeof_int=`cat conftest.val`
14867else
14868 echo "$as_me: program exited with status $ac_status" >&5
14869echo "$as_me: failed program was:" >&5
14870sed 's/^/| /' conftest.$ac_ext >&5
14871
14872( exit $ac_status )
7a283e07
RW
14873{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14874echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
14875{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14876See \`config.log' for more details." >&5
14877echo "$as_me: error: cannot compute sizeof (int), 77
14878See \`config.log' for more details." >&2;}
7a283e07 14879 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
14880fi
14881rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14882fi
14883fi
14884rm -f conftest.val
14885else
14886 ac_cv_sizeof_int=0
14887fi
14888fi
14889echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14890echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14891cat >>confdefs.h <<_ACEOF
14892#define SIZEOF_INT $ac_cv_sizeof_int
14893_ACEOF
14894
14895
14896 echo "$as_me:$LINENO: checking for short" >&5
14897echo $ECHO_N "checking for short... $ECHO_C" >&6
14898if test "${ac_cv_type_short+set}" = set; then
14899 echo $ECHO_N "(cached) $ECHO_C" >&6
14900else
14901 cat >conftest.$ac_ext <<_ACEOF
14902/* confdefs.h. */
14903_ACEOF
14904cat confdefs.h >>conftest.$ac_ext
14905cat >>conftest.$ac_ext <<_ACEOF
14906/* end confdefs.h. */
14907$ac_includes_default
14908int
14909main ()
14910{
14911if ((short *) 0)
14912 return 0;
14913if (sizeof (short))
14914 return 0;
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext
14920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_type_short=yes
14942else
14943 echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946ac_cv_type_short=no
14947fi
14948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14949fi
14950echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14951echo "${ECHO_T}$ac_cv_type_short" >&6
14952
14953echo "$as_me:$LINENO: checking size of short" >&5
14954echo $ECHO_N "checking size of short... $ECHO_C" >&6
14955if test "${ac_cv_sizeof_short+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957else
14958 if test "$ac_cv_type_short" = yes; then
14959 # The cast to unsigned long works around a bug in the HP C Compiler
14960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14962 # This bug is HP SR number 8606223364.
14963 if test "$cross_compiling" = yes; then
14964 # Depending upon the size, compute the lo and hi bounds.
14965cat >conftest.$ac_ext <<_ACEOF
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971$ac_includes_default
14972int
14973main ()
14974{
14975static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14976test_array [0] = 0
14977
14978 ;
14979 return 0;
14980}
14981_ACEOF
14982rm -f conftest.$ac_objext
14983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -z "$ac_c_werror_flag"
14992 || test ! -s conftest.err'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_lo=0 ac_mid=0
15005 while :; do
15006 cat >conftest.$ac_ext <<_ACEOF
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012$ac_includes_default
15013int
15014main ()
15015{
15016static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15017test_array [0] = 0
15018
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
15024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -z "$ac_c_werror_flag"
15033 || test ! -s conftest.err'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045 ac_hi=$ac_mid; break
15046else
15047 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
15050ac_lo=`expr $ac_mid + 1`
15051 if test $ac_lo -le $ac_mid; then
15052 ac_lo= ac_hi=
15053 break
15054 fi
15055 ac_mid=`expr 2 '*' $ac_mid + 1`
15056fi
15057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15058 done
15059else
15060 echo "$as_me: failed program was:" >&5
15061sed 's/^/| /' conftest.$ac_ext >&5
15062
15063cat >conftest.$ac_ext <<_ACEOF
15064/* confdefs.h. */
15065_ACEOF
15066cat confdefs.h >>conftest.$ac_ext
15067cat >>conftest.$ac_ext <<_ACEOF
15068/* end confdefs.h. */
15069$ac_includes_default
15070int
15071main ()
15072{
15073static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15074test_array [0] = 0
15075
15076 ;
15077 return 0;
15078}
15079_ACEOF
15080rm -f conftest.$ac_objext
15081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_hi=-1 ac_mid=-1
15103 while :; do
15104 cat >conftest.$ac_ext <<_ACEOF
15105/* confdefs.h. */
15106_ACEOF
15107cat confdefs.h >>conftest.$ac_ext
15108cat >>conftest.$ac_ext <<_ACEOF
15109/* end confdefs.h. */
15110$ac_includes_default
15111int
15112main ()
15113{
15114static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15115test_array [0] = 0
15116
15117 ;
15118 return 0;
15119}
15120_ACEOF
15121rm -f conftest.$ac_objext
15122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15123 (eval $ac_compile) 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_c_werror_flag"
15131 || test ! -s conftest.err'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } &&
15137 { ac_try='test -s conftest.$ac_objext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_lo=$ac_mid; break
15144else
15145 echo "$as_me: failed program was:" >&5
15146sed 's/^/| /' conftest.$ac_ext >&5
15147
15148ac_hi=`expr '(' $ac_mid ')' - 1`
15149 if test $ac_mid -le $ac_hi; then
15150 ac_lo= ac_hi=
15151 break
15152 fi
15153 ac_mid=`expr 2 '*' $ac_mid`
15154fi
15155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15156 done
15157else
15158 echo "$as_me: failed program was:" >&5
15159sed 's/^/| /' conftest.$ac_ext >&5
15160
15161ac_lo= ac_hi=
15162fi
15163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15164fi
15165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15166# Binary search between lo and hi bounds.
15167while test "x$ac_lo" != "x$ac_hi"; do
15168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15169 cat >conftest.$ac_ext <<_ACEOF
15170/* confdefs.h. */
15171_ACEOF
15172cat confdefs.h >>conftest.$ac_ext
15173cat >>conftest.$ac_ext <<_ACEOF
15174/* end confdefs.h. */
15175$ac_includes_default
15176int
15177main ()
15178{
15179static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15180test_array [0] = 0
15181
15182 ;
15183 return 0;
15184}
15185_ACEOF
15186rm -f conftest.$ac_objext
15187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15188 (eval $ac_compile) 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag"
15196 || test ! -s conftest.err'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; } &&
15202 { ac_try='test -s conftest.$ac_objext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_hi=$ac_mid
15209else
15210 echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
15213ac_lo=`expr '(' $ac_mid ')' + 1`
15214fi
15215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15216done
15217case $ac_lo in
15218?*) ac_cv_sizeof_short=$ac_lo;;
7a283e07
RW
15219'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15220echo "$as_me: error: in \`$ac_pwd':" >&2;}
15221{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
15222See \`config.log' for more details." >&5
15223echo "$as_me: error: cannot compute sizeof (short), 77
15224See \`config.log' for more details." >&2;}
7a283e07 15225 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15226esac
15227else
15228 if test "$cross_compiling" = yes; then
7a283e07
RW
15229 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15230echo "$as_me: error: in \`$ac_pwd':" >&2;}
15231{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d5efd9fc
AM
15232See \`config.log' for more details." >&5
15233echo "$as_me: error: cannot run test program while cross compiling
15234See \`config.log' for more details." >&2;}
7a283e07 15235 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15236else
15237 cat >conftest.$ac_ext <<_ACEOF
15238/* confdefs.h. */
15239_ACEOF
15240cat confdefs.h >>conftest.$ac_ext
15241cat >>conftest.$ac_ext <<_ACEOF
15242/* end confdefs.h. */
15243$ac_includes_default
15244long longval () { return (long) (sizeof (short)); }
15245unsigned long ulongval () { return (long) (sizeof (short)); }
15246#include <stdio.h>
15247#include <stdlib.h>
15248int
15249main ()
15250{
15251
15252 FILE *f = fopen ("conftest.val", "w");
15253 if (! f)
15254 exit (1);
15255 if (((long) (sizeof (short))) < 0)
15256 {
15257 long i = longval ();
15258 if (i != ((long) (sizeof (short))))
15259 exit (1);
15260 fprintf (f, "%ld\n", i);
15261 }
15262 else
15263 {
15264 unsigned long i = ulongval ();
15265 if (i != ((long) (sizeof (short))))
15266 exit (1);
15267 fprintf (f, "%lu\n", i);
15268 }
15269 exit (ferror (f) || fclose (f) != 0);
15270
15271 ;
15272 return 0;
15273}
15274_ACEOF
15275rm -f conftest$ac_exeext
15276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5
15283 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then
15286 ac_cv_sizeof_short=`cat conftest.val`
15287else
15288 echo "$as_me: program exited with status $ac_status" >&5
15289echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292( exit $ac_status )
7a283e07
RW
15293{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15294echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15295{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15296See \`config.log' for more details." >&5
15297echo "$as_me: error: cannot compute sizeof (short), 77
15298See \`config.log' for more details." >&2;}
7a283e07 15299 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15300fi
15301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15302fi
15303fi
15304rm -f conftest.val
15305else
15306 ac_cv_sizeof_short=0
15307fi
15308fi
15309echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15310echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15311cat >>confdefs.h <<_ACEOF
15312#define SIZEOF_SHORT $ac_cv_sizeof_short
15313_ACEOF
15314
15315
15316 echo "$as_me:$LINENO: checking for char" >&5
15317echo $ECHO_N "checking for char... $ECHO_C" >&6
15318if test "${ac_cv_type_char+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320else
15321 cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327$ac_includes_default
15328int
15329main ()
15330{
15331if ((char *) 0)
15332 return 0;
15333if (sizeof (char))
15334 return 0;
15335 ;
15336 return 0;
15337}
15338_ACEOF
15339rm -f conftest.$ac_objext
15340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15341 (eval $ac_compile) 2>conftest.er1
15342 ac_status=$?
15343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } &&
15348 { ac_try='test -z "$ac_c_werror_flag"
15349 || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try='test -s conftest.$ac_objext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_cv_type_char=yes
15362else
15363 echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366ac_cv_type_char=no
15367fi
15368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15369fi
15370echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15371echo "${ECHO_T}$ac_cv_type_char" >&6
15372
15373echo "$as_me:$LINENO: checking size of char" >&5
15374echo $ECHO_N "checking size of char... $ECHO_C" >&6
15375if test "${ac_cv_sizeof_char+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377else
15378 if test "$ac_cv_type_char" = yes; then
15379 # The cast to unsigned long works around a bug in the HP C Compiler
15380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15382 # This bug is HP SR number 8606223364.
15383 if test "$cross_compiling" = yes; then
15384 # Depending upon the size, compute the lo and hi bounds.
15385cat >conftest.$ac_ext <<_ACEOF
15386/* confdefs.h. */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h. */
15391$ac_includes_default
15392int
15393main ()
15394{
15395static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15396test_array [0] = 0
15397
15398 ;
15399 return 0;
15400}
15401_ACEOF
15402rm -f conftest.$ac_objext
15403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15404 (eval $ac_compile) 2>conftest.er1
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } &&
15411 { ac_try='test -z "$ac_c_werror_flag"
15412 || test ! -s conftest.err'
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; } &&
15418 { ac_try='test -s conftest.$ac_objext'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_lo=0 ac_mid=0
15425 while :; do
15426 cat >conftest.$ac_ext <<_ACEOF
15427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432$ac_includes_default
15433int
15434main ()
15435{
15436static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15437test_array [0] = 0
15438
15439 ;
15440 return 0;
15441}
15442_ACEOF
15443rm -f conftest.$ac_objext
15444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445 (eval $ac_compile) 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -z "$ac_c_werror_flag"
15453 || test ! -s conftest.err'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; } &&
15459 { ac_try='test -s conftest.$ac_objext'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; }; then
15465 ac_hi=$ac_mid; break
15466else
15467 echo "$as_me: failed program was:" >&5
15468sed 's/^/| /' conftest.$ac_ext >&5
15469
15470ac_lo=`expr $ac_mid + 1`
15471 if test $ac_lo -le $ac_mid; then
15472 ac_lo= ac_hi=
15473 break
15474 fi
15475 ac_mid=`expr 2 '*' $ac_mid + 1`
15476fi
15477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15478 done
15479else
15480 echo "$as_me: failed program was:" >&5
15481sed 's/^/| /' conftest.$ac_ext >&5
15482
15483cat >conftest.$ac_ext <<_ACEOF
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489$ac_includes_default
15490int
15491main ()
15492{
15493static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15494test_array [0] = 0
15495
15496 ;
15497 return 0;
15498}
15499_ACEOF
15500rm -f conftest.$ac_objext
15501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15502 (eval $ac_compile) 2>conftest.er1
15503 ac_status=$?
15504 grep -v '^ *+' conftest.er1 >conftest.err
15505 rm -f conftest.er1
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -z "$ac_c_werror_flag"
15510 || test ! -s conftest.err'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_hi=-1 ac_mid=-1
15523 while :; do
15524 cat >conftest.$ac_ext <<_ACEOF
15525/* confdefs.h. */
15526_ACEOF
15527cat confdefs.h >>conftest.$ac_ext
15528cat >>conftest.$ac_ext <<_ACEOF
15529/* end confdefs.h. */
15530$ac_includes_default
15531int
15532main ()
15533{
15534static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15535test_array [0] = 0
15536
15537 ;
15538 return 0;
15539}
15540_ACEOF
15541rm -f conftest.$ac_objext
15542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15543 (eval $ac_compile) 2>conftest.er1
15544 ac_status=$?
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag"
15551 || test ! -s conftest.err'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest.$ac_objext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_lo=$ac_mid; break
15564else
15565 echo "$as_me: failed program was:" >&5
15566sed 's/^/| /' conftest.$ac_ext >&5
15567
15568ac_hi=`expr '(' $ac_mid ')' - 1`
15569 if test $ac_mid -le $ac_hi; then
15570 ac_lo= ac_hi=
15571 break
15572 fi
15573 ac_mid=`expr 2 '*' $ac_mid`
15574fi
15575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15576 done
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581ac_lo= ac_hi=
15582fi
15583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15584fi
15585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15586# Binary search between lo and hi bounds.
15587while test "x$ac_lo" != "x$ac_hi"; do
15588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15589 cat >conftest.$ac_ext <<_ACEOF
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595$ac_includes_default
15596int
15597main ()
15598{
15599static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15600test_array [0] = 0
15601
15602 ;
15603 return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext
15607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>conftest.er1
15609 ac_status=$?
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
15615 { ac_try='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest.$ac_objext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_hi=$ac_mid
15629else
15630 echo "$as_me: failed program was:" >&5
15631sed 's/^/| /' conftest.$ac_ext >&5
15632
15633ac_lo=`expr '(' $ac_mid ')' + 1`
15634fi
15635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636done
15637case $ac_lo in
15638?*) ac_cv_sizeof_char=$ac_lo;;
7a283e07
RW
15639'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15640echo "$as_me: error: in \`$ac_pwd':" >&2;}
15641{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
15642See \`config.log' for more details." >&5
15643echo "$as_me: error: cannot compute sizeof (char), 77
15644See \`config.log' for more details." >&2;}
7a283e07 15645 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15646esac
15647else
15648 if test "$cross_compiling" = yes; then
7a283e07
RW
15649 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15650echo "$as_me: error: in \`$ac_pwd':" >&2;}
15651{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
d5efd9fc
AM
15652See \`config.log' for more details." >&5
15653echo "$as_me: error: cannot run test program while cross compiling
15654See \`config.log' for more details." >&2;}
7a283e07 15655 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15656else
15657 cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663$ac_includes_default
15664long longval () { return (long) (sizeof (char)); }
15665unsigned long ulongval () { return (long) (sizeof (char)); }
15666#include <stdio.h>
15667#include <stdlib.h>
15668int
15669main ()
15670{
15671
15672 FILE *f = fopen ("conftest.val", "w");
15673 if (! f)
15674 exit (1);
15675 if (((long) (sizeof (char))) < 0)
15676 {
15677 long i = longval ();
15678 if (i != ((long) (sizeof (char))))
15679 exit (1);
15680 fprintf (f, "%ld\n", i);
15681 }
15682 else
15683 {
15684 unsigned long i = ulongval ();
15685 if (i != ((long) (sizeof (char))))
15686 exit (1);
15687 fprintf (f, "%lu\n", i);
15688 }
15689 exit (ferror (f) || fclose (f) != 0);
15690
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695rm -f conftest$ac_exeext
15696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15697 (eval $ac_link) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_sizeof_char=`cat conftest.val`
15707else
15708 echo "$as_me: program exited with status $ac_status" >&5
15709echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712( exit $ac_status )
7a283e07
RW
15713{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15714echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15715{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15716See \`config.log' for more details." >&5
15717echo "$as_me: error: cannot compute sizeof (char), 77
15718See \`config.log' for more details." >&2;}
7a283e07 15719 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15720fi
15721rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15722fi
15723fi
15724rm -f conftest.val
15725else
15726 ac_cv_sizeof_char=0
15727fi
15728fi
15729echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15730echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15731cat >>confdefs.h <<_ACEOF
15732#define SIZEOF_CHAR $ac_cv_sizeof_char
15733_ACEOF
15734
15735
15736
15737 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15738echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15739 case "$ac_cv_sizeof_char" in
15740 1) acx_cv_type_int8_t=char ;;
15741 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15742echo "$as_me: error: no 8-bit type" >&2;}
15743 { (exit please report a bug); exit please report a bug; }; }
15744 esac
15745 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15746echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15747
15748 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15749echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15750 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15751 2:*) acx_cv_type_int16_t=int ;;
15752 *:2) acx_cv_type_int16_t=short ;;
15753 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15754echo "$as_me: error: no 16-bit type" >&2;}
15755 { (exit please report a bug); exit please report a bug; }; }
15756 esac
15757 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15758echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15759
15760 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15761echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15762 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15763 4:*) acx_cv_type_int32_t=int ;;
15764 *:4) acx_cv_type_int32_t=long ;;
15765 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15766echo "$as_me: error: no 32-bit type" >&2;}
15767 { (exit please report a bug); exit please report a bug; }; }
15768 esac
15769 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15770echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15771fi
15772
15773# These tests are here to make the output prettier
15774
15775if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15776 case "$ac_cv_sizeof_long" in
15777 8) acx_cv_type_int64_t=long ;;
15778 esac
15779 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15780echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15781 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15782echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15783fi
15784
15785# Now we can use the above types
15786
15787if test "$ac_cv_type_uintptr_t" != yes; then
15788 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15789echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15790 case $ac_cv_sizeof_void_p in
15791 2) acx_cv_type_intptr_t=int16_t ;;
15792 4) acx_cv_type_intptr_t=int32_t ;;
15793 8) acx_cv_type_intptr_t=int64_t ;;
15794 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15795echo "$as_me: error: no equivalent for intptr_t" >&2;}
15796 { (exit please report a bug); exit please report a bug; }; }
15797 esac
15798 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15799echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15800fi
15801
15802# ----------------- done all checks, emit header -------------
15803 ac_config_commands="$ac_config_commands bfd_stdint.h"
15804
15805
15806
2ba49b59
KC
15807echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15808echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15809if test "${ac_cv_header_time+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15811else
15812 cat >conftest.$ac_ext <<_ACEOF
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818#include <sys/types.h>
15819#include <sys/time.h>
15820#include <time.h>
15821
15822int
15823main ()
15824{
15825if ((struct tm *) 0)
15826return 0;
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833 (eval $ac_compile) 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
49c96104
SE
15840 { ac_try='test -z "$ac_c_werror_flag"
15841 || test ! -s conftest.err'
2ba49b59
KC
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; } &&
15847 { ac_try='test -s conftest.$ac_objext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 ac_cv_header_time=yes
15854else
15855 echo "$as_me: failed program was:" >&5
15856sed 's/^/| /' conftest.$ac_ext >&5
15857
15858ac_cv_header_time=no
15859fi
15860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861fi
15862echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15863echo "${ECHO_T}$ac_cv_header_time" >&6
15864if test $ac_cv_header_time = yes; then
15865
15866cat >>confdefs.h <<\_ACEOF
15867#define TIME_WITH_SYS_TIME 1
15868_ACEOF
15869
15870fi
15871
15872
15873
15874
15875
15876
15877ac_header_dirent=no
15878for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15879 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15880echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15881echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15882if eval "test \"\${$as_ac_Header+set}\" = set"; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884else
15885 cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891#include <sys/types.h>
15892#include <$ac_hdr>
15893
15894int
15895main ()
15896{
15897if ((DIR *) 0)
15898return 0;
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
49c96104
SE
15912 { ac_try='test -z "$ac_c_werror_flag"
15913 || test ! -s conftest.err'
2ba49b59
KC
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; } &&
15919 { ac_try='test -s conftest.$ac_objext'
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 eval "$as_ac_Header=yes"
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930eval "$as_ac_Header=no"
15931fi
15932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15933fi
15934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15936if test `eval echo '${'$as_ac_Header'}'` = yes; then
15937 cat >>confdefs.h <<_ACEOF
15938#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15939_ACEOF
15940
15941ac_header_dirent=$ac_hdr; break
15942fi
15943
15944done
15945# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15946if test $ac_header_dirent = dirent.h; then
15947 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15948echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15949if test "${ac_cv_search_opendir+set}" = set; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951else
15952 ac_func_search_save_LIBS=$LIBS
15953ac_cv_search_opendir=no
15954cat >conftest.$ac_ext <<_ACEOF
15955/* confdefs.h. */
15956_ACEOF
15957cat confdefs.h >>conftest.$ac_ext
15958cat >>conftest.$ac_ext <<_ACEOF
15959/* end confdefs.h. */
15960
15961/* Override any gcc2 internal prototype to avoid an error. */
15962#ifdef __cplusplus
15963extern "C"
15964#endif
15965/* We use char because int might match the return type of a gcc2
15966 builtin and then its argument prototype would still apply. */
15967char opendir ();
15968int
15969main ()
15970{
15971opendir ();
15972 ;
15973 return 0;
15974}
15975_ACEOF
15976rm -f conftest.$ac_objext conftest$ac_exeext
15977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978 (eval $ac_link) 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
49c96104
SE
15985 { ac_try='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
2ba49b59
KC
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_search_opendir="none required"
15999else
16000 echo "$as_me: failed program was:" >&5
16001sed 's/^/| /' conftest.$ac_ext >&5
16002
16003fi
16004rm -f conftest.err conftest.$ac_objext \
16005 conftest$ac_exeext conftest.$ac_ext
16006if test "$ac_cv_search_opendir" = no; then
16007 for ac_lib in dir; do
16008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16009 cat >conftest.$ac_ext <<_ACEOF
16010/* confdefs.h. */
16011_ACEOF
16012cat confdefs.h >>conftest.$ac_ext
16013cat >>conftest.$ac_ext <<_ACEOF
16014/* end confdefs.h. */
16015
16016/* Override any gcc2 internal prototype to avoid an error. */
16017#ifdef __cplusplus
16018extern "C"
16019#endif
16020/* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022char opendir ();
16023int
16024main ()
16025{
16026opendir ();
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext conftest$ac_exeext
16032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033 (eval $ac_link) 2>conftest.er1
16034 ac_status=$?
16035 grep -v '^ *+' conftest.er1 >conftest.err
16036 rm -f conftest.er1
16037 cat conftest.err >&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
49c96104
SE
16040 { ac_try='test -z "$ac_c_werror_flag"
16041 || test ! -s conftest.err'
2ba49b59
KC
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest$ac_exeext'
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053 ac_cv_search_opendir="-l$ac_lib"
16054break
16055else
16056 echo "$as_me: failed program was:" >&5
16057sed 's/^/| /' conftest.$ac_ext >&5
16058
16059fi
16060rm -f conftest.err conftest.$ac_objext \
16061 conftest$ac_exeext conftest.$ac_ext
16062 done
16063fi
16064LIBS=$ac_func_search_save_LIBS
16065fi
16066echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16067echo "${ECHO_T}$ac_cv_search_opendir" >&6
16068if test "$ac_cv_search_opendir" != no; then
16069 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16070
16071fi
16072
16073else
16074 echo "$as_me:$LINENO: checking for library containing opendir" >&5
16075echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
16076if test "${ac_cv_search_opendir+set}" = set; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078else
16079 ac_func_search_save_LIBS=$LIBS
16080ac_cv_search_opendir=no
16081cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
16087
16088/* Override any gcc2 internal prototype to avoid an error. */
16089#ifdef __cplusplus
16090extern "C"
16091#endif
16092/* We use char because int might match the return type of a gcc2
16093 builtin and then its argument prototype would still apply. */
16094char opendir ();
16095int
16096main ()
16097{
16098opendir ();
16099 ;
16100 return 0;
16101}
16102_ACEOF
16103rm -f conftest.$ac_objext conftest$ac_exeext
16104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16105 (eval $ac_link) 2>conftest.er1
16106 ac_status=$?
16107 grep -v '^ *+' conftest.er1 >conftest.err
16108 rm -f conftest.er1
16109 cat conftest.err >&5
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } &&
49c96104
SE
16112 { ac_try='test -z "$ac_c_werror_flag"
16113 || test ! -s conftest.err'
2ba49b59
KC
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try='test -s conftest$ac_exeext'
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; }; then
16125 ac_cv_search_opendir="none required"
16126else
16127 echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
16130fi
16131rm -f conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133if test "$ac_cv_search_opendir" = no; then
16134 for ac_lib in x; do
16135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16136 cat >conftest.$ac_ext <<_ACEOF
16137/* confdefs.h. */
16138_ACEOF
16139cat confdefs.h >>conftest.$ac_ext
16140cat >>conftest.$ac_ext <<_ACEOF
16141/* end confdefs.h. */
16142
16143/* Override any gcc2 internal prototype to avoid an error. */
16144#ifdef __cplusplus
16145extern "C"
16146#endif
16147/* We use char because int might match the return type of a gcc2
16148 builtin and then its argument prototype would still apply. */
16149char opendir ();
16150int
16151main ()
16152{
16153opendir ();
16154 ;
16155 return 0;
16156}
16157_ACEOF
16158rm -f conftest.$ac_objext conftest$ac_exeext
16159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16160 (eval $ac_link) 2>conftest.er1
16161 ac_status=$?
16162 grep -v '^ *+' conftest.er1 >conftest.err
16163 rm -f conftest.er1
16164 cat conftest.err >&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
49c96104
SE
16167 { ac_try='test -z "$ac_c_werror_flag"
16168 || test ! -s conftest.err'
2ba49b59
KC
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16171 ac_status=$?
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; } &&
16174 { ac_try='test -s conftest$ac_exeext'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; }; then
16180 ac_cv_search_opendir="-l$ac_lib"
16181break
16182else
16183 echo "$as_me: failed program was:" >&5
16184sed 's/^/| /' conftest.$ac_ext >&5
16185
16186fi
16187rm -f conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189 done
16190fi
16191LIBS=$ac_func_search_save_LIBS
16192fi
16193echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16194echo "${ECHO_T}$ac_cv_search_opendir" >&6
16195if test "$ac_cv_search_opendir" != no; then
16196 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
16197
16198fi
16199
16200fi
16201
16202echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
16203echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
16204if test "${gcc_cv_header_string+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206else
16207 cat >conftest.$ac_ext <<_ACEOF
16208/* confdefs.h. */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
16212/* end confdefs.h. */
16213#include <string.h>
16214#include <strings.h>
16215int
16216main ()
16217{
16218
16219 ;
16220 return 0;
16221}
16222_ACEOF
16223rm -f conftest.$ac_objext
16224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225 (eval $ac_compile) 2>conftest.er1
16226 ac_status=$?
16227 grep -v '^ *+' conftest.er1 >conftest.err
16228 rm -f conftest.er1
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
49c96104
SE
16232 { ac_try='test -z "$ac_c_werror_flag"
16233 || test ! -s conftest.err'
2ba49b59
KC
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16245 gcc_cv_header_string=yes
16246else
16247 echo "$as_me: failed program was:" >&5
16248sed 's/^/| /' conftest.$ac_ext >&5
16249
16250gcc_cv_header_string=no
16251fi
16252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253fi
16254echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
16255echo "${ECHO_T}$gcc_cv_header_string" >&6
16256if test $gcc_cv_header_string = yes; then
16257
16258cat >>confdefs.h <<\_ACEOF
16259#define STRING_WITH_STRINGS 1
16260_ACEOF
16261
2e0fbf77
JW
16262fi
16263
5464f5a1
NN
16264
16265
16266
16267
16268
16269
16270
633fd09f 16271for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 16272do
5464f5a1
NN
16273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16274echo "$as_me:$LINENO: checking for $ac_func" >&5
16275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16276if eval "test \"\${$as_ac_var+set}\" = set"; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16287#define $ac_func innocuous_$ac_func
16288
252b5132 16289/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16290 which can conflict with char $ac_func (); below.
16291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16292 <limits.h> exists even on freestanding compilers. */
16293
16294#ifdef __STDC__
16295# include <limits.h>
16296#else
16297# include <assert.h>
16298#endif
6be7c12c 16299
5464f5a1 16300#undef $ac_func
252b5132 16301
5464f5a1
NN
16302/* Override any gcc2 internal prototype to avoid an error. */
16303#ifdef __cplusplus
16304extern "C"
16305{
16306#endif
16307/* We use char because int might match the return type of a gcc2
16308 builtin and then its argument prototype would still apply. */
16309char $ac_func ();
252b5132
RH
16310/* The GNU C library defines this for functions which it implements
16311 to always fail with ENOSYS. Some functions are actually named
16312 something starting with __ and the normal name is an alias. */
16313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16314choke me
16315#else
5464f5a1
NN
16316char (*f) () = $ac_func;
16317#endif
16318#ifdef __cplusplus
16319}
252b5132
RH
16320#endif
16321
5464f5a1
NN
16322int
16323main ()
16324{
16325return f != $ac_func;
16326 ;
16327 return 0;
16328}
16329_ACEOF
16330rm -f conftest.$ac_objext conftest$ac_exeext
16331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332 (eval $ac_link) 2>conftest.er1
16333 ac_status=$?
16334 grep -v '^ *+' conftest.er1 >conftest.err
16335 rm -f conftest.er1
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
49c96104
SE
16339 { ac_try='test -z "$ac_c_werror_flag"
16340 || test ! -s conftest.err'
5464f5a1
NN
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest$ac_exeext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 eval "$as_ac_var=yes"
16353else
16354 echo "$as_me: failed program was:" >&5
16355sed 's/^/| /' conftest.$ac_ext >&5
16356
16357eval "$as_ac_var=no"
16358fi
16359rm -f conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16361fi
16362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16364if test `eval echo '${'$as_ac_var'}'` = yes; then
16365 cat >>confdefs.h <<_ACEOF
16366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16367_ACEOF
252b5132 16368
252b5132
RH
16369fi
16370done
16371
5464f5a1 16372
49c97a80
ILT
16373for ac_func in strtoull
16374do
5464f5a1
NN
16375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16376echo "$as_me:$LINENO: checking for $ac_func" >&5
16377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16378if eval "test \"\${$as_ac_var+set}\" = set"; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16380else
16381 cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16389#define $ac_func innocuous_$ac_func
16390
49c97a80 16391/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
16392 which can conflict with char $ac_func (); below.
16393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16394 <limits.h> exists even on freestanding compilers. */
16395
16396#ifdef __STDC__
16397# include <limits.h>
16398#else
16399# include <assert.h>
16400#endif
49c97a80 16401
5464f5a1 16402#undef $ac_func
49c97a80 16403
5464f5a1
NN
16404/* Override any gcc2 internal prototype to avoid an error. */
16405#ifdef __cplusplus
16406extern "C"
16407{
16408#endif
16409/* We use char because int might match the return type of a gcc2
16410 builtin and then its argument prototype would still apply. */
16411char $ac_func ();
49c97a80
ILT
16412/* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16416choke me
16417#else
5464f5a1
NN
16418char (*f) () = $ac_func;
16419#endif
16420#ifdef __cplusplus
16421}
49c97a80
ILT
16422#endif
16423
5464f5a1
NN
16424int
16425main ()
16426{
16427return f != $ac_func;
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432rm -f conftest.$ac_objext conftest$ac_exeext
16433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16434 (eval $ac_link) 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
49c96104
SE
16441 { ac_try='test -z "$ac_c_werror_flag"
16442 || test ! -s conftest.err'
5464f5a1
NN
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16445 ac_status=$?
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; } &&
16448 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16454 eval "$as_ac_var=yes"
16455else
16456 echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459eval "$as_ac_var=no"
16460fi
16461rm -f conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463fi
16464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16466if test `eval echo '${'$as_ac_var'}'` = yes; then
16467 cat >>confdefs.h <<_ACEOF
16468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16469_ACEOF
49c97a80 16470
49c97a80
ILT
16471fi
16472done
16473
6be7c12c 16474
2e9ebff5
JG
16475echo "$as_me:$LINENO: checking whether basename is declared" >&5
16476echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
16477if test "${ac_cv_have_decl_basename+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479else
16480 cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h. */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h. */
ec7b76fe 16486$ac_includes_default
2e9ebff5
JG
16487int
16488main ()
16489{
16490#ifndef basename
16491 char *p = (char *) basename;
16492#endif
16493
16494 ;
16495 return 0;
16496}
16497_ACEOF
16498rm -f conftest.$ac_objext
16499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>conftest.er1
16501 ac_status=$?
16502 grep -v '^ *+' conftest.er1 >conftest.err
16503 rm -f conftest.er1
16504 cat conftest.err >&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
49c96104
SE
16507 { ac_try='test -z "$ac_c_werror_flag"
16508 || test ! -s conftest.err'
2e9ebff5
JG
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_cv_have_decl_basename=yes
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
16525ac_cv_have_decl_basename=no
16526fi
16527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16528fi
16529echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16530echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16531if test $ac_cv_have_decl_basename = yes; then
16532
16533cat >>confdefs.h <<_ACEOF
16534#define HAVE_DECL_BASENAME 1
16535_ACEOF
16536
16537
16538else
16539 cat >>confdefs.h <<_ACEOF
16540#define HAVE_DECL_BASENAME 0
16541_ACEOF
16542
16543
16544fi
16545
16546
ec7b76fe
JG
16547echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16548echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16549if test "${ac_cv_have_decl_ftello+set}" = set; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551else
16552 cat >conftest.$ac_ext <<_ACEOF
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
16558$ac_includes_default
16559int
16560main ()
16561{
16562#ifndef ftello
16563 char *p = (char *) ftello;
16564#endif
16565
16566 ;
16567 return 0;
16568}
16569_ACEOF
16570rm -f conftest.$ac_objext
16571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16572 (eval $ac_compile) 2>conftest.er1
16573 ac_status=$?
16574 grep -v '^ *+' conftest.er1 >conftest.err
16575 rm -f conftest.er1
16576 cat conftest.err >&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } &&
49c96104
SE
16579 { ac_try='test -z "$ac_c_werror_flag"
16580 || test ! -s conftest.err'
ec7b76fe
JG
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; } &&
16586 { ac_try='test -s conftest.$ac_objext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_have_decl_ftello=yes
16593else
16594 echo "$as_me: failed program was:" >&5
16595sed 's/^/| /' conftest.$ac_ext >&5
16596
16597ac_cv_have_decl_ftello=no
16598fi
16599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16600fi
16601echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16602echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16603if test $ac_cv_have_decl_ftello = yes; then
16604
16605cat >>confdefs.h <<_ACEOF
16606#define HAVE_DECL_FTELLO 1
16607_ACEOF
16608
16609
16610else
16611 cat >>confdefs.h <<_ACEOF
16612#define HAVE_DECL_FTELLO 0
16613_ACEOF
16614
16615
16616fi
16617
16618
16619echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16620echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16621if test "${ac_cv_have_decl_ftello64+set}" = set; then
16622 echo $ECHO_N "(cached) $ECHO_C" >&6
16623else
16624 cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630$ac_includes_default
16631int
16632main ()
16633{
16634#ifndef ftello64
16635 char *p = (char *) ftello64;
16636#endif
16637
16638 ;
16639 return 0;
16640}
16641_ACEOF
16642rm -f conftest.$ac_objext
16643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644 (eval $ac_compile) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
49c96104
SE
16651 { ac_try='test -z "$ac_c_werror_flag"
16652 || test ! -s conftest.err'
ec7b76fe
JG
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_have_decl_ftello64=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_cv_have_decl_ftello64=no
16670fi
16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672fi
16673echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16674echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16675if test $ac_cv_have_decl_ftello64 = yes; then
16676
16677cat >>confdefs.h <<_ACEOF
16678#define HAVE_DECL_FTELLO64 1
16679_ACEOF
16680
16681
16682else
16683 cat >>confdefs.h <<_ACEOF
16684#define HAVE_DECL_FTELLO64 0
16685_ACEOF
16686
16687
16688fi
16689
16690
16691echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16692echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16693if test "${ac_cv_have_decl_fseeko+set}" = set; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695else
16696 cat >conftest.$ac_ext <<_ACEOF
16697/* confdefs.h. */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
16701/* end confdefs.h. */
16702$ac_includes_default
16703int
16704main ()
16705{
16706#ifndef fseeko
16707 char *p = (char *) fseeko;
16708#endif
16709
16710 ;
16711 return 0;
16712}
16713_ACEOF
16714rm -f conftest.$ac_objext
16715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16716 (eval $ac_compile) 2>conftest.er1
16717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
49c96104
SE
16723 { ac_try='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
ec7b76fe
JG
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_have_decl_fseeko=yes
16737else
16738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741ac_cv_have_decl_fseeko=no
16742fi
16743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16744fi
16745echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16746echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16747if test $ac_cv_have_decl_fseeko = yes; then
16748
16749cat >>confdefs.h <<_ACEOF
16750#define HAVE_DECL_FSEEKO 1
16751_ACEOF
16752
16753
16754else
16755 cat >>confdefs.h <<_ACEOF
16756#define HAVE_DECL_FSEEKO 0
16757_ACEOF
16758
16759
16760fi
16761
16762
16763echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16764echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16765if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 cat >conftest.$ac_ext <<_ACEOF
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
16774$ac_includes_default
16775int
16776main ()
16777{
16778#ifndef fseeko64
16779 char *p = (char *) fseeko64;
16780#endif
16781
16782 ;
16783 return 0;
16784}
16785_ACEOF
16786rm -f conftest.$ac_objext
16787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16788 (eval $ac_compile) 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
49c96104
SE
16795 { ac_try='test -z "$ac_c_werror_flag"
16796 || test ! -s conftest.err'
ec7b76fe
JG
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } &&
16802 { ac_try='test -s conftest.$ac_objext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_cv_have_decl_fseeko64=yes
16809else
16810 echo "$as_me: failed program was:" >&5
16811sed 's/^/| /' conftest.$ac_ext >&5
16812
16813ac_cv_have_decl_fseeko64=no
16814fi
16815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16816fi
16817echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16818echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16819if test $ac_cv_have_decl_fseeko64 = yes; then
16820
16821cat >>confdefs.h <<_ACEOF
16822#define HAVE_DECL_FSEEKO64 1
16823_ACEOF
16824
16825
16826else
16827 cat >>confdefs.h <<_ACEOF
16828#define HAVE_DECL_FSEEKO64 0
16829_ACEOF
16830
16831
16832fi
16833
16834
2e9ebff5 16835
6be7c12c 16836
252b5132 16837case "${host}" in
855b0be7 16838*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16839
16840cat >>confdefs.h <<\_ACEOF
252b5132 16841#define USE_BINARY_FOPEN 1
5464f5a1 16842_ACEOF
252b5132
RH
16843 ;;
16844esac
16845
d34a2b1d
JG
16846echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16847echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16848if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16849 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16850else
5464f5a1
NN
16851 cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
d34a2b1d 16857$ac_includes_default
5464f5a1
NN
16858int
16859main ()
16860{
d34a2b1d
JG
16861#ifndef ffs
16862 char *p = (char *) ffs;
16863#endif
16864
5464f5a1
NN
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869rm -f conftest.$ac_objext
16870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16871 (eval $ac_compile) 2>conftest.er1
16872 ac_status=$?
16873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
49c96104
SE
16878 { ac_try='test -z "$ac_c_werror_flag"
16879 || test ! -s conftest.err'
5464f5a1
NN
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest.$ac_objext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
d34a2b1d 16891 ac_cv_have_decl_ffs=yes
252b5132 16892else
5464f5a1
NN
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
d34a2b1d 16896ac_cv_have_decl_ffs=no
252b5132 16897fi
5464f5a1 16898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16899fi
d34a2b1d
JG
16900echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16901echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16902if test $ac_cv_have_decl_ffs = yes; then
252b5132 16903
d34a2b1d
JG
16904cat >>confdefs.h <<_ACEOF
16905#define HAVE_DECL_FFS 1
16906_ACEOF
5464f5a1 16907
d34a2b1d
JG
16908
16909else
16910 cat >>confdefs.h <<_ACEOF
16911#define HAVE_DECL_FFS 0
5464f5a1 16912_ACEOF
252b5132 16913
d34a2b1d 16914
252b5132
RH
16915fi
16916
d34a2b1d
JG
16917
16918echo "$as_me:$LINENO: checking whether free is declared" >&5
16919echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16920if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16921 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16922else
5464f5a1
NN
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
d34a2b1d 16929$ac_includes_default
5464f5a1
NN
16930int
16931main ()
16932{
d34a2b1d
JG
16933#ifndef free
16934 char *p = (char *) free;
16935#endif
16936
5464f5a1
NN
16937 ;
16938 return 0;
16939}
16940_ACEOF
16941rm -f conftest.$ac_objext
16942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16943 (eval $ac_compile) 2>conftest.er1
16944 ac_status=$?
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
49c96104
SE
16950 { ac_try='test -z "$ac_c_werror_flag"
16951 || test ! -s conftest.err'
5464f5a1
NN
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; } &&
16957 { ac_try='test -s conftest.$ac_objext'
16958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959 (eval $ac_try) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
d34a2b1d 16963 ac_cv_have_decl_free=yes
252b5132 16964else
5464f5a1
NN
16965 echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
d34a2b1d 16968ac_cv_have_decl_free=no
252b5132 16969fi
5464f5a1 16970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16971fi
d34a2b1d
JG
16972echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16973echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16974if test $ac_cv_have_decl_free = yes; then
16975
16976cat >>confdefs.h <<_ACEOF
16977#define HAVE_DECL_FREE 1
16978_ACEOF
252b5132 16979
5464f5a1 16980
d34a2b1d
JG
16981else
16982 cat >>confdefs.h <<_ACEOF
16983#define HAVE_DECL_FREE 0
5464f5a1 16984_ACEOF
252b5132 16985
d34a2b1d 16986
252b5132
RH
16987fi
16988
d34a2b1d
JG
16989
16990echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16991echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16992if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16993 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16994else
5464f5a1
NN
16995 cat >conftest.$ac_ext <<_ACEOF
16996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
d34a2b1d 17001$ac_includes_default
5464f5a1
NN
17002int
17003main ()
17004{
d34a2b1d
JG
17005#ifndef getenv
17006 char *p = (char *) getenv;
17007#endif
17008
5464f5a1
NN
17009 ;
17010 return 0;
17011}
17012_ACEOF
17013rm -f conftest.$ac_objext
17014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015 (eval $ac_compile) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
49c96104
SE
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
5464f5a1
NN
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest.$ac_objext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
d34a2b1d 17035 ac_cv_have_decl_getenv=yes
252b5132 17036else
5464f5a1
NN
17037 echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
d34a2b1d 17040ac_cv_have_decl_getenv=no
252b5132 17041fi
5464f5a1 17042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17043fi
d34a2b1d
JG
17044echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
17045echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
17046if test $ac_cv_have_decl_getenv = yes; then
252b5132 17047
d34a2b1d
JG
17048cat >>confdefs.h <<_ACEOF
17049#define HAVE_DECL_GETENV 1
17050_ACEOF
5464f5a1 17051
d34a2b1d
JG
17052
17053else
17054 cat >>confdefs.h <<_ACEOF
17055#define HAVE_DECL_GETENV 0
5464f5a1 17056_ACEOF
252b5132 17057
d34a2b1d 17058
252b5132
RH
17059fi
17060
d34a2b1d
JG
17061
17062echo "$as_me:$LINENO: checking whether malloc is declared" >&5
17063echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
17064if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 17065 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17066else
5464f5a1
NN
17067 cat >conftest.$ac_ext <<_ACEOF
17068/* confdefs.h. */
17069_ACEOF
17070cat confdefs.h >>conftest.$ac_ext
17071cat >>conftest.$ac_ext <<_ACEOF
17072/* end confdefs.h. */
d34a2b1d 17073$ac_includes_default
5464f5a1
NN
17074int
17075main ()
17076{
d34a2b1d
JG
17077#ifndef malloc
17078 char *p = (char *) malloc;
17079#endif
17080
5464f5a1
NN
17081 ;
17082 return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext
17086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087 (eval $ac_compile) 2>conftest.er1
17088 ac_status=$?
17089 grep -v '^ *+' conftest.er1 >conftest.err
17090 rm -f conftest.er1
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
49c96104
SE
17094 { ac_try='test -z "$ac_c_werror_flag"
17095 || test ! -s conftest.err'
5464f5a1
NN
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; } &&
17101 { ac_try='test -s conftest.$ac_objext'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; }; then
d34a2b1d 17107 ac_cv_have_decl_malloc=yes
252b5132 17108else
5464f5a1
NN
17109 echo "$as_me: failed program was:" >&5
17110sed 's/^/| /' conftest.$ac_ext >&5
17111
d34a2b1d 17112ac_cv_have_decl_malloc=no
252b5132 17113fi
5464f5a1 17114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17115fi
d34a2b1d
JG
17116echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
17117echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
17118if test $ac_cv_have_decl_malloc = yes; then
252b5132 17119
d34a2b1d
JG
17120cat >>confdefs.h <<_ACEOF
17121#define HAVE_DECL_MALLOC 1
17122_ACEOF
5464f5a1 17123
d34a2b1d
JG
17124
17125else
17126 cat >>confdefs.h <<_ACEOF
17127#define HAVE_DECL_MALLOC 0
5464f5a1 17128_ACEOF
252b5132 17129
d34a2b1d 17130
252b5132
RH
17131fi
17132
d34a2b1d
JG
17133
17134echo "$as_me:$LINENO: checking whether realloc is declared" >&5
17135echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
17136if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 17137 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17138else
5464f5a1
NN
17139 cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
d34a2b1d 17145$ac_includes_default
5464f5a1
NN
17146int
17147main ()
17148{
d34a2b1d
JG
17149#ifndef realloc
17150 char *p = (char *) realloc;
17151#endif
17152
5464f5a1
NN
17153 ;
17154 return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext
17158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159 (eval $ac_compile) 2>conftest.er1
17160 ac_status=$?
17161 grep -v '^ *+' conftest.er1 >conftest.err
17162 rm -f conftest.er1
17163 cat conftest.err >&5
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); } &&
49c96104
SE
17166 { ac_try='test -z "$ac_c_werror_flag"
17167 || test ! -s conftest.err'
5464f5a1
NN
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
d34a2b1d 17179 ac_cv_have_decl_realloc=yes
252b5132 17180else
5464f5a1
NN
17181 echo "$as_me: failed program was:" >&5
17182sed 's/^/| /' conftest.$ac_ext >&5
17183
d34a2b1d 17184ac_cv_have_decl_realloc=no
252b5132 17185fi
5464f5a1 17186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 17187fi
d34a2b1d
JG
17188echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
17189echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
17190if test $ac_cv_have_decl_realloc = yes; then
17191
17192cat >>confdefs.h <<_ACEOF
17193#define HAVE_DECL_REALLOC 1
17194_ACEOF
252b5132 17195
5464f5a1 17196
d34a2b1d
JG
17197else
17198 cat >>confdefs.h <<_ACEOF
17199#define HAVE_DECL_REALLOC 0
efa9bda4
AL
17200_ACEOF
17201
d34a2b1d 17202
efa9bda4
AL
17203fi
17204
d34a2b1d 17205
be5cacdb
L
17206echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
17207echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
17208if test "${ac_cv_have_decl_stpcpy+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
17211 cat >conftest.$ac_ext <<_ACEOF
17212/* confdefs.h. */
17213_ACEOF
17214cat confdefs.h >>conftest.$ac_ext
17215cat >>conftest.$ac_ext <<_ACEOF
17216/* end confdefs.h. */
17217$ac_includes_default
17218int
17219main ()
17220{
17221#ifndef stpcpy
17222 char *p = (char *) stpcpy;
17223#endif
17224
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext
17230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231 (eval $ac_compile) 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
49c96104
SE
17238 { ac_try='test -z "$ac_c_werror_flag"
17239 || test ! -s conftest.err'
be5cacdb
L
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest.$ac_objext'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; }; then
17251 ac_cv_have_decl_stpcpy=yes
17252else
17253 echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
17256ac_cv_have_decl_stpcpy=no
17257fi
17258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17259fi
17260echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
17261echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
17262if test $ac_cv_have_decl_stpcpy = yes; then
17263
17264cat >>confdefs.h <<_ACEOF
17265#define HAVE_DECL_STPCPY 1
17266_ACEOF
17267
17268
17269else
17270 cat >>confdefs.h <<_ACEOF
17271#define HAVE_DECL_STPCPY 0
17272_ACEOF
17273
17274
17275fi
17276
17277
d34a2b1d
JG
17278echo "$as_me:$LINENO: checking whether strstr is declared" >&5
17279echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
17280if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282else
17283 cat >conftest.$ac_ext <<_ACEOF
17284/* confdefs.h. */
17285_ACEOF
17286cat confdefs.h >>conftest.$ac_ext
17287cat >>conftest.$ac_ext <<_ACEOF
17288/* end confdefs.h. */
d34a2b1d 17289$ac_includes_default
efa9bda4
AL
17290int
17291main ()
17292{
d34a2b1d
JG
17293#ifndef strstr
17294 char *p = (char *) strstr;
17295#endif
17296
efa9bda4
AL
17297 ;
17298 return 0;
17299}
17300_ACEOF
17301rm -f conftest.$ac_objext
17302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17303 (eval $ac_compile) 2>conftest.er1
17304 ac_status=$?
17305 grep -v '^ *+' conftest.er1 >conftest.err
17306 rm -f conftest.er1
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
49c96104
SE
17310 { ac_try='test -z "$ac_c_werror_flag"
17311 || test ! -s conftest.err'
efa9bda4
AL
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest.$ac_objext'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
d34a2b1d 17323 ac_cv_have_decl_strstr=yes
efa9bda4
AL
17324else
17325 echo "$as_me: failed program was:" >&5
17326sed 's/^/| /' conftest.$ac_ext >&5
17327
d34a2b1d 17328ac_cv_have_decl_strstr=no
efa9bda4
AL
17329fi
17330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17331fi
d34a2b1d
JG
17332echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
17333echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
17334if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 17335
d34a2b1d
JG
17336cat >>confdefs.h <<_ACEOF
17337#define HAVE_DECL_STRSTR 1
17338_ACEOF
efa9bda4 17339
d34a2b1d
JG
17340
17341else
17342 cat >>confdefs.h <<_ACEOF
17343#define HAVE_DECL_STRSTR 0
5464f5a1 17344_ACEOF
252b5132 17345
d34a2b1d 17346
252b5132
RH
17347fi
17348
6be7c12c 17349
36527912
AJ
17350echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17351echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
17352if test "${ac_cv_have_decl_snprintf+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354else
17355 cat >conftest.$ac_ext <<_ACEOF
17356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
17361$ac_includes_default
17362int
17363main ()
17364{
17365#ifndef snprintf
17366 char *p = (char *) snprintf;
17367#endif
17368
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext
17374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17375 (eval $ac_compile) 2>conftest.er1
17376 ac_status=$?
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
49c96104
SE
17382 { ac_try='test -z "$ac_c_werror_flag"
17383 || test ! -s conftest.err'
36527912
AJ
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest.$ac_objext'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_cv_have_decl_snprintf=yes
17396else
17397 echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400ac_cv_have_decl_snprintf=no
17401fi
17402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17403fi
17404echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17405echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
17406if test $ac_cv_have_decl_snprintf = yes; then
17407
17408cat >>confdefs.h <<_ACEOF
17409#define HAVE_DECL_SNPRINTF 1
17410_ACEOF
17411
17412
17413else
17414 cat >>confdefs.h <<_ACEOF
17415#define HAVE_DECL_SNPRINTF 0
17416_ACEOF
17417
17418
17419fi
17420
17421
17422echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17423echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
17424if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426else
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433$ac_includes_default
17434int
17435main ()
17436{
17437#ifndef vsnprintf
17438 char *p = (char *) vsnprintf;
17439#endif
17440
17441 ;
17442 return 0;
17443}
17444_ACEOF
17445rm -f conftest.$ac_objext
17446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
49c96104
SE
17454 { ac_try='test -z "$ac_c_werror_flag"
17455 || test ! -s conftest.err'
36527912
AJ
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } &&
17461 { ac_try='test -s conftest.$ac_objext'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467 ac_cv_have_decl_vsnprintf=yes
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
17472ac_cv_have_decl_vsnprintf=no
17473fi
17474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17475fi
17476echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17477echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
17478if test $ac_cv_have_decl_vsnprintf = yes; then
17479
17480cat >>confdefs.h <<_ACEOF
17481#define HAVE_DECL_VSNPRINTF 1
17482_ACEOF
17483
17484
17485else
17486 cat >>confdefs.h <<_ACEOF
17487#define HAVE_DECL_VSNPRINTF 0
17488_ACEOF
17489
17490
17491fi
17492
17493
d34a2b1d 17494
252b5132
RH
17495# If we are configured native, pick a core file support file.
17496COREFILE=
17497COREFLAG=
17498TRAD_HEADER=
17499if test "${target}" = "${host}"; then
17500 case "${host}" in
13dfd2d0 17501 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
17502 COREFILE=''
17503 ;;
ed84e695 17504 alpha*-*-linux-*)
252b5132
RH
17505 COREFILE=trad-core.lo
17506 TRAD_HEADER='"hosts/alphalinux.h"'
17507 ;;
690cc98b
NC
17508 alpha*-*-netbsd* | alpha*-*-openbsd*)
17509 COREFILE=netbsd-core.lo
17510 ;;
252b5132 17511 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
17512 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
17513 COREFILE='' ;;
e33533a4
MK
17514 arm-*-netbsd* | arm-*-openbsd*)
17515 COREFILE=netbsd-core.lo
17516 ;;
252b5132
RH
17517 arm-*-riscix) COREFILE=trad-core.lo ;;
17518 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
17519 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
17520 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17521 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17522 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
17523 hppa*-*-netbsd* | hppa*-*-openbsd*)
17524 COREFILE=netbsd-core.lo
17525 ;;
17526
dc810e39 17527 i370-*-*)
5b93d8bb
AM
17528 COREFILE=trad-core.lo
17529 TRAD_HEADER='"hosts/i370linux.h"'
17530 ;;
17531
80c7c40a 17532 i[3-7]86-sequent-bsd*)
5b93d8bb 17533 COREFILE=trad-core.lo
252b5132
RH
17534 TRAD_HEADER='"hosts/symmetry.h"'
17535 ;;
80c7c40a
NC
17536 i[3-7]86-sequent-sysv4*) ;;
17537 i[3-7]86-sequent-sysv*)
252b5132
RH
17538 COREFILE=trad-core.lo
17539 TRAD_HEADER='"hosts/symmetry.h"'
17540 ;;
80c7c40a 17541 i[3-7]86-*-bsdi)
7e3b3466
NC
17542 COREFILE=
17543 ;;
d2bef492 17544 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
17545 COREFILE=trad-core.lo
17546 TRAD_HEADER='"hosts/i386bsd.h"'
17547 ;;
0b3e17e9 17548 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
17549 COREFILE=''
17550 TRAD_HEADER='"hosts/i386bsd.h"'
17551 ;;
4615568e 17552 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17553 COREFILE=netbsd-core.lo
17554 ;;
80c7c40a 17555 i[3-7]86-esix-sysv3*)
252b5132
RH
17556 COREFILE=trad-core.lo
17557 TRAD_HEADER='"hosts/esix.h"'
17558 ;;
80c7c40a 17559 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17560 COREFILE=sco5-core.lo
17561 ;;
80c7c40a 17562 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17563 COREFILE=trad-core.lo
17564 TRAD_HEADER='"hosts/i386sco.h"'
17565 ;;
80c7c40a 17566 i[3-7]86-*-mach3*)
252b5132
RH
17567 COREFILE=trad-core.lo
17568 TRAD_HEADER='"hosts/i386mach3.h"'
17569 ;;
ed84e695 17570 i[3-7]86-*-linux-*)
252b5132
RH
17571 COREFILE=trad-core.lo
17572 TRAD_HEADER='"hosts/i386linux.h"'
17573 ;;
80c7c40a
NC
17574 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17575 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17576 i860-*-mach3* | i860-*-osf1*)
17577 COREFILE=trad-core.lo
17578 TRAD_HEADER='"hosts/i860mach3.h"'
17579 ;;
252b5132
RH
17580 mips-*-netbsd* | mips*-*-openbsd*)
17581 COREFILE=netbsd-core.lo
17582 ;;
17583 mips-dec-*)
17584 COREFILE=trad-core.lo
17585 TRAD_HEADER='"hosts/decstation.h"'
17586 ;;
17587 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17588 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17589 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
17590 mips-*-sysv4*) ;;
17591 mips-*-sysv* | mips-*-riscos*)
17592 COREFILE=trad-core.lo
17593 TRAD_HEADER='"hosts/riscos.h"'
17594 ;;
17595 mips-sony-bsd*)
17596 COREFILE=trad-core.lo
17597 TRAD_HEADER='"hosts/news-mips.h"'
17598 ;;
17599 m68*-bull*-sysv*)
17600 COREFILE=trad-core.lo
17601 TRAD_HEADER='"hosts/dpx2.h"'
17602 ;;
17603 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17604 m68*-hp-bsd*)
17605 COREFILE=trad-core.lo
17606 TRAD_HEADER='"hosts/hp300bsd.h"'
17607 ;;
ed84e695 17608 m68*-*-linux-*)
252b5132
RH
17609 COREFILE=trad-core.lo
17610 TRAD_HEADER='"hosts/m68klinux.h"'
17611 ;;
17612 m68*-motorola-sysv*)
17613 COREFILE=trad-core.lo
17614 TRAD_HEADER='"hosts/delta68.h"'
17615 ;;
17616 m68*-sony-*)
17617 COREFILE=trad-core.lo
17618 TRAD_HEADER='"hosts/news.h"'
17619 ;;
17620 m68*-*-netbsd* | m68*-*-openbsd*)
17621 COREFILE=netbsd-core.lo
17622 ;;
17623 m68*-apple-aux*)
17624 COREFILE=trad-core.lo
17625 TRAD_HEADER='"hosts/m68kaux.h"'
17626 ;;
eb1e0e80
NC
17627 m88*-*-sysv4*)
17628 ;;
17629 m88*-motorola-sysv*)
17630 COREFILE=ptrace-core.lo
17631 ;;
252b5132
RH
17632 m88*-*-mach3*)
17633 COREFILE=trad-core.lo
17634 TRAD_HEADER='"hosts/m88kmach3.h"'
17635 ;;
c6f8758f
NC
17636 m88*-*-openbsd*)
17637 COREFILE=netbsd-core.lo
17638 ;;
252b5132
RH
17639 ns32k-pc532-mach)
17640 COREFILE=trad-core.lo
17641 TRAD_HEADER='"hosts/pc532mach.h"'
17642 ;;
17643 ns32k-*-netbsd* | ns32k-*-openbsd*)
17644 COREFILE=netbsd-core.lo
17645 ;;
eb1e0e80
NC
17646 rs6000-*-lynx*)
17647 COREFILE=lynx-core.lo
17648 ;;
17649 rs6000-*-aix5.* | powerpc-*-aix5.*)
17650 COREFILE=rs6000-core.lo
17651 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17652 ;;
83954261 17653 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17654 COREFILE=rs6000-core.lo
17655 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17656 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17657 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17658 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17659echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17660 cat >conftest.$ac_ext <<_ACEOF
17661/* confdefs.h. */
17662_ACEOF
17663cat confdefs.h >>conftest.$ac_ext
17664cat >>conftest.$ac_ext <<_ACEOF
17665/* end confdefs.h. */
83954261 17666#include <core.h>
5464f5a1
NN
17667int
17668main ()
17669{
83954261 17670struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17671 ;
17672 return 0;
17673}
17674_ACEOF
17675rm -f conftest.$ac_objext
17676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
49c96104
SE
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
5464f5a1
NN
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697
17698cat >>confdefs.h <<\_ACEOF
83954261 17699#define HAVE_ST_C_IMPL 1
5464f5a1 17700_ACEOF
83954261 17701
5464f5a1
NN
17702 echo "$as_me:$LINENO: result: yes" >&5
17703echo "${ECHO_T}yes" >&6
83954261 17704else
5464f5a1
NN
17705 echo "$as_me: failed program was:" >&5
17706sed 's/^/| /' conftest.$ac_ext >&5
17707
17708echo "$as_me:$LINENO: result: no" >&5
17709echo "${ECHO_T}no" >&6
83954261 17710fi
5464f5a1 17711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17712 ;;
252b5132
RH
17713 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17714 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17715 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17716 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17717 powerpc-*-beos*) ;;
13dfd2d0
NC
17718 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17719 COREFILE='' ;;
252b5132 17720 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17721 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17722 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17723 sh*-*-netbsd* | sh*-*-openbsd*)
17724 COREFILE=netbsd-core.lo
17725 ;;
a9bf1154 17726 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17727 COREFILE=netbsd-core.lo
17728 ;;
17729 tahoe-*-*)
17730 COREFILE=trad-core.lo
17731 TRAD_HEADER='"hosts/tahoe.h"'
17732 ;;
de6e5e1a
NC
17733 vax-*-netbsd* | vax-*-openbsd*)
17734 COREFILE=netbsd-core.lo
17735 ;;
252b5132
RH
17736 vax-*-ultrix2*)
17737 COREFILE=trad-core.lo
17738 TRAD_HEADER='"hosts/vaxult2.h"'
17739 ;;
17740 vax-*-ultrix*)
17741 COREFILE=trad-core.lo
17742 TRAD_HEADER='"hosts/vaxult2.h"'
17743 ;;
ed84e695 17744 vax-*-linux-*)
f8fc3443
NC
17745 COREFILE=trad-core.lo
17746 TRAD_HEADER='"hosts/vaxlinux.h"'
17747 ;;
252b5132
RH
17748 vax-*-*)
17749 COREFILE=trad-core.lo
17750 TRAD_HEADER='"hosts/vaxbsd.h"'
17751 ;;
85cfd8d3
MK
17752 x86_64-*-netbsd* | x86_64-*-openbsd*)
17753 COREFILE=netbsd-core.lo
17754 ;;
252b5132
RH
17755 esac
17756
17757 case "$COREFILE" in
17758 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17759 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17760 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17761 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17762 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17763 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17764 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17765 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17766 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17767 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17768 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17769 esac
17770
17771 # ELF corefile support has several flavors, but all of
17772 # them use something called <sys/procfs.h>
5464f5a1
NN
17773
17774for ac_header in sys/procfs.h
252b5132 17775do
5464f5a1
NN
17776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17777if eval "test \"\${$as_ac_Header+set}\" = set"; then
17778 echo "$as_me:$LINENO: checking for $ac_header" >&5
17779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17780if eval "test \"\${$as_ac_Header+set}\" = set"; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782fi
17783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17785else
17786 # Is the header compilable?
17787echo "$as_me:$LINENO: checking $ac_header usability" >&5
17788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17789cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
17794/* end confdefs.h. */
17795$ac_includes_default
17796#include <$ac_header>
17797_ACEOF
17798rm -f conftest.$ac_objext
17799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17800 (eval $ac_compile) 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
49c96104
SE
17807 { ac_try='test -z "$ac_c_werror_flag"
17808 || test ! -s conftest.err'
5464f5a1
NN
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try='test -s conftest.$ac_objext'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820 ac_header_compiler=yes
17821else
17822 echo "$as_me: failed program was:" >&5
17823sed 's/^/| /' conftest.$ac_ext >&5
17824
17825ac_header_compiler=no
17826fi
17827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17829echo "${ECHO_T}$ac_header_compiler" >&6
17830
17831# Is the header present?
17832echo "$as_me:$LINENO: checking $ac_header presence" >&5
17833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17834cat >conftest.$ac_ext <<_ACEOF
17835/* confdefs.h. */
17836_ACEOF
17837cat confdefs.h >>conftest.$ac_ext
17838cat >>conftest.$ac_ext <<_ACEOF
17839/* end confdefs.h. */
17840#include <$ac_header>
17841_ACEOF
17842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } >/dev/null; then
17850 if test -s conftest.err; then
17851 ac_cpp_err=$ac_c_preproc_warn_flag
17852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17853 else
17854 ac_cpp_err=
17855 fi
252b5132 17856else
5464f5a1 17857 ac_cpp_err=yes
252b5132 17858fi
5464f5a1
NN
17859if test -z "$ac_cpp_err"; then
17860 ac_header_preproc=yes
17861else
17862 echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865 ac_header_preproc=no
252b5132 17866fi
5464f5a1
NN
17867rm -f conftest.err conftest.$ac_ext
17868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17869echo "${ECHO_T}$ac_header_preproc" >&6
17870
17871# So? What about this header?
17872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17873 yes:no: )
17874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17878 ac_header_preproc=yes
17879 ;;
17880 no:yes:* )
17881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17893 (
17894 cat <<\_ASBOX
17895## ------------------------------------------ ##
17896## Report this to the AC_PACKAGE_NAME lists. ##
17897## ------------------------------------------ ##
17898_ASBOX
17899 ) |
17900 sed "s/^/$as_me: WARNING: /" >&2
17901 ;;
17902esac
17903echo "$as_me:$LINENO: checking for $ac_header" >&5
17904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17905if eval "test \"\${$as_ac_Header+set}\" = set"; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17907else
5464f5a1
NN
17908 eval "$as_ac_Header=\$ac_header_preproc"
17909fi
17910echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17911echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17912
252b5132 17913fi
5464f5a1
NN
17914if test `eval echo '${'$as_ac_Header'}'` = yes; then
17915 cat >>confdefs.h <<_ACEOF
17916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17917_ACEOF
17918
17919fi
17920
252b5132
RH
17921done
17922
17923 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
17924 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17925echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17926 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928else
17929 cat >conftest.$ac_ext <<_ACEOF
17930/* confdefs.h. */
17931_ACEOF
17932cat confdefs.h >>conftest.$ac_ext
17933cat >>conftest.$ac_ext <<_ACEOF
17934/* end confdefs.h. */
7ee38065
MS
17935
17936#define _SYSCALL32
252b5132 17937#include <sys/procfs.h>
5464f5a1
NN
17938int
17939main ()
17940{
252b5132 17941prstatus_t avar
5464f5a1
NN
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest.$ac_objext
17947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>conftest.er1
17949 ac_status=$?
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
49c96104
SE
17955 { ac_try='test -z "$ac_c_werror_flag"
17956 || test ! -s conftest.err'
5464f5a1
NN
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } &&
17962 { ac_try='test -s conftest.$ac_objext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
252b5132
RH
17968 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17969else
5464f5a1
NN
17970 echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973bfd_cv_have_sys_procfs_type_prstatus_t=no
17974
252b5132 17975fi
5464f5a1 17976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17977fi
17978
17979 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
17980
17981cat >>confdefs.h <<\_ACEOF
252b5132 17982#define HAVE_PRSTATUS_T 1
5464f5a1 17983_ACEOF
252b5132
RH
17984
17985 fi
5464f5a1
NN
17986 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17987echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 17988
5464f5a1
NN
17989 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17990echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17991 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17993else
5464f5a1
NN
17994 cat >conftest.$ac_ext <<_ACEOF
17995/* confdefs.h. */
17996_ACEOF
17997cat confdefs.h >>conftest.$ac_ext
17998cat >>conftest.$ac_ext <<_ACEOF
17999/* end confdefs.h. */
7ee38065
MS
18000
18001#define _SYSCALL32
18002#include <sys/procfs.h>
5464f5a1
NN
18003int
18004main ()
18005{
7ee38065 18006prstatus32_t avar
5464f5a1
NN
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext
18012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
49c96104
SE
18020 { ac_try='test -z "$ac_c_werror_flag"
18021 || test ! -s conftest.err'
5464f5a1
NN
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
7ee38065
MS
18033 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
18034else
5464f5a1
NN
18035 echo "$as_me: failed program was:" >&5
18036sed 's/^/| /' conftest.$ac_ext >&5
18037
18038bfd_cv_have_sys_procfs_type_prstatus32_t=no
18039
7ee38065 18040fi
5464f5a1 18041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18042fi
18043
18044 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
18045
18046cat >>confdefs.h <<\_ACEOF
7ee38065 18047#define HAVE_PRSTATUS32_T 1
5464f5a1 18048_ACEOF
7ee38065
MS
18049
18050 fi
5464f5a1
NN
18051 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
18052echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 18053
5464f5a1
NN
18054 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
18055echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18056 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18058else
5464f5a1
NN
18059 cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
7ee38065
MS
18065
18066#define _SYSCALL32
252b5132 18067#include <sys/procfs.h>
5464f5a1
NN
18068int
18069main ()
18070{
252b5132 18071prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18072 ;
18073 return 0;
18074}
18075_ACEOF
18076rm -f conftest.$ac_objext
18077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18078 (eval $ac_compile) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
49c96104
SE
18085 { ac_try='test -z "$ac_c_werror_flag"
18086 || test ! -s conftest.err'
5464f5a1
NN
18087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088 (eval $ac_try) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; } &&
18092 { ac_try='test -s conftest.$ac_objext'
18093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094 (eval $ac_try) 2>&5
18095 ac_status=$?
18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097 (exit $ac_status); }; }; then
252b5132
RH
18098 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
18099else
5464f5a1
NN
18100 echo "$as_me: failed program was:" >&5
18101sed 's/^/| /' conftest.$ac_ext >&5
18102
18103bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
18104
252b5132 18105fi
5464f5a1 18106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18107fi
18108
18109 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
18110
18111cat >>confdefs.h <<\_ACEOF
252b5132 18112#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 18113_ACEOF
252b5132
RH
18114
18115 fi
5464f5a1
NN
18116 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
18117echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 18118
5464f5a1
NN
18119 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
18120echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
18121 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18123else
5464f5a1
NN
18124 cat >conftest.$ac_ext <<_ACEOF
18125/* confdefs.h. */
18126_ACEOF
18127cat confdefs.h >>conftest.$ac_ext
18128cat >>conftest.$ac_ext <<_ACEOF
18129/* end confdefs.h. */
7ee38065
MS
18130
18131#define _SYSCALL32
18132#include <sys/procfs.h>
5464f5a1
NN
18133int
18134main ()
18135{
7ee38065 18136prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext
18142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18143 (eval $ac_compile) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
49c96104
SE
18150 { ac_try='test -z "$ac_c_werror_flag"
18151 || test ! -s conftest.err'
5464f5a1
NN
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest.$ac_objext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
7ee38065
MS
18163 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
18164else
5464f5a1
NN
18165 echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
18169
7ee38065 18170fi
5464f5a1 18171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18172fi
18173
18174 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
18175
18176cat >>confdefs.h <<\_ACEOF
7ee38065 18177#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 18178_ACEOF
7ee38065
MS
18179
18180 fi
5464f5a1
NN
18181 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
18182echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 18183
5464f5a1
NN
18184 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18185echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18186 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18188else
5464f5a1
NN
18189 cat >conftest.$ac_ext <<_ACEOF
18190/* confdefs.h. */
18191_ACEOF
18192cat confdefs.h >>conftest.$ac_ext
18193cat >>conftest.$ac_ext <<_ACEOF
18194/* end confdefs.h. */
7ee38065
MS
18195
18196#define _SYSCALL32
252b5132 18197#include <sys/procfs.h>
5464f5a1
NN
18198int
18199main ()
18200{
252b5132 18201pstatus_t avar
5464f5a1
NN
18202 ;
18203 return 0;
18204}
18205_ACEOF
18206rm -f conftest.$ac_objext
18207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18208 (eval $ac_compile) 2>conftest.er1
18209 ac_status=$?
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
49c96104
SE
18215 { ac_try='test -z "$ac_c_werror_flag"
18216 || test ! -s conftest.err'
5464f5a1
NN
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
252b5132
RH
18228 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18229else
5464f5a1
NN
18230 echo "$as_me: failed program was:" >&5
18231sed 's/^/| /' conftest.$ac_ext >&5
18232
18233bfd_cv_have_sys_procfs_type_pstatus_t=no
18234
252b5132 18235fi
5464f5a1 18236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18237fi
18238
18239 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
18240
18241cat >>confdefs.h <<\_ACEOF
252b5132 18242#define HAVE_PSTATUS_T 1
5464f5a1 18243_ACEOF
252b5132
RH
18244
18245 fi
5464f5a1
NN
18246 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18247echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 18248
5464f5a1
NN
18249 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
18250echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
18251 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18253else
5464f5a1
NN
18254 cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
f572a39d
AM
18260
18261#define _SYSCALL32
18262#include <sys/procfs.h>
5464f5a1
NN
18263int
18264main ()
18265{
f572a39d 18266pxstatus_t avar
5464f5a1
NN
18267 ;
18268 return 0;
18269}
18270_ACEOF
18271rm -f conftest.$ac_objext
18272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18273 (eval $ac_compile) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
49c96104
SE
18280 { ac_try='test -z "$ac_c_werror_flag"
18281 || test ! -s conftest.err'
5464f5a1
NN
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
f572a39d
AM
18293 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
18294else
5464f5a1
NN
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298bfd_cv_have_sys_procfs_type_pxstatus_t=no
18299
f572a39d 18300fi
5464f5a1 18301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18302fi
18303
18304 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
18305
18306cat >>confdefs.h <<\_ACEOF
f572a39d 18307#define HAVE_PXSTATUS_T 1
5464f5a1 18308_ACEOF
f572a39d
AM
18309
18310 fi
5464f5a1
NN
18311 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
18312echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 18313
5464f5a1
NN
18314 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
18315echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
18316 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18318else
5464f5a1
NN
18319 cat >conftest.$ac_ext <<_ACEOF
18320/* confdefs.h. */
18321_ACEOF
18322cat confdefs.h >>conftest.$ac_ext
18323cat >>conftest.$ac_ext <<_ACEOF
18324/* end confdefs.h. */
7ee38065
MS
18325
18326#define _SYSCALL32
18327#include <sys/procfs.h>
5464f5a1
NN
18328int
18329main ()
18330{
7ee38065 18331pstatus32_t avar
5464f5a1
NN
18332 ;
18333 return 0;
18334}
18335_ACEOF
18336rm -f conftest.$ac_objext
18337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18338 (eval $ac_compile) 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } &&
49c96104
SE
18345 { ac_try='test -z "$ac_c_werror_flag"
18346 || test ! -s conftest.err'
5464f5a1
NN
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest.$ac_objext'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
7ee38065
MS
18358 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
18359else
5464f5a1
NN
18360 echo "$as_me: failed program was:" >&5
18361sed 's/^/| /' conftest.$ac_ext >&5
18362
18363bfd_cv_have_sys_procfs_type_pstatus32_t=no
18364
7ee38065 18365fi
5464f5a1 18366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18367fi
18368
18369 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
18370
18371cat >>confdefs.h <<\_ACEOF
7ee38065 18372#define HAVE_PSTATUS32_T 1
5464f5a1 18373_ACEOF
7ee38065
MS
18374
18375 fi
5464f5a1
NN
18376 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
18377echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 18378
5464f5a1
NN
18379 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
18380echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
18381 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18383else
5464f5a1
NN
18384 cat >conftest.$ac_ext <<_ACEOF
18385/* confdefs.h. */
18386_ACEOF
18387cat confdefs.h >>conftest.$ac_ext
18388cat >>conftest.$ac_ext <<_ACEOF
18389/* end confdefs.h. */
7ee38065
MS
18390
18391#define _SYSCALL32
252b5132 18392#include <sys/procfs.h>
5464f5a1
NN
18393int
18394main ()
18395{
252b5132 18396prpsinfo_t avar
5464f5a1
NN
18397 ;
18398 return 0;
18399}
18400_ACEOF
18401rm -f conftest.$ac_objext
18402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18403 (eval $ac_compile) 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
49c96104
SE
18410 { ac_try='test -z "$ac_c_werror_flag"
18411 || test ! -s conftest.err'
5464f5a1
NN
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; } &&
18417 { ac_try='test -s conftest.$ac_objext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
252b5132
RH
18423 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
18424else
5464f5a1
NN
18425 echo "$as_me: failed program was:" >&5
18426sed 's/^/| /' conftest.$ac_ext >&5
18427
18428bfd_cv_have_sys_procfs_type_prpsinfo_t=no
18429
252b5132 18430fi
5464f5a1 18431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18432fi
18433
18434 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
18435
18436cat >>confdefs.h <<\_ACEOF
252b5132 18437#define HAVE_PRPSINFO_T 1
5464f5a1 18438_ACEOF
252b5132
RH
18439
18440 fi
5464f5a1
NN
18441 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
18442echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 18443
5464f5a1
NN
18444 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
18445echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
18446 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18448else
5464f5a1
NN
18449 cat >conftest.$ac_ext <<_ACEOF
18450/* confdefs.h. */
18451_ACEOF
18452cat confdefs.h >>conftest.$ac_ext
18453cat >>conftest.$ac_ext <<_ACEOF
18454/* end confdefs.h. */
7ee38065
MS
18455
18456#define _SYSCALL32
18457#include <sys/procfs.h>
5464f5a1
NN
18458int
18459main ()
18460{
7ee38065 18461prpsinfo32_t avar
5464f5a1
NN
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18468 (eval $ac_compile) 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
49c96104
SE
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
5464f5a1
NN
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
7ee38065
MS
18488 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
18489else
5464f5a1
NN
18490 echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
18494
7ee38065 18495fi
5464f5a1 18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18497fi
18498
18499 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
18500
18501cat >>confdefs.h <<\_ACEOF
7ee38065 18502#define HAVE_PRPSINFO32_T 1
5464f5a1 18503_ACEOF
7ee38065
MS
18504
18505 fi
5464f5a1
NN
18506 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
18507echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 18508
5464f5a1
NN
18509 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
18510echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
18511 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
18512 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18513else
5464f5a1
NN
18514 cat >conftest.$ac_ext <<_ACEOF
18515/* confdefs.h. */
18516_ACEOF
18517cat confdefs.h >>conftest.$ac_ext
18518cat >>conftest.$ac_ext <<_ACEOF
18519/* end confdefs.h. */
7ee38065
MS
18520
18521#define _SYSCALL32
252b5132 18522#include <sys/procfs.h>
5464f5a1
NN
18523int
18524main ()
18525{
252b5132 18526psinfo_t avar
5464f5a1
NN
18527 ;
18528 return 0;
18529}
18530_ACEOF
18531rm -f conftest.$ac_objext
18532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533 (eval $ac_compile) 2>conftest.er1
18534 ac_status=$?
18535 grep -v '^ *+' conftest.er1 >conftest.err
18536 rm -f conftest.er1
18537 cat conftest.err >&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); } &&
49c96104
SE
18540 { ac_try='test -z "$ac_c_werror_flag"
18541 || test ! -s conftest.err'
5464f5a1
NN
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest.$ac_objext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
252b5132
RH
18553 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18554else
5464f5a1
NN
18555 echo "$as_me: failed program was:" >&5
18556sed 's/^/| /' conftest.$ac_ext >&5
18557
18558bfd_cv_have_sys_procfs_type_psinfo_t=no
18559
252b5132 18560fi
5464f5a1 18561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18562fi
18563
18564 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18565
18566cat >>confdefs.h <<\_ACEOF
252b5132 18567#define HAVE_PSINFO_T 1
5464f5a1 18568_ACEOF
252b5132
RH
18569
18570 fi
5464f5a1
NN
18571 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18572echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18573
5464f5a1
NN
18574 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18575echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18576 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18578else
5464f5a1
NN
18579 cat >conftest.$ac_ext <<_ACEOF
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
7ee38065
MS
18585
18586#define _SYSCALL32
18587#include <sys/procfs.h>
5464f5a1
NN
18588int
18589main ()
18590{
7ee38065 18591psinfo32_t avar
5464f5a1
NN
18592 ;
18593 return 0;
18594}
18595_ACEOF
18596rm -f conftest.$ac_objext
18597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18598 (eval $ac_compile) 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
49c96104
SE
18605 { ac_try='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
5464f5a1
NN
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
7ee38065
MS
18618 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18619else
5464f5a1
NN
18620 echo "$as_me: failed program was:" >&5
18621sed 's/^/| /' conftest.$ac_ext >&5
18622
18623bfd_cv_have_sys_procfs_type_psinfo32_t=no
18624
7ee38065 18625fi
5464f5a1 18626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18627fi
18628
18629 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18630
18631cat >>confdefs.h <<\_ACEOF
7ee38065 18632#define HAVE_PSINFO32_T 1
5464f5a1 18633_ACEOF
7ee38065
MS
18634
18635 fi
5464f5a1
NN
18636 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18637echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18638
5464f5a1
NN
18639 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18640echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18641 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18643else
5464f5a1
NN
18644 cat >conftest.$ac_ext <<_ACEOF
18645/* confdefs.h. */
18646_ACEOF
18647cat confdefs.h >>conftest.$ac_ext
18648cat >>conftest.$ac_ext <<_ACEOF
18649/* end confdefs.h. */
7ee38065
MS
18650
18651#define _SYSCALL32
252b5132 18652#include <sys/procfs.h>
5464f5a1
NN
18653int
18654main ()
18655{
252b5132 18656lwpstatus_t avar
5464f5a1
NN
18657 ;
18658 return 0;
18659}
18660_ACEOF
18661rm -f conftest.$ac_objext
18662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18663 (eval $ac_compile) 2>conftest.er1
18664 ac_status=$?
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
49c96104
SE
18670 { ac_try='test -z "$ac_c_werror_flag"
18671 || test ! -s conftest.err'
5464f5a1
NN
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; }; then
252b5132
RH
18683 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18684else
5464f5a1
NN
18685 echo "$as_me: failed program was:" >&5
18686sed 's/^/| /' conftest.$ac_ext >&5
18687
18688bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18689
252b5132 18690fi
5464f5a1 18691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18692fi
18693
18694 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18695
18696cat >>confdefs.h <<\_ACEOF
252b5132 18697#define HAVE_LWPSTATUS_T 1
5464f5a1 18698_ACEOF
252b5132
RH
18699
18700 fi
5464f5a1
NN
18701 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18702echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18703
5464f5a1
NN
18704 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18705echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18706 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18708else
5464f5a1
NN
18709 cat >conftest.$ac_ext <<_ACEOF
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
f572a39d
AM
18715
18716#define _SYSCALL32
18717#include <sys/procfs.h>
5464f5a1
NN
18718int
18719main ()
18720{
f572a39d 18721lwpxstatus_t avar
5464f5a1
NN
18722 ;
18723 return 0;
18724}
18725_ACEOF
18726rm -f conftest.$ac_objext
18727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18728 (eval $ac_compile) 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); } &&
49c96104
SE
18735 { ac_try='test -z "$ac_c_werror_flag"
18736 || test ! -s conftest.err'
5464f5a1
NN
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest.$ac_objext'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
f572a39d
AM
18748 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18749else
5464f5a1
NN
18750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18754
f572a39d 18755fi
5464f5a1 18756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18757fi
18758
18759 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18760
18761cat >>confdefs.h <<\_ACEOF
f572a39d 18762#define HAVE_LWPXSTATUS_T 1
5464f5a1 18763_ACEOF
f572a39d
AM
18764
18765 fi
5464f5a1
NN
18766 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18767echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18768
5464f5a1
NN
18769 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18770echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18771 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18773else
5464f5a1
NN
18774 cat >conftest.$ac_ext <<_ACEOF
18775/* confdefs.h. */
18776_ACEOF
18777cat confdefs.h >>conftest.$ac_ext
18778cat >>conftest.$ac_ext <<_ACEOF
18779/* end confdefs.h. */
7ee38065
MS
18780
18781#define _SYSCALL32
252b5132 18782#include <sys/procfs.h>
5464f5a1
NN
18783int
18784main ()
18785{
252b5132 18786lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18787 ;
18788 return 0;
18789}
18790_ACEOF
18791rm -f conftest.$ac_objext
18792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
49c96104
SE
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
5464f5a1
NN
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
252b5132
RH
18813 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18814else
5464f5a1
NN
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18819
252b5132 18820fi
5464f5a1 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18822fi
18823
18824 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18825
18826cat >>confdefs.h <<\_ACEOF
252b5132 18827#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18828_ACEOF
252b5132
RH
18829
18830 fi
5464f5a1
NN
18831 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18832echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18833
5464f5a1
NN
18834 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18835echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18836 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18838else
5464f5a1
NN
18839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
18844/* end confdefs.h. */
7ee38065
MS
18845
18846#define _SYSCALL32
252b5132 18847#include <sys/procfs.h>
5464f5a1
NN
18848int
18849main ()
18850{
252b5132 18851lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18852 ;
18853 return 0;
18854}
18855_ACEOF
18856rm -f conftest.$ac_objext
18857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18858 (eval $ac_compile) 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } &&
49c96104
SE
18865 { ac_try='test -z "$ac_c_werror_flag"
18866 || test ! -s conftest.err'
5464f5a1
NN
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
252b5132
RH
18878 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18879else
5464f5a1
NN
18880 echo "$as_me: failed program was:" >&5
18881sed 's/^/| /' conftest.$ac_ext >&5
18882
18883bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18884
252b5132 18885fi
5464f5a1 18886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18887fi
18888
18889 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18890
18891cat >>confdefs.h <<\_ACEOF
252b5132 18892#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18893_ACEOF
252b5132
RH
18894
18895 fi
5464f5a1
NN
18896 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18897echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18898
5464f5a1
NN
18899 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18900echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18901 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 18903else
5464f5a1
NN
18904 cat >conftest.$ac_ext <<_ACEOF
18905/* confdefs.h. */
18906_ACEOF
18907cat confdefs.h >>conftest.$ac_ext
18908cat >>conftest.$ac_ext <<_ACEOF
18909/* end confdefs.h. */
7ee38065
MS
18910
18911#define _SYSCALL32
e3c976c4 18912#include <sys/procfs.h>
5464f5a1
NN
18913int
18914main ()
18915{
e3c976c4 18916win32_pstatus_t avar
5464f5a1
NN
18917 ;
18918 return 0;
18919}
18920_ACEOF
18921rm -f conftest.$ac_objext
18922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18923 (eval $ac_compile) 2>conftest.er1
18924 ac_status=$?
18925 grep -v '^ *+' conftest.er1 >conftest.err
18926 rm -f conftest.er1
18927 cat conftest.err >&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
49c96104
SE
18930 { ac_try='test -z "$ac_c_werror_flag"
18931 || test ! -s conftest.err'
5464f5a1
NN
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest.$ac_objext'
18938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18940 ac_status=$?
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; }; then
e3c976c4
ILT
18943 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18944else
5464f5a1
NN
18945 echo "$as_me: failed program was:" >&5
18946sed 's/^/| /' conftest.$ac_ext >&5
18947
18948bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18949
e3c976c4 18950fi
5464f5a1 18951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18952fi
18953
e3c976c4 18954 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
18955
18956cat >>confdefs.h <<\_ACEOF
e3c976c4 18957#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 18958_ACEOF
16e9c715
NC
18959
18960 fi
5464f5a1
NN
18961 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18962echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
18963
18964 fi
18965fi
16e9c715 18966
b3baf5d0 18967
6be7c12c 18968if test -n "$TRAD_HEADER"; then
5464f5a1
NN
18969
18970cat >>confdefs.h <<_ACEOF
252b5132 18971#define TRAD_HEADER $TRAD_HEADER
5464f5a1 18972_ACEOF
252b5132 18973
3f9b03b5 18974fi
252b5132
RH
18975
18976# Horrible hacks to build DLLs on Windows.
18977WIN32LDFLAGS=
18978WIN32LIBADD=
18979case "${host}" in
18980*-*-cygwin*)
18981 if test "$enable_shared" = "yes"; then
18982 WIN32LDFLAGS="-no-undefined"
18983 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18984 fi
18985 ;;
78be1d6e 18986*-*-linux*)
39691762
L
18987 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18988 # libiberty.a.
c5cb8442
TS
18989 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18990 if test -n "$x"; then
18991 WIN32LIBADD="-L../libiberty/pic -liberty"
18992 fi
39691762 18993 ;;
252b5132
RH
18994esac
18995
6be7c12c
AO
18996
18997
252b5132
RH
18998# target stuff:
18999
19000# Canonicalize the secondary target names.
19001if test -n "$enable_targets" ; then
19002 for targ in `echo $enable_targets | sed 's/,/ /g'`
19003 do
6d83c84b 19004 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
19005 if test -n "$result" ; then
19006 canon_targets="$canon_targets $result"
19007 else
19008 # Allow targets that config.sub doesn't recognize, like "all".
19009 canon_targets="$canon_targets $targ"
19010 fi
19011 done
19012fi
19013
19014all_targets=false
19015defvec=
19016selvecs=
08f74004 19017assocvecs=
252b5132
RH
19018selarchs=
19019TDEFINES=
19020for targ in $target $canon_targets
19021do
19022 if test "x$targ" = "xall"; then
19023 all_targets=true
08f74004 19024 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
19025 else
19026 . $srcdir/config.bfd
19027 if test "x$targ" = "x$target"; then
19028 defvec=$targ_defvec
19029 fi
19030 selvecs="$selvecs $targ_defvec $targ_selvecs"
19031 selarchs="$selarchs $targ_archs"
19032 TDEFINES="$TDEFINES $targ_cflags"
19033 fi
19034done
19035
6be7c12c 19036
252b5132
RH
19037# This processing still needs to be done if we're to decide properly whether
19038# 64-bit support needs to be compiled in. Currently, it will be included if
19039# the default or any other explicitly requested target requires it; it
19040# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 19041# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
19042# used.
19043
19044# uniq the default and selected vectors in all the configured targets.
19045f=""
19046for i in $selvecs ; do
19047 case " $f " in
19048 *" $i "*) ;;
19049 *) f="$f $i" ;;
19050 esac
19051done
19052selvecs="$f"
19053
6be7c12c 19054
08f74004
AM
19055# uniq the associated vectors in all the configured targets.
19056f=""
19057for i in $assocvecs ; do
19058 case " $f " in
19059 *" $i "*) ;;
19060 *) f="$f $i" ;;
19061 esac
19062done
19063assocvecs="$f"
19064
19065
252b5132
RH
19066# uniq the architectures in all the configured targets.
19067f=""
19068for i in $selarchs ; do
19069 case " $f " in
19070 *" $i "*) ;;
19071 *) f="$f $i" ;;
19072 esac
19073done
19074selarchs="$f"
19075
19076# Target backend .o files.
19077tb=
19078
104d59d1 19079elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
19080
19081for vec in $selvecs
19082do
69263e90 19083 target_size=32
252b5132
RH
19084 case "$vec" in
19085 # This list is alphabetized to make it easy to compare
dc810e39
AM
19086 # with the two vector lists in targets.c. For the same reason,
19087 # use one entry per line, even though this leads to long lines.
252b5132 19088 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 19089 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
19090 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
19091 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
19092 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 19093 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
19094 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19095 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
19096 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
19097 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
19098 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19099 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
19100 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
19101 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
19102 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19103 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
19104 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
19105 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19106 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
19107 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
19108 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
19109 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
19110 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 19111 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
19112 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
19113 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 19114 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
19115 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
19116 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 19117 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
19118 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
19119 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 19120 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 19121 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 19122 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 19123 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 19124 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 19125 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 19126 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 19127 bfd_elf32_bigarm_symbian_vec)
00a97672 19128 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19129 bfd_elf32_bigarm_vxworks_vec)
00a97672 19130 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19131 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19132 bfd_elf32_bigmips_vxworks_vec)
19133 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 19134 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 19135 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 19136 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 19137 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
19138 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
19139 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 19140 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 19141 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 19142 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 19143 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 19144 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 19145 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 19146 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 19147 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 19148 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
19149 bfd_elf32_i386_dragonfly_vec)
19150 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
19151 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19152 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
19153 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 19154 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 19155 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 19156 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 19157 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 19158 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 19159 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 19160 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 19161 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 19162 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 19163 bfd_elf32_littlearm_symbian_vec)
00a97672 19164 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 19165 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
19166 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
19167 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
19168 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19169 bfd_elf32_littlemips_vxworks_vec)
19170 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 19171 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 19172 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
19173 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19174 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
19175 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
19176 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
19177 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
19178 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
19179 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
19180 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
19181 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
19182 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
19183 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
19184 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
19185 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 19186 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 19187 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
19188 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19189 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19190 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
19191 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 19192 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 19193 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
19194 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
19195 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
19196 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19197 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
19198 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 19199 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
19200 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
19201 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
19202 # FIXME: We include cofflink.lo not because it's needed for
19203 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
19204 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
19205 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19206 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19207 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19208 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
19209 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19210 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
19211 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19212 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19213 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19214 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
19215 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19216 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
19217 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 19218 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 19219 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
19220 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
19221 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 19222 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
19223 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
19224 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 19225 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 19226 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 19227 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 19228 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 19229 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
19230 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
19231 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 19232 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19233 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
19234 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19235 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
19236 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
19237 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19238 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 19239 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
19240 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
19241 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 19242 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 19243 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
19244 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
19245 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
19246 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
19247 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19248 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
19249 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19250 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19251 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
19252 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 19253 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 19254 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
19255 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 ;;
19256 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 19257 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 19258 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 19259 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
19260 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19261 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
19262 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
19263 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 19264 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 19265 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 19266 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 19267 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
19268 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
19269 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
19270 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
19271 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
19272 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
19273 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
19274 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
19275 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
19276 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
19277 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
19278 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
19279 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 19280 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19281 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
19282 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
19283 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
19284 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
19285 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
19286 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 19287 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
19288 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
19289 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
19290 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
19291 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
19292 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
19293 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
19294 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
19295 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19296 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
19297 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
19298 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
19299 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
19300 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
19301 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
19302 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 19303 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
19304 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
19305 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 19306 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 19307 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 19308 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
19309 mach_o_be_vec) tb="$tb mach-o.lo" ;;
19310 mach_o_le_vec) tb="$tb mach-o.lo" ;;
19311 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
19312 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19313 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
19314 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
19315 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
19316 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
19317 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 19318 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 19319 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 19320 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 19321 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 19322 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 19323 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 19324 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 19325 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
19326 pef_vec) tb="$tb pef.lo" ;;
19327 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 19328 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 19329 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19330 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 19331 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 19332 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 19333 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 19334 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19335 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 19336 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 19337 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
19338 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
19339 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 19340 som_vec) tb="$tb som.lo" ;;
dc810e39 19341 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
19342 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
19343 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
19344 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
19345 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
19346 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 19347 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 19348 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
19349 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
19350 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
19351 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
19352 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
19353 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
19354 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
19355 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
19356 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 19357 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19358 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19359 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19360 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 19361 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 19362 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 19363 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 19364 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 19365 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 19366 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 19367 versados_vec) tb="$tb versados.lo" ;;
dc810e39 19368 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
19369 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
19370 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
19371 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 19372 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 19373 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 19374
341ca622
AM
19375 # These appear out of order in targets.c
19376 srec_vec) tb="$tb srec.lo" ;;
19377 symbolsrec_vec) tb="$tb srec.lo" ;;
19378 tekhex_vec) tb="$tb tekhex.lo" ;;
19379 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
19380 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
19381
252b5132 19382 "") ;;
5464f5a1
NN
19383 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
19384echo "$as_me: error: *** unknown target vector $vec" >&2;}
19385 { (exit 1); exit 1; }; } ;;
252b5132 19386 esac
69263e90
AM
19387
19388 if test ${target_size} = 64; then
19389 target64=true
19390 fi
19391 if test x"${vec}" = x"${defvec}"; then
19392 bfd_default_target_size=${target_size}
19393 fi
252b5132
RH
19394done
19395
19396# Target architecture .o files.
19397# A couple of CPUs use shorter file names to avoid problems on DOS
19398# filesystems.
d031aafb 19399ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
19400
19401# Weed out duplicate .o files.
19402f=""
19403for i in $tb ; do
19404 case " $f " in
19405 *" $i "*) ;;
19406 *) f="$f $i" ;;
19407 esac
19408done
19409tb="$f"
19410
19411f=""
19412for i in $ta ; do
19413 case " $f " in
19414 *" $i "*) ;;
19415 *) f="$f $i" ;;
19416 esac
19417done
19418ta="$f"
19419
19420bfd_backends="$tb"
19421bfd_machines="$ta"
19422
19423if test x${all_targets} = xtrue ; then
19424 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
19425 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
19426 selvecs=
19427 havevecs=
19428 selarchs=
08f74004
AM
19429 test -n "$assocvecs" &&
19430 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
19431else # all_targets is true
19432 # Only set these if they will be nonempty, for the clever echo.
19433 havevecs=
08f74004 19434 assocvecs=
252b5132
RH
19435 test -n "$selvecs" &&
19436 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
19437 test -n "$selvecs" &&
19438 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19439 test -n "$selarchs" &&
19440 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
19441fi # all_targets is true
19442
19443case ${host64}-${target64}-${want64} in
19444 *true*)
19445 wordsize=64
21e40a48 19446 bfd64_libs='$(BFD64_LIBS)'
252b5132 19447 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 19448 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
19449 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
19450echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
19452echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 19453 fi
966abd70
HPN
19454 if test -n "$GCC" ; then
19455 bad_64bit_gcc=no;
5464f5a1
NN
19456 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
19457echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 19458 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
19459 cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
966abd70 19465:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 19466_ACEOF
966abd70 19467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 19468 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 19469 bad_64bit_gcc=yes;
5464f5a1
NN
19470 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
19471echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 19472else
5464f5a1
NN
19473 echo "$as_me:$LINENO: result: no" >&5
19474echo "${ECHO_T}no" >&6
966abd70
HPN
19475fi
19476rm -f conftest*
19477
19478 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
19479 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
19480echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
19481 { (exit 1); exit 1; }; }
966abd70
HPN
19482 fi
19483 fi
252b5132
RH
19484 ;;
19485 false-false-false)
19486 wordsize=32
19487 all_backends='$(BFD32_BACKENDS)'
19488 ;;
19489esac
19490
6be7c12c
AO
19491
19492
19493
19494
19495
69263e90 19496
2858ef35 19497
1012372a
AC
19498# Determine the host dependant file_ptr a.k.a. off_t type. In order
19499# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
19500# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
19501# Hopefully a reasonable assumption since fseeko et.al. should be
19502# upward compatible.
5464f5a1
NN
19503
19504
19505
19506
2e6f4fae
DJ
19507
19508for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 19509do
5464f5a1
NN
19510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511echo "$as_me:$LINENO: checking for $ac_func" >&5
19512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19513if eval "test \"\${$as_ac_var+set}\" = set"; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515else
2ba49b59
KC
19516 cat >conftest.$ac_ext <<_ACEOF
19517/* confdefs.h. */
19518_ACEOF
19519cat confdefs.h >>conftest.$ac_ext
19520cat >>conftest.$ac_ext <<_ACEOF
19521/* end confdefs.h. */
19522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19524#define $ac_func innocuous_$ac_func
19525
19526/* System header to define __stub macros and hopefully few prototypes,
19527 which can conflict with char $ac_func (); below.
19528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19529 <limits.h> exists even on freestanding compilers. */
19530
19531#ifdef __STDC__
19532# include <limits.h>
19533#else
19534# include <assert.h>
19535#endif
19536
19537#undef $ac_func
19538
19539/* Override any gcc2 internal prototype to avoid an error. */
19540#ifdef __cplusplus
19541extern "C"
19542{
19543#endif
19544/* We use char because int might match the return type of a gcc2
19545 builtin and then its argument prototype would still apply. */
19546char $ac_func ();
19547/* The GNU C library defines this for functions which it implements
19548 to always fail with ENOSYS. Some functions are actually named
19549 something starting with __ and the normal name is an alias. */
19550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19551choke me
19552#else
19553char (*f) () = $ac_func;
19554#endif
19555#ifdef __cplusplus
19556}
19557#endif
19558
19559int
19560main ()
19561{
19562return f != $ac_func;
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext conftest$ac_exeext
19568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569 (eval $ac_link) 2>conftest.er1
19570 ac_status=$?
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
49c96104
SE
19576 { ac_try='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
2ba49b59
KC
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try='test -s conftest$ac_exeext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 eval "$as_ac_var=yes"
19590else
19591 echo "$as_me: failed program was:" >&5
19592sed 's/^/| /' conftest.$ac_ext >&5
19593
19594eval "$as_ac_var=no"
19595fi
19596rm -f conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598fi
19599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19601if test `eval echo '${'$as_ac_var'}'` = yes; then
19602 cat >>confdefs.h <<_ACEOF
19603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19604_ACEOF
19605
19606fi
19607done
19608
19609if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19610 echo "$as_me:$LINENO: checking for off_t" >&5
19611echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19612if test "${ac_cv_type_off_t+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614else
19615 cat >conftest.$ac_ext <<_ACEOF
19616/* confdefs.h. */
19617_ACEOF
19618cat confdefs.h >>conftest.$ac_ext
19619cat >>conftest.$ac_ext <<_ACEOF
19620/* end confdefs.h. */
19621$ac_includes_default
19622int
19623main ()
19624{
19625if ((off_t *) 0)
19626 return 0;
19627if (sizeof (off_t))
19628 return 0;
19629 ;
19630 return 0;
19631}
19632_ACEOF
19633rm -f conftest.$ac_objext
19634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635 (eval $ac_compile) 2>conftest.er1
19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
49c96104
SE
19642 { ac_try='test -z "$ac_c_werror_flag"
19643 || test ! -s conftest.err'
2ba49b59
KC
19644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645 (eval $ac_try) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; }; then
19655 ac_cv_type_off_t=yes
19656else
19657 echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
19660ac_cv_type_off_t=no
19661fi
19662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663fi
19664echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19665echo "${ECHO_T}$ac_cv_type_off_t" >&6
19666
19667echo "$as_me:$LINENO: checking size of off_t" >&5
19668echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19669if test "${ac_cv_sizeof_off_t+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19671else
19672 if test "$ac_cv_type_off_t" = yes; then
19673 # The cast to unsigned long works around a bug in the HP C Compiler
19674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19676 # This bug is HP SR number 8606223364.
19677 if test "$cross_compiling" = yes; then
19678 # Depending upon the size, compute the lo and hi bounds.
19679cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
19684/* end confdefs.h. */
2ba49b59
KC
19685$ac_includes_default
19686int
19687main ()
19688{
19689static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19690test_array [0] = 0
5464f5a1 19691
2ba49b59
KC
19692 ;
19693 return 0;
19694}
19695_ACEOF
19696rm -f conftest.$ac_objext
19697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19698 (eval $ac_compile) 2>conftest.er1
19699 ac_status=$?
19700 grep -v '^ *+' conftest.er1 >conftest.err
19701 rm -f conftest.er1
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); } &&
49c96104
SE
19705 { ac_try='test -z "$ac_c_werror_flag"
19706 || test ! -s conftest.err'
2ba49b59
KC
19707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708 (eval $ac_try) 2>&5
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; } &&
19712 { ac_try='test -s conftest.$ac_objext'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
19718 ac_lo=0 ac_mid=0
19719 while :; do
19720 cat >conftest.$ac_ext <<_ACEOF
19721/* confdefs.h. */
19722_ACEOF
19723cat confdefs.h >>conftest.$ac_ext
19724cat >>conftest.$ac_ext <<_ACEOF
19725/* end confdefs.h. */
19726$ac_includes_default
19727int
19728main ()
19729{
19730static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19731test_array [0] = 0
5464f5a1 19732
2ba49b59
KC
19733 ;
19734 return 0;
19735}
19736_ACEOF
19737rm -f conftest.$ac_objext
19738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739 (eval $ac_compile) 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } &&
49c96104
SE
19746 { ac_try='test -z "$ac_c_werror_flag"
19747 || test ! -s conftest.err'
2ba49b59
KC
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_hi=$ac_mid; break
19760else
19761 echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19763
2ba49b59
KC
19764ac_lo=`expr $ac_mid + 1`
19765 if test $ac_lo -le $ac_mid; then
19766 ac_lo= ac_hi=
19767 break
19768 fi
19769 ac_mid=`expr 2 '*' $ac_mid + 1`
19770fi
19771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19772 done
19773else
19774 echo "$as_me: failed program was:" >&5
19775sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19776
2ba49b59
KC
19777cat >conftest.$ac_ext <<_ACEOF
19778/* confdefs.h. */
19779_ACEOF
19780cat confdefs.h >>conftest.$ac_ext
19781cat >>conftest.$ac_ext <<_ACEOF
19782/* end confdefs.h. */
19783$ac_includes_default
19784int
19785main ()
5464f5a1 19786{
2ba49b59
KC
19787static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19788test_array [0] = 0
1012372a 19789
2ba49b59
KC
19790 ;
19791 return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
49c96104
SE
19803 { ac_try='test -z "$ac_c_werror_flag"
19804 || test ! -s conftest.err'
2ba49b59
KC
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest.$ac_objext'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_hi=-1 ac_mid=-1
19817 while :; do
19818 cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
19824$ac_includes_default
5464f5a1
NN
19825int
19826main ()
19827{
2ba49b59
KC
19828static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19829test_array [0] = 0
19830
5464f5a1
NN
19831 ;
19832 return 0;
19833}
19834_ACEOF
2ba49b59
KC
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
49c96104
SE
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
5464f5a1
NN
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
2ba49b59 19851 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
2ba49b59 19857 ac_lo=$ac_mid; break
5464f5a1
NN
19858else
19859 echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
2ba49b59
KC
19862ac_hi=`expr '(' $ac_mid ')' - 1`
19863 if test $ac_mid -le $ac_hi; then
19864 ac_lo= ac_hi=
19865 break
19866 fi
19867 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 19868fi
2ba49b59
KC
19869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19870 done
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19874
2ba49b59 19875ac_lo= ac_hi=
1012372a 19876fi
2ba49b59
KC
19877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19878fi
19879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19880# Binary search between lo and hi bounds.
19881while test "x$ac_lo" != "x$ac_hi"; do
19882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
2ba49b59 19889$ac_includes_default
5464f5a1
NN
19890int
19891main ()
19892{
2ba49b59
KC
19893static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19894test_array [0] = 0
19895
5464f5a1
NN
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext
19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
49c96104
SE
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
5464f5a1
NN
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
2ba49b59 19922 ac_hi=$ac_mid
1012372a 19923else
5464f5a1
NN
19924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
2ba49b59 19927ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19928fi
5464f5a1 19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19930done
2ba49b59
KC
19931case $ac_lo in
19932?*) ac_cv_sizeof_off_t=$ac_lo;;
7a283e07
RW
19933'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19934echo "$as_me: error: in \`$ac_pwd':" >&2;}
19935{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
19936See \`config.log' for more details." >&5
19937echo "$as_me: error: cannot compute sizeof (off_t), 77
19938See \`config.log' for more details." >&2;}
7a283e07 19939 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
19940esac
19941else
19942 if test "$cross_compiling" = yes; then
7a283e07
RW
19943 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19944echo "$as_me: error: in \`$ac_pwd':" >&2;}
19945{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49c96104
SE
19946See \`config.log' for more details." >&5
19947echo "$as_me: error: cannot run test program while cross compiling
19948See \`config.log' for more details." >&2;}
7a283e07 19949 { (exit 1); exit 1; }; }; }
2ba49b59
KC
19950else
19951 cat >conftest.$ac_ext <<_ACEOF
19952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
19957$ac_includes_default
19958long longval () { return (long) (sizeof (off_t)); }
19959unsigned long ulongval () { return (long) (sizeof (off_t)); }
19960#include <stdio.h>
19961#include <stdlib.h>
19962int
19963main ()
19964{
1012372a 19965
2ba49b59
KC
19966 FILE *f = fopen ("conftest.val", "w");
19967 if (! f)
19968 exit (1);
19969 if (((long) (sizeof (off_t))) < 0)
19970 {
19971 long i = longval ();
19972 if (i != ((long) (sizeof (off_t))))
19973 exit (1);
19974 fprintf (f, "%ld\n", i);
19975 }
19976 else
19977 {
19978 unsigned long i = ulongval ();
19979 if (i != ((long) (sizeof (off_t))))
19980 exit (1);
19981 fprintf (f, "%lu\n", i);
19982 }
19983 exit (ferror (f) || fclose (f) != 0);
19984
19985 ;
19986 return 0;
19987}
19988_ACEOF
19989rm -f conftest$ac_exeext
19990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991 (eval $ac_link) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_sizeof_off_t=`cat conftest.val`
20001else
20002 echo "$as_me: program exited with status $ac_status" >&5
20003echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
1012372a 20005
2ba49b59 20006( exit $ac_status )
7a283e07
RW
20007{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20008echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
20009{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
20010See \`config.log' for more details." >&5
20011echo "$as_me: error: cannot compute sizeof (off_t), 77
20012See \`config.log' for more details." >&2;}
7a283e07 20013 { (exit 1); exit 1; }; }; }
1012372a 20014fi
2ba49b59
KC
20015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20016fi
20017fi
20018rm -f conftest.val
20019else
20020 ac_cv_sizeof_off_t=0
20021fi
20022fi
5464f5a1
NN
20023echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
20024echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 20025cat >>confdefs.h <<_ACEOF
1012372a 20026#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 20027_ACEOF
1012372a
AC
20028
20029
1012372a 20030fi
5464f5a1
NN
20031echo "$as_me:$LINENO: checking file_ptr type" >&5
20032echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
20033bfd_file_ptr="long"
20034bfd_ufile_ptr="unsigned long"
20035if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
20036 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
20037 bfd_file_ptr=BFD_HOST_64_BIT
20038 bfd_ufile_ptr=BFD_HOST_U_64_BIT
20039fi
5464f5a1
NN
20040echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
20041echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
20042
20043
20044
20045
252b5132
RH
20046tdefaults=""
20047test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
20048test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 20049test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
20050test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
20051test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
20052
6be7c12c 20053
5464f5a1
NN
20054
20055
20056for ac_header in stdlib.h unistd.h
252b5132 20057do
5464f5a1
NN
20058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20059if eval "test \"\${$as_ac_Header+set}\" = set"; then
20060 echo "$as_me:$LINENO: checking for $ac_header" >&5
20061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20062if eval "test \"\${$as_ac_Header+set}\" = set"; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064fi
20065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20067else
20068 # Is the header compilable?
20069echo "$as_me:$LINENO: checking $ac_header usability" >&5
20070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20071cat >conftest.$ac_ext <<_ACEOF
20072/* confdefs.h. */
20073_ACEOF
20074cat confdefs.h >>conftest.$ac_ext
20075cat >>conftest.$ac_ext <<_ACEOF
20076/* end confdefs.h. */
20077$ac_includes_default
20078#include <$ac_header>
20079_ACEOF
20080rm -f conftest.$ac_objext
20081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20083 ac_status=$?
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
49c96104
SE
20089 { ac_try='test -z "$ac_c_werror_flag"
20090 || test ! -s conftest.err'
5464f5a1
NN
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest.$ac_objext'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20102 ac_header_compiler=yes
20103else
20104 echo "$as_me: failed program was:" >&5
20105sed 's/^/| /' conftest.$ac_ext >&5
20106
20107ac_header_compiler=no
20108fi
20109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20111echo "${ECHO_T}$ac_header_compiler" >&6
20112
20113# Is the header present?
20114echo "$as_me:$LINENO: checking $ac_header presence" >&5
20115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20116cat >conftest.$ac_ext <<_ACEOF
20117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
20122#include <$ac_header>
20123_ACEOF
20124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20126 ac_status=$?
20127 grep -v '^ *+' conftest.er1 >conftest.err
20128 rm -f conftest.er1
20129 cat conftest.err >&5
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } >/dev/null; then
20132 if test -s conftest.err; then
20133 ac_cpp_err=$ac_c_preproc_warn_flag
20134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20135 else
20136 ac_cpp_err=
20137 fi
252b5132 20138else
5464f5a1 20139 ac_cpp_err=yes
252b5132 20140fi
5464f5a1
NN
20141if test -z "$ac_cpp_err"; then
20142 ac_header_preproc=yes
20143else
20144 echo "$as_me: failed program was:" >&5
20145sed 's/^/| /' conftest.$ac_ext >&5
20146
20147 ac_header_preproc=no
252b5132 20148fi
5464f5a1
NN
20149rm -f conftest.err conftest.$ac_ext
20150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20151echo "${ECHO_T}$ac_header_preproc" >&6
20152
20153# So? What about this header?
20154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20155 yes:no: )
20156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20159echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20160 ac_header_preproc=yes
20161 ;;
20162 no:yes:* )
20163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20168echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20170echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20172echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20174echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20175 (
20176 cat <<\_ASBOX
20177## ------------------------------------------ ##
20178## Report this to the AC_PACKAGE_NAME lists. ##
20179## ------------------------------------------ ##
20180_ASBOX
20181 ) |
20182 sed "s/^/$as_me: WARNING: /" >&2
20183 ;;
20184esac
20185echo "$as_me:$LINENO: checking for $ac_header" >&5
20186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20187if eval "test \"\${$as_ac_Header+set}\" = set"; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 20189else
5464f5a1
NN
20190 eval "$as_ac_Header=\$ac_header_preproc"
20191fi
20192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20194
20195fi
20196if test `eval echo '${'$as_ac_Header'}'` = yes; then
20197 cat >>confdefs.h <<_ACEOF
20198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20199_ACEOF
20200
252b5132 20201fi
5464f5a1 20202
252b5132
RH
20203done
20204
5464f5a1 20205
252b5132
RH
20206for ac_func in getpagesize
20207do
5464f5a1
NN
20208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20209echo "$as_me:$LINENO: checking for $ac_func" >&5
20210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20211if eval "test \"\${$as_ac_var+set}\" = set"; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213else
20214 cat >conftest.$ac_ext <<_ACEOF
20215/* confdefs.h. */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h. */
20220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20222#define $ac_func innocuous_$ac_func
20223
252b5132 20224/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
20225 which can conflict with char $ac_func (); below.
20226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20227 <limits.h> exists even on freestanding compilers. */
20228
20229#ifdef __STDC__
20230# include <limits.h>
20231#else
20232# include <assert.h>
20233#endif
6be7c12c 20234
5464f5a1 20235#undef $ac_func
252b5132 20236
5464f5a1
NN
20237/* Override any gcc2 internal prototype to avoid an error. */
20238#ifdef __cplusplus
20239extern "C"
20240{
20241#endif
20242/* We use char because int might match the return type of a gcc2
20243 builtin and then its argument prototype would still apply. */
20244char $ac_func ();
252b5132
RH
20245/* The GNU C library defines this for functions which it implements
20246 to always fail with ENOSYS. Some functions are actually named
20247 something starting with __ and the normal name is an alias. */
20248#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20249choke me
20250#else
5464f5a1
NN
20251char (*f) () = $ac_func;
20252#endif
20253#ifdef __cplusplus
20254}
252b5132
RH
20255#endif
20256
5464f5a1
NN
20257int
20258main ()
20259{
20260return f != $ac_func;
20261 ;
20262 return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext conftest$ac_exeext
20266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20267 (eval $ac_link) 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
49c96104
SE
20274 { ac_try='test -z "$ac_c_werror_flag"
20275 || test ! -s conftest.err'
5464f5a1
NN
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20278 ac_status=$?
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest$ac_exeext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20284 ac_status=$?
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 eval "$as_ac_var=yes"
20288else
20289 echo "$as_me: failed program was:" >&5
20290sed 's/^/| /' conftest.$ac_ext >&5
20291
20292eval "$as_ac_var=no"
20293fi
20294rm -f conftest.err conftest.$ac_objext \
20295 conftest$ac_exeext conftest.$ac_ext
20296fi
20297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20299if test `eval echo '${'$as_ac_var'}'` = yes; then
20300 cat >>confdefs.h <<_ACEOF
20301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20302_ACEOF
252b5132 20303
252b5132
RH
20304fi
20305done
20306
5464f5a1
NN
20307echo "$as_me:$LINENO: checking for working mmap" >&5
20308echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20309if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
20311else
20312 if test "$cross_compiling" = yes; then
20313 ac_cv_func_mmap_fixed_mapped=no
20314else
5464f5a1
NN
20315 cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
20321$ac_includes_default
20322/* malloc might have been renamed as rpl_malloc. */
20323#undef malloc
6be7c12c 20324
252b5132
RH
20325/* Thanks to Mike Haertel and Jim Avera for this test.
20326 Here is a matrix of mmap possibilities:
20327 mmap private not fixed
20328 mmap private fixed at somewhere currently unmapped
20329 mmap private fixed at somewhere already mapped
20330 mmap shared not fixed
20331 mmap shared fixed at somewhere currently unmapped
20332 mmap shared fixed at somewhere already mapped
20333 For private mappings, we should verify that changes cannot be read()
20334 back from the file, nor mmap's back from the file at a different
20335 address. (There have been systems where private was not correctly
20336 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 20337 VM page cache was not coherent with the file system buffer cache
252b5132
RH
20338 like early versions of FreeBSD and possibly contemporary NetBSD.)
20339 For shared mappings, we should conversely verify that changes get
5464f5a1 20340 propagated back to all the places they're supposed to be.
252b5132
RH
20341
20342 Grep wants private fixed already mapped.
20343 The main things grep needs to know about mmap are:
20344 * does it exist and is it safe to write into the mmap'd area
20345 * how to use it (BSD variants) */
5464f5a1 20346
252b5132
RH
20347#include <fcntl.h>
20348#include <sys/mman.h>
20349
5464f5a1
NN
20350#if !STDC_HEADERS && !HAVE_STDLIB_H
20351char *malloc ();
20352#endif
6be7c12c 20353
5464f5a1
NN
20354/* This mess was copied from the GNU getpagesize.h. */
20355#if !HAVE_GETPAGESIZE
252b5132 20356/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 20357# if !HAVE_SYS_PARAM_H
252b5132
RH
20358# define HAVE_SYS_PARAM_H 1
20359# endif
20360
20361# ifdef _SC_PAGESIZE
20362# define getpagesize() sysconf(_SC_PAGESIZE)
20363# else /* no _SC_PAGESIZE */
5464f5a1 20364# if HAVE_SYS_PARAM_H
252b5132
RH
20365# include <sys/param.h>
20366# ifdef EXEC_PAGESIZE
20367# define getpagesize() EXEC_PAGESIZE
20368# else /* no EXEC_PAGESIZE */
20369# ifdef NBPG
20370# define getpagesize() NBPG * CLSIZE
20371# ifndef CLSIZE
20372# define CLSIZE 1
20373# endif /* no CLSIZE */
20374# else /* no NBPG */
20375# ifdef NBPC
20376# define getpagesize() NBPC
20377# else /* no NBPC */
20378# ifdef PAGESIZE
20379# define getpagesize() PAGESIZE
20380# endif /* PAGESIZE */
20381# endif /* no NBPC */
20382# endif /* no NBPG */
20383# endif /* no EXEC_PAGESIZE */
20384# else /* no HAVE_SYS_PARAM_H */
20385# define getpagesize() 8192 /* punt totally */
20386# endif /* no HAVE_SYS_PARAM_H */
20387# endif /* no _SC_PAGESIZE */
20388
5464f5a1
NN
20389#endif /* no HAVE_GETPAGESIZE */
20390
20391int
20392main ()
20393{
20394 char *data, *data2, *data3;
20395 int i, pagesize;
20396 int fd;
20397
20398 pagesize = getpagesize ();
20399
20400 /* First, make a file with some known garbage in it. */
20401 data = (char *) malloc (pagesize);
20402 if (!data)
20403 exit (1);
20404 for (i = 0; i < pagesize; ++i)
20405 *(data + i) = rand ();
20406 umask (0);
20407 fd = creat ("conftest.mmap", 0600);
20408 if (fd < 0)
20409 exit (1);
20410 if (write (fd, data, pagesize) != pagesize)
20411 exit (1);
20412 close (fd);
20413
20414 /* Next, try to mmap the file at a fixed address which already has
20415 something else allocated at it. If we can, also make sure that
20416 we see the same garbage. */
20417 fd = open ("conftest.mmap", O_RDWR);
20418 if (fd < 0)
20419 exit (1);
20420 data2 = (char *) malloc (2 * pagesize);
20421 if (!data2)
20422 exit (1);
20423 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
20424 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20425 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20426 exit (1);
20427 for (i = 0; i < pagesize; ++i)
20428 if (*(data + i) != *(data2 + i))
20429 exit (1);
20430
20431 /* Finally, make sure that changes to the mapped area do not
20432 percolate back to the file as seen by read(). (This is a bug on
20433 some variants of i386 svr4.0.) */
20434 for (i = 0; i < pagesize; ++i)
20435 *(data2 + i) = *(data2 + i) + 1;
20436 data3 = (char *) malloc (pagesize);
20437 if (!data3)
20438 exit (1);
20439 if (read (fd, data3, pagesize) != pagesize)
20440 exit (1);
20441 for (i = 0; i < pagesize; ++i)
20442 if (*(data + i) != *(data3 + i))
20443 exit (1);
20444 close (fd);
20445 exit (0);
20446}
20447_ACEOF
20448rm -f conftest$ac_exeext
20449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450 (eval $ac_link) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 ac_cv_func_mmap_fixed_mapped=yes
20460else
20461 echo "$as_me: program exited with status $ac_status" >&5
20462echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465( exit $ac_status )
20466ac_cv_func_mmap_fixed_mapped=no
20467fi
20468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20469fi
20470fi
20471echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20472echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
20473if test $ac_cv_func_mmap_fixed_mapped = yes; then
20474
20475cat >>confdefs.h <<\_ACEOF
20476#define HAVE_MMAP 1
20477_ACEOF
20478
20479fi
20480rm -f conftest.mmap
20481
20482
20483
20484for ac_func in madvise mprotect
20485do
20486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20487echo "$as_me:$LINENO: checking for $ac_func" >&5
20488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20489if eval "test \"\${$as_ac_var+set}\" = set"; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491else
20492 cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h. */
20498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20500#define $ac_func innocuous_$ac_func
20501
20502/* System header to define __stub macros and hopefully few prototypes,
20503 which can conflict with char $ac_func (); below.
20504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20505 <limits.h> exists even on freestanding compilers. */
20506
20507#ifdef __STDC__
20508# include <limits.h>
20509#else
20510# include <assert.h>
20511#endif
20512
20513#undef $ac_func
20514
20515/* Override any gcc2 internal prototype to avoid an error. */
20516#ifdef __cplusplus
20517extern "C"
20518{
20519#endif
20520/* We use char because int might match the return type of a gcc2
20521 builtin and then its argument prototype would still apply. */
20522char $ac_func ();
20523/* The GNU C library defines this for functions which it implements
20524 to always fail with ENOSYS. Some functions are actually named
20525 something starting with __ and the normal name is an alias. */
20526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20527choke me
20528#else
20529char (*f) () = $ac_func;
20530#endif
20531#ifdef __cplusplus
20532}
20533#endif
20534
20535int
20536main ()
20537{
20538return f != $ac_func;
20539 ;
20540 return 0;
20541}
20542_ACEOF
20543rm -f conftest.$ac_objext conftest$ac_exeext
20544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545 (eval $ac_link) 2>conftest.er1
20546 ac_status=$?
20547 grep -v '^ *+' conftest.er1 >conftest.err
20548 rm -f conftest.er1
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
49c96104
SE
20552 { ac_try='test -z "$ac_c_werror_flag"
20553 || test ! -s conftest.err'
5464f5a1
NN
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; } &&
20559 { ac_try='test -s conftest$ac_exeext'
20560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561 (eval $ac_try) 2>&5
20562 ac_status=$?
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); }; }; then
20565 eval "$as_ac_var=yes"
20566else
20567 echo "$as_me: failed program was:" >&5
20568sed 's/^/| /' conftest.$ac_ext >&5
20569
20570eval "$as_ac_var=no"
20571fi
20572rm -f conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
20574fi
20575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20577if test `eval echo '${'$as_ac_var'}'` = yes; then
20578 cat >>confdefs.h <<_ACEOF
20579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20580_ACEOF
20581
20582fi
20583done
20584
20585case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20586 true+yes )
20587cat >>confdefs.h <<\_ACEOF
20588#define USE_MMAP 1
20589_ACEOF
20590 ;;
20591esac
20592
20593rm -f doc/config.status
20594 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20595
20e95c23 20596
5464f5a1
NN
20597 ac_config_commands="$ac_config_commands default"
20598
108a6f8e
CD
20599
20600
20601
20602
20603
5464f5a1
NN
20604cat >confcache <<\_ACEOF
20605# This file is a shell script that caches the results of configure
20606# tests run on this system so they can be shared between configure
20607# scripts and configure runs, see configure's option --config-cache.
20608# It is not useful on other systems. If it contains results you don't
20609# want to keep, you may remove or edit it.
20610#
20611# config.status only pays attention to the cache file if you give it
20612# the --recheck option to rerun configure.
20613#
20614# `ac_cv_env_foo' variables (set or unset) will be overridden when
20615# loading this file, other *unset* `ac_cv_foo' will be assigned the
20616# following values.
20617
20618_ACEOF
20619
20620# The following way of writing the cache mishandles newlines in values,
20621# but we know of no workaround that is simple, portable, and efficient.
20622# So, don't put newlines in cache variables' values.
20623# Ultrix sh set writes to stderr and can't be redirected directly,
20624# and sets the high bit in the cache file unless we assign to the vars.
20625{
20626 (set) 2>&1 |
20627 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20628 *ac_space=\ *)
20629 # `set' does not quote correctly, so add quotes (double-quote
20630 # substitution turns \\\\ into \\, and sed turns \\ into \).
20631 sed -n \
20632 "s/'/'\\\\''/g;
20633 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20634 ;;
20635 *)
20636 # `set' quotes correctly as required by POSIX, so do not add quotes.
20637 sed -n \
20638 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20639 ;;
20640 esac;
20641} |
20642 sed '
20643 t clear
20644 : clear
20645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20646 t end
20647 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20648 : end' >>confcache
20649if diff $cache_file confcache >/dev/null 2>&1; then :; else
20650 if test -w $cache_file; then
20651 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20652 cat confcache >$cache_file
20653 else
20654 echo "not updating unwritable cache $cache_file"
20655 fi
20656fi
20657rm -f confcache
20658
20659test "x$prefix" = xNONE && prefix=$ac_default_prefix
20660# Let make expand exec_prefix.
20661test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20662
20663# VPATH may cause trouble with some makes, so we remove $(srcdir),
20664# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20665# trailing colons and then remove the whole line if VPATH becomes empty
20666# (actually we leave an empty line to preserve line numbers).
20667if test "x$srcdir" = x.; then
20668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20669s/:*\$(srcdir):*/:/;
20670s/:*\${srcdir}:*/:/;
20671s/:*@srcdir@:*/:/;
20672s/^\([^=]*=[ ]*\):*/\1/;
20673s/:*$//;
20674s/^[^=]*=[ ]*$//;
20675}'
20676fi
20677
20678DEFS=-DHAVE_CONFIG_H
20679
20680ac_libobjs=
20681ac_ltlibobjs=
20682for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20683 # 1. Remove the extension, and $U if already installed.
20684 ac_i=`echo "$ac_i" |
20685 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20686 # 2. Add them.
20687 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20688 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20689done
20690LIBOBJS=$ac_libobjs
20691
20692LTLIBOBJS=$ac_ltlibobjs
20693
20694
f5385ebf
AM
20695if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20696 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20697Usually this means the macro was only invoked conditionally." >&5
20698echo "$as_me: error: conditional \"AMDEP\" was never defined.
20699Usually this means the macro was only invoked conditionally." >&2;}
20700 { (exit 1); exit 1; }; }
20701fi
20702if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20703 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20704Usually this means the macro was only invoked conditionally." >&5
20705echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20706Usually this means the macro was only invoked conditionally." >&2;}
20707 { (exit 1); exit 1; }; }
20708fi
20709if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20710 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20711Usually this means the macro was only invoked conditionally." >&5
20712echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20713Usually this means the macro was only invoked conditionally." >&2;}
20714 { (exit 1); exit 1; }; }
20715fi
d5fbea21
DJ
20716if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20717 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20718Usually this means the macro was only invoked conditionally." >&5
20719echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20720Usually this means the macro was only invoked conditionally." >&2;}
20721 { (exit 1); exit 1; }; }
20722fi
f5385ebf
AM
20723if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20724 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20725Usually this means the macro was only invoked conditionally." >&5
20726echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20727Usually this means the macro was only invoked conditionally." >&2;}
20728 { (exit 1); exit 1; }; }
20729fi
5464f5a1
NN
20730
20731: ${CONFIG_STATUS=./config.status}
20732ac_clean_files_save=$ac_clean_files
20733ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20734{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20735echo "$as_me: creating $CONFIG_STATUS" >&6;}
20736cat >$CONFIG_STATUS <<_ACEOF
20737#! $SHELL
20738# Generated by $as_me.
20739# Run this file to recreate the current configuration.
20740# Compiler output produced by configure, useful for debugging
20741# configure, is in config.log if it exists.
20742
20743debug=false
20744ac_cs_recheck=false
20745ac_cs_silent=false
20746SHELL=\${CONFIG_SHELL-$SHELL}
20747_ACEOF
20748
20749cat >>$CONFIG_STATUS <<\_ACEOF
20750## --------------------- ##
20751## M4sh Initialization. ##
20752## --------------------- ##
20753
20754# Be Bourne compatible
20755if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20756 emulate sh
20757 NULLCMD=:
20758 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20759 # is contrary to our usage. Disable this feature.
20760 alias -g '${1+"$@"}'='"$@"'
20761elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20762 set -o posix
20763fi
20764DUALCASE=1; export DUALCASE # for MKS sh
20765
20766# Support unset when possible.
20767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20768 as_unset=unset
20769else
20770 as_unset=false
20771fi
20772
20773
20774# Work around bugs in pre-3.0 UWIN ksh.
20775$as_unset ENV MAIL MAILPATH
20776PS1='$ '
20777PS2='> '
20778PS4='+ '
20779
20780# NLS nuisances.
20781for as_var in \
20782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20784 LC_TELEPHONE LC_TIME
20785do
20786 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20787 eval $as_var=C; export $as_var
20788 else
20789 $as_unset $as_var
20790 fi
20791done
20792
20793# Required to use basename.
20794if expr a : '\(a\)' >/dev/null 2>&1; then
20795 as_expr=expr
20796else
20797 as_expr=false
20798fi
20799
20800if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20801 as_basename=basename
20802else
20803 as_basename=false
20804fi
252b5132 20805
6be7c12c 20806
5464f5a1
NN
20807# Name of the executable.
20808as_me=`$as_basename "$0" ||
20809$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20810 X"$0" : 'X\(//\)$' \| \
20811 X"$0" : 'X\(/\)$' \| \
20812 . : '\(.\)' 2>/dev/null ||
20813echo X/"$0" |
20814 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20815 /^X\/\(\/\/\)$/{ s//\1/; q; }
20816 /^X\/\(\/\).*/{ s//\1/; q; }
20817 s/.*/./; q'`
20818
20819
20820# PATH needs CR, and LINENO needs CR and PATH.
20821# Avoid depending upon Character Ranges.
20822as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20823as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20824as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20825as_cr_digits='0123456789'
20826as_cr_alnum=$as_cr_Letters$as_cr_digits
20827
20828# The user is always right.
20829if test "${PATH_SEPARATOR+set}" != set; then
20830 echo "#! /bin/sh" >conf$$.sh
20831 echo "exit 0" >>conf$$.sh
20832 chmod +x conf$$.sh
20833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20834 PATH_SEPARATOR=';'
20835 else
20836 PATH_SEPARATOR=:
20837 fi
20838 rm -f conf$$.sh
20839fi
20840
20841
20842 as_lineno_1=$LINENO
20843 as_lineno_2=$LINENO
20844 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20845 test "x$as_lineno_1" != "x$as_lineno_2" &&
20846 test "x$as_lineno_3" = "x$as_lineno_2" || {
20847 # Find who we are. Look in the path if we contain no path at all
20848 # relative or not.
20849 case $0 in
20850 *[\\/]* ) as_myself=$0 ;;
20851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20852for as_dir in $PATH
20853do
20854 IFS=$as_save_IFS
20855 test -z "$as_dir" && as_dir=.
20856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20857done
20858
20859 ;;
20860 esac
20861 # We did not find ourselves, most probably we were run as `sh COMMAND'
20862 # in which case we are not to be found in the path.
20863 if test "x$as_myself" = x; then
20864 as_myself=$0
20865 fi
20866 if test ! -f "$as_myself"; then
20867 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20868echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20869 { (exit 1); exit 1; }; }
20870 fi
20871 case $CONFIG_SHELL in
20872 '')
20873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20874for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20875do
20876 IFS=$as_save_IFS
20877 test -z "$as_dir" && as_dir=.
20878 for as_base in sh bash ksh sh5; do
20879 case $as_dir in
20880 /*)
20881 if ("$as_dir/$as_base" -c '
20882 as_lineno_1=$LINENO
20883 as_lineno_2=$LINENO
20884 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20885 test "x$as_lineno_1" != "x$as_lineno_2" &&
20886 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20887 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20888 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20889 CONFIG_SHELL=$as_dir/$as_base
20890 export CONFIG_SHELL
20891 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20892 fi;;
20893 esac
20894 done
20895done
20896;;
20897 esac
20898
20899 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20900 # uniformly replaced by the line number. The first 'sed' inserts a
20901 # line-number line before each line; the second 'sed' does the real
20902 # work. The second script uses 'N' to pair each line-number line
20903 # with the numbered line, and appends trailing '-' during
20904 # substitution so that $LINENO is not a special case at line end.
20905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20906 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20907 sed '=' <$as_myself |
20908 sed '
20909 N
20910 s,$,-,
20911 : loop
20912 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20913 t loop
20914 s,-$,,
20915 s,^['$as_cr_digits']*\n,,
20916 ' >$as_me.lineno &&
20917 chmod +x $as_me.lineno ||
20918 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20919echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20920 { (exit 1); exit 1; }; }
20921
20922 # Don't try to exec as it changes $[0], causing all sort of problems
20923 # (the dirname of $[0] is not the place where we might find the
20924 # original and so on. Autoconf is especially sensible to this).
20925 . ./$as_me.lineno
20926 # Exit status is that of the last command.
20927 exit
252b5132 20928}
6be7c12c 20929
5464f5a1
NN
20930
20931case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20932 *c*,-n*) ECHO_N= ECHO_C='
20933' ECHO_T=' ' ;;
20934 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20935 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20936esac
20937
20938if expr a : '\(a\)' >/dev/null 2>&1; then
20939 as_expr=expr
252b5132 20940else
5464f5a1 20941 as_expr=false
252b5132 20942fi
5464f5a1
NN
20943
20944rm -f conf$$ conf$$.exe conf$$.file
20945echo >conf$$.file
20946if ln -s conf$$.file conf$$ 2>/dev/null; then
20947 # We could just check for DJGPP; but this test a) works b) is more generic
20948 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20949 if test -f conf$$.exe; then
20950 # Don't use ln at all; we don't have any links
20951 as_ln_s='cp -p'
20952 else
20953 as_ln_s='ln -s'
20954 fi
20955elif ln conf$$.file conf$$ 2>/dev/null; then
20956 as_ln_s=ln
20957else
20958 as_ln_s='cp -p'
252b5132 20959fi
5464f5a1 20960rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 20961
5464f5a1
NN
20962if mkdir -p . 2>/dev/null; then
20963 as_mkdir_p=:
20964else
20965 test -d ./-p && rmdir ./-p
20966 as_mkdir_p=false
252b5132 20967fi
b3baf5d0 20968
5464f5a1 20969as_executable_p="test -f"
252b5132 20970
5464f5a1
NN
20971# Sed expression to map a string onto a valid CPP name.
20972as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 20973
5464f5a1
NN
20974# Sed expression to map a string onto a valid variable name.
20975as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 20976
252b5132 20977
5464f5a1
NN
20978# IFS
20979# We need space, tab and new line, in precisely that order.
20980as_nl='
20981'
20982IFS=" $as_nl"
252b5132 20983
5464f5a1
NN
20984# CDPATH.
20985$as_unset CDPATH
20986
20987exec 6>&1
20988
20989# Open the log real soon, to keep \$[0] and so on meaningful, and to
20990# report actual input values of CONFIG_FILES etc. instead of their
20991# values after options handling. Logging --version etc. is OK.
20992exec 5>>config.log
20993{
20994 echo
20995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20996## Running $as_me. ##
20997_ASBOX
20998} >&5
20999cat >&5 <<_CSEOF
21000
21001This file was extended by $as_me, which was
21002generated by GNU Autoconf 2.59. Invocation command line was
21003
21004 CONFIG_FILES = $CONFIG_FILES
21005 CONFIG_HEADERS = $CONFIG_HEADERS
21006 CONFIG_LINKS = $CONFIG_LINKS
21007 CONFIG_COMMANDS = $CONFIG_COMMANDS
21008 $ $0 $@
21009
21010_CSEOF
21011echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21012echo >&5
21013_ACEOF
21014
21015# Files that config.status was made for.
21016if test -n "$ac_config_files"; then
21017 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 21018fi
5464f5a1
NN
21019
21020if test -n "$ac_config_headers"; then
21021 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 21022fi
252b5132 21023
5464f5a1
NN
21024if test -n "$ac_config_links"; then
21025 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 21026fi
252b5132 21027
5464f5a1
NN
21028if test -n "$ac_config_commands"; then
21029 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21030fi
252b5132 21031
5464f5a1
NN
21032cat >>$CONFIG_STATUS <<\_ACEOF
21033
21034ac_cs_usage="\
21035\`$as_me' instantiates files from templates according to the
21036current configuration.
21037
21038Usage: $0 [OPTIONS] [FILE]...
21039
21040 -h, --help print this help, then exit
21041 -V, --version print version number, then exit
21042 -q, --quiet do not print progress messages
21043 -d, --debug don't remove temporary files
21044 --recheck update $as_me by reconfiguring in the same conditions
21045 --file=FILE[:TEMPLATE]
21046 instantiate the configuration file FILE
21047 --header=FILE[:TEMPLATE]
21048 instantiate the configuration header FILE
21049
21050Configuration files:
21051$config_files
21052
21053Configuration headers:
21054$config_headers
21055
21056Configuration commands:
21057$config_commands
21058
21059Report bugs to <bug-autoconf@gnu.org>."
21060_ACEOF
21061
21062cat >>$CONFIG_STATUS <<_ACEOF
21063ac_cs_version="\\
21064config.status
21065configured by $0, generated by GNU Autoconf 2.59,
21066 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21067
21068Copyright (C) 2003 Free Software Foundation, Inc.
21069This config.status script is free software; the Free Software Foundation
21070gives unlimited permission to copy, distribute and modify it."
21071srcdir=$srcdir
21072INSTALL="$INSTALL"
21073_ACEOF
21074
21075cat >>$CONFIG_STATUS <<\_ACEOF
21076# If no file are specified by the user, then we need to provide default
21077# value. By we need to know if files were specified by the user.
21078ac_need_defaults=:
21079while test $# != 0
21080do
21081 case $1 in
21082 --*=*)
21083 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21084 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21085 ac_shift=:
6be7c12c 21086 ;;
5464f5a1
NN
21087 -*)
21088 ac_option=$1
21089 ac_optarg=$2
21090 ac_shift=shift
6be7c12c 21091 ;;
5464f5a1
NN
21092 *) # This is not an option, so the user has probably given explicit
21093 # arguments.
21094 ac_option=$1
21095 ac_need_defaults=false;;
21096 esac
252b5132 21097
5464f5a1
NN
21098 case $ac_option in
21099 # Handling of the options.
21100_ACEOF
21101cat >>$CONFIG_STATUS <<\_ACEOF
21102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21103 ac_cs_recheck=: ;;
21104 --version | --vers* | -V )
21105 echo "$ac_cs_version"; exit 0 ;;
21106 --he | --h)
21107 # Conflict between --help and --header
21108 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21109Try \`$0 --help' for more information." >&5
21110echo "$as_me: error: ambiguous option: $1
21111Try \`$0 --help' for more information." >&2;}
21112 { (exit 1); exit 1; }; };;
21113 --help | --hel | -h )
21114 echo "$ac_cs_usage"; exit 0 ;;
21115 --debug | --d* | -d )
21116 debug=: ;;
21117 --file | --fil | --fi | --f )
21118 $ac_shift
21119 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21120 ac_need_defaults=false;;
21121 --header | --heade | --head | --hea )
21122 $ac_shift
21123 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21124 ac_need_defaults=false;;
21125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21127 ac_cs_silent=: ;;
6be7c12c 21128
5464f5a1
NN
21129 # This is an error.
21130 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21131Try \`$0 --help' for more information." >&5
21132echo "$as_me: error: unrecognized option: $1
21133Try \`$0 --help' for more information." >&2;}
21134 { (exit 1); exit 1; }; } ;;
252b5132 21135
5464f5a1 21136 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 21137
5464f5a1
NN
21138 esac
21139 shift
21140done
6be7c12c 21141
5464f5a1 21142ac_configure_extra_args=
252b5132 21143
5464f5a1
NN
21144if $ac_cs_silent; then
21145 exec 6>/dev/null
21146 ac_configure_extra_args="$ac_configure_extra_args --silent"
21147fi
6be7c12c 21148
5464f5a1
NN
21149_ACEOF
21150cat >>$CONFIG_STATUS <<_ACEOF
21151if \$ac_cs_recheck; then
21152 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21153 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21154fi
21155
21156_ACEOF
21157
21158cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 21159#
5464f5a1 21160# INIT-COMMANDS section.
6be7c12c 21161#
b3baf5d0 21162
f5385ebf 21163AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
21164
21165
21166# The HP-UX ksh and POSIX shell print the target directory to stdout
21167# if CDPATH is set.
21168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21169
21170sed_quote_subst='$sed_quote_subst'
21171double_quote_subst='$double_quote_subst'
21172delay_variable_subst='$delay_variable_subst'
21173enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21174macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21175macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21176enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21177pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21178enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21179host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21180host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21181host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21182build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21183build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21184build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21185SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21186Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21187GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21188EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21189FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21190LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21191NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21192LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21193max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21194ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21195exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21196lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21197lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21198lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21199reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21200reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21201deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21202file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21203AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21204AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21205STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21206RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21207old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21208old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21209old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21210CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21211CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21212compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21213GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21214lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21215lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21216lt_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"`'
21217objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21218SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21219ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21220MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21221lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21222lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21223lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21224lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21225lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21226need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21227libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21228shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21229extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21230archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21231enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21232export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21233whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21234compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21235old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21236old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21237archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21238archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21239module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21240module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21241with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21242allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21243no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21244hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21245hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21246hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21247hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21248hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21249hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21250hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21251hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21252inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21253link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21254fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21255always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21256export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21257exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21258include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21259prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21260file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21261variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21262need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21263need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21264version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21265runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21266shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21267shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21268libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21269library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21270soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21271postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21272postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21273finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21274finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21275hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21276sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21277sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21278hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21279enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21280enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21281enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21282old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21283striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21284
21285LTCC='$LTCC'
21286LTCFLAGS='$LTCFLAGS'
21287compiler='$compiler_DEFAULT'
21288
21289# Quote evaled strings.
21290for var in SED \
21291GREP \
21292EGREP \
21293FGREP \
21294LD \
21295NM \
21296LN_S \
21297lt_SP2NL \
21298lt_NL2SP \
21299reload_flag \
21300deplibs_check_method \
21301file_magic_cmd \
21302AR \
21303AR_FLAGS \
21304STRIP \
21305RANLIB \
21306CC \
21307CFLAGS \
21308compiler \
21309lt_cv_sys_global_symbol_pipe \
21310lt_cv_sys_global_symbol_to_cdecl \
21311lt_cv_sys_global_symbol_to_c_name_address \
21312SHELL \
21313ECHO \
21314lt_prog_compiler_no_builtin_flag \
21315lt_prog_compiler_wl \
21316lt_prog_compiler_pic \
21317lt_prog_compiler_static \
21318lt_cv_prog_compiler_c_o \
21319need_locks \
21320shrext_cmds \
21321export_dynamic_flag_spec \
21322whole_archive_flag_spec \
21323compiler_needs_object \
21324with_gnu_ld \
21325allow_undefined_flag \
21326no_undefined_flag \
21327hardcode_libdir_flag_spec \
21328hardcode_libdir_flag_spec_ld \
21329hardcode_libdir_separator \
21330fix_srcfile_path \
21331exclude_expsyms \
21332include_expsyms \
21333file_list_spec \
21334variables_saved_for_relink \
21335libname_spec \
21336library_names_spec \
21337soname_spec \
21338finish_eval \
21339old_striplib \
21340striplib; do
21341 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21342 *[\\\\\\\`\\"\\\$]*)
21343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21344 ;;
21345 *)
21346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21347 ;;
21348 esac
21349done
21350
21351# Double-quote double-evaled strings.
21352for var in reload_cmds \
21353old_postinstall_cmds \
21354old_postuninstall_cmds \
21355old_archive_cmds \
21356extract_expsyms_cmds \
21357old_archive_from_new_cmds \
21358old_archive_from_expsyms_cmds \
21359archive_cmds \
21360archive_expsym_cmds \
21361module_cmds \
21362module_expsym_cmds \
21363export_symbols_cmds \
21364prelink_cmds \
21365postinstall_cmds \
21366postuninstall_cmds \
21367finish_cmds \
21368sys_lib_search_path_spec \
21369sys_lib_dlsearch_path_spec; do
21370 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21371 *[\\\\\\\`\\"\\\$]*)
21372 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21373 ;;
21374 *)
21375 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21376 ;;
21377 esac
21378done
21379
21380# Fix-up fallback echo if it was mangled by the above quoting rules.
21381case \$lt_ECHO in
21382*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21383 ;;
21384esac
21385
21386ac_aux_dir='$ac_aux_dir'
21387xsi_shell='$xsi_shell'
21388lt_shell_append='$lt_shell_append'
21389
21390# See if we are running on zsh, and set the options which allow our
21391# commands through without removal of \ escapes INIT.
21392if test -n "\${ZSH_VERSION+set}" ; then
21393 setopt NO_GLOB_SUBST
21394fi
21395
21396
21397 PACKAGE='$PACKAGE'
21398 VERSION='$VERSION'
21399 TIMESTAMP='$TIMESTAMP'
21400 RM='$RM'
21401 ofile='$ofile'
21402
21403
21404
20e95c23
DJ
21405# Capture the value of obsolete ALL_LINGUAS because we need it to compute
21406 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
21407 # from automake.
21408 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21409 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21410 LINGUAS="${LINGUAS-%UNSET%}"
21411
5464f5a1 21412
d5efd9fc
AM
21413GCC="$GCC"
21414CC="$CC"
21415acx_cv_header_stdint="$acx_cv_header_stdint"
21416acx_cv_type_int8_t="$acx_cv_type_int8_t"
21417acx_cv_type_int16_t="$acx_cv_type_int16_t"
21418acx_cv_type_int32_t="$acx_cv_type_int32_t"
21419acx_cv_type_int64_t="$acx_cv_type_int64_t"
21420acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
21421ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
21422ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
21423ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21424ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21425ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
21426ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21427ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21428ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
21429
21430
5464f5a1
NN
21431
21432_ACEOF
21433
21434
21435
21436cat >>$CONFIG_STATUS <<\_ACEOF
21437for ac_config_target in $ac_config_targets
252b5132 21438do
5464f5a1
NN
21439 case "$ac_config_target" in
21440 # Handling of arguments.
21441 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21442 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21443 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
21444 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 21445 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 21446 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 21447 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 21448 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
21449 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21450 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21452echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21453 { (exit 1); exit 1; }; };;
252b5132
RH
21454 esac
21455done
21456
5464f5a1
NN
21457# If the user did not use the arguments to specify the items to instantiate,
21458# then the envvar interface is used. Set only those that are not.
21459# We use the long form for the default assignment because of an extremely
21460# bizarre bug on SunOS 4.1.3.
21461if $ac_need_defaults; then
21462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21465fi
21466
21467# Have a temporary directory for convenience. Make it in the build tree
21468# simply because there is no reason to put it here, and in addition,
21469# creating and moving files from /tmp can sometimes cause problems.
21470# Create a temporary directory, and hook for its removal unless debugging.
21471$debug ||
21472{
21473 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21474 trap '{ (exit 1); exit 1; }' 1 2 13 15
21475}
b3baf5d0 21476
5464f5a1 21477# Create a (secure) tmp directory for tmp files.
b3baf5d0 21478
5464f5a1
NN
21479{
21480 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21481 test -n "$tmp" && test -d "$tmp"
21482} ||
21483{
21484 tmp=./confstat$$-$RANDOM
21485 (umask 077 && mkdir $tmp)
21486} ||
21487{
21488 echo "$me: cannot create a temporary directory in ." >&2
21489 { (exit 1); exit 1; }
21490}
21491
21492_ACEOF
21493
21494cat >>$CONFIG_STATUS <<_ACEOF
21495
21496#
21497# CONFIG_FILES section.
21498#
b3baf5d0 21499
5464f5a1
NN
21500# No need to generate the scripts if there are no CONFIG_FILES.
21501# This happens for instance when ./config.status config.h
21502if test -n "\$CONFIG_FILES"; then
21503 # Protect against being on the right side of a sed subst in config.status.
21504 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21505 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21506s,@SHELL@,$SHELL,;t t
21507s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21508s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21509s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21510s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21511s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21512s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21513s,@exec_prefix@,$exec_prefix,;t t
21514s,@prefix@,$prefix,;t t
21515s,@program_transform_name@,$program_transform_name,;t t
21516s,@bindir@,$bindir,;t t
21517s,@sbindir@,$sbindir,;t t
21518s,@libexecdir@,$libexecdir,;t t
21519s,@datadir@,$datadir,;t t
21520s,@sysconfdir@,$sysconfdir,;t t
21521s,@sharedstatedir@,$sharedstatedir,;t t
21522s,@localstatedir@,$localstatedir,;t t
21523s,@libdir@,$libdir,;t t
21524s,@includedir@,$includedir,;t t
21525s,@oldincludedir@,$oldincludedir,;t t
21526s,@infodir@,$infodir,;t t
21527s,@mandir@,$mandir,;t t
21528s,@build_alias@,$build_alias,;t t
21529s,@host_alias@,$host_alias,;t t
21530s,@target_alias@,$target_alias,;t t
21531s,@DEFS@,$DEFS,;t t
21532s,@ECHO_C@,$ECHO_C,;t t
21533s,@ECHO_N@,$ECHO_N,;t t
21534s,@ECHO_T@,$ECHO_T,;t t
21535s,@LIBS@,$LIBS,;t t
21536s,@build@,$build,;t t
21537s,@build_cpu@,$build_cpu,;t t
21538s,@build_vendor@,$build_vendor,;t t
21539s,@build_os@,$build_os,;t t
21540s,@host@,$host,;t t
21541s,@host_cpu@,$host_cpu,;t t
21542s,@host_vendor@,$host_vendor,;t t
21543s,@host_os@,$host_os,;t t
21544s,@target@,$target,;t t
21545s,@target_cpu@,$target_cpu,;t t
21546s,@target_vendor@,$target_vendor,;t t
21547s,@target_os@,$target_os,;t t
21548s,@CC@,$CC,;t t
21549s,@CFLAGS@,$CFLAGS,;t t
21550s,@LDFLAGS@,$LDFLAGS,;t t
21551s,@CPPFLAGS@,$CPPFLAGS,;t t
21552s,@ac_ct_CC@,$ac_ct_CC,;t t
21553s,@EXEEXT@,$EXEEXT,;t t
21554s,@OBJEXT@,$OBJEXT,;t t
21555s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21556s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21557s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21558s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21559s,@PACKAGE@,$PACKAGE,;t t
21560s,@VERSION@,$VERSION,;t t
21561s,@ACLOCAL@,$ACLOCAL,;t t
21562s,@AUTOCONF@,$AUTOCONF,;t t
21563s,@AUTOMAKE@,$AUTOMAKE,;t t
21564s,@AUTOHEADER@,$AUTOHEADER,;t t
21565s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21566s,@install_sh@,$install_sh,;t t
21567s,@STRIP@,$STRIP,;t t
21568s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21569s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21570s,@mkdir_p@,$mkdir_p,;t t
21571s,@AWK@,$AWK,;t t
5464f5a1 21572s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21573s,@am__leading_dot@,$am__leading_dot,;t t
21574s,@AMTAR@,$AMTAR,;t t
21575s,@am__tar@,$am__tar,;t t
21576s,@am__untar@,$am__untar,;t t
21577s,@DEPDIR@,$DEPDIR,;t t
21578s,@am__include@,$am__include,;t t
21579s,@am__quote@,$am__quote,;t t
21580s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21581s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21582s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21583s,@CCDEPMODE@,$CCDEPMODE,;t t
21584s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21585s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21586s,@AR@,$AR,;t t
21587s,@ac_ct_AR@,$ac_ct_AR,;t t
21588s,@RANLIB@,$RANLIB,;t t
21589s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21590s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21591s,@SED@,$SED,;t t
21592s,@EGREP@,$EGREP,;t t
21593s,@FGREP@,$FGREP,;t t
21594s,@GREP@,$GREP,;t t
21595s,@LD@,$LD,;t t
21596s,@DUMPBIN@,$DUMPBIN,;t t
21597s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21598s,@NM@,$NM,;t t
21599s,@LN_S@,$LN_S,;t t
21600s,@lt_ECHO@,$lt_ECHO,;t t
21601s,@CPP@,$CPP,;t t
0d4a1476 21602s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 21603s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21604s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21605s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21606s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21607s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21608s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21609s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21610s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21611s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21612s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21613s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21614s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21615s,@host_noncanonical@,$host_noncanonical,;t t
21616s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21617s,@bfdlibdir@,$bfdlibdir,;t t
21618s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21619s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21620s,@LIBINTL@,$LIBINTL,;t t
21621s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21622s,@INCINTL@,$INCINTL,;t t
5464f5a1 21623s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21624s,@GMSGFMT@,$GMSGFMT,;t t
21625s,@POSUB@,$POSUB,;t t
5464f5a1 21626s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21627s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21628s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21629s,@GENCAT@,$GENCAT,;t t
21630s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21631s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21632s,@MSGFMT@,$MSGFMT,;t t
21633s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21634s,@HDEFINES@,$HDEFINES,;t t
21635s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 21636s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
21637s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21638s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21639s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 21640s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
21641s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21642s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21643s,@COREFILE@,$COREFILE,;t t
21644s,@COREFLAG@,$COREFLAG,;t t
21645s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21646s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21647s,@TDEFINES@,$TDEFINES,;t t
21648s,@wordsize@,$wordsize,;t t
21e40a48 21649s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21650s,@all_backends@,$all_backends,;t t
21651s,@bfd_backends@,$bfd_backends,;t t
21652s,@bfd_machines@,$bfd_machines,;t t
21653s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21654s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21655s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21656s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21657s,@datarootdir@,$datarootdir,;t t
21658s,@docdir@,$docdir,;t t
21659s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21660s,@LIBOBJS@,$LIBOBJS,;t t
21661s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21662CEOF
252b5132 21663
5464f5a1
NN
21664_ACEOF
21665
21666 cat >>$CONFIG_STATUS <<\_ACEOF
21667 # Split the substitutions into bite-sized pieces for seds with
21668 # small command number limits, like on Digital OSF/1 and HP-UX.
21669 ac_max_sed_lines=48
21670 ac_sed_frag=1 # Number of current file.
21671 ac_beg=1 # First line for current file.
21672 ac_end=$ac_max_sed_lines # Line after last line for current file.
21673 ac_more_lines=:
21674 ac_sed_cmds=
21675 while $ac_more_lines; do
21676 if test $ac_beg -gt 1; then
21677 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 21678 else
5464f5a1
NN
21679 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21680 fi
21681 if test ! -s $tmp/subs.frag; then
21682 ac_more_lines=false
21683 else
21684 # The purpose of the label and of the branching condition is to
21685 # speed up the sed processing (if there are no `@' at all, there
21686 # is no need to browse any of the substitutions).
21687 # These are the two extra sed commands mentioned above.
21688 (echo ':t
21689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21690 if test -z "$ac_sed_cmds"; then
21691 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21692 else
21693 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21694 fi
21695 ac_sed_frag=`expr $ac_sed_frag + 1`
21696 ac_beg=$ac_end
21697 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 21698 fi
5464f5a1
NN
21699 done
21700 if test -z "$ac_sed_cmds"; then
21701 ac_sed_cmds=cat
252b5132 21702 fi
5464f5a1 21703fi # test -n "$CONFIG_FILES"
6be7c12c 21704
5464f5a1
NN
21705_ACEOF
21706cat >>$CONFIG_STATUS <<\_ACEOF
21707for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21709 case $ac_file in
21710 - | *:- | *:-:* ) # input from stdin
21711 cat >$tmp/stdin
21712 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21714 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21716 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21717 esac
21718
5464f5a1
NN
21719 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21720 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21721$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21722 X"$ac_file" : 'X\(//\)[^/]' \| \
21723 X"$ac_file" : 'X\(//\)$' \| \
21724 X"$ac_file" : 'X\(/\)' \| \
21725 . : '\(.\)' 2>/dev/null ||
21726echo X"$ac_file" |
21727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21729 /^X\(\/\/\)$/{ s//\1/; q; }
21730 /^X\(\/\).*/{ s//\1/; q; }
21731 s/.*/./; q'`
21732 { if $as_mkdir_p; then
21733 mkdir -p "$ac_dir"
252b5132 21734 else
5464f5a1
NN
21735 as_dir="$ac_dir"
21736 as_dirs=
21737 while test ! -d "$as_dir"; do
21738 as_dirs="$as_dir $as_dirs"
21739 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21740$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21741 X"$as_dir" : 'X\(//\)[^/]' \| \
21742 X"$as_dir" : 'X\(//\)$' \| \
21743 X"$as_dir" : 'X\(/\)' \| \
21744 . : '\(.\)' 2>/dev/null ||
21745echo X"$as_dir" |
21746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21748 /^X\(\/\/\)$/{ s//\1/; q; }
21749 /^X\(\/\).*/{ s//\1/; q; }
21750 s/.*/./; q'`
21751 done
21752 test ! -n "$as_dirs" || mkdir $as_dirs
21753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21754echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21755 { (exit 1); exit 1; }; }; }
21756
21757 ac_builddir=.
21758
21759if test "$ac_dir" != .; then
21760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21761 # A "../" for each directory in $ac_dir_suffix.
21762 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21763else
21764 ac_dir_suffix= ac_top_builddir=
21765fi
252b5132 21766
5464f5a1
NN
21767case $srcdir in
21768 .) # No --srcdir option. We are building in place.
21769 ac_srcdir=.
21770 if test -z "$ac_top_builddir"; then
21771 ac_top_srcdir=.
21772 else
21773 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21774 fi ;;
21775 [\\/]* | ?:[\\/]* ) # Absolute path.
21776 ac_srcdir=$srcdir$ac_dir_suffix;
21777 ac_top_srcdir=$srcdir ;;
252b5132 21778 *) # Relative path.
5464f5a1
NN
21779 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21780 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21781esac
252b5132 21782
5464f5a1
NN
21783# Do not use `cd foo && pwd` to compute absolute paths, because
21784# the directories may not exist.
21785case `pwd` in
21786.) ac_abs_builddir="$ac_dir";;
21787*)
21788 case "$ac_dir" in
21789 .) ac_abs_builddir=`pwd`;;
21790 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21791 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21792 esac;;
21793esac
21794case $ac_abs_builddir in
21795.) ac_abs_top_builddir=${ac_top_builddir}.;;
21796*)
21797 case ${ac_top_builddir}. in
21798 .) ac_abs_top_builddir=$ac_abs_builddir;;
21799 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21800 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21801 esac;;
21802esac
21803case $ac_abs_builddir in
21804.) ac_abs_srcdir=$ac_srcdir;;
21805*)
21806 case $ac_srcdir in
21807 .) ac_abs_srcdir=$ac_abs_builddir;;
21808 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21809 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21810 esac;;
21811esac
21812case $ac_abs_builddir in
21813.) ac_abs_top_srcdir=$ac_top_srcdir;;
21814*)
21815 case $ac_top_srcdir in
21816 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21817 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21818 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21819 esac;;
21820esac
252b5132 21821
5464f5a1
NN
21822
21823 case $INSTALL in
21824 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21825 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21826 esac
252b5132 21827
49c96104
SE
21828 if test x"$ac_file" != x-; then
21829 { echo "$as_me:$LINENO: creating $ac_file" >&5
21830echo "$as_me: creating $ac_file" >&6;}
21831 rm -f "$ac_file"
21832 fi
5464f5a1
NN
21833 # Let's still pretend it is `configure' which instantiates (i.e., don't
21834 # use $as_me), people would be surprised to read:
21835 # /* config.h. Generated by config.status. */
21836 if test x"$ac_file" = x-; then
21837 configure_input=
21838 else
21839 configure_input="$ac_file. "
21840 fi
21841 configure_input=$configure_input"Generated from `echo $ac_file_in |
21842 sed 's,.*/,,'` by configure."
21843
21844 # First look for the input files in the build tree, otherwise in the
21845 # src tree.
21846 ac_file_inputs=`IFS=:
21847 for f in $ac_file_in; do
21848 case $f in
21849 -) echo $tmp/stdin ;;
21850 [\\/$]*)
21851 # Absolute (can't be DOS-style, as IFS=:)
21852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21853echo "$as_me: error: cannot find input file: $f" >&2;}
21854 { (exit 1); exit 1; }; }
21855 echo "$f";;
21856 *) # Relative
21857 if test -f "$f"; then
21858 # Build tree
21859 echo "$f"
21860 elif test -f "$srcdir/$f"; then
21861 # Source tree
21862 echo "$srcdir/$f"
21863 else
21864 # /dev/null tree
21865 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21866echo "$as_me: error: cannot find input file: $f" >&2;}
21867 { (exit 1); exit 1; }; }
21868 fi;;
21869 esac
21870 done` || { (exit 1); exit 1; }
5464f5a1
NN
21871_ACEOF
21872cat >>$CONFIG_STATUS <<_ACEOF
21873 sed "$ac_vpsub
21874$extrasub
21875_ACEOF
21876cat >>$CONFIG_STATUS <<\_ACEOF
21877:t
21878/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21879s,@configure_input@,$configure_input,;t t
21880s,@srcdir@,$ac_srcdir,;t t
21881s,@abs_srcdir@,$ac_abs_srcdir,;t t
21882s,@top_srcdir@,$ac_top_srcdir,;t t
21883s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21884s,@builddir@,$ac_builddir,;t t
21885s,@abs_builddir@,$ac_abs_builddir,;t t
21886s,@top_builddir@,$ac_top_builddir,;t t
21887s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21888s,@INSTALL@,$ac_INSTALL,;t t
21889" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21890 rm -f $tmp/stdin
21891 if test x"$ac_file" != x-; then
21892 mv $tmp/out $ac_file
21893 else
21894 cat $tmp/out
21895 rm -f $tmp/out
21896 fi
21897
21898done
21899_ACEOF
21900cat >>$CONFIG_STATUS <<\_ACEOF
21901
21902#
21903# CONFIG_HEADER section.
21904#
252b5132
RH
21905
21906# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21907# NAME is the cpp macro being defined and VALUE is the value it is being given.
21908#
21909# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
21910ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21911ac_dB='[ ].*$,\1#\2'
21912ac_dC=' '
21913ac_dD=',;t'
21914# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21915ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21916ac_uB='$,\1#\2define\3'
252b5132 21917ac_uC=' '
5464f5a1
NN
21918ac_uD=',;t'
21919
21920for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21922 case $ac_file in
21923 - | *:- | *:-:* ) # input from stdin
21924 cat >$tmp/stdin
21925 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21927 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21928 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21929 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21930 esac
21931
5464f5a1
NN
21932 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21933echo "$as_me: creating $ac_file" >&6;}
21934
21935 # First look for the input files in the build tree, otherwise in the
21936 # src tree.
21937 ac_file_inputs=`IFS=:
21938 for f in $ac_file_in; do
21939 case $f in
21940 -) echo $tmp/stdin ;;
21941 [\\/$]*)
21942 # Absolute (can't be DOS-style, as IFS=:)
21943 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21944echo "$as_me: error: cannot find input file: $f" >&2;}
21945 { (exit 1); exit 1; }; }
21946 # Do quote $f, to prevent DOS paths from being IFS'd.
21947 echo "$f";;
21948 *) # Relative
21949 if test -f "$f"; then
21950 # Build tree
21951 echo "$f"
21952 elif test -f "$srcdir/$f"; then
21953 # Source tree
21954 echo "$srcdir/$f"
21955 else
21956 # /dev/null tree
21957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21958echo "$as_me: error: cannot find input file: $f" >&2;}
21959 { (exit 1); exit 1; }; }
21960 fi;;
21961 esac
21962 done` || { (exit 1); exit 1; }
21963 # Remove the trailing spaces.
21964 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21965
21966_ACEOF
21967
21968# Transform confdefs.h into two sed scripts, `conftest.defines' and
21969# `conftest.undefs', that substitutes the proper values into
21970# config.h.in to produce config.h. The first handles `#define'
21971# templates, and the second `#undef' templates.
21972# And first: Protect against being on the right side of a sed subst in
21973# config.status. Protect against being in an unquoted here document
21974# in config.status.
21975rm -f conftest.defines conftest.undefs
21976# Using a here document instead of a string reduces the quoting nightmare.
21977# Putting comments in sed scripts is not portable.
21978#
21979# `end' is used to avoid that the second main sed command (meant for
21980# 0-ary CPP macros) applies to n-ary macro definitions.
21981# See the Autoconf documentation for `clear'.
21982cat >confdef2sed.sed <<\_ACEOF
21983s/[\\&,]/\\&/g
21984s,[\\$`],\\&,g
21985t clear
21986: clear
21987s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21988t end
21989s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21990: end
21991_ACEOF
21992# If some macros were called several times there might be several times
21993# the same #defines, which is useless. Nevertheless, we may not want to
21994# sort them, since we want the *last* AC-DEFINE to be honored.
21995uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21996sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21997rm -f confdef2sed.sed
252b5132
RH
21998
21999# This sed command replaces #undef with comments. This is necessary, for
22000# example, in the case of _POSIX_SOURCE, which is predefined and required
22001# on some systems where configure will not decide to define it.
5464f5a1
NN
22002cat >>conftest.undefs <<\_ACEOF
22003s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22004_ACEOF
22005
22006# Break up conftest.defines because some shells have a limit on the size
22007# of here documents, and old seds have small limits too (100 cmds).
22008echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22009echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22010echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22011echo ' :' >>$CONFIG_STATUS
22012rm -f conftest.tail
22013while grep . conftest.defines >/dev/null
22014do
22015 # Write a limited-size here document to $tmp/defines.sed.
22016 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22017 # Speed up: don't consider the non `#define' lines.
22018 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22019 # Work around the forget-to-reset-the-flag bug.
22020 echo 't clr' >>$CONFIG_STATUS
22021 echo ': clr' >>$CONFIG_STATUS
22022 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22023 echo 'CEOF
22024 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22025 rm -f $tmp/in
22026 mv $tmp/out $tmp/in
22027' >>$CONFIG_STATUS
22028 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22029 rm -f conftest.defines
22030 mv conftest.tail conftest.defines
22031done
22032rm -f conftest.defines
22033echo ' fi # grep' >>$CONFIG_STATUS
22034echo >>$CONFIG_STATUS
252b5132 22035
5464f5a1
NN
22036# Break up conftest.undefs because some shells have a limit on the size
22037# of here documents, and old seds have small limits too (100 cmds).
22038echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 22039rm -f conftest.tail
5464f5a1 22040while grep . conftest.undefs >/dev/null
252b5132 22041do
5464f5a1
NN
22042 # Write a limited-size here document to $tmp/undefs.sed.
22043 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22044 # Speed up: don't consider the non `#undef'
22045 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22046 # Work around the forget-to-reset-the-flag bug.
22047 echo 't clr' >>$CONFIG_STATUS
22048 echo ': clr' >>$CONFIG_STATUS
22049 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 22050 echo 'CEOF
5464f5a1
NN
22051 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22052 rm -f $tmp/in
22053 mv $tmp/out $tmp/in
22054' >>$CONFIG_STATUS
22055 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22056 rm -f conftest.undefs
22057 mv conftest.tail conftest.undefs
252b5132 22058done
5464f5a1
NN
22059rm -f conftest.undefs
22060
22061cat >>$CONFIG_STATUS <<\_ACEOF
22062 # Let's still pretend it is `configure' which instantiates (i.e., don't
22063 # use $as_me), people would be surprised to read:
22064 # /* config.h. Generated by config.status. */
22065 if test x"$ac_file" = x-; then
22066 echo "/* Generated by configure. */" >$tmp/config.h
22067 else
22068 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22069 fi
22070 cat $tmp/in >>$tmp/config.h
22071 rm -f $tmp/in
22072 if test x"$ac_file" != x-; then
22073 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22074 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22075echo "$as_me: $ac_file is unchanged" >&6;}
22076 else
22077 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22078$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22079 X"$ac_file" : 'X\(//\)[^/]' \| \
22080 X"$ac_file" : 'X\(//\)$' \| \
22081 X"$ac_file" : 'X\(/\)' \| \
22082 . : '\(.\)' 2>/dev/null ||
22083echo X"$ac_file" |
22084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22086 /^X\(\/\/\)$/{ s//\1/; q; }
22087 /^X\(\/\).*/{ s//\1/; q; }
22088 s/.*/./; q'`
22089 { if $as_mkdir_p; then
22090 mkdir -p "$ac_dir"
252b5132 22091 else
5464f5a1
NN
22092 as_dir="$ac_dir"
22093 as_dirs=
22094 while test ! -d "$as_dir"; do
22095 as_dirs="$as_dir $as_dirs"
22096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22097$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22098 X"$as_dir" : 'X\(//\)[^/]' \| \
22099 X"$as_dir" : 'X\(//\)$' \| \
22100 X"$as_dir" : 'X\(/\)' \| \
22101 . : '\(.\)' 2>/dev/null ||
22102echo X"$as_dir" |
22103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22105 /^X\(\/\/\)$/{ s//\1/; q; }
22106 /^X\(\/\).*/{ s//\1/; q; }
22107 s/.*/./; q'`
22108 done
22109 test ! -n "$as_dirs" || mkdir $as_dirs
22110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22111echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22112 { (exit 1); exit 1; }; }; }
22113
22114 rm -f $ac_file
22115 mv $tmp/config.h $ac_file
252b5132 22116 fi
5464f5a1
NN
22117 else
22118 cat $tmp/config.h
22119 rm -f $tmp/config.h
252b5132 22120 fi
f5385ebf
AM
22121# Compute $ac_file's index in $config_headers.
22122_am_stamp_count=1
22123for _am_header in $config_headers :; do
22124 case $_am_header in
22125 $ac_file | $ac_file:* )
22126 break ;;
22127 * )
22128 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22129 esac
22130done
22131echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22132$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22133 X$ac_file : 'X\(//\)[^/]' \| \
22134 X$ac_file : 'X\(//\)$' \| \
22135 X$ac_file : 'X\(/\)' \| \
22136 . : '\(.\)' 2>/dev/null ||
22137echo X$ac_file |
22138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22140 /^X\(\/\/\)$/{ s//\1/; q; }
22141 /^X\(\/\).*/{ s//\1/; q; }
22142 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
22143done
22144_ACEOF
22145cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 22146
5464f5a1
NN
22147#
22148# CONFIG_COMMANDS section.
22149#
22150for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22151 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22152 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22153 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22154$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22155 X"$ac_dest" : 'X\(//\)[^/]' \| \
22156 X"$ac_dest" : 'X\(//\)$' \| \
22157 X"$ac_dest" : 'X\(/\)' \| \
22158 . : '\(.\)' 2>/dev/null ||
22159echo X"$ac_dest" |
22160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22162 /^X\(\/\/\)$/{ s//\1/; q; }
22163 /^X\(\/\).*/{ s//\1/; q; }
22164 s/.*/./; q'`
22165 { if $as_mkdir_p; then
22166 mkdir -p "$ac_dir"
22167 else
22168 as_dir="$ac_dir"
22169 as_dirs=
22170 while test ! -d "$as_dir"; do
22171 as_dirs="$as_dir $as_dirs"
22172 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22174 X"$as_dir" : 'X\(//\)[^/]' \| \
22175 X"$as_dir" : 'X\(//\)$' \| \
22176 X"$as_dir" : 'X\(/\)' \| \
22177 . : '\(.\)' 2>/dev/null ||
22178echo X"$as_dir" |
22179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22181 /^X\(\/\/\)$/{ s//\1/; q; }
22182 /^X\(\/\).*/{ s//\1/; q; }
22183 s/.*/./; q'`
22184 done
22185 test ! -n "$as_dirs" || mkdir $as_dirs
22186 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22187echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22188 { (exit 1); exit 1; }; }; }
b3baf5d0 22189
5464f5a1 22190 ac_builddir=.
b3baf5d0 22191
5464f5a1
NN
22192if test "$ac_dir" != .; then
22193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22194 # A "../" for each directory in $ac_dir_suffix.
22195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22196else
22197 ac_dir_suffix= ac_top_builddir=
22198fi
22199
22200case $srcdir in
22201 .) # No --srcdir option. We are building in place.
22202 ac_srcdir=.
22203 if test -z "$ac_top_builddir"; then
22204 ac_top_srcdir=.
22205 else
22206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22207 fi ;;
22208 [\\/]* | ?:[\\/]* ) # Absolute path.
22209 ac_srcdir=$srcdir$ac_dir_suffix;
22210 ac_top_srcdir=$srcdir ;;
22211 *) # Relative path.
22212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22214esac
22215
22216# Do not use `cd foo && pwd` to compute absolute paths, because
22217# the directories may not exist.
22218case `pwd` in
22219.) ac_abs_builddir="$ac_dir";;
22220*)
22221 case "$ac_dir" in
22222 .) ac_abs_builddir=`pwd`;;
22223 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22224 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22225 esac;;
22226esac
22227case $ac_abs_builddir in
22228.) ac_abs_top_builddir=${ac_top_builddir}.;;
22229*)
22230 case ${ac_top_builddir}. in
22231 .) ac_abs_top_builddir=$ac_abs_builddir;;
22232 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22233 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22234 esac;;
22235esac
22236case $ac_abs_builddir in
22237.) ac_abs_srcdir=$ac_srcdir;;
22238*)
22239 case $ac_srcdir in
22240 .) ac_abs_srcdir=$ac_abs_builddir;;
22241 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22242 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22243 esac;;
22244esac
22245case $ac_abs_builddir in
22246.) ac_abs_top_srcdir=$ac_top_srcdir;;
22247*)
22248 case $ac_top_srcdir in
22249 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22250 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22251 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22252 esac;;
22253esac
22254
22255
22256 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22257echo "$as_me: executing $ac_dest commands" >&6;}
22258 case $ac_dest in
f5385ebf
AM
22259 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22260 # Strip MF so we end up with the name of the file.
22261 mf=`echo "$mf" | sed -e 's/:.*$//'`
22262 # Check whether this is an Automake generated Makefile or not.
22263 # We used to match only the files named `Makefile.in', but
22264 # some people rename them; so instead we look at the file content.
22265 # Grep'ing the first line is not enough: some people post-process
22266 # each Makefile.in and add a new line on top of each file to say so.
22267 # So let's grep whole file.
22268 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22269 dirpart=`(dirname "$mf") 2>/dev/null ||
22270$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22271 X"$mf" : 'X\(//\)[^/]' \| \
22272 X"$mf" : 'X\(//\)$' \| \
22273 X"$mf" : 'X\(/\)' \| \
22274 . : '\(.\)' 2>/dev/null ||
22275echo X"$mf" |
22276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22278 /^X\(\/\/\)$/{ s//\1/; q; }
22279 /^X\(\/\).*/{ s//\1/; q; }
22280 s/.*/./; q'`
22281 else
22282 continue
22283 fi
22284 # Extract the definition of DEPDIR, am__include, and am__quote
22285 # from the Makefile without running `make'.
22286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22287 test -z "$DEPDIR" && continue
22288 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22289 test -z "am__include" && continue
22290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22291 # When using ansi2knr, U may be empty or an underscore; expand it
22292 U=`sed -n 's/^U = //p' < "$mf"`
22293 # Find all dependency output files, they are included files with
22294 # $(DEPDIR) in their names. We invoke sed twice because it is the
22295 # simplest approach to changing $(DEPDIR) to its actual value in the
22296 # expansion.
22297 for file in `sed -n "
22298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22300 # Make sure the directory exists.
22301 test -f "$dirpart/$file" && continue
22302 fdir=`(dirname "$file") 2>/dev/null ||
22303$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22304 X"$file" : 'X\(//\)[^/]' \| \
22305 X"$file" : 'X\(//\)$' \| \
22306 X"$file" : 'X\(/\)' \| \
22307 . : '\(.\)' 2>/dev/null ||
22308echo X"$file" |
22309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22311 /^X\(\/\/\)$/{ s//\1/; q; }
22312 /^X\(\/\).*/{ s//\1/; q; }
22313 s/.*/./; q'`
22314 { if $as_mkdir_p; then
22315 mkdir -p $dirpart/$fdir
22316 else
22317 as_dir=$dirpart/$fdir
22318 as_dirs=
22319 while test ! -d "$as_dir"; do
22320 as_dirs="$as_dir $as_dirs"
22321 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22323 X"$as_dir" : 'X\(//\)[^/]' \| \
22324 X"$as_dir" : 'X\(//\)$' \| \
22325 X"$as_dir" : 'X\(/\)' \| \
22326 . : '\(.\)' 2>/dev/null ||
22327echo X"$as_dir" |
22328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22330 /^X\(\/\/\)$/{ s//\1/; q; }
22331 /^X\(\/\).*/{ s//\1/; q; }
22332 s/.*/./; q'`
22333 done
22334 test ! -n "$as_dirs" || mkdir $as_dirs
22335 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22336echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22337 { (exit 1); exit 1; }; }; }
22338
22339 # echo "creating $dirpart/$file"
22340 echo '# dummy' > "$dirpart/$file"
22341 done
22342done
d7040cdb
SE
22343 ;;
22344 libtool )
22345
22346 # See if we are running on zsh, and set the options which allow our
22347 # commands through without removal of \ escapes.
22348 if test -n "${ZSH_VERSION+set}" ; then
22349 setopt NO_GLOB_SUBST
22350 fi
22351
22352 cfgfile="${ofile}T"
22353 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22354 $RM "$cfgfile"
22355
22356 cat <<_LT_EOF >> "$cfgfile"
22357#! $SHELL
22358
22359# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22360# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
22361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22362# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22363#
22364# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22365# 2006, 2007 Free Software Foundation, Inc.
22366#
22367# This file is part of GNU Libtool:
22368# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22369#
22370# This program is free software; you can redistribute it and/or modify
22371# it under the terms of the GNU General Public License as published by
0b3e17e9 22372# the Free Software Foundation; either version 2 of the License, or
d7040cdb
SE
22373# (at your option) any later version.
22374#
22375# This program is distributed in the hope that it will be useful, but
22376# WITHOUT ANY WARRANTY; without even the implied warranty of
22377# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22378# General Public License for more details.
22379#
22380# You should have received a copy of the GNU General Public License
22381# along with this program; if not, a copy can be downloaded from
22382# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
22383# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22384# MA 02110-1301, USA.
22385#
22386# As a special exception to the GNU General Public License, if you
22387# distribute this file as part of a program that contains a
22388# configuration script generated by Autoconf, you may include it under
22389# the same distribution terms that you use for the rest of that program.
22390
22391
22392# The names of the tagged configurations supported by this script.
22393available_tags=""
22394
22395# ### BEGIN LIBTOOL CONFIG
22396
22397# Whether or not to build shared libraries.
22398build_libtool_libs=$enable_shared
22399
22400# Which release of libtool.m4 was used?
22401macro_version=$macro_version
22402macro_revision=$macro_revision
22403
22404# Whether or not to build static libraries.
22405build_old_libs=$enable_static
22406
22407# What type of objects to build.
22408pic_mode=$pic_mode
22409
22410# Whether or not to optimize for fast installation.
22411fast_install=$enable_fast_install
22412
22413# The host system.
22414host_alias=$host_alias
22415host=$host
22416host_os=$host_os
22417
22418# The build system.
22419build_alias=$build_alias
22420build=$build
22421build_os=$build_os
22422
22423# A sed program that does not truncate output.
22424SED=$lt_SED
22425
22426# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22427Xsed="\$SED -e 1s/^X//"
22428
22429# A grep program that handles long lines.
22430GREP=$lt_GREP
22431
22432# An ERE matcher.
22433EGREP=$lt_EGREP
22434
22435# A literal string matcher.
22436FGREP=$lt_FGREP
22437
22438# A BSD- or MS-compatible name lister.
22439NM=$lt_NM
22440
22441# Whether we need soft or hard links.
22442LN_S=$lt_LN_S
22443
22444# What is the maximum length of a command?
22445max_cmd_len=$max_cmd_len
22446
22447# Object file suffix (normally "o").
22448objext=$ac_objext
22449
22450# Executable file suffix (normally "").
22451exeext=$exeext
22452
22453# whether the shell understands "unset".
22454lt_unset=$lt_unset
22455
22456# turn spaces into newlines.
22457SP2NL=$lt_lt_SP2NL
22458
22459# turn newlines into spaces.
22460NL2SP=$lt_lt_NL2SP
22461
22462# How to create reloadable object files.
22463reload_flag=$lt_reload_flag
22464reload_cmds=$lt_reload_cmds
22465
22466# Method to check whether dependent libraries are shared objects.
22467deplibs_check_method=$lt_deplibs_check_method
22468
22469# Command to use when deplibs_check_method == "file_magic".
22470file_magic_cmd=$lt_file_magic_cmd
22471
22472# The archiver.
22473AR=$lt_AR
22474AR_FLAGS=$lt_AR_FLAGS
22475
22476# A symbol stripping program.
22477STRIP=$lt_STRIP
22478
22479# Commands used to install an old-style archive.
22480RANLIB=$lt_RANLIB
22481old_postinstall_cmds=$lt_old_postinstall_cmds
22482old_postuninstall_cmds=$lt_old_postuninstall_cmds
22483
22484# A C compiler.
22485LTCC=$lt_CC
22486
22487# LTCC compiler flags.
22488LTCFLAGS=$lt_CFLAGS
22489
22490# Take the output of nm and produce a listing of raw symbols and C names.
22491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22492
22493# Transform the output of nm in a proper C declaration.
22494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22495
22496# Transform the output of nm in a C name address pair.
22497global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22498
22499# The name of the directory that contains temporary libtool files.
22500objdir=$objdir
22501
22502# Shell to use when invoking shell scripts.
22503SHELL=$lt_SHELL
22504
22505# An echo program that does not interpret backslashes.
22506ECHO=$lt_ECHO
22507
22508# Used to examine libraries when file_magic_cmd begins with "file".
22509MAGIC_CMD=$MAGIC_CMD
22510
22511# Must we lock files when doing compilation?
22512need_locks=$lt_need_locks
22513
22514# Old archive suffix (normally "a").
22515libext=$libext
22516
22517# Shared library suffix (normally ".so").
22518shrext_cmds=$lt_shrext_cmds
22519
22520# The commands to extract the exported symbol list from a shared archive.
22521extract_expsyms_cmds=$lt_extract_expsyms_cmds
22522
22523# Variables whose values should be saved in libtool wrapper scripts and
22524# restored at link time.
22525variables_saved_for_relink=$lt_variables_saved_for_relink
22526
22527# Do we need the "lib" prefix for modules?
22528need_lib_prefix=$need_lib_prefix
22529
22530# Do we need a version for libraries?
22531need_version=$need_version
22532
22533# Library versioning type.
22534version_type=$version_type
22535
22536# Shared library runtime path variable.
22537runpath_var=$runpath_var
22538
22539# Shared library path variable.
22540shlibpath_var=$shlibpath_var
22541
22542# Is shlibpath searched before the hard-coded library search path?
22543shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22544
22545# Format of library name prefix.
22546libname_spec=$lt_libname_spec
22547
22548# List of archive names. First name is the real one, the rest are links.
22549# The last name is the one that the linker finds with -lNAME
22550library_names_spec=$lt_library_names_spec
22551
22552# The coded name of the library, if different from the real name.
22553soname_spec=$lt_soname_spec
22554
22555# Command to use after installation of a shared archive.
22556postinstall_cmds=$lt_postinstall_cmds
22557
22558# Command to use after uninstallation of a shared archive.
22559postuninstall_cmds=$lt_postuninstall_cmds
22560
22561# Commands used to finish a libtool library installation in a directory.
22562finish_cmds=$lt_finish_cmds
22563
22564# As "finish_cmds", except a single script fragment to be evaled but
22565# not shown.
22566finish_eval=$lt_finish_eval
22567
22568# Whether we should hardcode library paths into libraries.
22569hardcode_into_libs=$hardcode_into_libs
22570
22571# Compile-time system search path for libraries.
22572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22573
22574# Run-time system search path for libraries.
22575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22576
22577# Whether dlopen is supported.
22578dlopen_support=$enable_dlopen
22579
22580# Whether dlopen of programs is supported.
22581dlopen_self=$enable_dlopen_self
22582
22583# Whether dlopen of statically linked programs is supported.
22584dlopen_self_static=$enable_dlopen_self_static
22585
22586# Commands to strip libraries.
22587old_striplib=$lt_old_striplib
22588striplib=$lt_striplib
22589
22590
22591# The linker used to build libraries.
22592LD=$lt_LD
22593
22594# Commands used to build an old-style archive.
22595old_archive_cmds=$lt_old_archive_cmds
22596
22597# A language specific compiler.
22598CC=$lt_compiler
22599
22600# Is the compiler the GNU compiler?
22601with_gcc=$GCC
22602
22603# Compiler flag to turn off builtin functions.
22604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22605
22606# How to pass a linker flag through the compiler.
22607wl=$lt_lt_prog_compiler_wl
22608
22609# Additional compiler flags for building library objects.
22610pic_flag=$lt_lt_prog_compiler_pic
22611
22612# Compiler flag to prevent dynamic linking.
22613link_static_flag=$lt_lt_prog_compiler_static
22614
22615# Does compiler simultaneously support -c and -o options?
22616compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22617
22618# Whether or not to add -lc for building shared libraries.
22619build_libtool_need_lc=$archive_cmds_need_lc
22620
22621# Whether or not to disallow shared libs when runtime libs are static.
22622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22623
22624# Compiler flag to allow reflexive dlopens.
22625export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22626
22627# Compiler flag to generate shared objects directly from archives.
22628whole_archive_flag_spec=$lt_whole_archive_flag_spec
22629
22630# Whether the compiler copes with passing no objects directly.
22631compiler_needs_object=$lt_compiler_needs_object
22632
22633# Create an old-style archive from a shared archive.
22634old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22635
22636# Create a temporary old-style archive to link instead of a shared archive.
22637old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22638
22639# Commands used to build a shared archive.
22640archive_cmds=$lt_archive_cmds
22641archive_expsym_cmds=$lt_archive_expsym_cmds
22642
22643# Commands used to build a loadable module if different from building
22644# a shared archive.
22645module_cmds=$lt_module_cmds
22646module_expsym_cmds=$lt_module_expsym_cmds
22647
22648# Whether we are building with GNU ld or not.
22649with_gnu_ld=$lt_with_gnu_ld
22650
22651# Flag that allows shared libraries with undefined symbols to be built.
22652allow_undefined_flag=$lt_allow_undefined_flag
22653
22654# Flag that enforces no undefined symbols.
22655no_undefined_flag=$lt_no_undefined_flag
22656
22657# Flag to hardcode \$libdir into a binary during linking.
22658# This must work even if \$libdir does not exist
22659hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22660
22661# If ld is used when linking, flag to hardcode \$libdir into a binary
22662# during linking. This must work even if \$libdir does not exist.
22663hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22664
22665# Whether we need a single "-rpath" flag with a separated argument.
22666hardcode_libdir_separator=$lt_hardcode_libdir_separator
22667
22668# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22669# DIR into the resulting binary.
22670hardcode_direct=$hardcode_direct
22671
22672# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22673# DIR into the resulting binary and the resulting library dependency is
22674# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22675# library is relocated.
22676hardcode_direct_absolute=$hardcode_direct_absolute
22677
22678# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22679# into the resulting binary.
22680hardcode_minus_L=$hardcode_minus_L
22681
22682# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22683# into the resulting binary.
22684hardcode_shlibpath_var=$hardcode_shlibpath_var
22685
22686# Set to "yes" if building a shared library automatically hardcodes DIR
22687# into the library and all subsequent libraries and executables linked
22688# against it.
22689hardcode_automatic=$hardcode_automatic
22690
22691# Set to yes if linker adds runtime paths of dependent libraries
22692# to runtime path list.
22693inherit_rpath=$inherit_rpath
22694
22695# Whether libtool must link a program against all its dependency libraries.
22696link_all_deplibs=$link_all_deplibs
22697
22698# Fix the shell variable \$srcfile for the compiler.
22699fix_srcfile_path=$lt_fix_srcfile_path
22700
22701# Set to "yes" if exported symbols are required.
22702always_export_symbols=$always_export_symbols
22703
22704# The commands to list exported symbols.
22705export_symbols_cmds=$lt_export_symbols_cmds
22706
22707# Symbols that should not be listed in the preloaded symbols.
22708exclude_expsyms=$lt_exclude_expsyms
22709
22710# Symbols that must always be exported.
22711include_expsyms=$lt_include_expsyms
22712
22713# Commands necessary for linking programs (against libraries) with templates.
22714prelink_cmds=$lt_prelink_cmds
22715
22716# Specify filename containing input files.
22717file_list_spec=$lt_file_list_spec
22718
22719# How to hardcode a shared library path into an executable.
22720hardcode_action=$hardcode_action
22721
22722# ### END LIBTOOL CONFIG
22723
22724_LT_EOF
22725
22726 case $host_os in
22727 aix3*)
22728 cat <<\_LT_EOF >> "$cfgfile"
22729# AIX sometimes has problems with the GCC collect2 program. For some
22730# reason, if we set the COLLECT_NAMES environment variable, the problems
22731# vanish in a puff of smoke.
22732if test "X${COLLECT_NAMES+set}" != Xset; then
22733 COLLECT_NAMES=
22734 export COLLECT_NAMES
22735fi
22736_LT_EOF
22737 ;;
22738 esac
22739
22740
22741ltmain="$ac_aux_dir/ltmain.sh"
22742
22743
22744 # We use sed instead of cat because bash on DJGPP gets confused if
22745 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22746 # text mode, it properly converts lines to CR/LF. This bash problem
22747 # is reportedly fixed, but why not run on old versions too?
22748 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22749 || (rm -f "$cfgfile"; exit 1)
22750
22751 case $xsi_shell in
22752 yes)
22753 cat << \_LT_EOF >> "$cfgfile"
22754# func_dirname file append nondir_replacement
22755# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22756# otherwise set result to NONDIR_REPLACEMENT.
22757func_dirname ()
22758{
22759 case ${1} in
22760 */*) func_dirname_result="${1%/*}${2}" ;;
22761 * ) func_dirname_result="${3}" ;;
22762 esac
22763}
22764
22765# func_basename file
22766func_basename ()
22767{
22768 func_basename_result="${1##*/}"
22769}
22770
22771# func_stripname prefix suffix name
22772# strip PREFIX and SUFFIX off of NAME.
22773# PREFIX and SUFFIX must not contain globbing or regex special
22774# characters, hashes, percent signs, but SUFFIX may contain a leading
22775# dot (in which case that matches only a dot).
22776func_stripname ()
22777{
22778 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22779 # positional parameters, so assign one to ordinary parameter first.
22780 func_stripname_result=${3}
22781 func_stripname_result=${func_stripname_result#"${1}"}
22782 func_stripname_result=${func_stripname_result%"${2}"}
22783}
22784
22785# func_opt_split
22786func_opt_split ()
22787{
22788 func_opt_split_opt=${1%%=*}
22789 func_opt_split_arg=${1#*=}
22790}
22791
22792# func_lo2o object
22793func_lo2o ()
22794{
22795 case ${1} in
22796 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22797 *) func_lo2o_result=${1} ;;
22798 esac
22799}
22800_LT_EOF
22801 ;;
22802 *) # Bourne compatible functions.
22803 cat << \_LT_EOF >> "$cfgfile"
22804# func_dirname file append nondir_replacement
22805# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22806# otherwise set result to NONDIR_REPLACEMENT.
22807func_dirname ()
22808{
22809 # Extract subdirectory from the argument.
22810 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22811 if test "X$func_dirname_result" = "X${1}"; then
22812 func_dirname_result="${3}"
22813 else
22814 func_dirname_result="$func_dirname_result${2}"
22815 fi
22816}
22817
22818# func_basename file
22819func_basename ()
22820{
22821 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22822}
22823
22824# func_stripname prefix suffix name
22825# strip PREFIX and SUFFIX off of NAME.
22826# PREFIX and SUFFIX must not contain globbing or regex special
22827# characters, hashes, percent signs, but SUFFIX may contain a leading
22828# dot (in which case that matches only a dot).
22829# func_strip_suffix prefix name
22830func_stripname ()
22831{
22832 case ${2} in
22833 .*) func_stripname_result=`$ECHO "X${3}" \
22834 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22835 *) func_stripname_result=`$ECHO "X${3}" \
22836 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22837 esac
22838}
22839
22840# sed scripts:
22841my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22842my_sed_long_arg='1s/^-[^=]*=//'
22843
22844# func_opt_split
22845func_opt_split ()
22846{
22847 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22848 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22849}
22850
22851# func_lo2o object
22852func_lo2o ()
22853{
22854 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22855}
22856_LT_EOF
22857esac
22858
22859case $lt_shell_append in
22860 yes)
22861 cat << \_LT_EOF >> "$cfgfile"
22862
22863# func_append var value
22864# Append VALUE to the end of shell variable VAR.
22865func_append ()
22866{
22867 eval "$1+=\$2"
22868}
22869_LT_EOF
22870 ;;
22871 *)
22872 cat << \_LT_EOF >> "$cfgfile"
22873
22874# func_append var value
22875# Append VALUE to the end of shell variable VAR.
22876func_append ()
22877{
22878 eval "$1=\$$1\$2"
22879}
22880_LT_EOF
22881 ;;
22882 esac
22883
22884
22885 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22886 || (rm -f "$cfgfile"; exit 1)
22887
22888 mv -f "$cfgfile" "$ofile" ||
22889 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22890 chmod +x "$ofile"
22891
f5385ebf 22892 ;;
20e95c23
DJ
22893 default-1 )
22894 for ac_file in $CONFIG_FILES; do
22895 # Support "outfile[:infile[:infile...]]"
22896 case "$ac_file" in
22897 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22898 esac
22899 # PO directories have a Makefile.in generated from Makefile.in.in.
22900 case "$ac_file" in */Makefile.in)
22901 # Adjust a relative srcdir.
22902 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22903 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22904 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22905 # In autoconf-2.13 it is called $ac_given_srcdir.
22906 # In autoconf-2.50 it is called $srcdir.
22907 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22908 case "$ac_given_srcdir" in
22909 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22910 /*) top_srcdir="$ac_given_srcdir" ;;
22911 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22912 esac
22913 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22914 rm -f "$ac_dir/POTFILES"
22915 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22916 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22917 POMAKEFILEDEPS="POTFILES.in"
22918 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22919 # on $ac_dir but don't depend on user-specified configuration
22920 # parameters.
22921 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22922 # The LINGUAS file contains the set of available languages.
22923 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22924 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22925 fi
22926 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22927 # Hide the ALL_LINGUAS assigment from automake.
22928 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22929 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22930 else
22931 # The set of available languages was given in configure.in.
22932 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22933 fi
22934 case "$ac_given_srcdir" in
22935 .) srcdirpre= ;;
22936 *) srcdirpre='$(srcdir)/' ;;
22937 esac
22938 POFILES=
22939 GMOFILES=
22940 UPDATEPOFILES=
22941 DUMMYPOFILES=
22942 for lang in $ALL_LINGUAS; do
22943 POFILES="$POFILES $srcdirpre$lang.po"
22944 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22945 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22946 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22947 done
22948 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22949 # environment variable.
22950 INST_LINGUAS=
22951 if test -n "$ALL_LINGUAS"; then
22952 for presentlang in $ALL_LINGUAS; do
22953 useit=no
22954 if test "%UNSET%" != "$LINGUAS"; then
22955 desiredlanguages="$LINGUAS"
22956 else
22957 desiredlanguages="$ALL_LINGUAS"
22958 fi
22959 for desiredlang in $desiredlanguages; do
22960 # Use the presentlang catalog if desiredlang is
22961 # a. equal to presentlang, or
22962 # b. a variant of presentlang (because in this case,
22963 # presentlang can be used as a fallback for messages
22964 # which are not translated in the desiredlang catalog).
22965 case "$desiredlang" in
22966 "$presentlang"*) useit=yes;;
22967 esac
22968 done
22969 if test $useit = yes; then
22970 INST_LINGUAS="$INST_LINGUAS $presentlang"
22971 fi
22972 done
22973 fi
22974 CATALOGS=
22975 if test -n "$INST_LINGUAS"; then
22976 for lang in $INST_LINGUAS; do
22977 CATALOGS="$CATALOGS $lang.gmo"
22978 done
22979 fi
22980 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22981 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"
22982 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22983 if test -f "$f"; then
22984 case "$f" in
22985 *.orig | *.bak | *~) ;;
22986 *) cat "$f" >> "$ac_dir/Makefile" ;;
22987 esac
22988 fi
22989 done
22990 fi
22991 ;;
22992 esac
22993 done ;;
d5efd9fc
AM
22994 bfd_stdint.h )
22995if test "$GCC" = yes; then
22996 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22997else
22998 echo "/* generated for $CC */" > tmp-stdint.h
22999fi
23000
23001sed 's/^ *//' >> tmp-stdint.h <<EOF
23002
23003 #ifndef GCC_GENERATED_STDINT_H
23004 #define GCC_GENERATED_STDINT_H 1
23005
23006 #include <sys/types.h>
23007EOF
23008
23009if test "$acx_cv_header_stdint" != stdint.h; then
23010 echo "#include <stddef.h>" >> tmp-stdint.h
23011fi
23012if test "$acx_cv_header_stdint" != stddef.h; then
23013 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
23014fi
23015
23016sed 's/^ *//' >> tmp-stdint.h <<EOF
23017 /* glibc uses these symbols as guards to prevent redefinitions. */
23018 #ifdef __int8_t_defined
23019 #define _INT8_T
23020 #define _INT16_T
23021 #define _INT32_T
23022 #endif
23023 #ifdef __uint32_t_defined
23024 #define _UINT32_T
23025 #endif
23026
23027EOF
23028
23029# ----------------- done header, emit basic int types -------------
23030if test "$acx_cv_header_stdint" = stddef.h; then
23031 sed 's/^ *//' >> tmp-stdint.h <<EOF
23032
23033 #ifndef _UINT8_T
23034 #define _UINT8_T
23035 #ifndef __uint8_t_defined
23036 #define __uint8_t_defined
23037 typedef unsigned $acx_cv_type_int8_t uint8_t;
23038 #endif
23039 #endif
23040
23041 #ifndef _UINT16_T
23042 #define _UINT16_T
23043 #ifndef __uint16_t_defined
23044 #define __uint16_t_defined
23045 typedef unsigned $acx_cv_type_int16_t uint16_t;
23046 #endif
23047 #endif
23048
23049 #ifndef _UINT32_T
23050 #define _UINT32_T
23051 #ifndef __uint32_t_defined
23052 #define __uint32_t_defined
23053 typedef unsigned $acx_cv_type_int32_t uint32_t;
23054 #endif
23055 #endif
23056
23057 #ifndef _INT8_T
23058 #define _INT8_T
23059 #ifndef __int8_t_defined
23060 #define __int8_t_defined
23061 typedef $acx_cv_type_int8_t int8_t;
23062 #endif
23063 #endif
23064
23065 #ifndef _INT16_T
23066 #define _INT16_T
23067 #ifndef __int16_t_defined
23068 #define __int16_t_defined
23069 typedef $acx_cv_type_int16_t int16_t;
23070 #endif
23071 #endif
23072
23073 #ifndef _INT32_T
23074 #define _INT32_T
23075 #ifndef __int32_t_defined
23076 #define __int32_t_defined
23077 typedef $acx_cv_type_int32_t int32_t;
23078 #endif
23079 #endif
23080EOF
23081elif test "$ac_cv_type_u_int32_t" = yes; then
23082 sed 's/^ *//' >> tmp-stdint.h <<EOF
23083
23084 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
23085 #ifndef _INT8_T
23086 #define _INT8_T
23087 #endif
23088 #ifndef _INT16_T
23089 #define _INT16_T
23090 #endif
23091 #ifndef _INT32_T
23092 #define _INT32_T
23093 #endif
23094
23095 #ifndef _UINT8_T
23096 #define _UINT8_T
23097 #ifndef __uint8_t_defined
23098 #define __uint8_t_defined
23099 typedef u_int8_t uint8_t;
23100 #endif
23101 #endif
23102
23103 #ifndef _UINT16_T
23104 #define _UINT16_T
23105 #ifndef __uint16_t_defined
23106 #define __uint16_t_defined
23107 typedef u_int16_t uint16_t;
23108 #endif
23109 #endif
23110
23111 #ifndef _UINT32_T
23112 #define _UINT32_T
23113 #ifndef __uint32_t_defined
23114 #define __uint32_t_defined
23115 typedef u_int32_t uint32_t;
23116 #endif
23117 #endif
23118EOF
23119else
23120 sed 's/^ *//' >> tmp-stdint.h <<EOF
23121
23122 /* Some systems have guard macros to prevent redefinitions, define them. */
23123 #ifndef _INT8_T
23124 #define _INT8_T
23125 #endif
23126 #ifndef _INT16_T
23127 #define _INT16_T
23128 #endif
23129 #ifndef _INT32_T
23130 #define _INT32_T
23131 #endif
23132 #ifndef _UINT8_T
23133 #define _UINT8_T
23134 #endif
23135 #ifndef _UINT16_T
23136 #define _UINT16_T
23137 #endif
23138 #ifndef _UINT32_T
23139 #define _UINT32_T
23140 #endif
23141EOF
23142fi
23143
23144# ------------- done basic int types, emit int64_t types ------------
23145if test "$ac_cv_type_uint64_t" = yes; then
23146 sed 's/^ *//' >> tmp-stdint.h <<EOF
23147
23148 /* system headers have good uint64_t and int64_t */
23149 #ifndef _INT64_T
23150 #define _INT64_T
23151 #endif
23152 #ifndef _UINT64_T
23153 #define _UINT64_T
23154 #endif
23155EOF
23156elif test "$ac_cv_type_u_int64_t" = yes; then
23157 sed 's/^ *//' >> tmp-stdint.h <<EOF
23158
23159 /* system headers have an u_int64_t (and int64_t) */
23160 #ifndef _INT64_T
23161 #define _INT64_T
23162 #endif
23163 #ifndef _UINT64_T
23164 #define _UINT64_T
23165 #ifndef __uint64_t_defined
23166 #define __uint64_t_defined
23167 typedef u_int64_t uint64_t;
23168 #endif
23169 #endif
23170EOF
23171elif test -n "$acx_cv_type_int64_t"; then
23172 sed 's/^ *//' >> tmp-stdint.h <<EOF
23173
23174 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
23175 #ifndef _INT64_T
23176 #define _INT64_T
23177 typedef $acx_cv_type_int64_t int64_t;
23178 #endif
23179 #ifndef _UINT64_T
23180 #define _UINT64_T
23181 #ifndef __uint64_t_defined
23182 #define __uint64_t_defined
23183 typedef unsigned $acx_cv_type_int64_t uint64_t;
23184 #endif
23185 #endif
23186EOF
23187else
23188 sed 's/^ *//' >> tmp-stdint.h <<EOF
23189
23190 /* some common heuristics for int64_t, using compiler-specific tests */
23191 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
23192 #ifndef _INT64_T
23193 #define _INT64_T
23194 #ifndef __int64_t_defined
23195 typedef long long int64_t;
23196 #endif
23197 #endif
23198 #ifndef _UINT64_T
23199 #define _UINT64_T
23200 typedef unsigned long long uint64_t;
23201 #endif
23202
23203 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
23204 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
23205 does not implement __extension__. But that compiler doesn't define
23206 __GNUC_MINOR__. */
23207 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
23208 # define __extension__
23209 # endif
23210
23211 # ifndef _INT64_T
23212 # define _INT64_T
23213 __extension__ typedef long long int64_t;
23214 # endif
23215 # ifndef _UINT64_T
23216 # define _UINT64_T
23217 __extension__ typedef unsigned long long uint64_t;
23218 # endif
23219
23220 #elif !defined __STRICT_ANSI__
23221 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23222
23223 # ifndef _INT64_T
23224 # define _INT64_T
23225 typedef __int64 int64_t;
23226 # endif
23227 # ifndef _UINT64_T
23228 # define _UINT64_T
23229 typedef unsigned __int64 uint64_t;
23230 # endif
23231 # endif /* compiler */
23232
23233 #endif /* ANSI version */
23234EOF
23235fi
23236
23237# ------------- done int64_t types, emit intptr types ------------
23238if test "$ac_cv_type_uintptr_t" != yes; then
23239 sed 's/^ *//' >> tmp-stdint.h <<EOF
23240
23241 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
23242 #ifndef __uintptr_t_defined
23243 typedef u$acx_cv_type_intptr_t uintptr_t;
23244 #endif
23245 #ifndef __intptr_t_defined
23246 typedef $acx_cv_type_intptr_t intptr_t;
23247 #endif
23248EOF
23249fi
23250
23251# ------------- done intptr types, emit int_least types ------------
23252if test "$ac_cv_type_int_least32_t" != yes; then
23253 sed 's/^ *//' >> tmp-stdint.h <<EOF
23254
23255 /* Define int_least types */
23256 typedef int8_t int_least8_t;
23257 typedef int16_t int_least16_t;
23258 typedef int32_t int_least32_t;
23259 #ifdef _INT64_T
23260 typedef int64_t int_least64_t;
23261 #endif
23262
23263 typedef uint8_t uint_least8_t;
23264 typedef uint16_t uint_least16_t;
23265 typedef uint32_t uint_least32_t;
23266 #ifdef _UINT64_T
23267 typedef uint64_t uint_least64_t;
23268 #endif
23269EOF
23270fi
23271
23272# ------------- done intptr types, emit int_fast types ------------
23273if test "$ac_cv_type_int_fast32_t" != yes; then
23274 sed 's/^ *//' >> tmp-stdint.h <<EOF
23275
23276 /* Define int_fast types. short is often slow */
23277 typedef int8_t int_fast8_t;
23278 typedef int int_fast16_t;
23279 typedef int32_t int_fast32_t;
23280 #ifdef _INT64_T
23281 typedef int64_t int_fast64_t;
23282 #endif
23283
23284 typedef uint8_t uint_fast8_t;
23285 typedef unsigned int uint_fast16_t;
23286 typedef uint32_t uint_fast32_t;
23287 #ifdef _UINT64_T
23288 typedef uint64_t uint_fast64_t;
23289 #endif
23290EOF
23291fi
23292
23293if test "$ac_cv_type_uintmax_t" != yes; then
23294 sed 's/^ *//' >> tmp-stdint.h <<EOF
23295
23296 /* Define intmax based on what we found */
23297 #ifdef _INT64_T
23298 typedef int64_t intmax_t;
23299 #else
23300 typedef long intmax_t;
23301 #endif
23302 #ifdef _UINT64_T
23303 typedef uint64_t uintmax_t;
23304 #else
23305 typedef unsigned long uintmax_t;
23306 #endif
23307EOF
23308fi
23309
23310sed 's/^ *//' >> tmp-stdint.h <<EOF
23311
23312 #endif /* GCC_GENERATED_STDINT_H */
23313EOF
23314
23315if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
23316 rm -f tmp-stdint.h
23317else
23318 mv -f tmp-stdint.h bfd_stdint.h
23319fi
23320
23321 ;;
20e95c23
DJ
23322 default )
23323case "$srcdir" in
23324 .) srcdirpre= ;;
23325 *) srcdirpre='$(srcdir)/' ;;
23326esac
23327POFILES=
23328GMOFILES=
23329for lang in dummy $OBSOLETE_ALL_LINGUAS; do
23330 if test $lang != dummy; then
23331 POFILES="$POFILES $srcdirpre$lang.po"
23332 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23333 fi
23334done
23335sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
23336 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
23337 -e "s,@POFILES@,$POFILES," \
23338 -e "s,@GMOFILES@,$GMOFILES," \
23339 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
23340 esac
23341done
23342_ACEOF
23343
23344cat >>$CONFIG_STATUS <<\_ACEOF
23345
23346{ (exit 0); exit 0; }
23347_ACEOF
252b5132 23348chmod +x $CONFIG_STATUS
5464f5a1
NN
23349ac_clean_files=$ac_clean_files_save
23350
23351
23352# configure is writing to config.log, and then calls config.status.
23353# config.status does its own redirection, appending to config.log.
23354# Unfortunately, on DOS this fails, as config.log is still kept open
23355# by configure, so config.status won't be able to write to it; its
23356# output is simply discarded. So we exec the FD to /dev/null,
23357# effectively closing config.log, so it can be properly (re)opened and
23358# appended to by config.status. When coming back to configure, we
23359# need to make the FD available again.
23360if test "$no_create" != yes; then
23361 ac_cs_success=:
23362 ac_config_status_args=
23363 test "$silent" = yes &&
23364 ac_config_status_args="$ac_config_status_args --quiet"
23365 exec 5>/dev/null
23366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23367 exec 5>>config.log
23368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23369 # would make configure fail if this is the last instruction.
23370 $ac_cs_success || { (exit 1); exit 1; }
23371fi
252b5132 23372
55c80943 23373