daily update
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
d7040cdb
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
5464f5a1
NN
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 397
5464f5a1
NN
398exec 6>&1
399
400#
401# Initializations.
402#
252b5132 403ac_default_prefix=/usr/local
5464f5a1
NN
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME=
418PACKAGE_TARNAME=
419PACKAGE_VERSION=
420PACKAGE_STRING=
421PACKAGE_BUGREPORT=
422
423ac_unique_file="libbfd.c"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
d7040cdb 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 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_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT 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=''
252b5132
RH
463
464# Initialize some variables set by options.
5464f5a1
NN
465ac_init_help=
466ac_init_version=false
252b5132
RH
467# The variables have the same names as the options, with
468# dashes changed to underlines.
5464f5a1 469cache_file=/dev/null
252b5132 470exec_prefix=NONE
252b5132 471no_create=
252b5132
RH
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
252b5132
RH
480verbose=
481x_includes=NONE
482x_libraries=NONE
5464f5a1
NN
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
252b5132
RH
502ac_prev=
503for ac_option
504do
252b5132
RH
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
5464f5a1 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
5464f5a1 516 case $ac_option in
252b5132
RH
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 521 bindir=$ac_optarg ;;
252b5132
RH
522
523 -build | --build | --buil | --bui | --bu)
5464f5a1 524 ac_prev=build_alias ;;
252b5132 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 526 build_alias=$ac_optarg ;;
252b5132
RH
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
252b5132
RH
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
5464f5a1 542 datadir=$ac_optarg ;;
252b5132
RH
543
544 -disable-* | --disable-*)
5464f5a1 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 546 # Reject names that are not valid shell variable names.
5464f5a1
NN
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
252b5132
RH
552
553 -enable-* | --enable-*)
5464f5a1 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 555 # Reject names that are not valid shell variable names.
5464f5a1
NN
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
562 *) ac_optarg=yes ;;
563 esac
5464f5a1 564 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
5464f5a1 573 exec_prefix=$ac_optarg ;;
252b5132
RH
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
5464f5a1
NN
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
252b5132
RH
585
586 -host | --host | --hos | --ho)
5464f5a1 587 ac_prev=host_alias ;;
252b5132 588 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 589 host_alias=$ac_optarg ;;
252b5132
RH
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 596 includedir=$ac_optarg ;;
252b5132
RH
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 601 infodir=$ac_optarg ;;
252b5132
RH
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 606 libdir=$ac_optarg ;;
252b5132
RH
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
5464f5a1 613 libexecdir=$ac_optarg ;;
252b5132
RH
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 622 localstatedir=$ac_optarg ;;
252b5132
RH
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 627 mandir=$ac_optarg ;;
252b5132
RH
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 634 | --no-cr | --no-c | -n)
252b5132
RH
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 648 oldincludedir=$ac_optarg ;;
252b5132
RH
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 653 prefix=$ac_optarg ;;
252b5132
RH
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 660 program_prefix=$ac_optarg ;;
252b5132
RH
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 667 program_suffix=$ac_optarg ;;
252b5132
RH
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 684 program_transform_name=$ac_optarg ;;
252b5132
RH
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
5464f5a1 694 sbindir=$ac_optarg ;;
252b5132
RH
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
5464f5a1 705 sharedstatedir=$ac_optarg ;;
252b5132
RH
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
5464f5a1 710 site=$ac_optarg ;;
6be7c12c 711
252b5132
RH
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 715 srcdir=$ac_optarg ;;
252b5132
RH
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 722 sysconfdir=$ac_optarg ;;
252b5132
RH
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 725 ac_prev=target_alias ;;
252b5132 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 727 target_alias=$ac_optarg ;;
252b5132
RH
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
5464f5a1
NN
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
252b5132
RH
734
735 -with-* | --with-*)
5464f5a1 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 737 # Reject names that are not valid shell variable names.
5464f5a1
NN
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
252b5132 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
744 *) ac_optarg=yes ;;
745 esac
5464f5a1 746 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
747
748 -without-* | --without-*)
5464f5a1 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 750 # Reject names that are not valid shell variable names.
5464f5a1
NN
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
252b5132
RH
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 766 x_includes=$ac_optarg ;;
252b5132
RH
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 773 x_libraries=$ac_optarg ;;
252b5132 774
5464f5a1
NN
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
252b5132
RH
778 ;;
779
5464f5a1
NN
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
252b5132 790 *)
5464f5a1
NN
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
5464f5a1
NN
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
252b5132 805fi
252b5132 806
5464f5a1
NN
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
6be7c12c 817
5464f5a1
NN
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 821do
5464f5a1
NN
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
252b5132
RH
827 esac
828done
829
5464f5a1
NN
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
252b5132 847
5464f5a1
NN
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
252b5132 852
252b5132
RH
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
5464f5a1
NN
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
252b5132
RH
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
252b5132 881 else
5464f5a1
NN
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
252b5132
RH
884 fi
885fi
5464f5a1
NN
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
b3baf5d0 922
5464f5a1
NN
923#
924# Report the --help message.
925#
926if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930\`configure' configures this package to adapt to many kinds of systems.
252b5132 931
5464f5a1 932Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 933
5464f5a1
NN
934To assign environment variables (e.g., CC, CFLAGS...), specify them as
935VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 936
5464f5a1 937Defaults for the options are specified in brackets.
6be7c12c 938
5464f5a1
NN
939Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950_ACEOF
951
952 cat <<_ACEOF
953Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
6be7c12c 958
5464f5a1
NN
959By default, \`make install' will install all the files in
960\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962for instance \`--prefix=\$HOME'.
6be7c12c 963
5464f5a1 964For better control, use the options below.
6be7c12c 965
5464f5a1
NN
966Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979_ACEOF
6be7c12c 980
5464f5a1 981 cat <<\_ACEOF
6be7c12c 982
5464f5a1
NN
983Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 987
5464f5a1
NN
988System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992_ACEOF
252b5132 993fi
252b5132 994
5464f5a1 995if test -n "$ac_init_help"; then
6be7c12c 996
5464f5a1 997 cat <<\_ACEOF
252b5132 998
5464f5a1
NN
999Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
5464f5a1
NN
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1014 --enable-secureplt Default to creating read-only plt entries
241a6c40
AM
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
5464f5a1
NN
1019 --enable-install-libbfd controls installation of libbfd and related headers
1020 --disable-nls do not use Native Language Support
1021
1022Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1028 --with-mmap try using mmap for BFD input files if available
a1ac8190
JM
1029 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1030 Binutils"
c428fa83 1031 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1032
1033Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CPP C preprocessor
1041
1042Use these variables to override the choices made by `configure' or to help
1043it to find libraries and programs with nonstandard names/locations.
1044
1045_ACEOF
1046fi
1047
1048if test "$ac_init_help" = "recursive"; then
1049 # If there are subdirs, report their specific --help.
1050 ac_popdir=`pwd`
1051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1052 test -d $ac_dir || continue
1053 ac_builddir=.
1054
1055if test "$ac_dir" != .; then
1056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1057 # A "../" for each directory in $ac_dir_suffix.
1058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1059else
1060 ac_dir_suffix= ac_top_builddir=
1061fi
1062
1063case $srcdir in
1064 .) # No --srcdir option. We are building in place.
1065 ac_srcdir=.
1066 if test -z "$ac_top_builddir"; then
1067 ac_top_srcdir=.
1068 else
1069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1070 fi ;;
1071 [\\/]* | ?:[\\/]* ) # Absolute path.
1072 ac_srcdir=$srcdir$ac_dir_suffix;
1073 ac_top_srcdir=$srcdir ;;
1074 *) # Relative path.
1075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1077esac
1078
5464f5a1
NN
1079# Do not use `cd foo && pwd` to compute absolute paths, because
1080# the directories may not exist.
1081case `pwd` in
1082.) ac_abs_builddir="$ac_dir";;
1083*)
1084 case "$ac_dir" in
1085 .) ac_abs_builddir=`pwd`;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_top_builddir=${ac_top_builddir}.;;
1092*)
1093 case ${ac_top_builddir}. in
1094 .) ac_abs_top_builddir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_srcdir=$ac_srcdir;;
1101*)
1102 case $ac_srcdir in
1103 .) ac_abs_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1106 esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_srcdir=$ac_top_srcdir;;
1110*)
1111 case $ac_top_srcdir in
1112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1115 esac;;
1116esac
6be7c12c 1117
5464f5a1
NN
1118 cd $ac_dir
1119 # Check for guested configure; otherwise get Cygnus style configure.
1120 if test -f $ac_srcdir/configure.gnu; then
1121 echo
1122 $SHELL $ac_srcdir/configure.gnu --help=recursive
1123 elif test -f $ac_srcdir/configure; then
1124 echo
1125 $SHELL $ac_srcdir/configure --help=recursive
1126 elif test -f $ac_srcdir/configure.ac ||
1127 test -f $ac_srcdir/configure.in; then
1128 echo
1129 $ac_configure --help
1130 else
1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 fi
49c96104 1133 cd $ac_popdir
5464f5a1 1134 done
6be7c12c
AO
1135fi
1136
5464f5a1
NN
1137test -n "$ac_init_help" && exit 0
1138if $ac_init_version; then
1139 cat <<\_ACEOF
6be7c12c 1140
5464f5a1
NN
1141Copyright (C) 2003 Free Software Foundation, Inc.
1142This configure script is free software; the Free Software Foundation
1143gives unlimited permission to copy, distribute and modify it.
1144_ACEOF
1145 exit 0
1146fi
1147exec 5>config.log
1148cat >&5 <<_ACEOF
1149This file contains any messages produced by compilers while
1150running configure, to aid debugging if configure makes a mistake.
6be7c12c 1151
5464f5a1
NN
1152It was created by $as_me, which was
1153generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1154
5464f5a1 1155 $ $0 $@
6be7c12c 1156
5464f5a1
NN
1157_ACEOF
1158{
1159cat <<_ASUNAME
1160## --------- ##
1161## Platform. ##
1162## --------- ##
1163
1164hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1165uname -m = `(uname -m) 2>/dev/null || echo unknown`
1166uname -r = `(uname -r) 2>/dev/null || echo unknown`
1167uname -s = `(uname -s) 2>/dev/null || echo unknown`
1168uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169
1170/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1171/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1172
1173/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1174/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1175/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1176hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1177/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1178/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1179/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180
1181_ASUNAME
1182
1183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184for as_dir in $PATH
1185do
1186 IFS=$as_save_IFS
1187 test -z "$as_dir" && as_dir=.
1188 echo "PATH: $as_dir"
1189done
6be7c12c 1190
5464f5a1 1191} >&5
66e25bab 1192
5464f5a1 1193cat >&5 <<_ACEOF
b3baf5d0 1194
6be7c12c 1195
5464f5a1
NN
1196## ----------- ##
1197## Core tests. ##
1198## ----------- ##
252b5132 1199
5464f5a1 1200_ACEOF
c5d1701e 1201
6be7c12c 1202
5464f5a1
NN
1203# Keep a trace of the command line.
1204# Strip out --no-create and --no-recursion so they do not pile up.
1205# Strip out --silent because we don't want to record it for future runs.
1206# Also quote any args containing shell meta-characters.
1207# Make two passes to allow for proper duplicate-argument suppression.
1208ac_configure_args=
1209ac_configure_args0=
1210ac_configure_args1=
1211ac_sep=
1212ac_must_keep_next=false
1213for ac_pass in 1 2
1214do
1215 for ac_arg
1216 do
1217 case $ac_arg in
1218 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 continue ;;
1222 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1223 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1224 esac
1225 case $ac_pass in
1226 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1227 2)
1228 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1229 if test $ac_must_keep_next = true; then
1230 ac_must_keep_next=false # Got value, back to normal.
1231 else
1232 case $ac_arg in
1233 *=* | --config-cache | -C | -disable-* | --disable-* \
1234 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1235 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1236 | -with-* | --with-* | -without-* | --without-* | --x)
1237 case "$ac_configure_args0 " in
1238 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 esac
1240 ;;
1241 -* ) ac_must_keep_next=true ;;
1242 esac
1243 fi
1244 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1245 # Get rid of the leading space.
1246 ac_sep=" "
1247 ;;
1248 esac
1249 done
1250done
1251$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1252$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1253
1254# When interrupted or exit'd, cleanup temporary files, and complete
1255# config.log. We remove comments because anyway the quotes in there
1256# would cause problems or look ugly.
1257# WARNING: Be sure not to use single quotes in there, as some shells,
1258# such as our DU 5.0 friend, will then `close' the trap.
1259trap 'exit_status=$?
1260 # Save into config.log some information that might help in debugging.
1261 {
1262 echo
1263
1264 cat <<\_ASBOX
1265## ---------------- ##
1266## Cache variables. ##
1267## ---------------- ##
1268_ASBOX
1269 echo
1270 # The following way of writing the cache mishandles newlines in values,
1271{
1272 (set) 2>&1 |
1273 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 *ac_space=\ *)
1275 sed -n \
1276 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 ;;
1279 *)
1280 sed -n \
1281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1282 ;;
1283 esac;
1284}
1285 echo
1286
1287 cat <<\_ASBOX
1288## ----------------- ##
1289## Output variables. ##
1290## ----------------- ##
1291_ASBOX
1292 echo
1293 for ac_var in $ac_subst_vars
1294 do
1295 eval ac_val=$`echo $ac_var`
1296 echo "$ac_var='"'"'$ac_val'"'"'"
1297 done | sort
1298 echo
1299
1300 if test -n "$ac_subst_files"; then
1301 cat <<\_ASBOX
1302## ------------- ##
1303## Output files. ##
1304## ------------- ##
1305_ASBOX
1306 echo
1307 for ac_var in $ac_subst_files
1308 do
1309 eval ac_val=$`echo $ac_var`
1310 echo "$ac_var='"'"'$ac_val'"'"'"
1311 done | sort
1312 echo
1313 fi
1314
1315 if test -s confdefs.h; then
1316 cat <<\_ASBOX
1317## ----------- ##
1318## confdefs.h. ##
1319## ----------- ##
1320_ASBOX
1321 echo
1322 sed "/^$/d" confdefs.h | sort
1323 echo
1324 fi
1325 test "$ac_signal" != 0 &&
1326 echo "$as_me: caught signal $ac_signal"
1327 echo "$as_me: exit $exit_status"
1328 } >&5
1329 rm -f core *.core &&
1330 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1331 exit $exit_status
1332 ' 0
1333for ac_signal in 1 2 13 15; do
1334 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335done
1336ac_signal=0
1337
1338# confdefs.h avoids OS command line length limits that DEFS can exceed.
1339rm -rf conftest* confdefs.h
1340# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341echo >confdefs.h
1342
1343# Predefined preprocessor variables.
1344
1345cat >>confdefs.h <<_ACEOF
1346#define PACKAGE_NAME "$PACKAGE_NAME"
1347_ACEOF
1348
1349
1350cat >>confdefs.h <<_ACEOF
1351#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352_ACEOF
1353
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_VERSION "$PACKAGE_VERSION"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_STRING "$PACKAGE_STRING"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367_ACEOF
1368
1369
1370# Let the site file select an alternate cache file if it wants to.
1371# Prefer explicitly selected file to automatically selected ones.
1372if test -z "$CONFIG_SITE"; then
1373 if test "x$prefix" != xNONE; then
1374 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1375 else
1376 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 fi
1378fi
1379for ac_site_file in $CONFIG_SITE; do
1380 if test -r "$ac_site_file"; then
1381 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1382echo "$as_me: loading site script $ac_site_file" >&6;}
1383 sed 's/^/| /' "$ac_site_file" >&5
1384 . "$ac_site_file"
1385 fi
1386done
1387
1388if test -r "$cache_file"; then
1389 # Some versions of bash will fail to source /dev/null (special
1390 # files actually), so we avoid doing that.
1391 if test -f "$cache_file"; then
1392 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1393echo "$as_me: loading cache $cache_file" >&6;}
1394 case $cache_file in
1395 [\\/]* | ?:[\\/]* ) . $cache_file;;
1396 *) . ./$cache_file;;
1397 esac
1398 fi
1399else
1400 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1401echo "$as_me: creating cache $cache_file" >&6;}
1402 >$cache_file
1403fi
1404
1405# Check that the precious variables saved in the cache have kept the same
1406# value.
1407ac_cache_corrupted=false
1408for ac_var in `(set) 2>&1 |
1409 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1410 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1411 eval ac_new_set=\$ac_env_${ac_var}_set
1412 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1413 eval ac_new_val="\$ac_env_${ac_var}_value"
1414 case $ac_old_set,$ac_new_set in
1415 set,)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1417echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,set)
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1421echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1423 ,);;
1424 *)
1425 if test "x$ac_old_val" != "x$ac_new_val"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1427echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1428 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1429echo "$as_me: former value: $ac_old_val" >&2;}
1430 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1431echo "$as_me: current value: $ac_new_val" >&2;}
1432 ac_cache_corrupted=:
1433 fi;;
1434 esac
1435 # Pass precious variables to config.status.
1436 if test "$ac_new_set" = set; then
1437 case $ac_new_val in
1438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1439 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1440 *) ac_arg=$ac_var=$ac_new_val ;;
1441 esac
1442 case " $ac_configure_args " in
1443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1444 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 esac
1446 fi
1447done
1448if $ac_cache_corrupted; then
1449 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1450echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1451 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1452echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1453 { (exit 1); exit 1; }; }
1454fi
1455
1456ac_ext=c
1457ac_cpp='$CPP $CPPFLAGS'
1458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482ac_aux_dir=
1483for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1484 if test -f $ac_dir/install-sh; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/install-sh -c"
1487 break
1488 elif test -f $ac_dir/install.sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install.sh -c"
1491 break
1492 elif test -f $ac_dir/shtool; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/shtool install -c"
1495 break
1496 fi
1497done
1498if test -z "$ac_aux_dir"; then
1499 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1500echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1501 { (exit 1); exit 1; }; }
1502fi
1503ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1504ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1505ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1506
1507# Make sure we can run config.sub.
1508$ac_config_sub sun4 >/dev/null 2>&1 ||
1509 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1510echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1511 { (exit 1); exit 1; }; }
1512
1513echo "$as_me:$LINENO: checking build system type" >&5
1514echo $ECHO_N "checking build system type... $ECHO_C" >&6
1515if test "${ac_cv_build+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517else
1518 ac_cv_build_alias=$build_alias
1519test -z "$ac_cv_build_alias" &&
1520 ac_cv_build_alias=`$ac_config_guess`
1521test -z "$ac_cv_build_alias" &&
1522 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1523echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1524 { (exit 1); exit 1; }; }
1525ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1526 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1527echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1528 { (exit 1); exit 1; }; }
1529
1530fi
1531echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1532echo "${ECHO_T}$ac_cv_build" >&6
1533build=$ac_cv_build
1534build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1535build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1536build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1537
1538
1539echo "$as_me:$LINENO: checking host system type" >&5
1540echo $ECHO_N "checking host system type... $ECHO_C" >&6
1541if test "${ac_cv_host+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543else
1544 ac_cv_host_alias=$host_alias
1545test -z "$ac_cv_host_alias" &&
1546 ac_cv_host_alias=$ac_cv_build_alias
1547ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1548 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1549echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1550 { (exit 1); exit 1; }; }
1551
1552fi
1553echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1554echo "${ECHO_T}$ac_cv_host" >&6
1555host=$ac_cv_host
1556host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559
1560
1561echo "$as_me:$LINENO: checking target system type" >&5
1562echo $ECHO_N "checking target system type... $ECHO_C" >&6
1563if test "${ac_cv_target+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566 ac_cv_target_alias=$target_alias
1567test "x$ac_cv_target_alias" = "x" &&
1568 ac_cv_target_alias=$ac_cv_host_alias
1569ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1571echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574fi
1575echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1576echo "${ECHO_T}$ac_cv_target" >&6
1577target=$ac_cv_target
1578target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
1582
1583# The aliases save the names the user supplied, while $host etc.
1584# will get canonicalized.
1585test -n "$target_alias" &&
1586 test "$program_prefix$program_suffix$program_transform_name" = \
1587 NONENONEs,x,x, &&
1588 program_prefix=${target_alias}-
1589ac_ext=c
1590ac_cpp='$CPP $CPPFLAGS'
1591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1593ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594if test -n "$ac_tool_prefix"; then
1595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1596set dummy ${ac_tool_prefix}gcc; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616done
1617done
1618
1619fi
1620fi
1621CC=$ac_cv_prog_CC
1622if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624echo "${ECHO_T}$CC" >&6
1625else
1626 echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630fi
1631if test -z "$ac_cv_prog_CC"; then
1632 ac_ct_CC=$CC
1633 # Extract the first word of "gcc", so it can be a program name with args.
1634set dummy gcc; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1653 fi
1654done
1655done
1656
1657fi
1658fi
1659ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662echo "${ECHO_T}$ac_ct_CC" >&6
1663else
1664 echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668 CC=$ac_ct_CC
1669else
1670 CC="$ac_cv_prog_CC"
1671fi
1672
1673if test -z "$CC"; then
1674 if test -n "$ac_tool_prefix"; then
1675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1676set dummy ${ac_tool_prefix}cc; ac_word=$2
1677echo "$as_me:$LINENO: checking for $ac_word" >&5
1678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679if test "${ac_cv_prog_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682 if test -n "$CC"; then
1683 ac_cv_prog_CC="$CC" # Let the user override the test.
1684else
1685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686for as_dir in $PATH
1687do
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_CC="${ac_tool_prefix}cc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 break 2
1695 fi
1696done
1697done
1698
1699fi
1700fi
1701CC=$ac_cv_prog_CC
1702if test -n "$CC"; then
1703 echo "$as_me:$LINENO: result: $CC" >&5
1704echo "${ECHO_T}$CC" >&6
1705else
1706 echo "$as_me:$LINENO: result: no" >&5
1707echo "${ECHO_T}no" >&6
1708fi
1709
1710fi
1711if test -z "$ac_cv_prog_CC"; then
1712 ac_ct_CC=$CC
1713 # Extract the first word of "cc", so it can be a program name with args.
1714set dummy cc; ac_word=$2
1715echo "$as_me:$LINENO: checking for $ac_word" >&5
1716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719else
1720 if test -n "$ac_ct_CC"; then
1721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1722else
1723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724for as_dir in $PATH
1725do
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_ac_ct_CC="cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1733 fi
1734done
1735done
1736
1737fi
1738fi
1739ac_ct_CC=$ac_cv_prog_ac_ct_CC
1740if test -n "$ac_ct_CC"; then
1741 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1742echo "${ECHO_T}$ac_ct_CC" >&6
1743else
1744 echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748 CC=$ac_ct_CC
1749else
1750 CC="$ac_cv_prog_CC"
1751fi
1752
1753fi
1754if test -z "$CC"; then
1755 # Extract the first word of "cc", so it can be a program name with args.
1756set dummy cc; ac_word=$2
1757echo "$as_me:$LINENO: checking for $ac_word" >&5
1758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761else
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1764else
1765 ac_prog_rejected=no
1766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1774 ac_prog_rejected=yes
1775 continue
1776 fi
1777 ac_cv_prog_CC="cc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1780 fi
1781done
1782done
1783
1784if test $ac_prog_rejected = yes; then
1785 # We found a bogon in the path, so make sure we never use it.
1786 set dummy $ac_cv_prog_CC
1787 shift
1788 if test $# != 0; then
1789 # We chose a different compiler from the bogus one.
1790 # However, it has the same basename, so the bogon will be chosen
1791 # first if we set CC to just the basename; use the full file name.
1792 shift
1793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1794 fi
1795fi
1796fi
1797fi
1798CC=$ac_cv_prog_CC
1799if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801echo "${ECHO_T}$CC" >&6
1802else
1803 echo "$as_me:$LINENO: result: no" >&5
1804echo "${ECHO_T}no" >&6
1805fi
1806
1807fi
1808if test -z "$CC"; then
1809 if test -n "$ac_tool_prefix"; then
1810 for ac_prog in cl
1811 do
1812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1814echo "$as_me:$LINENO: checking for $ac_word" >&5
1815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821else
1822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823for as_dir in $PATH
1824do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833done
1834done
1835
1836fi
1837fi
1838CC=$ac_cv_prog_CC
1839if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841echo "${ECHO_T}$CC" >&6
1842else
1843 echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847 test -n "$CC" && break
1848 done
1849fi
1850if test -z "$CC"; then
1851 ac_ct_CC=$CC
1852 for ac_prog in cl
1853do
1854 # Extract the first word of "$ac_prog", so it can be a program name with args.
1855set dummy $ac_prog; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863else
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="$ac_prog"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875done
1876done
1877
1878fi
1879fi
1880ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883echo "${ECHO_T}$ac_ct_CC" >&6
1884else
1885 echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889 test -n "$ac_ct_CC" && break
1890done
1891
1892 CC=$ac_ct_CC
1893fi
1894
1895fi
1896
1897
1898test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1899See \`config.log' for more details." >&5
1900echo "$as_me: error: no acceptable C compiler found in \$PATH
1901See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903
1904# Provide some information about the compiler.
1905echo "$as_me:$LINENO:" \
1906 "checking for C compiler version" >&5
1907ac_compiler=`set X $ac_compile; echo $2`
1908{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1909 (eval $ac_compiler --version </dev/null >&5) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }
1913{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1914 (eval $ac_compiler -v </dev/null >&5) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1919 (eval $ac_compiler -V </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923
1924cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939ac_clean_files_save=$ac_clean_files
1940ac_clean_files="$ac_clean_files a.out a.exe b.out"
1941# Try to create an executable without -o first, disregard a.out.
1942# It will help us diagnose broken compilers, and finding out an intuition
1943# of exeext.
1944echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1945echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1946ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1947if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1948 (eval $ac_link_default) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 # Find the output, starting from the most likely. This scheme is
1953# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1954# resort.
1955
1956# Be careful to initialize this variable, since it used to be cached.
1957# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1958ac_cv_exeext=
1959# b.out is created by i960 compilers.
1960for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1961do
1962 test -f "$ac_file" || continue
1963 case $ac_file in
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1965 ;;
1966 conftest.$ac_ext )
1967 # This is the source file.
1968 ;;
1969 [ab].out )
1970 # We found the default executable, but exeext='' is most
1971 # certainly right.
1972 break;;
1973 *.* )
1974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975 # FIXME: I believe we export ac_cv_exeext for Libtool,
1976 # but it would be cool to find out if it's true. Does anybody
1977 # maintain Libtool? --akim.
1978 export ac_cv_exeext
1979 break;;
1980 * )
1981 break;;
1982 esac
1983done
1984else
1985 echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1989See \`config.log' for more details." >&5
1990echo "$as_me: error: C compiler cannot create executables
1991See \`config.log' for more details." >&2;}
1992 { (exit 77); exit 77; }; }
1993fi
1994
1995ac_exeext=$ac_cv_exeext
1996echo "$as_me:$LINENO: result: $ac_file" >&5
1997echo "${ECHO_T}$ac_file" >&6
1998
1999# Check the compiler produces executables we can run. If not, either
2000# the compiler is broken, or we cross compile.
2001echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004# If not cross compiling, check that we can run a simple program.
2005if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 cross_compiling=no
2013 else
2014 if test "$cross_compiling" = maybe; then
2015 cross_compiling=yes
2016 else
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018If you meant to cross compile, use \`--host'.
2019See \`config.log' for more details." >&5
2020echo "$as_me: error: cannot run C compiled programs.
2021If you meant to cross compile, use \`--host'.
2022See \`config.log' for more details." >&2;}
2023 { (exit 1); exit 1; }; }
2024 fi
2025 fi
2026fi
2027echo "$as_me:$LINENO: result: yes" >&5
2028echo "${ECHO_T}yes" >&6
2029
2030rm -f a.out a.exe conftest$ac_cv_exeext b.out
2031ac_clean_files=$ac_clean_files_save
2032# Check the compiler produces executables we can run. If not, either
2033# the compiler is broken, or we cross compile.
2034echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2035echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2036echo "$as_me:$LINENO: result: $cross_compiling" >&5
2037echo "${ECHO_T}$cross_compiling" >&6
2038
2039echo "$as_me:$LINENO: checking for suffix of executables" >&5
2040echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2042 (eval $ac_link) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2047# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2048# work properly (i.e., refer to `conftest.exe'), while it won't with
2049# `rm'.
2050for ac_file in conftest.exe conftest conftest.*; do
2051 test -f "$ac_file" || continue
2052 case $ac_file in
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2055 export ac_cv_exeext
2056 break;;
2057 * ) break;;
2058 esac
2059done
2060else
2061 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2064See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2066fi
2067
2068rm -f conftest$ac_cv_exeext
2069echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2070echo "${ECHO_T}$ac_cv_exeext" >&6
2071
2072rm -f conftest.$ac_ext
2073EXEEXT=$ac_cv_exeext
2074ac_exeext=$EXEEXT
2075echo "$as_me:$LINENO: checking for suffix of object files" >&5
2076echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2077if test "${ac_cv_objext+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079else
2080 cat >conftest.$ac_ext <<_ACEOF
2081/* confdefs.h. */
2082_ACEOF
2083cat confdefs.h >>conftest.$ac_ext
2084cat >>conftest.$ac_ext <<_ACEOF
2085/* end confdefs.h. */
2086
2087int
2088main ()
2089{
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095rm -f conftest.o conftest.obj
2096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; then
2101 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2102 case $ac_file in
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2105 break;;
2106 esac
2107done
2108else
2109 echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2113See \`config.log' for more details." >&5
2114echo "$as_me: error: cannot compute suffix of object files: cannot compile
2115See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2117fi
2118
2119rm -f conftest.$ac_cv_objext conftest.$ac_ext
2120fi
2121echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2122echo "${ECHO_T}$ac_cv_objext" >&6
2123OBJEXT=$ac_cv_objext
2124ac_objext=$OBJEXT
2125echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2126echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2127if test "${ac_cv_c_compiler_gnu+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130 cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h. */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h. */
2136
2137int
2138main ()
2139{
2140#ifndef __GNUC__
2141 choke me
2142#endif
2143
2144 ;
2145 return 0;
2146}
2147_ACEOF
2148rm -f conftest.$ac_objext
2149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2151 ac_status=$?
2152 grep -v '^ *+' conftest.er1 >conftest.err
2153 rm -f conftest.er1
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
49c96104
SE
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
5464f5a1
NN
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2170 ac_compiler_gnu=yes
2171else
2172 echo "$as_me: failed program was:" >&5
2173sed 's/^/| /' conftest.$ac_ext >&5
2174
2175ac_compiler_gnu=no
2176fi
2177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178ac_cv_c_compiler_gnu=$ac_compiler_gnu
2179
2180fi
2181echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2182echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2183GCC=`test $ac_compiler_gnu = yes && echo yes`
2184ac_test_CFLAGS=${CFLAGS+set}
2185ac_save_CFLAGS=$CFLAGS
2186CFLAGS="-g"
2187echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2188echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2189if test "${ac_cv_prog_cc_g+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192 cat >conftest.$ac_ext <<_ACEOF
2193/* confdefs.h. */
2194_ACEOF
2195cat confdefs.h >>conftest.$ac_ext
2196cat >>conftest.$ac_ext <<_ACEOF
2197/* end confdefs.h. */
2198
2199int
2200main ()
2201{
2202
2203 ;
2204 return 0;
2205}
2206_ACEOF
2207rm -f conftest.$ac_objext
2208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2210 ac_status=$?
2211 grep -v '^ *+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
49c96104
SE
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
5464f5a1
NN
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 ac_cv_prog_cc_g=yes
2230else
2231 echo "$as_me: failed program was:" >&5
2232sed 's/^/| /' conftest.$ac_ext >&5
2233
2234ac_cv_prog_cc_g=no
2235fi
2236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2240if test "$ac_test_CFLAGS" = set; then
2241 CFLAGS=$ac_save_CFLAGS
2242elif test $ac_cv_prog_cc_g = yes; then
2243 if test "$GCC" = yes; then
2244 CFLAGS="-g -O2"
2245 else
2246 CFLAGS="-g"
2247 fi
2248else
2249 if test "$GCC" = yes; then
2250 CFLAGS="-O2"
2251 else
2252 CFLAGS=
2253 fi
2254fi
2255echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2256echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2257if test "${ac_cv_prog_cc_stdc+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260 ac_cv_prog_cc_stdc=no
2261ac_save_CC=$CC
2262cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h. */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h. */
2268#include <stdarg.h>
2269#include <stdio.h>
2270#include <sys/types.h>
2271#include <sys/stat.h>
2272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2273struct buf { int x; };
2274FILE * (*rcsopen) (struct buf *, struct stat *, int);
2275static char *e (p, i)
2276 char **p;
2277 int i;
2278{
2279 return p[i];
2280}
2281static char *f (char * (*g) (char **, int), char **p, ...)
2282{
2283 char *s;
2284 va_list v;
2285 va_start (v,p);
2286 s = g (p, va_arg (v,int));
2287 va_end (v);
2288 return s;
2289}
2290
2291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2292 function prototypes and stuff, but not '\xHH' hex character constants.
2293 These don't provoke an error unfortunately, instead are silently treated
2294 as 'x'. The following induces an error, until -std1 is added to get
2295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2296 array size at least. It's necessary to write '\x00'==0 to get something
2297 that's true only with -std1. */
2298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2299
2300int test (int i, double x);
2301struct s1 {int (*f) (int a);};
2302struct s2 {int (*f) (double a);};
2303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2304int argc;
2305char **argv;
2306int
2307main ()
2308{
2309return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314# Don't try gcc -ansi; that turns off useful extensions and
2315# breaks some systems' header files.
2316# AIX -qlanglvl=ansi
2317# Ultrix and OSF/1 -std1
2318# HP-UX 10.20 and later -Ae
2319# HP-UX older versions -Aa -D_HPUX_SOURCE
2320# SVR4 -Xc -D__EXTENSIONS__
2321for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2322do
2323 CC="$ac_save_CC $ac_arg"
2324 rm -f conftest.$ac_objext
2325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2327 ac_status=$?
2328 grep -v '^ *+' conftest.er1 >conftest.err
2329 rm -f conftest.er1
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
49c96104
SE
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
5464f5a1
NN
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_cv_prog_cc_stdc=$ac_arg
2347break
2348else
2349 echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352fi
2353rm -f conftest.err conftest.$ac_objext
2354done
2355rm -f conftest.$ac_ext conftest.$ac_objext
2356CC=$ac_save_CC
2357
2358fi
2359
2360case "x$ac_cv_prog_cc_stdc" in
2361 x|xno)
2362 echo "$as_me:$LINENO: result: none needed" >&5
2363echo "${ECHO_T}none needed" >&6 ;;
2364 *)
2365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2366echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2367 CC="$CC $ac_cv_prog_cc_stdc" ;;
2368esac
2369
2370# Some people use a C++ compiler to compile C. Since we use `exit',
2371# in C++ we need to declare it. In case someone uses the same compiler
2372# for both compiling C and C++ we need to have the C++ compiler decide
2373# the declaration of exit, since it's the most demanding environment.
2374cat >conftest.$ac_ext <<_ACEOF
2375#ifndef __cplusplus
2376 choke me
2377#endif
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
49c96104
SE
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
5464f5a1
NN
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 for ac_declaration in \
2402 '' \
2403 'extern "C" void std::exit (int) throw (); using std::exit;' \
2404 'extern "C" void std::exit (int); using std::exit;' \
2405 'extern "C" void exit (int) throw ();' \
2406 'extern "C" void exit (int);' \
2407 'void exit (int);'
2408do
2409 cat >conftest.$ac_ext <<_ACEOF
2410/* confdefs.h. */
2411_ACEOF
2412cat confdefs.h >>conftest.$ac_ext
2413cat >>conftest.$ac_ext <<_ACEOF
2414/* end confdefs.h. */
2415$ac_declaration
2416#include <stdlib.h>
2417int
2418main ()
2419{
2420exit (42);
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425rm -f conftest.$ac_objext
2426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
49c96104
SE
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
5464f5a1
NN
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 :
2448else
2449 echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452continue
2453fi
2454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 cat >conftest.$ac_ext <<_ACEOF
2456/* confdefs.h. */
2457_ACEOF
2458cat confdefs.h >>conftest.$ac_ext
2459cat >>conftest.$ac_ext <<_ACEOF
2460/* end confdefs.h. */
2461$ac_declaration
2462int
2463main ()
2464{
2465exit (42);
2466 ;
2467 return 0;
2468}
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
49c96104
SE
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
5464f5a1
NN
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 break
2493else
2494 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497fi
2498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499done
2500rm -f conftest*
2501if test -n "$ac_declaration"; then
2502 echo '#ifdef __cplusplus' >>confdefs.h
2503 echo $ac_declaration >>confdefs.h
2504 echo '#endif' >>confdefs.h
2505fi
2506
2507else
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511fi
2512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
f5385ebf
AM
2520echo "$as_me:$LINENO: checking for library containing strerror" >&5
2521echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2522if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524else
f5385ebf
AM
2525 ac_func_search_save_LIBS=$LIBS
2526ac_cv_search_strerror=no
5464f5a1
NN
2527cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
2533
2534/* Override any gcc2 internal prototype to avoid an error. */
2535#ifdef __cplusplus
2536extern "C"
2537#endif
2538/* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540char strerror ();
2541int
2542main ()
2543{
2544strerror ();
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549rm -f conftest.$ac_objext conftest$ac_exeext
2550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2551 (eval $ac_link) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
49c96104
SE
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
5464f5a1
NN
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest$ac_exeext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
f5385ebf 2571 ac_cv_search_strerror="none required"
5464f5a1
NN
2572else
2573 echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
5464f5a1
NN
2576fi
2577rm -f conftest.err conftest.$ac_objext \
2578 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2579if test "$ac_cv_search_strerror" = no; then
2580 for ac_lib in cposix; do
2581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2582 cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
2588
2589/* Override any gcc2 internal prototype to avoid an error. */
2590#ifdef __cplusplus
2591extern "C"
2592#endif
2593/* We use char because int might match the return type of a gcc2
2594 builtin and then its argument prototype would still apply. */
2595char strerror ();
2596int
2597main ()
2598{
2599strerror ();
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext conftest$ac_exeext
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606 (eval $ac_link) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
49c96104
SE
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
f5385ebf
AM
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest$ac_exeext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_search_strerror="-l$ac_lib"
2627break
2628else
2629 echo "$as_me: failed program was:" >&5
2630sed 's/^/| /' conftest.$ac_ext >&5
2631
5464f5a1 2632fi
f5385ebf
AM
2633rm -f conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2635 done
5464f5a1 2636fi
f5385ebf
AM
2637LIBS=$ac_func_search_save_LIBS
2638fi
2639echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2640echo "${ECHO_T}$ac_cv_search_strerror" >&6
2641if test "$ac_cv_search_strerror" != no; then
2642 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2643
f5385ebf 2644fi
5464f5a1
NN
2645
2646
f5385ebf 2647am__api_version="1.9"
5464f5a1
NN
2648# Find a good install program. We prefer a C program (faster),
2649# so one script is as good as another. But avoid the broken or
2650# incompatible versions:
2651# SysV /etc/install, /usr/sbin/install
2652# SunOS /usr/etc/install
2653# IRIX /sbin/install
2654# AIX /bin/install
2655# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2656# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2659# OS/2's system install, which has a completely different semantic
252b5132 2660# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2661echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2663if test -z "$INSTALL"; then
5464f5a1
NN
2664if test "${ac_cv_path_install+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2666else
5464f5a1
NN
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 # Account for people who put trailing slashes in PATH elements.
2673case $as_dir/ in
2674 ./ | .// | /cC/* | \
2675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2677 /usr/ucb/* ) ;;
2678 *)
2679 # OSF1 and SCO ODT 3.0 have their own names for install.
2680 # Don't use installbsd from OSF since it installs stuff as root
2681 # by default.
2682 for ac_prog in ginstall scoinst install; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2685 if test $ac_prog = install &&
5464f5a1 2686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2687 # AIX install. It has an incompatible calling convention.
2688 :
5464f5a1
NN
2689 elif test $ac_prog = install &&
2690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # program-specific install script used by HP pwplus--don't use.
2692 :
252b5132 2693 else
5464f5a1
NN
2694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695 break 3
252b5132
RH
2696 fi
2697 fi
2698 done
5464f5a1
NN
2699 done
2700 ;;
2701esac
2702done
2703
252b5132
RH
2704
2705fi
2706 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2707 INSTALL=$ac_cv_path_install
252b5132
RH
2708 else
2709 # As a last resort, use the slow shell script. We don't cache a
2710 # path for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the path is relative.
5464f5a1 2713 INSTALL=$ac_install_sh
252b5132
RH
2714 fi
2715fi
5464f5a1
NN
2716echo "$as_me:$LINENO: result: $INSTALL" >&5
2717echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2718
2719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720# It thinks the first close brace ends the variable substitution.
2721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
5464f5a1 2723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2724
2725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
5464f5a1
NN
2727echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2729# Just in case
2730sleep 1
f5385ebf 2731echo timestamp > conftest.file
252b5132
RH
2732# Do `set' in a subshell so we don't clobber the current shell's
2733# arguments. Must try -L first in case configure is actually a
2734# symlink; some systems play weird games with the mod time of symlinks
2735# (eg FreeBSD returns the mod time of the symlink's containing
2736# directory).
2737if (
f5385ebf 2738 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2739 if test "$*" = "X"; then
2740 # -L didn't work.
f5385ebf 2741 set X `ls -t $srcdir/configure conftest.file`
252b5132 2742 fi
f5385ebf
AM
2743 rm -f conftest.file
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2751 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2752alias in your environment" >&5
2753echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2754alias in your environment" >&2;}
2755 { (exit 1); exit 1; }; }
252b5132
RH
2756 fi
2757
f5385ebf 2758 test "$2" = conftest.file
252b5132
RH
2759 )
2760then
2761 # Ok.
2762 :
2763else
5464f5a1
NN
2764 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765Check your system clock" >&5
2766echo "$as_me: error: newly created file is older than distributed files!
2767Check your system clock" >&2;}
2768 { (exit 1); exit 1; }; }
252b5132 2769fi
5464f5a1
NN
2770echo "$as_me:$LINENO: result: yes" >&5
2771echo "${ECHO_T}yes" >&6
252b5132 2772test "$program_prefix" != NONE &&
5464f5a1 2773 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2774# Use a double $ so make ignores it.
2775test "$program_suffix" != NONE &&
5464f5a1
NN
2776 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777# Double any \ or $. echo might interpret backslashes.
2778# By default was `s,x,x', remove it if useless.
2779cat <<\_ACEOF >conftest.sed
2780s/[\\$]/&&/g;s/;s,x,x,$//
2781_ACEOF
2782program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2783rm conftest.sed
2784
f5385ebf
AM
2785# expand $ac_aux_dir to an absolute path
2786am_aux_dir=`cd $ac_aux_dir && pwd`
2787
2788test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789# Use eval to expand $SHELL
2790if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2792else
2793 am_missing_run=
2794 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796fi
2797
2798if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799 # We used to keeping the `.' as first argument, in order to
2800 # allow $(mkdir_p) to be used without argument. As in
2801 # $(mkdir_p) $(somedir)
2802 # where $(somedir) is conditionally defined. However this is wrong
2803 # for two reasons:
2804 # 1. if the package is installed by a user who cannot write `.'
2805 # make install will fail,
2806 # 2. the above comment should most certainly read
2807 # $(mkdir_p) $(DESTDIR)$(somedir)
2808 # so it does not work when $(somedir) is undefined and
2809 # $(DESTDIR) is not.
2810 # To support the latter case, we have to write
2811 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812 # so the `.' trick is pointless.
2813 mkdir_p='mkdir -p --'
2814else
2815 # On NextStep and OpenStep, the `mkdir' command does not
2816 # recognize any option. It will interpret all options as
2817 # directories to create, and then abort because `.' already
2818 # exists.
2819 for d in ./-p ./--version;
2820 do
2821 test -d $d && rmdir $d
2822 done
2823 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824 if test -f "$ac_aux_dir/mkinstalldirs"; then
2825 mkdir_p='$(mkinstalldirs)'
2826 else
2827 mkdir_p='$(install_sh) -d'
2828 fi
2829fi
2830
2831for ac_prog in gawk mawk nawk awk
2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837if test "${ac_cv_prog_AWK+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840 if test -n "$AWK"; then
2841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_AWK="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855done
2856
2857fi
2858fi
2859AWK=$ac_cv_prog_AWK
2860if test -n "$AWK"; then
2861 echo "$as_me:$LINENO: result: $AWK" >&5
2862echo "${ECHO_T}$AWK" >&6
2863else
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866fi
2867
2868 test -n "$AWK" && break
2869done
2870
5464f5a1
NN
2871echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876else
2877 cat >conftest.make <<\_ACEOF
252b5132 2878all:
5464f5a1
NN
2879 @echo 'ac_maketemp="$(MAKE)"'
2880_ACEOF
252b5132 2881# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2882eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2883if test -n "$ac_maketemp"; then
2884 eval ac_cv_prog_make_${ac_make}_set=yes
2885else
2886 eval ac_cv_prog_make_${ac_make}_set=no
2887fi
5464f5a1 2888rm -f conftest.make
252b5132
RH
2889fi
2890if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2891 echo "$as_me:$LINENO: result: yes" >&5
2892echo "${ECHO_T}yes" >&6
252b5132
RH
2893 SET_MAKE=
2894else
5464f5a1
NN
2895 echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6
252b5132
RH
2897 SET_MAKE="MAKE=${MAKE-make}"
2898fi
2899
f5385ebf
AM
2900rm -rf .tst 2>/dev/null
2901mkdir .tst 2>/dev/null
2902if test -d .tst; then
2903 am__leading_dot=.
2904else
2905 am__leading_dot=_
2906fi
2907rmdir .tst 2>/dev/null
2908
2909DEPDIR="${am__leading_dot}deps"
2910
2911 ac_config_commands="$ac_config_commands depfiles"
2912
2913
2914am_make=${MAKE-make}
2915cat > confinc << 'END'
2916am__doit:
2917 @echo done
2918.PHONY: am__doit
2919END
2920# If we don't find an include directive, just comment out the code.
2921echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2923am__include="#"
2924am__quote=
2925_am_result=none
2926# First try GNU make style include.
2927echo "include confinc" > confmf
2928# We grep out `Entering directory' and `Leaving directory'
2929# messages which can occur if `w' ends up in MAKEFLAGS.
2930# In particular we don't look at `^make:' because GNU make might
2931# be invoked under some other name (usually "gmake"), in which
2932# case it prints its new name instead of `make'.
2933if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934 am__include=include
2935 am__quote=
2936 _am_result=GNU
2937fi
2938# Now try BSD make style include.
2939if test "$am__include" = "#"; then
2940 echo '.include "confinc"' > confmf
2941 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942 am__include=.include
2943 am__quote="\""
2944 _am_result=BSD
2945 fi
2946fi
2947
2948
2949echo "$as_me:$LINENO: result: $_am_result" >&5
2950echo "${ECHO_T}$_am_result" >&6
2951rm -f confinc confmf
2952
2953# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954if test "${enable_dependency_tracking+set}" = set; then
2955 enableval="$enable_dependency_tracking"
2956
2957fi;
2958if test "x$enable_dependency_tracking" != xno; then
2959 am_depcomp="$ac_aux_dir/depcomp"
2960 AMDEPBACKSLASH='\'
2961fi
2962
2963
2964if test "x$enable_dependency_tracking" != xno; then
2965 AMDEP_TRUE=
2966 AMDEP_FALSE='#'
2967else
2968 AMDEP_TRUE='#'
2969 AMDEP_FALSE=
2970fi
6be7c12c 2971
252b5132 2972
252b5132 2973
f5385ebf
AM
2974# test to see if srcdir already configured
2975if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976 test -f $srcdir/config.status; then
5464f5a1
NN
2977 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979 { (exit 1); exit 1; }; }
252b5132 2980fi
5464f5a1 2981
f5385ebf
AM
2982# test whether we have cygpath
2983if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2986 else
2987 CYGPATH_W=echo
2988 fi
2989fi
2990
2991
2992# Define the identity of the package.
2993 PACKAGE=bfd
ffdc4eed 2994 VERSION=2.17.50
f5385ebf
AM
2995
2996
5464f5a1 2997cat >>confdefs.h <<_ACEOF
252b5132 2998#define PACKAGE "$PACKAGE"
5464f5a1 2999_ACEOF
252b5132 3000
5464f5a1
NN
3001
3002cat >>confdefs.h <<_ACEOF
252b5132 3003#define VERSION "$VERSION"
5464f5a1 3004_ACEOF
252b5132 3005
f5385ebf
AM
3006# Some tools Automake needs.
3007
3008ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
3010
3011AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3021
f5385ebf 3022install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3023
f5385ebf
AM
3024# Installed binaries are usually stripped using `strip' when the user
3025# run `make install-strip'. However `strip' might not be the right
3026# tool to use in cross-compilation environments, therefore Automake
3027# will honor the `STRIP' environment variable to overrule this program.
3028if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}strip; ac_word=$2
3032echo "$as_me:$LINENO: checking for $ac_word" >&5
3033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034if test "${ac_cv_prog_STRIP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3039else
f5385ebf
AM
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051done
3052done
3053
3054fi
3055fi
3056STRIP=$ac_cv_prog_STRIP
3057if test -n "$STRIP"; then
3058 echo "$as_me:$LINENO: result: $STRIP" >&5
3059echo "${ECHO_T}$STRIP" >&6
3060else
3061 echo "$as_me:$LINENO: result: no" >&5
3062echo "${ECHO_T}no" >&6
3063fi
3064
252b5132 3065fi
f5385ebf
AM
3066if test -z "$ac_cv_prog_STRIP"; then
3067 ac_ct_STRIP=$STRIP
3068 # Extract the first word of "strip", so it can be a program name with args.
3069set dummy strip; ac_word=$2
3070echo "$as_me:$LINENO: checking for $ac_word" >&5
3071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075 if test -n "$ac_ct_STRIP"; then
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_STRIP="strip"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089done
3090done
252b5132 3091
f5385ebf
AM
3092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3093fi
3094fi
3095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096if test -n "$ac_ct_STRIP"; then
3097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3099else
f5385ebf
AM
3100 echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
252b5132
RH
3102fi
3103
f5385ebf 3104 STRIP=$ac_ct_STRIP
252b5132 3105else
f5385ebf
AM
3106 STRIP="$ac_cv_prog_STRIP"
3107fi
3108
252b5132 3109fi
f5385ebf
AM
3110INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3111
3112# We need awk for the "check" target. The system "awk" is bad on
3113# some platforms.
3114# Always define AMTAR for backward compatibility.
3115
3116AMTAR=${AMTAR-"${am_missing_run}tar"}
3117
3118am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3119
252b5132 3120
f5385ebf
AM
3121
3122
3123depcc="$CC" am_compiler_list=
3124
3125echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3129else
f5385ebf
AM
3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131 # We make a subdir and do the tests there. Otherwise we can end up
3132 # making bogus files that we don't know about and never remove. For
3133 # instance it was reported that on HP-UX the gcc test will end up
3134 # making a dummy file named `D' -- because `-MD' means `put the output
3135 # in D'.
3136 mkdir conftest.dir
3137 # Copy depcomp to subdir because otherwise we won't find it if we're
3138 # using a relative directory.
3139 cp "$am_depcomp" conftest.dir
3140 cd conftest.dir
3141 # We will build objects and dependencies in a subdirectory because
3142 # it helps to detect inapplicable dependency modes. For instance
3143 # both Tru64's cc and ICC support -MD to output dependencies as a
3144 # side effect of compilation, but ICC will put the dependencies in
3145 # the current directory while Tru64 will put them in the object
3146 # directory.
3147 mkdir sub
3148
3149 am_cv_CC_dependencies_compiler_type=none
3150 if test "$am_compiler_list" = ""; then
3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 fi
3153 for depmode in $am_compiler_list; do
3154 # Setup a source with many dependencies, because some compilers
3155 # like to wrap large dependency lists on column 80 (with \), and
3156 # we should not choose a depcomp mode which is confused by this.
3157 #
3158 # We need to recreate these files for each test, as the compiler may
3159 # overwrite some of them when testing with obscure command lines.
3160 # This happens at least with the AIX C compiler.
3161 : > sub/conftest.c
3162 for i in 1 2 3 4 5 6; do
3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165 # Solaris 8's {/usr,}/bin/sh.
3166 touch sub/conftst$i.h
3167 done
3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
3170 case $depmode in
3171 nosideeffect)
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3175 continue
3176 else
3177 break
3178 fi
3179 ;;
3180 none) break ;;
3181 esac
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189 >/dev/null 2>conftest.err &&
3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193 # icc doesn't choke on unknown options, it will just issue warnings
3194 # or remarks (even with -Werror). So we grep stderr for any message
3195 # that says an option was ignored or not supported.
3196 # When given -MP, icc 7.0 and 7.1 complain thusly:
3197 # icc: Command line warning: ignoring option '-M'; no argument required
3198 # The diagnosis changed in icc 8.0:
3199 # icc: Command line remark: option '-MP' not supported
3200 if (grep 'ignoring option' conftest.err ||
3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202 am_cv_CC_dependencies_compiler_type=$depmode
3203 break
3204 fi
3205 fi
3206 done
3207
3208 cd ..
3209 rm -rf conftest.dir
3210else
3211 am_cv_CC_dependencies_compiler_type=none
3212fi
3213
252b5132 3214fi
f5385ebf
AM
3215echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3218
f5385ebf
AM
3219
3220
3221if
3222 test "x$enable_dependency_tracking" != xno \
3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224 am__fastdepCC_TRUE=
3225 am__fastdepCC_FALSE='#'
252b5132 3226else
f5385ebf
AM
3227 am__fastdepCC_TRUE='#'
3228 am__fastdepCC_FALSE=
252b5132
RH
3229fi
3230
6be7c12c 3231
e43d48cc 3232
f5385ebf 3233
5464f5a1
NN
3234if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3236set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3237echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239if test "${ac_cv_prog_AR+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3241else
3242 if test -n "$AR"; then
3243 ac_cv_prog_AR="$AR" # Let the user override the test.
3244else
5464f5a1
NN
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_AR="${ac_tool_prefix}ar"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256done
3257done
3258
252b5132
RH
3259fi
3260fi
5464f5a1 3261AR=$ac_cv_prog_AR
252b5132 3262if test -n "$AR"; then
5464f5a1
NN
3263 echo "$as_me:$LINENO: result: $AR" >&5
3264echo "${ECHO_T}$AR" >&6
252b5132 3265else
5464f5a1
NN
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268fi
3269
252b5132 3270fi
5464f5a1
NN
3271if test -z "$ac_cv_prog_AR"; then
3272 ac_ct_AR=$AR
3273 # Extract the first word of "ar", so it can be a program name with args.
3274set dummy ar; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280 if test -n "$ac_ct_AR"; then
3281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_AR="ar"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294done
3295done
252b5132 3296
5464f5a1
NN
3297fi
3298fi
3299ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300if test -n "$ac_ct_AR"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302echo "${ECHO_T}$ac_ct_AR" >&6
3303else
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
252b5132 3307
5464f5a1
NN
3308 AR=$ac_ct_AR
3309else
3310 AR="$ac_cv_prog_AR"
3311fi
6be7c12c 3312
5464f5a1
NN
3313if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_RANLIB+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3320else
3321 if test -n "$RANLIB"; then
3322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3323else
5464f5a1
NN
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_RANLIB="${ac_tool_prefix}ranlib"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
3337
252b5132
RH
3338fi
3339fi
5464f5a1 3340RANLIB=$ac_cv_prog_RANLIB
252b5132 3341if test -n "$RANLIB"; then
5464f5a1
NN
3342 echo "$as_me:$LINENO: result: $RANLIB" >&5
3343echo "${ECHO_T}$RANLIB" >&6
252b5132 3344else
5464f5a1
NN
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
252b5132
RH
3347fi
3348
5464f5a1 3349fi
252b5132 3350if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3351 ac_ct_RANLIB=$RANLIB
252b5132
RH
3352 # Extract the first word of "ranlib", so it can be a program name with args.
3353set dummy ranlib; ac_word=$2
5464f5a1
NN
3354echo "$as_me:$LINENO: checking for $ac_word" >&5
3355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3358else
5464f5a1
NN
3359 if test -n "$ac_ct_RANLIB"; then
3360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3361else
5464f5a1
NN
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_RANLIB="ranlib"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373done
3374done
3375
3376 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3377fi
3378fi
5464f5a1
NN
3379ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380if test -n "$ac_ct_RANLIB"; then
3381 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3383else
5464f5a1
NN
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
252b5132
RH
3386fi
3387
5464f5a1 3388 RANLIB=$ac_ct_RANLIB
252b5132 3389else
5464f5a1 3390 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3391fi
3392
252b5132
RH
3393
3394# Check whether --enable-shared or --disable-shared was given.
3395if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397 p=${PACKAGE-default}
d7040cdb
SE
3398 case $enableval in
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3401 *)
3402 enable_shared=no
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405 for pkg in $enableval; do
3406 IFS="$lt_save_ifs"
3407 if test "X$pkg" = "X$p"; then
3408 enable_shared=yes
3409 fi
3410 done
3411 IFS="$lt_save_ifs"
3412 ;;
3413 esac
252b5132
RH
3414else
3415 enable_shared=no
5464f5a1 3416fi;
252b5132 3417
d7040cdb
SE
3418
3419
3420
3421
3422
3423
3424
3425
cfbc9945
SE
3426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434echo "$as_me:$LINENO: checking for $ac_word" >&5
3435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3438else
cfbc9945
SE
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3441else
cfbc9945
SE
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3452 fi
3453done
3454done
c5d1701e 3455
cfbc9945
SE
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 echo "$as_me:$LINENO: result: $CC" >&5
3461echo "${ECHO_T}$CC" >&6
252b5132 3462else
cfbc9945
SE
3463 echo "$as_me:$LINENO: result: no" >&5
3464echo "${ECHO_T}no" >&6
252b5132 3465fi
cfbc9945
SE
3466
3467fi
3468if test -z "$ac_cv_prog_CC"; then
3469 ac_ct_CC=$CC
3470 # Extract the first word of "gcc", so it can be a program name with args.
3471set dummy gcc; ac_word=$2
3472echo "$as_me:$LINENO: checking for $ac_word" >&5
3473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3475 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3476else
cfbc9945
SE
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3479else
cfbc9945
SE
3480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH
3482do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="gcc"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491done
3492done
3493
252b5132
RH
3494fi
3495fi
cfbc9945
SE
3496ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497if test -n "$ac_ct_CC"; then
3498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3499echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3500else
5464f5a1
NN
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
252b5132 3503fi
cfbc9945
SE
3504
3505 CC=$ac_ct_CC
3506else
3507 CC="$ac_cv_prog_CC"
3508fi
3509
3510if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513set dummy ${ac_tool_prefix}cc; ac_word=$2
3514echo "$as_me:$LINENO: checking for $ac_word" >&5
3515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3518else
cfbc9945
SE
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3521else
cfbc9945
SE
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534done
3535
252b5132
RH
3536fi
3537fi
cfbc9945
SE
3538CC=$ac_cv_prog_CC
3539if test -n "$CC"; then
3540 echo "$as_me:$LINENO: result: $CC" >&5
3541echo "${ECHO_T}$CC" >&6
ac48eca1 3542else
cfbc9945
SE
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
ac48eca1 3545fi
ac48eca1 3546
cfbc9945
SE
3547fi
3548if test -z "$ac_cv_prog_CC"; then
3549 ac_ct_CC=$CC
3550 # Extract the first word of "cc", so it can be a program name with args.
3551set dummy cc; ac_word=$2
3552echo "$as_me:$LINENO: checking for $ac_word" >&5
3553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3555 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3556else
cfbc9945
SE
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3559else
cfbc9945
SE
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_ac_ct_CC="cc"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571done
3572done
3573
252b5132 3574fi
cfbc9945
SE
3575fi
3576ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577if test -n "$ac_ct_CC"; then
3578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3579echo "${ECHO_T}$ac_ct_CC" >&6
3580else
3581 echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
252b5132
RH
3583fi
3584
cfbc9945
SE
3585 CC=$ac_ct_CC
3586else
3587 CC="$ac_cv_prog_CC"
3588fi
252b5132 3589
cfbc9945
SE
3590fi
3591if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593set dummy cc; ac_word=$2
3594echo "$as_me:$LINENO: checking for $ac_word" >&5
3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596if test "${ac_cv_prog_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3598else
cfbc9945
SE
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601else
3602 ac_prog_rejected=no
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3613 fi
3614 ac_cv_prog_CC="cc"
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618done
3619done
3620
3621if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3624 shift
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3629 shift
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631 fi
3632fi
3633fi
3634fi
3635CC=$ac_cv_prog_CC
3636if test -n "$CC"; then
3637 echo "$as_me:$LINENO: result: $CC" >&5
3638echo "${ECHO_T}$CC" >&6
3639else
3640 echo "$as_me:$LINENO: result: no" >&5
3641echo "${ECHO_T}no" >&6
252b5132
RH
3642fi
3643
cfbc9945
SE
3644fi
3645if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 for ac_prog in cl
3648 do
3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3651echo "$as_me:$LINENO: checking for $ac_word" >&5
3652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3654 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3655else
cfbc9945
SE
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671done
ac48eca1 3672
cfbc9945
SE
3673fi
3674fi
3675CC=$ac_cv_prog_CC
3676if test -n "$CC"; then
3677 echo "$as_me:$LINENO: result: $CC" >&5
3678echo "${ECHO_T}$CC" >&6
3679else
3680 echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6
3682fi
ac48eca1 3683
cfbc9945
SE
3684 test -n "$CC" && break
3685 done
3686fi
3687if test -z "$CC"; then
3688 ac_ct_CC=$CC
3689 for ac_prog in cl
3690do
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692set dummy $ac_prog; ac_word=$2
3693echo "$as_me:$LINENO: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_ac_ct_CC="$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713done
ac48eca1 3714
cfbc9945
SE
3715fi
3716fi
3717ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718if test -n "$ac_ct_CC"; then
3719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720echo "${ECHO_T}$ac_ct_CC" >&6
3721else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724fi
ac48eca1 3725
cfbc9945
SE
3726 test -n "$ac_ct_CC" && break
3727done
ac48eca1 3728
cfbc9945
SE
3729 CC=$ac_ct_CC
3730fi
55c80943 3731
cfbc9945 3732fi
ac48eca1 3733
ac48eca1 3734
cfbc9945
SE
3735test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3736See \`config.log' for more details." >&5
3737echo "$as_me: error: no acceptable C compiler found in \$PATH
3738See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
ac48eca1 3740
cfbc9945
SE
3741# Provide some information about the compiler.
3742echo "$as_me:$LINENO:" \
3743 "checking for C compiler version" >&5
3744ac_compiler=`set X $ac_compile; echo $2`
3745{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3746 (eval $ac_compiler --version </dev/null >&5) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3750{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3751 (eval $ac_compiler -v </dev/null >&5) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }
3755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3756 (eval $ac_compiler -V </dev/null >&5) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
ac48eca1 3760
cfbc9945
SE
3761echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3762echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3763if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3764 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3765else
cfbc9945
SE
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
ac48eca1 3772
cfbc9945
SE
3773int
3774main ()
3775{
3776#ifndef __GNUC__
3777 choke me
3778#endif
5464f5a1 3779
cfbc9945
SE
3780 ;
3781 return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_compiler_gnu=yes
ac48eca1 3807else
cfbc9945
SE
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811ac_compiler_gnu=no
ac48eca1 3812fi
cfbc9945
SE
3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3815
5464f5a1 3816fi
cfbc9945
SE
3817echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3818echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3819GCC=`test $ac_compiler_gnu = yes && echo yes`
3820ac_test_CFLAGS=${CFLAGS+set}
3821ac_save_CFLAGS=$CFLAGS
3822CFLAGS="-g"
3823echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3824echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3825if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3826 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3827else
cfbc9945
SE
3828 cat >conftest.$ac_ext <<_ACEOF
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext
3844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_prog_cc_g=yes
6be7c12c 3866else
cfbc9945
SE
3867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3869
cfbc9945 3870ac_cv_prog_cc_g=no
ac48eca1 3871fi
cfbc9945 3872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3873fi
cfbc9945
SE
3874echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3875echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3876if test "$ac_test_CFLAGS" = set; then
3877 CFLAGS=$ac_save_CFLAGS
3878elif test $ac_cv_prog_cc_g = yes; then
3879 if test "$GCC" = yes; then
3880 CFLAGS="-g -O2"
3881 else
3882 CFLAGS="-g"
3883 fi
ac48eca1 3884else
cfbc9945
SE
3885 if test "$GCC" = yes; then
3886 CFLAGS="-O2"
3887 else
3888 CFLAGS=
3889 fi
ac48eca1 3890fi
cfbc9945
SE
3891echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3892echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3893if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3894 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3895else
cfbc9945
SE
3896 ac_cv_prog_cc_stdc=no
3897ac_save_CC=$CC
3898cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
3904#include <stdarg.h>
3905#include <stdio.h>
3906#include <sys/types.h>
3907#include <sys/stat.h>
3908/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3909struct buf { int x; };
3910FILE * (*rcsopen) (struct buf *, struct stat *, int);
3911static char *e (p, i)
3912 char **p;
3913 int i;
3914{
3915 return p[i];
3916}
3917static char *f (char * (*g) (char **, int), char **p, ...)
3918{
3919 char *s;
3920 va_list v;
3921 va_start (v,p);
3922 s = g (p, va_arg (v,int));
3923 va_end (v);
3924 return s;
3925}
5464f5a1 3926
cfbc9945
SE
3927/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3928 function prototypes and stuff, but not '\xHH' hex character constants.
3929 These don't provoke an error unfortunately, instead are silently treated
3930 as 'x'. The following induces an error, until -std1 is added to get
3931 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3932 array size at least. It's necessary to write '\x00'==0 to get something
3933 that's true only with -std1. */
3934int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3935
3936int test (int i, double x);
3937struct s1 {int (*f) (int a);};
3938struct s2 {int (*f) (double a);};
3939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3940int argc;
3941char **argv;
3942int
3943main ()
3944{
3945return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3946 ;
3947 return 0;
3948}
3949_ACEOF
3950# Don't try gcc -ansi; that turns off useful extensions and
3951# breaks some systems' header files.
3952# AIX -qlanglvl=ansi
3953# Ultrix and OSF/1 -std1
3954# HP-UX 10.20 and later -Ae
3955# HP-UX older versions -Aa -D_HPUX_SOURCE
3956# SVR4 -Xc -D__EXTENSIONS__
3957for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3958do
3959 CC="$ac_save_CC $ac_arg"
3960 rm -f conftest.$ac_objext
3961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_prog_cc_stdc=$ac_arg
3983break
ac48eca1 3984else
cfbc9945
SE
3985 echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 3987
5464f5a1 3988fi
cfbc9945 3989rm -f conftest.err conftest.$ac_objext
5464f5a1 3990done
cfbc9945
SE
3991rm -f conftest.$ac_ext conftest.$ac_objext
3992CC=$ac_save_CC
5464f5a1 3993
ac48eca1 3994fi
252b5132 3995
cfbc9945
SE
3996case "x$ac_cv_prog_cc_stdc" in
3997 x|xno)
3998 echo "$as_me:$LINENO: result: none needed" >&5
3999echo "${ECHO_T}none needed" >&6 ;;
4000 *)
4001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4002echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4003 CC="$CC $ac_cv_prog_cc_stdc" ;;
4004esac
6be7c12c 4005
cfbc9945
SE
4006# Some people use a C++ compiler to compile C. Since we use `exit',
4007# in C++ we need to declare it. In case someone uses the same compiler
4008# for both compiling C and C++ we need to have the C++ compiler decide
4009# the declaration of exit, since it's the most demanding environment.
4010cat >conftest.$ac_ext <<_ACEOF
4011#ifndef __cplusplus
4012 choke me
4013#endif
4014_ACEOF
4015rm -f conftest.$ac_objext
4016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
5464f5a1 4018 ac_status=$?
cfbc9945
SE
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
5464f5a1 4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
5464f5a1
NN
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
d70c5fc7
NC
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4036 (exit $ac_status); }; }; then
4037 for ac_declaration in \
4038 '' \
4039 'extern "C" void std::exit (int) throw (); using std::exit;' \
4040 'extern "C" void std::exit (int); using std::exit;' \
4041 'extern "C" void exit (int) throw ();' \
4042 'extern "C" void exit (int);' \
4043 'void exit (int);'
4044do
4045 cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h. */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h. */
4051$ac_declaration
4052#include <stdlib.h>
4053int
4054main ()
4055{
4056exit (42);
4057 ;
4058 return 0;
4059}
4060_ACEOF
4061rm -f conftest.$ac_objext
4062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 :
b2ef150d 4084else
cfbc9945
SE
4085 echo "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4087
cfbc9945
SE
4088continue
4089fi
4090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4092/* confdefs.h. */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h. */
cfbc9945 4097$ac_declaration
5464f5a1
NN
4098int
4099main ()
4100{
cfbc9945 4101exit (42);
5464f5a1
NN
4102 ;
4103 return 0;
4104}
4105_ACEOF
cfbc9945
SE
4106rm -f conftest.$ac_objext
4107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
49c96104
SE
4115 { ac_try='test -z "$ac_c_werror_flag"
4116 || test ! -s conftest.err'
5464f5a1
NN
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
cfbc9945 4122 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
cfbc9945 4128 break
b2ef150d 4129else
5464f5a1
NN
4130 echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
b2ef150d 4133fi
cfbc9945
SE
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135done
4136rm -f conftest*
4137if test -n "$ac_declaration"; then
4138 echo '#ifdef __cplusplus' >>confdefs.h
4139 echo $ac_declaration >>confdefs.h
4140 echo '#endif' >>confdefs.h
6ec7057a 4141fi
cfbc9945 4142
92f01d61 4143else
cfbc9945
SE
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4146
cfbc9945
SE
4147fi
4148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4154
4155
cfbc9945
SE
4156cat >>confdefs.h <<\_ACEOF
4157#define _GNU_SOURCE 1
4158_ACEOF
a1ac8190 4159
c428fa83 4160
cfbc9945 4161
d7040cdb
SE
4162
4163
4164macro_version='2.1a'
4165macro_revision='1.2435'
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178ltmain="$ac_aux_dir/ltmain.sh"
4179
4180# Set options
4181
4182enable_dlopen=no
4183
4184
4185enable_win32_dll=no
4186
4187
4188
cfbc9945
SE
4189# Check whether --enable-static or --disable-static was given.
4190if test "${enable_static+set}" = set; then
4191 enableval="$enable_static"
4192 p=${PACKAGE-default}
d7040cdb
SE
4193 case $enableval in
4194 yes) enable_static=yes ;;
4195 no) enable_static=no ;;
4196 *)
4197 enable_static=no
4198 # Look at the argument we got. We use all the common list separators.
4199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4200 for pkg in $enableval; do
4201 IFS="$lt_save_ifs"
4202 if test "X$pkg" = "X$p"; then
4203 enable_static=yes
4204 fi
4205 done
4206 IFS="$lt_save_ifs"
4207 ;;
4208 esac
c428fa83 4209else
cfbc9945
SE
4210 enable_static=yes
4211fi;
d7040cdb
SE
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221# Check whether --with-pic or --without-pic was given.
4222if test "${with_pic+set}" = set; then
4223 withval="$with_pic"
4224 pic_mode="$withval"
4225else
4226 pic_mode=default
4227fi;
4228
4229test -z "$pic_mode" && pic_mode=default
4230
4231
4232
4233
4234
4235
4236
cfbc9945
SE
4237# Check whether --enable-fast-install or --disable-fast-install was given.
4238if test "${enable_fast_install+set}" = set; then
4239 enableval="$enable_fast_install"
4240 p=${PACKAGE-default}
d7040cdb
SE
4241 case $enableval in
4242 yes) enable_fast_install=yes ;;
4243 no) enable_fast_install=no ;;
4244 *)
4245 enable_fast_install=no
4246 # Look at the argument we got. We use all the common list separators.
4247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4248 for pkg in $enableval; do
4249 IFS="$lt_save_ifs"
4250 if test "X$pkg" = "X$p"; then
4251 enable_fast_install=yes
4252 fi
4253 done
4254 IFS="$lt_save_ifs"
4255 ;;
4256 esac
cfbc9945
SE
4257else
4258 enable_fast_install=yes
4259fi;
c428fa83 4260
d7040cdb
SE
4261
4262
4263
4264
4265
4266
4267
4268echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4269echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4270if test "${lt_cv_path_SED+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273 # Loop through the user's path and test for sed and gsed.
4274# Then use that list of sed's as ones to test for truncation.
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for lt_ac_prog in sed gsed; do
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4284 fi
4285 done
4286 done
4287done
4288IFS=$as_save_IFS
4289lt_ac_max=0
4290lt_ac_count=0
4291# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4292# along with /bin/sed that truncates output.
4293for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4294 test ! -f $lt_ac_sed && continue
4295 cat /dev/null > conftest.in
4296 lt_ac_count=0
4297 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4298 # Check for GNU sed and select it if it is found.
4299 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4300 lt_cv_path_SED=$lt_ac_sed
4301 break
4302 fi
4303 while true; do
4304 cat conftest.in conftest.in >conftest.tmp
4305 mv conftest.tmp conftest.in
4306 cp conftest.in conftest.nl
4307 echo >>conftest.nl
4308 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4309 cmp -s conftest.out conftest.nl || break
4310 # 10000 chars as input seems more than enough
4311 test $lt_ac_count -gt 10 && break
4312 lt_ac_count=`expr $lt_ac_count + 1`
4313 if test $lt_ac_count -gt $lt_ac_max; then
4314 lt_ac_max=$lt_ac_count
4315 lt_cv_path_SED=$lt_ac_sed
4316 fi
4317 done
4318done
4319
4320fi
4321
4322SED=$lt_cv_path_SED
4323
4324echo "$as_me:$LINENO: result: $SED" >&5
4325echo "${ECHO_T}$SED" >&6
4326
4327test -z "$SED" && SED=sed
4328Xsed="$SED -e 1s/^X//"
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340echo "$as_me:$LINENO: checking for egrep" >&5
4341echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4342if test "${ac_cv_prog_egrep+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4346 then ac_cv_prog_egrep='grep -E'
4347 else ac_cv_prog_egrep='egrep'
4348 fi
4349fi
4350echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4351echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4352 EGREP=$ac_cv_prog_egrep
4353
4354
4355echo "$as_me:$LINENO: checking for fgrep" >&5
4356echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4357if test "${ac_cv_prog_fgrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4361 then ac_cv_prog_fgrep='grep -F'
4362 else ac_cv_prog_fgrep='fgrep'
4363 fi
4364fi
4365echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4366echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4367 FGREP=$ac_cv_prog_fgrep
4368
4369
4370test -z "$GREP" && GREP=grep
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
cfbc9945
SE
4390# Check whether --with-gnu-ld or --without-gnu-ld was given.
4391if test "${with_gnu_ld+set}" = set; then
4392 withval="$with_gnu_ld"
4393 test "$withval" = no || with_gnu_ld=yes
4394else
4395 with_gnu_ld=no
c428fa83 4396fi;
cfbc9945
SE
4397ac_prog=ld
4398if test "$GCC" = yes; then
4399 # Check if gcc -print-prog-name=ld gives a path.
d7040cdb
SE
4400 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4401echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
cfbc9945
SE
4402 case $host in
4403 *-*-mingw*)
4404 # gcc leaves a trailing carriage return which upsets mingw
4405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4406 *)
4407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4408 esac
4409 case $ac_prog in
4410 # Accept absolute paths.
d7040cdb 4411 [\\/]* | ?:[\\/]*)
cfbc9945 4412 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
4413 # Canonicalize the pathname of ld
4414 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4415 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4416 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
4417 done
4418 test -z "$LD" && LD="$ac_prog"
4419 ;;
5bd8253d 4420 "")
cfbc9945
SE
4421 # If it fails, then pretend we aren't using GCC.
4422 ac_prog=ld
5bd8253d
L
4423 ;;
4424 *)
cfbc9945
SE
4425 # If it is relative, then search for the first ld in PATH.
4426 with_gnu_ld=unknown
5bd8253d 4427 ;;
cfbc9945
SE
4428 esac
4429elif test "$with_gnu_ld" = yes; then
4430 echo "$as_me:$LINENO: checking for GNU ld" >&5
4431echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4432else
4433 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4434echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4435fi
4436if test "${lt_cv_path_LD+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439 if test -z "$LD"; then
d7040cdb 4440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 4441 for ac_dir in $PATH; do
d7040cdb 4442 IFS="$lt_save_ifs"
cfbc9945
SE
4443 test -z "$ac_dir" && ac_dir=.
4444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4445 lt_cv_path_LD="$ac_dir/$ac_prog"
4446 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 4447 # but apparently some variants of GNU ld only accept -v.
cfbc9945 4448 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
4449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4450 *GNU* | *'with BFD'*)
cfbc9945 4451 test "$with_gnu_ld" != no && break
d7040cdb
SE
4452 ;;
4453 *)
cfbc9945 4454 test "$with_gnu_ld" != yes && break
d7040cdb
SE
4455 ;;
4456 esac
cfbc9945
SE
4457 fi
4458 done
d7040cdb 4459 IFS="$lt_save_ifs"
cfbc9945
SE
4460else
4461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 4462fi
1ad12f97
NC
4463fi
4464
cfbc9945
SE
4465LD="$lt_cv_path_LD"
4466if test -n "$LD"; then
4467 echo "$as_me:$LINENO: result: $LD" >&5
4468echo "${ECHO_T}$LD" >&6
4469else
4470 echo "$as_me:$LINENO: result: no" >&5
4471echo "${ECHO_T}no" >&6
4472fi
4473test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4474echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4475 { (exit 1); exit 1; }; }
4476echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4477echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4478if test "${lt_cv_prog_gnu_ld+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
d7040cdb
SE
4481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4482case `$LD -v 2>&1 </dev/null` in
4483*GNU* | *'with BFD'*)
cfbc9945 4484 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
4485 ;;
4486*)
cfbc9945 4487 lt_cv_prog_gnu_ld=no
d7040cdb
SE
4488 ;;
4489esac
49c96104 4490fi
cfbc9945
SE
4491echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4492echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4493with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 4494
9e9b66a9 4495
cfbc9945 4496
d7040cdb
SE
4497
4498
4499
4500
4501
4502
4503
4504echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4505echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
4506if test "${lt_cv_path_NM+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508else
4509 if test -n "$NM"; then
4510 # Let the user override the test.
4511 lt_cv_path_NM="$NM"
4512else
d7040cdb
SE
4513 lt_nm_to_check="${ac_tool_prefix}nm"
4514 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4515 lt_nm_to_check="$lt_nm_to_check nm"
4516 fi
4517 for lt_tmp_nm in $lt_nm_to_check; do
4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4520 IFS="$lt_save_ifs"
4521 test -z "$ac_dir" && ac_dir=.
4522 tmp_nm="$ac_dir/$lt_tmp_nm"
4523 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4524 # Check to see if the nm accepts a BSD-compat flag.
4525 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4526 # nm: unknown option "B" ignored
4527 # Tru64's nm complains that /dev/null is an invalid object file
4528 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4529 */dev/null* | *'Invalid file or object type'*)
4530 lt_cv_path_NM="$tmp_nm -B"
4531 break
4532 ;;
4533 *)
4534 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4535 */dev/null*)
4536 lt_cv_path_NM="$tmp_nm -p"
4537 break
4538 ;;
4539 *)
4540 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4541 continue # so that we can try to find one that supports BSD flags
4542 ;;
4543 esac
4544 ;;
4545 esac
cfbc9945 4546 fi
d7040cdb
SE
4547 done
4548 IFS="$lt_save_ifs"
cfbc9945 4549 done
d7040cdb 4550 : ${lt_cv_path_NM=no}
cfbc9945 4551fi
a2d91340 4552fi
d7040cdb
SE
4553echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4554echo "${ECHO_T}$lt_cv_path_NM" >&6
4555if test "$lt_cv_path_NM" != "no"; then
4556 NM="$lt_cv_path_NM"
cfbc9945 4557else
d7040cdb
SE
4558 # Didn't find any BSD compatible name lister, look for dumpbin.
4559 if test -n "$ac_tool_prefix"; then
4560 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4561 do
4562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4564echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 4567 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4568else
d7040cdb
SE
4569 if test -n "$DUMPBIN"; then
4570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583done
4584done
5464f5a1 4585
d7040cdb
SE
4586fi
4587fi
4588DUMPBIN=$ac_cv_prog_DUMPBIN
4589if test -n "$DUMPBIN"; then
4590 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4591echo "${ECHO_T}$DUMPBIN" >&6
4592else
4593 echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6
4595fi
d5fbea21 4596
d7040cdb
SE
4597 test -n "$DUMPBIN" && break
4598 done
4599fi
4600if test -z "$DUMPBIN"; then
4601 ac_ct_DUMPBIN=$DUMPBIN
4602 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4603do
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605set dummy $ac_prog; ac_word=$2
4606echo "$as_me:$LINENO: checking for $ac_word" >&5
4607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611 if test -n "$ac_ct_DUMPBIN"; then
4612 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
cfbc9945 4624 fi
d7040cdb
SE
4625done
4626done
d5fbea21 4627
d7040cdb
SE
4628fi
4629fi
4630ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4631if test -n "$ac_ct_DUMPBIN"; then
4632 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4633echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4634else
4635 echo "$as_me:$LINENO: result: no" >&5
4636echo "${ECHO_T}no" >&6
4637fi
d5fbea21 4638
d7040cdb
SE
4639 test -n "$ac_ct_DUMPBIN" && break
4640done
4641test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 4642
d7040cdb
SE
4643 DUMPBIN=$ac_ct_DUMPBIN
4644fi
24443139 4645
24443139 4646
d7040cdb
SE
4647 if test "$DUMPBIN" != ":"; then
4648 NM="$DUMPBIN"
cfbc9945 4649 fi
d7040cdb
SE
4650fi
4651test -z "$NM" && NM=nm
a703a6ea 4652
f5385ebf 4653
cfbc9945 4654
24443139
AS
4655
4656
4657
d7040cdb
SE
4658echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4659echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4660if test "${lt_cv_nm_interface+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663 lt_cv_nm_interface="BSD nm"
4664 echo "int some_variable = 0;" > conftest.$ac_ext
4665 (eval echo "\"\$as_me:4665: $ac_compile\"" >&5)
4666 (eval "$ac_compile" 2>conftest.err)
4667 cat conftest.err >&5
4668 (eval echo "\"\$as_me:4668: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4670 cat conftest.err >&5
4671 (eval echo "\"\$as_me:4671: output\"" >&5)
4672 cat conftest.out >&5
4673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4674 lt_cv_nm_interface="MS dumpbin"
4675 fi
4676 rm -f conftest*
cfbc9945 4677fi
d7040cdb
SE
4678echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4679echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 4680
d7040cdb
SE
4681echo "$as_me:$LINENO: checking whether ln -s works" >&5
4682echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4683LN_S=$as_ln_s
4684if test "$LN_S" = "ln -s"; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687else
4688 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4689echo "${ECHO_T}no, using $LN_S" >&6
4690fi
252b5132 4691
cfbc9945
SE
4692# find the maximum length of command line arguments
4693echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4694echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4695if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 i=0
4699 teststring="ABCD"
5464f5a1 4700
cfbc9945
SE
4701 case $build_os in
4702 msdosdjgpp*)
4703 # On DJGPP, this test can blow up pretty badly due to problems in libc
4704 # (any single argument exceeding 2000 bytes causes a buffer overrun
4705 # during glob expansion). Even if it were fixed, the result of this
4706 # check would be larger than it should be.
4707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4708 ;;
5464f5a1 4709
d7040cdb
SE
4710 gnu*)
4711 # Under GNU Hurd, this test is not required because there is
4712 # no limit to the length of command line arguments.
4713 # Libtool will interpret -1 as no limit whatsoever
4714 lt_cv_sys_max_cmd_len=-1;
4715 ;;
4716
cfbc9945
SE
4717 cygwin* | mingw*)
4718 # On Win9x/ME, this test blows up -- it succeeds, but takes
4719 # about 5 minutes as the teststring grows exponentially.
4720 # Worse, since 9x/ME are not pre-emptively multitasking,
4721 # you end up with a "frozen" computer, even though with patience
4722 # the test eventually succeeds (with a max line length of 256k).
4723 # Instead, let's just punt: use the minimum linelength reported by
4724 # all of the supported platforms: 8192 (on NT/2K/XP).
4725 lt_cv_sys_max_cmd_len=8192;
4726 ;;
5464f5a1 4727
cfbc9945
SE
4728 amigaos*)
4729 # On AmigaOS with pdksh, this test takes hours, literally.
4730 # So we just punt and use a minimum line length of 8192.
4731 lt_cv_sys_max_cmd_len=8192;
4732 ;;
5464f5a1 4733
cfbc9945
SE
4734 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4735 # This has been around since 386BSD, at least. Likely further.
4736 if test -x /sbin/sysctl; then
4737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4738 elif test -x /usr/sbin/sysctl; then
4739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4740 else
d7040cdb 4741 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
4742 fi
4743 # And add a safety zone
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746 ;;
d7040cdb
SE
4747
4748 interix*)
4749 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4750 lt_cv_sys_max_cmd_len=196608
4751 ;;
4752
4753 osf*)
4754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4756 # nice to cause kernel panics so lets avoid the loop below.
4757 # First set a reasonable default.
4758 lt_cv_sys_max_cmd_len=16384
4759 #
4760 if test -x /sbin/sysconfig; then
4761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4763 esac
4764 fi
4765 ;;
4766 sco3.2v5*)
4767 lt_cv_sys_max_cmd_len=102400
4768 ;;
4769 sysv5* | sco5v6* | sysv4.2uw2*)
4770 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4771 if test -n "$kargmax"; then
4772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4773 else
4774 lt_cv_sys_max_cmd_len=32768
4775 fi
4776 ;;
4777 *)
4778 # Make teststring a little bigger before we do anything with it.
4779 # a 1K string should be a reasonable start.
4780 for i in 1 2 3 4 5 6 7 8 ; do
4781 teststring=$teststring$teststring
4782 done
4783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4784 # If test is not a shell built-in, we'll probably end up computing a
4785 # maximum length that is only half of the actual maximum length, but
4786 # we can't tell.
4787 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4788 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4789 test $i != 17 # 1/2 MB should be enough
4790 do
4791 i=`expr $i + 1`
4792 teststring=$teststring$teststring
4793 done
4794 # Only check the string length outside the loop.
4795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4796 teststring=
4797 # Add a significant safety factor because C++ compilers can tack on massive
4798 # amounts of additional arguments before passing them to the linker.
4799 # It appears as though 1/2 is a usable value.
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4801 ;;
cfbc9945 4802 esac
5464f5a1 4803
252b5132 4804fi
cfbc9945 4805
d7040cdb 4806if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4807 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4808echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4809else
cfbc9945
SE
4810 echo "$as_me:$LINENO: result: none" >&5
4811echo "${ECHO_T}none" >&6
5464f5a1 4812fi
d7040cdb 4813max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4814
cfbc9945 4815
252b5132 4816
cfbc9945 4817
cfbc9945 4818
d7040cdb
SE
4819
4820
4821: ${CP="cp -f"}
4822: ${MV="mv -f"}
4823: ${RM="rm -f"}
4824
4825echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4826echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4827# Try some XSI features
4828xsi_shell=no
4829( _lt_dummy="a/b/c"
4830 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4831 = c,a/b,, ) >/dev/null 2>&1 \
4832 && xsi_shell=yes
4833echo "$as_me:$LINENO: result: $xsi_shell" >&5
4834echo "${ECHO_T}$xsi_shell" >&6
4835
4836
4837echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4838echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4839lt_shell_append=no
4840( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4841 >/dev/null 2>&1 \
4842 && lt_shell_append=yes
4843echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4844echo "${ECHO_T}$lt_shell_append" >&6
4845
4846
4847if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4848 lt_unset=unset
5464f5a1 4849else
d7040cdb 4850 lt_unset=false
5464f5a1 4851fi
252b5132 4852
d7040cdb
SE
4853
4854
4855
4856
4857# test EBCDIC or ASCII
4858case `echo X|tr X '\101'` in
4859 A) # ASCII based system
4860 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4861 lt_SP2NL='tr \040 \012'
4862 lt_NL2SP='tr \015\012 \040\040'
4863 ;;
4864 *) # EBCDIC based system
4865 lt_SP2NL='tr \100 \n'
4866 lt_NL2SP='tr \r\n \100\100'
4867 ;;
4868esac
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4879echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4880if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882else
d7040cdb
SE
4883 lt_cv_ld_reload_flag='-r'
4884fi
4885echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4886echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4887reload_flag=$lt_cv_ld_reload_flag
4888case $reload_flag in
4889"" | " "*) ;;
4890*) reload_flag=" $reload_flag" ;;
4891esac
4892reload_cmds='$LD$reload_flag -o $output$reload_objs'
4893case $host_os in
4894 darwin*)
4895 if test "$GCC" = yes; then
4896 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4897 else
4898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4899 fi
4900 ;;
4901esac
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4913echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4914if test "${lt_cv_deplibs_check_method+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917 lt_cv_file_magic_cmd='$MAGIC_CMD'
4918lt_cv_file_magic_test_file=
4919lt_cv_deplibs_check_method='unknown'
4920# Need to set the preceding variable on all platforms that support
4921# interlibrary dependencies.
4922# 'none' -- dependencies not supported.
4923# `unknown' -- same as none, but documents that we really don't know.
4924# 'pass_all' -- all dependencies passed with no checks.
4925# 'test_compile' -- check by making test program.
4926# 'file_magic [[regex]]' -- check by looking for files in library path
4927# which responds to the $file_magic_cmd with a given extended regex.
4928# If you have `file' or equivalent on your system and you're not sure
4929# whether `pass_all' will *always* work, you probably want this one.
4930
4931case $host_os in
4932aix4* | aix5*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936beos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940bsdi[45]*)
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4942 lt_cv_file_magic_cmd='/usr/bin/file -L'
4943 lt_cv_file_magic_test_file=/shlib/libc.so
4944 ;;
4945
4946cygwin*)
4947 # func_win32_libid is a shell function defined in ltmain.sh
4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949 lt_cv_file_magic_cmd='func_win32_libid'
4950 ;;
4951
4952mingw* | pw32*)
4953 # Base MSYS/MinGW do not provide the 'file' command needed by
4954 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4955 # unless we find 'file', for example because we are cross-compiling.
4956 if ( file / ) >/dev/null 2>&1; then
4957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958 lt_cv_file_magic_cmd='func_win32_libid'
4959 else
4960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4961 lt_cv_file_magic_cmd='$OBJDUMP -f'
4962 fi
4963 ;;
4964
4965darwin* | rhapsody*)
4966 lt_cv_deplibs_check_method=pass_all
cfbc9945 4967 ;;
d7040cdb
SE
4968
4969freebsd* | dragonfly*)
4970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971 case $host_cpu in
4972 i*86 )
4973 # Not sure whether the presence of OpenBSD here was a mistake.
4974 # Let's accept both of them until this is cleared up.
4975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976 lt_cv_file_magic_cmd=/usr/bin/file
4977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4978 ;;
4979 esac
4980 else
4981 lt_cv_deplibs_check_method=pass_all
4982 fi
4983 ;;
4984
4985gnu*)
4986 lt_cv_deplibs_check_method=pass_all
cfbc9945 4987 ;;
d7040cdb
SE
4988
4989hpux10.20* | hpux11*)
4990 lt_cv_file_magic_cmd=/usr/bin/file
4991 case $host_cpu in
4992 ia64*)
4993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4995 ;;
4996 hppa*64*)
4997 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]'
4998 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4999 ;;
cfbc9945 5000 *)
d7040cdb
SE
5001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5003 ;;
5004 esac
5005 ;;
6be7c12c 5006
d7040cdb
SE
5007interix[3-9]*)
5008 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5010 ;;
cfbc9945 5011
d7040cdb
SE
5012irix5* | irix6* | nonstopux*)
5013 case $LD in
5014 *-32|*"-32 ") libmagic=32-bit;;
5015 *-n32|*"-n32 ") libmagic=N32;;
5016 *-64|*"-64 ") libmagic=64-bit;;
5017 *) libmagic=never-match;;
5018 esac
5019 lt_cv_deplibs_check_method=pass_all
cfbc9945 5020 ;;
cfbc9945 5021
d7040cdb
SE
5022# This must be Linux ELF.
5023linux* | k*bsd*-gnu)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5464f5a1 5026
d7040cdb
SE
5027netbsd*)
5028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5030 else
d7040cdb 5031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5032 fi
d7040cdb
SE
5033 ;;
5034
5035newos6*)
5036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5037 lt_cv_file_magic_cmd=/usr/bin/file
5038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5039 ;;
5040
5041*nto* | *qnx*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
cfbc9945 5044
d7040cdb
SE
5045openbsd*)
5046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5048 else
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5050 fi
5051 ;;
d7040cdb
SE
5052
5053osf3* | osf4* | osf5*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056
5057rdos*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061solaris*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068
5069sysv4 | sysv4.3*)
5070 case $host_vendor in
5071 motorola)
5072 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]'
5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5074 ;;
5075 ncr)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
5078 sequent)
5079 lt_cv_file_magic_cmd='/bin/file'
5080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5081 ;;
5082 sni)
5083 lt_cv_file_magic_cmd='/bin/file'
5084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5085 lt_cv_file_magic_test_file=/lib/libc.so
5086 ;;
5087 siemens)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090 pc)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093 esac
5094 ;;
5095
5096tpf*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
cfbc9945
SE
5099esac
5100
d7040cdb
SE
5101fi
5102echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5103echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5104file_magic_cmd=$lt_cv_file_magic_cmd
5105deplibs_check_method=$lt_cv_deplibs_check_method
5106test -z "$deplibs_check_method" && deplibs_check_method=unknown
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
cfbc9945 5119if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5121set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5122echo "$as_me:$LINENO: checking for $ac_word" >&5
5123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5124if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126else
d7040cdb
SE
5127 if test -n "$AR"; then
5128 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5129else
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5137 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141done
5142done
5143
5144fi
5145fi
d7040cdb
SE
5146AR=$ac_cv_prog_AR
5147if test -n "$AR"; then
5148 echo "$as_me:$LINENO: result: $AR" >&5
5149echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5150else
5151 echo "$as_me:$LINENO: result: no" >&5
5152echo "${ECHO_T}no" >&6
5153fi
5154
5464f5a1 5155fi
d7040cdb
SE
5156if test -z "$ac_cv_prog_AR"; then
5157 ac_ct_AR=$AR
5158 # Extract the first word of "ar", so it can be a program name with args.
5159set dummy ar; ac_word=$2
5464f5a1
NN
5160echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5162if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5164else
d7040cdb
SE
5165 if test -n "$ac_ct_AR"; then
5166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5167else
5464f5a1
NN
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5175 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179done
5180done
5181
d7040cdb 5182 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5183fi
5184fi
d7040cdb
SE
5185ac_ct_AR=$ac_cv_prog_ac_ct_AR
5186if test -n "$ac_ct_AR"; then
5187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5188echo "${ECHO_T}$ac_ct_AR" >&6
5189else
5190 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5191echo "${ECHO_T}no" >&6
5192fi
5193
d7040cdb 5194 AR=$ac_ct_AR
cfbc9945 5195else
d7040cdb 5196 AR="$ac_cv_prog_AR"
5464f5a1 5197fi
cfbc9945 5198
d7040cdb
SE
5199test -z "$AR" && AR=ar
5200test -z "$AR_FLAGS" && AR_FLAGS=cru
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
cfbc9945
SE
5212if test -n "$ac_tool_prefix"; then
5213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5214set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5215echo "$as_me:$LINENO: checking for $ac_word" >&5
5216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5217if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
cfbc9945
SE
5220 if test -n "$STRIP"; then
5221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5222else
5223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224for as_dir in $PATH
5225do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234done
5235done
5236
5237fi
5238fi
cfbc9945
SE
5239STRIP=$ac_cv_prog_STRIP
5240if test -n "$STRIP"; then
5241 echo "$as_me:$LINENO: result: $STRIP" >&5
5242echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5243else
5244 echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246fi
5247
252b5132 5248fi
cfbc9945
SE
5249if test -z "$ac_cv_prog_STRIP"; then
5250 ac_ct_STRIP=$STRIP
5251 # Extract the first word of "strip", so it can be a program name with args.
5252set dummy strip; ac_word=$2
5464f5a1
NN
5253echo "$as_me:$LINENO: checking for $ac_word" >&5
5254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5255if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
cfbc9945
SE
5258 if test -n "$ac_ct_STRIP"; then
5259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5268 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272done
5273done
5274
cfbc9945 5275 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5276fi
5277fi
cfbc9945
SE
5278ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5279if test -n "$ac_ct_STRIP"; then
5280 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5281echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5282else
5283 echo "$as_me:$LINENO: result: no" >&5
5284echo "${ECHO_T}no" >&6
5285fi
5286
cfbc9945
SE
5287 STRIP=$ac_ct_STRIP
5288else
5289 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5290fi
5291
d7040cdb 5292test -z "$STRIP" && STRIP=:
5464f5a1 5293
cfbc9945
SE
5294
5295
cfbc9945 5296
cfbc9945
SE
5297
5298
d7040cdb
SE
5299if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5301set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5302echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304if test "${ac_cv_prog_RANLIB+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5306else
d7040cdb
SE
5307 if test -n "$RANLIB"; then
5308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
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
5317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
cfbc9945 5320 fi
d7040cdb
SE
5321done
5322done
cfbc9945 5323
d7040cdb
SE
5324fi
5325fi
5326RANLIB=$ac_cv_prog_RANLIB
5327if test -n "$RANLIB"; then
5328 echo "$as_me:$LINENO: result: $RANLIB" >&5
5329echo "${ECHO_T}$RANLIB" >&6
5330else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333fi
cfbc9945 5334
d7040cdb
SE
5335fi
5336if test -z "$ac_cv_prog_RANLIB"; then
5337 ac_ct_RANLIB=$RANLIB
5338 # Extract the first word of "ranlib", so it can be a program name with args.
5339set dummy ranlib; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 if test -n "$ac_ct_RANLIB"; then
5346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5347else
5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_RANLIB="ranlib"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
cfbc9945 5358 fi
d7040cdb
SE
5359done
5360done
cfbc9945 5361
d7040cdb
SE
5362 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5363fi
5364fi
5365ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5366if test -n "$ac_ct_RANLIB"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5368echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5369else
d7040cdb
SE
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372fi
5464f5a1 5373
d7040cdb
SE
5374 RANLIB=$ac_ct_RANLIB
5375else
5376 RANLIB="$ac_cv_prog_RANLIB"
5377fi
5464f5a1 5378
d7040cdb 5379test -z "$RANLIB" && RANLIB=:
5464f5a1 5380
5464f5a1 5381
5464f5a1 5382
cfbc9945 5383
cfbc9945 5384
d7040cdb
SE
5385
5386# Determine commands to create old-style static archives.
5387old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5388old_postinstall_cmds='chmod 644 $oldlib'
5389old_postuninstall_cmds=
5390
5391if test -n "$RANLIB"; then
5392 case $host_os in
5393 openbsd*)
5394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5395 ;;
5396 *)
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5398 ;;
5399 esac
5400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 5401fi
cfbc9945
SE
5402
5403
cfbc9945
SE
5404
5405
cfbc9945 5406
cfbc9945 5407
cfbc9945 5408
cfbc9945 5409
cfbc9945
SE
5410
5411
cfbc9945 5412
cfbc9945 5413
cfbc9945
SE
5414
5415
5416
5417
5418
5419
5420
5464f5a1 5421
5464f5a1 5422
cfbc9945
SE
5423
5424
5425
5464f5a1 5426
5464f5a1 5427
cfbc9945
SE
5428
5429
5430
5464f5a1 5431
cfbc9945
SE
5432
5433
5434
5435
d7040cdb
SE
5436# If no C compiler was specified, use CC.
5437LTCC=${LTCC-"$CC"}
cfbc9945 5438
d7040cdb
SE
5439# If no C compiler flags were specified, use CFLAGS.
5440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5441
d7040cdb
SE
5442# Allow CC to be a program name with arguments.
5443compiler=$CC
cfbc9945 5444
cfbc9945 5445
d7040cdb
SE
5446# Check for command to grab the raw symbol name followed by C symbol from nm.
5447echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5448echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5449if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5464f5a1 5452
d7040cdb
SE
5453# These are sane defaults that work on at least a few old systems.
5454# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 5455
d7040cdb
SE
5456# Character class describing NM global symbol codes.
5457symcode='[BCDEGRST]'
5458
5459# Regexp to match symbols that can be accessed directly from C.
5460sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5461
5462# Define system-specific variables.
5463case $host_os in
5464aix*)
5465 symcode='[BCDT]'
5466 ;;
5467cygwin* | mingw* | pw32*)
5468 symcode='[ABCDGISTW]'
5469 ;;
5470hpux*)
5471 if test "$host_cpu" = ia64; then
5472 symcode='[ABCDEGRST]'
5473 fi
5474 ;;
5475irix* | nonstopux*)
5476 symcode='[BCDEGRST]'
5477 ;;
5478osf*)
5479 symcode='[BCDEGQRST]'
5480 ;;
5481solaris*)
5482 symcode='[BDRT]'
5483 ;;
5484sco3.2v5*)
5485 symcode='[DT]'
5486 ;;
5487sysv4.2uw2*)
5488 symcode='[DT]'
5489 ;;
5490sysv5* | sco5v6* | unixware* | OpenUNIX*)
5491 symcode='[ABDT]'
5492 ;;
5493sysv4)
5494 symcode='[DFNSTU]'
5495 ;;
cfbc9945 5496esac
5464f5a1 5497
d7040cdb
SE
5498# If we're using GNU nm, then use its standard symbol codes.
5499case `$NM -V 2>&1` in
5500*GNU* | *'with BFD'*)
5501 symcode='[ABCDGIRSTW]' ;;
5502esac
5464f5a1 5503
d7040cdb
SE
5504# Transform an extracted symbol line into a proper C declaration.
5505# Some systems (esp. on ia64) link data and code symbols differently,
5506# so use this general approach.
5507lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5508
d7040cdb
SE
5509# Transform an extracted symbol line into symbol name and symbol address
5510lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5511
d7040cdb
SE
5512# Handle CRLF in mingw tool chain
5513opt_cr=
5514case $build_os in
5515mingw*)
5516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5517 ;;
5518esac
5464f5a1 5519
d7040cdb
SE
5520# Try without a prefix underscore, then with it.
5521for ac_symprfx in "" "_"; do
5522
5523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5524 symxfrm="\\1 $ac_symprfx\\2 \\2"
5525
5526 # Write the raw and C identifiers.
5527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5528 # Fake it for dumpbin and say T for any non-static function
5529 # and D for any global variable.
5530 # Also find C++ and __fastcall symbols from MSVC++,
5531 # which start with @ or ?.
5532 lt_cv_sys_global_symbol_pipe="$AWK '"\
5533" {last_section=section; section=\$ 3};"\
5534" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5535" \$ 0!~/External *\|/{next};"\
5536" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5537" {if(hide[section]) next};"\
5538" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5539" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5540" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5541" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5542" ' prfx=^$ac_symprfx"
5543 else
5544 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5545 fi
cfbc9945 5546
d7040cdb
SE
5547 # Check to see that the pipe works correctly.
5548 pipe_works=no
cfbc9945 5549
d7040cdb
SE
5550 rm -f conftest*
5551 cat > conftest.$ac_ext <<_LT_EOF
5552#ifdef __cplusplus
5553extern "C" {
5554#endif
5555char nm_test_var;
5556void nm_test_func(void);
5557void nm_test_func(void){}
5558#ifdef __cplusplus
5559}
5560#endif
5561int main(){nm_test_var='a';nm_test_func();return(0);}
5562_LT_EOF
cfbc9945 5563
d7040cdb
SE
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; then
5569 # Now try to grab the symbols.
5570 nlist=conftest.nm
5571 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && test -s "$nlist"; then
5576 # Try sorting and uniquifying the output.
5577 if sort "$nlist" | uniq > "$nlist"T; then
5578 mv -f "$nlist"T "$nlist"
5579 else
5580 rm -f "$nlist"T
5581 fi
cfbc9945 5582
d7040cdb
SE
5583 # Make sure that we snagged all the symbols we need.
5584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5586 cat <<_LT_EOF > conftest.$ac_ext
5587#ifdef __cplusplus
5588extern "C" {
5589#endif
cfbc9945 5590
d7040cdb
SE
5591_LT_EOF
5592 # Now generate the symbol file.
5593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 5594
d7040cdb 5595 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5596
d7040cdb
SE
5597/* The mapping between symbol names and symbols. */
5598const struct {
5599 const char *name;
5600 void *address;
5601}
5602lt__PROGRAM__LTX_preloaded_symbols[] =
5603{
5604 { "@PROGRAM@", (void *) 0 },
5605_LT_EOF
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5607 cat <<\_LT_EOF >> conftest.$ac_ext
5608 {0, (void *) 0}
5609};
5610
5611/* This works around a problem in FreeBSD linker */
5612#ifdef FREEBSD_WORKAROUND
5613static const void *lt_preloaded_setup() {
5614 return lt__PROGRAM__LTX_preloaded_symbols;
5615}
5616#endif
cfbc9945 5617
d7040cdb
SE
5618#ifdef __cplusplus
5619}
5620#endif
5621_LT_EOF
5622 # Now try linking the two files.
5623 mv conftest.$ac_objext conftstm.$ac_objext
5624 lt_save_LIBS="$LIBS"
5625 lt_save_CFLAGS="$CFLAGS"
5626 LIBS="conftstm.$ac_objext"
5627 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5633 pipe_works=yes
5634 fi
5635 LIBS="$lt_save_LIBS"
5636 CFLAGS="$lt_save_CFLAGS"
5637 else
5638 echo "cannot find nm_test_func in $nlist" >&5
5639 fi
5640 else
5641 echo "cannot find nm_test_var in $nlist" >&5
5642 fi
5643 else
5644 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5645 fi
5646 else
5647 echo "$progname: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 fi
5650 rm -f conftest* conftst*
cfbc9945 5651
d7040cdb
SE
5652 # Do not use the global_symbol_pipe unless it works.
5653 if test "$pipe_works" = yes; then
5654 break
5655 else
5656 lt_cv_sys_global_symbol_pipe=
5657 fi
5658done
cfbc9945 5659
252b5132 5660fi
5464f5a1 5661
d7040cdb
SE
5662if test -z "$lt_cv_sys_global_symbol_pipe"; then
5663 lt_cv_sys_global_symbol_to_cdecl=
5664fi
5665if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5666 echo "$as_me:$LINENO: result: failed" >&5
5667echo "${ECHO_T}failed" >&6
b3baf5d0 5668else
d7040cdb
SE
5669 echo "$as_me:$LINENO: result: ok" >&5
5670echo "${ECHO_T}ok" >&6
5671fi
5464f5a1 5672
cfbc9945 5673
b3baf5d0 5674
cfbc9945
SE
5675
5676
5677
5678
5464f5a1 5679
4a2a2686
HPN
5680
5681
5682
cfbc9945
SE
5683
5684
cfbc9945 5685
cfbc9945 5686
9d7cbccd 5687
20e95c23 5688
d7040cdb
SE
5689# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5690if test "${enable_libtool_lock+set}" = set; then
5691 enableval="$enable_libtool_lock"
20e95c23 5692
d7040cdb
SE
5693fi;
5694test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5695
d7040cdb
SE
5696# Some flags need to be propagated to the compiler or linker for good
5697# libtool support.
5698case $host in
5699ia64-*-hpux*)
5700 # Find out which ABI we are using.
5701 echo 'int i;' > conftest.$ac_ext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; then
5707 case `/usr/bin/file conftest.$ac_objext` in
5708 *ELF-32*)
5709 HPUX_IA64_MODE="32"
5710 ;;
5711 *ELF-64*)
5712 HPUX_IA64_MODE="64"
5713 ;;
20e95c23 5714 esac
d7040cdb
SE
5715 fi
5716 rm -rf conftest*
5717 ;;
5718*-*-irix6*)
5719 # Find out which ABI we are using.
5720 echo '#line 5720 "configure"' > conftest.$ac_ext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; then
5726 if test "$lt_cv_prog_gnu_ld" = yes; then
5727 case `/usr/bin/file conftest.$ac_objext` in
5728 *32-bit*)
5729 LD="${LD-ld} -melf32bsmip"
5730 ;;
5731 *N32*)
5732 LD="${LD-ld} -melf32bmipn32"
5733 ;;
5734 *64-bit*)
5735 LD="${LD-ld} -melf64bmip"
5736 ;;
5737 esac
20e95c23 5738 else
d7040cdb
SE
5739 case `/usr/bin/file conftest.$ac_objext` in
5740 *32-bit*)
5741 LD="${LD-ld} -32"
5742 ;;
5743 *N32*)
5744 LD="${LD-ld} -n32"
5745 ;;
5746 *64-bit*)
5747 LD="${LD-ld} -64"
5748 ;;
20e95c23
DJ
5749 esac
5750 fi
d7040cdb
SE
5751 fi
5752 rm -rf conftest*
5753 ;;
20e95c23 5754
d7040cdb
SE
5755x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5756s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5757 # Find out which ABI we are using.
5758 echo 'int i;' > conftest.$ac_ext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; then
5764 case `/usr/bin/file conftest.o` in
5765 *32-bit*)
5766 case $host in
5767 x86_64-*kfreebsd*-gnu)
5768 LD="${LD-ld} -m elf_i386_fbsd"
5769 ;;
5770 x86_64-*linux*)
5771 LD="${LD-ld} -m elf_i386"
5772 ;;
5773 ppc64-*linux*|powerpc64-*linux*)
5774 LD="${LD-ld} -m elf32ppclinux"
5775 ;;
5776 s390x-*linux*)
5777 LD="${LD-ld} -m elf_s390"
5778 ;;
5779 sparc64-*linux*)
5780 LD="${LD-ld} -m elf32_sparc"
5781 ;;
5782 esac
5783 ;;
5784 *64-bit*)
5785 case $host in
5786 x86_64-*kfreebsd*-gnu)
5787 LD="${LD-ld} -m elf_x86_64_fbsd"
5788 ;;
5789 x86_64-*linux*)
5790 LD="${LD-ld} -m elf_x86_64"
5791 ;;
5792 ppc*-*linux*|powerpc*-*linux*)
5793 LD="${LD-ld} -m elf64ppc"
5794 ;;
5795 s390*-*linux*|s390*-*tpf*)
5796 LD="${LD-ld} -m elf64_s390"
5797 ;;
5798 sparc*-*linux*)
5799 LD="${LD-ld} -m elf64_sparc"
5800 ;;
5801 esac
5802 ;;
20e95c23
DJ
5803 esac
5804 fi
d7040cdb
SE
5805 rm -rf conftest*
5806 ;;
20e95c23 5807
d7040cdb
SE
5808*-*-sco3.2v5*)
5809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5810 SAVE_CFLAGS="$CFLAGS"
5811 CFLAGS="$CFLAGS -belf"
5812 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5813echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5814if test "${lt_cv_cc_needs_belf+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5816else
d7040cdb
SE
5817 ac_ext=c
5818ac_cpp='$CPP $CPPFLAGS'
5819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5822
d7040cdb
SE
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
20e95c23 5829
d7040cdb
SE
5830int
5831main ()
5832{
20e95c23 5833
d7040cdb
SE
5834 ;
5835 return 0;
5836}
5837_ACEOF
5838rm -f conftest.$ac_objext conftest$ac_exeext
5839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840 (eval $ac_link) 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_c_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 lt_cv_cc_needs_belf=yes
5861else
5862 echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865lt_cv_cc_needs_belf=no
5866fi
5867rm -f conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext conftest.$ac_ext
5869 ac_ext=c
5870ac_cpp='$CPP $CPPFLAGS'
5871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875fi
5876echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5877echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5880 CFLAGS="$SAVE_CFLAGS"
5881 fi
5882 ;;
5883sparc*-*solaris*)
5884 # Find out which ABI we are using.
5885 echo 'int i;' > conftest.$ac_ext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; then
5891 case `/usr/bin/file conftest.o` in
5892 *64-bit*)
5893 case $lt_cv_prog_gnu_ld in
5894 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5895 *) LD="${LD-ld} -64" ;;
5896 esac
5897 ;;
5898 esac
5899 fi
5900 rm -rf conftest*
5901 ;;
5902esac
5903
5904need_locks="$enable_libtool_lock"
5905
5906ac_ext=c
5907ac_cpp='$CPP $CPPFLAGS'
5908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5912echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5913# On Suns, sometimes $CPP names a directory.
5914if test -n "$CPP" && test -d "$CPP"; then
5915 CPP=
5916fi
5917if test -z "$CPP"; then
5918 if test "${ac_cv_prog_CPP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 # Double quotes because CPP needs to be expanded
5922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5923 do
5924 ac_preproc_ok=false
5925for ac_c_preproc_warn_flag in '' yes
5926do
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
5939#ifdef __STDC__
5940# include <limits.h>
5941#else
5942# include <assert.h>
5943#endif
5944 Syntax error
5945_ACEOF
5946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null; then
5954 if test -s conftest.err; then
5955 ac_cpp_err=$ac_c_preproc_warn_flag
5956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5957 else
5958 ac_cpp_err=
5959 fi
5960else
5961 ac_cpp_err=yes
5962fi
5963if test -z "$ac_cpp_err"; then
5964 :
5965else
5966 echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 # Broken: fails on valid input.
5970continue
5971fi
5972rm -f conftest.err conftest.$ac_ext
5973
5974 # OK, works on sane cases. Now check whether non-existent headers
5975 # can be detected and how.
5976 cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982#include <ac_nonexistent.h>
5983_ACEOF
5984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_c_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5995 else
5996 ac_cpp_err=
5997 fi
5998else
5999 ac_cpp_err=yes
6000fi
6001if test -z "$ac_cpp_err"; then
6002 # Broken: success on invalid input.
6003continue
6004else
6005 echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 # Passes both tests.
6009ac_preproc_ok=:
6010break
6011fi
6012rm -f conftest.err conftest.$ac_ext
6013
6014done
6015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6016rm -f conftest.err conftest.$ac_ext
6017if $ac_preproc_ok; then
6018 break
6019fi
6020
6021 done
6022 ac_cv_prog_CPP=$CPP
6023
6024fi
6025 CPP=$ac_cv_prog_CPP
6026else
6027 ac_cv_prog_CPP=$CPP
6028fi
6029echo "$as_me:$LINENO: result: $CPP" >&5
6030echo "${ECHO_T}$CPP" >&6
6031ac_preproc_ok=false
6032for ac_c_preproc_warn_flag in '' yes
6033do
6034 # Use a header file that comes with gcc, so configuring glibc
6035 # with a fresh cross-compiler works.
6036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 # <limits.h> exists even on freestanding compilers.
6038 # On the NeXT, cc -E runs the code through the compiler's parser,
6039 # not just through cpp. "Syntax error" is here to catch this case.
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
6046#ifdef __STDC__
6047# include <limits.h>
6048#else
6049# include <assert.h>
6050#endif
6051 Syntax error
6052_ACEOF
6053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } >/dev/null; then
6061 if test -s conftest.err; then
6062 ac_cpp_err=$ac_c_preproc_warn_flag
6063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6064 else
6065 ac_cpp_err=
6066 fi
6067else
6068 ac_cpp_err=yes
6069fi
6070if test -z "$ac_cpp_err"; then
6071 :
6072else
6073 echo "$as_me: failed program was:" >&5
6074sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 # Broken: fails on valid input.
6077continue
6078fi
6079rm -f conftest.err conftest.$ac_ext
6080
6081 # OK, works on sane cases. Now check whether non-existent headers
6082 # can be detected and how.
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
6089#include <ac_nonexistent.h>
6090_ACEOF
6091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } >/dev/null; then
6099 if test -s conftest.err; then
6100 ac_cpp_err=$ac_c_preproc_warn_flag
6101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6102 else
6103 ac_cpp_err=
6104 fi
6105else
6106 ac_cpp_err=yes
6107fi
6108if test -z "$ac_cpp_err"; then
6109 # Broken: success on invalid input.
6110continue
6111else
6112 echo "$as_me: failed program was:" >&5
6113sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 # Passes both tests.
6116ac_preproc_ok=:
6117break
6118fi
6119rm -f conftest.err conftest.$ac_ext
6120
6121done
6122# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6123rm -f conftest.err conftest.$ac_ext
6124if $ac_preproc_ok; then
6125 :
6126else
6127 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6128See \`config.log' for more details." >&5
6129echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6130See \`config.log' for more details." >&2;}
6131 { (exit 1); exit 1; }; }
6132fi
6133
6134ac_ext=c
6135ac_cpp='$CPP $CPPFLAGS'
6136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140
6141echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6142echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6143if test "${ac_cv_header_stdc+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146 cat >conftest.$ac_ext <<_ACEOF
6147/* confdefs.h. */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
6151/* end confdefs.h. */
6152#include <stdlib.h>
6153#include <stdarg.h>
6154#include <string.h>
6155#include <float.h>
6156
6157int
6158main ()
6159{
6160
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext
6166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_header_stdc=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192ac_cv_header_stdc=no
6193fi
6194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6195
6196if test $ac_cv_header_stdc = yes; then
6197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6198 cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204#include <string.h>
6205
6206_ACEOF
6207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6208 $EGREP "memchr" >/dev/null 2>&1; then
6209 :
6210else
6211 ac_cv_header_stdc=no
6212fi
6213rm -f conftest*
6214
6215fi
6216
6217if test $ac_cv_header_stdc = yes; then
6218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225#include <stdlib.h>
6226
6227_ACEOF
6228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229 $EGREP "free" >/dev/null 2>&1; then
6230 :
6231else
6232 ac_cv_header_stdc=no
6233fi
6234rm -f conftest*
6235
6236fi
6237
6238if test $ac_cv_header_stdc = yes; then
6239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6240 if test "$cross_compiling" = yes; then
6241 :
6242else
6243 cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h. */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h. */
6249#include <ctype.h>
6250#if ((' ' & 0x0FF) == 0x020)
6251# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6252# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6253#else
6254# define ISLOWER(c) \
6255 (('a' <= (c) && (c) <= 'i') \
6256 || ('j' <= (c) && (c) <= 'r') \
6257 || ('s' <= (c) && (c) <= 'z'))
6258# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6259#endif
6260
6261#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6262int
6263main ()
6264{
6265 int i;
6266 for (i = 0; i < 256; i++)
6267 if (XOR (islower (i), ISLOWER (i))
6268 || toupper (i) != TOUPPER (i))
6269 exit(2);
6270 exit (0);
6271}
6272_ACEOF
6273rm -f conftest$ac_exeext
6274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6275 (eval $ac_link) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 :
6285else
6286 echo "$as_me: program exited with status $ac_status" >&5
6287echo "$as_me: failed program was:" >&5
6288sed 's/^/| /' conftest.$ac_ext >&5
6289
6290( exit $ac_status )
6291ac_cv_header_stdc=no
6292fi
6293rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6294fi
6295fi
6296fi
6297echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6298echo "${ECHO_T}$ac_cv_header_stdc" >&6
6299if test $ac_cv_header_stdc = yes; then
6300
6301cat >>confdefs.h <<\_ACEOF
6302#define STDC_HEADERS 1
6303_ACEOF
6304
6305fi
6306
6307# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6318 inttypes.h stdint.h unistd.h
6319do
6320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321echo "$as_me:$LINENO: checking for $ac_header" >&5
6322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332$ac_includes_default
6333
6334#include <$ac_header>
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 eval "$as_ac_Header=yes"
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363eval "$as_ac_Header=no"
6364fi
6365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6366fi
6367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369if test `eval echo '${'$as_ac_Header'}'` = yes; then
6370 cat >>confdefs.h <<_ACEOF
6371#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372_ACEOF
6373
6374fi
6375
6376done
6377
6378
6379
6380for ac_header in dlfcn.h
6381do
6382as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383echo "$as_me:$LINENO: checking for $ac_header" >&5
6384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6385if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388 cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
6394$ac_includes_default
6395
6396#include <$ac_header>
6397_ACEOF
6398rm -f conftest.$ac_objext
6399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 eval "$as_ac_Header=yes"
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425eval "$as_ac_Header=no"
6426fi
6427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428fi
6429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434_ACEOF
6435
6436fi
6437
6438done
6439
6440
6441
6442# This can be used to rebuild libtool when needed
6443LIBTOOL_DEPS="$ltmain"
6444
6445# Always use our own libtool.
6446LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472test -z "$LN_S" && LN_S="ln -s"
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487if test -n "${ZSH_VERSION+set}" ; then
6488 setopt NO_GLOB_SUBST
6489fi
6490
6491echo "$as_me:$LINENO: checking for objdir" >&5
6492echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6493if test "${lt_cv_objdir+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 rm -f .libs 2>/dev/null
6497mkdir .libs 2>/dev/null
6498if test -d .libs; then
6499 lt_cv_objdir=.libs
6500else
6501 # MS-DOS does not allow filenames that begin with a dot.
6502 lt_cv_objdir=_libs
6503fi
6504rmdir .libs 2>/dev/null
6505fi
6506echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6507echo "${ECHO_T}$lt_cv_objdir" >&6
6508objdir=$lt_cv_objdir
6509
6510
6511
6512
6513
6514cat >>confdefs.h <<_ACEOF
6515#define LT_OBJDIR "$lt_cv_objdir/"
6516_ACEOF
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534case $host_os in
6535aix3*)
6536 # AIX sometimes has problems with the GCC collect2 program. For some
6537 # reason, if we set the COLLECT_NAMES environment variable, the problems
6538 # vanish in a puff of smoke.
6539 if test "X${COLLECT_NAMES+set}" != Xset; then
6540 COLLECT_NAMES=
6541 export COLLECT_NAMES
6542 fi
6543 ;;
6544esac
6545
6546# Sed substitution that helps us do robust quoting. It backslashifies
6547# metacharacters that are still active within double-quoted strings.
6548sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6549
6550# Same as above, but do not quote variable references.
6551double_quote_subst='s/\(["`\\]\)/\\\1/g'
6552
6553# Sed substitution to delay expansion of an escaped shell variable in a
6554# double_quote_subst'ed string.
6555delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6556
6557# Sed substitution to delay expansion of an escaped single quote.
6558delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6559
6560# Sed substitution to avoid accidental globbing in evaled expressions
6561no_glob_subst='s/\*/\\\*/g'
6562
6563# Global variables:
6564ofile=libtool
6565can_build_shared=yes
6566
6567# All known linkers require a `.a' archive for static linking (except MSVC,
6568# which needs '.lib').
6569libext=a
6570
6571with_gnu_ld="$lt_cv_prog_gnu_ld"
6572
6573old_CC="$CC"
6574old_CFLAGS="$CFLAGS"
6575
6576# Set sane defaults for various variables
6577test -z "$CC" && CC=cc
6578test -z "$LTCC" && LTCC=$CC
6579test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6580test -z "$LD" && LD=ld
6581test -z "$ac_objext" && ac_objext=o
6582
6583for cc_temp in $compiler""; do
6584 case $cc_temp in
6585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6587 \-*) ;;
6588 *) break;;
6589 esac
6590done
6591cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6592
6593
6594# Only perform the check for file, if the check method requires it
6595test -z "$MAGIC_CMD" && MAGIC_CMD=file
6596case $deplibs_check_method in
6597file_magic*)
6598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6599 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6600echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6601if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604 case $MAGIC_CMD in
6605[\\/*] | ?:[\\/]*)
6606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6607 ;;
6608*)
6609 lt_save_MAGIC_CMD="$MAGIC_CMD"
6610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6612 for ac_dir in $ac_dummy; do
6613 IFS="$lt_save_ifs"
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f $ac_dir/${ac_tool_prefix}file; then
6616 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6617 if test -n "$file_magic_test_file"; then
6618 case $deplibs_check_method in
6619 "file_magic "*)
6620 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6623 $EGREP "$file_magic_regex" > /dev/null; then
6624 :
6625 else
6626 cat <<_LT_EOF 1>&2
6627
6628*** Warning: the command libtool uses to detect shared libraries,
6629*** $file_magic_cmd, produces output that libtool cannot recognize.
6630*** The result is that libtool may fail to recognize shared libraries
6631*** as such. This will affect the creation of libtool libraries that
6632*** depend on shared libraries, but programs linked with such libtool
6633*** libraries will work regardless of this problem. Nevertheless, you
6634*** may want to report the problem to your system manager and/or to
6635*** bug-libtool@gnu.org
6636
6637_LT_EOF
6638 fi ;;
6639 esac
6640 fi
6641 break
6642 fi
6643 done
6644 IFS="$lt_save_ifs"
6645 MAGIC_CMD="$lt_save_MAGIC_CMD"
6646 ;;
6647esac
6648fi
6649
6650MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651if test -n "$MAGIC_CMD"; then
6652 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6653echo "${ECHO_T}$MAGIC_CMD" >&6
6654else
6655 echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6
6657fi
6658
6659
6660
6661
6662
6663if test -z "$lt_cv_path_MAGIC_CMD"; then
6664 if test -n "$ac_tool_prefix"; then
6665 echo "$as_me:$LINENO: checking for file" >&5
6666echo $ECHO_N "checking for file... $ECHO_C" >&6
6667if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 case $MAGIC_CMD in
6671[\\/*] | ?:[\\/]*)
6672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6673 ;;
6674*)
6675 lt_save_MAGIC_CMD="$MAGIC_CMD"
6676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6678 for ac_dir in $ac_dummy; do
6679 IFS="$lt_save_ifs"
6680 test -z "$ac_dir" && ac_dir=.
6681 if test -f $ac_dir/file; then
6682 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6683 if test -n "$file_magic_test_file"; then
6684 case $deplibs_check_method in
6685 "file_magic "*)
6686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6689 $EGREP "$file_magic_regex" > /dev/null; then
6690 :
6691 else
6692 cat <<_LT_EOF 1>&2
6693
6694*** Warning: the command libtool uses to detect shared libraries,
6695*** $file_magic_cmd, produces output that libtool cannot recognize.
6696*** The result is that libtool may fail to recognize shared libraries
6697*** as such. This will affect the creation of libtool libraries that
6698*** depend on shared libraries, but programs linked with such libtool
6699*** libraries will work regardless of this problem. Nevertheless, you
6700*** may want to report the problem to your system manager and/or to
6701*** bug-libtool@gnu.org
6702
6703_LT_EOF
6704 fi ;;
6705 esac
6706 fi
6707 break
6708 fi
6709 done
6710 IFS="$lt_save_ifs"
6711 MAGIC_CMD="$lt_save_MAGIC_CMD"
6712 ;;
6713esac
6714fi
6715
6716MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6717if test -n "$MAGIC_CMD"; then
6718 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6719echo "${ECHO_T}$MAGIC_CMD" >&6
6720else
6721 echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6
6723fi
6724
6725
6726 else
6727 MAGIC_CMD=:
6728 fi
6729fi
6730
6731 fi
6732 ;;
6733esac
6734
6735# Use C for the default configuration in the libtool script
6736
6737lt_save_CC="$CC"
6738ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
6744
6745# Source file extension for C test sources.
6746ac_ext=c
6747
6748# Object file extension for compiled C test sources.
6749objext=o
6750objext=$objext
6751
6752# Code to be used in simple compile tests
6753lt_simple_compile_test_code="int some_variable = 0;"
6754
6755# Code to be used in simple link tests
6756lt_simple_link_test_code='int main(){return(0);}'
6757
6758
6759
6760
6761
6762
6763
6764# If no C compiler was specified, use CC.
6765LTCC=${LTCC-"$CC"}
6766
6767# If no C compiler flags were specified, use CFLAGS.
6768LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6769
6770# Allow CC to be a program name with arguments.
6771compiler=$CC
6772
6773# Save the default compiler, since it gets overwritten when the other
6774# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6775compiler_DEFAULT=$CC
6776
6777# save warnings/boilerplate of simple test code
6778ac_outfile=conftest.$ac_objext
6779echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6780eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6781_lt_compiler_boilerplate=`cat conftest.err`
6782$RM conftest*
6783
6784ac_outfile=conftest.$ac_objext
6785echo "$lt_simple_link_test_code" >conftest.$ac_ext
6786eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787_lt_linker_boilerplate=`cat conftest.err`
6788$RM conftest*
6789
6790
6791## CAVEAT EMPTOR:
6792## There is no encapsulation within the following macros, do not change
6793## the running order or otherwise move them around unless you know exactly
6794## what you are doing...
6795if test -n "$compiler"; then
6796
6797lt_prog_compiler_no_builtin_flag=
6798
6799if test "$GCC" = yes; then
6800 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6801
6802 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6803echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6804if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807 lt_cv_prog_compiler_rtti_exceptions=no
6808 ac_outfile=conftest.$ac_objext
6809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6810 lt_compiler_flag="-fno-rtti -fno-exceptions"
6811 # Insert the option either (1) after the last *FLAGS variable, or
6812 # (2) before a word containing "conftest.", or (3) at the end.
6813 # Note that $ac_compile itself does not contain backslashes and begins
6814 # with a dollar sign (not a hyphen), so the echo should work correctly.
6815 # The option is referenced via a variable to avoid confusing sed.
6816 lt_compile=`echo "$ac_compile" | $SED \
6817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6819 -e 's:$: $lt_compiler_flag:'`
6820 (eval echo "\"\$as_me:6820: $lt_compile\"" >&5)
6821 (eval "$lt_compile" 2>conftest.err)
6822 ac_status=$?
6823 cat conftest.err >&5
6824 echo "$as_me:6824: \$? = $ac_status" >&5
6825 if (exit $ac_status) && test -s "$ac_outfile"; then
6826 # The compiler can only warn and ignore the option if not recognized
6827 # So say no if there are warnings other than the usual output.
6828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6831 lt_cv_prog_compiler_rtti_exceptions=yes
6832 fi
6833 fi
6834 $RM conftest*
6835
6836fi
6837echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6838echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6839
6840if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6842else
6843 :
6844fi
6845
6846fi
6847
6848
6849
6850
6851
6852
6853 lt_prog_compiler_wl=
6854lt_prog_compiler_pic=
6855lt_prog_compiler_static=
6856
6857echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6858echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6859
6860 if test "$GCC" = yes; then
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_static='-static'
6863
6864 case $host_os in
6865 aix*)
6866 # All AIX code is PIC.
6867 if test "$host_cpu" = ia64; then
6868 # AIX 5 now supports IA64 processor
6869 lt_prog_compiler_static='-Bstatic'
6870 fi
6871 ;;
6872
6873 amigaos*)
6874 if test "$host_cpu" = m68k; then
6875 # FIXME: we need at least 68020 code to build shared libraries, but
6876 # adding the `-m68020' flag to GCC prevents building anything better,
6877 # like `-m68040'.
6878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6879 fi
6880 ;;
6881
6882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6883 # PIC is the default for these OSes.
6884 ;;
6885
6886 mingw* | cygwin* | pw32* | os2*)
6887 # This hack is so that the source file can tell whether it is being
6888 # built for inclusion in a dll (and should export symbols for example).
6889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6890 # (--disable-auto-import) libraries
6891 lt_prog_compiler_pic='-DDLL_EXPORT'
6892 ;;
6893
6894 darwin* | rhapsody*)
6895 # PIC is the default on this platform
6896 # Common symbols not allowed in MH_DYLIB files
6897 lt_prog_compiler_pic='-fno-common'
6898 ;;
6899
6900 hpux*)
6901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6902 # not for PA HP-UX.
6903 case $host_cpu in
6904 hppa*64*|ia64*)
6905 # +Z the default
6906 ;;
6907 *)
6908 lt_prog_compiler_pic='-fPIC'
6909 ;;
6910 esac
6911 ;;
6912
6913 interix[3-9]*)
6914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6915 # Instead, we relocate shared libraries at runtime.
6916 ;;
6917
6918 msdosdjgpp*)
6919 # Just because we use GCC doesn't mean we suddenly get shared libraries
6920 # on systems that don't support them.
6921 lt_prog_compiler_can_build_shared=no
6922 enable_shared=no
6923 ;;
6924
6925 *nto* | *qnx*)
6926 # QNX uses GNU C++, but need to define -shared option too, otherwise
6927 # it will coredump.
6928 lt_prog_compiler_pic='-fPIC -shared'
6929 ;;
6930
6931 sysv4*MP*)
6932 if test -d /usr/nec; then
6933 lt_prog_compiler_pic=-Kconform_pic
6934 fi
6935 ;;
6936
6937 *)
6938 lt_prog_compiler_pic='-fPIC'
6939 ;;
6940 esac
6941 else
6942 # PORTME Check for flag to pass linker flags through the system compiler.
6943 case $host_os in
6944 aix*)
6945 lt_prog_compiler_wl='-Wl,'
6946 if test "$host_cpu" = ia64; then
6947 # AIX 5 now supports IA64 processor
6948 lt_prog_compiler_static='-Bstatic'
6949 else
6950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6951 fi
6952 ;;
6953 darwin*)
6954 # PIC is the default on this platform
6955 # Common symbols not allowed in MH_DYLIB files
6956 case $cc_basename in
6957 xlc*)
6958 lt_prog_compiler_pic='-qnocommon'
6959 lt_prog_compiler_wl='-Wl,'
6960 ;;
6961 esac
6962 ;;
6963
6964 mingw* | cygwin* | pw32* | os2*)
6965 # This hack is so that the source file can tell whether it is being
6966 # built for inclusion in a dll (and should export symbols for example).
6967 lt_prog_compiler_pic='-DDLL_EXPORT'
6968 ;;
6969
6970 hpux9* | hpux10* | hpux11*)
6971 lt_prog_compiler_wl='-Wl,'
6972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6973 # not for PA HP-UX.
6974 case $host_cpu in
6975 hppa*64*|ia64*)
6976 # +Z the default
6977 ;;
6978 *)
6979 lt_prog_compiler_pic='+Z'
6980 ;;
6981 esac
6982 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6983 lt_prog_compiler_static='${wl}-a ${wl}archive'
6984 ;;
6985
6986 irix5* | irix6* | nonstopux*)
6987 lt_prog_compiler_wl='-Wl,'
6988 # PIC (with -KPIC) is the default.
6989 lt_prog_compiler_static='-non_shared'
6990 ;;
6991
6992 linux* | k*bsd*-gnu)
6993 case $cc_basename in
6994 icc* | ecc*)
6995 lt_prog_compiler_wl='-Wl,'
6996 lt_prog_compiler_pic='-KPIC'
6997 lt_prog_compiler_static='-static'
6998 ;;
6999 pgcc* | pgf77* | pgf90* | pgf95*)
7000 # Portland Group compilers (*not* the Pentium gcc compiler,
7001 # which looks to be a dead project)
7002 lt_prog_compiler_wl='-Wl,'
7003 lt_prog_compiler_pic='-fpic'
7004 lt_prog_compiler_static='-Bstatic'
7005 ;;
7006 ccc*)
7007 lt_prog_compiler_wl='-Wl,'
7008 # All Alpha code is PIC.
7009 lt_prog_compiler_static='-non_shared'
7010 ;;
7011 *)
7012 case `$CC -V 2>&1 | sed 5q` in
7013 *Sun\ C*)
7014 # Sun C 5.9
7015 lt_prog_compiler_pic='-KPIC'
7016 lt_prog_compiler_static='-Bstatic'
7017 lt_prog_compiler_wl='-Wl,'
7018 ;;
7019 *Sun\ F*)
7020 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7021 lt_prog_compiler_pic='-KPIC'
7022 lt_prog_compiler_static='-Bstatic'
7023 lt_prog_compiler_wl=''
7024 ;;
7025 esac
7026 ;;
7027 esac
7028 ;;
7029
7030 newsos6)
7031 lt_prog_compiler_pic='-KPIC'
7032 lt_prog_compiler_static='-Bstatic'
7033 ;;
7034
7035 *nto* | *qnx*)
7036 # QNX uses GNU C++, but need to define -shared option too, otherwise
7037 # it will coredump.
7038 lt_prog_compiler_pic='-fPIC -shared'
7039 ;;
7040
7041 osf3* | osf4* | osf5*)
7042 lt_prog_compiler_wl='-Wl,'
7043 # All OSF/1 code is PIC.
7044 lt_prog_compiler_static='-non_shared'
7045 ;;
7046
7047 rdos*)
7048 lt_prog_compiler_static='-non_shared'
7049 ;;
7050
7051 solaris*)
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 case $cc_basename in
7055 f77* | f90* | f95*)
7056 lt_prog_compiler_wl='-Qoption ld ';;
7057 *)
7058 lt_prog_compiler_wl='-Wl,';;
7059 esac
7060 ;;
7061
7062 sunos4*)
7063 lt_prog_compiler_wl='-Qoption ld '
7064 lt_prog_compiler_pic='-PIC'
7065 lt_prog_compiler_static='-Bstatic'
7066 ;;
7067
7068 sysv4 | sysv4.2uw2* | sysv4.3*)
7069 lt_prog_compiler_wl='-Wl,'
7070 lt_prog_compiler_pic='-KPIC'
7071 lt_prog_compiler_static='-Bstatic'
7072 ;;
7073
7074 sysv4*MP*)
7075 if test -d /usr/nec ;then
7076 lt_prog_compiler_pic='-Kconform_pic'
7077 lt_prog_compiler_static='-Bstatic'
7078 fi
7079 ;;
7080
7081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7082 lt_prog_compiler_wl='-Wl,'
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7085 ;;
7086
7087 unicos*)
7088 lt_prog_compiler_wl='-Wl,'
7089 lt_prog_compiler_can_build_shared=no
7090 ;;
7091
7092 uts4*)
7093 lt_prog_compiler_pic='-pic'
7094 lt_prog_compiler_static='-Bstatic'
7095 ;;
7096
7097 *)
7098 lt_prog_compiler_can_build_shared=no
7099 ;;
7100 esac
7101 fi
7102
7103case $host_os in
7104 # For platforms which do not support PIC, -DPIC is meaningless:
7105 *djgpp*)
7106 lt_prog_compiler_pic=
7107 ;;
7108 *)
7109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7110 ;;
7111esac
7112echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7113echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7114
7115
7116
7117
7118
7119
7120#
7121# Check to make sure the PIC flag actually works.
7122#
7123if test -n "$lt_prog_compiler_pic"; then
7124 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7125echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7126if test "${lt_prog_compiler_pic_works+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 lt_prog_compiler_pic_works=no
7130 ac_outfile=conftest.$ac_objext
7131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7133 # Insert the option either (1) after the last *FLAGS variable, or
7134 # (2) before a word containing "conftest.", or (3) at the end.
7135 # Note that $ac_compile itself does not contain backslashes and begins
7136 # with a dollar sign (not a hyphen), so the echo should work correctly.
7137 # The option is referenced via a variable to avoid confusing sed.
7138 lt_compile=`echo "$ac_compile" | $SED \
7139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141 -e 's:$: $lt_compiler_flag:'`
7142 (eval echo "\"\$as_me:7142: $lt_compile\"" >&5)
7143 (eval "$lt_compile" 2>conftest.err)
7144 ac_status=$?
7145 cat conftest.err >&5
7146 echo "$as_me:7146: \$? = $ac_status" >&5
7147 if (exit $ac_status) && test -s "$ac_outfile"; then
7148 # The compiler can only warn and ignore the option if not recognized
7149 # So say no if there are warnings other than the usual output.
7150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7153 lt_prog_compiler_pic_works=yes
7154 fi
7155 fi
7156 $RM conftest*
7157
7158fi
7159echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7160echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7161
7162if test x"$lt_prog_compiler_pic_works" = xyes; then
7163 case $lt_prog_compiler_pic in
7164 "" | " "*) ;;
7165 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7166 esac
7167else
7168 lt_prog_compiler_pic=
7169 lt_prog_compiler_can_build_shared=no
7170fi
7171
7172fi
7173
7174
7175
7176
7177
7178
7179#
7180# Check to make sure the static flag actually works.
7181#
7182wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7183echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7184echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7185if test "${lt_prog_compiler_static_works+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 lt_prog_compiler_static_works=no
7189 save_LDFLAGS="$LDFLAGS"
7190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7193 # The linker can only warn and ignore the option if not recognized
7194 # So say no if there are warnings
7195 if test -s conftest.err; then
7196 # Append any errors to the config.log.
7197 cat conftest.err 1>&5
7198 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7200 if diff conftest.exp conftest.er2 >/dev/null; then
7201 lt_prog_compiler_static_works=yes
7202 fi
7203 else
7204 lt_prog_compiler_static_works=yes
7205 fi
7206 fi
7207 $RM conftest*
7208 LDFLAGS="$save_LDFLAGS"
7209
7210fi
7211echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7212echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7213
7214if test x"$lt_prog_compiler_static_works" = xyes; then
7215 :
7216else
7217 lt_prog_compiler_static=
7218fi
7219
7220
7221
7222
7223
7224
7225
7226 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7227echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7228if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 lt_cv_prog_compiler_c_o=no
7232 $RM -r conftest 2>/dev/null
7233 mkdir conftest
7234 cd conftest
7235 mkdir out
7236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7237
7238 lt_compiler_flag="-o out/conftest2.$ac_objext"
7239 # Insert the option either (1) after the last *FLAGS variable, or
7240 # (2) before a word containing "conftest.", or (3) at the end.
7241 # Note that $ac_compile itself does not contain backslashes and begins
7242 # with a dollar sign (not a hyphen), so the echo should work correctly.
7243 lt_compile=`echo "$ac_compile" | $SED \
7244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7246 -e 's:$: $lt_compiler_flag:'`
7247 (eval echo "\"\$as_me:7247: $lt_compile\"" >&5)
7248 (eval "$lt_compile" 2>out/conftest.err)
7249 ac_status=$?
7250 cat out/conftest.err >&5
7251 echo "$as_me:7251: \$? = $ac_status" >&5
7252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7253 then
7254 # The compiler can only warn and ignore the option if not recognized
7255 # So say no if there are warnings
7256 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7259 lt_cv_prog_compiler_c_o=yes
7260 fi
7261 fi
7262 chmod u+w . 2>&5
7263 $RM conftest*
7264 # SGI C++ compiler will create directory out/ii_files/ for
7265 # template instantiation
7266 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7267 $RM out/* && rmdir out
7268 cd ..
7269 $RM -r conftest
7270 $RM conftest*
7271
7272fi
7273echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7274echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7275
7276
7277
7278
7279
7280
7281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7282echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7283if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285else
7286 lt_cv_prog_compiler_c_o=no
7287 $RM -r conftest 2>/dev/null
7288 mkdir conftest
7289 cd conftest
7290 mkdir out
7291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7292
7293 lt_compiler_flag="-o out/conftest2.$ac_objext"
7294 # Insert the option either (1) after the last *FLAGS variable, or
7295 # (2) before a word containing "conftest.", or (3) at the end.
7296 # Note that $ac_compile itself does not contain backslashes and begins
7297 # with a dollar sign (not a hyphen), so the echo should work correctly.
7298 lt_compile=`echo "$ac_compile" | $SED \
7299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7301 -e 's:$: $lt_compiler_flag:'`
7302 (eval echo "\"\$as_me:7302: $lt_compile\"" >&5)
7303 (eval "$lt_compile" 2>out/conftest.err)
7304 ac_status=$?
7305 cat out/conftest.err >&5
7306 echo "$as_me:7306: \$? = $ac_status" >&5
7307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7308 then
7309 # The compiler can only warn and ignore the option if not recognized
7310 # So say no if there are warnings
7311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7314 lt_cv_prog_compiler_c_o=yes
7315 fi
7316 fi
7317 chmod u+w . 2>&5
7318 $RM conftest*
7319 # SGI C++ compiler will create directory out/ii_files/ for
7320 # template instantiation
7321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7322 $RM out/* && rmdir out
7323 cd ..
7324 $RM -r conftest
7325 $RM conftest*
7326
7327fi
7328echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7329echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7330
7331
7332
7333
7334hard_links="nottested"
7335if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7336 # do not overwrite the value of need_locks provided by the user
7337 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7338echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7339 hard_links=yes
7340 $RM conftest*
7341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7342 touch conftest.a
7343 ln conftest.a conftest.b 2>&5 || hard_links=no
7344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7345 echo "$as_me:$LINENO: result: $hard_links" >&5
7346echo "${ECHO_T}$hard_links" >&6
7347 if test "$hard_links" = no; then
7348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7349echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7350 need_locks=warn
7351 fi
7352else
7353 need_locks=no
7354fi
7355
7356
7357
7358
7359
7360
7361 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7362echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7363
7364 runpath_var=
7365 allow_undefined_flag=
7366 always_export_symbols=no
7367 archive_cmds=
7368 archive_expsym_cmds=
7369 compiler_needs_object=no
7370 enable_shared_with_static_runtimes=no
7371 export_dynamic_flag_spec=
7372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7373 hardcode_automatic=no
7374 hardcode_direct=no
7375 hardcode_direct_absolute=no
7376 hardcode_libdir_flag_spec=
7377 hardcode_libdir_flag_spec_ld=
7378 hardcode_libdir_separator=
7379 hardcode_minus_L=no
7380 hardcode_shlibpath_var=unsupported
7381 inherit_rpath=no
7382 link_all_deplibs=unknown
7383 module_cmds=
7384 module_expsym_cmds=
7385 old_archive_from_new_cmds=
7386 old_archive_from_expsyms_cmds=
7387 thread_safe_flag_spec=
7388 whole_archive_flag_spec=
7389 # include_expsyms should be a list of space-separated symbols to be *always*
7390 # included in the symbol list
7391 include_expsyms=
7392 # exclude_expsyms can be an extended regexp of symbols to exclude
7393 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7394 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7395 # as well as any symbol that contains `d'.
7396 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7398 # platforms (ab)use it in PIC code, but their linkers get confused if
7399 # the symbol is explicitly referenced. Since portable code cannot
7400 # rely on this symbol name, it's probably fine to never include it in
7401 # preloaded symbol tables.
7402 extract_expsyms_cmds=
7403
7404 case $host_os in
7405 cygwin* | mingw* | pw32*)
7406 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7407 # When not using gcc, we currently assume that we are using
7408 # Microsoft Visual C++.
7409 if test "$GCC" != yes; then
7410 with_gnu_ld=no
7411 fi
7412 ;;
7413 interix*)
7414 # we just hope/assume this is gcc and not c89 (= MSVC++)
7415 with_gnu_ld=yes
7416 ;;
7417 openbsd*)
7418 with_gnu_ld=no
7419 ;;
7420 esac
7421
7422 ld_shlibs=yes
7423 if test "$with_gnu_ld" = yes; then
7424 # If archive_cmds runs LD, not CC, wlarc should be empty
7425 wlarc='${wl}'
7426
7427 # Set some defaults for GNU ld with shared library support. These
7428 # are reset later if shared libraries are not supported. Putting them
7429 # here allows them to be overridden if necessary.
7430 runpath_var=LD_RUN_PATH
7431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7432 export_dynamic_flag_spec='${wl}--export-dynamic'
7433 # ancient GNU ld didn't support --whole-archive et. al.
7434 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7435 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7436 else
7437 whole_archive_flag_spec=
7438 fi
7439 supports_anon_versioning=no
7440 case `$LD -v 2>&1` in
7441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7444 *\ 2.11.*) ;; # other 2.11 versions
7445 *) supports_anon_versioning=yes ;;
7446 esac
7447
7448 # See if GNU ld supports shared libraries.
7449 case $host_os in
7450 aix3* | aix4* | aix5*)
7451 # On AIX/PPC, the GNU linker is very broken
7452 if test "$host_cpu" != ia64; then
7453 ld_shlibs=no
7454 cat <<_LT_EOF 1>&2
7455
7456*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7457*** to be unable to reliably create shared libraries on AIX.
7458*** Therefore, libtool is disabling shared libraries support. If you
7459*** really care for shared libraries, you may want to modify your PATH
7460*** so that a non-GNU linker is found, and then restart.
7461
7462_LT_EOF
7463 fi
7464 ;;
7465
7466 amigaos*)
7467 if test "$host_cpu" = m68k; then
7468 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)'
7469 hardcode_libdir_flag_spec='-L$libdir'
7470 hardcode_minus_L=yes
7471 fi
7472
7473 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7474 # that the semantics of dynamic libraries on AmigaOS, at least up
7475 # to version 4, is to share data among multiple programs linked
7476 # with the same dynamic library. Since this doesn't match the
7477 # behavior of shared libraries on other platforms, we can't use
7478 # them.
7479 ld_shlibs=no
7480 ;;
7481
7482 beos*)
7483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7484 allow_undefined_flag=unsupported
7485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7486 # support --undefined. This deserves some investigation. FIXME
7487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 else
7489 ld_shlibs=no
7490 fi
7491 ;;
7492
7493 cygwin* | mingw* | pw32*)
7494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7495 # as there is no search path for DLLs.
7496 hardcode_libdir_flag_spec='-L$libdir'
7497 allow_undefined_flag=unsupported
7498 always_export_symbols=no
7499 enable_shared_with_static_runtimes=yes
7500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7501
7502 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7504 # If the export-symbols file already is a .def file (1st line
7505 # is EXPORTS), use it as is; otherwise, prepend...
7506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7507 cp $export_symbols $output_objdir/$soname.def;
7508 else
7509 echo EXPORTS > $output_objdir/$soname.def;
7510 cat $export_symbols >> $output_objdir/$soname.def;
7511 fi~
7512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7513 else
7514 ld_shlibs=no
7515 fi
7516 ;;
7517
7518 interix[3-9]*)
7519 hardcode_direct=no
7520 hardcode_shlibpath_var=no
7521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522 export_dynamic_flag_spec='${wl}-E'
7523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7524 # Instead, shared libraries are loaded at an image base (0x10000000 by
7525 # default) and relocated if they conflict, which is a slow very memory
7526 # consuming and fragmenting process. To avoid this, we pick a random,
7527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7530 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'
7531 ;;
7532
7533 gnu* | linux* | tpf* | k*bsd*-gnu)
7534 tmp_diet=no
7535 if test "$host_os" = linux-dietlibc; then
7536 case $cc_basename in
7537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7538 esac
7539 fi
7540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7541 && test "$tmp_diet" = no
7542 then
7543 tmp_addflag=
7544 case $cc_basename,$host_cpu in
7545 pgcc*) # Portland Group C compiler
7546 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'
7547 tmp_addflag=' $pic_flag'
7548 ;;
7549 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7550 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'
7551 tmp_addflag=' $pic_flag -Mnomain' ;;
7552 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7553 tmp_addflag=' -i_dynamic' ;;
7554 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7555 tmp_addflag=' -i_dynamic -nofor_main' ;;
7556 ifc* | ifort*) # Intel Fortran compiler
7557 tmp_addflag=' -nofor_main' ;;
7558 esac
7559 case `$CC -V 2>&1 | sed 5q` in
7560 *Sun\ C*) # Sun C 5.9
7561 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'
7562 compiler_needs_object=yes
7563 tmp_sharedflag='-G' ;;
7564 *Sun\ F*) # Sun Fortran 8.3
7565 tmp_sharedflag='-G' ;;
7566 *)
7567 tmp_sharedflag='-shared' ;;
7568 esac
7569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7570
7571 if test "x$supports_anon_versioning" = xyes; then
7572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7574 echo "local: *; };" >> $output_objdir/$libname.ver~
7575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7576 fi
7577 else
7578 ld_shlibs=no
7579 fi
7580 ;;
7581
7582 netbsd*)
7583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7585 wlarc=
7586 else
7587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7589 fi
7590 ;;
7591
7592 solaris*)
7593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7594 ld_shlibs=no
7595 cat <<_LT_EOF 1>&2
7596
7597*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7598*** create shared libraries on Solaris systems. Therefore, libtool
7599*** is disabling shared libraries support. We urge you to upgrade GNU
7600*** binutils to release 2.9.1 or newer. Another option is to modify
7601*** your PATH or compiler configuration so that the native linker is
7602*** used, and then restart.
7603
7604_LT_EOF
7605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7608 else
7609 ld_shlibs=no
7610 fi
7611 ;;
7612
7613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7614 case `$LD -v 2>&1` in
7615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7616 ld_shlibs=no
7617 cat <<_LT_EOF 1>&2
7618
7619*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7620*** reliably create shared libraries on SCO systems. Therefore, libtool
7621*** is disabling shared libraries support. We urge you to upgrade GNU
7622*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7623*** your PATH or compiler configuration so that the native linker is
7624*** used, and then restart.
7625
7626_LT_EOF
7627 ;;
7628 *)
7629 # For security reasons, it is highly recommended that you always
7630 # use absolute paths for naming shared libraries, and exclude the
7631 # DT_RUNPATH tag from executables and libraries. But doing so
7632 # requires that you compile everything twice, which is a pain.
7633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7637 else
7638 ld_shlibs=no
7639 fi
7640 ;;
7641 esac
7642 ;;
7643
7644 sunos4*)
7645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7646 wlarc=
7647 hardcode_direct=yes
7648 hardcode_shlibpath_var=no
7649 ;;
7650
7651 *)
7652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7655 else
7656 ld_shlibs=no
7657 fi
7658 ;;
7659 esac
7660
7661 if test "$ld_shlibs" = no; then
7662 runpath_var=
7663 hardcode_libdir_flag_spec=
7664 export_dynamic_flag_spec=
7665 whole_archive_flag_spec=
7666 fi
7667 else
7668 # PORTME fill in a description of your system's linker (not GNU ld)
7669 case $host_os in
7670 aix3*)
7671 allow_undefined_flag=unsupported
7672 always_export_symbols=yes
7673 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'
7674 # Note: this linker hardcodes the directories in LIBPATH if there
7675 # are no directories specified by -L.
7676 hardcode_minus_L=yes
7677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7678 # Neither direct hardcoding nor static linking is supported with a
7679 # broken collect2.
7680 hardcode_direct=unsupported
7681 fi
7682 ;;
7683
7684 aix4* | aix5*)
7685 if test "$host_cpu" = ia64; then
7686 # On IA64, the linker does run time linking by default, so we don't
7687 # have to do anything special.
7688 aix_use_runtimelinking=no
7689 exp_sym_flag='-Bexport'
7690 no_entry_flag=""
7691 else
7692 # If we're using GNU nm, then we don't want the "-C" option.
7693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7695 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'
7696 else
7697 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'
7698 fi
7699 aix_use_runtimelinking=no
7700
7701 # Test if we are trying to use run time linking or normal
7702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7703 # need to do runtime linking.
7704 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7705 for ld_flag in $LDFLAGS; do
7706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7707 aix_use_runtimelinking=yes
7708 break
7709 fi
7710 done
7711 ;;
7712 esac
7713
7714 exp_sym_flag='-bexport'
7715 no_entry_flag='-bnoentry'
7716 fi
7717
7718 # When large executables or shared objects are built, AIX ld can
7719 # have problems creating the table of contents. If linking a library
7720 # or program results in "error TOC overflow" add -mminimal-toc to
7721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7723
7724 archive_cmds=''
7725 hardcode_direct=yes
7726 hardcode_direct_absolute=yes
7727 hardcode_libdir_separator=':'
7728 link_all_deplibs=yes
7729 file_list_spec='${wl}-f,'
7730
7731 if test "$GCC" = yes; then
7732 case $host_os in aix4.[012]|aix4.[012].*)
7733 # We only want to do this on AIX 4.2 and lower, the check
7734 # below for broken collect2 doesn't work under 4.3+
7735 collect2name=`${CC} -print-prog-name=collect2`
7736 if test -f "$collect2name" &&
7737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7738 then
7739 # We have reworked collect2
7740 :
7741 else
7742 # We have old collect2
7743 hardcode_direct=unsupported
7744 # It fails to find uninstalled libraries when the uninstalled
7745 # path is not listed in the libpath. Setting hardcode_minus_L
7746 # to unsupported forces relinking
7747 hardcode_minus_L=yes
7748 hardcode_libdir_flag_spec='-L$libdir'
7749 hardcode_libdir_separator=
7750 fi
7751 ;;
7752 esac
7753 shared_flag='-shared'
7754 if test "$aix_use_runtimelinking" = yes; then
7755 shared_flag="$shared_flag "'${wl}-G'
7756 fi
7757 else
7758 # not using gcc
7759 if test "$host_cpu" = ia64; then
7760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7761 # chokes on -Wl,-G. The following line is correct:
7762 shared_flag='-G'
7763 else
7764 if test "$aix_use_runtimelinking" = yes; then
7765 shared_flag='${wl}-G'
7766 else
7767 shared_flag='${wl}-bM:SRE'
7768 fi
7769 fi
7770 fi
7771
7772 # It seems that -bexpall does not export symbols beginning with
7773 # underscore (_), so it is better to generate a list of symbols to export.
7774 always_export_symbols=yes
7775 if test "$aix_use_runtimelinking" = yes; then
7776 # Warning - without using the other runtime loading flags (-brtl),
7777 # -berok will link without error, but may produce a broken library.
7778 allow_undefined_flag='-berok'
7779 # Determine the default libpath from the value encoded in an
7780 # empty executable.
7781 cat >conftest.$ac_ext <<_ACEOF
7782/* confdefs.h. */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
7786/* end confdefs.h. */
7787
7788int
7789main ()
7790{
7791
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796rm -f conftest.$ac_objext conftest$ac_exeext
7797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag"
7806 || test ! -s conftest.err'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818
7819lt_aix_libpath_sed='
7820 /Import File Strings/,/^$/ {
7821 /^0/ {
7822 s/^0 *\(.*\)$/\1/
7823 p
7824 }
7825 }'
7826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7827# Check for a 64-bit object if we didn't find anything.
7828if test -z "$aix_libpath"; then
7829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7830fi
7831else
7832 echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835fi
7836rm -f conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7839
7840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7841 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"
7842 else
7843 if test "$host_cpu" = ia64; then
7844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7845 allow_undefined_flag="-z nodefs"
7846 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"
7847 else
7848 # Determine the default libpath from the value encoded in an
7849 # empty executable.
7850 cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h. */
7856
7857int
7858main ()
7859{
7860
7861 ;
7862 return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext conftest$ac_exeext
7866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887
7888lt_aix_libpath_sed='
7889 /Import File Strings/,/^$/ {
7890 /^0/ {
7891 s/^0 *\(.*\)$/\1/
7892 p
7893 }
7894 }'
7895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7896# Check for a 64-bit object if we didn't find anything.
7897if test -z "$aix_libpath"; then
7898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7899fi
7900else
7901 echo "$as_me: failed program was:" >&5
7902sed 's/^/| /' conftest.$ac_ext >&5
7903
7904fi
7905rm -f conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7908
7909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7910 # Warning - without using the other run time loading flags,
7911 # -berok will link without error, but may produce a broken library.
7912 no_undefined_flag=' ${wl}-bernotok'
7913 allow_undefined_flag=' ${wl}-berok'
7914 # Exported symbols can be pulled into shared objects from archives
7915 whole_archive_flag_spec='$convenience'
7916 archive_cmds_need_lc=yes
7917 # This is similar to how AIX traditionally builds its shared libraries.
7918 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'
7919 fi
7920 fi
7921 ;;
7922
7923 amigaos*)
7924 if test "$host_cpu" = m68k; then
7925 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)'
7926 hardcode_libdir_flag_spec='-L$libdir'
7927 hardcode_minus_L=yes
7928 fi
7929 # see comment about different semantics on the GNU ld section
7930 ld_shlibs=no
7931 ;;
7932
7933 bsdi[45]*)
7934 export_dynamic_flag_spec=-rdynamic
7935 ;;
7936
7937 cygwin* | mingw* | pw32*)
7938 # When not using gcc, we currently assume that we are using
7939 # Microsoft Visual C++.
7940 # hardcode_libdir_flag_spec is actually meaningless, as there is
7941 # no search path for DLLs.
7942 hardcode_libdir_flag_spec=' '
7943 allow_undefined_flag=unsupported
7944 # Tell ltmain to make .lib files, not .a files.
7945 libext=lib
7946 # Tell ltmain to make .dll files, not .so files.
7947 shrext_cmds=".dll"
7948 # FIXME: Setting linknames here is a bad hack.
7949 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7950 # The linker will automatically build a .lib file if we build a DLL.
7951 old_archive_from_new_cmds='true'
7952 # FIXME: Should let the user specify the lib program.
7953 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7954 fix_srcfile_path='`cygpath -w "$srcfile"`'
7955 enable_shared_with_static_runtimes=yes
7956 ;;
7957
7958 darwin* | rhapsody*)
7959 case $host_os in
7960 rhapsody* | darwin1.[012])
7961 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7962 ;;
7963 *) # Darwin 1.3 on
7964 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7965 10.[012])
7966 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7967 ;;
7968 10.*)
7969 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7970 ;;
7971 esac
7972 ;;
7973 esac
7974 archive_cmds_need_lc=no
7975 hardcode_direct=no
7976 hardcode_automatic=yes
7977 hardcode_shlibpath_var=unsupported
7978 whole_archive_flag_spec=''
7979 link_all_deplibs=yes
7980 if test "$GCC" = yes ; then
7981 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 lt_cv_apple_cc_single_mod=no
7985 if test -z "${LT_MULTI_MODULE}"; then
7986 # By default we will add the -single_module flag. You can override
7987 # by either setting the environment variable LT_MULTI_MODULE
7988 # non-empty at configure time, or by adding -multi-module to the
7989 # link flags.
7990 echo "int foo(void){return 1;}" > conftest.c
7991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7992 -dynamiclib ${wl}-single_module conftest.c
7993 if test -f libconftest.dylib; then
7994 lt_cv_apple_cc_single_mod=yes
7995 rm libconftest.dylib
7996 fi
7997 rm conftest.$ac_ext
7998 fi
7999fi
8000
8001 output_verbose_link_cmd=echo
8002 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8003 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8004 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}'
8005 else
8006 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8007 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}'
8008 fi
8009 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8010 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}'
8011 else
8012 case $cc_basename in
8013 xlc*)
8014 output_verbose_link_cmd=echo
8015 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8016 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8018 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}'
8019 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}'
8020 ;;
8021 *)
8022 ld_shlibs=no
8023 ;;
8024 esac
8025 fi
8026 ;;
8027
8028 dgux*)
8029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 hardcode_libdir_flag_spec='-L$libdir'
8031 hardcode_shlibpath_var=no
8032 ;;
8033
8034 freebsd1*)
8035 ld_shlibs=no
8036 ;;
8037
8038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8039 # support. Future versions do this automatically, but an explicit c++rt0.o
8040 # does not break anything, and helps significantly (at the cost of a little
8041 # extra space).
8042 freebsd2.2*)
8043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8044 hardcode_libdir_flag_spec='-R$libdir'
8045 hardcode_direct=yes
8046 hardcode_shlibpath_var=no
8047 ;;
8048
8049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8050 freebsd2*)
8051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8052 hardcode_direct=yes
8053 hardcode_minus_L=yes
8054 hardcode_shlibpath_var=no
8055 ;;
8056
8057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8058 freebsd* | dragonfly*)
8059 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8060 hardcode_libdir_flag_spec='-R$libdir'
8061 hardcode_direct=yes
8062 hardcode_shlibpath_var=no
8063 ;;
8064
8065 hpux9*)
8066 if test "$GCC" = yes; then
8067 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'
8068 else
8069 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'
8070 fi
8071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8072 hardcode_libdir_separator=:
8073 hardcode_direct=yes
8074
8075 # hardcode_minus_L: Not really in the search PATH,
8076 # but as the default location of the library.
8077 hardcode_minus_L=yes
8078 export_dynamic_flag_spec='${wl}-E'
8079 ;;
8080
8081 hpux10*)
8082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8084 else
8085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8086 fi
8087 if test "$with_gnu_ld" = no; then
8088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8089 hardcode_libdir_flag_spec_ld='+b $libdir'
8090 hardcode_libdir_separator=:
8091 hardcode_direct=yes
8092 hardcode_direct_absolute=yes
8093 export_dynamic_flag_spec='${wl}-E'
8094 # hardcode_minus_L: Not really in the search PATH,
8095 # but as the default location of the library.
8096 hardcode_minus_L=yes
8097 fi
8098 ;;
8099
8100 hpux11*)
8101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8102 case $host_cpu in
8103 hppa*64*)
8104 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8105 ;;
8106 ia64*)
8107 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8108 ;;
8109 *)
8110 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8111 ;;
8112 esac
8113 else
8114 case $host_cpu in
8115 hppa*64*)
8116 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 ;;
8118 ia64*)
8119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8120 ;;
8121 *)
8122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8123 ;;
8124 esac
8125 fi
8126 if test "$with_gnu_ld" = no; then
8127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8128 hardcode_libdir_separator=:
8129
8130 case $host_cpu in
8131 hppa*64*|ia64*)
8132 hardcode_direct=no
8133 hardcode_shlibpath_var=no
8134 ;;
8135 *)
8136 hardcode_direct=yes
8137 hardcode_direct_absolute=yes
8138 export_dynamic_flag_spec='${wl}-E'
8139
8140 # hardcode_minus_L: Not really in the search PATH,
8141 # but as the default location of the library.
8142 hardcode_minus_L=yes
8143 ;;
8144 esac
8145 fi
8146 ;;
8147
8148 irix5* | irix6* | nonstopux*)
8149 if test "$GCC" = yes; then
8150 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'
8151 # Try to use the -exported_symbol ld option, if it does not
8152 # work, assume that -exports_file does not work either and
8153 # implicitly export all symbols.
8154 save_LDFLAGS="$LDFLAGS"
8155 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8156 cat >conftest.$ac_ext <<_ACEOF
8157int foo(void) {}
8158_ACEOF
8159rm -f conftest.$ac_objext conftest$ac_exeext
8160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161 (eval $ac_link) 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag"
8169 || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 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'
8182
8183else
8184 echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187fi
8188rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 LDFLAGS="$save_LDFLAGS"
8191 else
8192 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'
8193 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'
8194 fi
8195 archive_cmds_need_lc='no'
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator=:
8198 inherit_rpath=yes
8199 link_all_deplibs=yes
8200 ;;
8201
8202 netbsd*)
8203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8205 else
8206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8207 fi
8208 hardcode_libdir_flag_spec='-R$libdir'
8209 hardcode_direct=yes
8210 hardcode_shlibpath_var=no
8211 ;;
8212
8213 newsos6)
8214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_direct=yes
8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8217 hardcode_libdir_separator=:
8218 hardcode_shlibpath_var=no
8219 ;;
8220
8221 *nto* | *qnx*)
8222 ;;
8223
8224 openbsd*)
8225 hardcode_direct=yes
8226 hardcode_shlibpath_var=no
8227 hardcode_direct_absolute=yes
8228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 export_dynamic_flag_spec='${wl}-E'
8233 else
8234 case $host_os in
8235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 ;;
8239 *)
8240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 ;;
8243 esac
8244 fi
8245 ;;
8246
8247 os2*)
8248 hardcode_libdir_flag_spec='-L$libdir'
8249 hardcode_minus_L=yes
8250 allow_undefined_flag=unsupported
8251 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'
8252 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8253 ;;
8254
8255 osf3*)
8256 if test "$GCC" = yes; then
8257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8258 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'
8259 else
8260 allow_undefined_flag=' -expect_unresolved \*'
8261 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'
8262 fi
8263 archive_cmds_need_lc='no'
8264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8265 hardcode_libdir_separator=:
8266 ;;
8267
8268 osf4* | osf5*) # as osf3* with the addition of -msym flag
8269 if test "$GCC" = yes; then
8270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8271 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'
8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273 else
8274 allow_undefined_flag=' -expect_unresolved \*'
8275 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'
8276 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~
8277 $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'
8278
8279 # Both c and cxx compiler support -rpath directly
8280 hardcode_libdir_flag_spec='-rpath $libdir'
8281 fi
8282 archive_cmds_need_lc='no'
8283 hardcode_libdir_separator=:
8284 ;;
8285
8286 solaris*)
8287 no_undefined_flag=' -z defs'
8288 if test "$GCC" = yes; then
8289 wlarc='${wl}'
8290 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8292 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8293 else
8294 case `$CC -V 2>&1` in
8295 *"Compilers 5.0"*)
8296 wlarc=''
8297 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8299 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8300 ;;
8301 *)
8302 wlarc='${wl}'
8303 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8305 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8306 ;;
8307 esac
8308 fi
8309 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_shlibpath_var=no
8311 case $host_os in
8312 solaris2.[0-5] | solaris2.[0-5].*) ;;
8313 *)
8314 # The compiler driver will combine and reorder linker options,
8315 # but understands `-z linker_flag'. GCC discards it without `$wl',
8316 # but is careful enough not to reorder.
8317 # Supported since Solaris 2.6 (maybe 2.5.1?)
8318 if test "$GCC" = yes; then
8319 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8320 else
8321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8322 fi
8323 ;;
8324 esac
8325 link_all_deplibs=yes
8326 ;;
8327
8328 sunos4*)
8329 if test "x$host_vendor" = xsequent; then
8330 # Use $CC to link under sequent, because it throws in some extra .o
8331 # files that make .init and .fini sections work.
8332 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8333 else
8334 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8335 fi
8336 hardcode_libdir_flag_spec='-L$libdir'
8337 hardcode_direct=yes
8338 hardcode_minus_L=yes
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 sysv4)
8343 case $host_vendor in
8344 sni)
8345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346 hardcode_direct=yes # is this really true???
8347 ;;
8348 siemens)
8349 ## LD is ld it makes a PLAMLIB
8350 ## CC just makes a GrossModule.
8351 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8352 reload_cmds='$CC -r -o $output$reload_objs'
8353 hardcode_direct=no
8354 ;;
8355 motorola)
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8358 ;;
8359 esac
8360 runpath_var='LD_RUN_PATH'
8361 hardcode_shlibpath_var=no
8362 ;;
8363
8364 sysv4.3*)
8365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 hardcode_shlibpath_var=no
8367 export_dynamic_flag_spec='-Bexport'
8368 ;;
8369
8370 sysv4*MP*)
8371 if test -d /usr/nec; then
8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_shlibpath_var=no
8374 runpath_var=LD_RUN_PATH
8375 hardcode_runpath_var=yes
8376 ld_shlibs=yes
8377 fi
8378 ;;
8379
8380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8381 no_undefined_flag='${wl}-z,text'
8382 archive_cmds_need_lc=no
8383 hardcode_shlibpath_var=no
8384 runpath_var='LD_RUN_PATH'
8385
8386 if test "$GCC" = yes; then
8387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8389 else
8390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 fi
8393 ;;
8394
8395 sysv5* | sco3.2v5* | sco5v6*)
8396 # Note: We can NOT use -z defs as we might desire, because we do not
8397 # link with -lc, and that would cause any symbols used from libc to
8398 # always be unresolved, which means just about no library would
8399 # ever link correctly. If we're not using GNU ld we use -z text
8400 # though, which does catch some bad symbols but isn't as heavy-handed
8401 # as -z defs.
8402 no_undefined_flag='${wl}-z,text'
8403 allow_undefined_flag='${wl}-z,nodefs'
8404 archive_cmds_need_lc=no
8405 hardcode_shlibpath_var=no
8406 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8407 hardcode_libdir_separator=':'
8408 link_all_deplibs=yes
8409 export_dynamic_flag_spec='${wl}-Bexport'
8410 runpath_var='LD_RUN_PATH'
8411
8412 if test "$GCC" = yes; then
8413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 else
8416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418 fi
8419 ;;
8420
8421 uts4*)
8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_libdir_flag_spec='-L$libdir'
8424 hardcode_shlibpath_var=no
8425 ;;
8426
8427 *)
8428 ld_shlibs=no
8429 ;;
8430 esac
8431
8432 if test x$host_vendor = xsni; then
8433 case $host in
8434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8435 export_dynamic_flag_spec='${wl}-Blargedynsym'
8436 ;;
8437 esac
8438 fi
8439 fi
8440
8441echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8442echo "${ECHO_T}$ld_shlibs" >&6
8443test "$ld_shlibs" = no && can_build_shared=no
8444
8445with_gnu_ld=$with_gnu_ld
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461#
8462# Do we need to explicitly link libc?
8463#
8464case "x$archive_cmds_need_lc" in
8465x|xyes)
8466 # Assume -lc should be added
8467 archive_cmds_need_lc=yes
8468
8469 if test "$enable_shared" = yes && test "$GCC" = yes; then
8470 case $archive_cmds in
8471 *'~'*)
8472 # FIXME: we may have to deal with multi-command sequences.
8473 ;;
8474 '$CC '*)
8475 # Test whether the compiler implicitly links with -lc since on some
8476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8477 # to ld, don't add -lc before -lgcc.
8478 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8479echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8480 $RM conftest*
8481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8482
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } 2>conftest.err; then
8488 soname=conftest
8489 lib=conftest
8490 libobjs=conftest.$ac_objext
8491 deplibs=
8492 wl=$lt_prog_compiler_wl
8493 pic_flag=$lt_prog_compiler_pic
8494 compiler_flags=-v
8495 linker_flags=-v
8496 verstring=
8497 output_objdir=.
8498 libname=conftest
8499 lt_save_allow_undefined_flag=$allow_undefined_flag
8500 allow_undefined_flag=
8501 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8502 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }
8506 then
8507 archive_cmds_need_lc=no
8508 else
8509 archive_cmds_need_lc=yes
8510 fi
8511 allow_undefined_flag=$lt_save_allow_undefined_flag
8512 else
8513 cat conftest.err 1>&5
8514 fi
8515 $RM conftest*
8516 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8517echo "${ECHO_T}$archive_cmds_need_lc" >&6
8518 ;;
8519 esac
8520 fi
8521 ;;
8522esac
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8681echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8682withGCC=$GCC
8683if test "$withGCC" = yes; then
8684 case $host_os in
8685 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8686 *) lt_awk_arg="/^libraries:/" ;;
8687 esac
8688 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8689 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8690 # if the path contains ";" then we assume it to be the separator
8691 # otherwise default to the standard path separator (i.e. ":") - it is
8692 # assumed that no part of a normal pathname contains ";" but that should
8693 # okay in the real world where ";" in dirpaths is itself problematic.
8694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8695 else
8696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8697 fi
8698 # Ok, now we have the path, separated by spaces, we can step through it
8699 # and add multilib dir if necessary.
8700 lt_tmp_lt_search_path_spec=
8701 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8702 for lt_sys_path in $lt_search_path_spec; do
8703 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8705 else
8706 test -d "$lt_sys_path" && \
8707 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8708 fi
8709 done
8710 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8711BEGIN {RS=" "; FS="/|\n";} {
8712 lt_foo="";
8713 lt_count=0;
8714 for (lt_i = NF; lt_i > 0; lt_i--) {
8715 if ($lt_i != "" && $lt_i != ".") {
8716 if ($lt_i == "..") {
8717 lt_count++;
8718 } else {
8719 if (lt_count == 0) {
8720 lt_foo="/" $lt_i lt_foo;
8721 } else {
8722 lt_count--;
8723 }
8724 }
8725 }
8726 }
8727 if (lt_foo != "") { lt_freq[lt_foo]++; }
8728 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8729}'`
8730 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8731else
8732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8733fi
8734library_names_spec=
8735libname_spec='lib$name'
8736soname_spec=
8737shrext_cmds=".so"
8738postinstall_cmds=
8739postuninstall_cmds=
8740finish_cmds=
8741finish_eval=
8742shlibpath_var=
8743shlibpath_overrides_runpath=unknown
8744version_type=none
8745dynamic_linker="$host_os ld.so"
8746sys_lib_dlsearch_path_spec="/lib /usr/lib"
8747need_lib_prefix=unknown
8748hardcode_into_libs=no
8749
8750# when you set need_version to no, make sure it does not cause -set_version
8751# flags to be left without arguments
8752need_version=unknown
8753
8754case $host_os in
8755aix3*)
8756 version_type=linux
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8758 shlibpath_var=LIBPATH
8759
8760 # AIX 3 has no versioning support, so we append a major version to the name.
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 ;;
8763
8764aix4* | aix5*)
8765 version_type=linux
8766 need_lib_prefix=no
8767 need_version=no
8768 hardcode_into_libs=yes
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 supports IA64
8771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 else
8774 # With GCC up to 2.95.x, collect2 would create an import file
8775 # for dependence libraries. The import file would start with
8776 # the line `#! .'. This would cause the generated library to
8777 # depend on `.', always an invalid library. This was fixed in
8778 # development snapshots of GCC prior to 3.0.
8779 case $host_os in
8780 aix4 | aix4.[01] | aix4.[01].*)
8781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8782 echo ' yes '
8783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8784 :
8785 else
8786 can_build_shared=no
8787 fi
8788 ;;
8789 esac
8790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8791 # soname into executable. Probably we can add versioning support to
8792 # collect2, so additional links can be useful in future.
8793 if test "$aix_use_runtimelinking" = yes; then
8794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8795 # instead of lib<name>.a to let people know that these are not
8796 # typical AIX shared libraries.
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798 else
8799 # We preserve .a as extension for shared libraries through AIX4.2
8800 # and later when we are not doing run time linking.
8801 library_names_spec='${libname}${release}.a $libname.a'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 fi
8804 shlibpath_var=LIBPATH
8805 fi
8806 ;;
8807
8808amigaos*)
8809 if test "$host_cpu" = m68k; then
8810 library_names_spec='$libname.ixlibrary $libname.a'
8811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8812 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'
8813 else
8814 dynamic_linker=no
8815 fi
8816 ;;
8817
8818beos*)
8819 library_names_spec='${libname}${shared_ext}'
8820 dynamic_linker="$host_os ld.so"
8821 shlibpath_var=LIBRARY_PATH
8822 ;;
8823
8824bsdi[45]*)
8825 version_type=linux
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833 # the default ld.so.conf also contains /usr/contrib/lib and
8834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835 # libtool to hard-code these into programs
8836 ;;
8837
8838cygwin* | mingw* | pw32*)
8839 version_type=windows
8840 shrext_cmds=".dll"
8841 need_version=no
8842 need_lib_prefix=no
8843
8844 case $withGCC,$host_os in
8845 yes,cygwin* | yes,mingw* | yes,pw32*)
8846 library_names_spec='$libname.dll.a'
8847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848 postinstall_cmds='base_file=`basename \${file}`~
8849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8850 dldir=$destdir/`dirname \$dlpath`~
8851 test -d \$dldir || mkdir -p \$dldir~
8852 $install_prog $dir/$dlname \$dldir/$dlname~
8853 chmod a+x \$dldir/$dlname~
8854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8856 fi'
8857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8858 dlpath=$dir/\$dldll~
8859 $RM \$dlpath'
8860 shlibpath_overrides_runpath=yes
8861
8862 case $host_os in
8863 cygwin*)
8864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8866 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8867 ;;
8868 mingw*)
8869 # MinGW DLLs use traditional 'lib' prefix
8870 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8872 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8873 # It is most probably a Windows format PATH printed by
8874 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8875 # path with ; separators, and with drive letters. We can handle the
8876 # drive letters (cygwin fileutils understands them), so leave them,
8877 # especially as we might pass files found there to a mingw objdump,
8878 # which wouldn't understand a cygwinified path. Ahh.
8879 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8880 else
8881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8882 fi
8883 ;;
8884 pw32*)
8885 # pw32 DLLs use 'pw' prefix rather than 'lib'
8886 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8887 ;;
8888 esac
8889 ;;
8890
8891 *)
8892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8893 ;;
8894 esac
8895 dynamic_linker='Win32 ld.exe'
8896 # FIXME: first we should search . and the directory the executable is in
8897 shlibpath_var=PATH
8898 ;;
8899
8900darwin* | rhapsody*)
8901 dynamic_linker="$host_os dyld"
8902 version_type=darwin
8903 need_lib_prefix=no
8904 need_version=no
8905 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8906 soname_spec='${libname}${release}${major}$shared_ext'
8907 shlibpath_overrides_runpath=yes
8908 shlibpath_var=DYLD_LIBRARY_PATH
8909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8910
8911 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8913 ;;
8914
8915dgux*)
8916 version_type=linux
8917 need_lib_prefix=no
8918 need_version=no
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 ;;
8923
8924freebsd1*)
8925 dynamic_linker=no
8926 ;;
8927
8928freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8933 else
8934 case $host_os in
8935 freebsd[123]*) objformat=aout ;;
8936 *) objformat=elf ;;
8937 esac
8938 fi
8939 version_type=freebsd-$objformat
8940 case $version_type in
8941 freebsd-elf*)
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943 need_version=no
8944 need_lib_prefix=no
8945 ;;
8946 freebsd-*)
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948 need_version=yes
8949 ;;
8950 esac
8951 shlibpath_var=LD_LIBRARY_PATH
8952 case $host_os in
8953 freebsd2*)
8954 shlibpath_overrides_runpath=yes
8955 ;;
8956 freebsd3.[01]* | freebsdelf3.[01]*)
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8959 ;;
8960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 ;;
8965 *) # from 4.6 on, and DragonFly
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8968 ;;
8969 esac
8970 ;;
8971
8972gnu*)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8980 ;;
8981
8982hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8985 version_type=sunos
8986 need_lib_prefix=no
8987 need_version=no
8988 case $host_cpu in
8989 ia64*)
8990 shrext_cmds='.so'
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999 else
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001 fi
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 ;;
9004 hppa*64*)
9005 shrext_cmds='.sl'
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014 ;;
9015 *)
9016 shrext_cmds='.sl'
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 ;;
9023 esac
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9026 ;;
9027
9028interix[3-9]*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9038 ;;
9039
9040irix5* | irix6* | nonstopux*)
9041 case $host_os in
9042 nonstopux*) version_type=nonstopux ;;
9043 *)
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9045 version_type=linux
9046 else
9047 version_type=irix
9048 fi ;;
9049 esac
9050 need_lib_prefix=no
9051 need_version=no
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054 case $host_os in
9055 irix5* | nonstopux*)
9056 libsuff= shlibsuff=
9057 ;;
9058 *)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9067 esac
9068 ;;
9069 esac
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9075 ;;
9076
9077# No shared lib support for Linux oldld, aout, or coff.
9078linux*oldld* | linux*aout* | linux*coff*)
9079 dynamic_linker=no
9080 ;;
9081
9082# This must be Linux ELF.
9083linux* | k*bsd*-gnu)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # Some binutils ld are patched to set DT_RUNPATH
9093 save_LDFLAGS=$LDFLAGS
9094 save_libdir=$libdir
9095 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9096 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9097 cat >conftest.$ac_ext <<_ACEOF
9098/* confdefs.h. */
9099_ACEOF
9100cat confdefs.h >>conftest.$ac_ext
9101cat >>conftest.$ac_ext <<_ACEOF
9102/* end confdefs.h. */
9103
9104int
9105main ()
9106{
9107
9108 ;
9109 return 0;
9110}
9111_ACEOF
9112rm -f conftest.$ac_objext conftest$ac_exeext
9113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9135 shlibpath_overrides_runpath=yes
9136fi
9137
9138else
9139 echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142fi
9143rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LDFLAGS=$save_LDFLAGS
9146 libdir=$save_libdir
9147
9148 # This implies no fast_install, which is unacceptable.
9149 # Some rework will be needed to allow for fast_install
9150 # before this can be enabled.
9151 hardcode_into_libs=yes
9152
9153 # Append ld.so.conf contents to the search path
9154 if test -f /etc/ld.so.conf; then
9155 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' ' '`
9156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9157 fi
9158
9159 # We used to test for /lib/ld.so.1 and disable shared libraries on
9160 # powerpc, because MkLinux only supported shared libraries with the
9161 # GNU dynamic linker. Since this was broken with cross compilers,
9162 # most powerpc-linux boxes support dynamic linking these days and
9163 # people can always --disable-shared, the test was removed, and we
9164 # assume the GNU/Linux dynamic linker is in use.
9165 dynamic_linker='GNU/Linux ld.so'
9166 ;;
9167
9168netbsd*)
9169 version_type=sunos
9170 need_lib_prefix=no
9171 need_version=no
9172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9175 dynamic_linker='NetBSD (a.out) ld.so'
9176 else
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 dynamic_linker='NetBSD ld.elf_so'
9180 fi
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9183 hardcode_into_libs=yes
9184 ;;
9185
9186newsos6)
9187 version_type=linux
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9191 ;;
9192
9193*nto* | *qnx*)
9194 version_type=qnx
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 dynamic_linker='ldqnx.so'
9203 ;;
9204
9205openbsd*)
9206 version_type=sunos
9207 sys_lib_dlsearch_path_spec="/usr/lib"
9208 need_lib_prefix=no
9209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9210 case $host_os in
9211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9212 *) need_version=no ;;
9213 esac
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9218 case $host_os in
9219 openbsd2.[89] | openbsd2.[89].*)
9220 shlibpath_overrides_runpath=no
9221 ;;
9222 *)
9223 shlibpath_overrides_runpath=yes
9224 ;;
9225 esac
9226 else
9227 shlibpath_overrides_runpath=yes
9228 fi
9229 ;;
9230
9231os2*)
9232 libname_spec='$name'
9233 shrext_cmds=".dll"
9234 need_lib_prefix=no
9235 library_names_spec='$libname${shared_ext} $libname.a'
9236 dynamic_linker='OS/2 ld.exe'
9237 shlibpath_var=LIBPATH
9238 ;;
9239
9240osf3* | osf4* | osf5*)
9241 version_type=osf
9242 need_lib_prefix=no
9243 need_version=no
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9249 ;;
9250
9251rdos*)
9252 dynamic_linker=no
9253 ;;
9254
9255solaris*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9263 hardcode_into_libs=yes
9264 # ldd complains unless libraries are executable
9265 postinstall_cmds='chmod +x $lib'
9266 ;;
9267
9268sunos4*)
9269 version_type=sunos
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=yes
9274 if test "$with_gnu_ld" = yes; then
9275 need_lib_prefix=no
9276 fi
9277 need_version=yes
9278 ;;
9279
9280sysv4 | sysv4.3*)
9281 version_type=linux
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 case $host_vendor in
9286 sni)
9287 shlibpath_overrides_runpath=no
9288 need_lib_prefix=no
9289 runpath_var=LD_RUN_PATH
9290 ;;
9291 siemens)
9292 need_lib_prefix=no
9293 ;;
9294 motorola)
9295 need_lib_prefix=no
9296 need_version=no
9297 shlibpath_overrides_runpath=no
9298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9299 ;;
9300 esac
9301 ;;
9302
9303sysv4*MP*)
9304 if test -d /usr/nec ;then
9305 version_type=linux
9306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9307 soname_spec='$libname${shared_ext}.$major'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 fi
9310 ;;
9311
9312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9313 version_type=freebsd-elf
9314 need_lib_prefix=no
9315 need_version=no
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9321 if test "$with_gnu_ld" = yes; then
9322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9323 else
9324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9325 case $host_os in
9326 sco3.2v5*)
9327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9328 ;;
9329 esac
9330 fi
9331 sys_lib_dlsearch_path_spec='/usr/lib'
9332 ;;
9333
9334tpf*)
9335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9336 version_type=linux
9337 need_lib_prefix=no
9338 need_version=no
9339 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=no
9342 hardcode_into_libs=yes
9343 ;;
9344
9345uts4*)
9346 version_type=linux
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 ;;
9351
9352*)
9353 dynamic_linker=no
9354 ;;
9355esac
9356echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9357echo "${ECHO_T}$dynamic_linker" >&6
9358test "$dynamic_linker" = no && can_build_shared=no
9359
9360variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9361if test "$GCC" = yes; then
9362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9363fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9452echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9453hardcode_action=
9454if test -n "$hardcode_libdir_flag_spec" ||
9455 test -n "$runpath_var" ||
9456 test "X$hardcode_automatic" = "Xyes" ; then
9457
9458 # We can hardcode non-existent directories.
9459 if test "$hardcode_direct" != no &&
9460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9461 # have to relink, otherwise we might link with an installed library
9462 # when we should be linking with a yet-to-be-installed one
9463 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9464 test "$hardcode_minus_L" != no; then
9465 # Linking always hardcodes the temporary library directory.
9466 hardcode_action=relink
9467 else
9468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9469 hardcode_action=immediate
9470 fi
9471else
9472 # We cannot hardcode anything, or else we can only hardcode existing
9473 # directories.
9474 hardcode_action=unsupported
9475fi
9476echo "$as_me:$LINENO: result: $hardcode_action" >&5
9477echo "${ECHO_T}$hardcode_action" >&6
9478
9479if test "$hardcode_action" = relink ||
9480 test "$inherit_rpath" = yes; then
9481 # Fast installation is not supported
9482 enable_fast_install=no
9483elif test "$shlibpath_overrides_runpath" = yes ||
9484 test "$enable_shared" = no; then
9485 # Fast installation is not necessary
9486 enable_fast_install=needless
9487fi
9488
9489
9490
9491
9492
9493
9494 if test "x$enable_dlopen" != xyes; then
9495 enable_dlopen=unknown
9496 enable_dlopen_self=unknown
9497 enable_dlopen_self_static=unknown
9498else
9499 lt_cv_dlopen=no
9500 lt_cv_dlopen_libs=
9501
9502 case $host_os in
9503 beos*)
9504 lt_cv_dlopen="load_add_on"
9505 lt_cv_dlopen_libs=
9506 lt_cv_dlopen_self=yes
9507 ;;
9508
9509 mingw* | pw32*)
9510 lt_cv_dlopen="LoadLibrary"
9511 lt_cv_dlopen_libs=
9512 ;;
9513
9514 cygwin*)
9515 lt_cv_dlopen="dlopen"
9516 lt_cv_dlopen_libs=
9517 ;;
9518
9519 darwin*)
9520 # if libdl is installed we need to link against it
9521 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9522echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9523if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525else
9526 ac_check_lib_save_LIBS=$LIBS
9527LIBS="-ldl $LIBS"
9528cat >conftest.$ac_ext <<_ACEOF
9529/* confdefs.h. */
9530_ACEOF
9531cat confdefs.h >>conftest.$ac_ext
9532cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */
9534
9535/* Override any gcc2 internal prototype to avoid an error. */
9536#ifdef __cplusplus
9537extern "C"
9538#endif
9539/* We use char because int might match the return type of a gcc2
9540 builtin and then its argument prototype would still apply. */
9541char dlopen ();
9542int
9543main ()
9544{
9545dlopen ();
9546 ;
9547 return 0;
9548}
9549_ACEOF
9550rm -f conftest.$ac_objext conftest$ac_exeext
9551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_c_werror_flag"
9560 || test ! -s conftest.err'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_lib_dl_dlopen=yes
9573else
9574 echo "$as_me: failed program was:" >&5
9575sed 's/^/| /' conftest.$ac_ext >&5
9576
9577ac_cv_lib_dl_dlopen=no
9578fi
9579rm -f conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581LIBS=$ac_check_lib_save_LIBS
9582fi
9583echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9584echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9585if test $ac_cv_lib_dl_dlopen = yes; then
9586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9587else
9588
9589 lt_cv_dlopen="dyld"
9590 lt_cv_dlopen_libs=
9591 lt_cv_dlopen_self=yes
9592
9593fi
9594
9595 ;;
9596
9597 *)
9598 echo "$as_me:$LINENO: checking for shl_load" >&5
9599echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9600if test "${ac_cv_func_shl_load+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602else
9603 cat >conftest.$ac_ext <<_ACEOF
9604/* confdefs.h. */
9605_ACEOF
9606cat confdefs.h >>conftest.$ac_ext
9607cat >>conftest.$ac_ext <<_ACEOF
9608/* end confdefs.h. */
9609/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9611#define shl_load innocuous_shl_load
9612
9613/* System header to define __stub macros and hopefully few prototypes,
9614 which can conflict with char shl_load (); below.
9615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616 <limits.h> exists even on freestanding compilers. */
9617
9618#ifdef __STDC__
9619# include <limits.h>
9620#else
9621# include <assert.h>
9622#endif
9623
9624#undef shl_load
9625
9626/* Override any gcc2 internal prototype to avoid an error. */
9627#ifdef __cplusplus
9628extern "C"
9629{
9630#endif
9631/* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633char shl_load ();
9634/* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637#if defined (__stub_shl_load) || defined (__stub___shl_load)
9638choke me
9639#else
9640char (*f) () = shl_load;
9641#endif
9642#ifdef __cplusplus
9643}
9644#endif
9645
9646int
9647main ()
9648{
9649return f != shl_load;
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext conftest$ac_exeext
9655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -z "$ac_c_werror_flag"
9664 || test ! -s conftest.err'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest$ac_exeext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_cv_func_shl_load=yes
9677else
9678 echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
9681ac_cv_func_shl_load=no
9682fi
9683rm -f conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685fi
9686echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9688if test $ac_cv_func_shl_load = yes; then
9689 lt_cv_dlopen="shl_load"
9690else
9691 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9693if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696 ac_check_lib_save_LIBS=$LIBS
9697LIBS="-ldld $LIBS"
9698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
9704
9705/* Override any gcc2 internal prototype to avoid an error. */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709/* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9711char shl_load ();
9712int
9713main ()
9714{
9715shl_load ();
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext conftest$ac_exeext
9721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag"
9730 || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dld_shl_load=yes
9743else
9744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
9747ac_cv_lib_dld_shl_load=no
9748fi
9749rm -f conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751LIBS=$ac_check_lib_save_LIBS
9752fi
9753echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9754echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9755if test $ac_cv_lib_dld_shl_load = yes; then
9756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9757else
9758 echo "$as_me:$LINENO: checking for dlopen" >&5
9759echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9760if test "${ac_cv_func_dlopen+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762else
9763 cat >conftest.$ac_ext <<_ACEOF
9764/* confdefs.h. */
9765_ACEOF
9766cat confdefs.h >>conftest.$ac_ext
9767cat >>conftest.$ac_ext <<_ACEOF
9768/* end confdefs.h. */
9769/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771#define dlopen innocuous_dlopen
9772
9773/* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char dlopen (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9777
9778#ifdef __STDC__
9779# include <limits.h>
9780#else
9781# include <assert.h>
9782#endif
9783
9784#undef dlopen
9785
9786/* Override any gcc2 internal prototype to avoid an error. */
9787#ifdef __cplusplus
9788extern "C"
9789{
9790#endif
9791/* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9793char dlopen ();
9794/* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797#if defined (__stub_dlopen) || defined (__stub___dlopen)
9798choke me
9799#else
9800char (*f) () = dlopen;
9801#endif
9802#ifdef __cplusplus
9803}
9804#endif
9805
9806int
9807main ()
9808{
9809return f != dlopen;
9810 ;
9811 return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext conftest$ac_exeext
9815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_dlopen=yes
9837else
9838 echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841ac_cv_func_dlopen=no
9842fi
9843rm -f conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845fi
9846echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9847echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9848if test $ac_cv_func_dlopen = yes; then
9849 lt_cv_dlopen="dlopen"
9850else
9851 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9852echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9853if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855else
9856 ac_check_lib_save_LIBS=$LIBS
9857LIBS="-ldl $LIBS"
9858cat >conftest.$ac_ext <<_ACEOF
9859/* confdefs.h. */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h. */
9864
9865/* Override any gcc2 internal prototype to avoid an error. */
9866#ifdef __cplusplus
9867extern "C"
9868#endif
9869/* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9871char dlopen ();
9872int
9873main ()
9874{
9875dlopen ();
9876 ;
9877 return 0;
9878}
9879_ACEOF
9880rm -f conftest.$ac_objext conftest$ac_exeext
9881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 (eval $ac_try) 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_dl_dlopen=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907ac_cv_lib_dl_dlopen=no
9908fi
9909rm -f conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911LIBS=$ac_check_lib_save_LIBS
9912fi
9913echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9915if test $ac_cv_lib_dl_dlopen = yes; then
9916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9917else
9918 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9919echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9920if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 ac_check_lib_save_LIBS=$LIBS
9924LIBS="-lsvld $LIBS"
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931
9932/* Override any gcc2 internal prototype to avoid an error. */
9933#ifdef __cplusplus
9934extern "C"
9935#endif
9936/* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9938char dlopen ();
9939int
9940main ()
9941{
9942dlopen ();
9943 ;
9944 return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 (eval $ac_try) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_lib_svld_dlopen=yes
9970else
9971 echo "$as_me: failed program was:" >&5
9972sed 's/^/| /' conftest.$ac_ext >&5
9973
9974ac_cv_lib_svld_dlopen=no
9975fi
9976rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978LIBS=$ac_check_lib_save_LIBS
9979fi
9980echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9981echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9982if test $ac_cv_lib_svld_dlopen = yes; then
9983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9984else
9985 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9986echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9987if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989else
9990 ac_check_lib_save_LIBS=$LIBS
9991LIBS="-ldld $LIBS"
9992cat >conftest.$ac_ext <<_ACEOF
9993/* confdefs.h. */
9994_ACEOF
9995cat confdefs.h >>conftest.$ac_ext
9996cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */
9998
9999/* Override any gcc2 internal prototype to avoid an error. */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003/* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005char dld_link ();
10006int
10007main ()
10008{
10009dld_link ();
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext conftest$ac_exeext
10015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_dld_dld_link=yes
10037else
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041ac_cv_lib_dld_dld_link=no
10042fi
10043rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS
10046fi
10047echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10048echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10049if test $ac_cv_lib_dld_dld_link = yes; then
10050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10051fi
10052
10053
10054fi
10055
10056
10057fi
10058
10059
10060fi
10061
10062
10063fi
10064
10065
10066fi
10067
10068 ;;
10069 esac
10070
10071 if test "x$lt_cv_dlopen" != xno; then
10072 enable_dlopen=yes
20e95c23 10073 else
d7040cdb 10074 enable_dlopen=no
252b5132 10075 fi
5464f5a1 10076
d7040cdb
SE
10077 case $lt_cv_dlopen in
10078 dlopen)
10079 save_CPPFLAGS="$CPPFLAGS"
10080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10081
10082 save_LDFLAGS="$LDFLAGS"
10083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10084
10085 save_LIBS="$LIBS"
10086 LIBS="$lt_cv_dlopen_libs $LIBS"
10087
10088 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10089echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10090if test "${lt_cv_dlopen_self+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10092else
d7040cdb
SE
10093 if test "$cross_compiling" = yes; then :
10094 lt_cv_dlopen_self=cross
10095else
10096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10097 lt_status=$lt_dlunknown
10098 cat > conftest.$ac_ext <<_LT_EOF
10099#line 10099 "configure"
10100#include "confdefs.h"
10101
10102#if HAVE_DLFCN_H
10103#include <dlfcn.h>
10104#endif
10105
10106#include <stdio.h>
10107
10108#ifdef RTLD_GLOBAL
10109# define LT_DLGLOBAL RTLD_GLOBAL
10110#else
10111# ifdef DL_GLOBAL
10112# define LT_DLGLOBAL DL_GLOBAL
10113# else
10114# define LT_DLGLOBAL 0
10115# endif
10116#endif
10117
10118/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119 find out it does not work in some platform. */
10120#ifndef LT_DLLAZY_OR_NOW
10121# ifdef RTLD_LAZY
10122# define LT_DLLAZY_OR_NOW RTLD_LAZY
10123# else
10124# ifdef DL_LAZY
10125# define LT_DLLAZY_OR_NOW DL_LAZY
10126# else
10127# ifdef RTLD_NOW
10128# define LT_DLLAZY_OR_NOW RTLD_NOW
10129# else
10130# ifdef DL_NOW
10131# define LT_DLLAZY_OR_NOW DL_NOW
10132# else
10133# define LT_DLLAZY_OR_NOW 0
10134# endif
10135# endif
10136# endif
10137# endif
10138#endif
10139
10140#ifdef __cplusplus
10141extern "C" void exit (int);
10142#endif
10143
10144void fnord() { int i=42;}
10145int main ()
10146{
10147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10148 int status = $lt_dlunknown;
10149
10150 if (self)
10151 {
10152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10154 /* dlclose (self); */
10155 }
10156 else
10157 puts (dlerror ());
10158
10159 exit (status);
10160}
10161_LT_EOF
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10167 (./conftest; exit; ) >&5 2>/dev/null
10168 lt_status=$?
10169 case x$lt_status in
10170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10173 esac
10174 else :
10175 # compilation failed
10176 lt_cv_dlopen_self=no
10177 fi
252b5132 10178fi
d7040cdb 10179rm -fr conftest*
20e95c23 10180
d7040cdb
SE
10181
10182fi
10183echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10184echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10185
10186 if test "x$lt_cv_dlopen_self" = xyes; then
10187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10188 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10189echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10190if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
d7040cdb
SE
10193 if test "$cross_compiling" = yes; then :
10194 lt_cv_dlopen_self_static=cross
10195else
10196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10197 lt_status=$lt_dlunknown
10198 cat > conftest.$ac_ext <<_LT_EOF
10199#line 10199 "configure"
10200#include "confdefs.h"
10201
10202#if HAVE_DLFCN_H
10203#include <dlfcn.h>
10204#endif
10205
10206#include <stdio.h>
10207
10208#ifdef RTLD_GLOBAL
10209# define LT_DLGLOBAL RTLD_GLOBAL
10210#else
10211# ifdef DL_GLOBAL
10212# define LT_DLGLOBAL DL_GLOBAL
10213# else
10214# define LT_DLGLOBAL 0
10215# endif
10216#endif
10217
10218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10219 find out it does not work in some platform. */
10220#ifndef LT_DLLAZY_OR_NOW
10221# ifdef RTLD_LAZY
10222# define LT_DLLAZY_OR_NOW RTLD_LAZY
10223# else
10224# ifdef DL_LAZY
10225# define LT_DLLAZY_OR_NOW DL_LAZY
10226# else
10227# ifdef RTLD_NOW
10228# define LT_DLLAZY_OR_NOW RTLD_NOW
10229# else
10230# ifdef DL_NOW
10231# define LT_DLLAZY_OR_NOW DL_NOW
10232# else
10233# define LT_DLLAZY_OR_NOW 0
10234# endif
10235# endif
10236# endif
10237# endif
10238#endif
10239
10240#ifdef __cplusplus
10241extern "C" void exit (int);
10242#endif
10243
10244void fnord() { int i=42;}
10245int main ()
10246{
10247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10248 int status = $lt_dlunknown;
10249
10250 if (self)
10251 {
10252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10254 /* dlclose (self); */
10255 }
10256 else
10257 puts (dlerror ());
10258
10259 exit (status);
10260}
10261_LT_EOF
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10267 (./conftest; exit; ) >&5 2>/dev/null
10268 lt_status=$?
10269 case x$lt_status in
10270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10273 esac
10274 else :
10275 # compilation failed
10276 lt_cv_dlopen_self_static=no
10277 fi
10278fi
10279rm -fr conftest*
10280
10281
10282fi
10283echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10284echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10285 fi
10286
10287 CPPFLAGS="$save_CPPFLAGS"
10288 LDFLAGS="$save_LDFLAGS"
10289 LIBS="$save_LIBS"
10290 ;;
10291 esac
10292
10293 case $lt_cv_dlopen_self in
10294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10295 *) enable_dlopen_self=unknown ;;
10296 esac
10297
10298 case $lt_cv_dlopen_self_static in
10299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10300 *) enable_dlopen_self_static=unknown ;;
10301 esac
10302fi
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320striplib=
10321old_striplib=
10322echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10323echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10324if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10327 echo "$as_me:$LINENO: result: yes" >&5
10328echo "${ECHO_T}yes" >&6
10329else
10330# FIXME - insert some real tests, host_os isn't really good enough
10331 case $host_os in
10332 darwin*)
10333 if test -n "$STRIP" ; then
10334 striplib="$STRIP -x"
10335 old_striplib="$STRIP -S"
10336 echo "$as_me:$LINENO: result: yes" >&5
10337echo "${ECHO_T}yes" >&6
10338 else
10339 echo "$as_me:$LINENO: result: no" >&5
10340echo "${ECHO_T}no" >&6
10341 fi
20e95c23
DJ
10342 ;;
10343 *)
d7040cdb
SE
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
10346 ;;
10347 esac
10348fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 # Report which library types will actually be built
10362 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10363echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10364 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10365echo "${ECHO_T}$can_build_shared" >&6
10366
10367 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10368echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10369 test "$can_build_shared" = "no" && enable_shared=no
10370
10371 # On AIX, shared libraries and static libraries use the same namespace, and
10372 # are all built from PIC.
10373 case $host_os in
10374 aix3*)
10375 test "$enable_shared" = yes && enable_static=no
10376 if test -n "$RANLIB"; then
10377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10378 postinstall_cmds='$RANLIB $lib'
10379 fi
10380 ;;
10381
10382 aix4* | aix5*)
10383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10384 test "$enable_shared" = yes && enable_static=no
10385 fi
20e95c23 10386 ;;
d7040cdb
SE
10387 esac
10388 echo "$as_me:$LINENO: result: $enable_shared" >&5
10389echo "${ECHO_T}$enable_shared" >&6
10390
10391 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10392echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10393 # Make sure either enable_shared or enable_static is yes.
10394 test "$enable_shared" = yes || enable_static=yes
10395 echo "$as_me:$LINENO: result: $enable_static" >&5
10396echo "${ECHO_T}$enable_static" >&6
10397
10398
10399
10400
10401fi
10402ac_ext=c
10403ac_cpp='$CPP $CPPFLAGS'
10404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10406ac_compiler_gnu=$ac_cv_c_compiler_gnu
10407
10408CC="$lt_save_CC"
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422 ac_config_commands="$ac_config_commands libtool"
10423
10424
10425
10426
10427# Only expand once:
10428
10429
10430
10431# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10432if test "${enable_64_bit_bfd+set}" = set; then
10433 enableval="$enable_64_bit_bfd"
10434 case "${enableval}" in
10435 yes) want64=true ;;
10436 no) want64=false ;;
10437 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10438echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10439 { (exit 1); exit 1; }; } ;;
10440esac
10441else
10442 want64=false
10443fi; # Check whether --enable-targets or --disable-targets was given.
10444if test "${enable_targets+set}" = set; then
10445 enableval="$enable_targets"
10446 case "${enableval}" in
10447 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10448echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10449 { (exit 1); exit 1; }; }
10450 ;;
10451 no) enable_targets= ;;
10452 *) enable_targets=$enableval ;;
10453esac
10454fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10455if test "${enable_commonbfdlib+set}" = set; then
10456 enableval="$enable_commonbfdlib"
10457 case "${enableval}" in
10458 yes) commonbfdlib=true ;;
10459 no) commonbfdlib=false ;;
10460 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10461echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10462 { (exit 1); exit 1; }; } ;;
10463esac
10464fi;
10465# Check whether --with-mmap or --without-mmap was given.
10466if test "${with_mmap+set}" = set; then
10467 withval="$with_mmap"
10468 case "${withval}" in
10469 yes) want_mmap=true ;;
10470 no) want_mmap=false ;;
10471 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10472echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10473 { (exit 1); exit 1; }; } ;;
20e95c23 10474esac
252b5132 10475else
d7040cdb
SE
10476 want_mmap=false
10477fi;
10478# Check whether --enable-secureplt or --disable-secureplt was given.
10479if test "${enable_secureplt+set}" = set; then
10480 enableval="$enable_secureplt"
10481 case "${enableval}" in
10482 yes) use_secureplt=true ;;
10483 no) use_secureplt=false ;;
10484 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10485echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10486 { (exit 1); exit 1; }; } ;;
10487esac
252b5132 10488else
d7040cdb
SE
10489 use_secureplt=false
10490fi; if test $use_secureplt = true; then
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define USE_SECUREPLT 1
10494_ACEOF
5464f5a1 10495
252b5132 10496fi
20e95c23 10497
d7040cdb
SE
10498
10499
10500# Check whether --with-pkgversion or --without-pkgversion was given.
10501if test "${with_pkgversion+set}" = set; then
10502 withval="$with_pkgversion"
10503 case "$withval" in
10504 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10505echo "$as_me: error: package version not specified" >&2;}
10506 { (exit 1); exit 1; }; } ;;
10507 no) PKGVERSION= ;;
10508 *) PKGVERSION="($withval) " ;;
10509 esac
252b5132 10510else
d7040cdb 10511 PKGVERSION="(GNU Binutils) "
252b5132 10512
d7040cdb 10513fi;
20e95c23
DJ
10514
10515
5464f5a1 10516
20e95c23 10517
d7040cdb
SE
10518# Check whether --with-bugurl or --without-bugurl was given.
10519if test "${with_bugurl+set}" = set; then
10520 withval="$with_bugurl"
10521 case "$withval" in
10522 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10523echo "$as_me: error: bug URL not specified" >&2;}
10524 { (exit 1); exit 1; }; } ;;
10525 no) BUGURL=
10526 ;;
10527 *) BUGURL="$withval"
10528 ;;
10529 esac
252b5132 10530else
d7040cdb
SE
10531 BUGURL="http://www.sourceware.org/bugzilla/"
10532
10533fi;
10534 case ${BUGURL} in
10535 "")
10536 REPORT_BUGS_TO=
10537 REPORT_BUGS_TEXI=
20e95c23
DJ
10538 ;;
10539 *)
d7040cdb
SE
10540 REPORT_BUGS_TO="<$BUGURL>"
10541 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10542 ;;
d7040cdb
SE
10543 esac;
10544
10545
10546
10547
10548
10549GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10550
10551# Check whether --enable-werror or --disable-werror was given.
10552if test "${enable_werror+set}" = set; then
10553 enableval="$enable_werror"
10554 case "${enableval}" in
10555 yes | y) ERROR_ON_WARNING="yes" ;;
10556 no | n) ERROR_ON_WARNING="no" ;;
10557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10558echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10559 { (exit 1); exit 1; }; } ;;
10560 esac
10561fi;
10562
10563# Enable -Werror by default when using gcc
10564if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10565 ERROR_ON_WARNING=yes
10566fi
10567
10568NO_WERROR=
10569if test "${ERROR_ON_WARNING}" = yes ; then
10570 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10571 NO_WERROR="-Wno-error"
10572fi
10573
10574if test "${GCC}" = yes ; then
10575 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10576fi
10577
10578# Check whether --enable-build-warnings or --disable-build-warnings was given.
10579if test "${enable_build_warnings+set}" = set; then
10580 enableval="$enable_build_warnings"
10581 case "${enableval}" in
10582 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10583 no) if test "${GCC}" = yes ; then
10584 WARN_CFLAGS="-w"
10585 fi;;
10586 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10587 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10588 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10589 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10590 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10591esac
d7040cdb
SE
10592fi;
10593
10594if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10595 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10596fi
d7040cdb
SE
10597
10598
10599
10600
10601
10602 ac_config_headers="$ac_config_headers config.h:config.in"
10603
10604
10605if test -z "$target" ; then
10606 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10607echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10608 { (exit 1); exit 1; }; }
20e95c23
DJ
10609fi
10610
d7040cdb
SE
10611echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10612echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10613 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10614if test "${enable_maintainer_mode+set}" = set; then
10615 enableval="$enable_maintainer_mode"
10616 USE_MAINTAINER_MODE=$enableval
10617else
10618 USE_MAINTAINER_MODE=no
10619fi;
10620 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10621echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10622
10623
d7040cdb
SE
10624if test $USE_MAINTAINER_MODE = yes; then
10625 MAINTAINER_MODE_TRUE=
10626 MAINTAINER_MODE_FALSE='#'
10627else
10628 MAINTAINER_MODE_TRUE='#'
10629 MAINTAINER_MODE_FALSE=
6be7c12c 10630fi
5464f5a1 10631
d7040cdb
SE
10632 MAINT=$MAINTAINER_MODE_TRUE
10633
10634
10635
10636
10637if false; then
10638 GENINSRC_NEVER_TRUE=
10639 GENINSRC_NEVER_FALSE='#'
20e95c23 10640else
d7040cdb
SE
10641 GENINSRC_NEVER_TRUE='#'
10642 GENINSRC_NEVER_FALSE=
5464f5a1 10643fi
5464f5a1 10644
d7040cdb
SE
10645 case ${build_alias} in
10646 "") build_noncanonical=${build} ;;
10647 *) build_noncanonical=${build_alias} ;;
20e95c23 10648esac
d7040cdb
SE
10649
10650 case ${host_alias} in
10651 "") host_noncanonical=${build_noncanonical} ;;
10652 *) host_noncanonical=${host_alias} ;;
10653esac
10654
10655 case ${target_alias} in
10656 "") target_noncanonical=${host_noncanonical} ;;
10657 *) target_noncanonical=${target_alias} ;;
10658esac
10659
10660echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10661echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10662 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10663if test "${enable_install_libbfd+set}" = set; then
10664 enableval="$enable_install_libbfd"
10665 install_libbfd_p=$enableval
252b5132 10666else
d7040cdb
SE
10667 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10668 install_libbfd_p=yes
10669 else
10670 install_libbfd_p=no
10671 fi
10672fi;
10673 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10674echo "${ECHO_T}$install_libbfd_p" >&6
10675
10676
10677if test $install_libbfd_p = yes; then
10678 INSTALL_LIBBFD_TRUE=
10679 INSTALL_LIBBFD_FALSE='#'
10680else
10681 INSTALL_LIBBFD_TRUE='#'
10682 INSTALL_LIBBFD_FALSE=
5464f5a1 10683fi
5464f5a1 10684
d7040cdb 10685 # Need _noncanonical variables for this.
5464f5a1 10686
5464f5a1 10687
d7040cdb
SE
10688
10689
10690 # libbfd.a is a host library containing target dependent code
10691 bfdlibdir='$(libdir)'
10692 bfdincludedir='$(includedir)'
10693 if test "${host}" != "${target}"; then
10694 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10695 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 10696 fi
6be7c12c 10697
5464f5a1 10698
5464f5a1
NN
10699
10700
5464f5a1 10701
ac48eca1 10702
d7040cdb
SE
10703host64=false
10704target64=false
10705bfd_default_target_size=32
252b5132 10706
d7040cdb 10707# host stuff:
20e95c23 10708
d7040cdb
SE
10709ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
10710# If we haven't got the data from the intl directory,
10711# assume NLS is disabled.
10712USE_NLS=no
10713LIBINTL=
10714LIBINTL_DEP=
10715INCINTL=
10716XGETTEXT=
10717GMSGFMT=
10718POSUB=
10719
10720if test -f ../intl/config.intl; then
10721 . ../intl/config.intl
252b5132 10722fi
d7040cdb
SE
10723echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10724echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10725if test x"$USE_NLS" != xyes; then
10726 echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6
10728else
10729 echo "$as_me:$LINENO: result: yes" >&5
10730echo "${ECHO_T}yes" >&6
5464f5a1 10731
d7040cdb
SE
10732cat >>confdefs.h <<\_ACEOF
10733#define ENABLE_NLS 1
10734_ACEOF
252b5132 10735
6be7c12c 10736
d7040cdb
SE
10737 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10738echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10739 # Look for .po and .gmo files in the source directory.
10740 CATALOGS=
10741 XLINGUAS=
10742 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10743 # If there aren't any .gmo files the shell will give us the
10744 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10745 # weeded out.
10746 case "$cat" in *\**)
10747 continue;;
10748 esac
10749 # The quadruple backslash is collapsed to a double backslash
10750 # by the backticks, then collapsed again by the double quotes,
10751 # leaving us with one backslash in the sed expression (right
10752 # before the dot that mustn't act as a wildcard).
10753 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10754 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10755 # The user is allowed to set LINGUAS to a list of languages to
10756 # install catalogs for. If it's empty that means "all of them."
10757 if test "x$LINGUAS" = x; then
10758 CATALOGS="$CATALOGS $cat"
10759 XLINGUAS="$XLINGUAS $lang"
10760 else
10761 case "$LINGUAS" in *$lang*)
10762 CATALOGS="$CATALOGS $cat"
10763 XLINGUAS="$XLINGUAS $lang"
10764 ;;
10765 esac
10766 fi
10767 done
10768 LINGUAS="$XLINGUAS"
10769 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10770echo "${ECHO_T}$LINGUAS" >&6
10771
252b5132 10772
d7040cdb 10773 DATADIRNAME=share
252b5132 10774
d7040cdb 10775 INSTOBJEXT=.mo
5464f5a1 10776
d7040cdb 10777 GENCAT=gencat
20e95c23 10778
d7040cdb 10779 CATOBJEXT=.gmo
5464f5a1 10780
20e95c23 10781fi
5464f5a1 10782
d7040cdb
SE
10783 MKINSTALLDIRS=
10784 if test -n "$ac_aux_dir"; then
10785 case "$ac_aux_dir" in
10786 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10787 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10788 esac
10789 fi
10790 if test -z "$MKINSTALLDIRS"; then
10791 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 10792 fi
5464f5a1 10793
5464f5a1 10794
d7040cdb
SE
10795
10796 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10797echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10798 # Check whether --enable-nls or --disable-nls was given.
10799if test "${enable_nls+set}" = set; then
10800 enableval="$enable_nls"
10801 USE_NLS=$enableval
252b5132 10802else
d7040cdb
SE
10803 USE_NLS=yes
10804fi;
10805 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10806echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10807
252b5132 10808
5464f5a1 10809
252b5132 10810
d7040cdb
SE
10811
10812
10813# Prepare PATH_SEPARATOR.
10814# The user is always right.
10815if test "${PATH_SEPARATOR+set}" != set; then
10816 echo "#! /bin/sh" >conf$$.sh
10817 echo "exit 0" >>conf$$.sh
10818 chmod +x conf$$.sh
10819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10820 PATH_SEPARATOR=';'
20e95c23 10821 else
d7040cdb 10822 PATH_SEPARATOR=:
20e95c23 10823 fi
d7040cdb
SE
10824 rm -f conf$$.sh
10825fi
10826
10827# Find out how to test for executable files. Don't use a zero-byte file,
10828# as systems may use methods other than mode bits to determine executability.
10829cat >conf$$.file <<_ASEOF
10830#! /bin/sh
10831exit 0
10832_ASEOF
10833chmod +x conf$$.file
10834if test -x conf$$.file >/dev/null 2>&1; then
10835 ac_executable_p="test -x"
20e95c23 10836else
d7040cdb 10837 ac_executable_p="test -f"
20e95c23 10838fi
d7040cdb 10839rm -f conf$$.file
5464f5a1 10840
d7040cdb
SE
10841# Extract the first word of "msgfmt", so it can be a program name with args.
10842set dummy msgfmt; ac_word=$2
10843echo "$as_me:$LINENO: checking for $ac_word" >&5
10844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10845if test "${ac_cv_path_MSGFMT+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 case "$MSGFMT" in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10851 ;;
10852 *)
10853 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10854 for ac_dir in $PATH; do
10855 IFS="$ac_save_IFS"
10856 test -z "$ac_dir" && ac_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10859 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10860 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10861 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10862 break 2
10863 fi
10864 fi
10865 done
10866 done
10867 IFS="$ac_save_IFS"
10868 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10869 ;;
10870esac
5464f5a1 10871fi
d7040cdb
SE
10872MSGFMT="$ac_cv_path_MSGFMT"
10873if test "$MSGFMT" != ":"; then
10874 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10875echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10876else
d7040cdb
SE
10877 echo "$as_me:$LINENO: result: no" >&5
10878echo "${ECHO_T}no" >&6
252b5132 10879fi
d7040cdb
SE
10880
10881 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10882set dummy gmsgfmt; ac_word=$2
10883echo "$as_me:$LINENO: checking for $ac_word" >&5
10884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885if test "${ac_cv_path_GMSGFMT+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10887else
d7040cdb
SE
10888 case $GMSGFMT in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10891 ;;
10892 *)
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894for as_dir in $PATH
10895do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904done
10905done
5464f5a1 10906
d7040cdb
SE
10907 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10908 ;;
10909esac
252b5132 10910fi
d7040cdb 10911GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 10912
d7040cdb
SE
10913if test -n "$GMSGFMT"; then
10914 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10915echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10916else
d7040cdb
SE
10917 echo "$as_me:$LINENO: result: no" >&5
10918echo "${ECHO_T}no" >&6
252b5132
RH
10919fi
10920
20e95c23
DJ
10921
10922
d7040cdb
SE
10923# Prepare PATH_SEPARATOR.
10924# The user is always right.
10925if test "${PATH_SEPARATOR+set}" != set; then
10926 echo "#! /bin/sh" >conf$$.sh
10927 echo "exit 0" >>conf$$.sh
10928 chmod +x conf$$.sh
10929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10930 PATH_SEPARATOR=';'
10931 else
10932 PATH_SEPARATOR=:
10933 fi
10934 rm -f conf$$.sh
252b5132 10935fi
20e95c23 10936
d7040cdb
SE
10937# Find out how to test for executable files. Don't use a zero-byte file,
10938# as systems may use methods other than mode bits to determine executability.
10939cat >conf$$.file <<_ASEOF
10940#! /bin/sh
10941exit 0
10942_ASEOF
10943chmod +x conf$$.file
10944if test -x conf$$.file >/dev/null 2>&1; then
10945 ac_executable_p="test -x"
10946else
10947 ac_executable_p="test -f"
10948fi
10949rm -f conf$$.file
252b5132 10950
d7040cdb
SE
10951# Extract the first word of "xgettext", so it can be a program name with args.
10952set dummy xgettext; ac_word=$2
10953echo "$as_me:$LINENO: checking for $ac_word" >&5
10954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10955if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957else
d7040cdb
SE
10958 case "$XGETTEXT" in
10959 [\\/]* | ?:[\\/]*)
10960 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10961 ;;
10962 *)
10963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10964 for ac_dir in $PATH; do
10965 IFS="$ac_save_IFS"
10966 test -z "$ac_dir" && ac_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10969 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10970 (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
10971 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10972 break 2
10973 fi
10974 fi
10975 done
10976 done
10977 IFS="$ac_save_IFS"
10978 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10979 ;;
10980esac
10981fi
10982XGETTEXT="$ac_cv_path_XGETTEXT"
10983if test "$XGETTEXT" != ":"; then
10984 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10985echo "${ECHO_T}$XGETTEXT" >&6
252b5132 10986else
d7040cdb
SE
10987 echo "$as_me:$LINENO: result: no" >&5
10988echo "${ECHO_T}no" >&6
252b5132
RH
10989fi
10990
d7040cdb 10991 rm -f messages.po
5464f5a1 10992
252b5132 10993
d7040cdb
SE
10994# Prepare PATH_SEPARATOR.
10995# The user is always right.
10996if test "${PATH_SEPARATOR+set}" != set; then
10997 echo "#! /bin/sh" >conf$$.sh
10998 echo "exit 0" >>conf$$.sh
10999 chmod +x conf$$.sh
11000 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11001 PATH_SEPARATOR=';'
11002 else
11003 PATH_SEPARATOR=:
11004 fi
11005 rm -f conf$$.sh
252b5132
RH
11006fi
11007
d7040cdb
SE
11008# Find out how to test for executable files. Don't use a zero-byte file,
11009# as systems may use methods other than mode bits to determine executability.
11010cat >conf$$.file <<_ASEOF
11011#! /bin/sh
11012exit 0
11013_ASEOF
11014chmod +x conf$$.file
11015if test -x conf$$.file >/dev/null 2>&1; then
11016 ac_executable_p="test -x"
5464f5a1 11017else
d7040cdb 11018 ac_executable_p="test -f"
20e95c23 11019fi
d7040cdb 11020rm -f conf$$.file
5464f5a1 11021
d7040cdb
SE
11022# Extract the first word of "msgmerge", so it can be a program name with args.
11023set dummy msgmerge; ac_word=$2
11024echo "$as_me:$LINENO: checking for $ac_word" >&5
11025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026if test "${ac_cv_path_MSGMERGE+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028else
11029 case "$MSGMERGE" in
11030 [\\/]* | ?:[\\/]*)
11031 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11032 ;;
11033 *)
11034 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11035 for ac_dir in $PATH; do
11036 IFS="$ac_save_IFS"
11037 test -z "$ac_dir" && ac_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11040 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11041 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11042 break 2
11043 fi
11044 fi
11045 done
11046 done
11047 IFS="$ac_save_IFS"
11048 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11049 ;;
11050esac
5464f5a1 11051fi
d7040cdb
SE
11052MSGMERGE="$ac_cv_path_MSGMERGE"
11053if test "$MSGMERGE" != ":"; then
11054 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11055echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11056else
d7040cdb
SE
11057 echo "$as_me:$LINENO: result: no" >&5
11058echo "${ECHO_T}no" >&6
11059fi
20e95c23 11060
5464f5a1 11061
d7040cdb
SE
11062 if test "$GMSGFMT" != ":"; then
11063 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11064 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11065 : ;
11066 else
11067 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11068 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11069echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11070 GMSGFMT=":"
11071 fi
11072 fi
252b5132 11073
d7040cdb
SE
11074 if test "$XGETTEXT" != ":"; then
11075 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11076 (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
11077 : ;
11078 else
11079 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11080echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11081 XGETTEXT=":"
11082 fi
11083 rm -f messages.po
11084 fi
6be7c12c 11085
d7040cdb 11086 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11087
252b5132 11088
5464f5a1 11089
d7040cdb
SE
11090# Permit host specific settings.
11091. ${srcdir}/configure.host
11092
11093
11094# Find a good install program. We prefer a C program (faster),
11095# so one script is as good as another. But avoid the broken or
11096# incompatible versions:
11097# SysV /etc/install, /usr/sbin/install
11098# SunOS /usr/etc/install
11099# IRIX /sbin/install
11100# AIX /bin/install
11101# AmigaOS /C/install, which installs bootblocks on floppy discs
11102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11105# OS/2's system install, which has a completely different semantic
11106# ./install, which can be erroneously created by make from ./install.sh.
11107echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11109if test -z "$INSTALL"; then
11110if test "${ac_cv_path_install+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112else
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114for as_dir in $PATH
11115do
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 # Account for people who put trailing slashes in PATH elements.
11119case $as_dir/ in
11120 ./ | .// | /cC/* | \
11121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11123 /usr/ucb/* ) ;;
11124 *)
11125 # OSF1 and SCO ODT 3.0 have their own names for install.
11126 # Don't use installbsd from OSF since it installs stuff as root
11127 # by default.
11128 for ac_prog in ginstall scoinst install; do
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11131 if test $ac_prog = install &&
11132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11133 # AIX install. It has an incompatible calling convention.
11134 :
11135 elif test $ac_prog = install &&
11136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11137 # program-specific install script used by HP pwplus--don't use.
11138 :
11139 else
11140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11141 break 3
11142 fi
11143 fi
11144 done
11145 done
11146 ;;
11147esac
11148done
11149
252b5132 11150
d7040cdb
SE
11151fi
11152 if test "${ac_cv_path_install+set}" = set; then
11153 INSTALL=$ac_cv_path_install
11154 else
11155 # As a last resort, use the slow shell script. We don't cache a
11156 # path for INSTALL within a source directory, because that will
11157 # break other packages using the cache if that directory is
11158 # removed, or if the path is relative.
11159 INSTALL=$ac_install_sh
11160 fi
11161fi
11162echo "$as_me:$LINENO: result: $INSTALL" >&5
11163echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11164
d7040cdb
SE
11165# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11166# It thinks the first close brace ends the variable substitution.
11167test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11168
d7040cdb 11169test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11170
d7040cdb 11171test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11172
252b5132 11173
d7040cdb
SE
11174BFD_HOST_64BIT_LONG=0
11175BFD_HOST_LONG_LONG=0
11176BFD_HOST_64_BIT_DEFINED=0
11177BFD_HOST_64_BIT=
11178BFD_HOST_U_64_BIT=
6be7c12c 11179
d7040cdb
SE
11180echo "$as_me:$LINENO: checking for long long" >&5
11181echo $ECHO_N "checking for long long... $ECHO_C" >&6
11182if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 11183 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 11184else
5464f5a1
NN
11185 cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
ec317fb1 11191
d7040cdb
SE
11192int
11193main ()
11194{
11195unsigned long long ll = 18446744073709551615ULL;
11196 ;
11197 return 0;
11198}
5464f5a1
NN
11199_ACEOF
11200rm -f conftest.$ac_objext
11201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202 (eval $ac_compile) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
49c96104
SE
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
5464f5a1
NN
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
d7040cdb 11222 bfd_cv_has_long_long=yes
ec317fb1 11223else
5464f5a1
NN
11224 echo "$as_me: failed program was:" >&5
11225sed 's/^/| /' conftest.$ac_ext >&5
11226
d7040cdb 11227bfd_cv_has_long_long=no
ec317fb1 11228fi
5464f5a1 11229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
11230fi
11231
d7040cdb
SE
11232echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
11233echo "${ECHO_T}$bfd_cv_has_long_long" >&6
11234if test $bfd_cv_has_long_long = yes; then
11235 BFD_HOST_LONG_LONG=1
11236 echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
11237echo $ECHO_N "checking for long long... $ECHO_C" >&6
11238if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11239 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11240else
5464f5a1
NN
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
2ba49b59 11247$ac_includes_default
5464f5a1
NN
11248int
11249main ()
11250{
2ba49b59
KC
11251if ((long long *) 0)
11252 return 0;
11253if (sizeof (long long))
11254 return 0;
5464f5a1
NN
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
49c96104
SE
11268 { ac_try='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
5464f5a1
NN
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
2ba49b59 11281 ac_cv_type_long_long=yes
6726e1ea 11282else
5464f5a1
NN
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
2ba49b59 11286ac_cv_type_long_long=no
6726e1ea 11287fi
5464f5a1 11288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11289fi
2ba49b59
KC
11290echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11291echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11292
2ba49b59
KC
11293echo "$as_me:$LINENO: checking size of long long" >&5
11294echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11295if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11297else
2ba49b59
KC
11298 if test "$ac_cv_type_long_long" = yes; then
11299 # The cast to unsigned long works around a bug in the HP C Compiler
11300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11302 # This bug is HP SR number 8606223364.
11303 if test "$cross_compiling" = yes; then
11304 # Depending upon the size, compute the lo and hi bounds.
11305cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11306/* confdefs.h. */
11307_ACEOF
11308cat confdefs.h >>conftest.$ac_ext
11309cat >>conftest.$ac_ext <<_ACEOF
11310/* end confdefs.h. */
2ba49b59
KC
11311$ac_includes_default
11312int
11313main ()
11314{
11315static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11316test_array [0] = 0
6726e1ea 11317
2ba49b59
KC
11318 ;
11319 return 0;
11320}
11321_ACEOF
11322rm -f conftest.$ac_objext
11323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324 (eval $ac_compile) 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
49c96104
SE
11331 { ac_try='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 ac_lo=0 ac_mid=0
11345 while :; do
11346 cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352$ac_includes_default
5464f5a1
NN
11353int
11354main ()
11355{
2ba49b59
KC
11356static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11357test_array [0] = 0
11358
5464f5a1
NN
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363rm -f conftest.$ac_objext
11364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
49c96104
SE
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
5464f5a1
NN
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
2ba49b59 11385 ac_hi=$ac_mid; break
6726e1ea 11386else
5464f5a1
NN
11387 echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
2ba49b59
KC
11390ac_lo=`expr $ac_mid + 1`
11391 if test $ac_lo -le $ac_mid; then
11392 ac_lo= ac_hi=
11393 break
11394 fi
11395 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11396fi
5464f5a1 11397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11398 done
252b5132 11399else
2ba49b59
KC
11400 echo "$as_me: failed program was:" >&5
11401sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11402
5464f5a1
NN
11403cat >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
2ba49b59
KC
11410int
11411main ()
11412{
11413static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11414test_array [0] = 0
11415
11416 ;
11417 return 0;
11418}
5464f5a1
NN
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
KC
11442 ac_hi=-1 ac_mid=-1
11443 while :; do
11444 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
2ba49b59
KC
11450$ac_includes_default
11451int
11452main ()
11453{
11454static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11455test_array [0] = 0
11456
11457 ;
11458 return 0;
11459}
5464f5a1 11460_ACEOF
2ba49b59
KC
11461rm -f conftest.$ac_objext
11462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11469 (exit $ac_status); } &&
49c96104
SE
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
2ba49b59
KC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_lo=$ac_mid; break
252b5132 11484else
2ba49b59
KC
11485 echo "$as_me: failed program was:" >&5
11486sed 's/^/| /' conftest.$ac_ext >&5
11487
11488ac_hi=`expr '(' $ac_mid ')' - 1`
11489 if test $ac_mid -le $ac_hi; then
11490 ac_lo= ac_hi=
11491 break
11492 fi
11493 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11494fi
2ba49b59
KC
11495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11496 done
5464f5a1
NN
11497else
11498 echo "$as_me: failed program was:" >&5
11499sed 's/^/| /' conftest.$ac_ext >&5
11500
2ba49b59 11501ac_lo= ac_hi=
252b5132 11502fi
2ba49b59
KC
11503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504fi
11505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506# Binary search between lo and hi bounds.
11507while test "x$ac_lo" != "x$ac_hi"; do
11508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11509 cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515$ac_includes_default
11516int
11517main ()
11518{
11519static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11520test_array [0] = 0
5464f5a1 11521
2ba49b59
KC
11522 ;
11523 return 0;
11524}
5464f5a1
NN
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11528 (eval $ac_compile) 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
49c96104
SE
11535 { ac_try='test -z "$ac_c_werror_flag"
11536 || test ! -s conftest.err'
5464f5a1
NN
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
2ba49b59 11548 ac_hi=$ac_mid
5464f5a1
NN
11549else
11550 echo "$as_me: failed program was:" >&5
11551sed 's/^/| /' conftest.$ac_ext >&5
11552
2ba49b59 11553ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11554fi
11555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11556done
11557case $ac_lo in
11558?*) ac_cv_sizeof_long_long=$ac_lo;;
11559'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11560See \`config.log' for more details." >&5
11561echo "$as_me: error: cannot compute sizeof (long long), 77
11562See \`config.log' for more details." >&2;}
11563 { (exit 1); exit 1; }; } ;;
11564esac
11565else
11566 if test "$cross_compiling" = yes; then
49c96104
SE
11567 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11568See \`config.log' for more details." >&5
11569echo "$as_me: error: cannot run test program while cross compiling
11570See \`config.log' for more details." >&2;}
2ba49b59
KC
11571 { (exit 1); exit 1; }; }
11572else
11573 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
2ba49b59
KC
11579$ac_includes_default
11580long longval () { return (long) (sizeof (long long)); }
11581unsigned long ulongval () { return (long) (sizeof (long long)); }
11582#include <stdio.h>
11583#include <stdlib.h>
11584int
11585main ()
11586{
11587
11588 FILE *f = fopen ("conftest.val", "w");
11589 if (! f)
11590 exit (1);
11591 if (((long) (sizeof (long long))) < 0)
11592 {
11593 long i = longval ();
11594 if (i != ((long) (sizeof (long long))))
11595 exit (1);
11596 fprintf (f, "%ld\n", i);
11597 }
11598 else
11599 {
11600 unsigned long i = ulongval ();
11601 if (i != ((long) (sizeof (long long))))
11602 exit (1);
11603 fprintf (f, "%lu\n", i);
11604 }
11605 exit (ferror (f) || fclose (f) != 0);
11606
11607 ;
11608 return 0;
11609}
5464f5a1 11610_ACEOF
2ba49b59
KC
11611rm -f conftest$ac_exeext
11612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
5464f5a1 11614 ac_status=$?
5464f5a1 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11623else
2ba49b59
KC
11624 echo "$as_me: program exited with status $ac_status" >&5
11625echo "$as_me: failed program was:" >&5
5464f5a1
NN
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
2ba49b59
KC
11628( exit $ac_status )
11629{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11630See \`config.log' for more details." >&5
11631echo "$as_me: error: cannot compute sizeof (long long), 77
11632See \`config.log' for more details." >&2;}
11633 { (exit 1); exit 1; }; }
252b5132 11634fi
2ba49b59
KC
11635rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11636fi
11637fi
11638rm -f conftest.val
6be7c12c 11639else
2ba49b59 11640 ac_cv_sizeof_long_long=0
5464f5a1 11641fi
5464f5a1 11642fi
2ba49b59
KC
11643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11644echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11645cat >>confdefs.h <<_ACEOF
11646#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11647_ACEOF
11648
5464f5a1 11649
2ba49b59 11650fi
252b5132 11651
2ba49b59
KC
11652echo "$as_me:$LINENO: checking for long" >&5
11653echo $ECHO_N "checking for long... $ECHO_C" >&6
11654if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656else
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
2ba49b59 11663$ac_includes_default
5464f5a1
NN
11664int
11665main ()
11666{
2ba49b59
KC
11667if ((long *) 0)
11668 return 0;
11669if (sizeof (long))
11670 return 0;
5464f5a1
NN
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
49c96104
SE
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
5464f5a1
NN
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
2ba49b59 11697 ac_cv_type_long=yes
252b5132 11698else
5464f5a1
NN
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
2ba49b59 11702ac_cv_type_long=no
252b5132 11703fi
5464f5a1 11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11705fi
2ba49b59
KC
11706echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11707echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 11708
2ba49b59
KC
11709echo "$as_me:$LINENO: checking size of long" >&5
11710echo $ECHO_N "checking size of long... $ECHO_C" >&6
11711if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713else
2ba49b59
KC
11714 if test "$ac_cv_type_long" = yes; then
11715 # The cast to unsigned long works around a bug in the HP C Compiler
11716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11718 # This bug is HP SR number 8606223364.
11719 if test "$cross_compiling" = yes; then
11720 # Depending upon the size, compute the lo and hi bounds.
11721cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
2ba49b59 11727$ac_includes_default
5464f5a1
NN
11728int
11729main ()
11730{
2ba49b59
KC
11731static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11732test_array [0] = 0
11733
5464f5a1
NN
11734 ;
11735 return 0;
11736}
11737_ACEOF
11738rm -f conftest.$ac_objext
11739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
49c96104
SE
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
5464f5a1
NN
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
2ba49b59
KC
11760 ac_lo=0 ac_mid=0
11761 while :; do
11762 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h. */
2ba49b59 11768$ac_includes_default
5464f5a1
NN
11769int
11770main ()
11771{
2ba49b59
KC
11772static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11773test_array [0] = 0
11774
5464f5a1
NN
11775 ;
11776 return 0;
11777}
11778_ACEOF
2ba49b59
KC
11779rm -f conftest.$ac_objext
11780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
49c96104
SE
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
5464f5a1
NN
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
2ba49b59 11795 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
2ba49b59 11801 ac_hi=$ac_mid; break
5464f5a1
NN
11802else
11803 echo "$as_me: failed program was:" >&5
11804sed 's/^/| /' conftest.$ac_ext >&5
11805
2ba49b59
KC
11806ac_lo=`expr $ac_mid + 1`
11807 if test $ac_lo -le $ac_mid; then
11808 ac_lo= ac_hi=
11809 break
11810 fi
11811 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 11812fi
2ba49b59
KC
11813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 done
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
2ba49b59 11825$ac_includes_default
5464f5a1
NN
11826int
11827main ()
11828{
2ba49b59
KC
11829static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11830test_array [0] = 0
11831
5464f5a1
NN
11832 ;
11833 return 0;
11834}
11835_ACEOF
2ba49b59
KC
11836rm -f conftest.$ac_objext
11837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11838 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
49c96104
SE
11845 { ac_try='test -z "$ac_c_werror_flag"
11846 || test ! -s conftest.err'
5464f5a1
NN
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
2ba49b59 11852 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
2ba49b59
KC
11858 ac_hi=-1 ac_mid=-1
11859 while :; do
11860 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
2ba49b59 11866$ac_includes_default
5464f5a1
NN
11867int
11868main ()
11869{
2ba49b59
KC
11870static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11871test_array [0] = 0
11872
5464f5a1
NN
11873 ;
11874 return 0;
11875}
11876_ACEOF
2ba49b59
KC
11877rm -f conftest.$ac_objext
11878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
49c96104
SE
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
5464f5a1
NN
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
2ba49b59 11893 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
2ba49b59 11899 ac_lo=$ac_mid; break
5464f5a1
NN
11900else
11901 echo "$as_me: failed program was:" >&5
11902sed 's/^/| /' conftest.$ac_ext >&5
11903
2ba49b59
KC
11904ac_hi=`expr '(' $ac_mid ')' - 1`
11905 if test $ac_mid -le $ac_hi; then
11906 ac_lo= ac_hi=
11907 break
11908 fi
11909 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11910fi
2ba49b59
KC
11911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 done
11913else
11914 echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917ac_lo= ac_hi=
11918fi
11919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920fi
11921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11922# Binary search between lo and hi bounds.
11923while test "x$ac_lo" != "x$ac_hi"; do
11924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11925 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
2ba49b59 11931$ac_includes_default
5464f5a1
NN
11932int
11933main ()
11934{
2ba49b59
KC
11935static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11936test_array [0] = 0
11937
5464f5a1
NN
11938 ;
11939 return 0;
11940}
11941_ACEOF
2ba49b59
KC
11942rm -f conftest.$ac_objext
11943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
49c96104
SE
11951 { ac_try='test -z "$ac_c_werror_flag"
11952 || test ! -s conftest.err'
5464f5a1
NN
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
2ba49b59 11958 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
2ba49b59 11964 ac_hi=$ac_mid
5464f5a1
NN
11965else
11966 echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
2ba49b59 11969ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 11970fi
2ba49b59
KC
11971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11972done
11973case $ac_lo in
11974?*) ac_cv_sizeof_long=$ac_lo;;
11975'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11976See \`config.log' for more details." >&5
11977echo "$as_me: error: cannot compute sizeof (long), 77
11978See \`config.log' for more details." >&2;}
11979 { (exit 1); exit 1; }; } ;;
11980esac
11981else
11982 if test "$cross_compiling" = yes; then
49c96104
SE
11983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11984See \`config.log' for more details." >&5
11985echo "$as_me: error: cannot run test program while cross compiling
11986See \`config.log' for more details." >&2;}
2ba49b59 11987 { (exit 1); exit 1; }; }
2e0fbf77
JW
11988else
11989 cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
2ba49b59
KC
11995$ac_includes_default
11996long longval () { return (long) (sizeof (long)); }
11997unsigned long ulongval () { return (long) (sizeof (long)); }
11998#include <stdio.h>
11999#include <stdlib.h>
2e0fbf77
JW
12000int
12001main ()
12002{
12003
2ba49b59
KC
12004 FILE *f = fopen ("conftest.val", "w");
12005 if (! f)
12006 exit (1);
12007 if (((long) (sizeof (long))) < 0)
12008 {
12009 long i = longval ();
12010 if (i != ((long) (sizeof (long))))
12011 exit (1);
12012 fprintf (f, "%ld\n", i);
12013 }
12014 else
12015 {
12016 unsigned long i = ulongval ();
12017 if (i != ((long) (sizeof (long))))
12018 exit (1);
12019 fprintf (f, "%lu\n", i);
12020 }
12021 exit (ferror (f) || fclose (f) != 0);
12022
2e0fbf77
JW
12023 ;
12024 return 0;
12025}
12026_ACEOF
2ba49b59
KC
12027rm -f conftest$ac_exeext
12028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
2e0fbf77
JW
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
2ba49b59 12038 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12039else
2ba49b59
KC
12040 echo "$as_me: program exited with status $ac_status" >&5
12041echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
2ba49b59
KC
12044( exit $ac_status )
12045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12046See \`config.log' for more details." >&5
12047echo "$as_me: error: cannot compute sizeof (long), 77
12048See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }
2e0fbf77 12050fi
2ba49b59 12051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12052fi
2ba49b59
KC
12053fi
12054rm -f conftest.val
12055else
12056 ac_cv_sizeof_long=0
12057fi
12058fi
12059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12060echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12061cat >>confdefs.h <<_ACEOF
12062#define SIZEOF_LONG $ac_cv_sizeof_long
12063_ACEOF
12064
12065
12066if test "x${ac_cv_sizeof_long}" = "x8"; then
12067 host64=true
12068 BFD_HOST_64BIT_LONG=1
12069 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12070 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12071elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12072 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12073 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12074fi
12075
12076if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12077 BFD_HOST_64_BIT_DEFINED=1
12078 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12079 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12080fi
12081
12082
12083
12084
12085
12086
12087
12088# Put a plausible default for CC_FOR_BUILD in Makefile.
12089if test -z "$CC_FOR_BUILD"; then
12090 if test "x$cross_compiling" = "xno"; then
12091 CC_FOR_BUILD='$(CC)'
12092 else
12093 CC_FOR_BUILD=gcc
12094 fi
12095fi
12096
12097# Also set EXEEXT_FOR_BUILD.
12098if test "x$cross_compiling" = "xno"; then
12099 EXEEXT_FOR_BUILD='$(EXEEXT)'
12100else
12101 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12102echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12103if test "${bfd_cv_build_exeext+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 rm -f conftest*
12107 echo 'int main () { return 0; }' > conftest.c
12108 bfd_cv_build_exeext=
12109 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12110 for file in conftest.*; do
12111 case $file in
12112 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12113 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12114 esac
12115 done
12116 rm -f conftest*
12117 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12118fi
12119echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12120echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12121 EXEEXT_FOR_BUILD=""
12122 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12123fi
12124
12125
12126
12127
12128
12129
12130
12131
12132for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12133do
12134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12135if eval "test \"\${$as_ac_Header+set}\" = set"; then
12136 echo "$as_me:$LINENO: checking for $ac_header" >&5
12137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12138if eval "test \"\${$as_ac_Header+set}\" = set"; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140fi
12141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12143else
12144 # Is the header compilable?
12145echo "$as_me:$LINENO: checking $ac_header usability" >&5
12146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12147cat >conftest.$ac_ext <<_ACEOF
12148/* confdefs.h. */
12149_ACEOF
12150cat confdefs.h >>conftest.$ac_ext
12151cat >>conftest.$ac_ext <<_ACEOF
12152/* end confdefs.h. */
12153$ac_includes_default
12154#include <$ac_header>
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'
2ba49b59
KC
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
12178 ac_header_compiler=yes
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183ac_header_compiler=no
12184fi
12185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12187echo "${ECHO_T}$ac_header_compiler" >&6
12188
12189# Is the header present?
12190echo "$as_me:$LINENO: checking $ac_header presence" >&5
12191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12192cat >conftest.$ac_ext <<_ACEOF
12193/* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
12198#include <$ac_header>
12199_ACEOF
12200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } >/dev/null; then
12208 if test -s conftest.err; then
12209 ac_cpp_err=$ac_c_preproc_warn_flag
12210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12211 else
12212 ac_cpp_err=
12213 fi
12214else
12215 ac_cpp_err=yes
12216fi
12217if test -z "$ac_cpp_err"; then
12218 ac_header_preproc=yes
12219else
12220 echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 ac_header_preproc=no
12224fi
12225rm -f conftest.err conftest.$ac_ext
12226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227echo "${ECHO_T}$ac_header_preproc" >&6
12228
12229# So? What about this header?
12230case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 yes:no: )
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12237 ;;
12238 no:yes:* )
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12246echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12251 (
12252 cat <<\_ASBOX
12253## ------------------------------------------ ##
12254## Report this to the AC_PACKAGE_NAME lists. ##
12255## ------------------------------------------ ##
12256_ASBOX
12257 ) |
12258 sed "s/^/$as_me: WARNING: /" >&2
12259 ;;
12260esac
12261echo "$as_me:$LINENO: checking for $ac_header" >&5
12262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263if eval "test \"\${$as_ac_Header+set}\" = set"; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265else
12266 eval "$as_ac_Header=\$ac_header_preproc"
12267fi
12268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12270
12271fi
12272if test `eval echo '${'$as_ac_Header'}'` = yes; then
12273 cat >>confdefs.h <<_ACEOF
12274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12275_ACEOF
12276
12277fi
12278
12279done
12280
12281
12282
12283
12284for ac_header in fcntl.h sys/file.h sys/time.h
12285do
12286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287if eval "test \"\${$as_ac_Header+set}\" = set"; then
12288 echo "$as_me:$LINENO: checking for $ac_header" >&5
12289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12290if eval "test \"\${$as_ac_Header+set}\" = set"; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292fi
12293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12295else
12296 # Is the header compilable?
12297echo "$as_me:$LINENO: checking $ac_header usability" >&5
12298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12299cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h. */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h. */
12305$ac_includes_default
12306#include <$ac_header>
12307_ACEOF
12308rm -f conftest.$ac_objext
12309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
49c96104
SE
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
2ba49b59
KC
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_header_compiler=yes
12331else
12332 echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335ac_header_compiler=no
12336fi
12337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339echo "${ECHO_T}$ac_header_compiler" >&6
12340
12341# Is the header present?
12342echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12344cat >conftest.$ac_ext <<_ACEOF
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350#include <$ac_header>
12351_ACEOF
12352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } >/dev/null; then
12360 if test -s conftest.err; then
12361 ac_cpp_err=$ac_c_preproc_warn_flag
12362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12363 else
12364 ac_cpp_err=
12365 fi
12366else
12367 ac_cpp_err=yes
12368fi
12369if test -z "$ac_cpp_err"; then
12370 ac_header_preproc=yes
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_header_preproc=no
12376fi
12377rm -f conftest.err conftest.$ac_ext
12378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379echo "${ECHO_T}$ac_header_preproc" >&6
12380
12381# So? What about this header?
12382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12383 yes:no: )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388 ac_header_preproc=yes
12389 ;;
12390 no:yes:* )
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12398echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12403 (
12404 cat <<\_ASBOX
12405## ------------------------------------------ ##
12406## Report this to the AC_PACKAGE_NAME lists. ##
12407## ------------------------------------------ ##
12408_ASBOX
12409 ) |
12410 sed "s/^/$as_me: WARNING: /" >&2
12411 ;;
12412esac
12413echo "$as_me:$LINENO: checking for $ac_header" >&5
12414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12415if eval "test \"\${$as_ac_Header+set}\" = set"; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417else
12418 eval "$as_ac_Header=\$ac_header_preproc"
12419fi
12420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12422
12423fi
12424if test `eval echo '${'$as_ac_Header'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12427_ACEOF
12428
12429fi
12430
12431done
12432
d5efd9fc
AM
12433
12434
12435inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12436
12437acx_cv_header_stdint=stddef.h
12438acx_cv_header_stdint_kind="(already complete)"
12439for i in stdint.h $inttype_headers; do
12440 unset ac_cv_type_uintptr_t
12441 unset ac_cv_type_uintmax_t
12442 unset ac_cv_type_int_least32_t
12443 unset ac_cv_type_int_fast32_t
12444 unset ac_cv_type_uint64_t
12445 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12446 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12447echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12448if test "${ac_cv_type_uintmax_t+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450else
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457#include <sys/types.h>
12458#include <$i>
12459
12460int
12461main ()
12462{
12463if ((uintmax_t *) 0)
12464 return 0;
12465if (sizeof (uintmax_t))
12466 return 0;
12467 ;
12468 return 0;
12469}
12470_ACEOF
12471rm -f conftest.$ac_objext
12472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_type_uintmax_t=yes
12494else
12495 echo "$as_me: failed program was:" >&5
12496sed 's/^/| /' conftest.$ac_ext >&5
12497
12498ac_cv_type_uintmax_t=no
12499fi
12500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501fi
12502echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12503echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12504if test $ac_cv_type_uintmax_t = yes; then
12505 acx_cv_header_stdint=$i
12506else
12507 continue
12508fi
12509
12510 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12511echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12512if test "${ac_cv_type_uintptr_t+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514else
12515 cat >conftest.$ac_ext <<_ACEOF
12516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
12520/* end confdefs.h. */
12521#include <sys/types.h>
12522#include <$i>
12523
12524int
12525main ()
12526{
12527if ((uintptr_t *) 0)
12528 return 0;
12529if (sizeof (uintptr_t))
12530 return 0;
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_type_uintptr_t=yes
12558else
12559 echo "$as_me: failed program was:" >&5
12560sed 's/^/| /' conftest.$ac_ext >&5
12561
12562ac_cv_type_uintptr_t=no
12563fi
12564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565fi
12566echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12567echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12568if test $ac_cv_type_uintptr_t = yes; then
12569 :
12570else
12571 acx_cv_header_stdint_kind="(mostly complete)"
12572fi
12573
12574 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12575echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12576if test "${ac_cv_type_int_least32_t+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12578else
12579 cat >conftest.$ac_ext <<_ACEOF
12580/* confdefs.h. */
12581_ACEOF
12582cat confdefs.h >>conftest.$ac_ext
12583cat >>conftest.$ac_ext <<_ACEOF
12584/* end confdefs.h. */
12585#include <sys/types.h>
12586#include <$i>
12587
12588int
12589main ()
12590{
12591if ((int_least32_t *) 0)
12592 return 0;
12593if (sizeof (int_least32_t))
12594 return 0;
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext
12600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_type_int_least32_t=yes
12622else
12623 echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
12626ac_cv_type_int_least32_t=no
12627fi
12628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629fi
12630echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12631echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12632if test $ac_cv_type_int_least32_t = yes; then
12633 :
12634else
12635 acx_cv_header_stdint_kind="(mostly complete)"
12636fi
12637
12638 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12639echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12640if test "${ac_cv_type_int_fast32_t+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643 cat >conftest.$ac_ext <<_ACEOF
12644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649#include <sys/types.h>
12650#include <$i>
12651
12652int
12653main ()
12654{
12655if ((int_fast32_t *) 0)
12656 return 0;
12657if (sizeof (int_fast32_t))
12658 return 0;
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext
12664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag"
12673 || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest.$ac_objext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_type_int_fast32_t=yes
12686else
12687 echo "$as_me: failed program was:" >&5
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
12690ac_cv_type_int_fast32_t=no
12691fi
12692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12693fi
12694echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12695echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12696if test $ac_cv_type_int_fast32_t = yes; then
12697 :
12698else
12699 acx_cv_header_stdint_kind="(mostly complete)"
12700fi
12701
12702 echo "$as_me:$LINENO: checking for uint64_t" >&5
12703echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12704if test "${ac_cv_type_uint64_t+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706else
12707 cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713#include <sys/types.h>
12714#include <$i>
12715
12716int
12717main ()
12718{
12719if ((uint64_t *) 0)
12720 return 0;
12721if (sizeof (uint64_t))
12722 return 0;
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_type_uint64_t=yes
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754ac_cv_type_uint64_t=no
12755fi
12756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757fi
12758echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12759echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12760if test $ac_cv_type_uint64_t = yes; then
12761 :
12762else
12763 acx_cv_header_stdint_kind="(lacks uint64_t)"
12764fi
12765
12766 break
12767done
12768if test "$acx_cv_header_stdint" = stddef.h; then
12769 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12770 for i in stdint.h $inttype_headers; do
12771 unset ac_cv_type_uintptr_t
12772 unset ac_cv_type_uint32_t
12773 unset ac_cv_type_uint64_t
12774 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12775 echo "$as_me:$LINENO: checking for uint32_t" >&5
12776echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12777if test "${ac_cv_type_uint32_t+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780 cat >conftest.$ac_ext <<_ACEOF
12781/* confdefs.h. */
12782_ACEOF
12783cat confdefs.h >>conftest.$ac_ext
12784cat >>conftest.$ac_ext <<_ACEOF
12785/* end confdefs.h. */
12786#include <sys/types.h>
12787#include <$i>
12788
12789int
12790main ()
12791{
12792if ((uint32_t *) 0)
12793 return 0;
12794if (sizeof (uint32_t))
12795 return 0;
12796 ;
12797 return 0;
12798}
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_type_uint32_t=yes
12823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827ac_cv_type_uint32_t=no
12828fi
12829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12830fi
12831echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12832echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12833if test $ac_cv_type_uint32_t = yes; then
12834 acx_cv_header_stdint=$i
12835else
12836 continue
12837fi
12838
12839 echo "$as_me:$LINENO: checking for uint64_t" >&5
12840echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12841if test "${ac_cv_type_uint64_t+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843else
12844 cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850#include <sys/types.h>
12851#include <$i>
12852
12853int
12854main ()
12855{
12856if ((uint64_t *) 0)
12857 return 0;
12858if (sizeof (uint64_t))
12859 return 0;
12860 ;
12861 return 0;
12862}
12863_ACEOF
12864rm -f conftest.$ac_objext
12865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866 (eval $ac_compile) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_type_uint64_t=yes
12887else
12888 echo "$as_me: failed program was:" >&5
12889sed 's/^/| /' conftest.$ac_ext >&5
12890
12891ac_cv_type_uint64_t=no
12892fi
12893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12894fi
12895echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12896echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12897
12898 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12899echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12900if test "${ac_cv_type_uintptr_t+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
12903 cat >conftest.$ac_ext <<_ACEOF
12904/* confdefs.h. */
12905_ACEOF
12906cat confdefs.h >>conftest.$ac_ext
12907cat >>conftest.$ac_ext <<_ACEOF
12908/* end confdefs.h. */
12909#include <sys/types.h>
12910#include <$i>
12911
12912int
12913main ()
12914{
12915if ((uintptr_t *) 0)
12916 return 0;
12917if (sizeof (uintptr_t))
12918 return 0;
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext
12924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_type_uintptr_t=yes
12946else
12947 echo "$as_me: failed program was:" >&5
12948sed 's/^/| /' conftest.$ac_ext >&5
12949
12950ac_cv_type_uintptr_t=no
12951fi
12952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12953fi
12954echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12955echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12956
12957 break
12958 done
12959fi
12960if test "$acx_cv_header_stdint" = stddef.h; then
12961 acx_cv_header_stdint_kind="(u_intXX_t style)"
12962 for i in sys/types.h $inttype_headers; do
12963 unset ac_cv_type_u_int32_t
12964 unset ac_cv_type_u_int64_t
12965 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12966 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12967echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12968if test "${ac_cv_type_u_int32_t+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970else
12971 cat >conftest.$ac_ext <<_ACEOF
12972/* confdefs.h. */
12973_ACEOF
12974cat confdefs.h >>conftest.$ac_ext
12975cat >>conftest.$ac_ext <<_ACEOF
12976/* end confdefs.h. */
12977#include <sys/types.h>
12978#include <$i>
12979
12980int
12981main ()
12982{
12983if ((u_int32_t *) 0)
12984 return 0;
12985if (sizeof (u_int32_t))
12986 return 0;
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991rm -f conftest.$ac_objext
12992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_type_u_int32_t=yes
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018ac_cv_type_u_int32_t=no
13019fi
13020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021fi
13022echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13023echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13024if test $ac_cv_type_u_int32_t = yes; then
13025 acx_cv_header_stdint=$i
13026else
13027 continue
13028fi
13029
13030 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13031echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13032if test "${ac_cv_type_u_int64_t+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 cat >conftest.$ac_ext <<_ACEOF
13036/* confdefs.h. */
13037_ACEOF
13038cat confdefs.h >>conftest.$ac_ext
13039cat >>conftest.$ac_ext <<_ACEOF
13040/* end confdefs.h. */
13041#include <sys/types.h>
13042#include <$i>
13043
13044int
13045main ()
13046{
13047if ((u_int64_t *) 0)
13048 return 0;
13049if (sizeof (u_int64_t))
13050 return 0;
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext
13056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_type_u_int64_t=yes
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
13082ac_cv_type_u_int64_t=no
13083fi
13084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085fi
13086echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13087echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13088
13089 break
13090 done
13091fi
13092if test "$acx_cv_header_stdint" = stddef.h; then
13093 acx_cv_header_stdint_kind="(using manual detection)"
13094fi
13095
13096test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13097test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13098test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13099test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13100test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13101
13102# ----------------- Summarize what we found so far
13103
13104echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13105echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13106
13107case `$as_basename bfd_stdint.h ||
13108$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13109 Xbfd_stdint.h : 'X\(//\)$' \| \
13110 Xbfd_stdint.h : 'X\(/\)$' \| \
13111 . : '\(.\)' 2>/dev/null ||
13112echo X/bfd_stdint.h |
13113 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13114 /^X\/\(\/\/\)$/{ s//\1/; q; }
13115 /^X\/\(\/\).*/{ s//\1/; q; }
13116 s/.*/./; q'` in
13117 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13118echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13119 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13120echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13121 *) ;;
13122esac
13123
13124echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13125echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13126
13127# ----------------- done included file, check C basic types --------
13128
13129# Lacking an uintptr_t? Test size of void *
13130case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13131 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13132echo $ECHO_N "checking for void *... $ECHO_C" >&6
13133if test "${ac_cv_type_void_p+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135else
13136 cat >conftest.$ac_ext <<_ACEOF
13137/* confdefs.h. */
13138_ACEOF
13139cat confdefs.h >>conftest.$ac_ext
13140cat >>conftest.$ac_ext <<_ACEOF
13141/* end confdefs.h. */
13142$ac_includes_default
13143int
13144main ()
13145{
13146if ((void * *) 0)
13147 return 0;
13148if (sizeof (void *))
13149 return 0;
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext
13155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_c_werror_flag"
13164 || test ! -s conftest.err'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13176 ac_cv_type_void_p=yes
13177else
13178 echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
13181ac_cv_type_void_p=no
13182fi
13183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13184fi
13185echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13186echo "${ECHO_T}$ac_cv_type_void_p" >&6
13187
13188echo "$as_me:$LINENO: checking size of void *" >&5
13189echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13190if test "${ac_cv_sizeof_void_p+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 if test "$ac_cv_type_void_p" = yes; then
13194 # The cast to unsigned long works around a bug in the HP C Compiler
13195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13197 # This bug is HP SR number 8606223364.
13198 if test "$cross_compiling" = yes; then
13199 # Depending upon the size, compute the lo and hi bounds.
13200cat >conftest.$ac_ext <<_ACEOF
13201/* confdefs.h. */
13202_ACEOF
13203cat confdefs.h >>conftest.$ac_ext
13204cat >>conftest.$ac_ext <<_ACEOF
13205/* end confdefs.h. */
13206$ac_includes_default
13207int
13208main ()
13209{
13210static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13211test_array [0] = 0
13212
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217rm -f conftest.$ac_objext
13218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_lo=0 ac_mid=0
13240 while :; do
13241 cat >conftest.$ac_ext <<_ACEOF
13242/* confdefs.h. */
13243_ACEOF
13244cat confdefs.h >>conftest.$ac_ext
13245cat >>conftest.$ac_ext <<_ACEOF
13246/* end confdefs.h. */
13247$ac_includes_default
13248int
13249main ()
13250{
13251static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13252test_array [0] = 0
13253
13254 ;
13255 return 0;
13256}
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_hi=$ac_mid; break
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285ac_lo=`expr $ac_mid + 1`
13286 if test $ac_lo -le $ac_mid; then
13287 ac_lo= ac_hi=
13288 break
13289 fi
13290 ac_mid=`expr 2 '*' $ac_mid + 1`
13291fi
13292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13293 done
13294else
13295 echo "$as_me: failed program was:" >&5
13296sed 's/^/| /' conftest.$ac_ext >&5
13297
13298cat >conftest.$ac_ext <<_ACEOF
13299/* confdefs.h. */
13300_ACEOF
13301cat confdefs.h >>conftest.$ac_ext
13302cat >>conftest.$ac_ext <<_ACEOF
13303/* end confdefs.h. */
13304$ac_includes_default
13305int
13306main ()
13307{
13308static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13309test_array [0] = 0
13310
13311 ;
13312 return 0;
13313}
13314_ACEOF
13315rm -f conftest.$ac_objext
13316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_hi=-1 ac_mid=-1
13338 while :; do
13339 cat >conftest.$ac_ext <<_ACEOF
13340/* confdefs.h. */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h. */
13345$ac_includes_default
13346int
13347main ()
13348{
13349static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13350test_array [0] = 0
13351
13352 ;
13353 return 0;
13354}
13355_ACEOF
13356rm -f conftest.$ac_objext
13357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_lo=$ac_mid; break
13379else
13380 echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383ac_hi=`expr '(' $ac_mid ')' - 1`
13384 if test $ac_mid -le $ac_hi; then
13385 ac_lo= ac_hi=
13386 break
13387 fi
13388 ac_mid=`expr 2 '*' $ac_mid`
13389fi
13390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391 done
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396ac_lo= ac_hi=
13397fi
13398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399fi
13400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13401# Binary search between lo and hi bounds.
13402while test "x$ac_lo" != "x$ac_hi"; do
13403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13404 cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
13410$ac_includes_default
13411int
13412main ()
13413{
13414static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13415test_array [0] = 0
13416
13417 ;
13418 return 0;
13419}
13420_ACEOF
13421rm -f conftest.$ac_objext
13422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13423 (eval $ac_compile) 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_hi=$ac_mid
13444else
13445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448ac_lo=`expr '(' $ac_mid ')' + 1`
13449fi
13450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13451done
13452case $ac_lo in
13453?*) ac_cv_sizeof_void_p=$ac_lo;;
13454'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13455See \`config.log' for more details." >&5
13456echo "$as_me: error: cannot compute sizeof (void *), 77
13457See \`config.log' for more details." >&2;}
13458 { (exit 1); exit 1; }; } ;;
13459esac
13460else
13461 if test "$cross_compiling" = yes; then
13462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13463See \`config.log' for more details." >&5
13464echo "$as_me: error: cannot run test program while cross compiling
13465See \`config.log' for more details." >&2;}
13466 { (exit 1); exit 1; }; }
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$ac_includes_default
13475long longval () { return (long) (sizeof (void *)); }
13476unsigned long ulongval () { return (long) (sizeof (void *)); }
13477#include <stdio.h>
13478#include <stdlib.h>
13479int
13480main ()
13481{
13482
13483 FILE *f = fopen ("conftest.val", "w");
13484 if (! f)
13485 exit (1);
13486 if (((long) (sizeof (void *))) < 0)
13487 {
13488 long i = longval ();
13489 if (i != ((long) (sizeof (void *))))
13490 exit (1);
13491 fprintf (f, "%ld\n", i);
13492 }
13493 else
13494 {
13495 unsigned long i = ulongval ();
13496 if (i != ((long) (sizeof (void *))))
13497 exit (1);
13498 fprintf (f, "%lu\n", i);
13499 }
13500 exit (ferror (f) || fclose (f) != 0);
13501
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest$ac_exeext
13507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_sizeof_void_p=`cat conftest.val`
13518else
13519 echo "$as_me: program exited with status $ac_status" >&5
13520echo "$as_me: failed program was:" >&5
13521sed 's/^/| /' conftest.$ac_ext >&5
13522
13523( exit $ac_status )
13524{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13525See \`config.log' for more details." >&5
13526echo "$as_me: error: cannot compute sizeof (void *), 77
13527See \`config.log' for more details." >&2;}
13528 { (exit 1); exit 1; }; }
13529fi
13530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13531fi
13532fi
13533rm -f conftest.val
13534else
13535 ac_cv_sizeof_void_p=0
13536fi
13537fi
13538echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13539echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13540cat >>confdefs.h <<_ACEOF
13541#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13542_ACEOF
13543
13544 ;;
13545esac
13546
13547# Lacking an uint64_t? Test size of long
13548case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13549 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13550echo $ECHO_N "checking for long... $ECHO_C" >&6
13551if test "${ac_cv_type_long+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553else
13554 cat >conftest.$ac_ext <<_ACEOF
13555/* confdefs.h. */
13556_ACEOF
13557cat confdefs.h >>conftest.$ac_ext
13558cat >>conftest.$ac_ext <<_ACEOF
13559/* end confdefs.h. */
13560$ac_includes_default
13561int
13562main ()
13563{
13564if ((long *) 0)
13565 return 0;
13566if (sizeof (long))
13567 return 0;
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext
13573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_type_long=yes
13595else
13596 echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
13599ac_cv_type_long=no
13600fi
13601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602fi
13603echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13604echo "${ECHO_T}$ac_cv_type_long" >&6
13605
13606echo "$as_me:$LINENO: checking size of long" >&5
13607echo $ECHO_N "checking size of long... $ECHO_C" >&6
13608if test "${ac_cv_sizeof_long+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610else
13611 if test "$ac_cv_type_long" = yes; then
13612 # The cast to unsigned long works around a bug in the HP C Compiler
13613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13615 # This bug is HP SR number 8606223364.
13616 if test "$cross_compiling" = yes; then
13617 # Depending upon the size, compute the lo and hi bounds.
13618cat >conftest.$ac_ext <<_ACEOF
13619/* confdefs.h. */
13620_ACEOF
13621cat confdefs.h >>conftest.$ac_ext
13622cat >>conftest.$ac_ext <<_ACEOF
13623/* end confdefs.h. */
13624$ac_includes_default
13625int
13626main ()
13627{
13628static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13629test_array [0] = 0
13630
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635rm -f conftest.$ac_objext
13636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_lo=0 ac_mid=0
13658 while :; do
13659 cat >conftest.$ac_ext <<_ACEOF
13660/* confdefs.h. */
13661_ACEOF
13662cat confdefs.h >>conftest.$ac_ext
13663cat >>conftest.$ac_ext <<_ACEOF
13664/* end confdefs.h. */
13665$ac_includes_default
13666int
13667main ()
13668{
13669static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13670test_array [0] = 0
13671
13672 ;
13673 return 0;
13674}
13675_ACEOF
13676rm -f conftest.$ac_objext
13677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -z "$ac_c_werror_flag"
13686 || test ! -s conftest.err'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_hi=$ac_mid; break
13699else
13700 echo "$as_me: failed program was:" >&5
13701sed 's/^/| /' conftest.$ac_ext >&5
13702
13703ac_lo=`expr $ac_mid + 1`
13704 if test $ac_lo -le $ac_mid; then
13705 ac_lo= ac_hi=
13706 break
13707 fi
13708 ac_mid=`expr 2 '*' $ac_mid + 1`
13709fi
13710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 done
13712else
13713 echo "$as_me: failed program was:" >&5
13714sed 's/^/| /' conftest.$ac_ext >&5
13715
13716cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
13722$ac_includes_default
13723int
13724main ()
13725{
13726static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13727test_array [0] = 0
13728
13729 ;
13730 return 0;
13731}
13732_ACEOF
13733rm -f conftest.$ac_objext
13734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_hi=-1 ac_mid=-1
13756 while :; do
13757 cat >conftest.$ac_ext <<_ACEOF
13758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
13763$ac_includes_default
13764int
13765main ()
13766{
13767static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13768test_array [0] = 0
13769
13770 ;
13771 return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext
13775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_lo=$ac_mid; break
13797else
13798 echo "$as_me: failed program was:" >&5
13799sed 's/^/| /' conftest.$ac_ext >&5
13800
13801ac_hi=`expr '(' $ac_mid ')' - 1`
13802 if test $ac_mid -le $ac_hi; then
13803 ac_lo= ac_hi=
13804 break
13805 fi
13806 ac_mid=`expr 2 '*' $ac_mid`
13807fi
13808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 done
13810else
13811 echo "$as_me: failed program was:" >&5
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
13814ac_lo= ac_hi=
13815fi
13816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817fi
13818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819# Binary search between lo and hi bounds.
13820while test "x$ac_lo" != "x$ac_hi"; do
13821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13822 cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
13828$ac_includes_default
13829int
13830main ()
13831{
13832static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13833test_array [0] = 0
13834
13835 ;
13836 return 0;
13837}
13838_ACEOF
13839rm -f conftest.$ac_objext
13840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_hi=$ac_mid
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866ac_lo=`expr '(' $ac_mid ')' + 1`
13867fi
13868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869done
13870case $ac_lo in
13871?*) ac_cv_sizeof_long=$ac_lo;;
13872'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13873See \`config.log' for more details." >&5
13874echo "$as_me: error: cannot compute sizeof (long), 77
13875See \`config.log' for more details." >&2;}
13876 { (exit 1); exit 1; }; } ;;
13877esac
13878else
13879 if test "$cross_compiling" = yes; then
13880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13881See \`config.log' for more details." >&5
13882echo "$as_me: error: cannot run test program while cross compiling
13883See \`config.log' for more details." >&2;}
13884 { (exit 1); exit 1; }; }
13885else
13886 cat >conftest.$ac_ext <<_ACEOF
13887/* confdefs.h. */
13888_ACEOF
13889cat confdefs.h >>conftest.$ac_ext
13890cat >>conftest.$ac_ext <<_ACEOF
13891/* end confdefs.h. */
13892$ac_includes_default
13893long longval () { return (long) (sizeof (long)); }
13894unsigned long ulongval () { return (long) (sizeof (long)); }
13895#include <stdio.h>
13896#include <stdlib.h>
13897int
13898main ()
13899{
13900
13901 FILE *f = fopen ("conftest.val", "w");
13902 if (! f)
13903 exit (1);
13904 if (((long) (sizeof (long))) < 0)
13905 {
13906 long i = longval ();
13907 if (i != ((long) (sizeof (long))))
13908 exit (1);
13909 fprintf (f, "%ld\n", i);
13910 }
13911 else
13912 {
13913 unsigned long i = ulongval ();
13914 if (i != ((long) (sizeof (long))))
13915 exit (1);
13916 fprintf (f, "%lu\n", i);
13917 }
13918 exit (ferror (f) || fclose (f) != 0);
13919
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest$ac_exeext
13925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_cv_sizeof_long=`cat conftest.val`
13936else
13937 echo "$as_me: program exited with status $ac_status" >&5
13938echo "$as_me: failed program was:" >&5
13939sed 's/^/| /' conftest.$ac_ext >&5
13940
13941( exit $ac_status )
13942{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13943See \`config.log' for more details." >&5
13944echo "$as_me: error: cannot compute sizeof (long), 77
13945See \`config.log' for more details." >&2;}
13946 { (exit 1); exit 1; }; }
13947fi
13948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13949fi
13950fi
13951rm -f conftest.val
13952else
13953 ac_cv_sizeof_long=0
13954fi
13955fi
13956echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13957echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13958cat >>confdefs.h <<_ACEOF
13959#define SIZEOF_LONG $ac_cv_sizeof_long
13960_ACEOF
13961
13962 ;;
13963esac
13964
13965if test $acx_cv_header_stdint = stddef.h; then
13966 # Lacking a good header? Test size of everything and deduce all types.
13967 echo "$as_me:$LINENO: checking for int" >&5
13968echo $ECHO_N "checking for int... $ECHO_C" >&6
13969if test "${ac_cv_type_int+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972 cat >conftest.$ac_ext <<_ACEOF
13973/* confdefs.h. */
13974_ACEOF
13975cat confdefs.h >>conftest.$ac_ext
13976cat >>conftest.$ac_ext <<_ACEOF
13977/* end confdefs.h. */
13978$ac_includes_default
13979int
13980main ()
13981{
13982if ((int *) 0)
13983 return 0;
13984if (sizeof (int))
13985 return 0;
13986 ;
13987 return 0;
13988}
13989_ACEOF
13990rm -f conftest.$ac_objext
13991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag"
14000 || test ! -s conftest.err'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_cv_type_int=yes
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017ac_cv_type_int=no
14018fi
14019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14020fi
14021echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14022echo "${ECHO_T}$ac_cv_type_int" >&6
14023
14024echo "$as_me:$LINENO: checking size of int" >&5
14025echo $ECHO_N "checking size of int... $ECHO_C" >&6
14026if test "${ac_cv_sizeof_int+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028else
14029 if test "$ac_cv_type_int" = yes; then
14030 # The cast to unsigned long works around a bug in the HP C Compiler
14031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14033 # This bug is HP SR number 8606223364.
14034 if test "$cross_compiling" = yes; then
14035 # Depending upon the size, compute the lo and hi bounds.
14036cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
14042$ac_includes_default
14043int
14044main ()
14045{
14046static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14047test_array [0] = 0
14048
14049 ;
14050 return 0;
14051}
14052_ACEOF
14053rm -f conftest.$ac_objext
14054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055 (eval $ac_compile) 2>conftest.er1
14056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag"
14063 || test ! -s conftest.err'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_lo=0 ac_mid=0
14076 while :; do
14077 cat >conftest.$ac_ext <<_ACEOF
14078/* confdefs.h. */
14079_ACEOF
14080cat confdefs.h >>conftest.$ac_ext
14081cat >>conftest.$ac_ext <<_ACEOF
14082/* end confdefs.h. */
14083$ac_includes_default
14084int
14085main ()
14086{
14087static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14088test_array [0] = 0
14089
14090 ;
14091 return 0;
14092}
14093_ACEOF
14094rm -f conftest.$ac_objext
14095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_hi=$ac_mid; break
14117else
14118 echo "$as_me: failed program was:" >&5
14119sed 's/^/| /' conftest.$ac_ext >&5
14120
14121ac_lo=`expr $ac_mid + 1`
14122 if test $ac_lo -le $ac_mid; then
14123 ac_lo= ac_hi=
14124 break
14125 fi
14126 ac_mid=`expr 2 '*' $ac_mid + 1`
14127fi
14128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14129 done
14130else
14131 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5
14133
14134cat >conftest.$ac_ext <<_ACEOF
14135/* confdefs.h. */
14136_ACEOF
14137cat confdefs.h >>conftest.$ac_ext
14138cat >>conftest.$ac_ext <<_ACEOF
14139/* end confdefs.h. */
14140$ac_includes_default
14141int
14142main ()
14143{
14144static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14145test_array [0] = 0
14146
14147 ;
14148 return 0;
14149}
14150_ACEOF
14151rm -f conftest.$ac_objext
14152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_hi=-1 ac_mid=-1
14174 while :; do
14175 cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181$ac_includes_default
14182int
14183main ()
14184{
14185static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14186test_array [0] = 0
14187
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag"
14202 || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_lo=$ac_mid; break
14215else
14216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219ac_hi=`expr '(' $ac_mid ')' - 1`
14220 if test $ac_mid -le $ac_hi; then
14221 ac_lo= ac_hi=
14222 break
14223 fi
14224 ac_mid=`expr 2 '*' $ac_mid`
14225fi
14226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 done
14228else
14229 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5
14231
14232ac_lo= ac_hi=
14233fi
14234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235fi
14236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237# Binary search between lo and hi bounds.
14238while test "x$ac_lo" != "x$ac_hi"; do
14239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247int
14248main ()
14249{
14250static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14251test_array [0] = 0
14252
14253 ;
14254 return 0;
14255}
14256_ACEOF
14257rm -f conftest.$ac_objext
14258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_hi=$ac_mid
14280else
14281 echo "$as_me: failed program was:" >&5
14282sed 's/^/| /' conftest.$ac_ext >&5
14283
14284ac_lo=`expr '(' $ac_mid ')' + 1`
14285fi
14286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287done
14288case $ac_lo in
14289?*) ac_cv_sizeof_int=$ac_lo;;
14290'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14291See \`config.log' for more details." >&5
14292echo "$as_me: error: cannot compute sizeof (int), 77
14293See \`config.log' for more details." >&2;}
14294 { (exit 1); exit 1; }; } ;;
14295esac
14296else
14297 if test "$cross_compiling" = yes; then
14298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14299See \`config.log' for more details." >&5
14300echo "$as_me: error: cannot run test program while cross compiling
14301See \`config.log' for more details." >&2;}
14302 { (exit 1); exit 1; }; }
14303else
14304 cat >conftest.$ac_ext <<_ACEOF
14305/* confdefs.h. */
14306_ACEOF
14307cat confdefs.h >>conftest.$ac_ext
14308cat >>conftest.$ac_ext <<_ACEOF
14309/* end confdefs.h. */
14310$ac_includes_default
14311long longval () { return (long) (sizeof (int)); }
14312unsigned long ulongval () { return (long) (sizeof (int)); }
14313#include <stdio.h>
14314#include <stdlib.h>
14315int
14316main ()
14317{
14318
14319 FILE *f = fopen ("conftest.val", "w");
14320 if (! f)
14321 exit (1);
14322 if (((long) (sizeof (int))) < 0)
14323 {
14324 long i = longval ();
14325 if (i != ((long) (sizeof (int))))
14326 exit (1);
14327 fprintf (f, "%ld\n", i);
14328 }
14329 else
14330 {
14331 unsigned long i = ulongval ();
14332 if (i != ((long) (sizeof (int))))
14333 exit (1);
14334 fprintf (f, "%lu\n", i);
14335 }
14336 exit (ferror (f) || fclose (f) != 0);
14337
14338 ;
14339 return 0;
14340}
14341_ACEOF
14342rm -f conftest$ac_exeext
14343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_cv_sizeof_int=`cat conftest.val`
14354else
14355 echo "$as_me: program exited with status $ac_status" >&5
14356echo "$as_me: failed program was:" >&5
14357sed 's/^/| /' conftest.$ac_ext >&5
14358
14359( exit $ac_status )
14360{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14361See \`config.log' for more details." >&5
14362echo "$as_me: error: cannot compute sizeof (int), 77
14363See \`config.log' for more details." >&2;}
14364 { (exit 1); exit 1; }; }
14365fi
14366rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14367fi
14368fi
14369rm -f conftest.val
14370else
14371 ac_cv_sizeof_int=0
14372fi
14373fi
14374echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14375echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14376cat >>confdefs.h <<_ACEOF
14377#define SIZEOF_INT $ac_cv_sizeof_int
14378_ACEOF
14379
14380
14381 echo "$as_me:$LINENO: checking for short" >&5
14382echo $ECHO_N "checking for short... $ECHO_C" >&6
14383if test "${ac_cv_type_short+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386 cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392$ac_includes_default
14393int
14394main ()
14395{
14396if ((short *) 0)
14397 return 0;
14398if (sizeof (short))
14399 return 0;
14400 ;
14401 return 0;
14402}
14403_ACEOF
14404rm -f conftest.$ac_objext
14405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406 (eval $ac_compile) 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag"
14414 || test ! -s conftest.err'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_type_short=yes
14427else
14428 echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431ac_cv_type_short=no
14432fi
14433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14434fi
14435echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14436echo "${ECHO_T}$ac_cv_type_short" >&6
14437
14438echo "$as_me:$LINENO: checking size of short" >&5
14439echo $ECHO_N "checking size of short... $ECHO_C" >&6
14440if test "${ac_cv_sizeof_short+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442else
14443 if test "$ac_cv_type_short" = yes; then
14444 # The cast to unsigned long works around a bug in the HP C Compiler
14445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14447 # This bug is HP SR number 8606223364.
14448 if test "$cross_compiling" = yes; then
14449 # Depending upon the size, compute the lo and hi bounds.
14450cat >conftest.$ac_ext <<_ACEOF
14451/* confdefs.h. */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h. */
14456$ac_includes_default
14457int
14458main ()
14459{
14460static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14461test_array [0] = 0
14462
14463 ;
14464 return 0;
14465}
14466_ACEOF
14467rm -f conftest.$ac_objext
14468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_lo=0 ac_mid=0
14490 while :; do
14491 cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497$ac_includes_default
14498int
14499main ()
14500{
14501static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14502test_array [0] = 0
14503
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_hi=$ac_mid; break
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_lo=`expr $ac_mid + 1`
14536 if test $ac_lo -le $ac_mid; then
14537 ac_lo= ac_hi=
14538 break
14539 fi
14540 ac_mid=`expr 2 '*' $ac_mid + 1`
14541fi
14542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14543 done
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548cat >conftest.$ac_ext <<_ACEOF
14549/* confdefs.h. */
14550_ACEOF
14551cat confdefs.h >>conftest.$ac_ext
14552cat >>conftest.$ac_ext <<_ACEOF
14553/* end confdefs.h. */
14554$ac_includes_default
14555int
14556main ()
14557{
14558static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14559test_array [0] = 0
14560
14561 ;
14562 return 0;
14563}
14564_ACEOF
14565rm -f conftest.$ac_objext
14566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_hi=-1 ac_mid=-1
14588 while :; do
14589 cat >conftest.$ac_ext <<_ACEOF
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
14594/* end confdefs.h. */
14595$ac_includes_default
14596int
14597main ()
14598{
14599static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14600test_array [0] = 0
14601
14602 ;
14603 return 0;
14604}
14605_ACEOF
14606rm -f conftest.$ac_objext
14607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608 (eval $ac_compile) 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -z "$ac_c_werror_flag"
14616 || test ! -s conftest.err'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try='test -s conftest.$ac_objext'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_lo=$ac_mid; break
14629else
14630 echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633ac_hi=`expr '(' $ac_mid ')' - 1`
14634 if test $ac_mid -le $ac_hi; then
14635 ac_lo= ac_hi=
14636 break
14637 fi
14638 ac_mid=`expr 2 '*' $ac_mid`
14639fi
14640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14641 done
14642else
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646ac_lo= ac_hi=
14647fi
14648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14649fi
14650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651# Binary search between lo and hi bounds.
14652while test "x$ac_lo" != "x$ac_hi"; do
14653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14654 cat >conftest.$ac_ext <<_ACEOF
14655/* confdefs.h. */
14656_ACEOF
14657cat confdefs.h >>conftest.$ac_ext
14658cat >>conftest.$ac_ext <<_ACEOF
14659/* end confdefs.h. */
14660$ac_includes_default
14661int
14662main ()
14663{
14664static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14665test_array [0] = 0
14666
14667 ;
14668 return 0;
14669}
14670_ACEOF
14671rm -f conftest.$ac_objext
14672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673 (eval $ac_compile) 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag"
14681 || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_hi=$ac_mid
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698ac_lo=`expr '(' $ac_mid ')' + 1`
14699fi
14700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14701done
14702case $ac_lo in
14703?*) ac_cv_sizeof_short=$ac_lo;;
14704'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14705See \`config.log' for more details." >&5
14706echo "$as_me: error: cannot compute sizeof (short), 77
14707See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; } ;;
14709esac
14710else
14711 if test "$cross_compiling" = yes; then
14712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14713See \`config.log' for more details." >&5
14714echo "$as_me: error: cannot run test program while cross compiling
14715See \`config.log' for more details." >&2;}
14716 { (exit 1); exit 1; }; }
14717else
14718 cat >conftest.$ac_ext <<_ACEOF
14719/* confdefs.h. */
14720_ACEOF
14721cat confdefs.h >>conftest.$ac_ext
14722cat >>conftest.$ac_ext <<_ACEOF
14723/* end confdefs.h. */
14724$ac_includes_default
14725long longval () { return (long) (sizeof (short)); }
14726unsigned long ulongval () { return (long) (sizeof (short)); }
14727#include <stdio.h>
14728#include <stdlib.h>
14729int
14730main ()
14731{
14732
14733 FILE *f = fopen ("conftest.val", "w");
14734 if (! f)
14735 exit (1);
14736 if (((long) (sizeof (short))) < 0)
14737 {
14738 long i = longval ();
14739 if (i != ((long) (sizeof (short))))
14740 exit (1);
14741 fprintf (f, "%ld\n", i);
14742 }
14743 else
14744 {
14745 unsigned long i = ulongval ();
14746 if (i != ((long) (sizeof (short))))
14747 exit (1);
14748 fprintf (f, "%lu\n", i);
14749 }
14750 exit (ferror (f) || fclose (f) != 0);
14751
14752 ;
14753 return 0;
14754}
14755_ACEOF
14756rm -f conftest$ac_exeext
14757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_cv_sizeof_short=`cat conftest.val`
14768else
14769 echo "$as_me: program exited with status $ac_status" >&5
14770echo "$as_me: failed program was:" >&5
14771sed 's/^/| /' conftest.$ac_ext >&5
14772
14773( exit $ac_status )
14774{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14775See \`config.log' for more details." >&5
14776echo "$as_me: error: cannot compute sizeof (short), 77
14777See \`config.log' for more details." >&2;}
14778 { (exit 1); exit 1; }; }
14779fi
14780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14781fi
14782fi
14783rm -f conftest.val
14784else
14785 ac_cv_sizeof_short=0
14786fi
14787fi
14788echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14789echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14790cat >>confdefs.h <<_ACEOF
14791#define SIZEOF_SHORT $ac_cv_sizeof_short
14792_ACEOF
14793
14794
14795 echo "$as_me:$LINENO: checking for char" >&5
14796echo $ECHO_N "checking for char... $ECHO_C" >&6
14797if test "${ac_cv_type_char+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799else
14800 cat >conftest.$ac_ext <<_ACEOF
14801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
14806$ac_includes_default
14807int
14808main ()
14809{
14810if ((char *) 0)
14811 return 0;
14812if (sizeof (char))
14813 return 0;
14814 ;
14815 return 0;
14816}
14817_ACEOF
14818rm -f conftest.$ac_objext
14819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_type_char=yes
14841else
14842 echo "$as_me: failed program was:" >&5
14843sed 's/^/| /' conftest.$ac_ext >&5
14844
14845ac_cv_type_char=no
14846fi
14847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14848fi
14849echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14850echo "${ECHO_T}$ac_cv_type_char" >&6
14851
14852echo "$as_me:$LINENO: checking size of char" >&5
14853echo $ECHO_N "checking size of char... $ECHO_C" >&6
14854if test "${ac_cv_sizeof_char+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
14857 if test "$ac_cv_type_char" = yes; then
14858 # The cast to unsigned long works around a bug in the HP C Compiler
14859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14861 # This bug is HP SR number 8606223364.
14862 if test "$cross_compiling" = yes; then
14863 # Depending upon the size, compute the lo and hi bounds.
14864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870$ac_includes_default
14871int
14872main ()
14873{
14874static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14875test_array [0] = 0
14876
14877 ;
14878 return 0;
14879}
14880_ACEOF
14881rm -f conftest.$ac_objext
14882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_lo=0 ac_mid=0
14904 while :; do
14905 cat >conftest.$ac_ext <<_ACEOF
14906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h. */
14911$ac_includes_default
14912int
14913main ()
14914{
14915static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14916test_array [0] = 0
14917
14918 ;
14919 return 0;
14920}
14921_ACEOF
14922rm -f conftest.$ac_objext
14923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_hi=$ac_mid; break
14945else
14946 echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
14949ac_lo=`expr $ac_mid + 1`
14950 if test $ac_lo -le $ac_mid; then
14951 ac_lo= ac_hi=
14952 break
14953 fi
14954 ac_mid=`expr 2 '*' $ac_mid + 1`
14955fi
14956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14957 done
14958else
14959 echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
14962cat >conftest.$ac_ext <<_ACEOF
14963/* confdefs.h. */
14964_ACEOF
14965cat confdefs.h >>conftest.$ac_ext
14966cat >>conftest.$ac_ext <<_ACEOF
14967/* end confdefs.h. */
14968$ac_includes_default
14969int
14970main ()
14971{
14972static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14973test_array [0] = 0
14974
14975 ;
14976 return 0;
14977}
14978_ACEOF
14979rm -f conftest.$ac_objext
14980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -z "$ac_c_werror_flag"
14989 || test ! -s conftest.err'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest.$ac_objext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001 ac_hi=-1 ac_mid=-1
15002 while :; do
15003 cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
15008/* end confdefs.h. */
15009$ac_includes_default
15010int
15011main ()
15012{
15013static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15014test_array [0] = 0
15015
15016 ;
15017 return 0;
15018}
15019_ACEOF
15020rm -f conftest.$ac_objext
15021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_lo=$ac_mid; break
15043else
15044 echo "$as_me: failed program was:" >&5
15045sed 's/^/| /' conftest.$ac_ext >&5
15046
15047ac_hi=`expr '(' $ac_mid ')' - 1`
15048 if test $ac_mid -le $ac_hi; then
15049 ac_lo= ac_hi=
15050 break
15051 fi
15052 ac_mid=`expr 2 '*' $ac_mid`
15053fi
15054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15055 done
15056else
15057 echo "$as_me: failed program was:" >&5
15058sed 's/^/| /' conftest.$ac_ext >&5
15059
15060ac_lo= ac_hi=
15061fi
15062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15063fi
15064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065# Binary search between lo and hi bounds.
15066while test "x$ac_lo" != "x$ac_hi"; do
15067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15068 cat >conftest.$ac_ext <<_ACEOF
15069/* confdefs.h. */
15070_ACEOF
15071cat confdefs.h >>conftest.$ac_ext
15072cat >>conftest.$ac_ext <<_ACEOF
15073/* end confdefs.h. */
15074$ac_includes_default
15075int
15076main ()
15077{
15078static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15079test_array [0] = 0
15080
15081 ;
15082 return 0;
15083}
15084_ACEOF
15085rm -f conftest.$ac_objext
15086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_hi=$ac_mid
15108else
15109 echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112ac_lo=`expr '(' $ac_mid ')' + 1`
15113fi
15114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15115done
15116case $ac_lo in
15117?*) ac_cv_sizeof_char=$ac_lo;;
15118'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15119See \`config.log' for more details." >&5
15120echo "$as_me: error: cannot compute sizeof (char), 77
15121See \`config.log' for more details." >&2;}
15122 { (exit 1); exit 1; }; } ;;
15123esac
15124else
15125 if test "$cross_compiling" = yes; then
15126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15127See \`config.log' for more details." >&5
15128echo "$as_me: error: cannot run test program while cross compiling
15129See \`config.log' for more details." >&2;}
15130 { (exit 1); exit 1; }; }
15131else
15132 cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h. */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h. */
15138$ac_includes_default
15139long longval () { return (long) (sizeof (char)); }
15140unsigned long ulongval () { return (long) (sizeof (char)); }
15141#include <stdio.h>
15142#include <stdlib.h>
15143int
15144main ()
15145{
15146
15147 FILE *f = fopen ("conftest.val", "w");
15148 if (! f)
15149 exit (1);
15150 if (((long) (sizeof (char))) < 0)
15151 {
15152 long i = longval ();
15153 if (i != ((long) (sizeof (char))))
15154 exit (1);
15155 fprintf (f, "%ld\n", i);
15156 }
15157 else
15158 {
15159 unsigned long i = ulongval ();
15160 if (i != ((long) (sizeof (char))))
15161 exit (1);
15162 fprintf (f, "%lu\n", i);
15163 }
15164 exit (ferror (f) || fclose (f) != 0);
15165
15166 ;
15167 return 0;
15168}
15169_ACEOF
15170rm -f conftest$ac_exeext
15171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_cv_sizeof_char=`cat conftest.val`
15182else
15183 echo "$as_me: program exited with status $ac_status" >&5
15184echo "$as_me: failed program was:" >&5
15185sed 's/^/| /' conftest.$ac_ext >&5
15186
15187( exit $ac_status )
15188{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15189See \`config.log' for more details." >&5
15190echo "$as_me: error: cannot compute sizeof (char), 77
15191See \`config.log' for more details." >&2;}
15192 { (exit 1); exit 1; }; }
15193fi
15194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15195fi
15196fi
15197rm -f conftest.val
15198else
15199 ac_cv_sizeof_char=0
15200fi
15201fi
15202echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15203echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15204cat >>confdefs.h <<_ACEOF
15205#define SIZEOF_CHAR $ac_cv_sizeof_char
15206_ACEOF
15207
15208
15209
15210 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15211echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15212 case "$ac_cv_sizeof_char" in
15213 1) acx_cv_type_int8_t=char ;;
15214 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15215echo "$as_me: error: no 8-bit type" >&2;}
15216 { (exit please report a bug); exit please report a bug; }; }
15217 esac
15218 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15219echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15220
15221 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15222echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15223 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15224 2:*) acx_cv_type_int16_t=int ;;
15225 *:2) acx_cv_type_int16_t=short ;;
15226 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15227echo "$as_me: error: no 16-bit type" >&2;}
15228 { (exit please report a bug); exit please report a bug; }; }
15229 esac
15230 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15231echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15232
15233 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15234echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15235 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15236 4:*) acx_cv_type_int32_t=int ;;
15237 *:4) acx_cv_type_int32_t=long ;;
15238 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15239echo "$as_me: error: no 32-bit type" >&2;}
15240 { (exit please report a bug); exit please report a bug; }; }
15241 esac
15242 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15243echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15244fi
15245
15246# These tests are here to make the output prettier
15247
15248if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15249 case "$ac_cv_sizeof_long" in
15250 8) acx_cv_type_int64_t=long ;;
15251 esac
15252 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15253echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15254 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15255echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15256fi
15257
15258# Now we can use the above types
15259
15260if test "$ac_cv_type_uintptr_t" != yes; then
15261 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15262echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15263 case $ac_cv_sizeof_void_p in
15264 2) acx_cv_type_intptr_t=int16_t ;;
15265 4) acx_cv_type_intptr_t=int32_t ;;
15266 8) acx_cv_type_intptr_t=int64_t ;;
15267 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15268echo "$as_me: error: no equivalent for intptr_t" >&2;}
15269 { (exit please report a bug); exit please report a bug; }; }
15270 esac
15271 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15272echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15273fi
15274
15275# ----------------- done all checks, emit header -------------
15276 ac_config_commands="$ac_config_commands bfd_stdint.h"
15277
15278
15279
2ba49b59
KC
15280echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15281echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15282if test "${ac_cv_header_time+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284else
15285 cat >conftest.$ac_ext <<_ACEOF
15286/* confdefs.h. */
15287_ACEOF
15288cat confdefs.h >>conftest.$ac_ext
15289cat >>conftest.$ac_ext <<_ACEOF
15290/* end confdefs.h. */
15291#include <sys/types.h>
15292#include <sys/time.h>
15293#include <time.h>
15294
15295int
15296main ()
15297{
15298if ((struct tm *) 0)
15299return 0;
15300 ;
15301 return 0;
15302}
15303_ACEOF
15304rm -f conftest.$ac_objext
15305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
49c96104
SE
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
2ba49b59
KC
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_cv_header_time=yes
15327else
15328 echo "$as_me: failed program was:" >&5
15329sed 's/^/| /' conftest.$ac_ext >&5
15330
15331ac_cv_header_time=no
15332fi
15333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15334fi
15335echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15336echo "${ECHO_T}$ac_cv_header_time" >&6
15337if test $ac_cv_header_time = yes; then
15338
15339cat >>confdefs.h <<\_ACEOF
15340#define TIME_WITH_SYS_TIME 1
15341_ACEOF
15342
15343fi
15344
15345
15346
15347
15348
15349
15350ac_header_dirent=no
15351for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15352 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15353echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15354echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15355if eval "test \"\${$as_ac_Header+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357else
15358 cat >conftest.$ac_ext <<_ACEOF
15359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
15364#include <sys/types.h>
15365#include <$ac_hdr>
15366
15367int
15368main ()
15369{
15370if ((DIR *) 0)
15371return 0;
15372 ;
15373 return 0;
15374}
15375_ACEOF
15376rm -f conftest.$ac_objext
15377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378 (eval $ac_compile) 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
49c96104
SE
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
2ba49b59
KC
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 eval "$as_ac_Header=yes"
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403eval "$as_ac_Header=no"
15404fi
15405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406fi
15407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409if test `eval echo '${'$as_ac_Header'}'` = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15412_ACEOF
15413
15414ac_header_dirent=$ac_hdr; break
15415fi
15416
15417done
15418# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15419if test $ac_header_dirent = dirent.h; then
15420 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15421echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15422if test "${ac_cv_search_opendir+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424else
15425 ac_func_search_save_LIBS=$LIBS
15426ac_cv_search_opendir=no
15427cat >conftest.$ac_ext <<_ACEOF
15428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433
15434/* Override any gcc2 internal prototype to avoid an error. */
15435#ifdef __cplusplus
15436extern "C"
15437#endif
15438/* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15440char opendir ();
15441int
15442main ()
15443{
15444opendir ();
15445 ;
15446 return 0;
15447}
15448_ACEOF
15449rm -f conftest.$ac_objext conftest$ac_exeext
15450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15451 (eval $ac_link) 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
49c96104
SE
15458 { ac_try='test -z "$ac_c_werror_flag"
15459 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15465 { ac_try='test -s conftest$ac_exeext'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; }; then
15471 ac_cv_search_opendir="none required"
15472else
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476fi
15477rm -f conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15479if test "$ac_cv_search_opendir" = no; then
15480 for ac_lib in dir; do
15481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15482 cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488
15489/* Override any gcc2 internal prototype to avoid an error. */
15490#ifdef __cplusplus
15491extern "C"
15492#endif
15493/* We use char because int might match the return type of a gcc2
15494 builtin and then its argument prototype would still apply. */
15495char opendir ();
15496int
15497main ()
15498{
15499opendir ();
15500 ;
15501 return 0;
15502}
15503_ACEOF
15504rm -f conftest.$ac_objext conftest$ac_exeext
15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>conftest.er1
15507 ac_status=$?
15508 grep -v '^ *+' conftest.er1 >conftest.err
15509 rm -f conftest.er1
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
49c96104
SE
15513 { ac_try='test -z "$ac_c_werror_flag"
15514 || test ! -s conftest.err'
2ba49b59
KC
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest$ac_exeext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_cv_search_opendir="-l$ac_lib"
15527break
15528else
15529 echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5
15531
15532fi
15533rm -f conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15535 done
15536fi
15537LIBS=$ac_func_search_save_LIBS
15538fi
15539echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15540echo "${ECHO_T}$ac_cv_search_opendir" >&6
15541if test "$ac_cv_search_opendir" != no; then
15542 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15543
15544fi
15545
15546else
15547 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15548echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15549if test "${ac_cv_search_opendir+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551else
15552 ac_func_search_save_LIBS=$LIBS
15553ac_cv_search_opendir=no
15554cat >conftest.$ac_ext <<_ACEOF
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560
15561/* Override any gcc2 internal prototype to avoid an error. */
15562#ifdef __cplusplus
15563extern "C"
15564#endif
15565/* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15567char opendir ();
15568int
15569main ()
15570{
15571opendir ();
15572 ;
15573 return 0;
15574}
15575_ACEOF
15576rm -f conftest.$ac_objext conftest$ac_exeext
15577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
49c96104
SE
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
2ba49b59
KC
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_search_opendir="none required"
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603fi
15604rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606if test "$ac_cv_search_opendir" = no; then
15607 for ac_lib in x; do
15608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15609 cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h. */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h. */
15615
15616/* Override any gcc2 internal prototype to avoid an error. */
15617#ifdef __cplusplus
15618extern "C"
15619#endif
15620/* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622char opendir ();
15623int
15624main ()
15625{
15626opendir ();
15627 ;
15628 return 0;
15629}
15630_ACEOF
15631rm -f conftest.$ac_objext conftest$ac_exeext
15632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
49c96104
SE
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
2ba49b59
KC
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_search_opendir="-l$ac_lib"
15654break
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659fi
15660rm -f conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 done
15663fi
15664LIBS=$ac_func_search_save_LIBS
15665fi
15666echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15667echo "${ECHO_T}$ac_cv_search_opendir" >&6
15668if test "$ac_cv_search_opendir" != no; then
15669 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15670
15671fi
15672
15673fi
15674
15675echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
15676echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
15677if test "${gcc_cv_header_string+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679else
15680 cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
15686#include <string.h>
15687#include <strings.h>
15688int
15689main ()
15690{
15691
15692 ;
15693 return 0;
15694}
15695_ACEOF
15696rm -f conftest.$ac_objext
15697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>conftest.er1
15699 ac_status=$?
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
49c96104
SE
15705 { ac_try='test -z "$ac_c_werror_flag"
15706 || test ! -s conftest.err'
2ba49b59
KC
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 gcc_cv_header_string=yes
15719else
15720 echo "$as_me: failed program was:" >&5
15721sed 's/^/| /' conftest.$ac_ext >&5
15722
15723gcc_cv_header_string=no
15724fi
15725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15726fi
15727echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
15728echo "${ECHO_T}$gcc_cv_header_string" >&6
15729if test $gcc_cv_header_string = yes; then
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define STRING_WITH_STRINGS 1
15733_ACEOF
15734
2e0fbf77
JW
15735fi
15736
5464f5a1
NN
15737
15738
15739
15740
15741
15742
15743
633fd09f 15744for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 15745do
5464f5a1
NN
15746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15747echo "$as_me:$LINENO: checking for $ac_func" >&5
15748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15749if eval "test \"\${$as_ac_var+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751else
15752 cat >conftest.$ac_ext <<_ACEOF
15753/* confdefs.h. */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */
15758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15760#define $ac_func innocuous_$ac_func
15761
252b5132 15762/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
15763 which can conflict with char $ac_func (); below.
15764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765 <limits.h> exists even on freestanding compilers. */
15766
15767#ifdef __STDC__
15768# include <limits.h>
15769#else
15770# include <assert.h>
15771#endif
6be7c12c 15772
5464f5a1 15773#undef $ac_func
252b5132 15774
5464f5a1
NN
15775/* Override any gcc2 internal prototype to avoid an error. */
15776#ifdef __cplusplus
15777extern "C"
15778{
15779#endif
15780/* We use char because int might match the return type of a gcc2
15781 builtin and then its argument prototype would still apply. */
15782char $ac_func ();
252b5132
RH
15783/* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15787choke me
15788#else
5464f5a1
NN
15789char (*f) () = $ac_func;
15790#endif
15791#ifdef __cplusplus
15792}
252b5132
RH
15793#endif
15794
5464f5a1
NN
15795int
15796main ()
15797{
15798return f != $ac_func;
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext conftest$ac_exeext
15804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
49c96104
SE
15812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
5464f5a1
NN
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15826else
15827 echo "$as_me: failed program was:" >&5
15828sed 's/^/| /' conftest.$ac_ext >&5
15829
15830eval "$as_ac_var=no"
15831fi
15832rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834fi
15835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15837if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15840_ACEOF
252b5132 15841
252b5132
RH
15842fi
15843done
15844
5464f5a1 15845
49c97a80
ILT
15846for ac_func in strtoull
15847do
5464f5a1
NN
15848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15849echo "$as_me:$LINENO: checking for $ac_func" >&5
15850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15851if eval "test \"\${$as_ac_var+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15853else
15854 cat >conftest.$ac_ext <<_ACEOF
15855/* confdefs.h. */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h. */
15860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15862#define $ac_func innocuous_$ac_func
15863
49c97a80 15864/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
15865 which can conflict with char $ac_func (); below.
15866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15867 <limits.h> exists even on freestanding compilers. */
15868
15869#ifdef __STDC__
15870# include <limits.h>
15871#else
15872# include <assert.h>
15873#endif
49c97a80 15874
5464f5a1 15875#undef $ac_func
49c97a80 15876
5464f5a1
NN
15877/* Override any gcc2 internal prototype to avoid an error. */
15878#ifdef __cplusplus
15879extern "C"
15880{
15881#endif
15882/* We use char because int might match the return type of a gcc2
15883 builtin and then its argument prototype would still apply. */
15884char $ac_func ();
49c97a80
ILT
15885/* The GNU C library defines this for functions which it implements
15886 to always fail with ENOSYS. Some functions are actually named
15887 something starting with __ and the normal name is an alias. */
15888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15889choke me
15890#else
5464f5a1
NN
15891char (*f) () = $ac_func;
15892#endif
15893#ifdef __cplusplus
15894}
49c97a80
ILT
15895#endif
15896
5464f5a1
NN
15897int
15898main ()
15899{
15900return f != $ac_func;
15901 ;
15902 return 0;
15903}
15904_ACEOF
15905rm -f conftest.$ac_objext conftest$ac_exeext
15906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
49c96104
SE
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
5464f5a1
NN
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest$ac_exeext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 eval "$as_ac_var=yes"
15928else
15929 echo "$as_me: failed program was:" >&5
15930sed 's/^/| /' conftest.$ac_ext >&5
15931
15932eval "$as_ac_var=no"
15933fi
15934rm -f conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
15936fi
15937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15939if test `eval echo '${'$as_ac_var'}'` = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15942_ACEOF
49c97a80 15943
49c97a80
ILT
15944fi
15945done
15946
6be7c12c 15947
2e9ebff5
JG
15948echo "$as_me:$LINENO: checking whether basename is declared" >&5
15949echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
15950if test "${ac_cv_have_decl_basename+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952else
15953 cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
ec7b76fe 15959$ac_includes_default
2e9ebff5
JG
15960int
15961main ()
15962{
15963#ifndef basename
15964 char *p = (char *) basename;
15965#endif
15966
15967 ;
15968 return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext
15972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
49c96104
SE
15980 { ac_try='test -z "$ac_c_werror_flag"
15981 || test ! -s conftest.err'
2e9ebff5
JG
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; } &&
15987 { ac_try='test -s conftest.$ac_objext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_cv_have_decl_basename=yes
15994else
15995 echo "$as_me: failed program was:" >&5
15996sed 's/^/| /' conftest.$ac_ext >&5
15997
15998ac_cv_have_decl_basename=no
15999fi
16000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16001fi
16002echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16003echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16004if test $ac_cv_have_decl_basename = yes; then
16005
16006cat >>confdefs.h <<_ACEOF
16007#define HAVE_DECL_BASENAME 1
16008_ACEOF
16009
16010
16011else
16012 cat >>confdefs.h <<_ACEOF
16013#define HAVE_DECL_BASENAME 0
16014_ACEOF
16015
16016
16017fi
16018
16019
ec7b76fe
JG
16020echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16021echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16022if test "${ac_cv_have_decl_ftello+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024else
16025 cat >conftest.$ac_ext <<_ACEOF
16026/* confdefs.h. */
16027_ACEOF
16028cat confdefs.h >>conftest.$ac_ext
16029cat >>conftest.$ac_ext <<_ACEOF
16030/* end confdefs.h. */
16031$ac_includes_default
16032int
16033main ()
16034{
16035#ifndef ftello
16036 char *p = (char *) ftello;
16037#endif
16038
16039 ;
16040 return 0;
16041}
16042_ACEOF
16043rm -f conftest.$ac_objext
16044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
49c96104
SE
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
ec7b76fe
JG
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_have_decl_ftello=yes
16066else
16067 echo "$as_me: failed program was:" >&5
16068sed 's/^/| /' conftest.$ac_ext >&5
16069
16070ac_cv_have_decl_ftello=no
16071fi
16072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073fi
16074echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16075echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16076if test $ac_cv_have_decl_ftello = yes; then
16077
16078cat >>confdefs.h <<_ACEOF
16079#define HAVE_DECL_FTELLO 1
16080_ACEOF
16081
16082
16083else
16084 cat >>confdefs.h <<_ACEOF
16085#define HAVE_DECL_FTELLO 0
16086_ACEOF
16087
16088
16089fi
16090
16091
16092echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16093echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16094if test "${ac_cv_have_decl_ftello64+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16096else
16097 cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
16103$ac_includes_default
16104int
16105main ()
16106{
16107#ifndef ftello64
16108 char *p = (char *) ftello64;
16109#endif
16110
16111 ;
16112 return 0;
16113}
16114_ACEOF
16115rm -f conftest.$ac_objext
16116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
49c96104
SE
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
ec7b76fe
JG
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_have_decl_ftello64=yes
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142ac_cv_have_decl_ftello64=no
16143fi
16144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16145fi
16146echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16147echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16148if test $ac_cv_have_decl_ftello64 = yes; then
16149
16150cat >>confdefs.h <<_ACEOF
16151#define HAVE_DECL_FTELLO64 1
16152_ACEOF
16153
16154
16155else
16156 cat >>confdefs.h <<_ACEOF
16157#define HAVE_DECL_FTELLO64 0
16158_ACEOF
16159
16160
16161fi
16162
16163
16164echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16165echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16166if test "${ac_cv_have_decl_fseeko+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168else
16169 cat >conftest.$ac_ext <<_ACEOF
16170/* confdefs.h. */
16171_ACEOF
16172cat confdefs.h >>conftest.$ac_ext
16173cat >>conftest.$ac_ext <<_ACEOF
16174/* end confdefs.h. */
16175$ac_includes_default
16176int
16177main ()
16178{
16179#ifndef fseeko
16180 char *p = (char *) fseeko;
16181#endif
16182
16183 ;
16184 return 0;
16185}
16186_ACEOF
16187rm -f conftest.$ac_objext
16188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
49c96104
SE
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
ec7b76fe
JG
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_cv_have_decl_fseeko=yes
16210else
16211 echo "$as_me: failed program was:" >&5
16212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214ac_cv_have_decl_fseeko=no
16215fi
16216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16217fi
16218echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16219echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16220if test $ac_cv_have_decl_fseeko = yes; then
16221
16222cat >>confdefs.h <<_ACEOF
16223#define HAVE_DECL_FSEEKO 1
16224_ACEOF
16225
16226
16227else
16228 cat >>confdefs.h <<_ACEOF
16229#define HAVE_DECL_FSEEKO 0
16230_ACEOF
16231
16232
16233fi
16234
16235
16236echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16237echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16238if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240else
16241 cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
16247$ac_includes_default
16248int
16249main ()
16250{
16251#ifndef fseeko64
16252 char *p = (char *) fseeko64;
16253#endif
16254
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext
16260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
49c96104
SE
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
ec7b76fe
JG
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_have_decl_fseeko64=yes
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286ac_cv_have_decl_fseeko64=no
16287fi
16288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16289fi
16290echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16291echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16292if test $ac_cv_have_decl_fseeko64 = yes; then
16293
16294cat >>confdefs.h <<_ACEOF
16295#define HAVE_DECL_FSEEKO64 1
16296_ACEOF
16297
16298
16299else
16300 cat >>confdefs.h <<_ACEOF
16301#define HAVE_DECL_FSEEKO64 0
16302_ACEOF
16303
16304
16305fi
16306
16307
2e9ebff5 16308
6be7c12c 16309
252b5132 16310case "${host}" in
855b0be7 16311*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16312
16313cat >>confdefs.h <<\_ACEOF
252b5132 16314#define USE_BINARY_FOPEN 1
5464f5a1 16315_ACEOF
252b5132
RH
16316 ;;
16317esac
16318
d34a2b1d
JG
16319echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16320echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16321if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16322 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16323else
5464f5a1
NN
16324 cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
d34a2b1d 16330$ac_includes_default
5464f5a1
NN
16331int
16332main ()
16333{
d34a2b1d
JG
16334#ifndef ffs
16335 char *p = (char *) ffs;
16336#endif
16337
5464f5a1
NN
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
49c96104
SE
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
5464f5a1
NN
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
d34a2b1d 16364 ac_cv_have_decl_ffs=yes
252b5132 16365else
5464f5a1
NN
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
d34a2b1d 16369ac_cv_have_decl_ffs=no
252b5132 16370fi
5464f5a1 16371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16372fi
d34a2b1d
JG
16373echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16374echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16375if test $ac_cv_have_decl_ffs = yes; then
252b5132 16376
d34a2b1d
JG
16377cat >>confdefs.h <<_ACEOF
16378#define HAVE_DECL_FFS 1
16379_ACEOF
5464f5a1 16380
d34a2b1d
JG
16381
16382else
16383 cat >>confdefs.h <<_ACEOF
16384#define HAVE_DECL_FFS 0
5464f5a1 16385_ACEOF
252b5132 16386
d34a2b1d 16387
252b5132
RH
16388fi
16389
d34a2b1d
JG
16390
16391echo "$as_me:$LINENO: checking whether free is declared" >&5
16392echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16393if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16394 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16395else
5464f5a1
NN
16396 cat >conftest.$ac_ext <<_ACEOF
16397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
d34a2b1d 16402$ac_includes_default
5464f5a1
NN
16403int
16404main ()
16405{
d34a2b1d
JG
16406#ifndef free
16407 char *p = (char *) free;
16408#endif
16409
5464f5a1
NN
16410 ;
16411 return 0;
16412}
16413_ACEOF
16414rm -f conftest.$ac_objext
16415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
49c96104
SE
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
5464f5a1
NN
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
d34a2b1d 16436 ac_cv_have_decl_free=yes
252b5132 16437else
5464f5a1
NN
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
d34a2b1d 16441ac_cv_have_decl_free=no
252b5132 16442fi
5464f5a1 16443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16444fi
d34a2b1d
JG
16445echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16446echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16447if test $ac_cv_have_decl_free = yes; then
16448
16449cat >>confdefs.h <<_ACEOF
16450#define HAVE_DECL_FREE 1
16451_ACEOF
252b5132 16452
5464f5a1 16453
d34a2b1d
JG
16454else
16455 cat >>confdefs.h <<_ACEOF
16456#define HAVE_DECL_FREE 0
5464f5a1 16457_ACEOF
252b5132 16458
d34a2b1d 16459
252b5132
RH
16460fi
16461
d34a2b1d
JG
16462
16463echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16464echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16465if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16466 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16467else
5464f5a1
NN
16468 cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
d34a2b1d 16474$ac_includes_default
5464f5a1
NN
16475int
16476main ()
16477{
d34a2b1d
JG
16478#ifndef getenv
16479 char *p = (char *) getenv;
16480#endif
16481
5464f5a1
NN
16482 ;
16483 return 0;
16484}
16485_ACEOF
16486rm -f conftest.$ac_objext
16487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
49c96104
SE
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
5464f5a1
NN
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
d34a2b1d 16508 ac_cv_have_decl_getenv=yes
252b5132 16509else
5464f5a1
NN
16510 echo "$as_me: failed program was:" >&5
16511sed 's/^/| /' conftest.$ac_ext >&5
16512
d34a2b1d 16513ac_cv_have_decl_getenv=no
252b5132 16514fi
5464f5a1 16515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16516fi
d34a2b1d
JG
16517echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16518echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16519if test $ac_cv_have_decl_getenv = yes; then
252b5132 16520
d34a2b1d
JG
16521cat >>confdefs.h <<_ACEOF
16522#define HAVE_DECL_GETENV 1
16523_ACEOF
5464f5a1 16524
d34a2b1d
JG
16525
16526else
16527 cat >>confdefs.h <<_ACEOF
16528#define HAVE_DECL_GETENV 0
5464f5a1 16529_ACEOF
252b5132 16530
d34a2b1d 16531
252b5132
RH
16532fi
16533
d34a2b1d
JG
16534
16535echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16536echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16537if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 16538 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16539else
5464f5a1
NN
16540 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
d34a2b1d 16546$ac_includes_default
5464f5a1
NN
16547int
16548main ()
16549{
d34a2b1d
JG
16550#ifndef malloc
16551 char *p = (char *) malloc;
16552#endif
16553
5464f5a1
NN
16554 ;
16555 return 0;
16556}
16557_ACEOF
16558rm -f conftest.$ac_objext
16559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
49c96104
SE
16567 { ac_try='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
5464f5a1
NN
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
d34a2b1d 16580 ac_cv_have_decl_malloc=yes
252b5132 16581else
5464f5a1
NN
16582 echo "$as_me: failed program was:" >&5
16583sed 's/^/| /' conftest.$ac_ext >&5
16584
d34a2b1d 16585ac_cv_have_decl_malloc=no
252b5132 16586fi
5464f5a1 16587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16588fi
d34a2b1d
JG
16589echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16590echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16591if test $ac_cv_have_decl_malloc = yes; then
252b5132 16592
d34a2b1d
JG
16593cat >>confdefs.h <<_ACEOF
16594#define HAVE_DECL_MALLOC 1
16595_ACEOF
5464f5a1 16596
d34a2b1d
JG
16597
16598else
16599 cat >>confdefs.h <<_ACEOF
16600#define HAVE_DECL_MALLOC 0
5464f5a1 16601_ACEOF
252b5132 16602
d34a2b1d 16603
252b5132
RH
16604fi
16605
d34a2b1d
JG
16606
16607echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16608echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16609if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 16610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16611else
5464f5a1
NN
16612 cat >conftest.$ac_ext <<_ACEOF
16613/* confdefs.h. */
16614_ACEOF
16615cat confdefs.h >>conftest.$ac_ext
16616cat >>conftest.$ac_ext <<_ACEOF
16617/* end confdefs.h. */
d34a2b1d 16618$ac_includes_default
5464f5a1
NN
16619int
16620main ()
16621{
d34a2b1d
JG
16622#ifndef realloc
16623 char *p = (char *) realloc;
16624#endif
16625
5464f5a1
NN
16626 ;
16627 return 0;
16628}
16629_ACEOF
16630rm -f conftest.$ac_objext
16631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
49c96104
SE
16639 { ac_try='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
5464f5a1
NN
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
d34a2b1d 16652 ac_cv_have_decl_realloc=yes
252b5132 16653else
5464f5a1
NN
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
d34a2b1d 16657ac_cv_have_decl_realloc=no
252b5132 16658fi
5464f5a1 16659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16660fi
d34a2b1d
JG
16661echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16662echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16663if test $ac_cv_have_decl_realloc = yes; then
16664
16665cat >>confdefs.h <<_ACEOF
16666#define HAVE_DECL_REALLOC 1
16667_ACEOF
252b5132 16668
5464f5a1 16669
d34a2b1d
JG
16670else
16671 cat >>confdefs.h <<_ACEOF
16672#define HAVE_DECL_REALLOC 0
efa9bda4
AL
16673_ACEOF
16674
d34a2b1d 16675
efa9bda4
AL
16676fi
16677
d34a2b1d 16678
be5cacdb
L
16679echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
16680echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
16681if test "${ac_cv_have_decl_stpcpy+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684 cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h. */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h. */
16690$ac_includes_default
16691int
16692main ()
16693{
16694#ifndef stpcpy
16695 char *p = (char *) stpcpy;
16696#endif
16697
16698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext
16703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
49c96104
SE
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
be5cacdb
L
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_have_decl_stpcpy=yes
16725else
16726 echo "$as_me: failed program was:" >&5
16727sed 's/^/| /' conftest.$ac_ext >&5
16728
16729ac_cv_have_decl_stpcpy=no
16730fi
16731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16732fi
16733echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
16734echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
16735if test $ac_cv_have_decl_stpcpy = yes; then
16736
16737cat >>confdefs.h <<_ACEOF
16738#define HAVE_DECL_STPCPY 1
16739_ACEOF
16740
16741
16742else
16743 cat >>confdefs.h <<_ACEOF
16744#define HAVE_DECL_STPCPY 0
16745_ACEOF
16746
16747
16748fi
16749
16750
d34a2b1d
JG
16751echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16752echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16753if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
16756 cat >conftest.$ac_ext <<_ACEOF
16757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h. */
d34a2b1d 16762$ac_includes_default
efa9bda4
AL
16763int
16764main ()
16765{
d34a2b1d
JG
16766#ifndef strstr
16767 char *p = (char *) strstr;
16768#endif
16769
efa9bda4
AL
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext
16775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
49c96104
SE
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
efa9bda4
AL
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
d34a2b1d 16796 ac_cv_have_decl_strstr=yes
efa9bda4
AL
16797else
16798 echo "$as_me: failed program was:" >&5
16799sed 's/^/| /' conftest.$ac_ext >&5
16800
d34a2b1d 16801ac_cv_have_decl_strstr=no
efa9bda4
AL
16802fi
16803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16804fi
d34a2b1d
JG
16805echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16806echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16807if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 16808
d34a2b1d
JG
16809cat >>confdefs.h <<_ACEOF
16810#define HAVE_DECL_STRSTR 1
16811_ACEOF
efa9bda4 16812
d34a2b1d
JG
16813
16814else
16815 cat >>confdefs.h <<_ACEOF
16816#define HAVE_DECL_STRSTR 0
5464f5a1 16817_ACEOF
252b5132 16818
d34a2b1d 16819
252b5132
RH
16820fi
16821
6be7c12c 16822
36527912
AJ
16823echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16824echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16825if test "${ac_cv_have_decl_snprintf+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827else
16828 cat >conftest.$ac_ext <<_ACEOF
16829/* confdefs.h. */
16830_ACEOF
16831cat confdefs.h >>conftest.$ac_ext
16832cat >>conftest.$ac_ext <<_ACEOF
16833/* end confdefs.h. */
16834$ac_includes_default
16835int
16836main ()
16837{
16838#ifndef snprintf
16839 char *p = (char *) snprintf;
16840#endif
16841
16842 ;
16843 return 0;
16844}
16845_ACEOF
16846rm -f conftest.$ac_objext
16847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
49c96104
SE
16855 { ac_try='test -z "$ac_c_werror_flag"
16856 || test ! -s conftest.err'
36527912
AJ
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest.$ac_objext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_have_decl_snprintf=yes
16869else
16870 echo "$as_me: failed program was:" >&5
16871sed 's/^/| /' conftest.$ac_ext >&5
16872
16873ac_cv_have_decl_snprintf=no
16874fi
16875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876fi
16877echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16878echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16879if test $ac_cv_have_decl_snprintf = yes; then
16880
16881cat >>confdefs.h <<_ACEOF
16882#define HAVE_DECL_SNPRINTF 1
16883_ACEOF
16884
16885
16886else
16887 cat >>confdefs.h <<_ACEOF
16888#define HAVE_DECL_SNPRINTF 0
16889_ACEOF
16890
16891
16892fi
16893
16894
16895echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16896echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16897if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899else
16900 cat >conftest.$ac_ext <<_ACEOF
16901/* confdefs.h. */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h. */
16906$ac_includes_default
16907int
16908main ()
16909{
16910#ifndef vsnprintf
16911 char *p = (char *) vsnprintf;
16912#endif
16913
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext
16919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
49c96104
SE
16927 { ac_try='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
36527912
AJ
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_have_decl_vsnprintf=yes
16941else
16942 echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945ac_cv_have_decl_vsnprintf=no
16946fi
16947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16948fi
16949echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16950echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16951if test $ac_cv_have_decl_vsnprintf = yes; then
16952
16953cat >>confdefs.h <<_ACEOF
16954#define HAVE_DECL_VSNPRINTF 1
16955_ACEOF
16956
16957
16958else
16959 cat >>confdefs.h <<_ACEOF
16960#define HAVE_DECL_VSNPRINTF 0
16961_ACEOF
16962
16963
16964fi
16965
16966
d34a2b1d 16967
252b5132
RH
16968# If we are configured native, pick a core file support file.
16969COREFILE=
16970COREFLAG=
16971TRAD_HEADER=
16972if test "${target}" = "${host}"; then
16973 case "${host}" in
13dfd2d0 16974 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
16975 COREFILE=''
16976 ;;
ed84e695 16977 alpha*-*-linux-*)
252b5132
RH
16978 COREFILE=trad-core.lo
16979 TRAD_HEADER='"hosts/alphalinux.h"'
16980 ;;
690cc98b
NC
16981 alpha*-*-netbsd* | alpha*-*-openbsd*)
16982 COREFILE=netbsd-core.lo
16983 ;;
252b5132 16984 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
16985 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
16986 COREFILE='' ;;
e33533a4
MK
16987 arm-*-netbsd* | arm-*-openbsd*)
16988 COREFILE=netbsd-core.lo
16989 ;;
252b5132
RH
16990 arm-*-riscix) COREFILE=trad-core.lo ;;
16991 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
16992 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
16993 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
16994 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
16995 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
16996 hppa*-*-netbsd* | hppa*-*-openbsd*)
16997 COREFILE=netbsd-core.lo
16998 ;;
16999
dc810e39 17000 i370-*-*)
5b93d8bb
AM
17001 COREFILE=trad-core.lo
17002 TRAD_HEADER='"hosts/i370linux.h"'
17003 ;;
17004
80c7c40a 17005 i[3-7]86-sequent-bsd*)
5b93d8bb 17006 COREFILE=trad-core.lo
252b5132
RH
17007 TRAD_HEADER='"hosts/symmetry.h"'
17008 ;;
80c7c40a
NC
17009 i[3-7]86-sequent-sysv4*) ;;
17010 i[3-7]86-sequent-sysv*)
252b5132
RH
17011 COREFILE=trad-core.lo
17012 TRAD_HEADER='"hosts/symmetry.h"'
17013 ;;
80c7c40a 17014 i[3-7]86-*-bsdi)
7e3b3466
NC
17015 COREFILE=
17016 ;;
d2bef492 17017 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
17018 COREFILE=trad-core.lo
17019 TRAD_HEADER='"hosts/i386bsd.h"'
17020 ;;
13dfd2d0 17021 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
17022 COREFILE=''
17023 TRAD_HEADER='"hosts/i386bsd.h"'
17024 ;;
4615568e 17025 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17026 COREFILE=netbsd-core.lo
17027 ;;
80c7c40a 17028 i[3-7]86-esix-sysv3*)
252b5132
RH
17029 COREFILE=trad-core.lo
17030 TRAD_HEADER='"hosts/esix.h"'
17031 ;;
80c7c40a 17032 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17033 COREFILE=sco5-core.lo
17034 ;;
80c7c40a 17035 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17036 COREFILE=trad-core.lo
17037 TRAD_HEADER='"hosts/i386sco.h"'
17038 ;;
80c7c40a 17039 i[3-7]86-*-mach3*)
252b5132
RH
17040 COREFILE=trad-core.lo
17041 TRAD_HEADER='"hosts/i386mach3.h"'
17042 ;;
ed84e695 17043 i[3-7]86-*-linux-*)
252b5132
RH
17044 COREFILE=trad-core.lo
17045 TRAD_HEADER='"hosts/i386linux.h"'
17046 ;;
80c7c40a
NC
17047 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17048 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17049 i860-*-mach3* | i860-*-osf1*)
17050 COREFILE=trad-core.lo
17051 TRAD_HEADER='"hosts/i860mach3.h"'
17052 ;;
252b5132
RH
17053 mips-*-netbsd* | mips*-*-openbsd*)
17054 COREFILE=netbsd-core.lo
17055 ;;
17056 mips-dec-*)
17057 COREFILE=trad-core.lo
17058 TRAD_HEADER='"hosts/decstation.h"'
17059 ;;
17060 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17061 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17062 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
17063 mips-*-sysv4*) ;;
17064 mips-*-sysv* | mips-*-riscos*)
17065 COREFILE=trad-core.lo
17066 TRAD_HEADER='"hosts/riscos.h"'
17067 ;;
17068 mips-sony-bsd*)
17069 COREFILE=trad-core.lo
17070 TRAD_HEADER='"hosts/news-mips.h"'
17071 ;;
17072 m68*-bull*-sysv*)
17073 COREFILE=trad-core.lo
17074 TRAD_HEADER='"hosts/dpx2.h"'
17075 ;;
17076 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17077 m68*-hp-bsd*)
17078 COREFILE=trad-core.lo
17079 TRAD_HEADER='"hosts/hp300bsd.h"'
17080 ;;
ed84e695 17081 m68*-*-linux-*)
252b5132
RH
17082 COREFILE=trad-core.lo
17083 TRAD_HEADER='"hosts/m68klinux.h"'
17084 ;;
17085 m68*-motorola-sysv*)
17086 COREFILE=trad-core.lo
17087 TRAD_HEADER='"hosts/delta68.h"'
17088 ;;
17089 m68*-sony-*)
17090 COREFILE=trad-core.lo
17091 TRAD_HEADER='"hosts/news.h"'
17092 ;;
17093 m68*-*-netbsd* | m68*-*-openbsd*)
17094 COREFILE=netbsd-core.lo
17095 ;;
17096 m68*-apple-aux*)
17097 COREFILE=trad-core.lo
17098 TRAD_HEADER='"hosts/m68kaux.h"'
17099 ;;
eb1e0e80
NC
17100 m88*-*-sysv4*)
17101 ;;
17102 m88*-motorola-sysv*)
17103 COREFILE=ptrace-core.lo
17104 ;;
252b5132
RH
17105 m88*-*-mach3*)
17106 COREFILE=trad-core.lo
17107 TRAD_HEADER='"hosts/m88kmach3.h"'
17108 ;;
c6f8758f
NC
17109 m88*-*-openbsd*)
17110 COREFILE=netbsd-core.lo
17111 ;;
252b5132
RH
17112 ns32k-pc532-mach)
17113 COREFILE=trad-core.lo
17114 TRAD_HEADER='"hosts/pc532mach.h"'
17115 ;;
17116 ns32k-*-netbsd* | ns32k-*-openbsd*)
17117 COREFILE=netbsd-core.lo
17118 ;;
eb1e0e80
NC
17119 rs6000-*-lynx*)
17120 COREFILE=lynx-core.lo
17121 ;;
17122 rs6000-*-aix5.* | powerpc-*-aix5.*)
17123 COREFILE=rs6000-core.lo
17124 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17125 ;;
83954261 17126 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17127 COREFILE=rs6000-core.lo
17128 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17129 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17130 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17131 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17132echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
17138/* end confdefs.h. */
83954261 17139#include <core.h>
5464f5a1
NN
17140int
17141main ()
17142{
83954261 17143struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17144 ;
17145 return 0;
17146}
17147_ACEOF
17148rm -f conftest.$ac_objext
17149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17150 (eval $ac_compile) 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
49c96104
SE
17157 { ac_try='test -z "$ac_c_werror_flag"
17158 || test ! -s conftest.err'
5464f5a1
NN
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170
17171cat >>confdefs.h <<\_ACEOF
83954261 17172#define HAVE_ST_C_IMPL 1
5464f5a1 17173_ACEOF
83954261 17174
5464f5a1
NN
17175 echo "$as_me:$LINENO: result: yes" >&5
17176echo "${ECHO_T}yes" >&6
83954261 17177else
5464f5a1
NN
17178 echo "$as_me: failed program was:" >&5
17179sed 's/^/| /' conftest.$ac_ext >&5
17180
17181echo "$as_me:$LINENO: result: no" >&5
17182echo "${ECHO_T}no" >&6
83954261 17183fi
5464f5a1 17184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17185 ;;
252b5132
RH
17186 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17187 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17188 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17189 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17190 powerpc-*-beos*) ;;
13dfd2d0
NC
17191 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17192 COREFILE='' ;;
252b5132 17193 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17194 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17195 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17196 sh*-*-netbsd* | sh*-*-openbsd*)
17197 COREFILE=netbsd-core.lo
17198 ;;
a9bf1154 17199 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17200 COREFILE=netbsd-core.lo
17201 ;;
17202 tahoe-*-*)
17203 COREFILE=trad-core.lo
17204 TRAD_HEADER='"hosts/tahoe.h"'
17205 ;;
de6e5e1a
NC
17206 vax-*-netbsd* | vax-*-openbsd*)
17207 COREFILE=netbsd-core.lo
17208 ;;
252b5132
RH
17209 vax-*-ultrix2*)
17210 COREFILE=trad-core.lo
17211 TRAD_HEADER='"hosts/vaxult2.h"'
17212 ;;
17213 vax-*-ultrix*)
17214 COREFILE=trad-core.lo
17215 TRAD_HEADER='"hosts/vaxult2.h"'
17216 ;;
ed84e695 17217 vax-*-linux-*)
f8fc3443
NC
17218 COREFILE=trad-core.lo
17219 TRAD_HEADER='"hosts/vaxlinux.h"'
17220 ;;
252b5132
RH
17221 vax-*-*)
17222 COREFILE=trad-core.lo
17223 TRAD_HEADER='"hosts/vaxbsd.h"'
17224 ;;
85cfd8d3
MK
17225 x86_64-*-netbsd* | x86_64-*-openbsd*)
17226 COREFILE=netbsd-core.lo
17227 ;;
252b5132
RH
17228 esac
17229
17230 case "$COREFILE" in
17231 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17232 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17233 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17234 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17235 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17236 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17237 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17238 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17239 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17240 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17241 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17242 esac
17243
17244 # ELF corefile support has several flavors, but all of
17245 # them use something called <sys/procfs.h>
5464f5a1
NN
17246
17247for ac_header in sys/procfs.h
252b5132 17248do
5464f5a1
NN
17249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17250if eval "test \"\${$as_ac_Header+set}\" = set"; then
17251 echo "$as_me:$LINENO: checking for $ac_header" >&5
17252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17253if eval "test \"\${$as_ac_Header+set}\" = set"; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255fi
17256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17258else
17259 # Is the header compilable?
17260echo "$as_me:$LINENO: checking $ac_header usability" >&5
17261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17262cat >conftest.$ac_ext <<_ACEOF
17263/* confdefs.h. */
17264_ACEOF
17265cat confdefs.h >>conftest.$ac_ext
17266cat >>conftest.$ac_ext <<_ACEOF
17267/* end confdefs.h. */
17268$ac_includes_default
17269#include <$ac_header>
17270_ACEOF
17271rm -f conftest.$ac_objext
17272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
49c96104
SE
17280 { ac_try='test -z "$ac_c_werror_flag"
17281 || test ! -s conftest.err'
5464f5a1
NN
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest.$ac_objext'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_header_compiler=yes
17294else
17295 echo "$as_me: failed program was:" >&5
17296sed 's/^/| /' conftest.$ac_ext >&5
17297
17298ac_header_compiler=no
17299fi
17300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302echo "${ECHO_T}$ac_header_compiler" >&6
17303
17304# Is the header present?
17305echo "$as_me:$LINENO: checking $ac_header presence" >&5
17306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17307cat >conftest.$ac_ext <<_ACEOF
17308/* confdefs.h. */
17309_ACEOF
17310cat confdefs.h >>conftest.$ac_ext
17311cat >>conftest.$ac_ext <<_ACEOF
17312/* end confdefs.h. */
17313#include <$ac_header>
17314_ACEOF
17315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } >/dev/null; then
17323 if test -s conftest.err; then
17324 ac_cpp_err=$ac_c_preproc_warn_flag
17325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17326 else
17327 ac_cpp_err=
17328 fi
252b5132 17329else
5464f5a1 17330 ac_cpp_err=yes
252b5132 17331fi
5464f5a1
NN
17332if test -z "$ac_cpp_err"; then
17333 ac_header_preproc=yes
17334else
17335 echo "$as_me: failed program was:" >&5
17336sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 ac_header_preproc=no
252b5132 17339fi
5464f5a1
NN
17340rm -f conftest.err conftest.$ac_ext
17341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17342echo "${ECHO_T}$ac_header_preproc" >&6
17343
17344# So? What about this header?
17345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17346 yes:no: )
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17351 ac_header_preproc=yes
17352 ;;
17353 no:yes:* )
17354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17366 (
17367 cat <<\_ASBOX
17368## ------------------------------------------ ##
17369## Report this to the AC_PACKAGE_NAME lists. ##
17370## ------------------------------------------ ##
17371_ASBOX
17372 ) |
17373 sed "s/^/$as_me: WARNING: /" >&2
17374 ;;
17375esac
17376echo "$as_me:$LINENO: checking for $ac_header" >&5
17377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17378if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17380else
5464f5a1
NN
17381 eval "$as_ac_Header=\$ac_header_preproc"
17382fi
17383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17385
252b5132 17386fi
5464f5a1
NN
17387if test `eval echo '${'$as_ac_Header'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17390_ACEOF
17391
17392fi
17393
252b5132
RH
17394done
17395
17396 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
17397 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17398echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17399 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401else
17402 cat >conftest.$ac_ext <<_ACEOF
17403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
7ee38065
MS
17408
17409#define _SYSCALL32
252b5132 17410#include <sys/procfs.h>
5464f5a1
NN
17411int
17412main ()
17413{
252b5132 17414prstatus_t avar
5464f5a1
NN
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext
17420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17421 (eval $ac_compile) 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
49c96104
SE
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
5464f5a1
NN
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
252b5132
RH
17441 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17442else
5464f5a1
NN
17443 echo "$as_me: failed program was:" >&5
17444sed 's/^/| /' conftest.$ac_ext >&5
17445
17446bfd_cv_have_sys_procfs_type_prstatus_t=no
17447
252b5132 17448fi
5464f5a1 17449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17450fi
17451
17452 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
17453
17454cat >>confdefs.h <<\_ACEOF
252b5132 17455#define HAVE_PRSTATUS_T 1
5464f5a1 17456_ACEOF
252b5132
RH
17457
17458 fi
5464f5a1
NN
17459 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17460echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 17461
5464f5a1
NN
17462 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17463echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17464 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17466else
5464f5a1
NN
17467 cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
7ee38065
MS
17473
17474#define _SYSCALL32
17475#include <sys/procfs.h>
5464f5a1
NN
17476int
17477main ()
17478{
7ee38065 17479prstatus32_t avar
5464f5a1
NN
17480 ;
17481 return 0;
17482}
17483_ACEOF
17484rm -f conftest.$ac_objext
17485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17486 (eval $ac_compile) 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
49c96104
SE
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
5464f5a1
NN
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
7ee38065
MS
17506 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17507else
5464f5a1
NN
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511bfd_cv_have_sys_procfs_type_prstatus32_t=no
17512
7ee38065 17513fi
5464f5a1 17514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17515fi
17516
17517 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
17518
17519cat >>confdefs.h <<\_ACEOF
7ee38065 17520#define HAVE_PRSTATUS32_T 1
5464f5a1 17521_ACEOF
7ee38065
MS
17522
17523 fi
5464f5a1
NN
17524 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17525echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 17526
5464f5a1
NN
17527 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17528echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17529 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17531else
5464f5a1
NN
17532 cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h. */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h. */
7ee38065
MS
17538
17539#define _SYSCALL32
252b5132 17540#include <sys/procfs.h>
5464f5a1
NN
17541int
17542main ()
17543{
252b5132 17544prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17545 ;
17546 return 0;
17547}
17548_ACEOF
17549rm -f conftest.$ac_objext
17550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17551 (eval $ac_compile) 2>conftest.er1
17552 ac_status=$?
17553 grep -v '^ *+' conftest.er1 >conftest.err
17554 rm -f conftest.er1
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
49c96104
SE
17558 { ac_try='test -z "$ac_c_werror_flag"
17559 || test ! -s conftest.err'
5464f5a1
NN
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
252b5132
RH
17571 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17572else
5464f5a1
NN
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17577
252b5132 17578fi
5464f5a1 17579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17580fi
17581
17582 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
17583
17584cat >>confdefs.h <<\_ACEOF
252b5132 17585#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 17586_ACEOF
252b5132
RH
17587
17588 fi
5464f5a1
NN
17589 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
17590echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 17591
5464f5a1
NN
17592 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
17593echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17594 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17596else
5464f5a1
NN
17597 cat >conftest.$ac_ext <<_ACEOF
17598/* confdefs.h. */
17599_ACEOF
17600cat confdefs.h >>conftest.$ac_ext
17601cat >>conftest.$ac_ext <<_ACEOF
17602/* end confdefs.h. */
7ee38065
MS
17603
17604#define _SYSCALL32
17605#include <sys/procfs.h>
5464f5a1
NN
17606int
17607main ()
17608{
7ee38065 17609prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17610 ;
17611 return 0;
17612}
17613_ACEOF
17614rm -f conftest.$ac_objext
17615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17616 (eval $ac_compile) 2>conftest.er1
17617 ac_status=$?
17618 grep -v '^ *+' conftest.er1 >conftest.err
17619 rm -f conftest.er1
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
49c96104
SE
17623 { ac_try='test -z "$ac_c_werror_flag"
17624 || test ! -s conftest.err'
5464f5a1
NN
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest.$ac_objext'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
7ee38065
MS
17636 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
17637else
5464f5a1
NN
17638 echo "$as_me: failed program was:" >&5
17639sed 's/^/| /' conftest.$ac_ext >&5
17640
17641bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
17642
7ee38065 17643fi
5464f5a1 17644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17645fi
17646
17647 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
17648
17649cat >>confdefs.h <<\_ACEOF
7ee38065 17650#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 17651_ACEOF
7ee38065
MS
17652
17653 fi
5464f5a1
NN
17654 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
17655echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 17656
5464f5a1
NN
17657 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17658echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17659 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17661else
5464f5a1
NN
17662 cat >conftest.$ac_ext <<_ACEOF
17663/* confdefs.h. */
17664_ACEOF
17665cat confdefs.h >>conftest.$ac_ext
17666cat >>conftest.$ac_ext <<_ACEOF
17667/* end confdefs.h. */
7ee38065
MS
17668
17669#define _SYSCALL32
252b5132 17670#include <sys/procfs.h>
5464f5a1
NN
17671int
17672main ()
17673{
252b5132 17674pstatus_t avar
5464f5a1
NN
17675 ;
17676 return 0;
17677}
17678_ACEOF
17679rm -f conftest.$ac_objext
17680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
49c96104
SE
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
5464f5a1
NN
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
252b5132
RH
17701 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17702else
5464f5a1
NN
17703 echo "$as_me: failed program was:" >&5
17704sed 's/^/| /' conftest.$ac_ext >&5
17705
17706bfd_cv_have_sys_procfs_type_pstatus_t=no
17707
252b5132 17708fi
5464f5a1 17709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17710fi
17711
17712 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
17713
17714cat >>confdefs.h <<\_ACEOF
252b5132 17715#define HAVE_PSTATUS_T 1
5464f5a1 17716_ACEOF
252b5132
RH
17717
17718 fi
5464f5a1
NN
17719 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17720echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 17721
5464f5a1
NN
17722 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
17723echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
17724 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 17726else
5464f5a1
NN
17727 cat >conftest.$ac_ext <<_ACEOF
17728/* confdefs.h. */
17729_ACEOF
17730cat confdefs.h >>conftest.$ac_ext
17731cat >>conftest.$ac_ext <<_ACEOF
17732/* end confdefs.h. */
f572a39d
AM
17733
17734#define _SYSCALL32
17735#include <sys/procfs.h>
5464f5a1
NN
17736int
17737main ()
17738{
f572a39d 17739pxstatus_t avar
5464f5a1
NN
17740 ;
17741 return 0;
17742}
17743_ACEOF
17744rm -f conftest.$ac_objext
17745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17746 (eval $ac_compile) 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
49c96104
SE
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
5464f5a1
NN
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
f572a39d
AM
17766 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
17767else
5464f5a1
NN
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771bfd_cv_have_sys_procfs_type_pxstatus_t=no
17772
f572a39d 17773fi
5464f5a1 17774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
17775fi
17776
17777 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
17778
17779cat >>confdefs.h <<\_ACEOF
f572a39d 17780#define HAVE_PXSTATUS_T 1
5464f5a1 17781_ACEOF
f572a39d
AM
17782
17783 fi
5464f5a1
NN
17784 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
17785echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 17786
5464f5a1
NN
17787 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
17788echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
17789 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17791else
5464f5a1
NN
17792 cat >conftest.$ac_ext <<_ACEOF
17793/* confdefs.h. */
17794_ACEOF
17795cat confdefs.h >>conftest.$ac_ext
17796cat >>conftest.$ac_ext <<_ACEOF
17797/* end confdefs.h. */
7ee38065
MS
17798
17799#define _SYSCALL32
17800#include <sys/procfs.h>
5464f5a1
NN
17801int
17802main ()
17803{
7ee38065 17804pstatus32_t avar
5464f5a1
NN
17805 ;
17806 return 0;
17807}
17808_ACEOF
17809rm -f conftest.$ac_objext
17810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
49c96104
SE
17818 { ac_try='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
5464f5a1
NN
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
7ee38065
MS
17831 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
17832else
5464f5a1
NN
17833 echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836bfd_cv_have_sys_procfs_type_pstatus32_t=no
17837
7ee38065 17838fi
5464f5a1 17839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17840fi
17841
17842 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
17843
17844cat >>confdefs.h <<\_ACEOF
7ee38065 17845#define HAVE_PSTATUS32_T 1
5464f5a1 17846_ACEOF
7ee38065
MS
17847
17848 fi
5464f5a1
NN
17849 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
17850echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 17851
5464f5a1
NN
17852 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
17853echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
17854 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17856else
5464f5a1
NN
17857 cat >conftest.$ac_ext <<_ACEOF
17858/* confdefs.h. */
17859_ACEOF
17860cat confdefs.h >>conftest.$ac_ext
17861cat >>conftest.$ac_ext <<_ACEOF
17862/* end confdefs.h. */
7ee38065
MS
17863
17864#define _SYSCALL32
252b5132 17865#include <sys/procfs.h>
5464f5a1
NN
17866int
17867main ()
17868{
252b5132 17869prpsinfo_t avar
5464f5a1
NN
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext
17875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
49c96104
SE
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
5464f5a1
NN
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
252b5132
RH
17896 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
17897else
5464f5a1
NN
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901bfd_cv_have_sys_procfs_type_prpsinfo_t=no
17902
252b5132 17903fi
5464f5a1 17904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17905fi
17906
17907 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
17908
17909cat >>confdefs.h <<\_ACEOF
252b5132 17910#define HAVE_PRPSINFO_T 1
5464f5a1 17911_ACEOF
252b5132
RH
17912
17913 fi
5464f5a1
NN
17914 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
17915echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 17916
5464f5a1
NN
17917 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
17918echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
17919 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17921else
5464f5a1
NN
17922 cat >conftest.$ac_ext <<_ACEOF
17923/* confdefs.h. */
17924_ACEOF
17925cat confdefs.h >>conftest.$ac_ext
17926cat >>conftest.$ac_ext <<_ACEOF
17927/* end confdefs.h. */
7ee38065
MS
17928
17929#define _SYSCALL32
17930#include <sys/procfs.h>
5464f5a1
NN
17931int
17932main ()
17933{
7ee38065 17934prpsinfo32_t avar
5464f5a1
NN
17935 ;
17936 return 0;
17937}
17938_ACEOF
17939rm -f conftest.$ac_objext
17940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17941 (eval $ac_compile) 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
49c96104
SE
17948 { ac_try='test -z "$ac_c_werror_flag"
17949 || test ! -s conftest.err'
5464f5a1
NN
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest.$ac_objext'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
7ee38065
MS
17961 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
17962else
5464f5a1
NN
17963 echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
17967
7ee38065 17968fi
5464f5a1 17969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17970fi
17971
17972 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
17973
17974cat >>confdefs.h <<\_ACEOF
7ee38065 17975#define HAVE_PRPSINFO32_T 1
5464f5a1 17976_ACEOF
7ee38065
MS
17977
17978 fi
5464f5a1
NN
17979 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
17980echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 17981
5464f5a1
NN
17982 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
17983echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
17984 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17986else
5464f5a1
NN
17987 cat >conftest.$ac_ext <<_ACEOF
17988/* confdefs.h. */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h. */
7ee38065
MS
17993
17994#define _SYSCALL32
252b5132 17995#include <sys/procfs.h>
5464f5a1
NN
17996int
17997main ()
17998{
252b5132 17999psinfo_t avar
5464f5a1
NN
18000 ;
18001 return 0;
18002}
18003_ACEOF
18004rm -f conftest.$ac_objext
18005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18006 (eval $ac_compile) 2>conftest.er1
18007 ac_status=$?
18008 grep -v '^ *+' conftest.er1 >conftest.err
18009 rm -f conftest.er1
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
49c96104
SE
18013 { ac_try='test -z "$ac_c_werror_flag"
18014 || test ! -s conftest.err'
5464f5a1
NN
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest.$ac_objext'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
252b5132
RH
18026 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18027else
5464f5a1
NN
18028 echo "$as_me: failed program was:" >&5
18029sed 's/^/| /' conftest.$ac_ext >&5
18030
18031bfd_cv_have_sys_procfs_type_psinfo_t=no
18032
252b5132 18033fi
5464f5a1 18034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18035fi
18036
18037 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18038
18039cat >>confdefs.h <<\_ACEOF
252b5132 18040#define HAVE_PSINFO_T 1
5464f5a1 18041_ACEOF
252b5132
RH
18042
18043 fi
5464f5a1
NN
18044 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18045echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18046
5464f5a1
NN
18047 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18048echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18049 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18051else
5464f5a1
NN
18052 cat >conftest.$ac_ext <<_ACEOF
18053/* confdefs.h. */
18054_ACEOF
18055cat confdefs.h >>conftest.$ac_ext
18056cat >>conftest.$ac_ext <<_ACEOF
18057/* end confdefs.h. */
7ee38065
MS
18058
18059#define _SYSCALL32
18060#include <sys/procfs.h>
5464f5a1
NN
18061int
18062main ()
18063{
7ee38065 18064psinfo32_t avar
5464f5a1
NN
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest.$ac_objext
18070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071 (eval $ac_compile) 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
49c96104
SE
18078 { ac_try='test -z "$ac_c_werror_flag"
18079 || test ! -s conftest.err'
5464f5a1
NN
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest.$ac_objext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
7ee38065
MS
18091 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18092else
5464f5a1
NN
18093 echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
18096bfd_cv_have_sys_procfs_type_psinfo32_t=no
18097
7ee38065 18098fi
5464f5a1 18099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18100fi
18101
18102 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18103
18104cat >>confdefs.h <<\_ACEOF
7ee38065 18105#define HAVE_PSINFO32_T 1
5464f5a1 18106_ACEOF
7ee38065
MS
18107
18108 fi
5464f5a1
NN
18109 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18110echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18111
5464f5a1
NN
18112 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18113echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18114 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18116else
5464f5a1
NN
18117 cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
7ee38065
MS
18123
18124#define _SYSCALL32
252b5132 18125#include <sys/procfs.h>
5464f5a1
NN
18126int
18127main ()
18128{
252b5132 18129lwpstatus_t avar
5464f5a1
NN
18130 ;
18131 return 0;
18132}
18133_ACEOF
18134rm -f conftest.$ac_objext
18135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136 (eval $ac_compile) 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
49c96104
SE
18143 { ac_try='test -z "$ac_c_werror_flag"
18144 || test ! -s conftest.err'
5464f5a1
NN
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest.$ac_objext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
252b5132
RH
18156 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18157else
5464f5a1
NN
18158 echo "$as_me: failed program was:" >&5
18159sed 's/^/| /' conftest.$ac_ext >&5
18160
18161bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18162
252b5132 18163fi
5464f5a1 18164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18165fi
18166
18167 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18168
18169cat >>confdefs.h <<\_ACEOF
252b5132 18170#define HAVE_LWPSTATUS_T 1
5464f5a1 18171_ACEOF
252b5132
RH
18172
18173 fi
5464f5a1
NN
18174 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18175echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18176
5464f5a1
NN
18177 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18178echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18179 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18181else
5464f5a1
NN
18182 cat >conftest.$ac_ext <<_ACEOF
18183/* confdefs.h. */
18184_ACEOF
18185cat confdefs.h >>conftest.$ac_ext
18186cat >>conftest.$ac_ext <<_ACEOF
18187/* end confdefs.h. */
f572a39d
AM
18188
18189#define _SYSCALL32
18190#include <sys/procfs.h>
5464f5a1
NN
18191int
18192main ()
18193{
f572a39d 18194lwpxstatus_t avar
5464f5a1
NN
18195 ;
18196 return 0;
18197}
18198_ACEOF
18199rm -f conftest.$ac_objext
18200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201 (eval $ac_compile) 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
49c96104
SE
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
5464f5a1
NN
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
f572a39d
AM
18221 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18222else
5464f5a1
NN
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18227
f572a39d 18228fi
5464f5a1 18229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18230fi
18231
18232 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18233
18234cat >>confdefs.h <<\_ACEOF
f572a39d 18235#define HAVE_LWPXSTATUS_T 1
5464f5a1 18236_ACEOF
f572a39d
AM
18237
18238 fi
5464f5a1
NN
18239 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18240echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18241
5464f5a1
NN
18242 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18243echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18244 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18246else
5464f5a1
NN
18247 cat >conftest.$ac_ext <<_ACEOF
18248/* confdefs.h. */
18249_ACEOF
18250cat confdefs.h >>conftest.$ac_ext
18251cat >>conftest.$ac_ext <<_ACEOF
18252/* end confdefs.h. */
7ee38065
MS
18253
18254#define _SYSCALL32
252b5132 18255#include <sys/procfs.h>
5464f5a1
NN
18256int
18257main ()
18258{
252b5132 18259lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18260 ;
18261 return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext
18265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
49c96104
SE
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
5464f5a1
NN
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
252b5132
RH
18286 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18287else
5464f5a1
NN
18288 echo "$as_me: failed program was:" >&5
18289sed 's/^/| /' conftest.$ac_ext >&5
18290
18291bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18292
252b5132 18293fi
5464f5a1 18294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18295fi
18296
18297 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18298
18299cat >>confdefs.h <<\_ACEOF
252b5132 18300#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18301_ACEOF
252b5132
RH
18302
18303 fi
5464f5a1
NN
18304 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18305echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18306
5464f5a1
NN
18307 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18308echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18309 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18311else
5464f5a1
NN
18312 cat >conftest.$ac_ext <<_ACEOF
18313/* confdefs.h. */
18314_ACEOF
18315cat confdefs.h >>conftest.$ac_ext
18316cat >>conftest.$ac_ext <<_ACEOF
18317/* end confdefs.h. */
7ee38065
MS
18318
18319#define _SYSCALL32
252b5132 18320#include <sys/procfs.h>
5464f5a1
NN
18321int
18322main ()
18323{
252b5132 18324lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18325 ;
18326 return 0;
18327}
18328_ACEOF
18329rm -f conftest.$ac_objext
18330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
49c96104
SE
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
5464f5a1
NN
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
252b5132
RH
18351 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18352else
5464f5a1
NN
18353 echo "$as_me: failed program was:" >&5
18354sed 's/^/| /' conftest.$ac_ext >&5
18355
18356bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18357
252b5132 18358fi
5464f5a1 18359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18360fi
18361
18362 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18363
18364cat >>confdefs.h <<\_ACEOF
252b5132 18365#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18366_ACEOF
252b5132
RH
18367
18368 fi
5464f5a1
NN
18369 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18370echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18371
5464f5a1
NN
18372 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18373echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18374 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 18376else
5464f5a1
NN
18377 cat >conftest.$ac_ext <<_ACEOF
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
7ee38065
MS
18383
18384#define _SYSCALL32
e3c976c4 18385#include <sys/procfs.h>
5464f5a1
NN
18386int
18387main ()
18388{
e3c976c4 18389win32_pstatus_t avar
5464f5a1
NN
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394rm -f conftest.$ac_objext
18395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
49c96104
SE
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
5464f5a1
NN
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
e3c976c4
ILT
18416 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18417else
5464f5a1
NN
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18422
e3c976c4 18423fi
5464f5a1 18424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18425fi
18426
e3c976c4 18427 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
18428
18429cat >>confdefs.h <<\_ACEOF
e3c976c4 18430#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 18431_ACEOF
16e9c715
NC
18432
18433 fi
5464f5a1
NN
18434 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18435echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
18436
18437 fi
18438fi
16e9c715 18439
b3baf5d0 18440
6be7c12c 18441if test -n "$TRAD_HEADER"; then
5464f5a1
NN
18442
18443cat >>confdefs.h <<_ACEOF
252b5132 18444#define TRAD_HEADER $TRAD_HEADER
5464f5a1 18445_ACEOF
252b5132 18446
3f9b03b5 18447fi
252b5132
RH
18448
18449# Horrible hacks to build DLLs on Windows.
18450WIN32LDFLAGS=
18451WIN32LIBADD=
18452case "${host}" in
18453*-*-cygwin*)
18454 if test "$enable_shared" = "yes"; then
18455 WIN32LDFLAGS="-no-undefined"
18456 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18457 fi
18458 ;;
78be1d6e 18459*-*-linux*)
39691762
L
18460 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18461 # libiberty.a.
ca51bfff
L
18462 case "${host}" in
18463 mips*-*-linux*)
18464 # Linux/MIPS uses PIC by default.
18465 if test "$enable_shared" = "yes"; then
18466 WIN32LIBADD="-L../libiberty -liberty"
18467 fi
18468 ;;
18469 *)
66e25bab 18470 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 18471 if test -n "$x"; then
ca51bfff
L
18472 WIN32LIBADD="-L../libiberty/pic -liberty"
18473 fi
18474 ;;
18475 esac
39691762 18476 ;;
252b5132
RH
18477esac
18478
6be7c12c
AO
18479
18480
252b5132
RH
18481# target stuff:
18482
18483# Canonicalize the secondary target names.
18484if test -n "$enable_targets" ; then
18485 for targ in `echo $enable_targets | sed 's/,/ /g'`
18486 do
6d83c84b 18487 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
18488 if test -n "$result" ; then
18489 canon_targets="$canon_targets $result"
18490 else
18491 # Allow targets that config.sub doesn't recognize, like "all".
18492 canon_targets="$canon_targets $targ"
18493 fi
18494 done
18495fi
18496
18497all_targets=false
18498defvec=
18499selvecs=
08f74004 18500assocvecs=
252b5132
RH
18501selarchs=
18502TDEFINES=
18503for targ in $target $canon_targets
18504do
18505 if test "x$targ" = "xall"; then
18506 all_targets=true
08f74004 18507 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
18508 else
18509 . $srcdir/config.bfd
18510 if test "x$targ" = "x$target"; then
18511 defvec=$targ_defvec
18512 fi
18513 selvecs="$selvecs $targ_defvec $targ_selvecs"
18514 selarchs="$selarchs $targ_archs"
18515 TDEFINES="$TDEFINES $targ_cflags"
18516 fi
18517done
18518
6be7c12c 18519
252b5132
RH
18520# This processing still needs to be done if we're to decide properly whether
18521# 64-bit support needs to be compiled in. Currently, it will be included if
18522# the default or any other explicitly requested target requires it; it
18523# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 18524# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
18525# used.
18526
18527# uniq the default and selected vectors in all the configured targets.
18528f=""
18529for i in $selvecs ; do
18530 case " $f " in
18531 *" $i "*) ;;
18532 *) f="$f $i" ;;
18533 esac
18534done
18535selvecs="$f"
18536
6be7c12c 18537
08f74004
AM
18538# uniq the associated vectors in all the configured targets.
18539f=""
18540for i in $assocvecs ; do
18541 case " $f " in
18542 *" $i "*) ;;
18543 *) f="$f $i" ;;
18544 esac
18545done
18546assocvecs="$f"
18547
18548
252b5132
RH
18549# uniq the architectures in all the configured targets.
18550f=""
18551for i in $selarchs ; do
18552 case " $f " in
18553 *" $i "*) ;;
18554 *) f="$f $i" ;;
18555 esac
18556done
18557selarchs="$f"
18558
18559# Target backend .o files.
18560tb=
18561
65765700 18562elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
18563
18564for vec in $selvecs
18565do
69263e90 18566 target_size=32
252b5132
RH
18567 case "$vec" in
18568 # This list is alphabetized to make it easy to compare
dc810e39
AM
18569 # with the two vector lists in targets.c. For the same reason,
18570 # use one entry per line, even though this leads to long lines.
252b5132 18571 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 18572 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
18573 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18574 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18575 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 18576 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
18577 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18578 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18579 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18580 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
18581 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18582 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18583 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18584 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
18585 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18586 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18587 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
18588 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18589 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18590 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18591 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
18592 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
18593 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 18594 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 18595 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 18596 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 18597 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 18598 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 18599 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 18600 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 18601 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 18602 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 18603 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 18604 bfd_elf32_bigarm_symbian_vec)
00a97672 18605 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 18606 bfd_elf32_bigarm_vxworks_vec)
00a97672 18607 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
18608 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18609 bfd_elf32_bigmips_vxworks_vec)
18610 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 18611 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 18612 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 18613 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
18614 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
18615 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 18616 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 18617 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 18618 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 18619 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 18620 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 18621 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 18622 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 18623 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 18624 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
18625 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18626 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18627 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 18628 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 18629 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 18630 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 18631 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 18632 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 18633 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 18634 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 18635 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 18636 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 18637 bfd_elf32_littlearm_symbian_vec)
00a97672 18638 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 18639 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
18640 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18641 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
18642 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18643 bfd_elf32_littlemips_vxworks_vec)
18644 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 18645 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 18646 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
18647 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18648 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18649 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
18650 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18651 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
18652 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
18653 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
18654 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18655 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
18656 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18657 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
18658 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
18659 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 18660 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 18661 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
18662 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18663 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18664 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18665 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 18666 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 18667 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
18668 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
18669 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
18670 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18671 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18672 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 18673 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
18674 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
18675 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
18676 # FIXME: We include cofflink.lo not because it's needed for
18677 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
18678 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
18679 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18680 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18681 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18682 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18683 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18684 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18685 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18686 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18687 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18688 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18689 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18690 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18691 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 18692 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 18693 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
18694 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18695 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 18696 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
18697 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18698 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 18699 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 18700 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 18701 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 18702 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 18703 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
18704 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18705 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 18706 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
18707 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
18708 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 18709 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
18710 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
18711 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 18712 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 18713 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
18714 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18715 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 18716 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 18717 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
18718 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18719 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
18720 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
18721 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18722 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
18723 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18724 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18725 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18726 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 18727 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 18728 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
18729 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 ;;
18730 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 18731 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 18732 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 18733 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
18734 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18735 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
18736 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18737 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 18738 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 18739 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 18740 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 18741 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
18742 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18743 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
18744 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
18745 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
18746 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
18747 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
18748 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
18749 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
18750 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
18751 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
18752 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
18753 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 18754 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
18755 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
18756 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
18757 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
18758 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
18759 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
18760 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 18761 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
18762 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
18763 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
18764 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
18765 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
18766 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18767 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
18768 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
18769 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18770 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18771 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
18772 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
18773 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
18774 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
18775 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
18776 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 18777 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
18778 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
18779 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 18780 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 18781 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 18782 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
18783 mach_o_be_vec) tb="$tb mach-o.lo" ;;
18784 mach_o_le_vec) tb="$tb mach-o.lo" ;;
18785 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
18786 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18787 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18788 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
18789 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
18790 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
18791 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 18792 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 18793 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 18794 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 18795 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 18796 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 18797 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 18798 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 18799 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
18800 pef_vec) tb="$tb pef.lo" ;;
18801 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 18802 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 18803 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 18804 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 18805 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 18806 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 18807 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 18808 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 18809 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 18810 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 18811 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
18812 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
18813 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 18814 som_vec) tb="$tb som.lo" ;;
dc810e39 18815 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
18816 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
18817 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
18818 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
18819 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
18820 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 18821 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 18822 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
18823 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
18824 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
18825 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
18826 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
18827 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
18828 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
18829 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
18830 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 18831 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 18832 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 18833 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 18834 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 18835 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 18836 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 18837 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 18838 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 18839 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 18840 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 18841 versados_vec) tb="$tb versados.lo" ;;
dc810e39 18842 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
18843 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
18844 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
18845 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 18846 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 18847 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 18848
341ca622
AM
18849 # These appear out of order in targets.c
18850 srec_vec) tb="$tb srec.lo" ;;
18851 symbolsrec_vec) tb="$tb srec.lo" ;;
18852 tekhex_vec) tb="$tb tekhex.lo" ;;
18853 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
18854 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
18855
252b5132 18856 "") ;;
5464f5a1
NN
18857 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
18858echo "$as_me: error: *** unknown target vector $vec" >&2;}
18859 { (exit 1); exit 1; }; } ;;
252b5132 18860 esac
69263e90
AM
18861
18862 if test ${target_size} = 64; then
18863 target64=true
18864 fi
18865 if test x"${vec}" = x"${defvec}"; then
18866 bfd_default_target_size=${target_size}
18867 fi
252b5132
RH
18868done
18869
18870# Target architecture .o files.
18871# A couple of CPUs use shorter file names to avoid problems on DOS
18872# filesystems.
d031aafb 18873ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
18874
18875# Weed out duplicate .o files.
18876f=""
18877for i in $tb ; do
18878 case " $f " in
18879 *" $i "*) ;;
18880 *) f="$f $i" ;;
18881 esac
18882done
18883tb="$f"
18884
18885f=""
18886for i in $ta ; do
18887 case " $f " in
18888 *" $i "*) ;;
18889 *) f="$f $i" ;;
18890 esac
18891done
18892ta="$f"
18893
18894bfd_backends="$tb"
18895bfd_machines="$ta"
18896
18897if test x${all_targets} = xtrue ; then
18898 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
18899 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
18900 selvecs=
18901 havevecs=
18902 selarchs=
08f74004
AM
18903 test -n "$assocvecs" &&
18904 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
18905else # all_targets is true
18906 # Only set these if they will be nonempty, for the clever echo.
18907 havevecs=
08f74004 18908 assocvecs=
252b5132
RH
18909 test -n "$selvecs" &&
18910 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
18911 test -n "$selvecs" &&
18912 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18913 test -n "$selarchs" &&
18914 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18915fi # all_targets is true
18916
18917case ${host64}-${target64}-${want64} in
18918 *true*)
18919 wordsize=64
21e40a48 18920 bfd64_libs='$(BFD64_LIBS)'
252b5132 18921 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 18922 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
18923 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
18924echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
18926echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 18927 fi
966abd70
HPN
18928 if test -n "$GCC" ; then
18929 bad_64bit_gcc=no;
5464f5a1
NN
18930 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
18931echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 18932 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
18933 cat >conftest.$ac_ext <<_ACEOF
18934/* confdefs.h. */
18935_ACEOF
18936cat confdefs.h >>conftest.$ac_ext
18937cat >>conftest.$ac_ext <<_ACEOF
18938/* end confdefs.h. */
966abd70 18939:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 18940_ACEOF
966abd70 18941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 18942 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 18943 bad_64bit_gcc=yes;
5464f5a1
NN
18944 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
18945echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 18946else
5464f5a1
NN
18947 echo "$as_me:$LINENO: result: no" >&5
18948echo "${ECHO_T}no" >&6
966abd70
HPN
18949fi
18950rm -f conftest*
18951
18952 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
18953 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
18954echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
18955 { (exit 1); exit 1; }; }
966abd70
HPN
18956 fi
18957 fi
252b5132
RH
18958 ;;
18959 false-false-false)
18960 wordsize=32
18961 all_backends='$(BFD32_BACKENDS)'
18962 ;;
18963esac
18964
6be7c12c
AO
18965
18966
18967
18968
18969
69263e90 18970
2858ef35 18971
1012372a
AC
18972# Determine the host dependant file_ptr a.k.a. off_t type. In order
18973# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
18974# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
18975# Hopefully a reasonable assumption since fseeko et.al. should be
18976# upward compatible.
5464f5a1
NN
18977
18978
18979
18980
2e6f4fae
DJ
18981
18982for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 18983do
5464f5a1
NN
18984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985echo "$as_me:$LINENO: checking for $ac_func" >&5
18986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18987if eval "test \"\${$as_ac_var+set}\" = set"; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989else
2ba49b59
KC
18990 cat >conftest.$ac_ext <<_ACEOF
18991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998#define $ac_func innocuous_$ac_func
18999
19000/* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19004
19005#ifdef __STDC__
19006# include <limits.h>
19007#else
19008# include <assert.h>
19009#endif
19010
19011#undef $ac_func
19012
19013/* Override any gcc2 internal prototype to avoid an error. */
19014#ifdef __cplusplus
19015extern "C"
19016{
19017#endif
19018/* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19020char $ac_func ();
19021/* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19025choke me
19026#else
19027char (*f) () = $ac_func;
19028#endif
19029#ifdef __cplusplus
19030}
19031#endif
19032
19033int
19034main ()
19035{
19036return f != $ac_func;
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041rm -f conftest.$ac_objext conftest$ac_exeext
19042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19043 (eval $ac_link) 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
49c96104
SE
19050 { ac_try='test -z "$ac_c_werror_flag"
19051 || test ! -s conftest.err'
2ba49b59
KC
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 eval "$as_ac_var=yes"
19064else
19065 echo "$as_me: failed program was:" >&5
19066sed 's/^/| /' conftest.$ac_ext >&5
19067
19068eval "$as_ac_var=no"
19069fi
19070rm -f conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072fi
19073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19074echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19075if test `eval echo '${'$as_ac_var'}'` = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19078_ACEOF
19079
19080fi
19081done
19082
19083if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19084 echo "$as_me:$LINENO: checking for off_t" >&5
19085echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19086if test "${ac_cv_type_off_t+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088else
19089 cat >conftest.$ac_ext <<_ACEOF
19090/* confdefs.h. */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h. */
19095$ac_includes_default
19096int
19097main ()
19098{
19099if ((off_t *) 0)
19100 return 0;
19101if (sizeof (off_t))
19102 return 0;
19103 ;
19104 return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext
19108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>conftest.er1
19110 ac_status=$?
19111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
49c96104
SE
19116 { ac_try='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
2ba49b59
KC
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_off_t=yes
19130else
19131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134ac_cv_type_off_t=no
19135fi
19136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137fi
19138echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19139echo "${ECHO_T}$ac_cv_type_off_t" >&6
19140
19141echo "$as_me:$LINENO: checking size of off_t" >&5
19142echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19143if test "${ac_cv_sizeof_off_t+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146 if test "$ac_cv_type_off_t" = yes; then
19147 # The cast to unsigned long works around a bug in the HP C Compiler
19148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19150 # This bug is HP SR number 8606223364.
19151 if test "$cross_compiling" = yes; then
19152 # Depending upon the size, compute the lo and hi bounds.
19153cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19154/* confdefs.h. */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
19158/* end confdefs.h. */
2ba49b59
KC
19159$ac_includes_default
19160int
19161main ()
19162{
19163static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19164test_array [0] = 0
5464f5a1 19165
2ba49b59
KC
19166 ;
19167 return 0;
19168}
19169_ACEOF
19170rm -f conftest.$ac_objext
19171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
49c96104
SE
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
2ba49b59
KC
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_lo=0 ac_mid=0
19193 while :; do
19194 cat >conftest.$ac_ext <<_ACEOF
19195/* confdefs.h. */
19196_ACEOF
19197cat confdefs.h >>conftest.$ac_ext
19198cat >>conftest.$ac_ext <<_ACEOF
19199/* end confdefs.h. */
19200$ac_includes_default
19201int
19202main ()
19203{
19204static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19205test_array [0] = 0
5464f5a1 19206
2ba49b59
KC
19207 ;
19208 return 0;
19209}
19210_ACEOF
19211rm -f conftest.$ac_objext
19212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19213 (eval $ac_compile) 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
49c96104
SE
19220 { ac_try='test -z "$ac_c_werror_flag"
19221 || test ! -s conftest.err'
2ba49b59
KC
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest.$ac_objext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_hi=$ac_mid; break
19234else
19235 echo "$as_me: failed program was:" >&5
19236sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19237
2ba49b59
KC
19238ac_lo=`expr $ac_mid + 1`
19239 if test $ac_lo -le $ac_mid; then
19240 ac_lo= ac_hi=
19241 break
19242 fi
19243 ac_mid=`expr 2 '*' $ac_mid + 1`
19244fi
19245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246 done
19247else
19248 echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19250
2ba49b59
KC
19251cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257$ac_includes_default
19258int
19259main ()
5464f5a1 19260{
2ba49b59
KC
19261static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19262test_array [0] = 0
1012372a 19263
2ba49b59
KC
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext
19269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
49c96104
SE
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
2ba49b59
KC
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_hi=-1 ac_mid=-1
19291 while :; do
19292 cat >conftest.$ac_ext <<_ACEOF
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
19298$ac_includes_default
5464f5a1
NN
19299int
19300main ()
19301{
2ba49b59
KC
19302static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19303test_array [0] = 0
19304
5464f5a1
NN
19305 ;
19306 return 0;
19307}
19308_ACEOF
2ba49b59
KC
19309rm -f conftest.$ac_objext
19310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
49c96104
SE
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
5464f5a1
NN
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
2ba49b59 19325 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
2ba49b59 19331 ac_lo=$ac_mid; break
5464f5a1
NN
19332else
19333 echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
2ba49b59
KC
19336ac_hi=`expr '(' $ac_mid ')' - 1`
19337 if test $ac_mid -le $ac_hi; then
19338 ac_lo= ac_hi=
19339 break
19340 fi
19341 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 19342fi
2ba49b59
KC
19343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 done
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19348
2ba49b59 19349ac_lo= ac_hi=
1012372a 19350fi
2ba49b59
KC
19351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352fi
19353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354# Binary search between lo and hi bounds.
19355while test "x$ac_lo" != "x$ac_hi"; do
19356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19357 cat >conftest.$ac_ext <<_ACEOF
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
2ba49b59 19363$ac_includes_default
5464f5a1
NN
19364int
19365main ()
19366{
2ba49b59
KC
19367static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19368test_array [0] = 0
19369
5464f5a1
NN
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
49c96104
SE
19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
5464f5a1
NN
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
2ba49b59 19396 ac_hi=$ac_mid
1012372a 19397else
5464f5a1
NN
19398 echo "$as_me: failed program was:" >&5
19399sed 's/^/| /' conftest.$ac_ext >&5
19400
2ba49b59 19401ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19402fi
5464f5a1 19403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19404done
2ba49b59
KC
19405case $ac_lo in
19406?*) ac_cv_sizeof_off_t=$ac_lo;;
19407'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19408See \`config.log' for more details." >&5
19409echo "$as_me: error: cannot compute sizeof (off_t), 77
19410See \`config.log' for more details." >&2;}
19411 { (exit 1); exit 1; }; } ;;
19412esac
19413else
19414 if test "$cross_compiling" = yes; then
49c96104
SE
19415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19416See \`config.log' for more details." >&5
19417echo "$as_me: error: cannot run test program while cross compiling
19418See \`config.log' for more details." >&2;}
2ba49b59
KC
19419 { (exit 1); exit 1; }; }
19420else
19421 cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427$ac_includes_default
19428long longval () { return (long) (sizeof (off_t)); }
19429unsigned long ulongval () { return (long) (sizeof (off_t)); }
19430#include <stdio.h>
19431#include <stdlib.h>
19432int
19433main ()
19434{
1012372a 19435
2ba49b59
KC
19436 FILE *f = fopen ("conftest.val", "w");
19437 if (! f)
19438 exit (1);
19439 if (((long) (sizeof (off_t))) < 0)
19440 {
19441 long i = longval ();
19442 if (i != ((long) (sizeof (off_t))))
19443 exit (1);
19444 fprintf (f, "%ld\n", i);
19445 }
19446 else
19447 {
19448 unsigned long i = ulongval ();
19449 if (i != ((long) (sizeof (off_t))))
19450 exit (1);
19451 fprintf (f, "%lu\n", i);
19452 }
19453 exit (ferror (f) || fclose (f) != 0);
19454
19455 ;
19456 return 0;
19457}
19458_ACEOF
19459rm -f conftest$ac_exeext
19460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_sizeof_off_t=`cat conftest.val`
19471else
19472 echo "$as_me: program exited with status $ac_status" >&5
19473echo "$as_me: failed program was:" >&5
19474sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19475
2ba49b59
KC
19476( exit $ac_status )
19477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19478See \`config.log' for more details." >&5
19479echo "$as_me: error: cannot compute sizeof (off_t), 77
19480See \`config.log' for more details." >&2;}
5464f5a1 19481 { (exit 1); exit 1; }; }
1012372a 19482fi
2ba49b59
KC
19483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484fi
19485fi
19486rm -f conftest.val
19487else
19488 ac_cv_sizeof_off_t=0
19489fi
19490fi
5464f5a1
NN
19491echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19492echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 19493cat >>confdefs.h <<_ACEOF
1012372a 19494#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 19495_ACEOF
1012372a
AC
19496
19497
1012372a 19498fi
5464f5a1
NN
19499echo "$as_me:$LINENO: checking file_ptr type" >&5
19500echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
19501bfd_file_ptr="long"
19502bfd_ufile_ptr="unsigned long"
19503if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19504 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
19505 bfd_file_ptr=BFD_HOST_64_BIT
19506 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19507fi
5464f5a1
NN
19508echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19509echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
19510
19511
19512
19513
252b5132
RH
19514tdefaults=""
19515test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19516test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 19517test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
19518test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19519test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19520
6be7c12c 19521
5464f5a1
NN
19522
19523
19524for ac_header in stdlib.h unistd.h
252b5132 19525do
5464f5a1
NN
19526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19527if eval "test \"\${$as_ac_Header+set}\" = set"; then
19528 echo "$as_me:$LINENO: checking for $ac_header" >&5
19529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19530if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532fi
19533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19535else
19536 # Is the header compilable?
19537echo "$as_me:$LINENO: checking $ac_header usability" >&5
19538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19539cat >conftest.$ac_ext <<_ACEOF
19540/* confdefs.h. */
19541_ACEOF
19542cat confdefs.h >>conftest.$ac_ext
19543cat >>conftest.$ac_ext <<_ACEOF
19544/* end confdefs.h. */
19545$ac_includes_default
19546#include <$ac_header>
19547_ACEOF
19548rm -f conftest.$ac_objext
19549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
49c96104
SE
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
5464f5a1
NN
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_header_compiler=yes
19571else
19572 echo "$as_me: failed program was:" >&5
19573sed 's/^/| /' conftest.$ac_ext >&5
19574
19575ac_header_compiler=no
19576fi
19577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579echo "${ECHO_T}$ac_header_compiler" >&6
19580
19581# Is the header present?
19582echo "$as_me:$LINENO: checking $ac_header presence" >&5
19583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19584cat >conftest.$ac_ext <<_ACEOF
19585/* confdefs.h. */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
19589/* end confdefs.h. */
19590#include <$ac_header>
19591_ACEOF
19592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } >/dev/null; then
19600 if test -s conftest.err; then
19601 ac_cpp_err=$ac_c_preproc_warn_flag
19602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19603 else
19604 ac_cpp_err=
19605 fi
252b5132 19606else
5464f5a1 19607 ac_cpp_err=yes
252b5132 19608fi
5464f5a1
NN
19609if test -z "$ac_cpp_err"; then
19610 ac_header_preproc=yes
19611else
19612 echo "$as_me: failed program was:" >&5
19613sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 ac_header_preproc=no
252b5132 19616fi
5464f5a1
NN
19617rm -f conftest.err conftest.$ac_ext
19618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19619echo "${ECHO_T}$ac_header_preproc" >&6
19620
19621# So? What about this header?
19622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19623 yes:no: )
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19628 ac_header_preproc=yes
19629 ;;
19630 no:yes:* )
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19643 (
19644 cat <<\_ASBOX
19645## ------------------------------------------ ##
19646## Report this to the AC_PACKAGE_NAME lists. ##
19647## ------------------------------------------ ##
19648_ASBOX
19649 ) |
19650 sed "s/^/$as_me: WARNING: /" >&2
19651 ;;
19652esac
19653echo "$as_me:$LINENO: checking for $ac_header" >&5
19654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19655if eval "test \"\${$as_ac_Header+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19657else
5464f5a1
NN
19658 eval "$as_ac_Header=\$ac_header_preproc"
19659fi
19660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19662
19663fi
19664if test `eval echo '${'$as_ac_Header'}'` = yes; then
19665 cat >>confdefs.h <<_ACEOF
19666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19667_ACEOF
19668
252b5132 19669fi
5464f5a1 19670
252b5132
RH
19671done
19672
5464f5a1 19673
252b5132
RH
19674for ac_func in getpagesize
19675do
5464f5a1
NN
19676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19677echo "$as_me:$LINENO: checking for $ac_func" >&5
19678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19679if eval "test \"\${$as_ac_var+set}\" = set"; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19681else
19682 cat >conftest.$ac_ext <<_ACEOF
19683/* confdefs.h. */
19684_ACEOF
19685cat confdefs.h >>conftest.$ac_ext
19686cat >>conftest.$ac_ext <<_ACEOF
19687/* end confdefs.h. */
19688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19690#define $ac_func innocuous_$ac_func
19691
252b5132 19692/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
19693 which can conflict with char $ac_func (); below.
19694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19695 <limits.h> exists even on freestanding compilers. */
19696
19697#ifdef __STDC__
19698# include <limits.h>
19699#else
19700# include <assert.h>
19701#endif
6be7c12c 19702
5464f5a1 19703#undef $ac_func
252b5132 19704
5464f5a1
NN
19705/* Override any gcc2 internal prototype to avoid an error. */
19706#ifdef __cplusplus
19707extern "C"
19708{
19709#endif
19710/* We use char because int might match the return type of a gcc2
19711 builtin and then its argument prototype would still apply. */
19712char $ac_func ();
252b5132
RH
19713/* The GNU C library defines this for functions which it implements
19714 to always fail with ENOSYS. Some functions are actually named
19715 something starting with __ and the normal name is an alias. */
19716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19717choke me
19718#else
5464f5a1
NN
19719char (*f) () = $ac_func;
19720#endif
19721#ifdef __cplusplus
19722}
252b5132
RH
19723#endif
19724
5464f5a1
NN
19725int
19726main ()
19727{
19728return f != $ac_func;
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest.$ac_objext conftest$ac_exeext
19734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
49c96104
SE
19742 { ac_try='test -z "$ac_c_werror_flag"
19743 || test ! -s conftest.err'
5464f5a1
NN
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest$ac_exeext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 eval "$as_ac_var=yes"
19756else
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760eval "$as_ac_var=no"
19761fi
19762rm -f conftest.err conftest.$ac_objext \
19763 conftest$ac_exeext conftest.$ac_ext
19764fi
19765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19767if test `eval echo '${'$as_ac_var'}'` = yes; then
19768 cat >>confdefs.h <<_ACEOF
19769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19770_ACEOF
252b5132 19771
252b5132
RH
19772fi
19773done
19774
5464f5a1
NN
19775echo "$as_me:$LINENO: checking for working mmap" >&5
19776echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19777if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
19779else
19780 if test "$cross_compiling" = yes; then
19781 ac_cv_func_mmap_fixed_mapped=no
19782else
5464f5a1
NN
19783 cat >conftest.$ac_ext <<_ACEOF
19784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
19788/* end confdefs.h. */
19789$ac_includes_default
19790/* malloc might have been renamed as rpl_malloc. */
19791#undef malloc
6be7c12c 19792
252b5132
RH
19793/* Thanks to Mike Haertel and Jim Avera for this test.
19794 Here is a matrix of mmap possibilities:
19795 mmap private not fixed
19796 mmap private fixed at somewhere currently unmapped
19797 mmap private fixed at somewhere already mapped
19798 mmap shared not fixed
19799 mmap shared fixed at somewhere currently unmapped
19800 mmap shared fixed at somewhere already mapped
19801 For private mappings, we should verify that changes cannot be read()
19802 back from the file, nor mmap's back from the file at a different
19803 address. (There have been systems where private was not correctly
19804 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 19805 VM page cache was not coherent with the file system buffer cache
252b5132
RH
19806 like early versions of FreeBSD and possibly contemporary NetBSD.)
19807 For shared mappings, we should conversely verify that changes get
5464f5a1 19808 propagated back to all the places they're supposed to be.
252b5132
RH
19809
19810 Grep wants private fixed already mapped.
19811 The main things grep needs to know about mmap are:
19812 * does it exist and is it safe to write into the mmap'd area
19813 * how to use it (BSD variants) */
5464f5a1 19814
252b5132
RH
19815#include <fcntl.h>
19816#include <sys/mman.h>
19817
5464f5a1
NN
19818#if !STDC_HEADERS && !HAVE_STDLIB_H
19819char *malloc ();
19820#endif
6be7c12c 19821
5464f5a1
NN
19822/* This mess was copied from the GNU getpagesize.h. */
19823#if !HAVE_GETPAGESIZE
252b5132 19824/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 19825# if !HAVE_SYS_PARAM_H
252b5132
RH
19826# define HAVE_SYS_PARAM_H 1
19827# endif
19828
19829# ifdef _SC_PAGESIZE
19830# define getpagesize() sysconf(_SC_PAGESIZE)
19831# else /* no _SC_PAGESIZE */
5464f5a1 19832# if HAVE_SYS_PARAM_H
252b5132
RH
19833# include <sys/param.h>
19834# ifdef EXEC_PAGESIZE
19835# define getpagesize() EXEC_PAGESIZE
19836# else /* no EXEC_PAGESIZE */
19837# ifdef NBPG
19838# define getpagesize() NBPG * CLSIZE
19839# ifndef CLSIZE
19840# define CLSIZE 1
19841# endif /* no CLSIZE */
19842# else /* no NBPG */
19843# ifdef NBPC
19844# define getpagesize() NBPC
19845# else /* no NBPC */
19846# ifdef PAGESIZE
19847# define getpagesize() PAGESIZE
19848# endif /* PAGESIZE */
19849# endif /* no NBPC */
19850# endif /* no NBPG */
19851# endif /* no EXEC_PAGESIZE */
19852# else /* no HAVE_SYS_PARAM_H */
19853# define getpagesize() 8192 /* punt totally */
19854# endif /* no HAVE_SYS_PARAM_H */
19855# endif /* no _SC_PAGESIZE */
19856
5464f5a1
NN
19857#endif /* no HAVE_GETPAGESIZE */
19858
19859int
19860main ()
19861{
19862 char *data, *data2, *data3;
19863 int i, pagesize;
19864 int fd;
19865
19866 pagesize = getpagesize ();
19867
19868 /* First, make a file with some known garbage in it. */
19869 data = (char *) malloc (pagesize);
19870 if (!data)
19871 exit (1);
19872 for (i = 0; i < pagesize; ++i)
19873 *(data + i) = rand ();
19874 umask (0);
19875 fd = creat ("conftest.mmap", 0600);
19876 if (fd < 0)
19877 exit (1);
19878 if (write (fd, data, pagesize) != pagesize)
19879 exit (1);
19880 close (fd);
19881
19882 /* Next, try to mmap the file at a fixed address which already has
19883 something else allocated at it. If we can, also make sure that
19884 we see the same garbage. */
19885 fd = open ("conftest.mmap", O_RDWR);
19886 if (fd < 0)
19887 exit (1);
19888 data2 = (char *) malloc (2 * pagesize);
19889 if (!data2)
19890 exit (1);
19891 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
19892 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19893 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19894 exit (1);
19895 for (i = 0; i < pagesize; ++i)
19896 if (*(data + i) != *(data2 + i))
19897 exit (1);
19898
19899 /* Finally, make sure that changes to the mapped area do not
19900 percolate back to the file as seen by read(). (This is a bug on
19901 some variants of i386 svr4.0.) */
19902 for (i = 0; i < pagesize; ++i)
19903 *(data2 + i) = *(data2 + i) + 1;
19904 data3 = (char *) malloc (pagesize);
19905 if (!data3)
19906 exit (1);
19907 if (read (fd, data3, pagesize) != pagesize)
19908 exit (1);
19909 for (i = 0; i < pagesize; ++i)
19910 if (*(data + i) != *(data3 + i))
19911 exit (1);
19912 close (fd);
19913 exit (0);
19914}
19915_ACEOF
19916rm -f conftest$ac_exeext
19917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_func_mmap_fixed_mapped=yes
19928else
19929 echo "$as_me: program exited with status $ac_status" >&5
19930echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933( exit $ac_status )
19934ac_cv_func_mmap_fixed_mapped=no
19935fi
19936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19937fi
19938fi
19939echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19940echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
19941if test $ac_cv_func_mmap_fixed_mapped = yes; then
19942
19943cat >>confdefs.h <<\_ACEOF
19944#define HAVE_MMAP 1
19945_ACEOF
19946
19947fi
19948rm -f conftest.mmap
19949
19950
19951
19952for ac_func in madvise mprotect
19953do
19954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19955echo "$as_me:$LINENO: checking for $ac_func" >&5
19956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19957if eval "test \"\${$as_ac_var+set}\" = set"; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959else
19960 cat >conftest.$ac_ext <<_ACEOF
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
19966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19968#define $ac_func innocuous_$ac_func
19969
19970/* System header to define __stub macros and hopefully few prototypes,
19971 which can conflict with char $ac_func (); below.
19972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19973 <limits.h> exists even on freestanding compilers. */
19974
19975#ifdef __STDC__
19976# include <limits.h>
19977#else
19978# include <assert.h>
19979#endif
19980
19981#undef $ac_func
19982
19983/* Override any gcc2 internal prototype to avoid an error. */
19984#ifdef __cplusplus
19985extern "C"
19986{
19987#endif
19988/* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19990char $ac_func ();
19991/* The GNU C library defines this for functions which it implements
19992 to always fail with ENOSYS. Some functions are actually named
19993 something starting with __ and the normal name is an alias. */
19994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19995choke me
19996#else
19997char (*f) () = $ac_func;
19998#endif
19999#ifdef __cplusplus
20000}
20001#endif
20002
20003int
20004main ()
20005{
20006return f != $ac_func;
20007 ;
20008 return 0;
20009}
20010_ACEOF
20011rm -f conftest.$ac_objext conftest$ac_exeext
20012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013 (eval $ac_link) 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } &&
49c96104
SE
20020 { ac_try='test -z "$ac_c_werror_flag"
20021 || test ! -s conftest.err'
5464f5a1
NN
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 eval "$as_ac_var=yes"
20034else
20035 echo "$as_me: failed program was:" >&5
20036sed 's/^/| /' conftest.$ac_ext >&5
20037
20038eval "$as_ac_var=no"
20039fi
20040rm -f conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20042fi
20043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20044echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20045if test `eval echo '${'$as_ac_var'}'` = yes; then
20046 cat >>confdefs.h <<_ACEOF
20047#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048_ACEOF
20049
20050fi
20051done
20052
20053case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20054 true+yes )
20055cat >>confdefs.h <<\_ACEOF
20056#define USE_MMAP 1
20057_ACEOF
20058 ;;
20059esac
20060
20061rm -f doc/config.status
20062 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20063
20e95c23 20064
5464f5a1
NN
20065 ac_config_commands="$ac_config_commands default"
20066
108a6f8e
CD
20067
20068
20069
20070
20071
5464f5a1
NN
20072cat >confcache <<\_ACEOF
20073# This file is a shell script that caches the results of configure
20074# tests run on this system so they can be shared between configure
20075# scripts and configure runs, see configure's option --config-cache.
20076# It is not useful on other systems. If it contains results you don't
20077# want to keep, you may remove or edit it.
20078#
20079# config.status only pays attention to the cache file if you give it
20080# the --recheck option to rerun configure.
20081#
20082# `ac_cv_env_foo' variables (set or unset) will be overridden when
20083# loading this file, other *unset* `ac_cv_foo' will be assigned the
20084# following values.
20085
20086_ACEOF
20087
20088# The following way of writing the cache mishandles newlines in values,
20089# but we know of no workaround that is simple, portable, and efficient.
20090# So, don't put newlines in cache variables' values.
20091# Ultrix sh set writes to stderr and can't be redirected directly,
20092# and sets the high bit in the cache file unless we assign to the vars.
20093{
20094 (set) 2>&1 |
20095 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20096 *ac_space=\ *)
20097 # `set' does not quote correctly, so add quotes (double-quote
20098 # substitution turns \\\\ into \\, and sed turns \\ into \).
20099 sed -n \
20100 "s/'/'\\\\''/g;
20101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20102 ;;
20103 *)
20104 # `set' quotes correctly as required by POSIX, so do not add quotes.
20105 sed -n \
20106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20107 ;;
20108 esac;
20109} |
20110 sed '
20111 t clear
20112 : clear
20113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20114 t end
20115 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20116 : end' >>confcache
20117if diff $cache_file confcache >/dev/null 2>&1; then :; else
20118 if test -w $cache_file; then
20119 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20120 cat confcache >$cache_file
20121 else
20122 echo "not updating unwritable cache $cache_file"
20123 fi
20124fi
20125rm -f confcache
20126
20127test "x$prefix" = xNONE && prefix=$ac_default_prefix
20128# Let make expand exec_prefix.
20129test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20130
20131# VPATH may cause trouble with some makes, so we remove $(srcdir),
20132# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20133# trailing colons and then remove the whole line if VPATH becomes empty
20134# (actually we leave an empty line to preserve line numbers).
20135if test "x$srcdir" = x.; then
20136 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20137s/:*\$(srcdir):*/:/;
20138s/:*\${srcdir}:*/:/;
20139s/:*@srcdir@:*/:/;
20140s/^\([^=]*=[ ]*\):*/\1/;
20141s/:*$//;
20142s/^[^=]*=[ ]*$//;
20143}'
20144fi
20145
20146DEFS=-DHAVE_CONFIG_H
20147
20148ac_libobjs=
20149ac_ltlibobjs=
20150for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20151 # 1. Remove the extension, and $U if already installed.
20152 ac_i=`echo "$ac_i" |
20153 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20154 # 2. Add them.
20155 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20156 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20157done
20158LIBOBJS=$ac_libobjs
20159
20160LTLIBOBJS=$ac_ltlibobjs
20161
20162
f5385ebf
AM
20163if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20164 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20165Usually this means the macro was only invoked conditionally." >&5
20166echo "$as_me: error: conditional \"AMDEP\" was never defined.
20167Usually this means the macro was only invoked conditionally." >&2;}
20168 { (exit 1); exit 1; }; }
20169fi
20170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20171 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20172Usually this means the macro was only invoked conditionally." >&5
20173echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20174Usually this means the macro was only invoked conditionally." >&2;}
20175 { (exit 1); exit 1; }; }
20176fi
20177if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20178 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20179Usually this means the macro was only invoked conditionally." >&5
20180echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20181Usually this means the macro was only invoked conditionally." >&2;}
20182 { (exit 1); exit 1; }; }
20183fi
d5fbea21
DJ
20184if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20185 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20186Usually this means the macro was only invoked conditionally." >&5
20187echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20188Usually this means the macro was only invoked conditionally." >&2;}
20189 { (exit 1); exit 1; }; }
20190fi
f5385ebf
AM
20191if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20192 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20193Usually this means the macro was only invoked conditionally." >&5
20194echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20195Usually this means the macro was only invoked conditionally." >&2;}
20196 { (exit 1); exit 1; }; }
20197fi
5464f5a1
NN
20198
20199: ${CONFIG_STATUS=./config.status}
20200ac_clean_files_save=$ac_clean_files
20201ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20202{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20203echo "$as_me: creating $CONFIG_STATUS" >&6;}
20204cat >$CONFIG_STATUS <<_ACEOF
20205#! $SHELL
20206# Generated by $as_me.
20207# Run this file to recreate the current configuration.
20208# Compiler output produced by configure, useful for debugging
20209# configure, is in config.log if it exists.
20210
20211debug=false
20212ac_cs_recheck=false
20213ac_cs_silent=false
20214SHELL=\${CONFIG_SHELL-$SHELL}
20215_ACEOF
20216
20217cat >>$CONFIG_STATUS <<\_ACEOF
20218## --------------------- ##
20219## M4sh Initialization. ##
20220## --------------------- ##
20221
20222# Be Bourne compatible
20223if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20224 emulate sh
20225 NULLCMD=:
20226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20227 # is contrary to our usage. Disable this feature.
20228 alias -g '${1+"$@"}'='"$@"'
20229elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20230 set -o posix
20231fi
20232DUALCASE=1; export DUALCASE # for MKS sh
20233
20234# Support unset when possible.
20235if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20236 as_unset=unset
20237else
20238 as_unset=false
20239fi
20240
20241
20242# Work around bugs in pre-3.0 UWIN ksh.
20243$as_unset ENV MAIL MAILPATH
20244PS1='$ '
20245PS2='> '
20246PS4='+ '
20247
20248# NLS nuisances.
20249for as_var in \
20250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20252 LC_TELEPHONE LC_TIME
20253do
20254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20255 eval $as_var=C; export $as_var
20256 else
20257 $as_unset $as_var
20258 fi
20259done
20260
20261# Required to use basename.
20262if expr a : '\(a\)' >/dev/null 2>&1; then
20263 as_expr=expr
20264else
20265 as_expr=false
20266fi
20267
20268if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20269 as_basename=basename
20270else
20271 as_basename=false
20272fi
252b5132 20273
6be7c12c 20274
5464f5a1
NN
20275# Name of the executable.
20276as_me=`$as_basename "$0" ||
20277$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20278 X"$0" : 'X\(//\)$' \| \
20279 X"$0" : 'X\(/\)$' \| \
20280 . : '\(.\)' 2>/dev/null ||
20281echo X/"$0" |
20282 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20283 /^X\/\(\/\/\)$/{ s//\1/; q; }
20284 /^X\/\(\/\).*/{ s//\1/; q; }
20285 s/.*/./; q'`
20286
20287
20288# PATH needs CR, and LINENO needs CR and PATH.
20289# Avoid depending upon Character Ranges.
20290as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20291as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20292as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20293as_cr_digits='0123456789'
20294as_cr_alnum=$as_cr_Letters$as_cr_digits
20295
20296# The user is always right.
20297if test "${PATH_SEPARATOR+set}" != set; then
20298 echo "#! /bin/sh" >conf$$.sh
20299 echo "exit 0" >>conf$$.sh
20300 chmod +x conf$$.sh
20301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20302 PATH_SEPARATOR=';'
20303 else
20304 PATH_SEPARATOR=:
20305 fi
20306 rm -f conf$$.sh
20307fi
20308
20309
20310 as_lineno_1=$LINENO
20311 as_lineno_2=$LINENO
20312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20313 test "x$as_lineno_1" != "x$as_lineno_2" &&
20314 test "x$as_lineno_3" = "x$as_lineno_2" || {
20315 # Find who we are. Look in the path if we contain no path at all
20316 # relative or not.
20317 case $0 in
20318 *[\\/]* ) as_myself=$0 ;;
20319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20320for as_dir in $PATH
20321do
20322 IFS=$as_save_IFS
20323 test -z "$as_dir" && as_dir=.
20324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20325done
20326
20327 ;;
20328 esac
20329 # We did not find ourselves, most probably we were run as `sh COMMAND'
20330 # in which case we are not to be found in the path.
20331 if test "x$as_myself" = x; then
20332 as_myself=$0
20333 fi
20334 if test ! -f "$as_myself"; then
20335 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20336echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20337 { (exit 1); exit 1; }; }
20338 fi
20339 case $CONFIG_SHELL in
20340 '')
20341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20342for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20343do
20344 IFS=$as_save_IFS
20345 test -z "$as_dir" && as_dir=.
20346 for as_base in sh bash ksh sh5; do
20347 case $as_dir in
20348 /*)
20349 if ("$as_dir/$as_base" -c '
20350 as_lineno_1=$LINENO
20351 as_lineno_2=$LINENO
20352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20353 test "x$as_lineno_1" != "x$as_lineno_2" &&
20354 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20355 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20356 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20357 CONFIG_SHELL=$as_dir/$as_base
20358 export CONFIG_SHELL
20359 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20360 fi;;
20361 esac
20362 done
20363done
20364;;
20365 esac
20366
20367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20368 # uniformly replaced by the line number. The first 'sed' inserts a
20369 # line-number line before each line; the second 'sed' does the real
20370 # work. The second script uses 'N' to pair each line-number line
20371 # with the numbered line, and appends trailing '-' during
20372 # substitution so that $LINENO is not a special case at line end.
20373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20374 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20375 sed '=' <$as_myself |
20376 sed '
20377 N
20378 s,$,-,
20379 : loop
20380 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20381 t loop
20382 s,-$,,
20383 s,^['$as_cr_digits']*\n,,
20384 ' >$as_me.lineno &&
20385 chmod +x $as_me.lineno ||
20386 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20387echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20388 { (exit 1); exit 1; }; }
20389
20390 # Don't try to exec as it changes $[0], causing all sort of problems
20391 # (the dirname of $[0] is not the place where we might find the
20392 # original and so on. Autoconf is especially sensible to this).
20393 . ./$as_me.lineno
20394 # Exit status is that of the last command.
20395 exit
252b5132 20396}
6be7c12c 20397
5464f5a1
NN
20398
20399case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20400 *c*,-n*) ECHO_N= ECHO_C='
20401' ECHO_T=' ' ;;
20402 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20403 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20404esac
20405
20406if expr a : '\(a\)' >/dev/null 2>&1; then
20407 as_expr=expr
252b5132 20408else
5464f5a1 20409 as_expr=false
252b5132 20410fi
5464f5a1
NN
20411
20412rm -f conf$$ conf$$.exe conf$$.file
20413echo >conf$$.file
20414if ln -s conf$$.file conf$$ 2>/dev/null; then
20415 # We could just check for DJGPP; but this test a) works b) is more generic
20416 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20417 if test -f conf$$.exe; then
20418 # Don't use ln at all; we don't have any links
20419 as_ln_s='cp -p'
20420 else
20421 as_ln_s='ln -s'
20422 fi
20423elif ln conf$$.file conf$$ 2>/dev/null; then
20424 as_ln_s=ln
20425else
20426 as_ln_s='cp -p'
252b5132 20427fi
5464f5a1 20428rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 20429
5464f5a1
NN
20430if mkdir -p . 2>/dev/null; then
20431 as_mkdir_p=:
20432else
20433 test -d ./-p && rmdir ./-p
20434 as_mkdir_p=false
252b5132 20435fi
b3baf5d0 20436
5464f5a1 20437as_executable_p="test -f"
252b5132 20438
5464f5a1
NN
20439# Sed expression to map a string onto a valid CPP name.
20440as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 20441
5464f5a1
NN
20442# Sed expression to map a string onto a valid variable name.
20443as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 20444
252b5132 20445
5464f5a1
NN
20446# IFS
20447# We need space, tab and new line, in precisely that order.
20448as_nl='
20449'
20450IFS=" $as_nl"
252b5132 20451
5464f5a1
NN
20452# CDPATH.
20453$as_unset CDPATH
20454
20455exec 6>&1
20456
20457# Open the log real soon, to keep \$[0] and so on meaningful, and to
20458# report actual input values of CONFIG_FILES etc. instead of their
20459# values after options handling. Logging --version etc. is OK.
20460exec 5>>config.log
20461{
20462 echo
20463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20464## Running $as_me. ##
20465_ASBOX
20466} >&5
20467cat >&5 <<_CSEOF
20468
20469This file was extended by $as_me, which was
20470generated by GNU Autoconf 2.59. Invocation command line was
20471
20472 CONFIG_FILES = $CONFIG_FILES
20473 CONFIG_HEADERS = $CONFIG_HEADERS
20474 CONFIG_LINKS = $CONFIG_LINKS
20475 CONFIG_COMMANDS = $CONFIG_COMMANDS
20476 $ $0 $@
20477
20478_CSEOF
20479echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20480echo >&5
20481_ACEOF
20482
20483# Files that config.status was made for.
20484if test -n "$ac_config_files"; then
20485 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 20486fi
5464f5a1
NN
20487
20488if test -n "$ac_config_headers"; then
20489 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 20490fi
252b5132 20491
5464f5a1
NN
20492if test -n "$ac_config_links"; then
20493 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 20494fi
252b5132 20495
5464f5a1
NN
20496if test -n "$ac_config_commands"; then
20497 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20498fi
252b5132 20499
5464f5a1
NN
20500cat >>$CONFIG_STATUS <<\_ACEOF
20501
20502ac_cs_usage="\
20503\`$as_me' instantiates files from templates according to the
20504current configuration.
20505
20506Usage: $0 [OPTIONS] [FILE]...
20507
20508 -h, --help print this help, then exit
20509 -V, --version print version number, then exit
20510 -q, --quiet do not print progress messages
20511 -d, --debug don't remove temporary files
20512 --recheck update $as_me by reconfiguring in the same conditions
20513 --file=FILE[:TEMPLATE]
20514 instantiate the configuration file FILE
20515 --header=FILE[:TEMPLATE]
20516 instantiate the configuration header FILE
20517
20518Configuration files:
20519$config_files
20520
20521Configuration headers:
20522$config_headers
20523
20524Configuration commands:
20525$config_commands
20526
20527Report bugs to <bug-autoconf@gnu.org>."
20528_ACEOF
20529
20530cat >>$CONFIG_STATUS <<_ACEOF
20531ac_cs_version="\\
20532config.status
20533configured by $0, generated by GNU Autoconf 2.59,
20534 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20535
20536Copyright (C) 2003 Free Software Foundation, Inc.
20537This config.status script is free software; the Free Software Foundation
20538gives unlimited permission to copy, distribute and modify it."
20539srcdir=$srcdir
20540INSTALL="$INSTALL"
20541_ACEOF
20542
20543cat >>$CONFIG_STATUS <<\_ACEOF
20544# If no file are specified by the user, then we need to provide default
20545# value. By we need to know if files were specified by the user.
20546ac_need_defaults=:
20547while test $# != 0
20548do
20549 case $1 in
20550 --*=*)
20551 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20552 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20553 ac_shift=:
6be7c12c 20554 ;;
5464f5a1
NN
20555 -*)
20556 ac_option=$1
20557 ac_optarg=$2
20558 ac_shift=shift
6be7c12c 20559 ;;
5464f5a1
NN
20560 *) # This is not an option, so the user has probably given explicit
20561 # arguments.
20562 ac_option=$1
20563 ac_need_defaults=false;;
20564 esac
252b5132 20565
5464f5a1
NN
20566 case $ac_option in
20567 # Handling of the options.
20568_ACEOF
20569cat >>$CONFIG_STATUS <<\_ACEOF
20570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20571 ac_cs_recheck=: ;;
20572 --version | --vers* | -V )
20573 echo "$ac_cs_version"; exit 0 ;;
20574 --he | --h)
20575 # Conflict between --help and --header
20576 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20577Try \`$0 --help' for more information." >&5
20578echo "$as_me: error: ambiguous option: $1
20579Try \`$0 --help' for more information." >&2;}
20580 { (exit 1); exit 1; }; };;
20581 --help | --hel | -h )
20582 echo "$ac_cs_usage"; exit 0 ;;
20583 --debug | --d* | -d )
20584 debug=: ;;
20585 --file | --fil | --fi | --f )
20586 $ac_shift
20587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20588 ac_need_defaults=false;;
20589 --header | --heade | --head | --hea )
20590 $ac_shift
20591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20592 ac_need_defaults=false;;
20593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20595 ac_cs_silent=: ;;
6be7c12c 20596
5464f5a1
NN
20597 # This is an error.
20598 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20599Try \`$0 --help' for more information." >&5
20600echo "$as_me: error: unrecognized option: $1
20601Try \`$0 --help' for more information." >&2;}
20602 { (exit 1); exit 1; }; } ;;
252b5132 20603
5464f5a1 20604 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 20605
5464f5a1
NN
20606 esac
20607 shift
20608done
6be7c12c 20609
5464f5a1 20610ac_configure_extra_args=
252b5132 20611
5464f5a1
NN
20612if $ac_cs_silent; then
20613 exec 6>/dev/null
20614 ac_configure_extra_args="$ac_configure_extra_args --silent"
20615fi
6be7c12c 20616
5464f5a1
NN
20617_ACEOF
20618cat >>$CONFIG_STATUS <<_ACEOF
20619if \$ac_cs_recheck; then
20620 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20621 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20622fi
20623
20624_ACEOF
20625
20626cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 20627#
5464f5a1 20628# INIT-COMMANDS section.
6be7c12c 20629#
b3baf5d0 20630
f5385ebf 20631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
20632
20633
20634# The HP-UX ksh and POSIX shell print the target directory to stdout
20635# if CDPATH is set.
20636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20637
20638sed_quote_subst='$sed_quote_subst'
20639double_quote_subst='$double_quote_subst'
20640delay_variable_subst='$delay_variable_subst'
20641enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20642macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20643macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20644enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20645pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20646enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20647host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20648host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20649host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20650build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20651build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20652build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20653SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20654Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20655GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20656EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20657FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20658LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20659NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20660LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20661max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20662ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20663exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20664lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20665lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20666lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20667reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20668reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20669deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20670file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20671AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20672AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20673STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20674RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20675old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20676old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20677old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20678CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20679CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20680compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20681GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20682lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20683lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20684lt_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"`'
20685objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20686SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20687ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20688MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20689lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20690lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20691lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20692lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20693lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20694need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20695libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20696shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20697extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20698archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20699enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20700export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20701whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20702compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20703old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20704old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20705archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20706archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20707module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20708module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20709with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20710allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20711no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20712hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20713hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20714hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20715hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20716hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20717hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20718hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20719hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20720inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20721link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20722fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20723always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20724export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20725exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20726include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20727prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20728file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20729variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20730need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20731need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20732version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20733runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20734shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20735shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20736libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20737library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20738soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20739postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20741finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20742finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20743hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20744sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20745sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20746hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20747enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20748enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20749enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20750old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20751striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20752
20753LTCC='$LTCC'
20754LTCFLAGS='$LTCFLAGS'
20755compiler='$compiler_DEFAULT'
20756
20757# Quote evaled strings.
20758for var in SED \
20759GREP \
20760EGREP \
20761FGREP \
20762LD \
20763NM \
20764LN_S \
20765lt_SP2NL \
20766lt_NL2SP \
20767reload_flag \
20768deplibs_check_method \
20769file_magic_cmd \
20770AR \
20771AR_FLAGS \
20772STRIP \
20773RANLIB \
20774CC \
20775CFLAGS \
20776compiler \
20777lt_cv_sys_global_symbol_pipe \
20778lt_cv_sys_global_symbol_to_cdecl \
20779lt_cv_sys_global_symbol_to_c_name_address \
20780SHELL \
20781ECHO \
20782lt_prog_compiler_no_builtin_flag \
20783lt_prog_compiler_wl \
20784lt_prog_compiler_pic \
20785lt_prog_compiler_static \
20786lt_cv_prog_compiler_c_o \
20787need_locks \
20788shrext_cmds \
20789export_dynamic_flag_spec \
20790whole_archive_flag_spec \
20791compiler_needs_object \
20792with_gnu_ld \
20793allow_undefined_flag \
20794no_undefined_flag \
20795hardcode_libdir_flag_spec \
20796hardcode_libdir_flag_spec_ld \
20797hardcode_libdir_separator \
20798fix_srcfile_path \
20799exclude_expsyms \
20800include_expsyms \
20801file_list_spec \
20802variables_saved_for_relink \
20803libname_spec \
20804library_names_spec \
20805soname_spec \
20806finish_eval \
20807old_striplib \
20808striplib; do
20809 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20810 *[\\\\\\\`\\"\\\$]*)
20811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20812 ;;
20813 *)
20814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20815 ;;
20816 esac
20817done
20818
20819# Double-quote double-evaled strings.
20820for var in reload_cmds \
20821old_postinstall_cmds \
20822old_postuninstall_cmds \
20823old_archive_cmds \
20824extract_expsyms_cmds \
20825old_archive_from_new_cmds \
20826old_archive_from_expsyms_cmds \
20827archive_cmds \
20828archive_expsym_cmds \
20829module_cmds \
20830module_expsym_cmds \
20831export_symbols_cmds \
20832prelink_cmds \
20833postinstall_cmds \
20834postuninstall_cmds \
20835finish_cmds \
20836sys_lib_search_path_spec \
20837sys_lib_dlsearch_path_spec; do
20838 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20839 *[\\\\\\\`\\"\\\$]*)
20840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20841 ;;
20842 *)
20843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20844 ;;
20845 esac
20846done
20847
20848# Fix-up fallback echo if it was mangled by the above quoting rules.
20849case \$lt_ECHO in
20850*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20851 ;;
20852esac
20853
20854ac_aux_dir='$ac_aux_dir'
20855xsi_shell='$xsi_shell'
20856lt_shell_append='$lt_shell_append'
20857
20858# See if we are running on zsh, and set the options which allow our
20859# commands through without removal of \ escapes INIT.
20860if test -n "\${ZSH_VERSION+set}" ; then
20861 setopt NO_GLOB_SUBST
20862fi
20863
20864
20865 PACKAGE='$PACKAGE'
20866 VERSION='$VERSION'
20867 TIMESTAMP='$TIMESTAMP'
20868 RM='$RM'
20869 ofile='$ofile'
20870
20871
20872
20e95c23
DJ
20873# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20874 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20875 # from automake.
20876 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20877 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20878 LINGUAS="${LINGUAS-%UNSET%}"
20879
5464f5a1 20880
d5efd9fc
AM
20881GCC="$GCC"
20882CC="$CC"
20883acx_cv_header_stdint="$acx_cv_header_stdint"
20884acx_cv_type_int8_t="$acx_cv_type_int8_t"
20885acx_cv_type_int16_t="$acx_cv_type_int16_t"
20886acx_cv_type_int32_t="$acx_cv_type_int32_t"
20887acx_cv_type_int64_t="$acx_cv_type_int64_t"
20888acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20889ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20890ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20891ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20892ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20893ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20894ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20895ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20896ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20897
20898
5464f5a1
NN
20899
20900_ACEOF
20901
20902
20903
20904cat >>$CONFIG_STATUS <<\_ACEOF
20905for ac_config_target in $ac_config_targets
252b5132 20906do
5464f5a1
NN
20907 case "$ac_config_target" in
20908 # Handling of arguments.
20909 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20910 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20911 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
20912 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 20913 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 20914 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 20915 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 20916 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
20917 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20920echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20921 { (exit 1); exit 1; }; };;
252b5132
RH
20922 esac
20923done
20924
5464f5a1
NN
20925# If the user did not use the arguments to specify the items to instantiate,
20926# then the envvar interface is used. Set only those that are not.
20927# We use the long form for the default assignment because of an extremely
20928# bizarre bug on SunOS 4.1.3.
20929if $ac_need_defaults; then
20930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20933fi
20934
20935# Have a temporary directory for convenience. Make it in the build tree
20936# simply because there is no reason to put it here, and in addition,
20937# creating and moving files from /tmp can sometimes cause problems.
20938# Create a temporary directory, and hook for its removal unless debugging.
20939$debug ||
20940{
20941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20942 trap '{ (exit 1); exit 1; }' 1 2 13 15
20943}
b3baf5d0 20944
5464f5a1 20945# Create a (secure) tmp directory for tmp files.
b3baf5d0 20946
5464f5a1
NN
20947{
20948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20949 test -n "$tmp" && test -d "$tmp"
20950} ||
20951{
20952 tmp=./confstat$$-$RANDOM
20953 (umask 077 && mkdir $tmp)
20954} ||
20955{
20956 echo "$me: cannot create a temporary directory in ." >&2
20957 { (exit 1); exit 1; }
20958}
20959
20960_ACEOF
20961
20962cat >>$CONFIG_STATUS <<_ACEOF
20963
20964#
20965# CONFIG_FILES section.
20966#
b3baf5d0 20967
5464f5a1
NN
20968# No need to generate the scripts if there are no CONFIG_FILES.
20969# This happens for instance when ./config.status config.h
20970if test -n "\$CONFIG_FILES"; then
20971 # Protect against being on the right side of a sed subst in config.status.
20972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20974s,@SHELL@,$SHELL,;t t
20975s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20976s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20977s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20978s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20979s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20980s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20981s,@exec_prefix@,$exec_prefix,;t t
20982s,@prefix@,$prefix,;t t
20983s,@program_transform_name@,$program_transform_name,;t t
20984s,@bindir@,$bindir,;t t
20985s,@sbindir@,$sbindir,;t t
20986s,@libexecdir@,$libexecdir,;t t
20987s,@datadir@,$datadir,;t t
20988s,@sysconfdir@,$sysconfdir,;t t
20989s,@sharedstatedir@,$sharedstatedir,;t t
20990s,@localstatedir@,$localstatedir,;t t
20991s,@libdir@,$libdir,;t t
20992s,@includedir@,$includedir,;t t
20993s,@oldincludedir@,$oldincludedir,;t t
20994s,@infodir@,$infodir,;t t
20995s,@mandir@,$mandir,;t t
20996s,@build_alias@,$build_alias,;t t
20997s,@host_alias@,$host_alias,;t t
20998s,@target_alias@,$target_alias,;t t
20999s,@DEFS@,$DEFS,;t t
21000s,@ECHO_C@,$ECHO_C,;t t
21001s,@ECHO_N@,$ECHO_N,;t t
21002s,@ECHO_T@,$ECHO_T,;t t
21003s,@LIBS@,$LIBS,;t t
21004s,@build@,$build,;t t
21005s,@build_cpu@,$build_cpu,;t t
21006s,@build_vendor@,$build_vendor,;t t
21007s,@build_os@,$build_os,;t t
21008s,@host@,$host,;t t
21009s,@host_cpu@,$host_cpu,;t t
21010s,@host_vendor@,$host_vendor,;t t
21011s,@host_os@,$host_os,;t t
21012s,@target@,$target,;t t
21013s,@target_cpu@,$target_cpu,;t t
21014s,@target_vendor@,$target_vendor,;t t
21015s,@target_os@,$target_os,;t t
21016s,@CC@,$CC,;t t
21017s,@CFLAGS@,$CFLAGS,;t t
21018s,@LDFLAGS@,$LDFLAGS,;t t
21019s,@CPPFLAGS@,$CPPFLAGS,;t t
21020s,@ac_ct_CC@,$ac_ct_CC,;t t
21021s,@EXEEXT@,$EXEEXT,;t t
21022s,@OBJEXT@,$OBJEXT,;t t
21023s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21024s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21025s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21026s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21027s,@PACKAGE@,$PACKAGE,;t t
21028s,@VERSION@,$VERSION,;t t
21029s,@ACLOCAL@,$ACLOCAL,;t t
21030s,@AUTOCONF@,$AUTOCONF,;t t
21031s,@AUTOMAKE@,$AUTOMAKE,;t t
21032s,@AUTOHEADER@,$AUTOHEADER,;t t
21033s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21034s,@install_sh@,$install_sh,;t t
21035s,@STRIP@,$STRIP,;t t
21036s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21037s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21038s,@mkdir_p@,$mkdir_p,;t t
21039s,@AWK@,$AWK,;t t
5464f5a1 21040s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21041s,@am__leading_dot@,$am__leading_dot,;t t
21042s,@AMTAR@,$AMTAR,;t t
21043s,@am__tar@,$am__tar,;t t
21044s,@am__untar@,$am__untar,;t t
21045s,@DEPDIR@,$DEPDIR,;t t
21046s,@am__include@,$am__include,;t t
21047s,@am__quote@,$am__quote,;t t
21048s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21049s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21050s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21051s,@CCDEPMODE@,$CCDEPMODE,;t t
21052s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21053s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21054s,@AR@,$AR,;t t
21055s,@ac_ct_AR@,$ac_ct_AR,;t t
21056s,@RANLIB@,$RANLIB,;t t
21057s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21058s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21059s,@SED@,$SED,;t t
21060s,@EGREP@,$EGREP,;t t
21061s,@FGREP@,$FGREP,;t t
21062s,@GREP@,$GREP,;t t
21063s,@LD@,$LD,;t t
21064s,@DUMPBIN@,$DUMPBIN,;t t
21065s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21066s,@NM@,$NM,;t t
21067s,@LN_S@,$LN_S,;t t
21068s,@lt_ECHO@,$lt_ECHO,;t t
21069s,@CPP@,$CPP,;t t
92f01d61 21070s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21071s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21072s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21073s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21074s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21075s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21076s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21077s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21078s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21079s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21080s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21081s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21082s,@host_noncanonical@,$host_noncanonical,;t t
21083s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21084s,@bfdlibdir@,$bfdlibdir,;t t
21085s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21086s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21087s,@LIBINTL@,$LIBINTL,;t t
21088s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21089s,@INCINTL@,$INCINTL,;t t
5464f5a1 21090s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21091s,@GMSGFMT@,$GMSGFMT,;t t
21092s,@POSUB@,$POSUB,;t t
5464f5a1 21093s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21094s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21095s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21096s,@GENCAT@,$GENCAT,;t t
21097s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21098s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21099s,@MSGFMT@,$MSGFMT,;t t
21100s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21101s,@HDEFINES@,$HDEFINES,;t t
21102s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21103s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
21104s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21105s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21106s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21107s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21108s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21109s,@COREFILE@,$COREFILE,;t t
21110s,@COREFLAG@,$COREFLAG,;t t
21111s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21112s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21113s,@TDEFINES@,$TDEFINES,;t t
21114s,@wordsize@,$wordsize,;t t
21e40a48 21115s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21116s,@all_backends@,$all_backends,;t t
21117s,@bfd_backends@,$bfd_backends,;t t
21118s,@bfd_machines@,$bfd_machines,;t t
21119s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21120s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21121s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21122s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21123s,@datarootdir@,$datarootdir,;t t
21124s,@docdir@,$docdir,;t t
21125s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21126s,@LIBOBJS@,$LIBOBJS,;t t
21127s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21128CEOF
252b5132 21129
5464f5a1
NN
21130_ACEOF
21131
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 # Split the substitutions into bite-sized pieces for seds with
21134 # small command number limits, like on Digital OSF/1 and HP-UX.
21135 ac_max_sed_lines=48
21136 ac_sed_frag=1 # Number of current file.
21137 ac_beg=1 # First line for current file.
21138 ac_end=$ac_max_sed_lines # Line after last line for current file.
21139 ac_more_lines=:
21140 ac_sed_cmds=
21141 while $ac_more_lines; do
21142 if test $ac_beg -gt 1; then
21143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 21144 else
5464f5a1
NN
21145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21146 fi
21147 if test ! -s $tmp/subs.frag; then
21148 ac_more_lines=false
21149 else
21150 # The purpose of the label and of the branching condition is to
21151 # speed up the sed processing (if there are no `@' at all, there
21152 # is no need to browse any of the substitutions).
21153 # These are the two extra sed commands mentioned above.
21154 (echo ':t
21155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21156 if test -z "$ac_sed_cmds"; then
21157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21158 else
21159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21160 fi
21161 ac_sed_frag=`expr $ac_sed_frag + 1`
21162 ac_beg=$ac_end
21163 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 21164 fi
5464f5a1
NN
21165 done
21166 if test -z "$ac_sed_cmds"; then
21167 ac_sed_cmds=cat
252b5132 21168 fi
5464f5a1 21169fi # test -n "$CONFIG_FILES"
6be7c12c 21170
5464f5a1
NN
21171_ACEOF
21172cat >>$CONFIG_STATUS <<\_ACEOF
21173for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21175 case $ac_file in
21176 - | *:- | *:-:* ) # input from stdin
21177 cat >$tmp/stdin
21178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21182 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21183 esac
21184
5464f5a1
NN
21185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21187$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21188 X"$ac_file" : 'X\(//\)[^/]' \| \
21189 X"$ac_file" : 'X\(//\)$' \| \
21190 X"$ac_file" : 'X\(/\)' \| \
21191 . : '\(.\)' 2>/dev/null ||
21192echo X"$ac_file" |
21193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21195 /^X\(\/\/\)$/{ s//\1/; q; }
21196 /^X\(\/\).*/{ s//\1/; q; }
21197 s/.*/./; q'`
21198 { if $as_mkdir_p; then
21199 mkdir -p "$ac_dir"
252b5132 21200 else
5464f5a1
NN
21201 as_dir="$ac_dir"
21202 as_dirs=
21203 while test ! -d "$as_dir"; do
21204 as_dirs="$as_dir $as_dirs"
21205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21206$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21207 X"$as_dir" : 'X\(//\)[^/]' \| \
21208 X"$as_dir" : 'X\(//\)$' \| \
21209 X"$as_dir" : 'X\(/\)' \| \
21210 . : '\(.\)' 2>/dev/null ||
21211echo X"$as_dir" |
21212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21214 /^X\(\/\/\)$/{ s//\1/; q; }
21215 /^X\(\/\).*/{ s//\1/; q; }
21216 s/.*/./; q'`
21217 done
21218 test ! -n "$as_dirs" || mkdir $as_dirs
21219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21220echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21221 { (exit 1); exit 1; }; }; }
21222
21223 ac_builddir=.
21224
21225if test "$ac_dir" != .; then
21226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21227 # A "../" for each directory in $ac_dir_suffix.
21228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21229else
21230 ac_dir_suffix= ac_top_builddir=
21231fi
252b5132 21232
5464f5a1
NN
21233case $srcdir in
21234 .) # No --srcdir option. We are building in place.
21235 ac_srcdir=.
21236 if test -z "$ac_top_builddir"; then
21237 ac_top_srcdir=.
21238 else
21239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21240 fi ;;
21241 [\\/]* | ?:[\\/]* ) # Absolute path.
21242 ac_srcdir=$srcdir$ac_dir_suffix;
21243 ac_top_srcdir=$srcdir ;;
252b5132 21244 *) # Relative path.
5464f5a1
NN
21245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21247esac
252b5132 21248
5464f5a1
NN
21249# Do not use `cd foo && pwd` to compute absolute paths, because
21250# the directories may not exist.
21251case `pwd` in
21252.) ac_abs_builddir="$ac_dir";;
21253*)
21254 case "$ac_dir" in
21255 .) ac_abs_builddir=`pwd`;;
21256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21258 esac;;
21259esac
21260case $ac_abs_builddir in
21261.) ac_abs_top_builddir=${ac_top_builddir}.;;
21262*)
21263 case ${ac_top_builddir}. in
21264 .) ac_abs_top_builddir=$ac_abs_builddir;;
21265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21267 esac;;
21268esac
21269case $ac_abs_builddir in
21270.) ac_abs_srcdir=$ac_srcdir;;
21271*)
21272 case $ac_srcdir in
21273 .) ac_abs_srcdir=$ac_abs_builddir;;
21274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21276 esac;;
21277esac
21278case $ac_abs_builddir in
21279.) ac_abs_top_srcdir=$ac_top_srcdir;;
21280*)
21281 case $ac_top_srcdir in
21282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21285 esac;;
21286esac
252b5132 21287
5464f5a1
NN
21288
21289 case $INSTALL in
21290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21291 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21292 esac
252b5132 21293
49c96104
SE
21294 if test x"$ac_file" != x-; then
21295 { echo "$as_me:$LINENO: creating $ac_file" >&5
21296echo "$as_me: creating $ac_file" >&6;}
21297 rm -f "$ac_file"
21298 fi
5464f5a1
NN
21299 # Let's still pretend it is `configure' which instantiates (i.e., don't
21300 # use $as_me), people would be surprised to read:
21301 # /* config.h. Generated by config.status. */
21302 if test x"$ac_file" = x-; then
21303 configure_input=
21304 else
21305 configure_input="$ac_file. "
21306 fi
21307 configure_input=$configure_input"Generated from `echo $ac_file_in |
21308 sed 's,.*/,,'` by configure."
21309
21310 # First look for the input files in the build tree, otherwise in the
21311 # src tree.
21312 ac_file_inputs=`IFS=:
21313 for f in $ac_file_in; do
21314 case $f in
21315 -) echo $tmp/stdin ;;
21316 [\\/$]*)
21317 # Absolute (can't be DOS-style, as IFS=:)
21318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21319echo "$as_me: error: cannot find input file: $f" >&2;}
21320 { (exit 1); exit 1; }; }
21321 echo "$f";;
21322 *) # Relative
21323 if test -f "$f"; then
21324 # Build tree
21325 echo "$f"
21326 elif test -f "$srcdir/$f"; then
21327 # Source tree
21328 echo "$srcdir/$f"
21329 else
21330 # /dev/null tree
21331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21332echo "$as_me: error: cannot find input file: $f" >&2;}
21333 { (exit 1); exit 1; }; }
21334 fi;;
21335 esac
21336 done` || { (exit 1); exit 1; }
5464f5a1
NN
21337_ACEOF
21338cat >>$CONFIG_STATUS <<_ACEOF
21339 sed "$ac_vpsub
21340$extrasub
21341_ACEOF
21342cat >>$CONFIG_STATUS <<\_ACEOF
21343:t
21344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21345s,@configure_input@,$configure_input,;t t
21346s,@srcdir@,$ac_srcdir,;t t
21347s,@abs_srcdir@,$ac_abs_srcdir,;t t
21348s,@top_srcdir@,$ac_top_srcdir,;t t
21349s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21350s,@builddir@,$ac_builddir,;t t
21351s,@abs_builddir@,$ac_abs_builddir,;t t
21352s,@top_builddir@,$ac_top_builddir,;t t
21353s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21354s,@INSTALL@,$ac_INSTALL,;t t
21355" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21356 rm -f $tmp/stdin
21357 if test x"$ac_file" != x-; then
21358 mv $tmp/out $ac_file
21359 else
21360 cat $tmp/out
21361 rm -f $tmp/out
21362 fi
21363
21364done
21365_ACEOF
21366cat >>$CONFIG_STATUS <<\_ACEOF
21367
21368#
21369# CONFIG_HEADER section.
21370#
252b5132
RH
21371
21372# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21373# NAME is the cpp macro being defined and VALUE is the value it is being given.
21374#
21375# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
21376ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21377ac_dB='[ ].*$,\1#\2'
21378ac_dC=' '
21379ac_dD=',;t'
21380# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21381ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21382ac_uB='$,\1#\2define\3'
252b5132 21383ac_uC=' '
5464f5a1
NN
21384ac_uD=',;t'
21385
21386for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21388 case $ac_file in
21389 - | *:- | *:-:* ) # input from stdin
21390 cat >$tmp/stdin
21391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21395 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21396 esac
21397
5464f5a1
NN
21398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21399echo "$as_me: creating $ac_file" >&6;}
21400
21401 # First look for the input files in the build tree, otherwise in the
21402 # src tree.
21403 ac_file_inputs=`IFS=:
21404 for f in $ac_file_in; do
21405 case $f in
21406 -) echo $tmp/stdin ;;
21407 [\\/$]*)
21408 # Absolute (can't be DOS-style, as IFS=:)
21409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21410echo "$as_me: error: cannot find input file: $f" >&2;}
21411 { (exit 1); exit 1; }; }
21412 # Do quote $f, to prevent DOS paths from being IFS'd.
21413 echo "$f";;
21414 *) # Relative
21415 if test -f "$f"; then
21416 # Build tree
21417 echo "$f"
21418 elif test -f "$srcdir/$f"; then
21419 # Source tree
21420 echo "$srcdir/$f"
21421 else
21422 # /dev/null tree
21423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21424echo "$as_me: error: cannot find input file: $f" >&2;}
21425 { (exit 1); exit 1; }; }
21426 fi;;
21427 esac
21428 done` || { (exit 1); exit 1; }
21429 # Remove the trailing spaces.
21430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21431
21432_ACEOF
21433
21434# Transform confdefs.h into two sed scripts, `conftest.defines' and
21435# `conftest.undefs', that substitutes the proper values into
21436# config.h.in to produce config.h. The first handles `#define'
21437# templates, and the second `#undef' templates.
21438# And first: Protect against being on the right side of a sed subst in
21439# config.status. Protect against being in an unquoted here document
21440# in config.status.
21441rm -f conftest.defines conftest.undefs
21442# Using a here document instead of a string reduces the quoting nightmare.
21443# Putting comments in sed scripts is not portable.
21444#
21445# `end' is used to avoid that the second main sed command (meant for
21446# 0-ary CPP macros) applies to n-ary macro definitions.
21447# See the Autoconf documentation for `clear'.
21448cat >confdef2sed.sed <<\_ACEOF
21449s/[\\&,]/\\&/g
21450s,[\\$`],\\&,g
21451t clear
21452: clear
21453s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21454t end
21455s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21456: end
21457_ACEOF
21458# If some macros were called several times there might be several times
21459# the same #defines, which is useless. Nevertheless, we may not want to
21460# sort them, since we want the *last* AC-DEFINE to be honored.
21461uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21462sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21463rm -f confdef2sed.sed
252b5132
RH
21464
21465# This sed command replaces #undef with comments. This is necessary, for
21466# example, in the case of _POSIX_SOURCE, which is predefined and required
21467# on some systems where configure will not decide to define it.
5464f5a1
NN
21468cat >>conftest.undefs <<\_ACEOF
21469s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21470_ACEOF
21471
21472# Break up conftest.defines because some shells have a limit on the size
21473# of here documents, and old seds have small limits too (100 cmds).
21474echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21475echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21476echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21477echo ' :' >>$CONFIG_STATUS
21478rm -f conftest.tail
21479while grep . conftest.defines >/dev/null
21480do
21481 # Write a limited-size here document to $tmp/defines.sed.
21482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21483 # Speed up: don't consider the non `#define' lines.
21484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21485 # Work around the forget-to-reset-the-flag bug.
21486 echo 't clr' >>$CONFIG_STATUS
21487 echo ': clr' >>$CONFIG_STATUS
21488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21489 echo 'CEOF
21490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21491 rm -f $tmp/in
21492 mv $tmp/out $tmp/in
21493' >>$CONFIG_STATUS
21494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21495 rm -f conftest.defines
21496 mv conftest.tail conftest.defines
21497done
21498rm -f conftest.defines
21499echo ' fi # grep' >>$CONFIG_STATUS
21500echo >>$CONFIG_STATUS
252b5132 21501
5464f5a1
NN
21502# Break up conftest.undefs because some shells have a limit on the size
21503# of here documents, and old seds have small limits too (100 cmds).
21504echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 21505rm -f conftest.tail
5464f5a1 21506while grep . conftest.undefs >/dev/null
252b5132 21507do
5464f5a1
NN
21508 # Write a limited-size here document to $tmp/undefs.sed.
21509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21510 # Speed up: don't consider the non `#undef'
21511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21512 # Work around the forget-to-reset-the-flag bug.
21513 echo 't clr' >>$CONFIG_STATUS
21514 echo ': clr' >>$CONFIG_STATUS
21515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 21516 echo 'CEOF
5464f5a1
NN
21517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21518 rm -f $tmp/in
21519 mv $tmp/out $tmp/in
21520' >>$CONFIG_STATUS
21521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21522 rm -f conftest.undefs
21523 mv conftest.tail conftest.undefs
252b5132 21524done
5464f5a1
NN
21525rm -f conftest.undefs
21526
21527cat >>$CONFIG_STATUS <<\_ACEOF
21528 # Let's still pretend it is `configure' which instantiates (i.e., don't
21529 # use $as_me), people would be surprised to read:
21530 # /* config.h. Generated by config.status. */
21531 if test x"$ac_file" = x-; then
21532 echo "/* Generated by configure. */" >$tmp/config.h
21533 else
21534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21535 fi
21536 cat $tmp/in >>$tmp/config.h
21537 rm -f $tmp/in
21538 if test x"$ac_file" != x-; then
21539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21541echo "$as_me: $ac_file is unchanged" >&6;}
21542 else
21543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21544$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545 X"$ac_file" : 'X\(//\)[^/]' \| \
21546 X"$ac_file" : 'X\(//\)$' \| \
21547 X"$ac_file" : 'X\(/\)' \| \
21548 . : '\(.\)' 2>/dev/null ||
21549echo X"$ac_file" |
21550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21552 /^X\(\/\/\)$/{ s//\1/; q; }
21553 /^X\(\/\).*/{ s//\1/; q; }
21554 s/.*/./; q'`
21555 { if $as_mkdir_p; then
21556 mkdir -p "$ac_dir"
252b5132 21557 else
5464f5a1
NN
21558 as_dir="$ac_dir"
21559 as_dirs=
21560 while test ! -d "$as_dir"; do
21561 as_dirs="$as_dir $as_dirs"
21562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21563$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21564 X"$as_dir" : 'X\(//\)[^/]' \| \
21565 X"$as_dir" : 'X\(//\)$' \| \
21566 X"$as_dir" : 'X\(/\)' \| \
21567 . : '\(.\)' 2>/dev/null ||
21568echo X"$as_dir" |
21569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21571 /^X\(\/\/\)$/{ s//\1/; q; }
21572 /^X\(\/\).*/{ s//\1/; q; }
21573 s/.*/./; q'`
21574 done
21575 test ! -n "$as_dirs" || mkdir $as_dirs
21576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21577echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21578 { (exit 1); exit 1; }; }; }
21579
21580 rm -f $ac_file
21581 mv $tmp/config.h $ac_file
252b5132 21582 fi
5464f5a1
NN
21583 else
21584 cat $tmp/config.h
21585 rm -f $tmp/config.h
252b5132 21586 fi
f5385ebf
AM
21587# Compute $ac_file's index in $config_headers.
21588_am_stamp_count=1
21589for _am_header in $config_headers :; do
21590 case $_am_header in
21591 $ac_file | $ac_file:* )
21592 break ;;
21593 * )
21594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21595 esac
21596done
21597echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21598$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21599 X$ac_file : 'X\(//\)[^/]' \| \
21600 X$ac_file : 'X\(//\)$' \| \
21601 X$ac_file : 'X\(/\)' \| \
21602 . : '\(.\)' 2>/dev/null ||
21603echo X$ac_file |
21604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21606 /^X\(\/\/\)$/{ s//\1/; q; }
21607 /^X\(\/\).*/{ s//\1/; q; }
21608 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
21609done
21610_ACEOF
21611cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 21612
5464f5a1
NN
21613#
21614# CONFIG_COMMANDS section.
21615#
21616for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21619 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21620$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21621 X"$ac_dest" : 'X\(//\)[^/]' \| \
21622 X"$ac_dest" : 'X\(//\)$' \| \
21623 X"$ac_dest" : 'X\(/\)' \| \
21624 . : '\(.\)' 2>/dev/null ||
21625echo X"$ac_dest" |
21626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21628 /^X\(\/\/\)$/{ s//\1/; q; }
21629 /^X\(\/\).*/{ s//\1/; q; }
21630 s/.*/./; q'`
21631 { if $as_mkdir_p; then
21632 mkdir -p "$ac_dir"
21633 else
21634 as_dir="$ac_dir"
21635 as_dirs=
21636 while test ! -d "$as_dir"; do
21637 as_dirs="$as_dir $as_dirs"
21638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21640 X"$as_dir" : 'X\(//\)[^/]' \| \
21641 X"$as_dir" : 'X\(//\)$' \| \
21642 X"$as_dir" : 'X\(/\)' \| \
21643 . : '\(.\)' 2>/dev/null ||
21644echo X"$as_dir" |
21645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21647 /^X\(\/\/\)$/{ s//\1/; q; }
21648 /^X\(\/\).*/{ s//\1/; q; }
21649 s/.*/./; q'`
21650 done
21651 test ! -n "$as_dirs" || mkdir $as_dirs
21652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21653echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21654 { (exit 1); exit 1; }; }; }
b3baf5d0 21655
5464f5a1 21656 ac_builddir=.
b3baf5d0 21657
5464f5a1
NN
21658if test "$ac_dir" != .; then
21659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21660 # A "../" for each directory in $ac_dir_suffix.
21661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21662else
21663 ac_dir_suffix= ac_top_builddir=
21664fi
21665
21666case $srcdir in
21667 .) # No --srcdir option. We are building in place.
21668 ac_srcdir=.
21669 if test -z "$ac_top_builddir"; then
21670 ac_top_srcdir=.
21671 else
21672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21673 fi ;;
21674 [\\/]* | ?:[\\/]* ) # Absolute path.
21675 ac_srcdir=$srcdir$ac_dir_suffix;
21676 ac_top_srcdir=$srcdir ;;
21677 *) # Relative path.
21678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21680esac
21681
21682# Do not use `cd foo && pwd` to compute absolute paths, because
21683# the directories may not exist.
21684case `pwd` in
21685.) ac_abs_builddir="$ac_dir";;
21686*)
21687 case "$ac_dir" in
21688 .) ac_abs_builddir=`pwd`;;
21689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21691 esac;;
21692esac
21693case $ac_abs_builddir in
21694.) ac_abs_top_builddir=${ac_top_builddir}.;;
21695*)
21696 case ${ac_top_builddir}. in
21697 .) ac_abs_top_builddir=$ac_abs_builddir;;
21698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21700 esac;;
21701esac
21702case $ac_abs_builddir in
21703.) ac_abs_srcdir=$ac_srcdir;;
21704*)
21705 case $ac_srcdir in
21706 .) ac_abs_srcdir=$ac_abs_builddir;;
21707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21709 esac;;
21710esac
21711case $ac_abs_builddir in
21712.) ac_abs_top_srcdir=$ac_top_srcdir;;
21713*)
21714 case $ac_top_srcdir in
21715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21718 esac;;
21719esac
21720
21721
21722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21723echo "$as_me: executing $ac_dest commands" >&6;}
21724 case $ac_dest in
f5385ebf
AM
21725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21726 # Strip MF so we end up with the name of the file.
21727 mf=`echo "$mf" | sed -e 's/:.*$//'`
21728 # Check whether this is an Automake generated Makefile or not.
21729 # We used to match only the files named `Makefile.in', but
21730 # some people rename them; so instead we look at the file content.
21731 # Grep'ing the first line is not enough: some people post-process
21732 # each Makefile.in and add a new line on top of each file to say so.
21733 # So let's grep whole file.
21734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21735 dirpart=`(dirname "$mf") 2>/dev/null ||
21736$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$mf" : 'X\(//\)[^/]' \| \
21738 X"$mf" : 'X\(//\)$' \| \
21739 X"$mf" : 'X\(/\)' \| \
21740 . : '\(.\)' 2>/dev/null ||
21741echo X"$mf" |
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744 /^X\(\/\/\)$/{ s//\1/; q; }
21745 /^X\(\/\).*/{ s//\1/; q; }
21746 s/.*/./; q'`
21747 else
21748 continue
21749 fi
21750 # Extract the definition of DEPDIR, am__include, and am__quote
21751 # from the Makefile without running `make'.
21752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21753 test -z "$DEPDIR" && continue
21754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21755 test -z "am__include" && continue
21756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21757 # When using ansi2knr, U may be empty or an underscore; expand it
21758 U=`sed -n 's/^U = //p' < "$mf"`
21759 # Find all dependency output files, they are included files with
21760 # $(DEPDIR) in their names. We invoke sed twice because it is the
21761 # simplest approach to changing $(DEPDIR) to its actual value in the
21762 # expansion.
21763 for file in `sed -n "
21764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21766 # Make sure the directory exists.
21767 test -f "$dirpart/$file" && continue
21768 fdir=`(dirname "$file") 2>/dev/null ||
21769$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$file" : 'X\(//\)[^/]' \| \
21771 X"$file" : 'X\(//\)$' \| \
21772 X"$file" : 'X\(/\)' \| \
21773 . : '\(.\)' 2>/dev/null ||
21774echo X"$file" |
21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21777 /^X\(\/\/\)$/{ s//\1/; q; }
21778 /^X\(\/\).*/{ s//\1/; q; }
21779 s/.*/./; q'`
21780 { if $as_mkdir_p; then
21781 mkdir -p $dirpart/$fdir
21782 else
21783 as_dir=$dirpart/$fdir
21784 as_dirs=
21785 while test ! -d "$as_dir"; do
21786 as_dirs="$as_dir $as_dirs"
21787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21789 X"$as_dir" : 'X\(//\)[^/]' \| \
21790 X"$as_dir" : 'X\(//\)$' \| \
21791 X"$as_dir" : 'X\(/\)' \| \
21792 . : '\(.\)' 2>/dev/null ||
21793echo X"$as_dir" |
21794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21796 /^X\(\/\/\)$/{ s//\1/; q; }
21797 /^X\(\/\).*/{ s//\1/; q; }
21798 s/.*/./; q'`
21799 done
21800 test ! -n "$as_dirs" || mkdir $as_dirs
21801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21802echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21803 { (exit 1); exit 1; }; }; }
21804
21805 # echo "creating $dirpart/$file"
21806 echo '# dummy' > "$dirpart/$file"
21807 done
21808done
d7040cdb
SE
21809 ;;
21810 libtool )
21811
21812 # See if we are running on zsh, and set the options which allow our
21813 # commands through without removal of \ escapes.
21814 if test -n "${ZSH_VERSION+set}" ; then
21815 setopt NO_GLOB_SUBST
21816 fi
21817
21818 cfgfile="${ofile}T"
21819 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21820 $RM "$cfgfile"
21821
21822 cat <<_LT_EOF >> "$cfgfile"
21823#! $SHELL
21824
21825# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21826# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21828# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21829#
21830# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21831# 2006, 2007 Free Software Foundation, Inc.
21832#
21833# This file is part of GNU Libtool:
21834# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21835#
21836# This program is free software; you can redistribute it and/or modify
21837# it under the terms of the GNU General Public License as published by
21838# the Free Software Foundation; either version 2 of the License, or
21839# (at your option) any later version.
21840#
21841# This program is distributed in the hope that it will be useful, but
21842# WITHOUT ANY WARRANTY; without even the implied warranty of
21843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21844# General Public License for more details.
21845#
21846# You should have received a copy of the GNU General Public License
21847# along with this program; if not, a copy can be downloaded from
21848# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21849# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21850# MA 02110-1301, USA.
21851#
21852# As a special exception to the GNU General Public License, if you
21853# distribute this file as part of a program that contains a
21854# configuration script generated by Autoconf, you may include it under
21855# the same distribution terms that you use for the rest of that program.
21856
21857
21858# The names of the tagged configurations supported by this script.
21859available_tags=""
21860
21861# ### BEGIN LIBTOOL CONFIG
21862
21863# Whether or not to build shared libraries.
21864build_libtool_libs=$enable_shared
21865
21866# Which release of libtool.m4 was used?
21867macro_version=$macro_version
21868macro_revision=$macro_revision
21869
21870# Whether or not to build static libraries.
21871build_old_libs=$enable_static
21872
21873# What type of objects to build.
21874pic_mode=$pic_mode
21875
21876# Whether or not to optimize for fast installation.
21877fast_install=$enable_fast_install
21878
21879# The host system.
21880host_alias=$host_alias
21881host=$host
21882host_os=$host_os
21883
21884# The build system.
21885build_alias=$build_alias
21886build=$build
21887build_os=$build_os
21888
21889# A sed program that does not truncate output.
21890SED=$lt_SED
21891
21892# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21893Xsed="\$SED -e 1s/^X//"
21894
21895# A grep program that handles long lines.
21896GREP=$lt_GREP
21897
21898# An ERE matcher.
21899EGREP=$lt_EGREP
21900
21901# A literal string matcher.
21902FGREP=$lt_FGREP
21903
21904# A BSD- or MS-compatible name lister.
21905NM=$lt_NM
21906
21907# Whether we need soft or hard links.
21908LN_S=$lt_LN_S
21909
21910# What is the maximum length of a command?
21911max_cmd_len=$max_cmd_len
21912
21913# Object file suffix (normally "o").
21914objext=$ac_objext
21915
21916# Executable file suffix (normally "").
21917exeext=$exeext
21918
21919# whether the shell understands "unset".
21920lt_unset=$lt_unset
21921
21922# turn spaces into newlines.
21923SP2NL=$lt_lt_SP2NL
21924
21925# turn newlines into spaces.
21926NL2SP=$lt_lt_NL2SP
21927
21928# How to create reloadable object files.
21929reload_flag=$lt_reload_flag
21930reload_cmds=$lt_reload_cmds
21931
21932# Method to check whether dependent libraries are shared objects.
21933deplibs_check_method=$lt_deplibs_check_method
21934
21935# Command to use when deplibs_check_method == "file_magic".
21936file_magic_cmd=$lt_file_magic_cmd
21937
21938# The archiver.
21939AR=$lt_AR
21940AR_FLAGS=$lt_AR_FLAGS
21941
21942# A symbol stripping program.
21943STRIP=$lt_STRIP
21944
21945# Commands used to install an old-style archive.
21946RANLIB=$lt_RANLIB
21947old_postinstall_cmds=$lt_old_postinstall_cmds
21948old_postuninstall_cmds=$lt_old_postuninstall_cmds
21949
21950# A C compiler.
21951LTCC=$lt_CC
21952
21953# LTCC compiler flags.
21954LTCFLAGS=$lt_CFLAGS
21955
21956# Take the output of nm and produce a listing of raw symbols and C names.
21957global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21958
21959# Transform the output of nm in a proper C declaration.
21960global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21961
21962# Transform the output of nm in a C name address pair.
21963global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21964
21965# The name of the directory that contains temporary libtool files.
21966objdir=$objdir
21967
21968# Shell to use when invoking shell scripts.
21969SHELL=$lt_SHELL
21970
21971# An echo program that does not interpret backslashes.
21972ECHO=$lt_ECHO
21973
21974# Used to examine libraries when file_magic_cmd begins with "file".
21975MAGIC_CMD=$MAGIC_CMD
21976
21977# Must we lock files when doing compilation?
21978need_locks=$lt_need_locks
21979
21980# Old archive suffix (normally "a").
21981libext=$libext
21982
21983# Shared library suffix (normally ".so").
21984shrext_cmds=$lt_shrext_cmds
21985
21986# The commands to extract the exported symbol list from a shared archive.
21987extract_expsyms_cmds=$lt_extract_expsyms_cmds
21988
21989# Variables whose values should be saved in libtool wrapper scripts and
21990# restored at link time.
21991variables_saved_for_relink=$lt_variables_saved_for_relink
21992
21993# Do we need the "lib" prefix for modules?
21994need_lib_prefix=$need_lib_prefix
21995
21996# Do we need a version for libraries?
21997need_version=$need_version
21998
21999# Library versioning type.
22000version_type=$version_type
22001
22002# Shared library runtime path variable.
22003runpath_var=$runpath_var
22004
22005# Shared library path variable.
22006shlibpath_var=$shlibpath_var
22007
22008# Is shlibpath searched before the hard-coded library search path?
22009shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22010
22011# Format of library name prefix.
22012libname_spec=$lt_libname_spec
22013
22014# List of archive names. First name is the real one, the rest are links.
22015# The last name is the one that the linker finds with -lNAME
22016library_names_spec=$lt_library_names_spec
22017
22018# The coded name of the library, if different from the real name.
22019soname_spec=$lt_soname_spec
22020
22021# Command to use after installation of a shared archive.
22022postinstall_cmds=$lt_postinstall_cmds
22023
22024# Command to use after uninstallation of a shared archive.
22025postuninstall_cmds=$lt_postuninstall_cmds
22026
22027# Commands used to finish a libtool library installation in a directory.
22028finish_cmds=$lt_finish_cmds
22029
22030# As "finish_cmds", except a single script fragment to be evaled but
22031# not shown.
22032finish_eval=$lt_finish_eval
22033
22034# Whether we should hardcode library paths into libraries.
22035hardcode_into_libs=$hardcode_into_libs
22036
22037# Compile-time system search path for libraries.
22038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22039
22040# Run-time system search path for libraries.
22041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22042
22043# Whether dlopen is supported.
22044dlopen_support=$enable_dlopen
22045
22046# Whether dlopen of programs is supported.
22047dlopen_self=$enable_dlopen_self
22048
22049# Whether dlopen of statically linked programs is supported.
22050dlopen_self_static=$enable_dlopen_self_static
22051
22052# Commands to strip libraries.
22053old_striplib=$lt_old_striplib
22054striplib=$lt_striplib
22055
22056
22057# The linker used to build libraries.
22058LD=$lt_LD
22059
22060# Commands used to build an old-style archive.
22061old_archive_cmds=$lt_old_archive_cmds
22062
22063# A language specific compiler.
22064CC=$lt_compiler
22065
22066# Is the compiler the GNU compiler?
22067with_gcc=$GCC
22068
22069# Compiler flag to turn off builtin functions.
22070no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22071
22072# How to pass a linker flag through the compiler.
22073wl=$lt_lt_prog_compiler_wl
22074
22075# Additional compiler flags for building library objects.
22076pic_flag=$lt_lt_prog_compiler_pic
22077
22078# Compiler flag to prevent dynamic linking.
22079link_static_flag=$lt_lt_prog_compiler_static
22080
22081# Does compiler simultaneously support -c and -o options?
22082compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22083
22084# Whether or not to add -lc for building shared libraries.
22085build_libtool_need_lc=$archive_cmds_need_lc
22086
22087# Whether or not to disallow shared libs when runtime libs are static.
22088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22089
22090# Compiler flag to allow reflexive dlopens.
22091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22092
22093# Compiler flag to generate shared objects directly from archives.
22094whole_archive_flag_spec=$lt_whole_archive_flag_spec
22095
22096# Whether the compiler copes with passing no objects directly.
22097compiler_needs_object=$lt_compiler_needs_object
22098
22099# Create an old-style archive from a shared archive.
22100old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22101
22102# Create a temporary old-style archive to link instead of a shared archive.
22103old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22104
22105# Commands used to build a shared archive.
22106archive_cmds=$lt_archive_cmds
22107archive_expsym_cmds=$lt_archive_expsym_cmds
22108
22109# Commands used to build a loadable module if different from building
22110# a shared archive.
22111module_cmds=$lt_module_cmds
22112module_expsym_cmds=$lt_module_expsym_cmds
22113
22114# Whether we are building with GNU ld or not.
22115with_gnu_ld=$lt_with_gnu_ld
22116
22117# Flag that allows shared libraries with undefined symbols to be built.
22118allow_undefined_flag=$lt_allow_undefined_flag
22119
22120# Flag that enforces no undefined symbols.
22121no_undefined_flag=$lt_no_undefined_flag
22122
22123# Flag to hardcode \$libdir into a binary during linking.
22124# This must work even if \$libdir does not exist
22125hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22126
22127# If ld is used when linking, flag to hardcode \$libdir into a binary
22128# during linking. This must work even if \$libdir does not exist.
22129hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22130
22131# Whether we need a single "-rpath" flag with a separated argument.
22132hardcode_libdir_separator=$lt_hardcode_libdir_separator
22133
22134# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22135# DIR into the resulting binary.
22136hardcode_direct=$hardcode_direct
22137
22138# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22139# DIR into the resulting binary and the resulting library dependency is
22140# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22141# library is relocated.
22142hardcode_direct_absolute=$hardcode_direct_absolute
22143
22144# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22145# into the resulting binary.
22146hardcode_minus_L=$hardcode_minus_L
22147
22148# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22149# into the resulting binary.
22150hardcode_shlibpath_var=$hardcode_shlibpath_var
22151
22152# Set to "yes" if building a shared library automatically hardcodes DIR
22153# into the library and all subsequent libraries and executables linked
22154# against it.
22155hardcode_automatic=$hardcode_automatic
22156
22157# Set to yes if linker adds runtime paths of dependent libraries
22158# to runtime path list.
22159inherit_rpath=$inherit_rpath
22160
22161# Whether libtool must link a program against all its dependency libraries.
22162link_all_deplibs=$link_all_deplibs
22163
22164# Fix the shell variable \$srcfile for the compiler.
22165fix_srcfile_path=$lt_fix_srcfile_path
22166
22167# Set to "yes" if exported symbols are required.
22168always_export_symbols=$always_export_symbols
22169
22170# The commands to list exported symbols.
22171export_symbols_cmds=$lt_export_symbols_cmds
22172
22173# Symbols that should not be listed in the preloaded symbols.
22174exclude_expsyms=$lt_exclude_expsyms
22175
22176# Symbols that must always be exported.
22177include_expsyms=$lt_include_expsyms
22178
22179# Commands necessary for linking programs (against libraries) with templates.
22180prelink_cmds=$lt_prelink_cmds
22181
22182# Specify filename containing input files.
22183file_list_spec=$lt_file_list_spec
22184
22185# How to hardcode a shared library path into an executable.
22186hardcode_action=$hardcode_action
22187
22188# ### END LIBTOOL CONFIG
22189
22190_LT_EOF
22191
22192 case $host_os in
22193 aix3*)
22194 cat <<\_LT_EOF >> "$cfgfile"
22195# AIX sometimes has problems with the GCC collect2 program. For some
22196# reason, if we set the COLLECT_NAMES environment variable, the problems
22197# vanish in a puff of smoke.
22198if test "X${COLLECT_NAMES+set}" != Xset; then
22199 COLLECT_NAMES=
22200 export COLLECT_NAMES
22201fi
22202_LT_EOF
22203 ;;
22204 esac
22205
22206
22207ltmain="$ac_aux_dir/ltmain.sh"
22208
22209
22210 # We use sed instead of cat because bash on DJGPP gets confused if
22211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22212 # text mode, it properly converts lines to CR/LF. This bash problem
22213 # is reportedly fixed, but why not run on old versions too?
22214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22215 || (rm -f "$cfgfile"; exit 1)
22216
22217 case $xsi_shell in
22218 yes)
22219 cat << \_LT_EOF >> "$cfgfile"
22220# func_dirname file append nondir_replacement
22221# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22222# otherwise set result to NONDIR_REPLACEMENT.
22223func_dirname ()
22224{
22225 case ${1} in
22226 */*) func_dirname_result="${1%/*}${2}" ;;
22227 * ) func_dirname_result="${3}" ;;
22228 esac
22229}
22230
22231# func_basename file
22232func_basename ()
22233{
22234 func_basename_result="${1##*/}"
22235}
22236
22237# func_stripname prefix suffix name
22238# strip PREFIX and SUFFIX off of NAME.
22239# PREFIX and SUFFIX must not contain globbing or regex special
22240# characters, hashes, percent signs, but SUFFIX may contain a leading
22241# dot (in which case that matches only a dot).
22242func_stripname ()
22243{
22244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22245 # positional parameters, so assign one to ordinary parameter first.
22246 func_stripname_result=${3}
22247 func_stripname_result=${func_stripname_result#"${1}"}
22248 func_stripname_result=${func_stripname_result%"${2}"}
22249}
22250
22251# func_opt_split
22252func_opt_split ()
22253{
22254 func_opt_split_opt=${1%%=*}
22255 func_opt_split_arg=${1#*=}
22256}
22257
22258# func_lo2o object
22259func_lo2o ()
22260{
22261 case ${1} in
22262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22263 *) func_lo2o_result=${1} ;;
22264 esac
22265}
22266_LT_EOF
22267 ;;
22268 *) # Bourne compatible functions.
22269 cat << \_LT_EOF >> "$cfgfile"
22270# func_dirname file append nondir_replacement
22271# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22272# otherwise set result to NONDIR_REPLACEMENT.
22273func_dirname ()
22274{
22275 # Extract subdirectory from the argument.
22276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22277 if test "X$func_dirname_result" = "X${1}"; then
22278 func_dirname_result="${3}"
22279 else
22280 func_dirname_result="$func_dirname_result${2}"
22281 fi
22282}
22283
22284# func_basename file
22285func_basename ()
22286{
22287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22288}
22289
22290# func_stripname prefix suffix name
22291# strip PREFIX and SUFFIX off of NAME.
22292# PREFIX and SUFFIX must not contain globbing or regex special
22293# characters, hashes, percent signs, but SUFFIX may contain a leading
22294# dot (in which case that matches only a dot).
22295# func_strip_suffix prefix name
22296func_stripname ()
22297{
22298 case ${2} in
22299 .*) func_stripname_result=`$ECHO "X${3}" \
22300 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22301 *) func_stripname_result=`$ECHO "X${3}" \
22302 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22303 esac
22304}
22305
22306# sed scripts:
22307my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22308my_sed_long_arg='1s/^-[^=]*=//'
22309
22310# func_opt_split
22311func_opt_split ()
22312{
22313 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22314 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22315}
22316
22317# func_lo2o object
22318func_lo2o ()
22319{
22320 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22321}
22322_LT_EOF
22323esac
22324
22325case $lt_shell_append in
22326 yes)
22327 cat << \_LT_EOF >> "$cfgfile"
22328
22329# func_append var value
22330# Append VALUE to the end of shell variable VAR.
22331func_append ()
22332{
22333 eval "$1+=\$2"
22334}
22335_LT_EOF
22336 ;;
22337 *)
22338 cat << \_LT_EOF >> "$cfgfile"
22339
22340# func_append var value
22341# Append VALUE to the end of shell variable VAR.
22342func_append ()
22343{
22344 eval "$1=\$$1\$2"
22345}
22346_LT_EOF
22347 ;;
22348 esac
22349
22350
22351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22352 || (rm -f "$cfgfile"; exit 1)
22353
22354 mv -f "$cfgfile" "$ofile" ||
22355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22356 chmod +x "$ofile"
22357
f5385ebf 22358 ;;
20e95c23
DJ
22359 default-1 )
22360 for ac_file in $CONFIG_FILES; do
22361 # Support "outfile[:infile[:infile...]]"
22362 case "$ac_file" in
22363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22364 esac
22365 # PO directories have a Makefile.in generated from Makefile.in.in.
22366 case "$ac_file" in */Makefile.in)
22367 # Adjust a relative srcdir.
22368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22371 # In autoconf-2.13 it is called $ac_given_srcdir.
22372 # In autoconf-2.50 it is called $srcdir.
22373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22374 case "$ac_given_srcdir" in
22375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22376 /*) top_srcdir="$ac_given_srcdir" ;;
22377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22378 esac
22379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22380 rm -f "$ac_dir/POTFILES"
22381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22383 POMAKEFILEDEPS="POTFILES.in"
22384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22385 # on $ac_dir but don't depend on user-specified configuration
22386 # parameters.
22387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22388 # The LINGUAS file contains the set of available languages.
22389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22391 fi
22392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22393 # Hide the ALL_LINGUAS assigment from automake.
22394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22396 else
22397 # The set of available languages was given in configure.in.
22398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22399 fi
22400 case "$ac_given_srcdir" in
22401 .) srcdirpre= ;;
22402 *) srcdirpre='$(srcdir)/' ;;
22403 esac
22404 POFILES=
22405 GMOFILES=
22406 UPDATEPOFILES=
22407 DUMMYPOFILES=
22408 for lang in $ALL_LINGUAS; do
22409 POFILES="$POFILES $srcdirpre$lang.po"
22410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22413 done
22414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22415 # environment variable.
22416 INST_LINGUAS=
22417 if test -n "$ALL_LINGUAS"; then
22418 for presentlang in $ALL_LINGUAS; do
22419 useit=no
22420 if test "%UNSET%" != "$LINGUAS"; then
22421 desiredlanguages="$LINGUAS"
22422 else
22423 desiredlanguages="$ALL_LINGUAS"
22424 fi
22425 for desiredlang in $desiredlanguages; do
22426 # Use the presentlang catalog if desiredlang is
22427 # a. equal to presentlang, or
22428 # b. a variant of presentlang (because in this case,
22429 # presentlang can be used as a fallback for messages
22430 # which are not translated in the desiredlang catalog).
22431 case "$desiredlang" in
22432 "$presentlang"*) useit=yes;;
22433 esac
22434 done
22435 if test $useit = yes; then
22436 INST_LINGUAS="$INST_LINGUAS $presentlang"
22437 fi
22438 done
22439 fi
22440 CATALOGS=
22441 if test -n "$INST_LINGUAS"; then
22442 for lang in $INST_LINGUAS; do
22443 CATALOGS="$CATALOGS $lang.gmo"
22444 done
22445 fi
22446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22447 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"
22448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22449 if test -f "$f"; then
22450 case "$f" in
22451 *.orig | *.bak | *~) ;;
22452 *) cat "$f" >> "$ac_dir/Makefile" ;;
22453 esac
22454 fi
22455 done
22456 fi
22457 ;;
22458 esac
22459 done ;;
d5efd9fc
AM
22460 bfd_stdint.h )
22461if test "$GCC" = yes; then
22462 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22463else
22464 echo "/* generated for $CC */" > tmp-stdint.h
22465fi
22466
22467sed 's/^ *//' >> tmp-stdint.h <<EOF
22468
22469 #ifndef GCC_GENERATED_STDINT_H
22470 #define GCC_GENERATED_STDINT_H 1
22471
22472 #include <sys/types.h>
22473EOF
22474
22475if test "$acx_cv_header_stdint" != stdint.h; then
22476 echo "#include <stddef.h>" >> tmp-stdint.h
22477fi
22478if test "$acx_cv_header_stdint" != stddef.h; then
22479 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22480fi
22481
22482sed 's/^ *//' >> tmp-stdint.h <<EOF
22483 /* glibc uses these symbols as guards to prevent redefinitions. */
22484 #ifdef __int8_t_defined
22485 #define _INT8_T
22486 #define _INT16_T
22487 #define _INT32_T
22488 #endif
22489 #ifdef __uint32_t_defined
22490 #define _UINT32_T
22491 #endif
22492
22493EOF
22494
22495# ----------------- done header, emit basic int types -------------
22496if test "$acx_cv_header_stdint" = stddef.h; then
22497 sed 's/^ *//' >> tmp-stdint.h <<EOF
22498
22499 #ifndef _UINT8_T
22500 #define _UINT8_T
22501 #ifndef __uint8_t_defined
22502 #define __uint8_t_defined
22503 typedef unsigned $acx_cv_type_int8_t uint8_t;
22504 #endif
22505 #endif
22506
22507 #ifndef _UINT16_T
22508 #define _UINT16_T
22509 #ifndef __uint16_t_defined
22510 #define __uint16_t_defined
22511 typedef unsigned $acx_cv_type_int16_t uint16_t;
22512 #endif
22513 #endif
22514
22515 #ifndef _UINT32_T
22516 #define _UINT32_T
22517 #ifndef __uint32_t_defined
22518 #define __uint32_t_defined
22519 typedef unsigned $acx_cv_type_int32_t uint32_t;
22520 #endif
22521 #endif
22522
22523 #ifndef _INT8_T
22524 #define _INT8_T
22525 #ifndef __int8_t_defined
22526 #define __int8_t_defined
22527 typedef $acx_cv_type_int8_t int8_t;
22528 #endif
22529 #endif
22530
22531 #ifndef _INT16_T
22532 #define _INT16_T
22533 #ifndef __int16_t_defined
22534 #define __int16_t_defined
22535 typedef $acx_cv_type_int16_t int16_t;
22536 #endif
22537 #endif
22538
22539 #ifndef _INT32_T
22540 #define _INT32_T
22541 #ifndef __int32_t_defined
22542 #define __int32_t_defined
22543 typedef $acx_cv_type_int32_t int32_t;
22544 #endif
22545 #endif
22546EOF
22547elif test "$ac_cv_type_u_int32_t" = yes; then
22548 sed 's/^ *//' >> tmp-stdint.h <<EOF
22549
22550 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22551 #ifndef _INT8_T
22552 #define _INT8_T
22553 #endif
22554 #ifndef _INT16_T
22555 #define _INT16_T
22556 #endif
22557 #ifndef _INT32_T
22558 #define _INT32_T
22559 #endif
22560
22561 #ifndef _UINT8_T
22562 #define _UINT8_T
22563 #ifndef __uint8_t_defined
22564 #define __uint8_t_defined
22565 typedef u_int8_t uint8_t;
22566 #endif
22567 #endif
22568
22569 #ifndef _UINT16_T
22570 #define _UINT16_T
22571 #ifndef __uint16_t_defined
22572 #define __uint16_t_defined
22573 typedef u_int16_t uint16_t;
22574 #endif
22575 #endif
22576
22577 #ifndef _UINT32_T
22578 #define _UINT32_T
22579 #ifndef __uint32_t_defined
22580 #define __uint32_t_defined
22581 typedef u_int32_t uint32_t;
22582 #endif
22583 #endif
22584EOF
22585else
22586 sed 's/^ *//' >> tmp-stdint.h <<EOF
22587
22588 /* Some systems have guard macros to prevent redefinitions, define them. */
22589 #ifndef _INT8_T
22590 #define _INT8_T
22591 #endif
22592 #ifndef _INT16_T
22593 #define _INT16_T
22594 #endif
22595 #ifndef _INT32_T
22596 #define _INT32_T
22597 #endif
22598 #ifndef _UINT8_T
22599 #define _UINT8_T
22600 #endif
22601 #ifndef _UINT16_T
22602 #define _UINT16_T
22603 #endif
22604 #ifndef _UINT32_T
22605 #define _UINT32_T
22606 #endif
22607EOF
22608fi
22609
22610# ------------- done basic int types, emit int64_t types ------------
22611if test "$ac_cv_type_uint64_t" = yes; then
22612 sed 's/^ *//' >> tmp-stdint.h <<EOF
22613
22614 /* system headers have good uint64_t and int64_t */
22615 #ifndef _INT64_T
22616 #define _INT64_T
22617 #endif
22618 #ifndef _UINT64_T
22619 #define _UINT64_T
22620 #endif
22621EOF
22622elif test "$ac_cv_type_u_int64_t" = yes; then
22623 sed 's/^ *//' >> tmp-stdint.h <<EOF
22624
22625 /* system headers have an u_int64_t (and int64_t) */
22626 #ifndef _INT64_T
22627 #define _INT64_T
22628 #endif
22629 #ifndef _UINT64_T
22630 #define _UINT64_T
22631 #ifndef __uint64_t_defined
22632 #define __uint64_t_defined
22633 typedef u_int64_t uint64_t;
22634 #endif
22635 #endif
22636EOF
22637elif test -n "$acx_cv_type_int64_t"; then
22638 sed 's/^ *//' >> tmp-stdint.h <<EOF
22639
22640 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22641 #ifndef _INT64_T
22642 #define _INT64_T
22643 typedef $acx_cv_type_int64_t int64_t;
22644 #endif
22645 #ifndef _UINT64_T
22646 #define _UINT64_T
22647 #ifndef __uint64_t_defined
22648 #define __uint64_t_defined
22649 typedef unsigned $acx_cv_type_int64_t uint64_t;
22650 #endif
22651 #endif
22652EOF
22653else
22654 sed 's/^ *//' >> tmp-stdint.h <<EOF
22655
22656 /* some common heuristics for int64_t, using compiler-specific tests */
22657 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22658 #ifndef _INT64_T
22659 #define _INT64_T
22660 #ifndef __int64_t_defined
22661 typedef long long int64_t;
22662 #endif
22663 #endif
22664 #ifndef _UINT64_T
22665 #define _UINT64_T
22666 typedef unsigned long long uint64_t;
22667 #endif
22668
22669 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22670 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22671 does not implement __extension__. But that compiler doesn't define
22672 __GNUC_MINOR__. */
22673 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22674 # define __extension__
22675 # endif
22676
22677 # ifndef _INT64_T
22678 # define _INT64_T
22679 __extension__ typedef long long int64_t;
22680 # endif
22681 # ifndef _UINT64_T
22682 # define _UINT64_T
22683 __extension__ typedef unsigned long long uint64_t;
22684 # endif
22685
22686 #elif !defined __STRICT_ANSI__
22687 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22688
22689 # ifndef _INT64_T
22690 # define _INT64_T
22691 typedef __int64 int64_t;
22692 # endif
22693 # ifndef _UINT64_T
22694 # define _UINT64_T
22695 typedef unsigned __int64 uint64_t;
22696 # endif
22697 # endif /* compiler */
22698
22699 #endif /* ANSI version */
22700EOF
22701fi
22702
22703# ------------- done int64_t types, emit intptr types ------------
22704if test "$ac_cv_type_uintptr_t" != yes; then
22705 sed 's/^ *//' >> tmp-stdint.h <<EOF
22706
22707 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22708 #ifndef __uintptr_t_defined
22709 typedef u$acx_cv_type_intptr_t uintptr_t;
22710 #endif
22711 #ifndef __intptr_t_defined
22712 typedef $acx_cv_type_intptr_t intptr_t;
22713 #endif
22714EOF
22715fi
22716
22717# ------------- done intptr types, emit int_least types ------------
22718if test "$ac_cv_type_int_least32_t" != yes; then
22719 sed 's/^ *//' >> tmp-stdint.h <<EOF
22720
22721 /* Define int_least types */
22722 typedef int8_t int_least8_t;
22723 typedef int16_t int_least16_t;
22724 typedef int32_t int_least32_t;
22725 #ifdef _INT64_T
22726 typedef int64_t int_least64_t;
22727 #endif
22728
22729 typedef uint8_t uint_least8_t;
22730 typedef uint16_t uint_least16_t;
22731 typedef uint32_t uint_least32_t;
22732 #ifdef _UINT64_T
22733 typedef uint64_t uint_least64_t;
22734 #endif
22735EOF
22736fi
22737
22738# ------------- done intptr types, emit int_fast types ------------
22739if test "$ac_cv_type_int_fast32_t" != yes; then
22740 sed 's/^ *//' >> tmp-stdint.h <<EOF
22741
22742 /* Define int_fast types. short is often slow */
22743 typedef int8_t int_fast8_t;
22744 typedef int int_fast16_t;
22745 typedef int32_t int_fast32_t;
22746 #ifdef _INT64_T
22747 typedef int64_t int_fast64_t;
22748 #endif
22749
22750 typedef uint8_t uint_fast8_t;
22751 typedef unsigned int uint_fast16_t;
22752 typedef uint32_t uint_fast32_t;
22753 #ifdef _UINT64_T
22754 typedef uint64_t uint_fast64_t;
22755 #endif
22756EOF
22757fi
22758
22759if test "$ac_cv_type_uintmax_t" != yes; then
22760 sed 's/^ *//' >> tmp-stdint.h <<EOF
22761
22762 /* Define intmax based on what we found */
22763 #ifdef _INT64_T
22764 typedef int64_t intmax_t;
22765 #else
22766 typedef long intmax_t;
22767 #endif
22768 #ifdef _UINT64_T
22769 typedef uint64_t uintmax_t;
22770 #else
22771 typedef unsigned long uintmax_t;
22772 #endif
22773EOF
22774fi
22775
22776sed 's/^ *//' >> tmp-stdint.h <<EOF
22777
22778 #endif /* GCC_GENERATED_STDINT_H */
22779EOF
22780
22781if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
22782 rm -f tmp-stdint.h
22783else
22784 mv -f tmp-stdint.h bfd_stdint.h
22785fi
22786
22787 ;;
20e95c23
DJ
22788 default )
22789case "$srcdir" in
22790 .) srcdirpre= ;;
22791 *) srcdirpre='$(srcdir)/' ;;
22792esac
22793POFILES=
22794GMOFILES=
22795for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22796 if test $lang != dummy; then
22797 POFILES="$POFILES $srcdirpre$lang.po"
22798 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22799 fi
22800done
22801sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
22802 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
22803 -e "s,@POFILES@,$POFILES," \
22804 -e "s,@GMOFILES@,$GMOFILES," \
22805 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
22806 esac
22807done
22808_ACEOF
22809
22810cat >>$CONFIG_STATUS <<\_ACEOF
22811
22812{ (exit 0); exit 0; }
22813_ACEOF
252b5132 22814chmod +x $CONFIG_STATUS
5464f5a1
NN
22815ac_clean_files=$ac_clean_files_save
22816
22817
22818# configure is writing to config.log, and then calls config.status.
22819# config.status does its own redirection, appending to config.log.
22820# Unfortunately, on DOS this fails, as config.log is still kept open
22821# by configure, so config.status won't be able to write to it; its
22822# output is simply discarded. So we exec the FD to /dev/null,
22823# effectively closing config.log, so it can be properly (re)opened and
22824# appended to by config.status. When coming back to configure, we
22825# need to make the FD available again.
22826if test "$no_create" != yes; then
22827 ac_cs_success=:
22828 ac_config_status_args=
22829 test "$silent" = yes &&
22830 ac_config_status_args="$ac_config_status_args --quiet"
22831 exec 5>/dev/null
22832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22833 exec 5>>config.log
22834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22835 # would make configure fail if this is the last instruction.
22836 $ac_cs_success || { (exit 1); exit 1; }
22837fi
252b5132 22838
55c80943 22839
This page took 2.776507 seconds and 4 git commands to generate.