*** empty log message ***
[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 *)
79887925
L
4778 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4779 if test -n $lt_cv_sys_max_cmd_len; then
4780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4782 else
4783 # Make teststring a little bigger before we do anything with it.
4784 # a 1K string should be a reasonable start.
4785 for i in 1 2 3 4 5 6 7 8 ; do
4786 teststring=$teststring$teststring
4787 done
4788 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4789 # If test is not a shell built-in, we'll probably end up computing a
4790 # maximum length that is only half of the actual maximum length, but
4791 # we can't tell.
4792 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4793 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4794 test $i != 17 # 1/2 MB should be enough
4795 do
4796 i=`expr $i + 1`
4797 teststring=$teststring$teststring
4798 done
4799 # Only check the string length outside the loop.
4800 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4801 teststring=
4802 # Add a significant safety factor because C++ compilers can tack on
4803 # massive amounts of additional arguments before passing them to the
4804 # linker. It appears as though 1/2 is a usable value.
4805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4806 fi
d7040cdb 4807 ;;
cfbc9945 4808 esac
5464f5a1 4809
252b5132 4810fi
cfbc9945 4811
d7040cdb 4812if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
4813 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4814echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 4815else
cfbc9945
SE
4816 echo "$as_me:$LINENO: result: none" >&5
4817echo "${ECHO_T}none" >&6
5464f5a1 4818fi
d7040cdb 4819max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 4820
cfbc9945 4821
252b5132 4822
cfbc9945 4823
cfbc9945 4824
d7040cdb
SE
4825
4826
4827: ${CP="cp -f"}
4828: ${MV="mv -f"}
4829: ${RM="rm -f"}
4830
4831echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4832echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4833# Try some XSI features
4834xsi_shell=no
4835( _lt_dummy="a/b/c"
4836 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4837 = c,a/b,, ) >/dev/null 2>&1 \
4838 && xsi_shell=yes
4839echo "$as_me:$LINENO: result: $xsi_shell" >&5
4840echo "${ECHO_T}$xsi_shell" >&6
4841
4842
4843echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4844echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4845lt_shell_append=no
4846( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4847 >/dev/null 2>&1 \
4848 && lt_shell_append=yes
4849echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4850echo "${ECHO_T}$lt_shell_append" >&6
4851
4852
4853if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4854 lt_unset=unset
5464f5a1 4855else
d7040cdb 4856 lt_unset=false
5464f5a1 4857fi
252b5132 4858
d7040cdb
SE
4859
4860
4861
4862
4863# test EBCDIC or ASCII
4864case `echo X|tr X '\101'` in
4865 A) # ASCII based system
4866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4867 lt_SP2NL='tr \040 \012'
4868 lt_NL2SP='tr \015\012 \040\040'
4869 ;;
4870 *) # EBCDIC based system
4871 lt_SP2NL='tr \100 \n'
4872 lt_NL2SP='tr \r\n \100\100'
4873 ;;
4874esac
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4885echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4886if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
d7040cdb
SE
4889 lt_cv_ld_reload_flag='-r'
4890fi
4891echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4892echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4893reload_flag=$lt_cv_ld_reload_flag
4894case $reload_flag in
4895"" | " "*) ;;
4896*) reload_flag=" $reload_flag" ;;
4897esac
4898reload_cmds='$LD$reload_flag -o $output$reload_objs'
4899case $host_os in
4900 darwin*)
4901 if test "$GCC" = yes; then
4902 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4903 else
4904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4905 fi
4906 ;;
4907esac
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4919echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4920if test "${lt_cv_deplibs_check_method+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 lt_cv_file_magic_cmd='$MAGIC_CMD'
4924lt_cv_file_magic_test_file=
4925lt_cv_deplibs_check_method='unknown'
4926# Need to set the preceding variable on all platforms that support
4927# interlibrary dependencies.
4928# 'none' -- dependencies not supported.
4929# `unknown' -- same as none, but documents that we really don't know.
4930# 'pass_all' -- all dependencies passed with no checks.
4931# 'test_compile' -- check by making test program.
4932# 'file_magic [[regex]]' -- check by looking for files in library path
4933# which responds to the $file_magic_cmd with a given extended regex.
4934# If you have `file' or equivalent on your system and you're not sure
4935# whether `pass_all' will *always* work, you probably want this one.
4936
4937case $host_os in
4938aix4* | aix5*)
4939 lt_cv_deplibs_check_method=pass_all
4940 ;;
4941
4942beos*)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945
4946bsdi[45]*)
4947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4948 lt_cv_file_magic_cmd='/usr/bin/file -L'
4949 lt_cv_file_magic_test_file=/shlib/libc.so
4950 ;;
4951
4952cygwin*)
4953 # func_win32_libid is a shell function defined in ltmain.sh
4954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4955 lt_cv_file_magic_cmd='func_win32_libid'
4956 ;;
4957
4958mingw* | pw32*)
4959 # Base MSYS/MinGW do not provide the 'file' command needed by
4960 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4961 # unless we find 'file', for example because we are cross-compiling.
4962 if ( file / ) >/dev/null 2>&1; then
4963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4964 lt_cv_file_magic_cmd='func_win32_libid'
4965 else
4966 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4967 lt_cv_file_magic_cmd='$OBJDUMP -f'
4968 fi
4969 ;;
4970
4971darwin* | rhapsody*)
4972 lt_cv_deplibs_check_method=pass_all
cfbc9945 4973 ;;
d7040cdb
SE
4974
4975freebsd* | dragonfly*)
4976 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4977 case $host_cpu in
4978 i*86 )
4979 # Not sure whether the presence of OpenBSD here was a mistake.
4980 # Let's accept both of them until this is cleared up.
4981 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4982 lt_cv_file_magic_cmd=/usr/bin/file
4983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4984 ;;
4985 esac
4986 else
4987 lt_cv_deplibs_check_method=pass_all
4988 fi
4989 ;;
4990
4991gnu*)
4992 lt_cv_deplibs_check_method=pass_all
cfbc9945 4993 ;;
d7040cdb
SE
4994
4995hpux10.20* | hpux11*)
4996 lt_cv_file_magic_cmd=/usr/bin/file
4997 case $host_cpu in
4998 ia64*)
4999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5001 ;;
5002 hppa*64*)
5003 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]'
5004 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5005 ;;
cfbc9945 5006 *)
d7040cdb
SE
5007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5008 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5009 ;;
5010 esac
5011 ;;
6be7c12c 5012
d7040cdb
SE
5013interix[3-9]*)
5014 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5016 ;;
cfbc9945 5017
d7040cdb
SE
5018irix5* | irix6* | nonstopux*)
5019 case $LD in
5020 *-32|*"-32 ") libmagic=32-bit;;
5021 *-n32|*"-n32 ") libmagic=N32;;
5022 *-64|*"-64 ") libmagic=64-bit;;
5023 *) libmagic=never-match;;
5024 esac
5025 lt_cv_deplibs_check_method=pass_all
cfbc9945 5026 ;;
cfbc9945 5027
d7040cdb
SE
5028# This must be Linux ELF.
5029linux* | k*bsd*-gnu)
5030 lt_cv_deplibs_check_method=pass_all
5031 ;;
5464f5a1 5032
d7040cdb
SE
5033netbsd*)
5034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 5036 else
d7040cdb 5037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 5038 fi
d7040cdb
SE
5039 ;;
5040
5041newos6*)
5042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5043 lt_cv_file_magic_cmd=/usr/bin/file
5044 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5045 ;;
5046
5047*nto* | *qnx*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
cfbc9945 5050
d7040cdb
SE
5051openbsd*)
5052 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5054 else
5055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
5056 fi
5057 ;;
d7040cdb
SE
5058
5059osf3* | osf4* | osf5*)
5060 lt_cv_deplibs_check_method=pass_all
5061 ;;
5062
5063rdos*)
5064 lt_cv_deplibs_check_method=pass_all
5065 ;;
5066
5067solaris*)
5068 lt_cv_deplibs_check_method=pass_all
5069 ;;
5070
5071sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074
5075sysv4 | sysv4.3*)
5076 case $host_vendor in
5077 motorola)
5078 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]'
5079 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5080 ;;
5081 ncr)
5082 lt_cv_deplibs_check_method=pass_all
5083 ;;
5084 sequent)
5085 lt_cv_file_magic_cmd='/bin/file'
5086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5087 ;;
5088 sni)
5089 lt_cv_file_magic_cmd='/bin/file'
5090 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5091 lt_cv_file_magic_test_file=/lib/libc.so
5092 ;;
5093 siemens)
5094 lt_cv_deplibs_check_method=pass_all
5095 ;;
5096 pc)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099 esac
5100 ;;
5101
5102tpf*)
5103 lt_cv_deplibs_check_method=pass_all
5104 ;;
cfbc9945
SE
5105esac
5106
d7040cdb
SE
5107fi
5108echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5109echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5110file_magic_cmd=$lt_cv_file_magic_cmd
5111deplibs_check_method=$lt_cv_deplibs_check_method
5112test -z "$deplibs_check_method" && deplibs_check_method=unknown
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
cfbc9945 5125if test -n "$ac_tool_prefix"; then
d7040cdb
SE
5126 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5127set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5130if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
d7040cdb
SE
5133 if test -n "$AR"; then
5134 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5143 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
5144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147done
5148done
5149
5150fi
5151fi
d7040cdb
SE
5152AR=$ac_cv_prog_AR
5153if test -n "$AR"; then
5154 echo "$as_me:$LINENO: result: $AR" >&5
5155echo "${ECHO_T}$AR" >&6
5464f5a1
NN
5156else
5157 echo "$as_me:$LINENO: result: no" >&5
5158echo "${ECHO_T}no" >&6
5159fi
5160
5464f5a1 5161fi
d7040cdb
SE
5162if test -z "$ac_cv_prog_AR"; then
5163 ac_ct_AR=$AR
5164 # Extract the first word of "ar", so it can be a program name with args.
5165set dummy ar; ac_word=$2
5464f5a1
NN
5166echo "$as_me:$LINENO: checking for $ac_word" >&5
5167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 5168if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 5169 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5170else
d7040cdb
SE
5171 if test -n "$ac_ct_AR"; then
5172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 5173else
5464f5a1
NN
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 5181 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
5182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186done
5187
d7040cdb 5188 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
5189fi
5190fi
d7040cdb
SE
5191ac_ct_AR=$ac_cv_prog_ac_ct_AR
5192if test -n "$ac_ct_AR"; then
5193 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5194echo "${ECHO_T}$ac_ct_AR" >&6
5195else
5196 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
5197echo "${ECHO_T}no" >&6
5198fi
5199
d7040cdb 5200 AR=$ac_ct_AR
cfbc9945 5201else
d7040cdb 5202 AR="$ac_cv_prog_AR"
5464f5a1 5203fi
cfbc9945 5204
d7040cdb
SE
5205test -z "$AR" && AR=ar
5206test -z "$AR_FLAGS" && AR_FLAGS=cru
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
cfbc9945
SE
5218if test -n "$ac_tool_prefix"; then
5219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5220set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
5221echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5223if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
cfbc9945
SE
5226 if test -n "$STRIP"; then
5227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
5228else
5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH
5231do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240done
5241done
5242
5243fi
5244fi
cfbc9945
SE
5245STRIP=$ac_cv_prog_STRIP
5246if test -n "$STRIP"; then
5247 echo "$as_me:$LINENO: result: $STRIP" >&5
5248echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
5249else
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
5252fi
5253
252b5132 5254fi
cfbc9945
SE
5255if test -z "$ac_cv_prog_STRIP"; then
5256 ac_ct_STRIP=$STRIP
5257 # Extract the first word of "strip", so it can be a program name with args.
5258set dummy strip; ac_word=$2
5464f5a1
NN
5259echo "$as_me:$LINENO: checking for $ac_word" >&5
5260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 5261if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
cfbc9945
SE
5264 if test -n "$ac_ct_STRIP"; then
5265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 5274 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278done
5279done
5280
cfbc9945 5281 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
5282fi
5283fi
cfbc9945
SE
5284ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5285if test -n "$ac_ct_STRIP"; then
5286 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5287echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
5288else
5289 echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291fi
5292
cfbc9945
SE
5293 STRIP=$ac_ct_STRIP
5294else
5295 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
5296fi
5297
d7040cdb 5298test -z "$STRIP" && STRIP=:
5464f5a1 5299
cfbc9945
SE
5300
5301
cfbc9945 5302
cfbc9945
SE
5303
5304
d7040cdb
SE
5305if test -n "$ac_tool_prefix"; then
5306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5307set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5308echo "$as_me:$LINENO: checking for $ac_word" >&5
5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5310if test "${ac_cv_prog_RANLIB+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 5312else
d7040cdb
SE
5313 if test -n "$RANLIB"; then
5314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5315else
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
cfbc9945 5326 fi
d7040cdb
SE
5327done
5328done
cfbc9945 5329
d7040cdb
SE
5330fi
5331fi
5332RANLIB=$ac_cv_prog_RANLIB
5333if test -n "$RANLIB"; then
5334 echo "$as_me:$LINENO: result: $RANLIB" >&5
5335echo "${ECHO_T}$RANLIB" >&6
5336else
5337 echo "$as_me:$LINENO: result: no" >&5
5338echo "${ECHO_T}no" >&6
5339fi
cfbc9945 5340
d7040cdb
SE
5341fi
5342if test -z "$ac_cv_prog_RANLIB"; then
5343 ac_ct_RANLIB=$RANLIB
5344 # Extract the first word of "ranlib", so it can be a program name with args.
5345set dummy ranlib; ac_word=$2
5346echo "$as_me:$LINENO: checking for $ac_word" >&5
5347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351 if test -n "$ac_ct_RANLIB"; then
5352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_ac_ct_RANLIB="ranlib"
5362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
cfbc9945 5364 fi
d7040cdb
SE
5365done
5366done
cfbc9945 5367
d7040cdb
SE
5368 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5369fi
5370fi
5371ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5372if test -n "$ac_ct_RANLIB"; then
5373 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5374echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 5375else
d7040cdb
SE
5376 echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6
5378fi
5464f5a1 5379
d7040cdb
SE
5380 RANLIB=$ac_ct_RANLIB
5381else
5382 RANLIB="$ac_cv_prog_RANLIB"
5383fi
5464f5a1 5384
d7040cdb 5385test -z "$RANLIB" && RANLIB=:
5464f5a1 5386
5464f5a1 5387
5464f5a1 5388
cfbc9945 5389
cfbc9945 5390
d7040cdb
SE
5391
5392# Determine commands to create old-style static archives.
5393old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5394old_postinstall_cmds='chmod 644 $oldlib'
5395old_postuninstall_cmds=
5396
5397if test -n "$RANLIB"; then
5398 case $host_os in
5399 openbsd*)
5400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5401 ;;
5402 *)
5403 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5404 ;;
5405 esac
5406 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 5407fi
cfbc9945
SE
5408
5409
cfbc9945
SE
5410
5411
cfbc9945 5412
cfbc9945 5413
cfbc9945 5414
cfbc9945 5415
cfbc9945
SE
5416
5417
cfbc9945 5418
cfbc9945 5419
cfbc9945
SE
5420
5421
5422
5423
5424
5425
5426
5464f5a1 5427
5464f5a1 5428
cfbc9945
SE
5429
5430
5431
5464f5a1 5432
5464f5a1 5433
cfbc9945
SE
5434
5435
5436
5464f5a1 5437
cfbc9945
SE
5438
5439
5440
5441
d7040cdb
SE
5442# If no C compiler was specified, use CC.
5443LTCC=${LTCC-"$CC"}
cfbc9945 5444
d7040cdb
SE
5445# If no C compiler flags were specified, use CFLAGS.
5446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 5447
d7040cdb
SE
5448# Allow CC to be a program name with arguments.
5449compiler=$CC
cfbc9945 5450
cfbc9945 5451
d7040cdb
SE
5452# Check for command to grab the raw symbol name followed by C symbol from nm.
5453echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5454echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5455if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5464f5a1 5458
d7040cdb
SE
5459# These are sane defaults that work on at least a few old systems.
5460# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 5461
d7040cdb
SE
5462# Character class describing NM global symbol codes.
5463symcode='[BCDEGRST]'
5464
5465# Regexp to match symbols that can be accessed directly from C.
5466sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5467
5468# Define system-specific variables.
5469case $host_os in
5470aix*)
5471 symcode='[BCDT]'
5472 ;;
5473cygwin* | mingw* | pw32*)
5474 symcode='[ABCDGISTW]'
5475 ;;
5476hpux*)
5477 if test "$host_cpu" = ia64; then
5478 symcode='[ABCDEGRST]'
5479 fi
5480 ;;
5481irix* | nonstopux*)
5482 symcode='[BCDEGRST]'
5483 ;;
5484osf*)
5485 symcode='[BCDEGQRST]'
5486 ;;
5487solaris*)
5488 symcode='[BDRT]'
5489 ;;
5490sco3.2v5*)
5491 symcode='[DT]'
5492 ;;
5493sysv4.2uw2*)
5494 symcode='[DT]'
5495 ;;
5496sysv5* | sco5v6* | unixware* | OpenUNIX*)
5497 symcode='[ABDT]'
5498 ;;
5499sysv4)
5500 symcode='[DFNSTU]'
5501 ;;
cfbc9945 5502esac
5464f5a1 5503
d7040cdb
SE
5504# If we're using GNU nm, then use its standard symbol codes.
5505case `$NM -V 2>&1` in
5506*GNU* | *'with BFD'*)
5507 symcode='[ABCDGIRSTW]' ;;
5508esac
5464f5a1 5509
d7040cdb
SE
5510# Transform an extracted symbol line into a proper C declaration.
5511# Some systems (esp. on ia64) link data and code symbols differently,
5512# so use this general approach.
5513lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 5514
d7040cdb
SE
5515# Transform an extracted symbol line into symbol name and symbol address
5516lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5464f5a1 5517
d7040cdb
SE
5518# Handle CRLF in mingw tool chain
5519opt_cr=
5520case $build_os in
5521mingw*)
5522 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5523 ;;
5524esac
5464f5a1 5525
d7040cdb
SE
5526# Try without a prefix underscore, then with it.
5527for ac_symprfx in "" "_"; do
5528
5529 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5530 symxfrm="\\1 $ac_symprfx\\2 \\2"
5531
5532 # Write the raw and C identifiers.
5533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5534 # Fake it for dumpbin and say T for any non-static function
5535 # and D for any global variable.
5536 # Also find C++ and __fastcall symbols from MSVC++,
5537 # which start with @ or ?.
5538 lt_cv_sys_global_symbol_pipe="$AWK '"\
5539" {last_section=section; section=\$ 3};"\
5540" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5541" \$ 0!~/External *\|/{next};"\
5542" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5543" {if(hide[section]) next};"\
5544" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5545" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5546" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5547" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5548" ' prfx=^$ac_symprfx"
5549 else
5550 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5551 fi
cfbc9945 5552
d7040cdb
SE
5553 # Check to see that the pipe works correctly.
5554 pipe_works=no
cfbc9945 5555
d7040cdb
SE
5556 rm -f conftest*
5557 cat > conftest.$ac_ext <<_LT_EOF
5558#ifdef __cplusplus
5559extern "C" {
5560#endif
5561char nm_test_var;
5562void nm_test_func(void);
5563void nm_test_func(void){}
5564#ifdef __cplusplus
5565}
5566#endif
5567int main(){nm_test_var='a';nm_test_func();return(0);}
5568_LT_EOF
cfbc9945 5569
d7040cdb
SE
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 # Now try to grab the symbols.
5576 nlist=conftest.nm
5577 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5578 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && test -s "$nlist"; then
5582 # Try sorting and uniquifying the output.
5583 if sort "$nlist" | uniq > "$nlist"T; then
5584 mv -f "$nlist"T "$nlist"
5585 else
5586 rm -f "$nlist"T
5587 fi
cfbc9945 5588
d7040cdb
SE
5589 # Make sure that we snagged all the symbols we need.
5590 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5591 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5592 cat <<_LT_EOF > conftest.$ac_ext
5593#ifdef __cplusplus
5594extern "C" {
5595#endif
cfbc9945 5596
d7040cdb
SE
5597_LT_EOF
5598 # Now generate the symbol file.
5599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 5600
d7040cdb 5601 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 5602
d7040cdb
SE
5603/* The mapping between symbol names and symbols. */
5604const struct {
5605 const char *name;
5606 void *address;
5607}
5608lt__PROGRAM__LTX_preloaded_symbols[] =
5609{
5610 { "@PROGRAM@", (void *) 0 },
5611_LT_EOF
5612 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5613 cat <<\_LT_EOF >> conftest.$ac_ext
5614 {0, (void *) 0}
5615};
5616
5617/* This works around a problem in FreeBSD linker */
5618#ifdef FREEBSD_WORKAROUND
5619static const void *lt_preloaded_setup() {
5620 return lt__PROGRAM__LTX_preloaded_symbols;
5621}
5622#endif
cfbc9945 5623
d7040cdb
SE
5624#ifdef __cplusplus
5625}
5626#endif
5627_LT_EOF
5628 # Now try linking the two files.
5629 mv conftest.$ac_objext conftstm.$ac_objext
5630 lt_save_LIBS="$LIBS"
5631 lt_save_CFLAGS="$CFLAGS"
5632 LIBS="conftstm.$ac_objext"
5633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5639 pipe_works=yes
5640 fi
5641 LIBS="$lt_save_LIBS"
5642 CFLAGS="$lt_save_CFLAGS"
5643 else
5644 echo "cannot find nm_test_func in $nlist" >&5
5645 fi
5646 else
5647 echo "cannot find nm_test_var in $nlist" >&5
5648 fi
5649 else
5650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5651 fi
5652 else
5653 echo "$progname: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5655 fi
5656 rm -f conftest* conftst*
cfbc9945 5657
d7040cdb
SE
5658 # Do not use the global_symbol_pipe unless it works.
5659 if test "$pipe_works" = yes; then
5660 break
5661 else
5662 lt_cv_sys_global_symbol_pipe=
5663 fi
5664done
cfbc9945 5665
252b5132 5666fi
5464f5a1 5667
d7040cdb
SE
5668if test -z "$lt_cv_sys_global_symbol_pipe"; then
5669 lt_cv_sys_global_symbol_to_cdecl=
5670fi
5671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5672 echo "$as_me:$LINENO: result: failed" >&5
5673echo "${ECHO_T}failed" >&6
b3baf5d0 5674else
d7040cdb
SE
5675 echo "$as_me:$LINENO: result: ok" >&5
5676echo "${ECHO_T}ok" >&6
5677fi
5464f5a1 5678
cfbc9945 5679
b3baf5d0 5680
cfbc9945
SE
5681
5682
5683
5684
5464f5a1 5685
4a2a2686
HPN
5686
5687
5688
cfbc9945
SE
5689
5690
cfbc9945 5691
cfbc9945 5692
9d7cbccd 5693
20e95c23 5694
d7040cdb
SE
5695# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5696if test "${enable_libtool_lock+set}" = set; then
5697 enableval="$enable_libtool_lock"
20e95c23 5698
d7040cdb
SE
5699fi;
5700test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 5701
d7040cdb
SE
5702# Some flags need to be propagated to the compiler or linker for good
5703# libtool support.
5704case $host in
5705ia64-*-hpux*)
5706 # Find out which ABI we are using.
5707 echo 'int i;' > conftest.$ac_ext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; then
5713 case `/usr/bin/file conftest.$ac_objext` in
5714 *ELF-32*)
5715 HPUX_IA64_MODE="32"
5716 ;;
5717 *ELF-64*)
5718 HPUX_IA64_MODE="64"
5719 ;;
20e95c23 5720 esac
d7040cdb
SE
5721 fi
5722 rm -rf conftest*
5723 ;;
5724*-*-irix6*)
5725 # Find out which ABI we are using.
79887925 5726 echo '#line 5726 "configure"' > conftest.$ac_ext
d7040cdb
SE
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728 (eval $ac_compile) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; then
5732 if test "$lt_cv_prog_gnu_ld" = yes; then
5733 case `/usr/bin/file conftest.$ac_objext` in
5734 *32-bit*)
5735 LD="${LD-ld} -melf32bsmip"
5736 ;;
5737 *N32*)
5738 LD="${LD-ld} -melf32bmipn32"
5739 ;;
5740 *64-bit*)
5741 LD="${LD-ld} -melf64bmip"
5742 ;;
5743 esac
20e95c23 5744 else
d7040cdb
SE
5745 case `/usr/bin/file conftest.$ac_objext` in
5746 *32-bit*)
5747 LD="${LD-ld} -32"
5748 ;;
5749 *N32*)
5750 LD="${LD-ld} -n32"
5751 ;;
5752 *64-bit*)
5753 LD="${LD-ld} -64"
5754 ;;
20e95c23
DJ
5755 esac
5756 fi
d7040cdb
SE
5757 fi
5758 rm -rf conftest*
5759 ;;
20e95c23 5760
d7040cdb
SE
5761x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5762s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5763 # Find out which ABI we are using.
5764 echo 'int i;' > conftest.$ac_ext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; then
5770 case `/usr/bin/file conftest.o` in
5771 *32-bit*)
5772 case $host in
5773 x86_64-*kfreebsd*-gnu)
5774 LD="${LD-ld} -m elf_i386_fbsd"
5775 ;;
5776 x86_64-*linux*)
5777 LD="${LD-ld} -m elf_i386"
5778 ;;
5779 ppc64-*linux*|powerpc64-*linux*)
5780 LD="${LD-ld} -m elf32ppclinux"
5781 ;;
5782 s390x-*linux*)
5783 LD="${LD-ld} -m elf_s390"
5784 ;;
5785 sparc64-*linux*)
5786 LD="${LD-ld} -m elf32_sparc"
5787 ;;
5788 esac
5789 ;;
5790 *64-bit*)
5791 case $host in
5792 x86_64-*kfreebsd*-gnu)
5793 LD="${LD-ld} -m elf_x86_64_fbsd"
5794 ;;
5795 x86_64-*linux*)
5796 LD="${LD-ld} -m elf_x86_64"
5797 ;;
5798 ppc*-*linux*|powerpc*-*linux*)
5799 LD="${LD-ld} -m elf64ppc"
5800 ;;
5801 s390*-*linux*|s390*-*tpf*)
5802 LD="${LD-ld} -m elf64_s390"
5803 ;;
5804 sparc*-*linux*)
5805 LD="${LD-ld} -m elf64_sparc"
5806 ;;
5807 esac
5808 ;;
20e95c23
DJ
5809 esac
5810 fi
d7040cdb
SE
5811 rm -rf conftest*
5812 ;;
20e95c23 5813
d7040cdb
SE
5814*-*-sco3.2v5*)
5815 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5816 SAVE_CFLAGS="$CFLAGS"
5817 CFLAGS="$CFLAGS -belf"
5818 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5819echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5820if test "${lt_cv_cc_needs_belf+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5822else
d7040cdb
SE
5823 ac_ext=c
5824ac_cpp='$CPP $CPPFLAGS'
5825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 5828
d7040cdb
SE
5829 cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h. */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h. */
20e95c23 5835
d7040cdb
SE
5836int
5837main ()
5838{
20e95c23 5839
d7040cdb
SE
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844rm -f conftest.$ac_objext conftest$ac_exeext
5845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } &&
5853 { ac_try='test -z "$ac_c_werror_flag"
5854 || test ! -s conftest.err'
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); }; } &&
5860 { ac_try='test -s conftest$ac_exeext'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; }; then
5866 lt_cv_cc_needs_belf=yes
5867else
5868 echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871lt_cv_cc_needs_belf=no
5872fi
5873rm -f conftest.err conftest.$ac_objext \
5874 conftest$ac_exeext conftest.$ac_ext
5875 ac_ext=c
5876ac_cpp='$CPP $CPPFLAGS'
5877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879ac_compiler_gnu=$ac_cv_c_compiler_gnu
5880
5881fi
5882echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5883echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5884 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5885 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5886 CFLAGS="$SAVE_CFLAGS"
5887 fi
5888 ;;
5889sparc*-*solaris*)
5890 # Find out which ABI we are using.
5891 echo 'int i;' > conftest.$ac_ext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; then
5897 case `/usr/bin/file conftest.o` in
5898 *64-bit*)
5899 case $lt_cv_prog_gnu_ld in
5900 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5901 *) LD="${LD-ld} -64" ;;
5902 esac
5903 ;;
5904 esac
5905 fi
5906 rm -rf conftest*
5907 ;;
5908esac
5909
5910need_locks="$enable_libtool_lock"
5911
5912ac_ext=c
5913ac_cpp='$CPP $CPPFLAGS'
5914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5918echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5919# On Suns, sometimes $CPP names a directory.
5920if test -n "$CPP" && test -d "$CPP"; then
5921 CPP=
5922fi
5923if test -z "$CPP"; then
5924 if test "${ac_cv_prog_CPP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 # Double quotes because CPP needs to be expanded
5928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5929 do
5930 ac_preproc_ok=false
5931for ac_c_preproc_warn_flag in '' yes
5932do
5933 # Use a header file that comes with gcc, so configuring glibc
5934 # with a fresh cross-compiler works.
5935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936 # <limits.h> exists even on freestanding compilers.
5937 # On the NeXT, cc -E runs the code through the compiler's parser,
5938 # not just through cpp. "Syntax error" is here to catch this case.
5939 cat >conftest.$ac_ext <<_ACEOF
5940/* confdefs.h. */
5941_ACEOF
5942cat confdefs.h >>conftest.$ac_ext
5943cat >>conftest.$ac_ext <<_ACEOF
5944/* end confdefs.h. */
5945#ifdef __STDC__
5946# include <limits.h>
5947#else
5948# include <assert.h>
5949#endif
5950 Syntax error
5951_ACEOF
5952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_c_preproc_warn_flag
5962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963 else
5964 ac_cpp_err=
5965 fi
5966else
5967 ac_cpp_err=yes
5968fi
5969if test -z "$ac_cpp_err"; then
5970 :
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 # Broken: fails on valid input.
5976continue
5977fi
5978rm -f conftest.err conftest.$ac_ext
5979
5980 # OK, works on sane cases. Now check whether non-existent headers
5981 # can be detected and how.
5982 cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h. */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h. */
5988#include <ac_nonexistent.h>
5989_ACEOF
5990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null; then
5998 if test -s conftest.err; then
5999 ac_cpp_err=$ac_c_preproc_warn_flag
6000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001 else
6002 ac_cpp_err=
6003 fi
6004else
6005 ac_cpp_err=yes
6006fi
6007if test -z "$ac_cpp_err"; then
6008 # Broken: success on invalid input.
6009continue
6010else
6011 echo "$as_me: failed program was:" >&5
6012sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 # Passes both tests.
6015ac_preproc_ok=:
6016break
6017fi
6018rm -f conftest.err conftest.$ac_ext
6019
6020done
6021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6022rm -f conftest.err conftest.$ac_ext
6023if $ac_preproc_ok; then
6024 break
6025fi
6026
6027 done
6028 ac_cv_prog_CPP=$CPP
6029
6030fi
6031 CPP=$ac_cv_prog_CPP
6032else
6033 ac_cv_prog_CPP=$CPP
6034fi
6035echo "$as_me:$LINENO: result: $CPP" >&5
6036echo "${ECHO_T}$CPP" >&6
6037ac_preproc_ok=false
6038for ac_c_preproc_warn_flag in '' yes
6039do
6040 # Use a header file that comes with gcc, so configuring glibc
6041 # with a fresh cross-compiler works.
6042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6043 # <limits.h> exists even on freestanding compilers.
6044 # On the NeXT, cc -E runs the code through the compiler's parser,
6045 # not just through cpp. "Syntax error" is here to catch this case.
6046 cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h. */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h. */
6052#ifdef __STDC__
6053# include <limits.h>
6054#else
6055# include <assert.h>
6056#endif
6057 Syntax error
6058_ACEOF
6059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } >/dev/null; then
6067 if test -s conftest.err; then
6068 ac_cpp_err=$ac_c_preproc_warn_flag
6069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6070 else
6071 ac_cpp_err=
6072 fi
6073else
6074 ac_cpp_err=yes
6075fi
6076if test -z "$ac_cpp_err"; then
6077 :
6078else
6079 echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 # Broken: fails on valid input.
6083continue
6084fi
6085rm -f conftest.err conftest.$ac_ext
6086
6087 # OK, works on sane cases. Now check whether non-existent headers
6088 # can be detected and how.
6089 cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h. */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h. */
6095#include <ac_nonexistent.h>
6096_ACEOF
6097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } >/dev/null; then
6105 if test -s conftest.err; then
6106 ac_cpp_err=$ac_c_preproc_warn_flag
6107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6108 else
6109 ac_cpp_err=
6110 fi
6111else
6112 ac_cpp_err=yes
6113fi
6114if test -z "$ac_cpp_err"; then
6115 # Broken: success on invalid input.
6116continue
6117else
6118 echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 # Passes both tests.
6122ac_preproc_ok=:
6123break
6124fi
6125rm -f conftest.err conftest.$ac_ext
6126
6127done
6128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6129rm -f conftest.err conftest.$ac_ext
6130if $ac_preproc_ok; then
6131 :
6132else
6133 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6134See \`config.log' for more details." >&5
6135echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6136See \`config.log' for more details." >&2;}
6137 { (exit 1); exit 1; }; }
6138fi
6139
6140ac_ext=c
6141ac_cpp='$CPP $CPPFLAGS'
6142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144ac_compiler_gnu=$ac_cv_c_compiler_gnu
6145
6146
6147echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6148echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6149if test "${ac_cv_header_stdc+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152 cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h. */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h. */
6158#include <stdlib.h>
6159#include <stdarg.h>
6160#include <string.h>
6161#include <float.h>
6162
6163int
6164main ()
6165{
6166
6167 ;
6168 return 0;
6169}
6170_ACEOF
6171rm -f conftest.$ac_objext
6172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag"
6181 || test ! -s conftest.err'
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); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_header_stdc=yes
6194else
6195 echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198ac_cv_header_stdc=no
6199fi
6200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6201
6202if test $ac_cv_header_stdc = yes; then
6203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6204 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210#include <string.h>
6211
6212_ACEOF
6213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214 $EGREP "memchr" >/dev/null 2>&1; then
6215 :
6216else
6217 ac_cv_header_stdc=no
6218fi
6219rm -f conftest*
6220
6221fi
6222
6223if test $ac_cv_header_stdc = yes; then
6224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6225 cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231#include <stdlib.h>
6232
6233_ACEOF
6234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235 $EGREP "free" >/dev/null 2>&1; then
6236 :
6237else
6238 ac_cv_header_stdc=no
6239fi
6240rm -f conftest*
6241
6242fi
6243
6244if test $ac_cv_header_stdc = yes; then
6245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6246 if test "$cross_compiling" = yes; then
6247 :
6248else
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255#include <ctype.h>
6256#if ((' ' & 0x0FF) == 0x020)
6257# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6258# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6259#else
6260# define ISLOWER(c) \
6261 (('a' <= (c) && (c) <= 'i') \
6262 || ('j' <= (c) && (c) <= 'r') \
6263 || ('s' <= (c) && (c) <= 'z'))
6264# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6265#endif
6266
6267#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6268int
6269main ()
6270{
6271 int i;
6272 for (i = 0; i < 256; i++)
6273 if (XOR (islower (i), ISLOWER (i))
6274 || toupper (i) != TOUPPER (i))
6275 exit(2);
6276 exit (0);
6277}
6278_ACEOF
6279rm -f conftest$ac_exeext
6280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6286 (eval $ac_try) 2>&5
6287 ac_status=$?
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 :
6291else
6292 echo "$as_me: program exited with status $ac_status" >&5
6293echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296( exit $ac_status )
6297ac_cv_header_stdc=no
6298fi
6299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300fi
6301fi
6302fi
6303echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6304echo "${ECHO_T}$ac_cv_header_stdc" >&6
6305if test $ac_cv_header_stdc = yes; then
6306
6307cat >>confdefs.h <<\_ACEOF
6308#define STDC_HEADERS 1
6309_ACEOF
6310
6311fi
6312
6313# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6324 inttypes.h stdint.h unistd.h
6325do
6326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6327echo "$as_me:$LINENO: checking for $ac_header" >&5
6328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6329if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332 cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
6338$ac_includes_default
6339
6340#include <$ac_header>
6341_ACEOF
6342rm -f conftest.$ac_objext
6343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
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); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 eval "$as_ac_Header=yes"
6365else
6366 echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369eval "$as_ac_Header=no"
6370fi
6371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372fi
6373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376 cat >>confdefs.h <<_ACEOF
6377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378_ACEOF
6379
6380fi
6381
6382done
6383
6384
6385
6386for ac_header in dlfcn.h
6387do
6388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389echo "$as_me:$LINENO: checking for $ac_header" >&5
6390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394 cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
6400$ac_includes_default
6401
6402#include <$ac_header>
6403_ACEOF
6404rm -f conftest.$ac_objext
6405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
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); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 eval "$as_ac_Header=yes"
6427else
6428 echo "$as_me: failed program was:" >&5
6429sed 's/^/| /' conftest.$ac_ext >&5
6430
6431eval "$as_ac_Header=no"
6432fi
6433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434fi
6435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438 cat >>confdefs.h <<_ACEOF
6439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440_ACEOF
6441
6442fi
6443
6444done
6445
6446
6447
6448# This can be used to rebuild libtool when needed
6449LIBTOOL_DEPS="$ltmain"
6450
6451# Always use our own libtool.
6452LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478test -z "$LN_S" && LN_S="ln -s"
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493if test -n "${ZSH_VERSION+set}" ; then
6494 setopt NO_GLOB_SUBST
6495fi
6496
6497echo "$as_me:$LINENO: checking for objdir" >&5
6498echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6499if test "${lt_cv_objdir+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502 rm -f .libs 2>/dev/null
6503mkdir .libs 2>/dev/null
6504if test -d .libs; then
6505 lt_cv_objdir=.libs
6506else
6507 # MS-DOS does not allow filenames that begin with a dot.
6508 lt_cv_objdir=_libs
6509fi
6510rmdir .libs 2>/dev/null
6511fi
6512echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6513echo "${ECHO_T}$lt_cv_objdir" >&6
6514objdir=$lt_cv_objdir
6515
6516
6517
6518
6519
6520cat >>confdefs.h <<_ACEOF
6521#define LT_OBJDIR "$lt_cv_objdir/"
6522_ACEOF
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540case $host_os in
6541aix3*)
6542 # AIX sometimes has problems with the GCC collect2 program. For some
6543 # reason, if we set the COLLECT_NAMES environment variable, the problems
6544 # vanish in a puff of smoke.
6545 if test "X${COLLECT_NAMES+set}" != Xset; then
6546 COLLECT_NAMES=
6547 export COLLECT_NAMES
6548 fi
6549 ;;
6550esac
6551
6552# Sed substitution that helps us do robust quoting. It backslashifies
6553# metacharacters that are still active within double-quoted strings.
6554sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6555
6556# Same as above, but do not quote variable references.
6557double_quote_subst='s/\(["`\\]\)/\\\1/g'
6558
6559# Sed substitution to delay expansion of an escaped shell variable in a
6560# double_quote_subst'ed string.
6561delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6562
6563# Sed substitution to delay expansion of an escaped single quote.
6564delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6565
6566# Sed substitution to avoid accidental globbing in evaled expressions
6567no_glob_subst='s/\*/\\\*/g'
6568
6569# Global variables:
6570ofile=libtool
6571can_build_shared=yes
6572
6573# All known linkers require a `.a' archive for static linking (except MSVC,
6574# which needs '.lib').
6575libext=a
6576
6577with_gnu_ld="$lt_cv_prog_gnu_ld"
6578
6579old_CC="$CC"
6580old_CFLAGS="$CFLAGS"
6581
6582# Set sane defaults for various variables
6583test -z "$CC" && CC=cc
6584test -z "$LTCC" && LTCC=$CC
6585test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6586test -z "$LD" && LD=ld
6587test -z "$ac_objext" && ac_objext=o
6588
6589for cc_temp in $compiler""; do
6590 case $cc_temp in
6591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6593 \-*) ;;
6594 *) break;;
6595 esac
6596done
6597cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6598
6599
6600# Only perform the check for file, if the check method requires it
6601test -z "$MAGIC_CMD" && MAGIC_CMD=file
6602case $deplibs_check_method in
6603file_magic*)
6604 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6605 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6606echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6607if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 case $MAGIC_CMD in
6611[\\/*] | ?:[\\/]*)
6612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6613 ;;
6614*)
6615 lt_save_MAGIC_CMD="$MAGIC_CMD"
6616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6618 for ac_dir in $ac_dummy; do
6619 IFS="$lt_save_ifs"
6620 test -z "$ac_dir" && ac_dir=.
6621 if test -f $ac_dir/${ac_tool_prefix}file; then
6622 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6623 if test -n "$file_magic_test_file"; then
6624 case $deplibs_check_method in
6625 "file_magic "*)
6626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6629 $EGREP "$file_magic_regex" > /dev/null; then
6630 :
6631 else
6632 cat <<_LT_EOF 1>&2
6633
6634*** Warning: the command libtool uses to detect shared libraries,
6635*** $file_magic_cmd, produces output that libtool cannot recognize.
6636*** The result is that libtool may fail to recognize shared libraries
6637*** as such. This will affect the creation of libtool libraries that
6638*** depend on shared libraries, but programs linked with such libtool
6639*** libraries will work regardless of this problem. Nevertheless, you
6640*** may want to report the problem to your system manager and/or to
6641*** bug-libtool@gnu.org
6642
6643_LT_EOF
6644 fi ;;
6645 esac
6646 fi
6647 break
6648 fi
6649 done
6650 IFS="$lt_save_ifs"
6651 MAGIC_CMD="$lt_save_MAGIC_CMD"
6652 ;;
6653esac
6654fi
6655
6656MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6657if test -n "$MAGIC_CMD"; then
6658 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6659echo "${ECHO_T}$MAGIC_CMD" >&6
6660else
6661 echo "$as_me:$LINENO: result: no" >&5
6662echo "${ECHO_T}no" >&6
6663fi
6664
6665
6666
6667
6668
6669if test -z "$lt_cv_path_MAGIC_CMD"; then
6670 if test -n "$ac_tool_prefix"; then
6671 echo "$as_me:$LINENO: checking for file" >&5
6672echo $ECHO_N "checking for file... $ECHO_C" >&6
6673if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676 case $MAGIC_CMD in
6677[\\/*] | ?:[\\/]*)
6678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6679 ;;
6680*)
6681 lt_save_MAGIC_CMD="$MAGIC_CMD"
6682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6684 for ac_dir in $ac_dummy; do
6685 IFS="$lt_save_ifs"
6686 test -z "$ac_dir" && ac_dir=.
6687 if test -f $ac_dir/file; then
6688 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6689 if test -n "$file_magic_test_file"; then
6690 case $deplibs_check_method in
6691 "file_magic "*)
6692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6695 $EGREP "$file_magic_regex" > /dev/null; then
6696 :
6697 else
6698 cat <<_LT_EOF 1>&2
6699
6700*** Warning: the command libtool uses to detect shared libraries,
6701*** $file_magic_cmd, produces output that libtool cannot recognize.
6702*** The result is that libtool may fail to recognize shared libraries
6703*** as such. This will affect the creation of libtool libraries that
6704*** depend on shared libraries, but programs linked with such libtool
6705*** libraries will work regardless of this problem. Nevertheless, you
6706*** may want to report the problem to your system manager and/or to
6707*** bug-libtool@gnu.org
6708
6709_LT_EOF
6710 fi ;;
6711 esac
6712 fi
6713 break
6714 fi
6715 done
6716 IFS="$lt_save_ifs"
6717 MAGIC_CMD="$lt_save_MAGIC_CMD"
6718 ;;
6719esac
6720fi
6721
6722MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6723if test -n "$MAGIC_CMD"; then
6724 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6725echo "${ECHO_T}$MAGIC_CMD" >&6
6726else
6727 echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6
6729fi
6730
6731
6732 else
6733 MAGIC_CMD=:
6734 fi
6735fi
6736
6737 fi
6738 ;;
6739esac
6740
6741# Use C for the default configuration in the libtool script
6742
6743lt_save_CC="$CC"
6744ac_ext=c
6745ac_cpp='$CPP $CPPFLAGS'
6746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749
6750
6751# Source file extension for C test sources.
6752ac_ext=c
6753
6754# Object file extension for compiled C test sources.
6755objext=o
6756objext=$objext
6757
6758# Code to be used in simple compile tests
6759lt_simple_compile_test_code="int some_variable = 0;"
6760
6761# Code to be used in simple link tests
6762lt_simple_link_test_code='int main(){return(0);}'
6763
6764
6765
6766
6767
6768
6769
6770# If no C compiler was specified, use CC.
6771LTCC=${LTCC-"$CC"}
6772
6773# If no C compiler flags were specified, use CFLAGS.
6774LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6775
6776# Allow CC to be a program name with arguments.
6777compiler=$CC
6778
6779# Save the default compiler, since it gets overwritten when the other
6780# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6781compiler_DEFAULT=$CC
6782
6783# save warnings/boilerplate of simple test code
6784ac_outfile=conftest.$ac_objext
6785echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787_lt_compiler_boilerplate=`cat conftest.err`
6788$RM conftest*
6789
6790ac_outfile=conftest.$ac_objext
6791echo "$lt_simple_link_test_code" >conftest.$ac_ext
6792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6793_lt_linker_boilerplate=`cat conftest.err`
6794$RM conftest*
6795
6796
6797## CAVEAT EMPTOR:
6798## There is no encapsulation within the following macros, do not change
6799## the running order or otherwise move them around unless you know exactly
6800## what you are doing...
6801if test -n "$compiler"; then
6802
6803lt_prog_compiler_no_builtin_flag=
6804
6805if test "$GCC" = yes; then
6806 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6807
6808 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6809echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6810if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813 lt_cv_prog_compiler_rtti_exceptions=no
6814 ac_outfile=conftest.$ac_objext
6815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6816 lt_compiler_flag="-fno-rtti -fno-exceptions"
6817 # Insert the option either (1) after the last *FLAGS variable, or
6818 # (2) before a word containing "conftest.", or (3) at the end.
6819 # Note that $ac_compile itself does not contain backslashes and begins
6820 # with a dollar sign (not a hyphen), so the echo should work correctly.
6821 # The option is referenced via a variable to avoid confusing sed.
6822 lt_compile=`echo "$ac_compile" | $SED \
6823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6825 -e 's:$: $lt_compiler_flag:'`
79887925 6826 (eval echo "\"\$as_me:6826: $lt_compile\"" >&5)
d7040cdb
SE
6827 (eval "$lt_compile" 2>conftest.err)
6828 ac_status=$?
6829 cat conftest.err >&5
79887925 6830 echo "$as_me:6830: \$? = $ac_status" >&5
d7040cdb
SE
6831 if (exit $ac_status) && test -s "$ac_outfile"; then
6832 # The compiler can only warn and ignore the option if not recognized
6833 # So say no if there are warnings other than the usual output.
6834 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6837 lt_cv_prog_compiler_rtti_exceptions=yes
6838 fi
6839 fi
6840 $RM conftest*
6841
6842fi
6843echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6844echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6845
6846if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6847 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6848else
6849 :
6850fi
6851
6852fi
6853
6854
6855
6856
6857
6858
6859 lt_prog_compiler_wl=
6860lt_prog_compiler_pic=
6861lt_prog_compiler_static=
6862
6863echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6864echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6865
6866 if test "$GCC" = yes; then
6867 lt_prog_compiler_wl='-Wl,'
6868 lt_prog_compiler_static='-static'
6869
6870 case $host_os in
6871 aix*)
6872 # All AIX code is PIC.
6873 if test "$host_cpu" = ia64; then
6874 # AIX 5 now supports IA64 processor
6875 lt_prog_compiler_static='-Bstatic'
6876 fi
6877 ;;
6878
6879 amigaos*)
6880 if test "$host_cpu" = m68k; then
6881 # FIXME: we need at least 68020 code to build shared libraries, but
6882 # adding the `-m68020' flag to GCC prevents building anything better,
6883 # like `-m68040'.
6884 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6885 fi
6886 ;;
6887
6888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6889 # PIC is the default for these OSes.
6890 ;;
6891
6892 mingw* | cygwin* | pw32* | os2*)
6893 # This hack is so that the source file can tell whether it is being
6894 # built for inclusion in a dll (and should export symbols for example).
6895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6896 # (--disable-auto-import) libraries
6897 lt_prog_compiler_pic='-DDLL_EXPORT'
6898 ;;
6899
6900 darwin* | rhapsody*)
6901 # PIC is the default on this platform
6902 # Common symbols not allowed in MH_DYLIB files
6903 lt_prog_compiler_pic='-fno-common'
6904 ;;
6905
6906 hpux*)
6907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6908 # not for PA HP-UX.
6909 case $host_cpu in
6910 hppa*64*|ia64*)
6911 # +Z the default
6912 ;;
6913 *)
6914 lt_prog_compiler_pic='-fPIC'
6915 ;;
6916 esac
6917 ;;
6918
6919 interix[3-9]*)
6920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6921 # Instead, we relocate shared libraries at runtime.
6922 ;;
6923
6924 msdosdjgpp*)
6925 # Just because we use GCC doesn't mean we suddenly get shared libraries
6926 # on systems that don't support them.
6927 lt_prog_compiler_can_build_shared=no
6928 enable_shared=no
6929 ;;
6930
6931 *nto* | *qnx*)
6932 # QNX uses GNU C++, but need to define -shared option too, otherwise
6933 # it will coredump.
6934 lt_prog_compiler_pic='-fPIC -shared'
6935 ;;
6936
6937 sysv4*MP*)
6938 if test -d /usr/nec; then
6939 lt_prog_compiler_pic=-Kconform_pic
6940 fi
6941 ;;
6942
6943 *)
6944 lt_prog_compiler_pic='-fPIC'
6945 ;;
6946 esac
6947 else
6948 # PORTME Check for flag to pass linker flags through the system compiler.
6949 case $host_os in
6950 aix*)
6951 lt_prog_compiler_wl='-Wl,'
6952 if test "$host_cpu" = ia64; then
6953 # AIX 5 now supports IA64 processor
6954 lt_prog_compiler_static='-Bstatic'
6955 else
6956 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6957 fi
6958 ;;
6959 darwin*)
6960 # PIC is the default on this platform
6961 # Common symbols not allowed in MH_DYLIB files
6962 case $cc_basename in
6963 xlc*)
6964 lt_prog_compiler_pic='-qnocommon'
6965 lt_prog_compiler_wl='-Wl,'
6966 ;;
6967 esac
6968 ;;
6969
6970 mingw* | cygwin* | pw32* | os2*)
6971 # This hack is so that the source file can tell whether it is being
6972 # built for inclusion in a dll (and should export symbols for example).
6973 lt_prog_compiler_pic='-DDLL_EXPORT'
6974 ;;
6975
6976 hpux9* | hpux10* | hpux11*)
6977 lt_prog_compiler_wl='-Wl,'
6978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6979 # not for PA HP-UX.
6980 case $host_cpu in
6981 hppa*64*|ia64*)
6982 # +Z the default
6983 ;;
6984 *)
6985 lt_prog_compiler_pic='+Z'
6986 ;;
6987 esac
6988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6989 lt_prog_compiler_static='${wl}-a ${wl}archive'
6990 ;;
6991
6992 irix5* | irix6* | nonstopux*)
6993 lt_prog_compiler_wl='-Wl,'
6994 # PIC (with -KPIC) is the default.
6995 lt_prog_compiler_static='-non_shared'
6996 ;;
6997
6998 linux* | k*bsd*-gnu)
6999 case $cc_basename in
7000 icc* | ecc*)
7001 lt_prog_compiler_wl='-Wl,'
7002 lt_prog_compiler_pic='-KPIC'
7003 lt_prog_compiler_static='-static'
7004 ;;
7005 pgcc* | pgf77* | pgf90* | pgf95*)
7006 # Portland Group compilers (*not* the Pentium gcc compiler,
7007 # which looks to be a dead project)
7008 lt_prog_compiler_wl='-Wl,'
7009 lt_prog_compiler_pic='-fpic'
7010 lt_prog_compiler_static='-Bstatic'
7011 ;;
7012 ccc*)
7013 lt_prog_compiler_wl='-Wl,'
7014 # All Alpha code is PIC.
7015 lt_prog_compiler_static='-non_shared'
7016 ;;
7017 *)
7018 case `$CC -V 2>&1 | sed 5q` in
7019 *Sun\ C*)
7020 # Sun C 5.9
7021 lt_prog_compiler_pic='-KPIC'
7022 lt_prog_compiler_static='-Bstatic'
7023 lt_prog_compiler_wl='-Wl,'
7024 ;;
7025 *Sun\ F*)
7026 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7027 lt_prog_compiler_pic='-KPIC'
7028 lt_prog_compiler_static='-Bstatic'
7029 lt_prog_compiler_wl=''
7030 ;;
7031 esac
7032 ;;
7033 esac
7034 ;;
7035
7036 newsos6)
7037 lt_prog_compiler_pic='-KPIC'
7038 lt_prog_compiler_static='-Bstatic'
7039 ;;
7040
7041 *nto* | *qnx*)
7042 # QNX uses GNU C++, but need to define -shared option too, otherwise
7043 # it will coredump.
7044 lt_prog_compiler_pic='-fPIC -shared'
7045 ;;
7046
7047 osf3* | osf4* | osf5*)
7048 lt_prog_compiler_wl='-Wl,'
7049 # All OSF/1 code is PIC.
7050 lt_prog_compiler_static='-non_shared'
7051 ;;
7052
7053 rdos*)
7054 lt_prog_compiler_static='-non_shared'
7055 ;;
7056
7057 solaris*)
7058 lt_prog_compiler_pic='-KPIC'
7059 lt_prog_compiler_static='-Bstatic'
7060 case $cc_basename in
7061 f77* | f90* | f95*)
7062 lt_prog_compiler_wl='-Qoption ld ';;
7063 *)
7064 lt_prog_compiler_wl='-Wl,';;
7065 esac
7066 ;;
7067
7068 sunos4*)
7069 lt_prog_compiler_wl='-Qoption ld '
7070 lt_prog_compiler_pic='-PIC'
7071 lt_prog_compiler_static='-Bstatic'
7072 ;;
7073
7074 sysv4 | sysv4.2uw2* | sysv4.3*)
7075 lt_prog_compiler_wl='-Wl,'
7076 lt_prog_compiler_pic='-KPIC'
7077 lt_prog_compiler_static='-Bstatic'
7078 ;;
7079
7080 sysv4*MP*)
7081 if test -d /usr/nec ;then
7082 lt_prog_compiler_pic='-Kconform_pic'
7083 lt_prog_compiler_static='-Bstatic'
7084 fi
7085 ;;
7086
7087 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7088 lt_prog_compiler_wl='-Wl,'
7089 lt_prog_compiler_pic='-KPIC'
7090 lt_prog_compiler_static='-Bstatic'
7091 ;;
7092
7093 unicos*)
7094 lt_prog_compiler_wl='-Wl,'
7095 lt_prog_compiler_can_build_shared=no
7096 ;;
7097
7098 uts4*)
7099 lt_prog_compiler_pic='-pic'
7100 lt_prog_compiler_static='-Bstatic'
7101 ;;
7102
7103 *)
7104 lt_prog_compiler_can_build_shared=no
7105 ;;
7106 esac
7107 fi
7108
7109case $host_os in
7110 # For platforms which do not support PIC, -DPIC is meaningless:
7111 *djgpp*)
7112 lt_prog_compiler_pic=
7113 ;;
7114 *)
7115 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7116 ;;
7117esac
7118echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7119echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7120
7121
7122
7123
7124
7125
7126#
7127# Check to make sure the PIC flag actually works.
7128#
7129if test -n "$lt_prog_compiler_pic"; then
7130 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7131echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7132if test "${lt_prog_compiler_pic_works+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134else
7135 lt_prog_compiler_pic_works=no
7136 ac_outfile=conftest.$ac_objext
7137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7138 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7139 # Insert the option either (1) after the last *FLAGS variable, or
7140 # (2) before a word containing "conftest.", or (3) at the end.
7141 # Note that $ac_compile itself does not contain backslashes and begins
7142 # with a dollar sign (not a hyphen), so the echo should work correctly.
7143 # The option is referenced via a variable to avoid confusing sed.
7144 lt_compile=`echo "$ac_compile" | $SED \
7145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7147 -e 's:$: $lt_compiler_flag:'`
79887925 7148 (eval echo "\"\$as_me:7148: $lt_compile\"" >&5)
d7040cdb
SE
7149 (eval "$lt_compile" 2>conftest.err)
7150 ac_status=$?
7151 cat conftest.err >&5
79887925 7152 echo "$as_me:7152: \$? = $ac_status" >&5
d7040cdb
SE
7153 if (exit $ac_status) && test -s "$ac_outfile"; then
7154 # The compiler can only warn and ignore the option if not recognized
7155 # So say no if there are warnings other than the usual output.
7156 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7159 lt_prog_compiler_pic_works=yes
7160 fi
7161 fi
7162 $RM conftest*
7163
7164fi
7165echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7166echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7167
7168if test x"$lt_prog_compiler_pic_works" = xyes; then
7169 case $lt_prog_compiler_pic in
7170 "" | " "*) ;;
7171 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7172 esac
7173else
7174 lt_prog_compiler_pic=
7175 lt_prog_compiler_can_build_shared=no
7176fi
7177
7178fi
7179
7180
7181
7182
7183
7184
7185#
7186# Check to make sure the static flag actually works.
7187#
7188wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7189echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7190echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7191if test "${lt_prog_compiler_static_works+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 lt_prog_compiler_static_works=no
7195 save_LDFLAGS="$LDFLAGS"
7196 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7197 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7198 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7199 # The linker can only warn and ignore the option if not recognized
7200 # So say no if there are warnings
7201 if test -s conftest.err; then
7202 # Append any errors to the config.log.
7203 cat conftest.err 1>&5
7204 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206 if diff conftest.exp conftest.er2 >/dev/null; then
7207 lt_prog_compiler_static_works=yes
7208 fi
7209 else
7210 lt_prog_compiler_static_works=yes
7211 fi
7212 fi
7213 $RM conftest*
7214 LDFLAGS="$save_LDFLAGS"
7215
7216fi
7217echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7218echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7219
7220if test x"$lt_prog_compiler_static_works" = xyes; then
7221 :
7222else
7223 lt_prog_compiler_static=
7224fi
7225
7226
7227
7228
7229
7230
7231
7232 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7233echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7234if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237 lt_cv_prog_compiler_c_o=no
7238 $RM -r conftest 2>/dev/null
7239 mkdir conftest
7240 cd conftest
7241 mkdir out
7242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7243
7244 lt_compiler_flag="-o out/conftest2.$ac_objext"
7245 # Insert the option either (1) after the last *FLAGS variable, or
7246 # (2) before a word containing "conftest.", or (3) at the end.
7247 # Note that $ac_compile itself does not contain backslashes and begins
7248 # with a dollar sign (not a hyphen), so the echo should work correctly.
7249 lt_compile=`echo "$ac_compile" | $SED \
7250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7252 -e 's:$: $lt_compiler_flag:'`
79887925 7253 (eval echo "\"\$as_me:7253: $lt_compile\"" >&5)
d7040cdb
SE
7254 (eval "$lt_compile" 2>out/conftest.err)
7255 ac_status=$?
7256 cat out/conftest.err >&5
79887925 7257 echo "$as_me:7257: \$? = $ac_status" >&5
d7040cdb
SE
7258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7259 then
7260 # The compiler can only warn and ignore the option if not recognized
7261 # So say no if there are warnings
7262 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7265 lt_cv_prog_compiler_c_o=yes
7266 fi
7267 fi
7268 chmod u+w . 2>&5
7269 $RM conftest*
7270 # SGI C++ compiler will create directory out/ii_files/ for
7271 # template instantiation
7272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7273 $RM out/* && rmdir out
7274 cd ..
7275 $RM -r conftest
7276 $RM conftest*
7277
7278fi
7279echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7280echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7281
7282
7283
7284
7285
7286
7287 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7288echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7289if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291else
7292 lt_cv_prog_compiler_c_o=no
7293 $RM -r conftest 2>/dev/null
7294 mkdir conftest
7295 cd conftest
7296 mkdir out
7297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7298
7299 lt_compiler_flag="-o out/conftest2.$ac_objext"
7300 # Insert the option either (1) after the last *FLAGS variable, or
7301 # (2) before a word containing "conftest.", or (3) at the end.
7302 # Note that $ac_compile itself does not contain backslashes and begins
7303 # with a dollar sign (not a hyphen), so the echo should work correctly.
7304 lt_compile=`echo "$ac_compile" | $SED \
7305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7307 -e 's:$: $lt_compiler_flag:'`
79887925 7308 (eval echo "\"\$as_me:7308: $lt_compile\"" >&5)
d7040cdb
SE
7309 (eval "$lt_compile" 2>out/conftest.err)
7310 ac_status=$?
7311 cat out/conftest.err >&5
79887925 7312 echo "$as_me:7312: \$? = $ac_status" >&5
d7040cdb
SE
7313 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7314 then
7315 # The compiler can only warn and ignore the option if not recognized
7316 # So say no if there are warnings
7317 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7320 lt_cv_prog_compiler_c_o=yes
7321 fi
7322 fi
7323 chmod u+w . 2>&5
7324 $RM conftest*
7325 # SGI C++ compiler will create directory out/ii_files/ for
7326 # template instantiation
7327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7328 $RM out/* && rmdir out
7329 cd ..
7330 $RM -r conftest
7331 $RM conftest*
7332
7333fi
7334echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7335echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7336
7337
7338
7339
7340hard_links="nottested"
7341if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7342 # do not overwrite the value of need_locks provided by the user
7343 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7344echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7345 hard_links=yes
7346 $RM conftest*
7347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7348 touch conftest.a
7349 ln conftest.a conftest.b 2>&5 || hard_links=no
7350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7351 echo "$as_me:$LINENO: result: $hard_links" >&5
7352echo "${ECHO_T}$hard_links" >&6
7353 if test "$hard_links" = no; then
7354 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7355echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7356 need_locks=warn
7357 fi
7358else
7359 need_locks=no
7360fi
7361
7362
7363
7364
7365
7366
7367 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7368echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7369
7370 runpath_var=
7371 allow_undefined_flag=
7372 always_export_symbols=no
7373 archive_cmds=
7374 archive_expsym_cmds=
7375 compiler_needs_object=no
7376 enable_shared_with_static_runtimes=no
7377 export_dynamic_flag_spec=
7378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7379 hardcode_automatic=no
7380 hardcode_direct=no
7381 hardcode_direct_absolute=no
7382 hardcode_libdir_flag_spec=
7383 hardcode_libdir_flag_spec_ld=
7384 hardcode_libdir_separator=
7385 hardcode_minus_L=no
7386 hardcode_shlibpath_var=unsupported
7387 inherit_rpath=no
7388 link_all_deplibs=unknown
7389 module_cmds=
7390 module_expsym_cmds=
7391 old_archive_from_new_cmds=
7392 old_archive_from_expsyms_cmds=
7393 thread_safe_flag_spec=
7394 whole_archive_flag_spec=
7395 # include_expsyms should be a list of space-separated symbols to be *always*
7396 # included in the symbol list
7397 include_expsyms=
7398 # exclude_expsyms can be an extended regexp of symbols to exclude
7399 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7400 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7401 # as well as any symbol that contains `d'.
7402 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7403 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7404 # platforms (ab)use it in PIC code, but their linkers get confused if
7405 # the symbol is explicitly referenced. Since portable code cannot
7406 # rely on this symbol name, it's probably fine to never include it in
7407 # preloaded symbol tables.
7408 extract_expsyms_cmds=
7409
7410 case $host_os in
7411 cygwin* | mingw* | pw32*)
7412 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7413 # When not using gcc, we currently assume that we are using
7414 # Microsoft Visual C++.
7415 if test "$GCC" != yes; then
7416 with_gnu_ld=no
7417 fi
7418 ;;
7419 interix*)
7420 # we just hope/assume this is gcc and not c89 (= MSVC++)
7421 with_gnu_ld=yes
7422 ;;
7423 openbsd*)
7424 with_gnu_ld=no
7425 ;;
7426 esac
7427
7428 ld_shlibs=yes
7429 if test "$with_gnu_ld" = yes; then
7430 # If archive_cmds runs LD, not CC, wlarc should be empty
7431 wlarc='${wl}'
7432
7433 # Set some defaults for GNU ld with shared library support. These
7434 # are reset later if shared libraries are not supported. Putting them
7435 # here allows them to be overridden if necessary.
7436 runpath_var=LD_RUN_PATH
7437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438 export_dynamic_flag_spec='${wl}--export-dynamic'
7439 # ancient GNU ld didn't support --whole-archive et. al.
7440 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7441 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7442 else
7443 whole_archive_flag_spec=
7444 fi
7445 supports_anon_versioning=no
7446 case `$LD -v 2>&1` in
7447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7450 *\ 2.11.*) ;; # other 2.11 versions
7451 *) supports_anon_versioning=yes ;;
7452 esac
7453
7454 # See if GNU ld supports shared libraries.
7455 case $host_os in
7456 aix3* | aix4* | aix5*)
7457 # On AIX/PPC, the GNU linker is very broken
7458 if test "$host_cpu" != ia64; then
7459 ld_shlibs=no
7460 cat <<_LT_EOF 1>&2
7461
7462*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7463*** to be unable to reliably create shared libraries on AIX.
7464*** Therefore, libtool is disabling shared libraries support. If you
7465*** really care for shared libraries, you may want to modify your PATH
7466*** so that a non-GNU linker is found, and then restart.
7467
7468_LT_EOF
7469 fi
7470 ;;
7471
7472 amigaos*)
7473 if test "$host_cpu" = m68k; then
7474 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)'
7475 hardcode_libdir_flag_spec='-L$libdir'
7476 hardcode_minus_L=yes
7477 fi
7478
7479 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7480 # that the semantics of dynamic libraries on AmigaOS, at least up
7481 # to version 4, is to share data among multiple programs linked
7482 # with the same dynamic library. Since this doesn't match the
7483 # behavior of shared libraries on other platforms, we can't use
7484 # them.
7485 ld_shlibs=no
7486 ;;
7487
7488 beos*)
7489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7490 allow_undefined_flag=unsupported
7491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7492 # support --undefined. This deserves some investigation. FIXME
7493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494 else
7495 ld_shlibs=no
7496 fi
7497 ;;
7498
7499 cygwin* | mingw* | pw32*)
7500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7501 # as there is no search path for DLLs.
7502 hardcode_libdir_flag_spec='-L$libdir'
7503 allow_undefined_flag=unsupported
7504 always_export_symbols=no
7505 enable_shared_with_static_runtimes=yes
7506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7507
7508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7510 # If the export-symbols file already is a .def file (1st line
7511 # is EXPORTS), use it as is; otherwise, prepend...
7512 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7513 cp $export_symbols $output_objdir/$soname.def;
7514 else
7515 echo EXPORTS > $output_objdir/$soname.def;
7516 cat $export_symbols >> $output_objdir/$soname.def;
7517 fi~
7518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7519 else
7520 ld_shlibs=no
7521 fi
7522 ;;
7523
7524 interix[3-9]*)
7525 hardcode_direct=no
7526 hardcode_shlibpath_var=no
7527 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7528 export_dynamic_flag_spec='${wl}-E'
7529 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7530 # Instead, shared libraries are loaded at an image base (0x10000000 by
7531 # default) and relocated if they conflict, which is a slow very memory
7532 # consuming and fragmenting process. To avoid this, we pick a random,
7533 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7534 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7535 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7536 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'
7537 ;;
7538
7539 gnu* | linux* | tpf* | k*bsd*-gnu)
7540 tmp_diet=no
7541 if test "$host_os" = linux-dietlibc; then
7542 case $cc_basename in
7543 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7544 esac
7545 fi
7546 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7547 && test "$tmp_diet" = no
7548 then
7549 tmp_addflag=
7550 case $cc_basename,$host_cpu in
7551 pgcc*) # Portland Group C compiler
7552 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'
7553 tmp_addflag=' $pic_flag'
7554 ;;
7555 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7556 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'
7557 tmp_addflag=' $pic_flag -Mnomain' ;;
7558 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7559 tmp_addflag=' -i_dynamic' ;;
7560 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7561 tmp_addflag=' -i_dynamic -nofor_main' ;;
7562 ifc* | ifort*) # Intel Fortran compiler
7563 tmp_addflag=' -nofor_main' ;;
7564 esac
7565 case `$CC -V 2>&1 | sed 5q` in
7566 *Sun\ C*) # Sun C 5.9
7567 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'
7568 compiler_needs_object=yes
7569 tmp_sharedflag='-G' ;;
7570 *Sun\ F*) # Sun Fortran 8.3
7571 tmp_sharedflag='-G' ;;
7572 *)
7573 tmp_sharedflag='-shared' ;;
7574 esac
7575 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7576
7577 if test "x$supports_anon_versioning" = xyes; then
7578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7580 echo "local: *; };" >> $output_objdir/$libname.ver~
7581 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7582 fi
7583 else
7584 ld_shlibs=no
7585 fi
7586 ;;
7587
7588 netbsd*)
7589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7591 wlarc=
7592 else
7593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7595 fi
7596 ;;
7597
7598 solaris*)
7599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7600 ld_shlibs=no
7601 cat <<_LT_EOF 1>&2
7602
7603*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7604*** create shared libraries on Solaris systems. Therefore, libtool
7605*** is disabling shared libraries support. We urge you to upgrade GNU
7606*** binutils to release 2.9.1 or newer. Another option is to modify
7607*** your PATH or compiler configuration so that the native linker is
7608*** used, and then restart.
7609
7610_LT_EOF
7611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7614 else
7615 ld_shlibs=no
7616 fi
7617 ;;
7618
7619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7620 case `$LD -v 2>&1` in
7621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7622 ld_shlibs=no
7623 cat <<_LT_EOF 1>&2
7624
7625*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7626*** reliably create shared libraries on SCO systems. Therefore, libtool
7627*** is disabling shared libraries support. We urge you to upgrade GNU
7628*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7629*** your PATH or compiler configuration so that the native linker is
7630*** used, and then restart.
7631
7632_LT_EOF
7633 ;;
7634 *)
7635 # For security reasons, it is highly recommended that you always
7636 # use absolute paths for naming shared libraries, and exclude the
7637 # DT_RUNPATH tag from executables and libraries. But doing so
7638 # requires that you compile everything twice, which is a pain.
7639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7643 else
7644 ld_shlibs=no
7645 fi
7646 ;;
7647 esac
7648 ;;
7649
7650 sunos4*)
7651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7652 wlarc=
7653 hardcode_direct=yes
7654 hardcode_shlibpath_var=no
7655 ;;
7656
7657 *)
7658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 else
7662 ld_shlibs=no
7663 fi
7664 ;;
7665 esac
7666
7667 if test "$ld_shlibs" = no; then
7668 runpath_var=
7669 hardcode_libdir_flag_spec=
7670 export_dynamic_flag_spec=
7671 whole_archive_flag_spec=
7672 fi
7673 else
7674 # PORTME fill in a description of your system's linker (not GNU ld)
7675 case $host_os in
7676 aix3*)
7677 allow_undefined_flag=unsupported
7678 always_export_symbols=yes
7679 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'
7680 # Note: this linker hardcodes the directories in LIBPATH if there
7681 # are no directories specified by -L.
7682 hardcode_minus_L=yes
7683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7684 # Neither direct hardcoding nor static linking is supported with a
7685 # broken collect2.
7686 hardcode_direct=unsupported
7687 fi
7688 ;;
7689
7690 aix4* | aix5*)
7691 if test "$host_cpu" = ia64; then
7692 # On IA64, the linker does run time linking by default, so we don't
7693 # have to do anything special.
7694 aix_use_runtimelinking=no
7695 exp_sym_flag='-Bexport'
7696 no_entry_flag=""
7697 else
7698 # If we're using GNU nm, then we don't want the "-C" option.
7699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7701 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'
7702 else
7703 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'
7704 fi
7705 aix_use_runtimelinking=no
7706
7707 # Test if we are trying to use run time linking or normal
7708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7709 # need to do runtime linking.
7710 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7711 for ld_flag in $LDFLAGS; do
7712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7713 aix_use_runtimelinking=yes
7714 break
7715 fi
7716 done
7717 ;;
7718 esac
7719
7720 exp_sym_flag='-bexport'
7721 no_entry_flag='-bnoentry'
7722 fi
7723
7724 # When large executables or shared objects are built, AIX ld can
7725 # have problems creating the table of contents. If linking a library
7726 # or program results in "error TOC overflow" add -mminimal-toc to
7727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7729
7730 archive_cmds=''
7731 hardcode_direct=yes
7732 hardcode_direct_absolute=yes
7733 hardcode_libdir_separator=':'
7734 link_all_deplibs=yes
7735 file_list_spec='${wl}-f,'
7736
7737 if test "$GCC" = yes; then
7738 case $host_os in aix4.[012]|aix4.[012].*)
7739 # We only want to do this on AIX 4.2 and lower, the check
7740 # below for broken collect2 doesn't work under 4.3+
7741 collect2name=`${CC} -print-prog-name=collect2`
7742 if test -f "$collect2name" &&
7743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7744 then
7745 # We have reworked collect2
7746 :
7747 else
7748 # We have old collect2
7749 hardcode_direct=unsupported
7750 # It fails to find uninstalled libraries when the uninstalled
7751 # path is not listed in the libpath. Setting hardcode_minus_L
7752 # to unsupported forces relinking
7753 hardcode_minus_L=yes
7754 hardcode_libdir_flag_spec='-L$libdir'
7755 hardcode_libdir_separator=
7756 fi
7757 ;;
7758 esac
7759 shared_flag='-shared'
7760 if test "$aix_use_runtimelinking" = yes; then
7761 shared_flag="$shared_flag "'${wl}-G'
7762 fi
7763 else
7764 # not using gcc
7765 if test "$host_cpu" = ia64; then
7766 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7767 # chokes on -Wl,-G. The following line is correct:
7768 shared_flag='-G'
7769 else
7770 if test "$aix_use_runtimelinking" = yes; then
7771 shared_flag='${wl}-G'
7772 else
7773 shared_flag='${wl}-bM:SRE'
7774 fi
7775 fi
7776 fi
7777
7778 # It seems that -bexpall does not export symbols beginning with
7779 # underscore (_), so it is better to generate a list of symbols to export.
7780 always_export_symbols=yes
7781 if test "$aix_use_runtimelinking" = yes; then
7782 # Warning - without using the other runtime loading flags (-brtl),
7783 # -berok will link without error, but may produce a broken library.
7784 allow_undefined_flag='-berok'
7785 # Determine the default libpath from the value encoded in an
7786 # empty executable.
7787 cat >conftest.$ac_ext <<_ACEOF
7788/* confdefs.h. */
7789_ACEOF
7790cat confdefs.h >>conftest.$ac_ext
7791cat >>conftest.$ac_ext <<_ACEOF
7792/* end confdefs.h. */
7793
7794int
7795main ()
7796{
7797
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802rm -f conftest.$ac_objext conftest$ac_exeext
7803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804 (eval $ac_link) 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_c_werror_flag"
7812 || test ! -s conftest.err'
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); }; } &&
7818 { ac_try='test -s conftest$ac_exeext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 (eval $ac_try) 2>&5
7821 ac_status=$?
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824
7825lt_aix_libpath_sed='
7826 /Import File Strings/,/^$/ {
7827 /^0/ {
7828 s/^0 *\(.*\)$/\1/
7829 p
7830 }
7831 }'
7832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7833# Check for a 64-bit object if we didn't find anything.
7834if test -z "$aix_libpath"; then
7835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7836fi
7837else
7838 echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
7841fi
7842rm -f conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7845
7846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7847 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"
7848 else
7849 if test "$host_cpu" = ia64; then
7850 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7851 allow_undefined_flag="-z nodefs"
7852 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"
7853 else
7854 # Determine the default libpath from the value encoded in an
7855 # empty executable.
7856 cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862
7863int
7864main ()
7865{
7866
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext conftest$ac_exeext
7872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag"
7881 || test ! -s conftest.err'
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); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893
7894lt_aix_libpath_sed='
7895 /Import File Strings/,/^$/ {
7896 /^0/ {
7897 s/^0 *\(.*\)$/\1/
7898 p
7899 }
7900 }'
7901aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7902# Check for a 64-bit object if we didn't find anything.
7903if test -z "$aix_libpath"; then
7904 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7905fi
7906else
7907 echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910fi
7911rm -f conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7914
7915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7916 # Warning - without using the other run time loading flags,
7917 # -berok will link without error, but may produce a broken library.
7918 no_undefined_flag=' ${wl}-bernotok'
7919 allow_undefined_flag=' ${wl}-berok'
7920 # Exported symbols can be pulled into shared objects from archives
7921 whole_archive_flag_spec='$convenience'
7922 archive_cmds_need_lc=yes
7923 # This is similar to how AIX traditionally builds its shared libraries.
7924 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'
7925 fi
7926 fi
7927 ;;
7928
7929 amigaos*)
7930 if test "$host_cpu" = m68k; then
7931 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)'
7932 hardcode_libdir_flag_spec='-L$libdir'
7933 hardcode_minus_L=yes
7934 fi
7935 # see comment about different semantics on the GNU ld section
7936 ld_shlibs=no
7937 ;;
7938
7939 bsdi[45]*)
7940 export_dynamic_flag_spec=-rdynamic
7941 ;;
7942
7943 cygwin* | mingw* | pw32*)
7944 # When not using gcc, we currently assume that we are using
7945 # Microsoft Visual C++.
7946 # hardcode_libdir_flag_spec is actually meaningless, as there is
7947 # no search path for DLLs.
7948 hardcode_libdir_flag_spec=' '
7949 allow_undefined_flag=unsupported
7950 # Tell ltmain to make .lib files, not .a files.
7951 libext=lib
7952 # Tell ltmain to make .dll files, not .so files.
7953 shrext_cmds=".dll"
7954 # FIXME: Setting linknames here is a bad hack.
7955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7956 # The linker will automatically build a .lib file if we build a DLL.
7957 old_archive_from_new_cmds='true'
7958 # FIXME: Should let the user specify the lib program.
7959 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7960 fix_srcfile_path='`cygpath -w "$srcfile"`'
7961 enable_shared_with_static_runtimes=yes
7962 ;;
7963
7964 darwin* | rhapsody*)
7965 case $host_os in
7966 rhapsody* | darwin1.[012])
7967 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7968 ;;
7969 *) # Darwin 1.3 on
7970 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7971 10.[012])
7972 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7973 ;;
7974 10.*)
7975 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7976 ;;
7977 esac
7978 ;;
7979 esac
7980 archive_cmds_need_lc=no
7981 hardcode_direct=no
7982 hardcode_automatic=yes
7983 hardcode_shlibpath_var=unsupported
7984 whole_archive_flag_spec=''
7985 link_all_deplibs=yes
7986 if test "$GCC" = yes ; then
7987 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989else
7990 lt_cv_apple_cc_single_mod=no
7991 if test -z "${LT_MULTI_MODULE}"; then
7992 # By default we will add the -single_module flag. You can override
7993 # by either setting the environment variable LT_MULTI_MODULE
7994 # non-empty at configure time, or by adding -multi-module to the
7995 # link flags.
7996 echo "int foo(void){return 1;}" > conftest.c
7997 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7998 -dynamiclib ${wl}-single_module conftest.c
7999 if test -f libconftest.dylib; then
8000 lt_cv_apple_cc_single_mod=yes
8001 rm libconftest.dylib
8002 fi
8003 rm conftest.$ac_ext
8004 fi
8005fi
8006
8007 output_verbose_link_cmd=echo
8008 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8009 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8010 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}'
8011 else
8012 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8013 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}'
8014 fi
8015 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8016 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}'
8017 else
8018 case $cc_basename in
8019 xlc*)
8020 output_verbose_link_cmd=echo
8021 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8022 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024 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}'
8025 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}'
8026 ;;
8027 *)
8028 ld_shlibs=no
8029 ;;
8030 esac
8031 fi
8032 ;;
8033
8034 dgux*)
8035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_shlibpath_var=no
8038 ;;
8039
8040 freebsd1*)
8041 ld_shlibs=no
8042 ;;
8043
8044 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8045 # support. Future versions do this automatically, but an explicit c++rt0.o
8046 # does not break anything, and helps significantly (at the cost of a little
8047 # extra space).
8048 freebsd2.2*)
8049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8050 hardcode_libdir_flag_spec='-R$libdir'
8051 hardcode_direct=yes
8052 hardcode_shlibpath_var=no
8053 ;;
8054
8055 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8056 freebsd2*)
8057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8058 hardcode_direct=yes
8059 hardcode_minus_L=yes
8060 hardcode_shlibpath_var=no
8061 ;;
8062
8063 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8064 freebsd* | dragonfly*)
8065 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8066 hardcode_libdir_flag_spec='-R$libdir'
8067 hardcode_direct=yes
8068 hardcode_shlibpath_var=no
8069 ;;
8070
8071 hpux9*)
8072 if test "$GCC" = yes; then
8073 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'
8074 else
8075 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'
8076 fi
8077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8078 hardcode_libdir_separator=:
8079 hardcode_direct=yes
8080
8081 # hardcode_minus_L: Not really in the search PATH,
8082 # but as the default location of the library.
8083 hardcode_minus_L=yes
8084 export_dynamic_flag_spec='${wl}-E'
8085 ;;
8086
8087 hpux10*)
8088 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8089 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8090 else
8091 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8092 fi
8093 if test "$with_gnu_ld" = no; then
8094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8095 hardcode_libdir_flag_spec_ld='+b $libdir'
8096 hardcode_libdir_separator=:
8097 hardcode_direct=yes
8098 hardcode_direct_absolute=yes
8099 export_dynamic_flag_spec='${wl}-E'
8100 # hardcode_minus_L: Not really in the search PATH,
8101 # but as the default location of the library.
8102 hardcode_minus_L=yes
8103 fi
8104 ;;
8105
8106 hpux11*)
8107 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8108 case $host_cpu in
8109 hppa*64*)
8110 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8111 ;;
8112 ia64*)
8113 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8114 ;;
8115 *)
8116 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8117 ;;
8118 esac
8119 else
8120 case $host_cpu in
8121 hppa*64*)
8122 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8123 ;;
8124 ia64*)
8125 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8126 ;;
8127 *)
8128 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129 ;;
8130 esac
8131 fi
8132 if test "$with_gnu_ld" = no; then
8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134 hardcode_libdir_separator=:
8135
8136 case $host_cpu in
8137 hppa*64*|ia64*)
8138 hardcode_direct=no
8139 hardcode_shlibpath_var=no
8140 ;;
8141 *)
8142 hardcode_direct=yes
8143 hardcode_direct_absolute=yes
8144 export_dynamic_flag_spec='${wl}-E'
8145
8146 # hardcode_minus_L: Not really in the search PATH,
8147 # but as the default location of the library.
8148 hardcode_minus_L=yes
8149 ;;
8150 esac
8151 fi
8152 ;;
8153
8154 irix5* | irix6* | nonstopux*)
8155 if test "$GCC" = yes; then
8156 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'
8157 # Try to use the -exported_symbol ld option, if it does not
8158 # work, assume that -exports_file does not work either and
8159 # implicitly export all symbols.
8160 save_LDFLAGS="$LDFLAGS"
8161 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8162 cat >conftest.$ac_ext <<_ACEOF
8163int foo(void) {}
8164_ACEOF
8165rm -f conftest.$ac_objext conftest$ac_exeext
8166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag"
8175 || test ! -s conftest.err'
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); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 (eval $ac_try) 2>&5
8184 ac_status=$?
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8187 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'
8188
8189else
8190 echo "$as_me: failed program was:" >&5
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193fi
8194rm -f conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 LDFLAGS="$save_LDFLAGS"
8197 else
8198 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'
8199 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'
8200 fi
8201 archive_cmds_need_lc='no'
8202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8203 hardcode_libdir_separator=:
8204 inherit_rpath=yes
8205 link_all_deplibs=yes
8206 ;;
8207
8208 netbsd*)
8209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8211 else
8212 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8213 fi
8214 hardcode_libdir_flag_spec='-R$libdir'
8215 hardcode_direct=yes
8216 hardcode_shlibpath_var=no
8217 ;;
8218
8219 newsos6)
8220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8221 hardcode_direct=yes
8222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8223 hardcode_libdir_separator=:
8224 hardcode_shlibpath_var=no
8225 ;;
8226
8227 *nto* | *qnx*)
8228 ;;
8229
8230 openbsd*)
8231 hardcode_direct=yes
8232 hardcode_shlibpath_var=no
8233 hardcode_direct_absolute=yes
8234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8236 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238 export_dynamic_flag_spec='${wl}-E'
8239 else
8240 case $host_os in
8241 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243 hardcode_libdir_flag_spec='-R$libdir'
8244 ;;
8245 *)
8246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8248 ;;
8249 esac
8250 fi
8251 ;;
8252
8253 os2*)
8254 hardcode_libdir_flag_spec='-L$libdir'
8255 hardcode_minus_L=yes
8256 allow_undefined_flag=unsupported
8257 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'
8258 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8259 ;;
8260
8261 osf3*)
8262 if test "$GCC" = yes; then
8263 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8264 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'
8265 else
8266 allow_undefined_flag=' -expect_unresolved \*'
8267 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'
8268 fi
8269 archive_cmds_need_lc='no'
8270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8271 hardcode_libdir_separator=:
8272 ;;
8273
8274 osf4* | osf5*) # as osf3* with the addition of -msym flag
8275 if test "$GCC" = yes; then
8276 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8277 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'
8278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8279 else
8280 allow_undefined_flag=' -expect_unresolved \*'
8281 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'
8282 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~
8283 $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'
8284
8285 # Both c and cxx compiler support -rpath directly
8286 hardcode_libdir_flag_spec='-rpath $libdir'
8287 fi
8288 archive_cmds_need_lc='no'
8289 hardcode_libdir_separator=:
8290 ;;
8291
8292 solaris*)
8293 no_undefined_flag=' -z defs'
8294 if test "$GCC" = yes; then
8295 wlarc='${wl}'
8296 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8297 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8298 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8299 else
8300 case `$CC -V 2>&1` in
8301 *"Compilers 5.0"*)
8302 wlarc=''
8303 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8305 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8306 ;;
8307 *)
8308 wlarc='${wl}'
8309 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8311 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8312 ;;
8313 esac
8314 fi
8315 hardcode_libdir_flag_spec='-R$libdir'
8316 hardcode_shlibpath_var=no
8317 case $host_os in
8318 solaris2.[0-5] | solaris2.[0-5].*) ;;
8319 *)
8320 # The compiler driver will combine and reorder linker options,
8321 # but understands `-z linker_flag'. GCC discards it without `$wl',
8322 # but is careful enough not to reorder.
8323 # Supported since Solaris 2.6 (maybe 2.5.1?)
8324 if test "$GCC" = yes; then
8325 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8326 else
8327 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8328 fi
8329 ;;
8330 esac
8331 link_all_deplibs=yes
8332 ;;
8333
8334 sunos4*)
8335 if test "x$host_vendor" = xsequent; then
8336 # Use $CC to link under sequent, because it throws in some extra .o
8337 # files that make .init and .fini sections work.
8338 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8339 else
8340 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8341 fi
8342 hardcode_libdir_flag_spec='-L$libdir'
8343 hardcode_direct=yes
8344 hardcode_minus_L=yes
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 sysv4)
8349 case $host_vendor in
8350 sni)
8351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352 hardcode_direct=yes # is this really true???
8353 ;;
8354 siemens)
8355 ## LD is ld it makes a PLAMLIB
8356 ## CC just makes a GrossModule.
8357 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8358 reload_cmds='$CC -r -o $output$reload_objs'
8359 hardcode_direct=no
8360 ;;
8361 motorola)
8362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8364 ;;
8365 esac
8366 runpath_var='LD_RUN_PATH'
8367 hardcode_shlibpath_var=no
8368 ;;
8369
8370 sysv4.3*)
8371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372 hardcode_shlibpath_var=no
8373 export_dynamic_flag_spec='-Bexport'
8374 ;;
8375
8376 sysv4*MP*)
8377 if test -d /usr/nec; then
8378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379 hardcode_shlibpath_var=no
8380 runpath_var=LD_RUN_PATH
8381 hardcode_runpath_var=yes
8382 ld_shlibs=yes
8383 fi
8384 ;;
8385
8386 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8387 no_undefined_flag='${wl}-z,text'
8388 archive_cmds_need_lc=no
8389 hardcode_shlibpath_var=no
8390 runpath_var='LD_RUN_PATH'
8391
8392 if test "$GCC" = yes; then
8393 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8395 else
8396 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8398 fi
8399 ;;
8400
8401 sysv5* | sco3.2v5* | sco5v6*)
8402 # Note: We can NOT use -z defs as we might desire, because we do not
8403 # link with -lc, and that would cause any symbols used from libc to
8404 # always be unresolved, which means just about no library would
8405 # ever link correctly. If we're not using GNU ld we use -z text
8406 # though, which does catch some bad symbols but isn't as heavy-handed
8407 # as -z defs.
8408 no_undefined_flag='${wl}-z,text'
8409 allow_undefined_flag='${wl}-z,nodefs'
8410 archive_cmds_need_lc=no
8411 hardcode_shlibpath_var=no
8412 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8413 hardcode_libdir_separator=':'
8414 link_all_deplibs=yes
8415 export_dynamic_flag_spec='${wl}-Bexport'
8416 runpath_var='LD_RUN_PATH'
8417
8418 if test "$GCC" = yes; then
8419 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8421 else
8422 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 fi
8425 ;;
8426
8427 uts4*)
8428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8429 hardcode_libdir_flag_spec='-L$libdir'
8430 hardcode_shlibpath_var=no
8431 ;;
8432
8433 *)
8434 ld_shlibs=no
8435 ;;
8436 esac
8437
8438 if test x$host_vendor = xsni; then
8439 case $host in
8440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8441 export_dynamic_flag_spec='${wl}-Blargedynsym'
8442 ;;
8443 esac
8444 fi
8445 fi
8446
8447echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8448echo "${ECHO_T}$ld_shlibs" >&6
8449test "$ld_shlibs" = no && can_build_shared=no
8450
8451with_gnu_ld=$with_gnu_ld
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467#
8468# Do we need to explicitly link libc?
8469#
8470case "x$archive_cmds_need_lc" in
8471x|xyes)
8472 # Assume -lc should be added
8473 archive_cmds_need_lc=yes
8474
8475 if test "$enable_shared" = yes && test "$GCC" = yes; then
8476 case $archive_cmds in
8477 *'~'*)
8478 # FIXME: we may have to deal with multi-command sequences.
8479 ;;
8480 '$CC '*)
8481 # Test whether the compiler implicitly links with -lc since on some
8482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8483 # to ld, don't add -lc before -lgcc.
8484 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8485echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8486 $RM conftest*
8487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } 2>conftest.err; then
8494 soname=conftest
8495 lib=conftest
8496 libobjs=conftest.$ac_objext
8497 deplibs=
8498 wl=$lt_prog_compiler_wl
8499 pic_flag=$lt_prog_compiler_pic
8500 compiler_flags=-v
8501 linker_flags=-v
8502 verstring=
8503 output_objdir=.
8504 libname=conftest
8505 lt_save_allow_undefined_flag=$allow_undefined_flag
8506 allow_undefined_flag=
8507 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8508 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }
8512 then
8513 archive_cmds_need_lc=no
8514 else
8515 archive_cmds_need_lc=yes
8516 fi
8517 allow_undefined_flag=$lt_save_allow_undefined_flag
8518 else
8519 cat conftest.err 1>&5
8520 fi
8521 $RM conftest*
8522 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8523echo "${ECHO_T}$archive_cmds_need_lc" >&6
8524 ;;
8525 esac
8526 fi
8527 ;;
8528esac
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
8681
8682
8683
8684
8685
8686 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8687echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8688withGCC=$GCC
8689if test "$withGCC" = yes; then
8690 case $host_os in
8691 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8692 *) lt_awk_arg="/^libraries:/" ;;
8693 esac
8694 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8695 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8696 # if the path contains ";" then we assume it to be the separator
8697 # otherwise default to the standard path separator (i.e. ":") - it is
8698 # assumed that no part of a normal pathname contains ";" but that should
8699 # okay in the real world where ";" in dirpaths is itself problematic.
8700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8701 else
8702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8703 fi
8704 # Ok, now we have the path, separated by spaces, we can step through it
8705 # and add multilib dir if necessary.
8706 lt_tmp_lt_search_path_spec=
8707 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8708 for lt_sys_path in $lt_search_path_spec; do
8709 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8711 else
8712 test -d "$lt_sys_path" && \
8713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8714 fi
8715 done
8716 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8717BEGIN {RS=" "; FS="/|\n";} {
8718 lt_foo="";
8719 lt_count=0;
8720 for (lt_i = NF; lt_i > 0; lt_i--) {
8721 if ($lt_i != "" && $lt_i != ".") {
8722 if ($lt_i == "..") {
8723 lt_count++;
8724 } else {
8725 if (lt_count == 0) {
8726 lt_foo="/" $lt_i lt_foo;
8727 } else {
8728 lt_count--;
8729 }
8730 }
8731 }
8732 }
8733 if (lt_foo != "") { lt_freq[lt_foo]++; }
8734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8735}'`
8736 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8737else
8738 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8739fi
8740library_names_spec=
8741libname_spec='lib$name'
8742soname_spec=
8743shrext_cmds=".so"
8744postinstall_cmds=
8745postuninstall_cmds=
8746finish_cmds=
8747finish_eval=
8748shlibpath_var=
8749shlibpath_overrides_runpath=unknown
8750version_type=none
8751dynamic_linker="$host_os ld.so"
8752sys_lib_dlsearch_path_spec="/lib /usr/lib"
8753need_lib_prefix=unknown
8754hardcode_into_libs=no
8755
8756# when you set need_version to no, make sure it does not cause -set_version
8757# flags to be left without arguments
8758need_version=unknown
8759
8760case $host_os in
8761aix3*)
8762 version_type=linux
8763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8764 shlibpath_var=LIBPATH
8765
8766 # AIX 3 has no versioning support, so we append a major version to the name.
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 ;;
8769
8770aix4* | aix5*)
8771 version_type=linux
8772 need_lib_prefix=no
8773 need_version=no
8774 hardcode_into_libs=yes
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 supports IA64
8777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8778 shlibpath_var=LD_LIBRARY_PATH
8779 else
8780 # With GCC up to 2.95.x, collect2 would create an import file
8781 # for dependence libraries. The import file would start with
8782 # the line `#! .'. This would cause the generated library to
8783 # depend on `.', always an invalid library. This was fixed in
8784 # development snapshots of GCC prior to 3.0.
8785 case $host_os in
8786 aix4 | aix4.[01] | aix4.[01].*)
8787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8788 echo ' yes '
8789 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8790 :
8791 else
8792 can_build_shared=no
8793 fi
8794 ;;
8795 esac
8796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8797 # soname into executable. Probably we can add versioning support to
8798 # collect2, so additional links can be useful in future.
8799 if test "$aix_use_runtimelinking" = yes; then
8800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8801 # instead of lib<name>.a to let people know that these are not
8802 # typical AIX shared libraries.
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 else
8805 # We preserve .a as extension for shared libraries through AIX4.2
8806 # and later when we are not doing run time linking.
8807 library_names_spec='${libname}${release}.a $libname.a'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 fi
8810 shlibpath_var=LIBPATH
8811 fi
8812 ;;
8813
8814amigaos*)
8815 if test "$host_cpu" = m68k; then
8816 library_names_spec='$libname.ixlibrary $libname.a'
8817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8818 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'
8819 else
8820 dynamic_linker=no
8821 fi
8822 ;;
8823
8824beos*)
8825 library_names_spec='${libname}${shared_ext}'
8826 dynamic_linker="$host_os ld.so"
8827 shlibpath_var=LIBRARY_PATH
8828 ;;
8829
8830bsdi[45]*)
8831 version_type=linux
8832 need_version=no
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8836 shlibpath_var=LD_LIBRARY_PATH
8837 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8838 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8839 # the default ld.so.conf also contains /usr/contrib/lib and
8840 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8841 # libtool to hard-code these into programs
8842 ;;
8843
8844cygwin* | mingw* | pw32*)
8845 version_type=windows
8846 shrext_cmds=".dll"
8847 need_version=no
8848 need_lib_prefix=no
8849
8850 case $withGCC,$host_os in
8851 yes,cygwin* | yes,mingw* | yes,pw32*)
8852 library_names_spec='$libname.dll.a'
8853 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8854 postinstall_cmds='base_file=`basename \${file}`~
8855 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8856 dldir=$destdir/`dirname \$dlpath`~
8857 test -d \$dldir || mkdir -p \$dldir~
8858 $install_prog $dir/$dlname \$dldir/$dlname~
8859 chmod a+x \$dldir/$dlname~
8860 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8861 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8862 fi'
8863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8864 dlpath=$dir/\$dldll~
8865 $RM \$dlpath'
8866 shlibpath_overrides_runpath=yes
8867
8868 case $host_os in
8869 cygwin*)
8870 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8871 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8872 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8873 ;;
8874 mingw*)
8875 # MinGW DLLs use traditional 'lib' prefix
8876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8877 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8878 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8879 # It is most probably a Windows format PATH printed by
8880 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8881 # path with ; separators, and with drive letters. We can handle the
8882 # drive letters (cygwin fileutils understands them), so leave them,
8883 # especially as we might pass files found there to a mingw objdump,
8884 # which wouldn't understand a cygwinified path. Ahh.
8885 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8886 else
8887 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8888 fi
8889 ;;
8890 pw32*)
8891 # pw32 DLLs use 'pw' prefix rather than 'lib'
8892 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8893 ;;
8894 esac
8895 ;;
8896
8897 *)
8898 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8899 ;;
8900 esac
8901 dynamic_linker='Win32 ld.exe'
8902 # FIXME: first we should search . and the directory the executable is in
8903 shlibpath_var=PATH
8904 ;;
8905
8906darwin* | rhapsody*)
8907 dynamic_linker="$host_os dyld"
8908 version_type=darwin
8909 need_lib_prefix=no
8910 need_version=no
8911 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8912 soname_spec='${libname}${release}${major}$shared_ext'
8913 shlibpath_overrides_runpath=yes
8914 shlibpath_var=DYLD_LIBRARY_PATH
8915 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8916
8917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8919 ;;
8920
8921dgux*)
8922 version_type=linux
8923 need_lib_prefix=no
8924 need_version=no
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 shlibpath_var=LD_LIBRARY_PATH
8928 ;;
8929
8930freebsd1*)
8931 dynamic_linker=no
8932 ;;
8933
8934freebsd* | dragonfly*)
8935 # DragonFly does not have aout. When/if they implement a new
8936 # versioning mechanism, adjust this.
8937 if test -x /usr/bin/objformat; then
8938 objformat=`/usr/bin/objformat`
8939 else
8940 case $host_os in
8941 freebsd[123]*) objformat=aout ;;
8942 *) objformat=elf ;;
8943 esac
8944 fi
8945 version_type=freebsd-$objformat
8946 case $version_type in
8947 freebsd-elf*)
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8949 need_version=no
8950 need_lib_prefix=no
8951 ;;
8952 freebsd-*)
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8954 need_version=yes
8955 ;;
8956 esac
8957 shlibpath_var=LD_LIBRARY_PATH
8958 case $host_os in
8959 freebsd2*)
8960 shlibpath_overrides_runpath=yes
8961 ;;
8962 freebsd3.[01]* | freebsdelf3.[01]*)
8963 shlibpath_overrides_runpath=yes
8964 hardcode_into_libs=yes
8965 ;;
8966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8968 shlibpath_overrides_runpath=no
8969 hardcode_into_libs=yes
8970 ;;
8971 *) # from 4.6 on, and DragonFly
8972 shlibpath_overrides_runpath=yes
8973 hardcode_into_libs=yes
8974 ;;
8975 esac
8976 ;;
8977
8978gnu*)
8979 version_type=linux
8980 need_lib_prefix=no
8981 need_version=no
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 hardcode_into_libs=yes
8986 ;;
8987
8988hpux9* | hpux10* | hpux11*)
8989 # Give a soname corresponding to the major version so that dld.sl refuses to
8990 # link against other versions.
8991 version_type=sunos
8992 need_lib_prefix=no
8993 need_version=no
8994 case $host_cpu in
8995 ia64*)
8996 shrext_cmds='.so'
8997 hardcode_into_libs=yes
8998 dynamic_linker="$host_os dld.so"
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 if test "X$HPUX_IA64_MODE" = X32; then
9004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9005 else
9006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9007 fi
9008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9009 ;;
9010 hppa*64*)
9011 shrext_cmds='.sl'
9012 hardcode_into_libs=yes
9013 dynamic_linker="$host_os dld.sl"
9014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9020 ;;
9021 *)
9022 shrext_cmds='.sl'
9023 dynamic_linker="$host_os dld.sl"
9024 shlibpath_var=SHLIB_PATH
9025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 ;;
9029 esac
9030 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9031 postinstall_cmds='chmod 555 $lib'
9032 ;;
9033
9034interix[3-9]*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 ;;
9045
9046irix5* | irix6* | nonstopux*)
9047 case $host_os in
9048 nonstopux*) version_type=nonstopux ;;
9049 *)
9050 if test "$lt_cv_prog_gnu_ld" = yes; then
9051 version_type=linux
9052 else
9053 version_type=irix
9054 fi ;;
9055 esac
9056 need_lib_prefix=no
9057 need_version=no
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9060 case $host_os in
9061 irix5* | nonstopux*)
9062 libsuff= shlibsuff=
9063 ;;
9064 *)
9065 case $LD in # libtool.m4 will add one of these switches to LD
9066 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9067 libsuff= shlibsuff= libmagic=32-bit;;
9068 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9069 libsuff=32 shlibsuff=N32 libmagic=N32;;
9070 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9071 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9072 *) libsuff= shlibsuff= libmagic=never-match;;
9073 esac
9074 ;;
9075 esac
9076 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9077 shlibpath_overrides_runpath=no
9078 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9079 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9080 hardcode_into_libs=yes
9081 ;;
9082
9083# No shared lib support for Linux oldld, aout, or coff.
9084linux*oldld* | linux*aout* | linux*coff*)
9085 dynamic_linker=no
9086 ;;
9087
9088# This must be Linux ELF.
9089linux* | k*bsd*-gnu)
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=no
9098 # Some binutils ld are patched to set DT_RUNPATH
9099 save_LDFLAGS=$LDFLAGS
9100 save_libdir=$libdir
9101 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9102 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9103 cat >conftest.$ac_ext <<_ACEOF
9104/* confdefs.h. */
9105_ACEOF
9106cat confdefs.h >>conftest.$ac_ext
9107cat >>conftest.$ac_ext <<_ACEOF
9108/* end confdefs.h. */
9109
9110int
9111main ()
9112{
9113
9114 ;
9115 return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext conftest$ac_exeext
9119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120 (eval $ac_link) 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -z "$ac_c_werror_flag"
9128 || test ! -s conftest.err'
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); }; } &&
9134 { ac_try='test -s conftest$ac_exeext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9141 shlibpath_overrides_runpath=yes
9142fi
9143
9144else
9145 echo "$as_me: failed program was:" >&5
9146sed 's/^/| /' conftest.$ac_ext >&5
9147
9148fi
9149rm -f conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 LDFLAGS=$save_LDFLAGS
9152 libdir=$save_libdir
9153
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9158
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
9161 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' ' '`
9162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163 fi
9164
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9172 ;;
9173
9174netbsd*)
9175 version_type=sunos
9176 need_lib_prefix=no
9177 need_version=no
9178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9181 dynamic_linker='NetBSD (a.out) ld.so'
9182 else
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 dynamic_linker='NetBSD ld.elf_so'
9186 fi
9187 shlibpath_var=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath=yes
9189 hardcode_into_libs=yes
9190 ;;
9191
9192newsos6)
9193 version_type=linux
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=yes
9197 ;;
9198
9199*nto* | *qnx*)
9200 version_type=qnx
9201 need_lib_prefix=no
9202 need_version=no
9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204 soname_spec='${libname}${release}${shared_ext}$major'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=no
9207 hardcode_into_libs=yes
9208 dynamic_linker='ldqnx.so'
9209 ;;
9210
9211openbsd*)
9212 version_type=sunos
9213 sys_lib_dlsearch_path_spec="/usr/lib"
9214 need_lib_prefix=no
9215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9216 case $host_os in
9217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9218 *) need_version=no ;;
9219 esac
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9224 case $host_os in
9225 openbsd2.[89] | openbsd2.[89].*)
9226 shlibpath_overrides_runpath=no
9227 ;;
9228 *)
9229 shlibpath_overrides_runpath=yes
9230 ;;
9231 esac
9232 else
9233 shlibpath_overrides_runpath=yes
9234 fi
9235 ;;
9236
9237os2*)
9238 libname_spec='$name'
9239 shrext_cmds=".dll"
9240 need_lib_prefix=no
9241 library_names_spec='$libname${shared_ext} $libname.a'
9242 dynamic_linker='OS/2 ld.exe'
9243 shlibpath_var=LIBPATH
9244 ;;
9245
9246osf3* | osf4* | osf5*)
9247 version_type=osf
9248 need_lib_prefix=no
9249 need_version=no
9250 soname_spec='${libname}${release}${shared_ext}$major'
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9255 ;;
9256
9257rdos*)
9258 dynamic_linker=no
9259 ;;
9260
9261solaris*)
9262 version_type=linux
9263 need_lib_prefix=no
9264 need_version=no
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=yes
9269 hardcode_into_libs=yes
9270 # ldd complains unless libraries are executable
9271 postinstall_cmds='chmod +x $lib'
9272 ;;
9273
9274sunos4*)
9275 version_type=sunos
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 shlibpath_overrides_runpath=yes
9280 if test "$with_gnu_ld" = yes; then
9281 need_lib_prefix=no
9282 fi
9283 need_version=yes
9284 ;;
9285
9286sysv4 | sysv4.3*)
9287 version_type=linux
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 case $host_vendor in
9292 sni)
9293 shlibpath_overrides_runpath=no
9294 need_lib_prefix=no
9295 runpath_var=LD_RUN_PATH
9296 ;;
9297 siemens)
9298 need_lib_prefix=no
9299 ;;
9300 motorola)
9301 need_lib_prefix=no
9302 need_version=no
9303 shlibpath_overrides_runpath=no
9304 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9305 ;;
9306 esac
9307 ;;
9308
9309sysv4*MP*)
9310 if test -d /usr/nec ;then
9311 version_type=linux
9312 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9313 soname_spec='$libname${shared_ext}.$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 fi
9316 ;;
9317
9318sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9319 version_type=freebsd-elf
9320 need_lib_prefix=no
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9327 if test "$with_gnu_ld" = yes; then
9328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9329 else
9330 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9331 case $host_os in
9332 sco3.2v5*)
9333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9334 ;;
9335 esac
9336 fi
9337 sys_lib_dlsearch_path_spec='/usr/lib'
9338 ;;
9339
9340tpf*)
9341 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9342 version_type=linux
9343 need_lib_prefix=no
9344 need_version=no
9345 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 shlibpath_overrides_runpath=no
9348 hardcode_into_libs=yes
9349 ;;
9350
9351uts4*)
9352 version_type=linux
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 shlibpath_var=LD_LIBRARY_PATH
9356 ;;
9357
9358*)
9359 dynamic_linker=no
9360 ;;
9361esac
9362echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9363echo "${ECHO_T}$dynamic_linker" >&6
9364test "$dynamic_linker" = no && can_build_shared=no
9365
9366variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9367if test "$GCC" = yes; then
9368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369fi
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
9452
9453
9454
9455
9456
9457 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9458echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9459hardcode_action=
9460if test -n "$hardcode_libdir_flag_spec" ||
9461 test -n "$runpath_var" ||
9462 test "X$hardcode_automatic" = "Xyes" ; then
9463
9464 # We can hardcode non-existent directories.
9465 if test "$hardcode_direct" != no &&
9466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9467 # have to relink, otherwise we might link with an installed library
9468 # when we should be linking with a yet-to-be-installed one
9469 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9470 test "$hardcode_minus_L" != no; then
9471 # Linking always hardcodes the temporary library directory.
9472 hardcode_action=relink
9473 else
9474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9475 hardcode_action=immediate
9476 fi
9477else
9478 # We cannot hardcode anything, or else we can only hardcode existing
9479 # directories.
9480 hardcode_action=unsupported
9481fi
9482echo "$as_me:$LINENO: result: $hardcode_action" >&5
9483echo "${ECHO_T}$hardcode_action" >&6
9484
9485if test "$hardcode_action" = relink ||
9486 test "$inherit_rpath" = yes; then
9487 # Fast installation is not supported
9488 enable_fast_install=no
9489elif test "$shlibpath_overrides_runpath" = yes ||
9490 test "$enable_shared" = no; then
9491 # Fast installation is not necessary
9492 enable_fast_install=needless
9493fi
9494
9495
9496
9497
9498
9499
9500 if test "x$enable_dlopen" != xyes; then
9501 enable_dlopen=unknown
9502 enable_dlopen_self=unknown
9503 enable_dlopen_self_static=unknown
9504else
9505 lt_cv_dlopen=no
9506 lt_cv_dlopen_libs=
9507
9508 case $host_os in
9509 beos*)
9510 lt_cv_dlopen="load_add_on"
9511 lt_cv_dlopen_libs=
9512 lt_cv_dlopen_self=yes
9513 ;;
9514
9515 mingw* | pw32*)
9516 lt_cv_dlopen="LoadLibrary"
9517 lt_cv_dlopen_libs=
9518 ;;
9519
9520 cygwin*)
9521 lt_cv_dlopen="dlopen"
9522 lt_cv_dlopen_libs=
9523 ;;
9524
9525 darwin*)
9526 # if libdl is installed we need to link against it
9527 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9528echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9529if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531else
9532 ac_check_lib_save_LIBS=$LIBS
9533LIBS="-ldl $LIBS"
9534cat >conftest.$ac_ext <<_ACEOF
9535/* confdefs.h. */
9536_ACEOF
9537cat confdefs.h >>conftest.$ac_ext
9538cat >>conftest.$ac_ext <<_ACEOF
9539/* end confdefs.h. */
9540
9541/* Override any gcc2 internal prototype to avoid an error. */
9542#ifdef __cplusplus
9543extern "C"
9544#endif
9545/* We use char because int might match the return type of a gcc2
9546 builtin and then its argument prototype would still apply. */
9547char dlopen ();
9548int
9549main ()
9550{
9551dlopen ();
9552 ;
9553 return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext conftest$ac_exeext
9557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
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); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_lib_dl_dlopen=yes
9579else
9580 echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583ac_cv_lib_dl_dlopen=no
9584fi
9585rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587LIBS=$ac_check_lib_save_LIBS
9588fi
9589echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9590echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9591if test $ac_cv_lib_dl_dlopen = yes; then
9592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9593else
9594
9595 lt_cv_dlopen="dyld"
9596 lt_cv_dlopen_libs=
9597 lt_cv_dlopen_self=yes
9598
9599fi
9600
9601 ;;
9602
9603 *)
9604 echo "$as_me:$LINENO: checking for shl_load" >&5
9605echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9606if test "${ac_cv_func_shl_load+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 cat >conftest.$ac_ext <<_ACEOF
9610/* confdefs.h. */
9611_ACEOF
9612cat confdefs.h >>conftest.$ac_ext
9613cat >>conftest.$ac_ext <<_ACEOF
9614/* end confdefs.h. */
9615/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617#define shl_load innocuous_shl_load
9618
9619/* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char shl_load (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9623
9624#ifdef __STDC__
9625# include <limits.h>
9626#else
9627# include <assert.h>
9628#endif
9629
9630#undef shl_load
9631
9632/* Override any gcc2 internal prototype to avoid an error. */
9633#ifdef __cplusplus
9634extern "C"
9635{
9636#endif
9637/* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9639char shl_load ();
9640/* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643#if defined (__stub_shl_load) || defined (__stub___shl_load)
9644choke me
9645#else
9646char (*f) () = shl_load;
9647#endif
9648#ifdef __cplusplus
9649}
9650#endif
9651
9652int
9653main ()
9654{
9655return f != shl_load;
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
9661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag"
9670 || test ! -s conftest.err'
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); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_func_shl_load=yes
9683else
9684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
9687ac_cv_func_shl_load=no
9688fi
9689rm -f conftest.err conftest.$ac_objext \
9690 conftest$ac_exeext conftest.$ac_ext
9691fi
9692echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9693echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9694if test $ac_cv_func_shl_load = yes; then
9695 lt_cv_dlopen="shl_load"
9696else
9697 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9698echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9699if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 ac_check_lib_save_LIBS=$LIBS
9703LIBS="-ldld $LIBS"
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
9710
9711/* Override any gcc2 internal prototype to avoid an error. */
9712#ifdef __cplusplus
9713extern "C"
9714#endif
9715/* We use char because int might match the return type of a gcc2
9716 builtin and then its argument prototype would still apply. */
9717char shl_load ();
9718int
9719main ()
9720{
9721shl_load ();
9722 ;
9723 return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext conftest$ac_exeext
9727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728 (eval $ac_link) 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_c_werror_flag"
9736 || test ! -s conftest.err'
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); }; } &&
9742 { ac_try='test -s conftest$ac_exeext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_cv_lib_dld_shl_load=yes
9749else
9750 echo "$as_me: failed program was:" >&5
9751sed 's/^/| /' conftest.$ac_ext >&5
9752
9753ac_cv_lib_dld_shl_load=no
9754fi
9755rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757LIBS=$ac_check_lib_save_LIBS
9758fi
9759echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9761if test $ac_cv_lib_dld_shl_load = yes; then
9762 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9763else
9764 echo "$as_me:$LINENO: checking for dlopen" >&5
9765echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9766if test "${ac_cv_func_dlopen+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768else
9769 cat >conftest.$ac_ext <<_ACEOF
9770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>conftest.$ac_ext <<_ACEOF
9774/* end confdefs.h. */
9775/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9777#define dlopen innocuous_dlopen
9778
9779/* System header to define __stub macros and hopefully few prototypes,
9780 which can conflict with char dlopen (); below.
9781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782 <limits.h> exists even on freestanding compilers. */
9783
9784#ifdef __STDC__
9785# include <limits.h>
9786#else
9787# include <assert.h>
9788#endif
9789
9790#undef dlopen
9791
9792/* Override any gcc2 internal prototype to avoid an error. */
9793#ifdef __cplusplus
9794extern "C"
9795{
9796#endif
9797/* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799char dlopen ();
9800/* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803#if defined (__stub_dlopen) || defined (__stub___dlopen)
9804choke me
9805#else
9806char (*f) () = dlopen;
9807#endif
9808#ifdef __cplusplus
9809}
9810#endif
9811
9812int
9813main ()
9814{
9815return f != dlopen;
9816 ;
9817 return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag"
9830 || test ! -s conftest.err'
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); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9838 (eval $ac_try) 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_func_dlopen=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847ac_cv_func_dlopen=no
9848fi
9849rm -f conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851fi
9852echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9853echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9854if test $ac_cv_func_dlopen = yes; then
9855 lt_cv_dlopen="dlopen"
9856else
9857 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9859if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861else
9862 ac_check_lib_save_LIBS=$LIBS
9863LIBS="-ldl $LIBS"
9864cat >conftest.$ac_ext <<_ACEOF
9865/* confdefs.h. */
9866_ACEOF
9867cat confdefs.h >>conftest.$ac_ext
9868cat >>conftest.$ac_ext <<_ACEOF
9869/* end confdefs.h. */
9870
9871/* Override any gcc2 internal prototype to avoid an error. */
9872#ifdef __cplusplus
9873extern "C"
9874#endif
9875/* We use char because int might match the return type of a gcc2
9876 builtin and then its argument prototype would still apply. */
9877char dlopen ();
9878int
9879main ()
9880{
9881dlopen ();
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext conftest$ac_exeext
9887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888 (eval $ac_link) 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -z "$ac_c_werror_flag"
9896 || test ! -s conftest.err'
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); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; }; then
9908 ac_cv_lib_dl_dlopen=yes
9909else
9910 echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913ac_cv_lib_dl_dlopen=no
9914fi
9915rm -f conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917LIBS=$ac_check_lib_save_LIBS
9918fi
9919echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9920echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9921if test $ac_cv_lib_dl_dlopen = yes; then
9922 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9923else
9924 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9925echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9926if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928else
9929 ac_check_lib_save_LIBS=$LIBS
9930LIBS="-lsvld $LIBS"
9931cat >conftest.$ac_ext <<_ACEOF
9932/* confdefs.h. */
9933_ACEOF
9934cat confdefs.h >>conftest.$ac_ext
9935cat >>conftest.$ac_ext <<_ACEOF
9936/* end confdefs.h. */
9937
9938/* Override any gcc2 internal prototype to avoid an error. */
9939#ifdef __cplusplus
9940extern "C"
9941#endif
9942/* We use char because int might match the return type of a gcc2
9943 builtin and then its argument prototype would still apply. */
9944char dlopen ();
9945int
9946main ()
9947{
9948dlopen ();
9949 ;
9950 return 0;
9951}
9952_ACEOF
9953rm -f conftest.$ac_objext conftest$ac_exeext
9954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955 (eval $ac_link) 2>conftest.er1
9956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag"
9963 || test ! -s conftest.err'
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); }; } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 ac_cv_lib_svld_dlopen=yes
9976else
9977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980ac_cv_lib_svld_dlopen=no
9981fi
9982rm -f conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984LIBS=$ac_check_lib_save_LIBS
9985fi
9986echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9987echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9988if test $ac_cv_lib_svld_dlopen = yes; then
9989 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9990else
9991 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9992echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9993if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9994 echo $ECHO_N "(cached) $ECHO_C" >&6
9995else
9996 ac_check_lib_save_LIBS=$LIBS
9997LIBS="-ldld $LIBS"
9998cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h. */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h. */
10004
10005/* Override any gcc2 internal prototype to avoid an error. */
10006#ifdef __cplusplus
10007extern "C"
10008#endif
10009/* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10011char dld_link ();
10012int
10013main ()
10014{
10015dld_link ();
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
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); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_dld_dld_link=yes
10043else
10044 echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047ac_cv_lib_dld_dld_link=no
10048fi
10049rm -f conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051LIBS=$ac_check_lib_save_LIBS
10052fi
10053echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10054echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10055if test $ac_cv_lib_dld_dld_link = yes; then
10056 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10057fi
10058
10059
10060fi
10061
10062
10063fi
10064
10065
10066fi
10067
10068
10069fi
10070
10071
10072fi
10073
10074 ;;
10075 esac
10076
10077 if test "x$lt_cv_dlopen" != xno; then
10078 enable_dlopen=yes
20e95c23 10079 else
d7040cdb 10080 enable_dlopen=no
252b5132 10081 fi
5464f5a1 10082
d7040cdb
SE
10083 case $lt_cv_dlopen in
10084 dlopen)
10085 save_CPPFLAGS="$CPPFLAGS"
10086 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10087
10088 save_LDFLAGS="$LDFLAGS"
10089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10090
10091 save_LIBS="$LIBS"
10092 LIBS="$lt_cv_dlopen_libs $LIBS"
10093
10094 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10095echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10096if test "${lt_cv_dlopen_self+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 10098else
d7040cdb
SE
10099 if test "$cross_compiling" = yes; then :
10100 lt_cv_dlopen_self=cross
10101else
10102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10103 lt_status=$lt_dlunknown
10104 cat > conftest.$ac_ext <<_LT_EOF
79887925 10105#line 10105 "configure"
d7040cdb
SE
10106#include "confdefs.h"
10107
10108#if HAVE_DLFCN_H
10109#include <dlfcn.h>
10110#endif
10111
10112#include <stdio.h>
10113
10114#ifdef RTLD_GLOBAL
10115# define LT_DLGLOBAL RTLD_GLOBAL
10116#else
10117# ifdef DL_GLOBAL
10118# define LT_DLGLOBAL DL_GLOBAL
10119# else
10120# define LT_DLGLOBAL 0
10121# endif
10122#endif
10123
10124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125 find out it does not work in some platform. */
10126#ifndef LT_DLLAZY_OR_NOW
10127# ifdef RTLD_LAZY
10128# define LT_DLLAZY_OR_NOW RTLD_LAZY
10129# else
10130# ifdef DL_LAZY
10131# define LT_DLLAZY_OR_NOW DL_LAZY
10132# else
10133# ifdef RTLD_NOW
10134# define LT_DLLAZY_OR_NOW RTLD_NOW
10135# else
10136# ifdef DL_NOW
10137# define LT_DLLAZY_OR_NOW DL_NOW
10138# else
10139# define LT_DLLAZY_OR_NOW 0
10140# endif
10141# endif
10142# endif
10143# endif
10144#endif
10145
10146#ifdef __cplusplus
10147extern "C" void exit (int);
10148#endif
10149
10150void fnord() { int i=42;}
10151int main ()
10152{
10153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10154 int status = $lt_dlunknown;
10155
10156 if (self)
10157 {
10158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10159 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10160 /* dlclose (self); */
10161 }
10162 else
10163 puts (dlerror ());
10164
10165 exit (status);
10166}
10167_LT_EOF
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10173 (./conftest; exit; ) >&5 2>/dev/null
10174 lt_status=$?
10175 case x$lt_status in
10176 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10177 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10178 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10179 esac
10180 else :
10181 # compilation failed
10182 lt_cv_dlopen_self=no
10183 fi
252b5132 10184fi
d7040cdb 10185rm -fr conftest*
20e95c23 10186
d7040cdb
SE
10187
10188fi
10189echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10190echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10191
10192 if test "x$lt_cv_dlopen_self" = xyes; then
10193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10194 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10195echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10196if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198else
d7040cdb
SE
10199 if test "$cross_compiling" = yes; then :
10200 lt_cv_dlopen_self_static=cross
10201else
10202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10203 lt_status=$lt_dlunknown
10204 cat > conftest.$ac_ext <<_LT_EOF
79887925 10205#line 10205 "configure"
d7040cdb
SE
10206#include "confdefs.h"
10207
10208#if HAVE_DLFCN_H
10209#include <dlfcn.h>
10210#endif
10211
10212#include <stdio.h>
10213
10214#ifdef RTLD_GLOBAL
10215# define LT_DLGLOBAL RTLD_GLOBAL
10216#else
10217# ifdef DL_GLOBAL
10218# define LT_DLGLOBAL DL_GLOBAL
10219# else
10220# define LT_DLGLOBAL 0
10221# endif
10222#endif
10223
10224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10225 find out it does not work in some platform. */
10226#ifndef LT_DLLAZY_OR_NOW
10227# ifdef RTLD_LAZY
10228# define LT_DLLAZY_OR_NOW RTLD_LAZY
10229# else
10230# ifdef DL_LAZY
10231# define LT_DLLAZY_OR_NOW DL_LAZY
10232# else
10233# ifdef RTLD_NOW
10234# define LT_DLLAZY_OR_NOW RTLD_NOW
10235# else
10236# ifdef DL_NOW
10237# define LT_DLLAZY_OR_NOW DL_NOW
10238# else
10239# define LT_DLLAZY_OR_NOW 0
10240# endif
10241# endif
10242# endif
10243# endif
10244#endif
10245
10246#ifdef __cplusplus
10247extern "C" void exit (int);
10248#endif
10249
10250void fnord() { int i=42;}
10251int main ()
10252{
10253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10254 int status = $lt_dlunknown;
10255
10256 if (self)
10257 {
10258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10260 /* dlclose (self); */
10261 }
10262 else
10263 puts (dlerror ());
10264
10265 exit (status);
10266}
10267_LT_EOF
10268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269 (eval $ac_link) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10273 (./conftest; exit; ) >&5 2>/dev/null
10274 lt_status=$?
10275 case x$lt_status in
10276 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10277 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10278 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10279 esac
10280 else :
10281 # compilation failed
10282 lt_cv_dlopen_self_static=no
10283 fi
10284fi
10285rm -fr conftest*
10286
10287
10288fi
10289echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10290echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10291 fi
10292
10293 CPPFLAGS="$save_CPPFLAGS"
10294 LDFLAGS="$save_LDFLAGS"
10295 LIBS="$save_LIBS"
10296 ;;
10297 esac
10298
10299 case $lt_cv_dlopen_self in
10300 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10301 *) enable_dlopen_self=unknown ;;
10302 esac
10303
10304 case $lt_cv_dlopen_self_static in
10305 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10306 *) enable_dlopen_self_static=unknown ;;
10307 esac
10308fi
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326striplib=
10327old_striplib=
10328echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10329echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10330if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10332 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10333 echo "$as_me:$LINENO: result: yes" >&5
10334echo "${ECHO_T}yes" >&6
10335else
10336# FIXME - insert some real tests, host_os isn't really good enough
10337 case $host_os in
10338 darwin*)
10339 if test -n "$STRIP" ; then
10340 striplib="$STRIP -x"
10341 old_striplib="$STRIP -S"
10342 echo "$as_me:$LINENO: result: yes" >&5
10343echo "${ECHO_T}yes" >&6
10344 else
10345 echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6
10347 fi
20e95c23
DJ
10348 ;;
10349 *)
d7040cdb
SE
10350 echo "$as_me:$LINENO: result: no" >&5
10351echo "${ECHO_T}no" >&6
10352 ;;
10353 esac
10354fi
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367 # Report which library types will actually be built
10368 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10369echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10370 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10371echo "${ECHO_T}$can_build_shared" >&6
10372
10373 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10374echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10375 test "$can_build_shared" = "no" && enable_shared=no
10376
10377 # On AIX, shared libraries and static libraries use the same namespace, and
10378 # are all built from PIC.
10379 case $host_os in
10380 aix3*)
10381 test "$enable_shared" = yes && enable_static=no
10382 if test -n "$RANLIB"; then
10383 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10384 postinstall_cmds='$RANLIB $lib'
10385 fi
10386 ;;
10387
10388 aix4* | aix5*)
10389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10390 test "$enable_shared" = yes && enable_static=no
10391 fi
20e95c23 10392 ;;
d7040cdb
SE
10393 esac
10394 echo "$as_me:$LINENO: result: $enable_shared" >&5
10395echo "${ECHO_T}$enable_shared" >&6
10396
10397 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10398echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10399 # Make sure either enable_shared or enable_static is yes.
10400 test "$enable_shared" = yes || enable_static=yes
10401 echo "$as_me:$LINENO: result: $enable_static" >&5
10402echo "${ECHO_T}$enable_static" >&6
10403
10404
10405
10406
10407fi
10408ac_ext=c
10409ac_cpp='$CPP $CPPFLAGS'
10410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412ac_compiler_gnu=$ac_cv_c_compiler_gnu
10413
10414CC="$lt_save_CC"
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428 ac_config_commands="$ac_config_commands libtool"
10429
10430
10431
10432
10433# Only expand once:
10434
10435
10436
10437# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10438if test "${enable_64_bit_bfd+set}" = set; then
10439 enableval="$enable_64_bit_bfd"
10440 case "${enableval}" in
10441 yes) want64=true ;;
10442 no) want64=false ;;
10443 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10444echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10445 { (exit 1); exit 1; }; } ;;
10446esac
10447else
10448 want64=false
10449fi; # Check whether --enable-targets or --disable-targets was given.
10450if test "${enable_targets+set}" = set; then
10451 enableval="$enable_targets"
10452 case "${enableval}" in
10453 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10454echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10455 { (exit 1); exit 1; }; }
10456 ;;
10457 no) enable_targets= ;;
10458 *) enable_targets=$enableval ;;
10459esac
10460fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10461if test "${enable_commonbfdlib+set}" = set; then
10462 enableval="$enable_commonbfdlib"
10463 case "${enableval}" in
10464 yes) commonbfdlib=true ;;
10465 no) commonbfdlib=false ;;
10466 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10467echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10468 { (exit 1); exit 1; }; } ;;
10469esac
10470fi;
10471# Check whether --with-mmap or --without-mmap was given.
10472if test "${with_mmap+set}" = set; then
10473 withval="$with_mmap"
10474 case "${withval}" in
10475 yes) want_mmap=true ;;
10476 no) want_mmap=false ;;
10477 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10478echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10479 { (exit 1); exit 1; }; } ;;
20e95c23 10480esac
252b5132 10481else
d7040cdb
SE
10482 want_mmap=false
10483fi;
10484# Check whether --enable-secureplt or --disable-secureplt was given.
10485if test "${enable_secureplt+set}" = set; then
10486 enableval="$enable_secureplt"
10487 case "${enableval}" in
10488 yes) use_secureplt=true ;;
10489 no) use_secureplt=false ;;
10490 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10491echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10492 { (exit 1); exit 1; }; } ;;
10493esac
252b5132 10494else
d7040cdb
SE
10495 use_secureplt=false
10496fi; if test $use_secureplt = true; then
10497
10498cat >>confdefs.h <<\_ACEOF
10499#define USE_SECUREPLT 1
10500_ACEOF
5464f5a1 10501
252b5132 10502fi
20e95c23 10503
d7040cdb
SE
10504
10505
10506# Check whether --with-pkgversion or --without-pkgversion was given.
10507if test "${with_pkgversion+set}" = set; then
10508 withval="$with_pkgversion"
10509 case "$withval" in
10510 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10511echo "$as_me: error: package version not specified" >&2;}
10512 { (exit 1); exit 1; }; } ;;
10513 no) PKGVERSION= ;;
10514 *) PKGVERSION="($withval) " ;;
10515 esac
252b5132 10516else
d7040cdb 10517 PKGVERSION="(GNU Binutils) "
252b5132 10518
d7040cdb 10519fi;
20e95c23
DJ
10520
10521
5464f5a1 10522
20e95c23 10523
d7040cdb
SE
10524# Check whether --with-bugurl or --without-bugurl was given.
10525if test "${with_bugurl+set}" = set; then
10526 withval="$with_bugurl"
10527 case "$withval" in
10528 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10529echo "$as_me: error: bug URL not specified" >&2;}
10530 { (exit 1); exit 1; }; } ;;
10531 no) BUGURL=
10532 ;;
10533 *) BUGURL="$withval"
10534 ;;
10535 esac
252b5132 10536else
d7040cdb
SE
10537 BUGURL="http://www.sourceware.org/bugzilla/"
10538
10539fi;
10540 case ${BUGURL} in
10541 "")
10542 REPORT_BUGS_TO=
10543 REPORT_BUGS_TEXI=
20e95c23
DJ
10544 ;;
10545 *)
d7040cdb
SE
10546 REPORT_BUGS_TO="<$BUGURL>"
10547 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 10548 ;;
d7040cdb
SE
10549 esac;
10550
10551
10552
10553
10554
10555GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10556
10557# Check whether --enable-werror or --disable-werror was given.
10558if test "${enable_werror+set}" = set; then
10559 enableval="$enable_werror"
10560 case "${enableval}" in
10561 yes | y) ERROR_ON_WARNING="yes" ;;
10562 no | n) ERROR_ON_WARNING="no" ;;
10563 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10564echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10565 { (exit 1); exit 1; }; } ;;
10566 esac
10567fi;
10568
10569# Enable -Werror by default when using gcc
10570if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10571 ERROR_ON_WARNING=yes
10572fi
10573
10574NO_WERROR=
10575if test "${ERROR_ON_WARNING}" = yes ; then
10576 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10577 NO_WERROR="-Wno-error"
10578fi
10579
10580if test "${GCC}" = yes ; then
10581 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10582fi
10583
10584# Check whether --enable-build-warnings or --disable-build-warnings was given.
10585if test "${enable_build_warnings+set}" = set; then
10586 enableval="$enable_build_warnings"
10587 case "${enableval}" in
10588 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10589 no) if test "${GCC}" = yes ; then
10590 WARN_CFLAGS="-w"
10591 fi;;
10592 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10593 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10594 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10595 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10596 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 10597esac
d7040cdb
SE
10598fi;
10599
10600if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10601 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 10602fi
d7040cdb
SE
10603
10604
10605
10606
10607
10608 ac_config_headers="$ac_config_headers config.h:config.in"
10609
10610
10611if test -z "$target" ; then
10612 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10613echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10614 { (exit 1); exit 1; }; }
20e95c23
DJ
10615fi
10616
d7040cdb
SE
10617echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10618echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10619 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10620if test "${enable_maintainer_mode+set}" = set; then
10621 enableval="$enable_maintainer_mode"
10622 USE_MAINTAINER_MODE=$enableval
10623else
10624 USE_MAINTAINER_MODE=no
10625fi;
10626 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10627echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
10628
10629
d7040cdb
SE
10630if test $USE_MAINTAINER_MODE = yes; then
10631 MAINTAINER_MODE_TRUE=
10632 MAINTAINER_MODE_FALSE='#'
10633else
10634 MAINTAINER_MODE_TRUE='#'
10635 MAINTAINER_MODE_FALSE=
6be7c12c 10636fi
5464f5a1 10637
d7040cdb
SE
10638 MAINT=$MAINTAINER_MODE_TRUE
10639
10640
10641
10642
10643if false; then
10644 GENINSRC_NEVER_TRUE=
10645 GENINSRC_NEVER_FALSE='#'
20e95c23 10646else
d7040cdb
SE
10647 GENINSRC_NEVER_TRUE='#'
10648 GENINSRC_NEVER_FALSE=
5464f5a1 10649fi
5464f5a1 10650
d7040cdb
SE
10651 case ${build_alias} in
10652 "") build_noncanonical=${build} ;;
10653 *) build_noncanonical=${build_alias} ;;
20e95c23 10654esac
d7040cdb
SE
10655
10656 case ${host_alias} in
10657 "") host_noncanonical=${build_noncanonical} ;;
10658 *) host_noncanonical=${host_alias} ;;
10659esac
10660
10661 case ${target_alias} in
10662 "") target_noncanonical=${host_noncanonical} ;;
10663 *) target_noncanonical=${target_alias} ;;
10664esac
10665
10666echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10667echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10668 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10669if test "${enable_install_libbfd+set}" = set; then
10670 enableval="$enable_install_libbfd"
10671 install_libbfd_p=$enableval
252b5132 10672else
d7040cdb
SE
10673 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10674 install_libbfd_p=yes
10675 else
10676 install_libbfd_p=no
10677 fi
10678fi;
10679 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10680echo "${ECHO_T}$install_libbfd_p" >&6
10681
10682
10683if test $install_libbfd_p = yes; then
10684 INSTALL_LIBBFD_TRUE=
10685 INSTALL_LIBBFD_FALSE='#'
10686else
10687 INSTALL_LIBBFD_TRUE='#'
10688 INSTALL_LIBBFD_FALSE=
5464f5a1 10689fi
5464f5a1 10690
d7040cdb 10691 # Need _noncanonical variables for this.
5464f5a1 10692
5464f5a1 10693
d7040cdb
SE
10694
10695
10696 # libbfd.a is a host library containing target dependent code
10697 bfdlibdir='$(libdir)'
10698 bfdincludedir='$(includedir)'
10699 if test "${host}" != "${target}"; then
10700 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10701 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 10702 fi
6be7c12c 10703
5464f5a1 10704
5464f5a1
NN
10705
10706
5464f5a1 10707
ac48eca1 10708
d7040cdb
SE
10709host64=false
10710target64=false
10711bfd_default_target_size=32
252b5132 10712
d7040cdb 10713# host stuff:
20e95c23 10714
d7040cdb
SE
10715ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
10716# If we haven't got the data from the intl directory,
10717# assume NLS is disabled.
10718USE_NLS=no
10719LIBINTL=
10720LIBINTL_DEP=
10721INCINTL=
10722XGETTEXT=
10723GMSGFMT=
10724POSUB=
10725
10726if test -f ../intl/config.intl; then
10727 . ../intl/config.intl
252b5132 10728fi
d7040cdb
SE
10729echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10730echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10731if test x"$USE_NLS" != xyes; then
10732 echo "$as_me:$LINENO: result: no" >&5
10733echo "${ECHO_T}no" >&6
10734else
10735 echo "$as_me:$LINENO: result: yes" >&5
10736echo "${ECHO_T}yes" >&6
5464f5a1 10737
d7040cdb
SE
10738cat >>confdefs.h <<\_ACEOF
10739#define ENABLE_NLS 1
10740_ACEOF
252b5132 10741
6be7c12c 10742
d7040cdb
SE
10743 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10744echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10745 # Look for .po and .gmo files in the source directory.
10746 CATALOGS=
10747 XLINGUAS=
10748 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10749 # If there aren't any .gmo files the shell will give us the
10750 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10751 # weeded out.
10752 case "$cat" in *\**)
10753 continue;;
10754 esac
10755 # The quadruple backslash is collapsed to a double backslash
10756 # by the backticks, then collapsed again by the double quotes,
10757 # leaving us with one backslash in the sed expression (right
10758 # before the dot that mustn't act as a wildcard).
10759 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10760 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10761 # The user is allowed to set LINGUAS to a list of languages to
10762 # install catalogs for. If it's empty that means "all of them."
10763 if test "x$LINGUAS" = x; then
10764 CATALOGS="$CATALOGS $cat"
10765 XLINGUAS="$XLINGUAS $lang"
10766 else
10767 case "$LINGUAS" in *$lang*)
10768 CATALOGS="$CATALOGS $cat"
10769 XLINGUAS="$XLINGUAS $lang"
10770 ;;
10771 esac
10772 fi
10773 done
10774 LINGUAS="$XLINGUAS"
10775 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10776echo "${ECHO_T}$LINGUAS" >&6
10777
252b5132 10778
d7040cdb 10779 DATADIRNAME=share
252b5132 10780
d7040cdb 10781 INSTOBJEXT=.mo
5464f5a1 10782
d7040cdb 10783 GENCAT=gencat
20e95c23 10784
d7040cdb 10785 CATOBJEXT=.gmo
5464f5a1 10786
20e95c23 10787fi
5464f5a1 10788
d7040cdb
SE
10789 MKINSTALLDIRS=
10790 if test -n "$ac_aux_dir"; then
10791 case "$ac_aux_dir" in
10792 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10793 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10794 esac
10795 fi
10796 if test -z "$MKINSTALLDIRS"; then
10797 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 10798 fi
5464f5a1 10799
5464f5a1 10800
d7040cdb
SE
10801
10802 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10803echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10804 # Check whether --enable-nls or --disable-nls was given.
10805if test "${enable_nls+set}" = set; then
10806 enableval="$enable_nls"
10807 USE_NLS=$enableval
252b5132 10808else
d7040cdb
SE
10809 USE_NLS=yes
10810fi;
10811 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10812echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 10813
252b5132 10814
5464f5a1 10815
252b5132 10816
d7040cdb
SE
10817
10818
10819# Prepare PATH_SEPARATOR.
10820# The user is always right.
10821if test "${PATH_SEPARATOR+set}" != set; then
10822 echo "#! /bin/sh" >conf$$.sh
10823 echo "exit 0" >>conf$$.sh
10824 chmod +x conf$$.sh
10825 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10826 PATH_SEPARATOR=';'
20e95c23 10827 else
d7040cdb 10828 PATH_SEPARATOR=:
20e95c23 10829 fi
d7040cdb
SE
10830 rm -f conf$$.sh
10831fi
10832
10833# Find out how to test for executable files. Don't use a zero-byte file,
10834# as systems may use methods other than mode bits to determine executability.
10835cat >conf$$.file <<_ASEOF
10836#! /bin/sh
10837exit 0
10838_ASEOF
10839chmod +x conf$$.file
10840if test -x conf$$.file >/dev/null 2>&1; then
10841 ac_executable_p="test -x"
20e95c23 10842else
d7040cdb 10843 ac_executable_p="test -f"
20e95c23 10844fi
d7040cdb 10845rm -f conf$$.file
5464f5a1 10846
d7040cdb
SE
10847# Extract the first word of "msgfmt", so it can be a program name with args.
10848set dummy msgfmt; ac_word=$2
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_path_MSGFMT+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 case "$MSGFMT" in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10857 ;;
10858 *)
10859 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10860 for ac_dir in $PATH; do
10861 IFS="$ac_save_IFS"
10862 test -z "$ac_dir" && ac_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10865 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10866 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10867 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10868 break 2
10869 fi
10870 fi
10871 done
10872 done
10873 IFS="$ac_save_IFS"
10874 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10875 ;;
10876esac
5464f5a1 10877fi
d7040cdb
SE
10878MSGFMT="$ac_cv_path_MSGFMT"
10879if test "$MSGFMT" != ":"; then
10880 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10881echo "${ECHO_T}$MSGFMT" >&6
20e95c23 10882else
d7040cdb
SE
10883 echo "$as_me:$LINENO: result: no" >&5
10884echo "${ECHO_T}no" >&6
252b5132 10885fi
d7040cdb
SE
10886
10887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10888set dummy gmsgfmt; ac_word=$2
10889echo "$as_me:$LINENO: checking for $ac_word" >&5
10890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10891if test "${ac_cv_path_GMSGFMT+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10893else
d7040cdb
SE
10894 case $GMSGFMT in
10895 [\\/]* | ?:[\\/]*)
10896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10897 ;;
10898 *)
10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900for as_dir in $PATH
10901do
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 break 2
10909 fi
10910done
10911done
5464f5a1 10912
d7040cdb
SE
10913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10914 ;;
10915esac
252b5132 10916fi
d7040cdb 10917GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 10918
d7040cdb
SE
10919if test -n "$GMSGFMT"; then
10920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10921echo "${ECHO_T}$GMSGFMT" >&6
252b5132 10922else
d7040cdb
SE
10923 echo "$as_me:$LINENO: result: no" >&5
10924echo "${ECHO_T}no" >&6
252b5132
RH
10925fi
10926
20e95c23
DJ
10927
10928
d7040cdb
SE
10929# Prepare PATH_SEPARATOR.
10930# The user is always right.
10931if test "${PATH_SEPARATOR+set}" != set; then
10932 echo "#! /bin/sh" >conf$$.sh
10933 echo "exit 0" >>conf$$.sh
10934 chmod +x conf$$.sh
10935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10936 PATH_SEPARATOR=';'
10937 else
10938 PATH_SEPARATOR=:
10939 fi
10940 rm -f conf$$.sh
252b5132 10941fi
20e95c23 10942
d7040cdb
SE
10943# Find out how to test for executable files. Don't use a zero-byte file,
10944# as systems may use methods other than mode bits to determine executability.
10945cat >conf$$.file <<_ASEOF
10946#! /bin/sh
10947exit 0
10948_ASEOF
10949chmod +x conf$$.file
10950if test -x conf$$.file >/dev/null 2>&1; then
10951 ac_executable_p="test -x"
10952else
10953 ac_executable_p="test -f"
10954fi
10955rm -f conf$$.file
252b5132 10956
d7040cdb
SE
10957# Extract the first word of "xgettext", so it can be a program name with args.
10958set dummy xgettext; ac_word=$2
10959echo "$as_me:$LINENO: checking for $ac_word" >&5
10960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
d7040cdb
SE
10964 case "$XGETTEXT" in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10967 ;;
10968 *)
10969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10970 for ac_dir in $PATH; do
10971 IFS="$ac_save_IFS"
10972 test -z "$ac_dir" && ac_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10975 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10976 (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
10977 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10978 break 2
10979 fi
10980 fi
10981 done
10982 done
10983 IFS="$ac_save_IFS"
10984 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10985 ;;
10986esac
10987fi
10988XGETTEXT="$ac_cv_path_XGETTEXT"
10989if test "$XGETTEXT" != ":"; then
10990 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10991echo "${ECHO_T}$XGETTEXT" >&6
252b5132 10992else
d7040cdb
SE
10993 echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6
252b5132
RH
10995fi
10996
d7040cdb 10997 rm -f messages.po
5464f5a1 10998
252b5132 10999
d7040cdb
SE
11000# Prepare PATH_SEPARATOR.
11001# The user is always right.
11002if test "${PATH_SEPARATOR+set}" != set; then
11003 echo "#! /bin/sh" >conf$$.sh
11004 echo "exit 0" >>conf$$.sh
11005 chmod +x conf$$.sh
11006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11007 PATH_SEPARATOR=';'
11008 else
11009 PATH_SEPARATOR=:
11010 fi
11011 rm -f conf$$.sh
252b5132
RH
11012fi
11013
d7040cdb
SE
11014# Find out how to test for executable files. Don't use a zero-byte file,
11015# as systems may use methods other than mode bits to determine executability.
11016cat >conf$$.file <<_ASEOF
11017#! /bin/sh
11018exit 0
11019_ASEOF
11020chmod +x conf$$.file
11021if test -x conf$$.file >/dev/null 2>&1; then
11022 ac_executable_p="test -x"
5464f5a1 11023else
d7040cdb 11024 ac_executable_p="test -f"
20e95c23 11025fi
d7040cdb 11026rm -f conf$$.file
5464f5a1 11027
d7040cdb
SE
11028# Extract the first word of "msgmerge", so it can be a program name with args.
11029set dummy msgmerge; ac_word=$2
11030echo "$as_me:$LINENO: checking for $ac_word" >&5
11031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11032if test "${ac_cv_path_MSGMERGE+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 case "$MSGMERGE" in
11036 [\\/]* | ?:[\\/]*)
11037 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11038 ;;
11039 *)
11040 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11041 for ac_dir in $PATH; do
11042 IFS="$ac_save_IFS"
11043 test -z "$ac_dir" && ac_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11046 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11047 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11048 break 2
11049 fi
11050 fi
11051 done
11052 done
11053 IFS="$ac_save_IFS"
11054 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11055 ;;
11056esac
5464f5a1 11057fi
d7040cdb
SE
11058MSGMERGE="$ac_cv_path_MSGMERGE"
11059if test "$MSGMERGE" != ":"; then
11060 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11061echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 11062else
d7040cdb
SE
11063 echo "$as_me:$LINENO: result: no" >&5
11064echo "${ECHO_T}no" >&6
11065fi
20e95c23 11066
5464f5a1 11067
d7040cdb
SE
11068 if test "$GMSGFMT" != ":"; then
11069 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11070 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11071 : ;
11072 else
11073 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11074 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11075echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11076 GMSGFMT=":"
11077 fi
11078 fi
252b5132 11079
d7040cdb
SE
11080 if test "$XGETTEXT" != ":"; then
11081 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11082 (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
11083 : ;
11084 else
11085 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11086echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11087 XGETTEXT=":"
11088 fi
11089 rm -f messages.po
11090 fi
6be7c12c 11091
d7040cdb 11092 ac_config_commands="$ac_config_commands default-1"
5464f5a1 11093
252b5132 11094
5464f5a1 11095
d7040cdb
SE
11096# Permit host specific settings.
11097. ${srcdir}/configure.host
11098
11099
11100# Find a good install program. We prefer a C program (faster),
11101# so one script is as good as another. But avoid the broken or
11102# incompatible versions:
11103# SysV /etc/install, /usr/sbin/install
11104# SunOS /usr/etc/install
11105# IRIX /sbin/install
11106# AIX /bin/install
11107# AmigaOS /C/install, which installs bootblocks on floppy discs
11108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11109# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11111# OS/2's system install, which has a completely different semantic
11112# ./install, which can be erroneously created by make from ./install.sh.
11113echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11114echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11115if test -z "$INSTALL"; then
11116if test "${ac_cv_path_install+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11118else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
11124 # Account for people who put trailing slashes in PATH elements.
11125case $as_dir/ in
11126 ./ | .// | /cC/* | \
11127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11128 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11129 /usr/ucb/* ) ;;
11130 *)
11131 # OSF1 and SCO ODT 3.0 have their own names for install.
11132 # Don't use installbsd from OSF since it installs stuff as root
11133 # by default.
11134 for ac_prog in ginstall scoinst install; do
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11137 if test $ac_prog = install &&
11138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11139 # AIX install. It has an incompatible calling convention.
11140 :
11141 elif test $ac_prog = install &&
11142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11143 # program-specific install script used by HP pwplus--don't use.
11144 :
11145 else
11146 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11147 break 3
11148 fi
11149 fi
11150 done
11151 done
11152 ;;
11153esac
11154done
11155
252b5132 11156
d7040cdb
SE
11157fi
11158 if test "${ac_cv_path_install+set}" = set; then
11159 INSTALL=$ac_cv_path_install
11160 else
11161 # As a last resort, use the slow shell script. We don't cache a
11162 # path for INSTALL within a source directory, because that will
11163 # break other packages using the cache if that directory is
11164 # removed, or if the path is relative.
11165 INSTALL=$ac_install_sh
11166 fi
11167fi
11168echo "$as_me:$LINENO: result: $INSTALL" >&5
11169echo "${ECHO_T}$INSTALL" >&6
5464f5a1 11170
d7040cdb
SE
11171# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11172# It thinks the first close brace ends the variable substitution.
11173test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 11174
d7040cdb 11175test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 11176
d7040cdb 11177test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 11178
252b5132 11179
d7040cdb
SE
11180BFD_HOST_64BIT_LONG=0
11181BFD_HOST_LONG_LONG=0
11182BFD_HOST_64_BIT_DEFINED=0
11183BFD_HOST_64_BIT=
11184BFD_HOST_U_64_BIT=
6be7c12c 11185
d7040cdb
SE
11186echo "$as_me:$LINENO: checking for long long" >&5
11187echo $ECHO_N "checking for long long... $ECHO_C" >&6
11188if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 11189 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 11190else
5464f5a1
NN
11191 cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h. */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h. */
ec317fb1 11197
d7040cdb
SE
11198int
11199main ()
11200{
11201unsigned long long ll = 18446744073709551615ULL;
11202 ;
11203 return 0;
11204}
5464f5a1
NN
11205_ACEOF
11206rm -f conftest.$ac_objext
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
49c96104
SE
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
d7040cdb 11228 bfd_cv_has_long_long=yes
ec317fb1 11229else
5464f5a1
NN
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
d7040cdb 11233bfd_cv_has_long_long=no
ec317fb1 11234fi
5464f5a1 11235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
11236fi
11237
d7040cdb
SE
11238echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
11239echo "${ECHO_T}$bfd_cv_has_long_long" >&6
11240if test $bfd_cv_has_long_long = yes; then
11241 BFD_HOST_LONG_LONG=1
11242 echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
11243echo $ECHO_N "checking for long long... $ECHO_C" >&6
11244if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 11245 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11246else
5464f5a1
NN
11247 cat >conftest.$ac_ext <<_ACEOF
11248/* confdefs.h. */
11249_ACEOF
11250cat confdefs.h >>conftest.$ac_ext
11251cat >>conftest.$ac_ext <<_ACEOF
11252/* end confdefs.h. */
2ba49b59 11253$ac_includes_default
5464f5a1
NN
11254int
11255main ()
11256{
2ba49b59
KC
11257if ((long long *) 0)
11258 return 0;
11259if (sizeof (long long))
11260 return 0;
5464f5a1
NN
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265rm -f conftest.$ac_objext
11266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267 (eval $ac_compile) 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
49c96104
SE
11274 { ac_try='test -z "$ac_c_werror_flag"
11275 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
2ba49b59 11287 ac_cv_type_long_long=yes
6726e1ea 11288else
5464f5a1
NN
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
2ba49b59 11292ac_cv_type_long_long=no
6726e1ea 11293fi
5464f5a1 11294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 11295fi
2ba49b59
KC
11296echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11297echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 11298
2ba49b59
KC
11299echo "$as_me:$LINENO: checking size of long long" >&5
11300echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11301if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 11302 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 11303else
2ba49b59
KC
11304 if test "$ac_cv_type_long_long" = yes; then
11305 # The cast to unsigned long works around a bug in the HP C Compiler
11306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11308 # This bug is HP SR number 8606223364.
11309 if test "$cross_compiling" = yes; then
11310 # Depending upon the size, compute the lo and hi bounds.
11311cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
2ba49b59
KC
11317$ac_includes_default
11318int
11319main ()
11320{
11321static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11322test_array [0] = 0
6726e1ea 11323
2ba49b59
KC
11324 ;
11325 return 0;
11326}
11327_ACEOF
11328rm -f conftest.$ac_objext
11329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11330 (eval $ac_compile) 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
49c96104
SE
11337 { ac_try='test -z "$ac_c_werror_flag"
11338 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
11344 { ac_try='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 ac_lo=0 ac_mid=0
11351 while :; do
11352 cat >conftest.$ac_ext <<_ACEOF
11353/* confdefs.h. */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
11358$ac_includes_default
5464f5a1
NN
11359int
11360main ()
11361{
2ba49b59
KC
11362static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11363test_array [0] = 0
11364
5464f5a1
NN
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369rm -f conftest.$ac_objext
11370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11371 (eval $ac_compile) 2>conftest.er1
11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } &&
49c96104
SE
11378 { ac_try='test -z "$ac_c_werror_flag"
11379 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11385 { ac_try='test -s conftest.$ac_objext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
2ba49b59 11391 ac_hi=$ac_mid; break
6726e1ea 11392else
5464f5a1
NN
11393 echo "$as_me: failed program was:" >&5
11394sed 's/^/| /' conftest.$ac_ext >&5
11395
2ba49b59
KC
11396ac_lo=`expr $ac_mid + 1`
11397 if test $ac_lo -le $ac_mid; then
11398 ac_lo= ac_hi=
11399 break
11400 fi
11401 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 11402fi
5464f5a1 11403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 11404 done
252b5132 11405else
2ba49b59
KC
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 11408
5464f5a1
NN
11409cat >conftest.$ac_ext <<_ACEOF
11410/* confdefs.h. */
11411_ACEOF
11412cat confdefs.h >>conftest.$ac_ext
11413cat >>conftest.$ac_ext <<_ACEOF
11414/* end confdefs.h. */
11415$ac_includes_default
2ba49b59
KC
11416int
11417main ()
11418{
11419static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11420test_array [0] = 0
11421
11422 ;
11423 return 0;
11424}
5464f5a1
NN
11425_ACEOF
11426rm -f conftest.$ac_objext
11427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
49c96104
SE
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11442 { ac_try='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
2ba49b59
KC
11448 ac_hi=-1 ac_mid=-1
11449 while :; do
11450 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11451/* confdefs.h. */
11452_ACEOF
11453cat confdefs.h >>conftest.$ac_ext
11454cat >>conftest.$ac_ext <<_ACEOF
11455/* end confdefs.h. */
2ba49b59
KC
11456$ac_includes_default
11457int
11458main ()
11459{
11460static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11461test_array [0] = 0
11462
11463 ;
11464 return 0;
11465}
5464f5a1 11466_ACEOF
2ba49b59
KC
11467rm -f conftest.$ac_objext
11468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 11475 (exit $ac_status); } &&
49c96104
SE
11476 { ac_try='test -z "$ac_c_werror_flag"
11477 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_lo=$ac_mid; break
252b5132 11490else
2ba49b59
KC
11491 echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494ac_hi=`expr '(' $ac_mid ')' - 1`
11495 if test $ac_mid -le $ac_hi; then
11496 ac_lo= ac_hi=
11497 break
11498 fi
11499 ac_mid=`expr 2 '*' $ac_mid`
252b5132 11500fi
2ba49b59
KC
11501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11502 done
5464f5a1
NN
11503else
11504 echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
2ba49b59 11507ac_lo= ac_hi=
252b5132 11508fi
2ba49b59
KC
11509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11510fi
11511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512# Binary search between lo and hi bounds.
11513while test "x$ac_lo" != "x$ac_hi"; do
11514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11515 cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521$ac_includes_default
11522int
11523main ()
11524{
11525static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11526test_array [0] = 0
5464f5a1 11527
2ba49b59
KC
11528 ;
11529 return 0;
11530}
5464f5a1
NN
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
49c96104
SE
11541 { ac_try='test -z "$ac_c_werror_flag"
11542 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
2ba49b59 11554 ac_hi=$ac_mid
5464f5a1
NN
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
11558
2ba49b59 11559ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
11560fi
11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
11562done
11563case $ac_lo in
11564?*) ac_cv_sizeof_long_long=$ac_lo;;
11565'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11566See \`config.log' for more details." >&5
11567echo "$as_me: error: cannot compute sizeof (long long), 77
11568See \`config.log' for more details." >&2;}
11569 { (exit 1); exit 1; }; } ;;
11570esac
11571else
11572 if test "$cross_compiling" = yes; then
49c96104
SE
11573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11574See \`config.log' for more details." >&5
11575echo "$as_me: error: cannot run test program while cross compiling
11576See \`config.log' for more details." >&2;}
2ba49b59
KC
11577 { (exit 1); exit 1; }; }
11578else
11579 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11580/* confdefs.h. */
11581_ACEOF
11582cat confdefs.h >>conftest.$ac_ext
11583cat >>conftest.$ac_ext <<_ACEOF
11584/* end confdefs.h. */
2ba49b59
KC
11585$ac_includes_default
11586long longval () { return (long) (sizeof (long long)); }
11587unsigned long ulongval () { return (long) (sizeof (long long)); }
11588#include <stdio.h>
11589#include <stdlib.h>
11590int
11591main ()
11592{
11593
11594 FILE *f = fopen ("conftest.val", "w");
11595 if (! f)
11596 exit (1);
11597 if (((long) (sizeof (long long))) < 0)
11598 {
11599 long i = longval ();
11600 if (i != ((long) (sizeof (long long))))
11601 exit (1);
11602 fprintf (f, "%ld\n", i);
11603 }
11604 else
11605 {
11606 unsigned long i = ulongval ();
11607 if (i != ((long) (sizeof (long long))))
11608 exit (1);
11609 fprintf (f, "%lu\n", i);
11610 }
11611 exit (ferror (f) || fclose (f) != 0);
11612
11613 ;
11614 return 0;
11615}
5464f5a1 11616_ACEOF
2ba49b59
KC
11617rm -f conftest$ac_exeext
11618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>&5
5464f5a1 11620 ac_status=$?
5464f5a1 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
11622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 11629else
2ba49b59
KC
11630 echo "$as_me: program exited with status $ac_status" >&5
11631echo "$as_me: failed program was:" >&5
5464f5a1
NN
11632sed 's/^/| /' conftest.$ac_ext >&5
11633
2ba49b59
KC
11634( exit $ac_status )
11635{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11636See \`config.log' for more details." >&5
11637echo "$as_me: error: cannot compute sizeof (long long), 77
11638See \`config.log' for more details." >&2;}
11639 { (exit 1); exit 1; }; }
252b5132 11640fi
2ba49b59
KC
11641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11642fi
11643fi
11644rm -f conftest.val
6be7c12c 11645else
2ba49b59 11646 ac_cv_sizeof_long_long=0
5464f5a1 11647fi
5464f5a1 11648fi
2ba49b59
KC
11649echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11650echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11651cat >>confdefs.h <<_ACEOF
11652#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
11653_ACEOF
11654
5464f5a1 11655
2ba49b59 11656fi
252b5132 11657
2ba49b59
KC
11658echo "$as_me:$LINENO: checking for long" >&5
11659echo $ECHO_N "checking for long... $ECHO_C" >&6
11660if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663 cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h. */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */
2ba49b59 11669$ac_includes_default
5464f5a1
NN
11670int
11671main ()
11672{
2ba49b59
KC
11673if ((long *) 0)
11674 return 0;
11675if (sizeof (long))
11676 return 0;
5464f5a1
NN
11677 ;
11678 return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext
11682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11683 (eval $ac_compile) 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
49c96104
SE
11690 { ac_try='test -z "$ac_c_werror_flag"
11691 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11697 { ac_try='test -s conftest.$ac_objext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
2ba49b59 11703 ac_cv_type_long=yes
252b5132 11704else
5464f5a1
NN
11705 echo "$as_me: failed program was:" >&5
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
2ba49b59 11708ac_cv_type_long=no
252b5132 11709fi
5464f5a1 11710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11711fi
2ba49b59
KC
11712echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11713echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 11714
2ba49b59
KC
11715echo "$as_me:$LINENO: checking size of long" >&5
11716echo $ECHO_N "checking size of long... $ECHO_C" >&6
11717if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719else
2ba49b59
KC
11720 if test "$ac_cv_type_long" = yes; then
11721 # The cast to unsigned long works around a bug in the HP C Compiler
11722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11724 # This bug is HP SR number 8606223364.
11725 if test "$cross_compiling" = yes; then
11726 # Depending upon the size, compute the lo and hi bounds.
11727cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11728/* confdefs.h. */
11729_ACEOF
11730cat confdefs.h >>conftest.$ac_ext
11731cat >>conftest.$ac_ext <<_ACEOF
11732/* end confdefs.h. */
2ba49b59 11733$ac_includes_default
5464f5a1
NN
11734int
11735main ()
11736{
2ba49b59
KC
11737static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11738test_array [0] = 0
11739
5464f5a1
NN
11740 ;
11741 return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext
11745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
49c96104
SE
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
2ba49b59
KC
11766 ac_lo=0 ac_mid=0
11767 while :; do
11768 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11769/* confdefs.h. */
11770_ACEOF
11771cat confdefs.h >>conftest.$ac_ext
11772cat >>conftest.$ac_ext <<_ACEOF
11773/* end confdefs.h. */
2ba49b59 11774$ac_includes_default
5464f5a1
NN
11775int
11776main ()
11777{
2ba49b59
KC
11778static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11779test_array [0] = 0
11780
5464f5a1
NN
11781 ;
11782 return 0;
11783}
11784_ACEOF
2ba49b59
KC
11785rm -f conftest.$ac_objext
11786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
49c96104
SE
11794 { ac_try='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
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); }; } &&
2ba49b59 11801 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
2ba49b59 11807 ac_hi=$ac_mid; break
5464f5a1
NN
11808else
11809 echo "$as_me: failed program was:" >&5
11810sed 's/^/| /' conftest.$ac_ext >&5
11811
2ba49b59
KC
11812ac_lo=`expr $ac_mid + 1`
11813 if test $ac_lo -le $ac_mid; then
11814 ac_lo= ac_hi=
11815 break
11816 fi
11817 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 11818fi
2ba49b59
KC
11819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11820 done
11821else
11822 echo "$as_me: failed program was:" >&5
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
11825cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11826/* confdefs.h. */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h. */
2ba49b59 11831$ac_includes_default
5464f5a1
NN
11832int
11833main ()
11834{
2ba49b59
KC
11835static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11836test_array [0] = 0
11837
5464f5a1
NN
11838 ;
11839 return 0;
11840}
11841_ACEOF
2ba49b59
KC
11842rm -f conftest.$ac_objext
11843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11845 ac_status=$?
11846 grep -v '^ *+' conftest.er1 >conftest.err
11847 rm -f conftest.er1
11848 cat conftest.err >&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
49c96104
SE
11851 { ac_try='test -z "$ac_c_werror_flag"
11852 || test ! -s conftest.err'
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); }; } &&
2ba49b59 11858 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
2ba49b59
KC
11864 ac_hi=-1 ac_mid=-1
11865 while :; do
11866 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
2ba49b59 11872$ac_includes_default
5464f5a1
NN
11873int
11874main ()
11875{
2ba49b59
KC
11876static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11877test_array [0] = 0
11878
5464f5a1
NN
11879 ;
11880 return 0;
11881}
11882_ACEOF
2ba49b59
KC
11883rm -f conftest.$ac_objext
11884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
49c96104
SE
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
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); }; } &&
2ba49b59 11899 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
2ba49b59 11905 ac_lo=$ac_mid; break
5464f5a1
NN
11906else
11907 echo "$as_me: failed program was:" >&5
11908sed 's/^/| /' conftest.$ac_ext >&5
11909
2ba49b59
KC
11910ac_hi=`expr '(' $ac_mid ')' - 1`
11911 if test $ac_mid -le $ac_hi; then
11912 ac_lo= ac_hi=
11913 break
11914 fi
11915 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11916fi
2ba49b59
KC
11917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918 done
11919else
11920 echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923ac_lo= ac_hi=
11924fi
11925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928# Binary search between lo and hi bounds.
11929while test "x$ac_lo" != "x$ac_hi"; do
11930 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11931 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
2ba49b59 11937$ac_includes_default
5464f5a1
NN
11938int
11939main ()
11940{
2ba49b59
KC
11941static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11942test_array [0] = 0
11943
5464f5a1
NN
11944 ;
11945 return 0;
11946}
11947_ACEOF
2ba49b59
KC
11948rm -f conftest.$ac_objext
11949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11950 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
49c96104
SE
11957 { ac_try='test -z "$ac_c_werror_flag"
11958 || test ! -s conftest.err'
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); }; } &&
2ba49b59 11964 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966 (eval $ac_try) 2>&5
11967 ac_status=$?
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; }; then
2ba49b59 11970 ac_hi=$ac_mid
5464f5a1
NN
11971else
11972 echo "$as_me: failed program was:" >&5
11973sed 's/^/| /' conftest.$ac_ext >&5
11974
2ba49b59 11975ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 11976fi
2ba49b59
KC
11977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11978done
11979case $ac_lo in
11980?*) ac_cv_sizeof_long=$ac_lo;;
11981'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11982See \`config.log' for more details." >&5
11983echo "$as_me: error: cannot compute sizeof (long), 77
11984See \`config.log' for more details." >&2;}
11985 { (exit 1); exit 1; }; } ;;
11986esac
11987else
11988 if test "$cross_compiling" = yes; then
49c96104
SE
11989 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11990See \`config.log' for more details." >&5
11991echo "$as_me: error: cannot run test program while cross compiling
11992See \`config.log' for more details." >&2;}
2ba49b59 11993 { (exit 1); exit 1; }; }
2e0fbf77
JW
11994else
11995 cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
2ba49b59
KC
12001$ac_includes_default
12002long longval () { return (long) (sizeof (long)); }
12003unsigned long ulongval () { return (long) (sizeof (long)); }
12004#include <stdio.h>
12005#include <stdlib.h>
2e0fbf77
JW
12006int
12007main ()
12008{
12009
2ba49b59
KC
12010 FILE *f = fopen ("conftest.val", "w");
12011 if (! f)
12012 exit (1);
12013 if (((long) (sizeof (long))) < 0)
12014 {
12015 long i = longval ();
12016 if (i != ((long) (sizeof (long))))
12017 exit (1);
12018 fprintf (f, "%ld\n", i);
12019 }
12020 else
12021 {
12022 unsigned long i = ulongval ();
12023 if (i != ((long) (sizeof (long))))
12024 exit (1);
12025 fprintf (f, "%lu\n", i);
12026 }
12027 exit (ferror (f) || fclose (f) != 0);
12028
2e0fbf77
JW
12029 ;
12030 return 0;
12031}
12032_ACEOF
2ba49b59
KC
12033rm -f conftest$ac_exeext
12034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035 (eval $ac_link) 2>&5
2e0fbf77
JW
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
2ba49b59 12044 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 12045else
2ba49b59
KC
12046 echo "$as_me: program exited with status $ac_status" >&5
12047echo "$as_me: failed program was:" >&5
2e0fbf77
JW
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
2ba49b59
KC
12050( exit $ac_status )
12051{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12052See \`config.log' for more details." >&5
12053echo "$as_me: error: cannot compute sizeof (long), 77
12054See \`config.log' for more details." >&2;}
12055 { (exit 1); exit 1; }; }
2e0fbf77 12056fi
2ba49b59 12057rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 12058fi
2ba49b59
KC
12059fi
12060rm -f conftest.val
12061else
12062 ac_cv_sizeof_long=0
12063fi
12064fi
12065echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12066echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12067cat >>confdefs.h <<_ACEOF
12068#define SIZEOF_LONG $ac_cv_sizeof_long
12069_ACEOF
12070
12071
12072if test "x${ac_cv_sizeof_long}" = "x8"; then
12073 host64=true
12074 BFD_HOST_64BIT_LONG=1
12075 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12076 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12077elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12078 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12079 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12080fi
12081
12082if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12083 BFD_HOST_64_BIT_DEFINED=1
12084 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12085 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12086fi
12087
12088
12089
12090
12091
12092
12093
12094# Put a plausible default for CC_FOR_BUILD in Makefile.
12095if test -z "$CC_FOR_BUILD"; then
12096 if test "x$cross_compiling" = "xno"; then
12097 CC_FOR_BUILD='$(CC)'
12098 else
12099 CC_FOR_BUILD=gcc
12100 fi
12101fi
12102
12103# Also set EXEEXT_FOR_BUILD.
12104if test "x$cross_compiling" = "xno"; then
12105 EXEEXT_FOR_BUILD='$(EXEEXT)'
12106else
12107 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12108echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12109if test "${bfd_cv_build_exeext+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111else
12112 rm -f conftest*
12113 echo 'int main () { return 0; }' > conftest.c
12114 bfd_cv_build_exeext=
12115 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12116 for file in conftest.*; do
12117 case $file in
12118 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12119 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12120 esac
12121 done
12122 rm -f conftest*
12123 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12124fi
12125echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12126echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12127 EXEEXT_FOR_BUILD=""
12128 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12129fi
12130
12131
12132
12133
12134
12135
12136
12137
12138for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12139do
12140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12141if eval "test \"\${$as_ac_Header+set}\" = set"; then
12142 echo "$as_me:$LINENO: checking for $ac_header" >&5
12143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12144if eval "test \"\${$as_ac_Header+set}\" = set"; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146fi
12147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12149else
12150 # Is the header compilable?
12151echo "$as_me:$LINENO: checking $ac_header usability" >&5
12152echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12153cat >conftest.$ac_ext <<_ACEOF
12154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h. */
12159$ac_includes_default
12160#include <$ac_header>
12161_ACEOF
12162rm -f conftest.$ac_objext
12163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
49c96104
SE
12171 { ac_try='test -z "$ac_c_werror_flag"
12172 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_header_compiler=yes
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189ac_header_compiler=no
12190fi
12191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12192echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193echo "${ECHO_T}$ac_header_compiler" >&6
12194
12195# Is the header present?
12196echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12198cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204#include <$ac_header>
12205_ACEOF
12206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null; then
12214 if test -s conftest.err; then
12215 ac_cpp_err=$ac_c_preproc_warn_flag
12216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12217 else
12218 ac_cpp_err=
12219 fi
12220else
12221 ac_cpp_err=yes
12222fi
12223if test -z "$ac_cpp_err"; then
12224 ac_header_preproc=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 ac_header_preproc=no
12230fi
12231rm -f conftest.err conftest.$ac_ext
12232echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12233echo "${ECHO_T}$ac_header_preproc" >&6
12234
12235# So? What about this header?
12236case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12237 yes:no: )
12238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12239echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12241echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12242 ac_header_preproc=yes
12243 ;;
12244 no:yes:* )
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12246echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12248echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12250echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12252echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12254echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12256echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12257 (
12258 cat <<\_ASBOX
12259## ------------------------------------------ ##
12260## Report this to the AC_PACKAGE_NAME lists. ##
12261## ------------------------------------------ ##
12262_ASBOX
12263 ) |
12264 sed "s/^/$as_me: WARNING: /" >&2
12265 ;;
12266esac
12267echo "$as_me:$LINENO: checking for $ac_header" >&5
12268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12269if eval "test \"\${$as_ac_Header+set}\" = set"; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272 eval "$as_ac_Header=\$ac_header_preproc"
12273fi
12274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12276
12277fi
12278if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281_ACEOF
12282
12283fi
12284
12285done
12286
12287
12288
12289
12290for ac_header in fcntl.h sys/file.h sys/time.h
12291do
12292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12293if eval "test \"\${$as_ac_Header+set}\" = set"; then
12294 echo "$as_me:$LINENO: checking for $ac_header" >&5
12295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12296if eval "test \"\${$as_ac_Header+set}\" = set"; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298fi
12299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12301else
12302 # Is the header compilable?
12303echo "$as_me:$LINENO: checking $ac_header usability" >&5
12304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12305cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311$ac_includes_default
12312#include <$ac_header>
12313_ACEOF
12314rm -f conftest.$ac_objext
12315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
49c96104
SE
12323 { ac_try='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
12330 { ac_try='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_header_compiler=yes
12337else
12338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341ac_header_compiler=no
12342fi
12343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12345echo "${ECHO_T}$ac_header_compiler" >&6
12346
12347# Is the header present?
12348echo "$as_me:$LINENO: checking $ac_header presence" >&5
12349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12350cat >conftest.$ac_ext <<_ACEOF
12351/* confdefs.h. */
12352_ACEOF
12353cat confdefs.h >>conftest.$ac_ext
12354cat >>conftest.$ac_ext <<_ACEOF
12355/* end confdefs.h. */
12356#include <$ac_header>
12357_ACEOF
12358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } >/dev/null; then
12366 if test -s conftest.err; then
12367 ac_cpp_err=$ac_c_preproc_warn_flag
12368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12369 else
12370 ac_cpp_err=
12371 fi
12372else
12373 ac_cpp_err=yes
12374fi
12375if test -z "$ac_cpp_err"; then
12376 ac_header_preproc=yes
12377else
12378 echo "$as_me: failed program was:" >&5
12379sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_header_preproc=no
12382fi
12383rm -f conftest.err conftest.$ac_ext
12384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12385echo "${ECHO_T}$ac_header_preproc" >&6
12386
12387# So? What about this header?
12388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12389 yes:no: )
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12394 ac_header_preproc=yes
12395 ;;
12396 no:yes:* )
12397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12409 (
12410 cat <<\_ASBOX
12411## ------------------------------------------ ##
12412## Report this to the AC_PACKAGE_NAME lists. ##
12413## ------------------------------------------ ##
12414_ASBOX
12415 ) |
12416 sed "s/^/$as_me: WARNING: /" >&2
12417 ;;
12418esac
12419echo "$as_me:$LINENO: checking for $ac_header" >&5
12420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12421if eval "test \"\${$as_ac_Header+set}\" = set"; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423else
12424 eval "$as_ac_Header=\$ac_header_preproc"
12425fi
12426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12428
12429fi
12430if test `eval echo '${'$as_ac_Header'}'` = yes; then
12431 cat >>confdefs.h <<_ACEOF
12432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12433_ACEOF
12434
12435fi
12436
12437done
12438
d5efd9fc
AM
12439
12440
12441inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12442
12443acx_cv_header_stdint=stddef.h
12444acx_cv_header_stdint_kind="(already complete)"
12445for i in stdint.h $inttype_headers; do
12446 unset ac_cv_type_uintptr_t
12447 unset ac_cv_type_uintmax_t
12448 unset ac_cv_type_int_least32_t
12449 unset ac_cv_type_int_fast32_t
12450 unset ac_cv_type_uint64_t
12451 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12452 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12453echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12454if test "${ac_cv_type_uintmax_t+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457 cat >conftest.$ac_ext <<_ACEOF
12458/* confdefs.h. */
12459_ACEOF
12460cat confdefs.h >>conftest.$ac_ext
12461cat >>conftest.$ac_ext <<_ACEOF
12462/* end confdefs.h. */
12463#include <sys/types.h>
12464#include <$i>
12465
12466int
12467main ()
12468{
12469if ((uintmax_t *) 0)
12470 return 0;
12471if (sizeof (uintmax_t))
12472 return 0;
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
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); }; } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_type_uintmax_t=yes
12500else
12501 echo "$as_me: failed program was:" >&5
12502sed 's/^/| /' conftest.$ac_ext >&5
12503
12504ac_cv_type_uintmax_t=no
12505fi
12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507fi
12508echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12509echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12510if test $ac_cv_type_uintmax_t = yes; then
12511 acx_cv_header_stdint=$i
12512else
12513 continue
12514fi
12515
12516 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12517echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12518if test "${ac_cv_type_uintptr_t+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527#include <sys/types.h>
12528#include <$i>
12529
12530int
12531main ()
12532{
12533if ((uintptr_t *) 0)
12534 return 0;
12535if (sizeof (uintptr_t))
12536 return 0;
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
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); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_type_uintptr_t=yes
12564else
12565 echo "$as_me: failed program was:" >&5
12566sed 's/^/| /' conftest.$ac_ext >&5
12567
12568ac_cv_type_uintptr_t=no
12569fi
12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571fi
12572echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12573echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12574if test $ac_cv_type_uintptr_t = yes; then
12575 :
12576else
12577 acx_cv_header_stdint_kind="(mostly complete)"
12578fi
12579
12580 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12581echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12582if test "${ac_cv_type_int_least32_t+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584else
12585 cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h. */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h. */
12591#include <sys/types.h>
12592#include <$i>
12593
12594int
12595main ()
12596{
12597if ((int_least32_t *) 0)
12598 return 0;
12599if (sizeof (int_least32_t))
12600 return 0;
12601 ;
12602 return 0;
12603}
12604_ACEOF
12605rm -f conftest.$ac_objext
12606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -z "$ac_c_werror_flag"
12615 || test ! -s conftest.err'
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); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_type_int_least32_t=yes
12628else
12629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632ac_cv_type_int_least32_t=no
12633fi
12634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635fi
12636echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12637echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12638if test $ac_cv_type_int_least32_t = yes; then
12639 :
12640else
12641 acx_cv_header_stdint_kind="(mostly complete)"
12642fi
12643
12644 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12645echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12646if test "${ac_cv_type_int_fast32_t+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649 cat >conftest.$ac_ext <<_ACEOF
12650/* confdefs.h. */
12651_ACEOF
12652cat confdefs.h >>conftest.$ac_ext
12653cat >>conftest.$ac_ext <<_ACEOF
12654/* end confdefs.h. */
12655#include <sys/types.h>
12656#include <$i>
12657
12658int
12659main ()
12660{
12661if ((int_fast32_t *) 0)
12662 return 0;
12663if (sizeof (int_fast32_t))
12664 return 0;
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
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); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_cv_type_int_fast32_t=yes
12692else
12693 echo "$as_me: failed program was:" >&5
12694sed 's/^/| /' conftest.$ac_ext >&5
12695
12696ac_cv_type_int_fast32_t=no
12697fi
12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699fi
12700echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12701echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12702if test $ac_cv_type_int_fast32_t = yes; then
12703 :
12704else
12705 acx_cv_header_stdint_kind="(mostly complete)"
12706fi
12707
12708 echo "$as_me:$LINENO: checking for uint64_t" >&5
12709echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12710if test "${ac_cv_type_uint64_t+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712else
12713 cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719#include <sys/types.h>
12720#include <$i>
12721
12722int
12723main ()
12724{
12725if ((uint64_t *) 0)
12726 return 0;
12727if (sizeof (uint64_t))
12728 return 0;
12729 ;
12730 return 0;
12731}
12732_ACEOF
12733rm -f conftest.$ac_objext
12734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>conftest.er1
12736 ac_status=$?
12737 grep -v '^ *+' conftest.er1 >conftest.err
12738 rm -f conftest.er1
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try='test -z "$ac_c_werror_flag"
12743 || test ! -s conftest.err'
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); }; } &&
12749 { ac_try='test -s conftest.$ac_objext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_cv_type_uint64_t=yes
12756else
12757 echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760ac_cv_type_uint64_t=no
12761fi
12762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12763fi
12764echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12765echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12766if test $ac_cv_type_uint64_t = yes; then
12767 :
12768else
12769 acx_cv_header_stdint_kind="(lacks uint64_t)"
12770fi
12771
12772 break
12773done
12774if test "$acx_cv_header_stdint" = stddef.h; then
12775 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12776 for i in stdint.h $inttype_headers; do
12777 unset ac_cv_type_uintptr_t
12778 unset ac_cv_type_uint32_t
12779 unset ac_cv_type_uint64_t
12780 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12781 echo "$as_me:$LINENO: checking for uint32_t" >&5
12782echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12783if test "${ac_cv_type_uint32_t+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12785else
12786 cat >conftest.$ac_ext <<_ACEOF
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
12792#include <sys/types.h>
12793#include <$i>
12794
12795int
12796main ()
12797{
12798if ((uint32_t *) 0)
12799 return 0;
12800if (sizeof (uint32_t))
12801 return 0;
12802 ;
12803 return 0;
12804}
12805_ACEOF
12806rm -f conftest.$ac_objext
12807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag"
12816 || test ! -s conftest.err'
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); }; } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12825 ac_status=$?
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_type_uint32_t=yes
12829else
12830 echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
12833ac_cv_type_uint32_t=no
12834fi
12835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12836fi
12837echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12838echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12839if test $ac_cv_type_uint32_t = yes; then
12840 acx_cv_header_stdint=$i
12841else
12842 continue
12843fi
12844
12845 echo "$as_me:$LINENO: checking for uint64_t" >&5
12846echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12847if test "${ac_cv_type_uint64_t+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850 cat >conftest.$ac_ext <<_ACEOF
12851/* confdefs.h. */
12852_ACEOF
12853cat confdefs.h >>conftest.$ac_ext
12854cat >>conftest.$ac_ext <<_ACEOF
12855/* end confdefs.h. */
12856#include <sys/types.h>
12857#include <$i>
12858
12859int
12860main ()
12861{
12862if ((uint64_t *) 0)
12863 return 0;
12864if (sizeof (uint64_t))
12865 return 0;
12866 ;
12867 return 0;
12868}
12869_ACEOF
12870rm -f conftest.$ac_objext
12871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872 (eval $ac_compile) 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag"
12880 || test ! -s conftest.err'
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); }; } &&
12886 { ac_try='test -s conftest.$ac_objext'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12889 ac_status=$?
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }; then
12892 ac_cv_type_uint64_t=yes
12893else
12894 echo "$as_me: failed program was:" >&5
12895sed 's/^/| /' conftest.$ac_ext >&5
12896
12897ac_cv_type_uint64_t=no
12898fi
12899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12900fi
12901echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12902echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12903
12904 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12905echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12906if test "${ac_cv_type_uintptr_t+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908else
12909 cat >conftest.$ac_ext <<_ACEOF
12910/* confdefs.h. */
12911_ACEOF
12912cat confdefs.h >>conftest.$ac_ext
12913cat >>conftest.$ac_ext <<_ACEOF
12914/* end confdefs.h. */
12915#include <sys/types.h>
12916#include <$i>
12917
12918int
12919main ()
12920{
12921if ((uintptr_t *) 0)
12922 return 0;
12923if (sizeof (uintptr_t))
12924 return 0;
12925 ;
12926 return 0;
12927}
12928_ACEOF
12929rm -f conftest.$ac_objext
12930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>conftest.er1
12932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
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); }; } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_cv_type_uintptr_t=yes
12952else
12953 echo "$as_me: failed program was:" >&5
12954sed 's/^/| /' conftest.$ac_ext >&5
12955
12956ac_cv_type_uintptr_t=no
12957fi
12958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12959fi
12960echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12961echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12962
12963 break
12964 done
12965fi
12966if test "$acx_cv_header_stdint" = stddef.h; then
12967 acx_cv_header_stdint_kind="(u_intXX_t style)"
12968 for i in sys/types.h $inttype_headers; do
12969 unset ac_cv_type_u_int32_t
12970 unset ac_cv_type_u_int64_t
12971 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12972 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12973echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12974if test "${ac_cv_type_u_int32_t+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976else
12977 cat >conftest.$ac_ext <<_ACEOF
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h. */
12983#include <sys/types.h>
12984#include <$i>
12985
12986int
12987main ()
12988{
12989if ((u_int32_t *) 0)
12990 return 0;
12991if (sizeof (u_int32_t))
12992 return 0;
12993 ;
12994 return 0;
12995}
12996_ACEOF
12997rm -f conftest.$ac_objext
12998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12999 (eval $ac_compile) 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag"
13007 || test ! -s conftest.err'
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); }; } &&
13013 { ac_try='test -s conftest.$ac_objext'
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_type_u_int32_t=yes
13020else
13021 echo "$as_me: failed program was:" >&5
13022sed 's/^/| /' conftest.$ac_ext >&5
13023
13024ac_cv_type_u_int32_t=no
13025fi
13026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13027fi
13028echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13029echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13030if test $ac_cv_type_u_int32_t = yes; then
13031 acx_cv_header_stdint=$i
13032else
13033 continue
13034fi
13035
13036 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13037echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13038if test "${ac_cv_type_u_int64_t+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
13041 cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047#include <sys/types.h>
13048#include <$i>
13049
13050int
13051main ()
13052{
13053if ((u_int64_t *) 0)
13054 return 0;
13055if (sizeof (u_int64_t))
13056 return 0;
13057 ;
13058 return 0;
13059}
13060_ACEOF
13061rm -f conftest.$ac_objext
13062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag"
13071 || test ! -s conftest.err'
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); }; } &&
13077 { ac_try='test -s conftest.$ac_objext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_type_u_int64_t=yes
13084else
13085 echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
13087
13088ac_cv_type_u_int64_t=no
13089fi
13090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13091fi
13092echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13093echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13094
13095 break
13096 done
13097fi
13098if test "$acx_cv_header_stdint" = stddef.h; then
13099 acx_cv_header_stdint_kind="(using manual detection)"
13100fi
13101
13102test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13103test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13104test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13105test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13106test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13107
13108# ----------------- Summarize what we found so far
13109
13110echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13111echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13112
13113case `$as_basename bfd_stdint.h ||
13114$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13115 Xbfd_stdint.h : 'X\(//\)$' \| \
13116 Xbfd_stdint.h : 'X\(/\)$' \| \
13117 . : '\(.\)' 2>/dev/null ||
13118echo X/bfd_stdint.h |
13119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13120 /^X\/\(\/\/\)$/{ s//\1/; q; }
13121 /^X\/\(\/\).*/{ s//\1/; q; }
13122 s/.*/./; q'` in
13123 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13124echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13125 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13126echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13127 *) ;;
13128esac
13129
13130echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13131echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13132
13133# ----------------- done included file, check C basic types --------
13134
13135# Lacking an uintptr_t? Test size of void *
13136case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13137 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13138echo $ECHO_N "checking for void *... $ECHO_C" >&6
13139if test "${ac_cv_type_void_p+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else
13142 cat >conftest.$ac_ext <<_ACEOF
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
13148$ac_includes_default
13149int
13150main ()
13151{
13152if ((void * *) 0)
13153 return 0;
13154if (sizeof (void *))
13155 return 0;
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160rm -f conftest.$ac_objext
13161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>conftest.er1
13163 ac_status=$?
13164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_c_werror_flag"
13170 || test ! -s conftest.err'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } &&
13176 { ac_try='test -s conftest.$ac_objext'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_cv_type_void_p=yes
13183else
13184 echo "$as_me: failed program was:" >&5
13185sed 's/^/| /' conftest.$ac_ext >&5
13186
13187ac_cv_type_void_p=no
13188fi
13189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13190fi
13191echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13192echo "${ECHO_T}$ac_cv_type_void_p" >&6
13193
13194echo "$as_me:$LINENO: checking size of void *" >&5
13195echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13196if test "${ac_cv_sizeof_void_p+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
13199 if test "$ac_cv_type_void_p" = yes; then
13200 # The cast to unsigned long works around a bug in the HP C Compiler
13201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13203 # This bug is HP SR number 8606223364.
13204 if test "$cross_compiling" = yes; then
13205 # Depending upon the size, compute the lo and hi bounds.
13206cat >conftest.$ac_ext <<_ACEOF
13207/* confdefs.h. */
13208_ACEOF
13209cat confdefs.h >>conftest.$ac_ext
13210cat >>conftest.$ac_ext <<_ACEOF
13211/* end confdefs.h. */
13212$ac_includes_default
13213int
13214main ()
13215{
13216static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13217test_array [0] = 0
13218
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223rm -f conftest.$ac_objext
13224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225 (eval $ac_compile) 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } &&
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
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); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13245 ac_lo=0 ac_mid=0
13246 while :; do
13247 cat >conftest.$ac_ext <<_ACEOF
13248/* confdefs.h. */
13249_ACEOF
13250cat confdefs.h >>conftest.$ac_ext
13251cat >>conftest.$ac_ext <<_ACEOF
13252/* end confdefs.h. */
13253$ac_includes_default
13254int
13255main ()
13256{
13257static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13258test_array [0] = 0
13259
13260 ;
13261 return 0;
13262}
13263_ACEOF
13264rm -f conftest.$ac_objext
13265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag"
13274 || test ! -s conftest.err'
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); }; } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_hi=$ac_mid; break
13287else
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291ac_lo=`expr $ac_mid + 1`
13292 if test $ac_lo -le $ac_mid; then
13293 ac_lo= ac_hi=
13294 break
13295 fi
13296 ac_mid=`expr 2 '*' $ac_mid + 1`
13297fi
13298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13299 done
13300else
13301 echo "$as_me: failed program was:" >&5
13302sed 's/^/| /' conftest.$ac_ext >&5
13303
13304cat >conftest.$ac_ext <<_ACEOF
13305/* confdefs.h. */
13306_ACEOF
13307cat confdefs.h >>conftest.$ac_ext
13308cat >>conftest.$ac_ext <<_ACEOF
13309/* end confdefs.h. */
13310$ac_includes_default
13311int
13312main ()
13313{
13314static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13315test_array [0] = 0
13316
13317 ;
13318 return 0;
13319}
13320_ACEOF
13321rm -f conftest.$ac_objext
13322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13323 (eval $ac_compile) 2>conftest.er1
13324 ac_status=$?
13325 grep -v '^ *+' conftest.er1 >conftest.err
13326 rm -f conftest.er1
13327 cat conftest.err >&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } &&
13330 { ac_try='test -z "$ac_c_werror_flag"
13331 || test ! -s conftest.err'
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); }; } &&
13337 { ac_try='test -s conftest.$ac_objext'
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
13343 ac_hi=-1 ac_mid=-1
13344 while :; do
13345 cat >conftest.$ac_ext <<_ACEOF
13346/* confdefs.h. */
13347_ACEOF
13348cat confdefs.h >>conftest.$ac_ext
13349cat >>conftest.$ac_ext <<_ACEOF
13350/* end confdefs.h. */
13351$ac_includes_default
13352int
13353main ()
13354{
13355static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13356test_array [0] = 0
13357
13358 ;
13359 return 0;
13360}
13361_ACEOF
13362rm -f conftest.$ac_objext
13363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -z "$ac_c_werror_flag"
13372 || test ! -s conftest.err'
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); }; } &&
13378 { ac_try='test -s conftest.$ac_objext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 ac_lo=$ac_mid; break
13385else
13386 echo "$as_me: failed program was:" >&5
13387sed 's/^/| /' conftest.$ac_ext >&5
13388
13389ac_hi=`expr '(' $ac_mid ')' - 1`
13390 if test $ac_mid -le $ac_hi; then
13391 ac_lo= ac_hi=
13392 break
13393 fi
13394 ac_mid=`expr 2 '*' $ac_mid`
13395fi
13396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13397 done
13398else
13399 echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402ac_lo= ac_hi=
13403fi
13404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405fi
13406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13407# Binary search between lo and hi bounds.
13408while test "x$ac_lo" != "x$ac_hi"; do
13409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13410 cat >conftest.$ac_ext <<_ACEOF
13411/* confdefs.h. */
13412_ACEOF
13413cat confdefs.h >>conftest.$ac_ext
13414cat >>conftest.$ac_ext <<_ACEOF
13415/* end confdefs.h. */
13416$ac_includes_default
13417int
13418main ()
13419{
13420static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13421test_array [0] = 0
13422
13423 ;
13424 return 0;
13425}
13426_ACEOF
13427rm -f conftest.$ac_objext
13428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429 (eval $ac_compile) 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag"
13437 || test ! -s conftest.err'
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); }; } &&
13443 { ac_try='test -s conftest.$ac_objext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13449 ac_hi=$ac_mid
13450else
13451 echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454ac_lo=`expr '(' $ac_mid ')' + 1`
13455fi
13456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13457done
13458case $ac_lo in
13459?*) ac_cv_sizeof_void_p=$ac_lo;;
13460'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13461See \`config.log' for more details." >&5
13462echo "$as_me: error: cannot compute sizeof (void *), 77
13463See \`config.log' for more details." >&2;}
13464 { (exit 1); exit 1; }; } ;;
13465esac
13466else
13467 if test "$cross_compiling" = yes; then
13468 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13469See \`config.log' for more details." >&5
13470echo "$as_me: error: cannot run test program while cross compiling
13471See \`config.log' for more details." >&2;}
13472 { (exit 1); exit 1; }; }
13473else
13474 cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480$ac_includes_default
13481long longval () { return (long) (sizeof (void *)); }
13482unsigned long ulongval () { return (long) (sizeof (void *)); }
13483#include <stdio.h>
13484#include <stdlib.h>
13485int
13486main ()
13487{
13488
13489 FILE *f = fopen ("conftest.val", "w");
13490 if (! f)
13491 exit (1);
13492 if (((long) (sizeof (void *))) < 0)
13493 {
13494 long i = longval ();
13495 if (i != ((long) (sizeof (void *))))
13496 exit (1);
13497 fprintf (f, "%ld\n", i);
13498 }
13499 else
13500 {
13501 unsigned long i = ulongval ();
13502 if (i != ((long) (sizeof (void *))))
13503 exit (1);
13504 fprintf (f, "%lu\n", i);
13505 }
13506 exit (ferror (f) || fclose (f) != 0);
13507
13508 ;
13509 return 0;
13510}
13511_ACEOF
13512rm -f conftest$ac_exeext
13513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13520 ac_status=$?
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_sizeof_void_p=`cat conftest.val`
13524else
13525 echo "$as_me: program exited with status $ac_status" >&5
13526echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529( exit $ac_status )
13530{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13531See \`config.log' for more details." >&5
13532echo "$as_me: error: cannot compute sizeof (void *), 77
13533See \`config.log' for more details." >&2;}
13534 { (exit 1); exit 1; }; }
13535fi
13536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13537fi
13538fi
13539rm -f conftest.val
13540else
13541 ac_cv_sizeof_void_p=0
13542fi
13543fi
13544echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13545echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13546cat >>confdefs.h <<_ACEOF
13547#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13548_ACEOF
13549
13550 ;;
13551esac
13552
13553# Lacking an uint64_t? Test size of long
13554case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13555 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13556echo $ECHO_N "checking for long... $ECHO_C" >&6
13557if test "${ac_cv_type_long+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559else
13560 cat >conftest.$ac_ext <<_ACEOF
13561/* confdefs.h. */
13562_ACEOF
13563cat confdefs.h >>conftest.$ac_ext
13564cat >>conftest.$ac_ext <<_ACEOF
13565/* end confdefs.h. */
13566$ac_includes_default
13567int
13568main ()
13569{
13570if ((long *) 0)
13571 return 0;
13572if (sizeof (long))
13573 return 0;
13574 ;
13575 return 0;
13576}
13577_ACEOF
13578rm -f conftest.$ac_objext
13579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
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); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_cv_type_long=yes
13601else
13602 echo "$as_me: failed program was:" >&5
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
13605ac_cv_type_long=no
13606fi
13607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13608fi
13609echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13610echo "${ECHO_T}$ac_cv_type_long" >&6
13611
13612echo "$as_me:$LINENO: checking size of long" >&5
13613echo $ECHO_N "checking size of long... $ECHO_C" >&6
13614if test "${ac_cv_sizeof_long+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617 if test "$ac_cv_type_long" = yes; then
13618 # The cast to unsigned long works around a bug in the HP C Compiler
13619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13621 # This bug is HP SR number 8606223364.
13622 if test "$cross_compiling" = yes; then
13623 # Depending upon the size, compute the lo and hi bounds.
13624cat >conftest.$ac_ext <<_ACEOF
13625/* confdefs.h. */
13626_ACEOF
13627cat confdefs.h >>conftest.$ac_ext
13628cat >>conftest.$ac_ext <<_ACEOF
13629/* end confdefs.h. */
13630$ac_includes_default
13631int
13632main ()
13633{
13634static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13635test_array [0] = 0
13636
13637 ;
13638 return 0;
13639}
13640_ACEOF
13641rm -f conftest.$ac_objext
13642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>conftest.er1
13644 ac_status=$?
13645 grep -v '^ *+' conftest.er1 >conftest.err
13646 rm -f conftest.er1
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -z "$ac_c_werror_flag"
13651 || test ! -s conftest.err'
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); }; } &&
13657 { ac_try='test -s conftest.$ac_objext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663 ac_lo=0 ac_mid=0
13664 while :; do
13665 cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671$ac_includes_default
13672int
13673main ()
13674{
13675static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13676test_array [0] = 0
13677
13678 ;
13679 return 0;
13680}
13681_ACEOF
13682rm -f conftest.$ac_objext
13683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684 (eval $ac_compile) 2>conftest.er1
13685 ac_status=$?
13686 grep -v '^ *+' conftest.er1 >conftest.err
13687 rm -f conftest.er1
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag"
13692 || test ! -s conftest.err'
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); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_hi=$ac_mid; break
13705else
13706 echo "$as_me: failed program was:" >&5
13707sed 's/^/| /' conftest.$ac_ext >&5
13708
13709ac_lo=`expr $ac_mid + 1`
13710 if test $ac_lo -le $ac_mid; then
13711 ac_lo= ac_hi=
13712 break
13713 fi
13714 ac_mid=`expr 2 '*' $ac_mid + 1`
13715fi
13716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13717 done
13718else
13719 echo "$as_me: failed program was:" >&5
13720sed 's/^/| /' conftest.$ac_ext >&5
13721
13722cat >conftest.$ac_ext <<_ACEOF
13723/* confdefs.h. */
13724_ACEOF
13725cat confdefs.h >>conftest.$ac_ext
13726cat >>conftest.$ac_ext <<_ACEOF
13727/* end confdefs.h. */
13728$ac_includes_default
13729int
13730main ()
13731{
13732static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13733test_array [0] = 0
13734
13735 ;
13736 return 0;
13737}
13738_ACEOF
13739rm -f conftest.$ac_objext
13740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag"
13749 || test ! -s conftest.err'
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); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_hi=-1 ac_mid=-1
13762 while :; do
13763 cat >conftest.$ac_ext <<_ACEOF
13764/* confdefs.h. */
13765_ACEOF
13766cat confdefs.h >>conftest.$ac_ext
13767cat >>conftest.$ac_ext <<_ACEOF
13768/* end confdefs.h. */
13769$ac_includes_default
13770int
13771main ()
13772{
13773static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13774test_array [0] = 0
13775
13776 ;
13777 return 0;
13778}
13779_ACEOF
13780rm -f conftest.$ac_objext
13781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>conftest.er1
13783 ac_status=$?
13784 grep -v '^ *+' conftest.er1 >conftest.err
13785 rm -f conftest.er1
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } &&
13789 { ac_try='test -z "$ac_c_werror_flag"
13790 || test ! -s conftest.err'
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); }; } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_lo=$ac_mid; break
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807ac_hi=`expr '(' $ac_mid ')' - 1`
13808 if test $ac_mid -le $ac_hi; then
13809 ac_lo= ac_hi=
13810 break
13811 fi
13812 ac_mid=`expr 2 '*' $ac_mid`
13813fi
13814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13815 done
13816else
13817 echo "$as_me: failed program was:" >&5
13818sed 's/^/| /' conftest.$ac_ext >&5
13819
13820ac_lo= ac_hi=
13821fi
13822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13823fi
13824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13825# Binary search between lo and hi bounds.
13826while test "x$ac_lo" != "x$ac_hi"; do
13827 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13828 cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h. */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h. */
13834$ac_includes_default
13835int
13836main ()
13837{
13838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13839test_array [0] = 0
13840
13841 ;
13842 return 0;
13843}
13844_ACEOF
13845rm -f conftest.$ac_objext
13846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag"
13855 || test ! -s conftest.err'
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); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_hi=$ac_mid
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
13872ac_lo=`expr '(' $ac_mid ')' + 1`
13873fi
13874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13875done
13876case $ac_lo in
13877?*) ac_cv_sizeof_long=$ac_lo;;
13878'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13879See \`config.log' for more details." >&5
13880echo "$as_me: error: cannot compute sizeof (long), 77
13881See \`config.log' for more details." >&2;}
13882 { (exit 1); exit 1; }; } ;;
13883esac
13884else
13885 if test "$cross_compiling" = yes; then
13886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13887See \`config.log' for more details." >&5
13888echo "$as_me: error: cannot run test program while cross compiling
13889See \`config.log' for more details." >&2;}
13890 { (exit 1); exit 1; }; }
13891else
13892 cat >conftest.$ac_ext <<_ACEOF
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898$ac_includes_default
13899long longval () { return (long) (sizeof (long)); }
13900unsigned long ulongval () { return (long) (sizeof (long)); }
13901#include <stdio.h>
13902#include <stdlib.h>
13903int
13904main ()
13905{
13906
13907 FILE *f = fopen ("conftest.val", "w");
13908 if (! f)
13909 exit (1);
13910 if (((long) (sizeof (long))) < 0)
13911 {
13912 long i = longval ();
13913 if (i != ((long) (sizeof (long))))
13914 exit (1);
13915 fprintf (f, "%ld\n", i);
13916 }
13917 else
13918 {
13919 unsigned long i = ulongval ();
13920 if (i != ((long) (sizeof (long))))
13921 exit (1);
13922 fprintf (f, "%lu\n", i);
13923 }
13924 exit (ferror (f) || fclose (f) != 0);
13925
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930rm -f conftest$ac_exeext
13931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_cv_sizeof_long=`cat conftest.val`
13942else
13943 echo "$as_me: program exited with status $ac_status" >&5
13944echo "$as_me: failed program was:" >&5
13945sed 's/^/| /' conftest.$ac_ext >&5
13946
13947( exit $ac_status )
13948{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13949See \`config.log' for more details." >&5
13950echo "$as_me: error: cannot compute sizeof (long), 77
13951See \`config.log' for more details." >&2;}
13952 { (exit 1); exit 1; }; }
13953fi
13954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13955fi
13956fi
13957rm -f conftest.val
13958else
13959 ac_cv_sizeof_long=0
13960fi
13961fi
13962echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13963echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13964cat >>confdefs.h <<_ACEOF
13965#define SIZEOF_LONG $ac_cv_sizeof_long
13966_ACEOF
13967
13968 ;;
13969esac
13970
13971if test $acx_cv_header_stdint = stddef.h; then
13972 # Lacking a good header? Test size of everything and deduce all types.
13973 echo "$as_me:$LINENO: checking for int" >&5
13974echo $ECHO_N "checking for int... $ECHO_C" >&6
13975if test "${ac_cv_type_int+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
13984$ac_includes_default
13985int
13986main ()
13987{
13988if ((int *) 0)
13989 return 0;
13990if (sizeof (int))
13991 return 0;
13992 ;
13993 return 0;
13994}
13995_ACEOF
13996rm -f conftest.$ac_objext
13997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998 (eval $ac_compile) 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try='test -z "$ac_c_werror_flag"
14006 || test ! -s conftest.err'
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); }; } &&
14012 { ac_try='test -s conftest.$ac_objext'
14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_type_int=yes
14019else
14020 echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023ac_cv_type_int=no
14024fi
14025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14026fi
14027echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14028echo "${ECHO_T}$ac_cv_type_int" >&6
14029
14030echo "$as_me:$LINENO: checking size of int" >&5
14031echo $ECHO_N "checking size of int... $ECHO_C" >&6
14032if test "${ac_cv_sizeof_int+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035 if test "$ac_cv_type_int" = yes; then
14036 # The cast to unsigned long works around a bug in the HP C Compiler
14037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14039 # This bug is HP SR number 8606223364.
14040 if test "$cross_compiling" = yes; then
14041 # Depending upon the size, compute the lo and hi bounds.
14042cat >conftest.$ac_ext <<_ACEOF
14043/* confdefs.h. */
14044_ACEOF
14045cat confdefs.h >>conftest.$ac_ext
14046cat >>conftest.$ac_ext <<_ACEOF
14047/* end confdefs.h. */
14048$ac_includes_default
14049int
14050main ()
14051{
14052static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14053test_array [0] = 0
14054
14055 ;
14056 return 0;
14057}
14058_ACEOF
14059rm -f conftest.$ac_objext
14060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061 (eval $ac_compile) 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag"
14069 || test ! -s conftest.err'
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); }; } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 ac_lo=0 ac_mid=0
14082 while :; do
14083 cat >conftest.$ac_ext <<_ACEOF
14084/* confdefs.h. */
14085_ACEOF
14086cat confdefs.h >>conftest.$ac_ext
14087cat >>conftest.$ac_ext <<_ACEOF
14088/* end confdefs.h. */
14089$ac_includes_default
14090int
14091main ()
14092{
14093static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14094test_array [0] = 0
14095
14096 ;
14097 return 0;
14098}
14099_ACEOF
14100rm -f conftest.$ac_objext
14101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_c_werror_flag"
14110 || test ! -s conftest.err'
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); }; } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_hi=$ac_mid; break
14123else
14124 echo "$as_me: failed program was:" >&5
14125sed 's/^/| /' conftest.$ac_ext >&5
14126
14127ac_lo=`expr $ac_mid + 1`
14128 if test $ac_lo -le $ac_mid; then
14129 ac_lo= ac_hi=
14130 break
14131 fi
14132 ac_mid=`expr 2 '*' $ac_mid + 1`
14133fi
14134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14135 done
14136else
14137 echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h. */
14146$ac_includes_default
14147int
14148main ()
14149{
14150static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14151test_array [0] = 0
14152
14153 ;
14154 return 0;
14155}
14156_ACEOF
14157rm -f conftest.$ac_objext
14158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159 (eval $ac_compile) 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
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); }; } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_hi=-1 ac_mid=-1
14180 while :; do
14181 cat >conftest.$ac_ext <<_ACEOF
14182/* confdefs.h. */
14183_ACEOF
14184cat confdefs.h >>conftest.$ac_ext
14185cat >>conftest.$ac_ext <<_ACEOF
14186/* end confdefs.h. */
14187$ac_includes_default
14188int
14189main ()
14190{
14191static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14192test_array [0] = 0
14193
14194 ;
14195 return 0;
14196}
14197_ACEOF
14198rm -f conftest.$ac_objext
14199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } &&
14207 { ac_try='test -z "$ac_c_werror_flag"
14208 || test ! -s conftest.err'
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); }; } &&
14214 { ac_try='test -s conftest.$ac_objext'
14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 ac_lo=$ac_mid; break
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225ac_hi=`expr '(' $ac_mid ')' - 1`
14226 if test $ac_mid -le $ac_hi; then
14227 ac_lo= ac_hi=
14228 break
14229 fi
14230 ac_mid=`expr 2 '*' $ac_mid`
14231fi
14232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14233 done
14234else
14235 echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
14237
14238ac_lo= ac_hi=
14239fi
14240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14241fi
14242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14243# Binary search between lo and hi bounds.
14244while test "x$ac_lo" != "x$ac_hi"; do
14245 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14246 cat >conftest.$ac_ext <<_ACEOF
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
14251/* end confdefs.h. */
14252$ac_includes_default
14253int
14254main ()
14255{
14256static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14257test_array [0] = 0
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext
14264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -z "$ac_c_werror_flag"
14273 || test ! -s conftest.err'
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); }; } &&
14279 { ac_try='test -s conftest.$ac_objext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_hi=$ac_mid
14286else
14287 echo "$as_me: failed program was:" >&5
14288sed 's/^/| /' conftest.$ac_ext >&5
14289
14290ac_lo=`expr '(' $ac_mid ')' + 1`
14291fi
14292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14293done
14294case $ac_lo in
14295?*) ac_cv_sizeof_int=$ac_lo;;
14296'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14297See \`config.log' for more details." >&5
14298echo "$as_me: error: cannot compute sizeof (int), 77
14299See \`config.log' for more details." >&2;}
14300 { (exit 1); exit 1; }; } ;;
14301esac
14302else
14303 if test "$cross_compiling" = yes; then
14304 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14305See \`config.log' for more details." >&5
14306echo "$as_me: error: cannot run test program while cross compiling
14307See \`config.log' for more details." >&2;}
14308 { (exit 1); exit 1; }; }
14309else
14310 cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h. */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h. */
14316$ac_includes_default
14317long longval () { return (long) (sizeof (int)); }
14318unsigned long ulongval () { return (long) (sizeof (int)); }
14319#include <stdio.h>
14320#include <stdlib.h>
14321int
14322main ()
14323{
14324
14325 FILE *f = fopen ("conftest.val", "w");
14326 if (! f)
14327 exit (1);
14328 if (((long) (sizeof (int))) < 0)
14329 {
14330 long i = longval ();
14331 if (i != ((long) (sizeof (int))))
14332 exit (1);
14333 fprintf (f, "%ld\n", i);
14334 }
14335 else
14336 {
14337 unsigned long i = ulongval ();
14338 if (i != ((long) (sizeof (int))))
14339 exit (1);
14340 fprintf (f, "%lu\n", i);
14341 }
14342 exit (ferror (f) || fclose (f) != 0);
14343
14344 ;
14345 return 0;
14346}
14347_ACEOF
14348rm -f conftest$ac_exeext
14349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_cv_sizeof_int=`cat conftest.val`
14360else
14361 echo "$as_me: program exited with status $ac_status" >&5
14362echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
14365( exit $ac_status )
14366{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14367See \`config.log' for more details." >&5
14368echo "$as_me: error: cannot compute sizeof (int), 77
14369See \`config.log' for more details." >&2;}
14370 { (exit 1); exit 1; }; }
14371fi
14372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373fi
14374fi
14375rm -f conftest.val
14376else
14377 ac_cv_sizeof_int=0
14378fi
14379fi
14380echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14381echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14382cat >>confdefs.h <<_ACEOF
14383#define SIZEOF_INT $ac_cv_sizeof_int
14384_ACEOF
14385
14386
14387 echo "$as_me:$LINENO: checking for short" >&5
14388echo $ECHO_N "checking for short... $ECHO_C" >&6
14389if test "${ac_cv_type_short+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14391else
14392 cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
14397/* end confdefs.h. */
14398$ac_includes_default
14399int
14400main ()
14401{
14402if ((short *) 0)
14403 return 0;
14404if (sizeof (short))
14405 return 0;
14406 ;
14407 return 0;
14408}
14409_ACEOF
14410rm -f conftest.$ac_objext
14411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
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); }; } &&
14426 { ac_try='test -s conftest.$ac_objext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_type_short=yes
14433else
14434 echo "$as_me: failed program was:" >&5
14435sed 's/^/| /' conftest.$ac_ext >&5
14436
14437ac_cv_type_short=no
14438fi
14439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14440fi
14441echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14442echo "${ECHO_T}$ac_cv_type_short" >&6
14443
14444echo "$as_me:$LINENO: checking size of short" >&5
14445echo $ECHO_N "checking size of short... $ECHO_C" >&6
14446if test "${ac_cv_sizeof_short+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448else
14449 if test "$ac_cv_type_short" = yes; then
14450 # The cast to unsigned long works around a bug in the HP C Compiler
14451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14453 # This bug is HP SR number 8606223364.
14454 if test "$cross_compiling" = yes; then
14455 # Depending upon the size, compute the lo and hi bounds.
14456cat >conftest.$ac_ext <<_ACEOF
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462$ac_includes_default
14463int
14464main ()
14465{
14466static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14467test_array [0] = 0
14468
14469 ;
14470 return 0;
14471}
14472_ACEOF
14473rm -f conftest.$ac_objext
14474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14475 (eval $ac_compile) 2>conftest.er1
14476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } &&
14482 { ac_try='test -z "$ac_c_werror_flag"
14483 || test ! -s conftest.err'
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); }; } &&
14489 { ac_try='test -s conftest.$ac_objext'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 ac_lo=0 ac_mid=0
14496 while :; do
14497 cat >conftest.$ac_ext <<_ACEOF
14498/* confdefs.h. */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h. */
14503$ac_includes_default
14504int
14505main ()
14506{
14507static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14508test_array [0] = 0
14509
14510 ;
14511 return 0;
14512}
14513_ACEOF
14514rm -f conftest.$ac_objext
14515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516 (eval $ac_compile) 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -z "$ac_c_werror_flag"
14524 || test ! -s conftest.err'
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); }; } &&
14530 { ac_try='test -s conftest.$ac_objext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_hi=$ac_mid; break
14537else
14538 echo "$as_me: failed program was:" >&5
14539sed 's/^/| /' conftest.$ac_ext >&5
14540
14541ac_lo=`expr $ac_mid + 1`
14542 if test $ac_lo -le $ac_mid; then
14543 ac_lo= ac_hi=
14544 break
14545 fi
14546 ac_mid=`expr 2 '*' $ac_mid + 1`
14547fi
14548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14549 done
14550else
14551 echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
14554cat >conftest.$ac_ext <<_ACEOF
14555/* confdefs.h. */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h. */
14560$ac_includes_default
14561int
14562main ()
14563{
14564static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14565test_array [0] = 0
14566
14567 ;
14568 return 0;
14569}
14570_ACEOF
14571rm -f conftest.$ac_objext
14572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14573 (eval $ac_compile) 2>conftest.er1
14574 ac_status=$?
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -z "$ac_c_werror_flag"
14581 || test ! -s conftest.err'
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); }; } &&
14587 { ac_try='test -s conftest.$ac_objext'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 ac_hi=-1 ac_mid=-1
14594 while :; do
14595 cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
14601$ac_includes_default
14602int
14603main ()
14604{
14605static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14606test_array [0] = 0
14607
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext
14613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
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); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_lo=$ac_mid; break
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639ac_hi=`expr '(' $ac_mid ')' - 1`
14640 if test $ac_mid -le $ac_hi; then
14641 ac_lo= ac_hi=
14642 break
14643 fi
14644 ac_mid=`expr 2 '*' $ac_mid`
14645fi
14646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14647 done
14648else
14649 echo "$as_me: failed program was:" >&5
14650sed 's/^/| /' conftest.$ac_ext >&5
14651
14652ac_lo= ac_hi=
14653fi
14654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14655fi
14656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14657# Binary search between lo and hi bounds.
14658while test "x$ac_lo" != "x$ac_hi"; do
14659 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14660 cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
14666$ac_includes_default
14667int
14668main ()
14669{
14670static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14671test_array [0] = 0
14672
14673 ;
14674 return 0;
14675}
14676_ACEOF
14677rm -f conftest.$ac_objext
14678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>conftest.er1
14680 ac_status=$?
14681 grep -v '^ *+' conftest.er1 >conftest.err
14682 rm -f conftest.er1
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } &&
14686 { ac_try='test -z "$ac_c_werror_flag"
14687 || test ! -s conftest.err'
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); }; } &&
14693 { ac_try='test -s conftest.$ac_objext'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; }; then
14699 ac_hi=$ac_mid
14700else
14701 echo "$as_me: failed program was:" >&5
14702sed 's/^/| /' conftest.$ac_ext >&5
14703
14704ac_lo=`expr '(' $ac_mid ')' + 1`
14705fi
14706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14707done
14708case $ac_lo in
14709?*) ac_cv_sizeof_short=$ac_lo;;
14710'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14711See \`config.log' for more details." >&5
14712echo "$as_me: error: cannot compute sizeof (short), 77
14713See \`config.log' for more details." >&2;}
14714 { (exit 1); exit 1; }; } ;;
14715esac
14716else
14717 if test "$cross_compiling" = yes; then
14718 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14719See \`config.log' for more details." >&5
14720echo "$as_me: error: cannot run test program while cross compiling
14721See \`config.log' for more details." >&2;}
14722 { (exit 1); exit 1; }; }
14723else
14724 cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h. */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h. */
14730$ac_includes_default
14731long longval () { return (long) (sizeof (short)); }
14732unsigned long ulongval () { return (long) (sizeof (short)); }
14733#include <stdio.h>
14734#include <stdlib.h>
14735int
14736main ()
14737{
14738
14739 FILE *f = fopen ("conftest.val", "w");
14740 if (! f)
14741 exit (1);
14742 if (((long) (sizeof (short))) < 0)
14743 {
14744 long i = longval ();
14745 if (i != ((long) (sizeof (short))))
14746 exit (1);
14747 fprintf (f, "%ld\n", i);
14748 }
14749 else
14750 {
14751 unsigned long i = ulongval ();
14752 if (i != ((long) (sizeof (short))))
14753 exit (1);
14754 fprintf (f, "%lu\n", i);
14755 }
14756 exit (ferror (f) || fclose (f) != 0);
14757
14758 ;
14759 return 0;
14760}
14761_ACEOF
14762rm -f conftest$ac_exeext
14763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14764 (eval $ac_link) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_cv_sizeof_short=`cat conftest.val`
14774else
14775 echo "$as_me: program exited with status $ac_status" >&5
14776echo "$as_me: failed program was:" >&5
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
14779( exit $ac_status )
14780{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14781See \`config.log' for more details." >&5
14782echo "$as_me: error: cannot compute sizeof (short), 77
14783See \`config.log' for more details." >&2;}
14784 { (exit 1); exit 1; }; }
14785fi
14786rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14787fi
14788fi
14789rm -f conftest.val
14790else
14791 ac_cv_sizeof_short=0
14792fi
14793fi
14794echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14795echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14796cat >>confdefs.h <<_ACEOF
14797#define SIZEOF_SHORT $ac_cv_sizeof_short
14798_ACEOF
14799
14800
14801 echo "$as_me:$LINENO: checking for char" >&5
14802echo $ECHO_N "checking for char... $ECHO_C" >&6
14803if test "${ac_cv_type_char+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14805else
14806 cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812$ac_includes_default
14813int
14814main ()
14815{
14816if ((char *) 0)
14817 return 0;
14818if (sizeof (char))
14819 return 0;
14820 ;
14821 return 0;
14822}
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag"
14834 || test ! -s conftest.err'
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); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; }; then
14846 ac_cv_type_char=yes
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851ac_cv_type_char=no
14852fi
14853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14854fi
14855echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14856echo "${ECHO_T}$ac_cv_type_char" >&6
14857
14858echo "$as_me:$LINENO: checking size of char" >&5
14859echo $ECHO_N "checking size of char... $ECHO_C" >&6
14860if test "${ac_cv_sizeof_char+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862else
14863 if test "$ac_cv_type_char" = yes; then
14864 # The cast to unsigned long works around a bug in the HP C Compiler
14865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14867 # This bug is HP SR number 8606223364.
14868 if test "$cross_compiling" = yes; then
14869 # Depending upon the size, compute the lo and hi bounds.
14870cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h. */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h. */
14876$ac_includes_default
14877int
14878main ()
14879{
14880static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14881test_array [0] = 0
14882
14883 ;
14884 return 0;
14885}
14886_ACEOF
14887rm -f conftest.$ac_objext
14888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14889 (eval $ac_compile) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
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); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_lo=0 ac_mid=0
14910 while :; do
14911 cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h. */
14917$ac_includes_default
14918int
14919main ()
14920{
14921static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14922test_array [0] = 0
14923
14924 ;
14925 return 0;
14926}
14927_ACEOF
14928rm -f conftest.$ac_objext
14929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14930 (eval $ac_compile) 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag"
14938 || test ! -s conftest.err'
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); }; } &&
14944 { ac_try='test -s conftest.$ac_objext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_hi=$ac_mid; break
14951else
14952 echo "$as_me: failed program was:" >&5
14953sed 's/^/| /' conftest.$ac_ext >&5
14954
14955ac_lo=`expr $ac_mid + 1`
14956 if test $ac_lo -le $ac_mid; then
14957 ac_lo= ac_hi=
14958 break
14959 fi
14960 ac_mid=`expr 2 '*' $ac_mid + 1`
14961fi
14962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14963 done
14964else
14965 echo "$as_me: failed program was:" >&5
14966sed 's/^/| /' conftest.$ac_ext >&5
14967
14968cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
14974$ac_includes_default
14975int
14976main ()
14977{
14978static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14979test_array [0] = 0
14980
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
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); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_hi=-1 ac_mid=-1
15008 while :; do
15009 cat >conftest.$ac_ext <<_ACEOF
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015$ac_includes_default
15016int
15017main ()
15018{
15019static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15020test_array [0] = 0
15021
15022 ;
15023 return 0;
15024}
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -z "$ac_c_werror_flag"
15036 || test ! -s conftest.err'
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); }; } &&
15042 { ac_try='test -s conftest.$ac_objext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_lo=$ac_mid; break
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053ac_hi=`expr '(' $ac_mid ')' - 1`
15054 if test $ac_mid -le $ac_hi; then
15055 ac_lo= ac_hi=
15056 break
15057 fi
15058 ac_mid=`expr 2 '*' $ac_mid`
15059fi
15060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 done
15062else
15063 echo "$as_me: failed program was:" >&5
15064sed 's/^/| /' conftest.$ac_ext >&5
15065
15066ac_lo= ac_hi=
15067fi
15068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15069fi
15070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15071# Binary search between lo and hi bounds.
15072while test "x$ac_lo" != "x$ac_hi"; do
15073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15074 cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080$ac_includes_default
15081int
15082main ()
15083{
15084static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15085test_array [0] = 0
15086
15087 ;
15088 return 0;
15089}
15090_ACEOF
15091rm -f conftest.$ac_objext
15092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093 (eval $ac_compile) 2>conftest.er1
15094 ac_status=$?
15095 grep -v '^ *+' conftest.er1 >conftest.err
15096 rm -f conftest.er1
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } &&
15100 { ac_try='test -z "$ac_c_werror_flag"
15101 || test ! -s conftest.err'
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); }; } &&
15107 { ac_try='test -s conftest.$ac_objext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_hi=$ac_mid
15114else
15115 echo "$as_me: failed program was:" >&5
15116sed 's/^/| /' conftest.$ac_ext >&5
15117
15118ac_lo=`expr '(' $ac_mid ')' + 1`
15119fi
15120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15121done
15122case $ac_lo in
15123?*) ac_cv_sizeof_char=$ac_lo;;
15124'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15125See \`config.log' for more details." >&5
15126echo "$as_me: error: cannot compute sizeof (char), 77
15127See \`config.log' for more details." >&2;}
15128 { (exit 1); exit 1; }; } ;;
15129esac
15130else
15131 if test "$cross_compiling" = yes; then
15132 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15133See \`config.log' for more details." >&5
15134echo "$as_me: error: cannot run test program while cross compiling
15135See \`config.log' for more details." >&2;}
15136 { (exit 1); exit 1; }; }
15137else
15138 cat >conftest.$ac_ext <<_ACEOF
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144$ac_includes_default
15145long longval () { return (long) (sizeof (char)); }
15146unsigned long ulongval () { return (long) (sizeof (char)); }
15147#include <stdio.h>
15148#include <stdlib.h>
15149int
15150main ()
15151{
15152
15153 FILE *f = fopen ("conftest.val", "w");
15154 if (! f)
15155 exit (1);
15156 if (((long) (sizeof (char))) < 0)
15157 {
15158 long i = longval ();
15159 if (i != ((long) (sizeof (char))))
15160 exit (1);
15161 fprintf (f, "%ld\n", i);
15162 }
15163 else
15164 {
15165 unsigned long i = ulongval ();
15166 if (i != ((long) (sizeof (char))))
15167 exit (1);
15168 fprintf (f, "%lu\n", i);
15169 }
15170 exit (ferror (f) || fclose (f) != 0);
15171
15172 ;
15173 return 0;
15174}
15175_ACEOF
15176rm -f conftest$ac_exeext
15177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178 (eval $ac_link) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_cv_sizeof_char=`cat conftest.val`
15188else
15189 echo "$as_me: program exited with status $ac_status" >&5
15190echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193( exit $ac_status )
15194{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15195See \`config.log' for more details." >&5
15196echo "$as_me: error: cannot compute sizeof (char), 77
15197See \`config.log' for more details." >&2;}
15198 { (exit 1); exit 1; }; }
15199fi
15200rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15201fi
15202fi
15203rm -f conftest.val
15204else
15205 ac_cv_sizeof_char=0
15206fi
15207fi
15208echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15209echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15210cat >>confdefs.h <<_ACEOF
15211#define SIZEOF_CHAR $ac_cv_sizeof_char
15212_ACEOF
15213
15214
15215
15216 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15217echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15218 case "$ac_cv_sizeof_char" in
15219 1) acx_cv_type_int8_t=char ;;
15220 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15221echo "$as_me: error: no 8-bit type" >&2;}
15222 { (exit please report a bug); exit please report a bug; }; }
15223 esac
15224 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15225echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15226
15227 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15228echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15229 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15230 2:*) acx_cv_type_int16_t=int ;;
15231 *:2) acx_cv_type_int16_t=short ;;
15232 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15233echo "$as_me: error: no 16-bit type" >&2;}
15234 { (exit please report a bug); exit please report a bug; }; }
15235 esac
15236 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15237echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15238
15239 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15240echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15241 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15242 4:*) acx_cv_type_int32_t=int ;;
15243 *:4) acx_cv_type_int32_t=long ;;
15244 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15245echo "$as_me: error: no 32-bit type" >&2;}
15246 { (exit please report a bug); exit please report a bug; }; }
15247 esac
15248 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15249echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15250fi
15251
15252# These tests are here to make the output prettier
15253
15254if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15255 case "$ac_cv_sizeof_long" in
15256 8) acx_cv_type_int64_t=long ;;
15257 esac
15258 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15259echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15260 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15261echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15262fi
15263
15264# Now we can use the above types
15265
15266if test "$ac_cv_type_uintptr_t" != yes; then
15267 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15268echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15269 case $ac_cv_sizeof_void_p in
15270 2) acx_cv_type_intptr_t=int16_t ;;
15271 4) acx_cv_type_intptr_t=int32_t ;;
15272 8) acx_cv_type_intptr_t=int64_t ;;
15273 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15274echo "$as_me: error: no equivalent for intptr_t" >&2;}
15275 { (exit please report a bug); exit please report a bug; }; }
15276 esac
15277 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15278echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15279fi
15280
15281# ----------------- done all checks, emit header -------------
15282 ac_config_commands="$ac_config_commands bfd_stdint.h"
15283
15284
15285
2ba49b59
KC
15286echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15287echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15288if test "${ac_cv_header_time+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291 cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297#include <sys/types.h>
15298#include <sys/time.h>
15299#include <time.h>
15300
15301int
15302main ()
15303{
15304if ((struct tm *) 0)
15305return 0;
15306 ;
15307 return 0;
15308}
15309_ACEOF
15310rm -f conftest.$ac_objext
15311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15312 (eval $ac_compile) 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
49c96104
SE
15319 { ac_try='test -z "$ac_c_werror_flag"
15320 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_cv_header_time=yes
15333else
15334 echo "$as_me: failed program was:" >&5
15335sed 's/^/| /' conftest.$ac_ext >&5
15336
15337ac_cv_header_time=no
15338fi
15339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15340fi
15341echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15342echo "${ECHO_T}$ac_cv_header_time" >&6
15343if test $ac_cv_header_time = yes; then
15344
15345cat >>confdefs.h <<\_ACEOF
15346#define TIME_WITH_SYS_TIME 1
15347_ACEOF
15348
15349fi
15350
15351
15352
15353
15354
15355
15356ac_header_dirent=no
15357for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15358 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15359echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15360echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15361if eval "test \"\${$as_ac_Header+set}\" = set"; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363else
15364 cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
15370#include <sys/types.h>
15371#include <$ac_hdr>
15372
15373int
15374main ()
15375{
15376if ((DIR *) 0)
15377return 0;
15378 ;
15379 return 0;
15380}
15381_ACEOF
15382rm -f conftest.$ac_objext
15383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15384 (eval $ac_compile) 2>conftest.er1
15385 ac_status=$?
15386 grep -v '^ *+' conftest.er1 >conftest.err
15387 rm -f conftest.er1
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
49c96104
SE
15391 { ac_try='test -z "$ac_c_werror_flag"
15392 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }; then
15404 eval "$as_ac_Header=yes"
15405else
15406 echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409eval "$as_ac_Header=no"
15410fi
15411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15412fi
15413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15415if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416 cat >>confdefs.h <<_ACEOF
15417#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15418_ACEOF
15419
15420ac_header_dirent=$ac_hdr; break
15421fi
15422
15423done
15424# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15425if test $ac_header_dirent = dirent.h; then
15426 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15427echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15428if test "${ac_cv_search_opendir+set}" = set; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15430else
15431 ac_func_search_save_LIBS=$LIBS
15432ac_cv_search_opendir=no
15433cat >conftest.$ac_ext <<_ACEOF
15434/* confdefs.h. */
15435_ACEOF
15436cat confdefs.h >>conftest.$ac_ext
15437cat >>conftest.$ac_ext <<_ACEOF
15438/* end confdefs.h. */
15439
15440/* Override any gcc2 internal prototype to avoid an error. */
15441#ifdef __cplusplus
15442extern "C"
15443#endif
15444/* We use char because int might match the return type of a gcc2
15445 builtin and then its argument prototype would still apply. */
15446char opendir ();
15447int
15448main ()
15449{
15450opendir ();
15451 ;
15452 return 0;
15453}
15454_ACEOF
15455rm -f conftest.$ac_objext conftest$ac_exeext
15456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457 (eval $ac_link) 2>conftest.er1
15458 ac_status=$?
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } &&
49c96104
SE
15464 { ac_try='test -z "$ac_c_werror_flag"
15465 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15471 { ac_try='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_search_opendir="none required"
15478else
15479 echo "$as_me: failed program was:" >&5
15480sed 's/^/| /' conftest.$ac_ext >&5
15481
15482fi
15483rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485if test "$ac_cv_search_opendir" = no; then
15486 for ac_lib in dir; do
15487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15488 cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
15494
15495/* Override any gcc2 internal prototype to avoid an error. */
15496#ifdef __cplusplus
15497extern "C"
15498#endif
15499/* We use char because int might match the return type of a gcc2
15500 builtin and then its argument prototype would still apply. */
15501char opendir ();
15502int
15503main ()
15504{
15505opendir ();
15506 ;
15507 return 0;
15508}
15509_ACEOF
15510rm -f conftest.$ac_objext conftest$ac_exeext
15511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15512 (eval $ac_link) 2>conftest.er1
15513 ac_status=$?
15514 grep -v '^ *+' conftest.er1 >conftest.err
15515 rm -f conftest.er1
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
49c96104
SE
15519 { ac_try='test -z "$ac_c_werror_flag"
15520 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15526 { ac_try='test -s conftest$ac_exeext'
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_search_opendir="-l$ac_lib"
15533break
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538fi
15539rm -f conftest.err conftest.$ac_objext \
15540 conftest$ac_exeext conftest.$ac_ext
15541 done
15542fi
15543LIBS=$ac_func_search_save_LIBS
15544fi
15545echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15546echo "${ECHO_T}$ac_cv_search_opendir" >&6
15547if test "$ac_cv_search_opendir" != no; then
15548 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15549
15550fi
15551
15552else
15553 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15554echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15555if test "${ac_cv_search_opendir+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558 ac_func_search_save_LIBS=$LIBS
15559ac_cv_search_opendir=no
15560cat >conftest.$ac_ext <<_ACEOF
15561/* confdefs.h. */
15562_ACEOF
15563cat confdefs.h >>conftest.$ac_ext
15564cat >>conftest.$ac_ext <<_ACEOF
15565/* end confdefs.h. */
15566
15567/* Override any gcc2 internal prototype to avoid an error. */
15568#ifdef __cplusplus
15569extern "C"
15570#endif
15571/* We use char because int might match the return type of a gcc2
15572 builtin and then its argument prototype would still apply. */
15573char opendir ();
15574int
15575main ()
15576{
15577opendir ();
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582rm -f conftest.$ac_objext conftest$ac_exeext
15583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15584 (eval $ac_link) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
49c96104
SE
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_cv_search_opendir="none required"
15605else
15606 echo "$as_me: failed program was:" >&5
15607sed 's/^/| /' conftest.$ac_ext >&5
15608
15609fi
15610rm -f conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15612if test "$ac_cv_search_opendir" = no; then
15613 for ac_lib in x; do
15614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15615 cat >conftest.$ac_ext <<_ACEOF
15616/* confdefs.h. */
15617_ACEOF
15618cat confdefs.h >>conftest.$ac_ext
15619cat >>conftest.$ac_ext <<_ACEOF
15620/* end confdefs.h. */
15621
15622/* Override any gcc2 internal prototype to avoid an error. */
15623#ifdef __cplusplus
15624extern "C"
15625#endif
15626/* We use char because int might match the return type of a gcc2
15627 builtin and then its argument prototype would still apply. */
15628char opendir ();
15629int
15630main ()
15631{
15632opendir ();
15633 ;
15634 return 0;
15635}
15636_ACEOF
15637rm -f conftest.$ac_objext conftest$ac_exeext
15638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639 (eval $ac_link) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
49c96104
SE
15646 { ac_try='test -z "$ac_c_werror_flag"
15647 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15653 { ac_try='test -s conftest$ac_exeext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_cv_search_opendir="-l$ac_lib"
15660break
15661else
15662 echo "$as_me: failed program was:" >&5
15663sed 's/^/| /' conftest.$ac_ext >&5
15664
15665fi
15666rm -f conftest.err conftest.$ac_objext \
15667 conftest$ac_exeext conftest.$ac_ext
15668 done
15669fi
15670LIBS=$ac_func_search_save_LIBS
15671fi
15672echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15673echo "${ECHO_T}$ac_cv_search_opendir" >&6
15674if test "$ac_cv_search_opendir" != no; then
15675 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15676
15677fi
15678
15679fi
15680
15681echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
15682echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
15683if test "${gcc_cv_header_string+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685else
15686 cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h. */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h. */
15692#include <string.h>
15693#include <strings.h>
15694int
15695main ()
15696{
15697
15698 ;
15699 return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext
15703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15704 (eval $ac_compile) 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
49c96104
SE
15711 { ac_try='test -z "$ac_c_werror_flag"
15712 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
15724 gcc_cv_header_string=yes
15725else
15726 echo "$as_me: failed program was:" >&5
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
15729gcc_cv_header_string=no
15730fi
15731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15732fi
15733echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
15734echo "${ECHO_T}$gcc_cv_header_string" >&6
15735if test $gcc_cv_header_string = yes; then
15736
15737cat >>confdefs.h <<\_ACEOF
15738#define STRING_WITH_STRINGS 1
15739_ACEOF
15740
2e0fbf77
JW
15741fi
15742
5464f5a1
NN
15743
15744
15745
15746
15747
15748
15749
633fd09f 15750for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 15751do
5464f5a1
NN
15752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15753echo "$as_me:$LINENO: checking for $ac_func" >&5
15754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15755if eval "test \"\${$as_ac_var+set}\" = set"; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757else
15758 cat >conftest.$ac_ext <<_ACEOF
15759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
15764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15766#define $ac_func innocuous_$ac_func
15767
252b5132 15768/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
15769 which can conflict with char $ac_func (); below.
15770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771 <limits.h> exists even on freestanding compilers. */
15772
15773#ifdef __STDC__
15774# include <limits.h>
15775#else
15776# include <assert.h>
15777#endif
6be7c12c 15778
5464f5a1 15779#undef $ac_func
252b5132 15780
5464f5a1
NN
15781/* Override any gcc2 internal prototype to avoid an error. */
15782#ifdef __cplusplus
15783extern "C"
15784{
15785#endif
15786/* We use char because int might match the return type of a gcc2
15787 builtin and then its argument prototype would still apply. */
15788char $ac_func ();
252b5132
RH
15789/* The GNU C library defines this for functions which it implements
15790 to always fail with ENOSYS. Some functions are actually named
15791 something starting with __ and the normal name is an alias. */
15792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15793choke me
15794#else
5464f5a1
NN
15795char (*f) () = $ac_func;
15796#endif
15797#ifdef __cplusplus
15798}
252b5132
RH
15799#endif
15800
5464f5a1
NN
15801int
15802main ()
15803{
15804return f != $ac_func;
15805 ;
15806 return 0;
15807}
15808_ACEOF
15809rm -f conftest.$ac_objext conftest$ac_exeext
15810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
49c96104
SE
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 eval "$as_ac_var=yes"
15832else
15833 echo "$as_me: failed program was:" >&5
15834sed 's/^/| /' conftest.$ac_ext >&5
15835
15836eval "$as_ac_var=no"
15837fi
15838rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840fi
15841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15842echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15843if test `eval echo '${'$as_ac_var'}'` = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15846_ACEOF
252b5132 15847
252b5132
RH
15848fi
15849done
15850
5464f5a1 15851
49c97a80
ILT
15852for ac_func in strtoull
15853do
5464f5a1
NN
15854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15855echo "$as_me:$LINENO: checking for $ac_func" >&5
15856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15857if eval "test \"\${$as_ac_var+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859else
15860 cat >conftest.$ac_ext <<_ACEOF
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
15866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15868#define $ac_func innocuous_$ac_func
15869
49c97a80 15870/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
15871 which can conflict with char $ac_func (); below.
15872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 <limits.h> exists even on freestanding compilers. */
15874
15875#ifdef __STDC__
15876# include <limits.h>
15877#else
15878# include <assert.h>
15879#endif
49c97a80 15880
5464f5a1 15881#undef $ac_func
49c97a80 15882
5464f5a1
NN
15883/* Override any gcc2 internal prototype to avoid an error. */
15884#ifdef __cplusplus
15885extern "C"
15886{
15887#endif
15888/* We use char because int might match the return type of a gcc2
15889 builtin and then its argument prototype would still apply. */
15890char $ac_func ();
49c97a80
ILT
15891/* The GNU C library defines this for functions which it implements
15892 to always fail with ENOSYS. Some functions are actually named
15893 something starting with __ and the normal name is an alias. */
15894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15895choke me
15896#else
5464f5a1
NN
15897char (*f) () = $ac_func;
15898#endif
15899#ifdef __cplusplus
15900}
49c97a80
ILT
15901#endif
15902
5464f5a1
NN
15903int
15904main ()
15905{
15906return f != $ac_func;
15907 ;
15908 return 0;
15909}
15910_ACEOF
15911rm -f conftest.$ac_objext conftest$ac_exeext
15912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15913 (eval $ac_link) 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
49c96104
SE
15920 { ac_try='test -z "$ac_c_werror_flag"
15921 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
15927 { ac_try='test -s conftest$ac_exeext'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; }; then
15933 eval "$as_ac_var=yes"
15934else
15935 echo "$as_me: failed program was:" >&5
15936sed 's/^/| /' conftest.$ac_ext >&5
15937
15938eval "$as_ac_var=no"
15939fi
15940rm -f conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15942fi
15943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15945if test `eval echo '${'$as_ac_var'}'` = yes; then
15946 cat >>confdefs.h <<_ACEOF
15947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15948_ACEOF
49c97a80 15949
49c97a80
ILT
15950fi
15951done
15952
6be7c12c 15953
2e9ebff5
JG
15954echo "$as_me:$LINENO: checking whether basename is declared" >&5
15955echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
15956if test "${ac_cv_have_decl_basename+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15958else
15959 cat >conftest.$ac_ext <<_ACEOF
15960/* confdefs.h. */
15961_ACEOF
15962cat confdefs.h >>conftest.$ac_ext
15963cat >>conftest.$ac_ext <<_ACEOF
15964/* end confdefs.h. */
ec7b76fe 15965$ac_includes_default
2e9ebff5
JG
15966int
15967main ()
15968{
15969#ifndef basename
15970 char *p = (char *) basename;
15971#endif
15972
15973 ;
15974 return 0;
15975}
15976_ACEOF
15977rm -f conftest.$ac_objext
15978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
49c96104
SE
15986 { ac_try='test -z "$ac_c_werror_flag"
15987 || test ! -s conftest.err'
2e9ebff5
JG
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); }; } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_have_decl_basename=yes
16000else
16001 echo "$as_me: failed program was:" >&5
16002sed 's/^/| /' conftest.$ac_ext >&5
16003
16004ac_cv_have_decl_basename=no
16005fi
16006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16007fi
16008echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16009echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16010if test $ac_cv_have_decl_basename = yes; then
16011
16012cat >>confdefs.h <<_ACEOF
16013#define HAVE_DECL_BASENAME 1
16014_ACEOF
16015
16016
16017else
16018 cat >>confdefs.h <<_ACEOF
16019#define HAVE_DECL_BASENAME 0
16020_ACEOF
16021
16022
16023fi
16024
16025
ec7b76fe
JG
16026echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16027echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16028if test "${ac_cv_have_decl_ftello+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030else
16031 cat >conftest.$ac_ext <<_ACEOF
16032/* confdefs.h. */
16033_ACEOF
16034cat confdefs.h >>conftest.$ac_ext
16035cat >>conftest.$ac_ext <<_ACEOF
16036/* end confdefs.h. */
16037$ac_includes_default
16038int
16039main ()
16040{
16041#ifndef ftello
16042 char *p = (char *) ftello;
16043#endif
16044
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049rm -f conftest.$ac_objext
16050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>conftest.er1
16052 ac_status=$?
16053 grep -v '^ *+' conftest.er1 >conftest.err
16054 rm -f conftest.er1
16055 cat conftest.err >&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } &&
49c96104
SE
16058 { ac_try='test -z "$ac_c_werror_flag"
16059 || test ! -s conftest.err'
ec7b76fe
JG
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); }; } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_have_decl_ftello=yes
16072else
16073 echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076ac_cv_have_decl_ftello=no
16077fi
16078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16079fi
16080echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16081echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16082if test $ac_cv_have_decl_ftello = yes; then
16083
16084cat >>confdefs.h <<_ACEOF
16085#define HAVE_DECL_FTELLO 1
16086_ACEOF
16087
16088
16089else
16090 cat >>confdefs.h <<_ACEOF
16091#define HAVE_DECL_FTELLO 0
16092_ACEOF
16093
16094
16095fi
16096
16097
16098echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16099echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16100if test "${ac_cv_have_decl_ftello64+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102else
16103 cat >conftest.$ac_ext <<_ACEOF
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109$ac_includes_default
16110int
16111main ()
16112{
16113#ifndef ftello64
16114 char *p = (char *) ftello64;
16115#endif
16116
16117 ;
16118 return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext
16122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16123 (eval $ac_compile) 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
49c96104
SE
16130 { ac_try='test -z "$ac_c_werror_flag"
16131 || test ! -s conftest.err'
ec7b76fe
JG
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); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_cv_have_decl_ftello64=yes
16144else
16145 echo "$as_me: failed program was:" >&5
16146sed 's/^/| /' conftest.$ac_ext >&5
16147
16148ac_cv_have_decl_ftello64=no
16149fi
16150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16151fi
16152echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16153echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16154if test $ac_cv_have_decl_ftello64 = yes; then
16155
16156cat >>confdefs.h <<_ACEOF
16157#define HAVE_DECL_FTELLO64 1
16158_ACEOF
16159
16160
16161else
16162 cat >>confdefs.h <<_ACEOF
16163#define HAVE_DECL_FTELLO64 0
16164_ACEOF
16165
16166
16167fi
16168
16169
16170echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16171echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16172if test "${ac_cv_have_decl_fseeko+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16174else
16175 cat >conftest.$ac_ext <<_ACEOF
16176/* confdefs.h. */
16177_ACEOF
16178cat confdefs.h >>conftest.$ac_ext
16179cat >>conftest.$ac_ext <<_ACEOF
16180/* end confdefs.h. */
16181$ac_includes_default
16182int
16183main ()
16184{
16185#ifndef fseeko
16186 char *p = (char *) fseeko;
16187#endif
16188
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext
16194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>conftest.er1
16196 ac_status=$?
16197 grep -v '^ *+' conftest.er1 >conftest.err
16198 rm -f conftest.er1
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
49c96104
SE
16202 { ac_try='test -z "$ac_c_werror_flag"
16203 || test ! -s conftest.err'
ec7b76fe
JG
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); }; } &&
16209 { ac_try='test -s conftest.$ac_objext'
16210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211 (eval $ac_try) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_cv_have_decl_fseeko=yes
16216else
16217 echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220ac_cv_have_decl_fseeko=no
16221fi
16222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16223fi
16224echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16225echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16226if test $ac_cv_have_decl_fseeko = yes; then
16227
16228cat >>confdefs.h <<_ACEOF
16229#define HAVE_DECL_FSEEKO 1
16230_ACEOF
16231
16232
16233else
16234 cat >>confdefs.h <<_ACEOF
16235#define HAVE_DECL_FSEEKO 0
16236_ACEOF
16237
16238
16239fi
16240
16241
16242echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16243echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16244if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246else
16247 cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254int
16255main ()
16256{
16257#ifndef fseeko64
16258 char *p = (char *) fseeko64;
16259#endif
16260
16261 ;
16262 return 0;
16263}
16264_ACEOF
16265rm -f conftest.$ac_objext
16266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
49c96104
SE
16274 { ac_try='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
ec7b76fe
JG
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); }; } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_have_decl_fseeko64=yes
16288else
16289 echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292ac_cv_have_decl_fseeko64=no
16293fi
16294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16295fi
16296echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16297echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16298if test $ac_cv_have_decl_fseeko64 = yes; then
16299
16300cat >>confdefs.h <<_ACEOF
16301#define HAVE_DECL_FSEEKO64 1
16302_ACEOF
16303
16304
16305else
16306 cat >>confdefs.h <<_ACEOF
16307#define HAVE_DECL_FSEEKO64 0
16308_ACEOF
16309
16310
16311fi
16312
16313
2e9ebff5 16314
6be7c12c 16315
252b5132 16316case "${host}" in
855b0be7 16317*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
16318
16319cat >>confdefs.h <<\_ACEOF
252b5132 16320#define USE_BINARY_FOPEN 1
5464f5a1 16321_ACEOF
252b5132
RH
16322 ;;
16323esac
16324
d34a2b1d
JG
16325echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16326echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16327if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 16328 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16329else
5464f5a1
NN
16330 cat >conftest.$ac_ext <<_ACEOF
16331/* confdefs.h. */
16332_ACEOF
16333cat confdefs.h >>conftest.$ac_ext
16334cat >>conftest.$ac_ext <<_ACEOF
16335/* end confdefs.h. */
d34a2b1d 16336$ac_includes_default
5464f5a1
NN
16337int
16338main ()
16339{
d34a2b1d
JG
16340#ifndef ffs
16341 char *p = (char *) ffs;
16342#endif
16343
5464f5a1
NN
16344 ;
16345 return 0;
16346}
16347_ACEOF
16348rm -f conftest.$ac_objext
16349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>conftest.er1
16351 ac_status=$?
16352 grep -v '^ *+' conftest.er1 >conftest.err
16353 rm -f conftest.er1
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
49c96104
SE
16357 { ac_try='test -z "$ac_c_werror_flag"
16358 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
16364 { ac_try='test -s conftest.$ac_objext'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
d34a2b1d 16370 ac_cv_have_decl_ffs=yes
252b5132 16371else
5464f5a1
NN
16372 echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
d34a2b1d 16375ac_cv_have_decl_ffs=no
252b5132 16376fi
5464f5a1 16377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16378fi
d34a2b1d
JG
16379echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16380echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16381if test $ac_cv_have_decl_ffs = yes; then
252b5132 16382
d34a2b1d
JG
16383cat >>confdefs.h <<_ACEOF
16384#define HAVE_DECL_FFS 1
16385_ACEOF
5464f5a1 16386
d34a2b1d
JG
16387
16388else
16389 cat >>confdefs.h <<_ACEOF
16390#define HAVE_DECL_FFS 0
5464f5a1 16391_ACEOF
252b5132 16392
d34a2b1d 16393
252b5132
RH
16394fi
16395
d34a2b1d
JG
16396
16397echo "$as_me:$LINENO: checking whether free is declared" >&5
16398echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16399if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 16400 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16401else
5464f5a1
NN
16402 cat >conftest.$ac_ext <<_ACEOF
16403/* confdefs.h. */
16404_ACEOF
16405cat confdefs.h >>conftest.$ac_ext
16406cat >>conftest.$ac_ext <<_ACEOF
16407/* end confdefs.h. */
d34a2b1d 16408$ac_includes_default
5464f5a1
NN
16409int
16410main ()
16411{
d34a2b1d
JG
16412#ifndef free
16413 char *p = (char *) free;
16414#endif
16415
5464f5a1
NN
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext
16421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16422 (eval $ac_compile) 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
49c96104
SE
16429 { ac_try='test -z "$ac_c_werror_flag"
16430 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
d34a2b1d 16442 ac_cv_have_decl_free=yes
252b5132 16443else
5464f5a1
NN
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
d34a2b1d 16447ac_cv_have_decl_free=no
252b5132 16448fi
5464f5a1 16449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16450fi
d34a2b1d
JG
16451echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16452echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16453if test $ac_cv_have_decl_free = yes; then
16454
16455cat >>confdefs.h <<_ACEOF
16456#define HAVE_DECL_FREE 1
16457_ACEOF
252b5132 16458
5464f5a1 16459
d34a2b1d
JG
16460else
16461 cat >>confdefs.h <<_ACEOF
16462#define HAVE_DECL_FREE 0
5464f5a1 16463_ACEOF
252b5132 16464
d34a2b1d 16465
252b5132
RH
16466fi
16467
d34a2b1d
JG
16468
16469echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16470echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16471if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 16472 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16473else
5464f5a1
NN
16474 cat >conftest.$ac_ext <<_ACEOF
16475/* confdefs.h. */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h. */
d34a2b1d 16480$ac_includes_default
5464f5a1
NN
16481int
16482main ()
16483{
d34a2b1d
JG
16484#ifndef getenv
16485 char *p = (char *) getenv;
16486#endif
16487
5464f5a1
NN
16488 ;
16489 return 0;
16490}
16491_ACEOF
16492rm -f conftest.$ac_objext
16493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16494 (eval $ac_compile) 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } &&
49c96104
SE
16501 { ac_try='test -z "$ac_c_werror_flag"
16502 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
16508 { ac_try='test -s conftest.$ac_objext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
d34a2b1d 16514 ac_cv_have_decl_getenv=yes
252b5132 16515else
5464f5a1
NN
16516 echo "$as_me: failed program was:" >&5
16517sed 's/^/| /' conftest.$ac_ext >&5
16518
d34a2b1d 16519ac_cv_have_decl_getenv=no
252b5132 16520fi
5464f5a1 16521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16522fi
d34a2b1d
JG
16523echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16524echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16525if test $ac_cv_have_decl_getenv = yes; then
252b5132 16526
d34a2b1d
JG
16527cat >>confdefs.h <<_ACEOF
16528#define HAVE_DECL_GETENV 1
16529_ACEOF
5464f5a1 16530
d34a2b1d
JG
16531
16532else
16533 cat >>confdefs.h <<_ACEOF
16534#define HAVE_DECL_GETENV 0
5464f5a1 16535_ACEOF
252b5132 16536
d34a2b1d 16537
252b5132
RH
16538fi
16539
d34a2b1d
JG
16540
16541echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16542echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16543if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 16544 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16545else
5464f5a1
NN
16546 cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h. */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h. */
d34a2b1d 16552$ac_includes_default
5464f5a1
NN
16553int
16554main ()
16555{
d34a2b1d
JG
16556#ifndef malloc
16557 char *p = (char *) malloc;
16558#endif
16559
5464f5a1
NN
16560 ;
16561 return 0;
16562}
16563_ACEOF
16564rm -f conftest.$ac_objext
16565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16566 (eval $ac_compile) 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
49c96104
SE
16573 { ac_try='test -z "$ac_c_werror_flag"
16574 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
d34a2b1d 16586 ac_cv_have_decl_malloc=yes
252b5132 16587else
5464f5a1
NN
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
d34a2b1d 16591ac_cv_have_decl_malloc=no
252b5132 16592fi
5464f5a1 16593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16594fi
d34a2b1d
JG
16595echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16596echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16597if test $ac_cv_have_decl_malloc = yes; then
252b5132 16598
d34a2b1d
JG
16599cat >>confdefs.h <<_ACEOF
16600#define HAVE_DECL_MALLOC 1
16601_ACEOF
5464f5a1 16602
d34a2b1d
JG
16603
16604else
16605 cat >>confdefs.h <<_ACEOF
16606#define HAVE_DECL_MALLOC 0
5464f5a1 16607_ACEOF
252b5132 16608
d34a2b1d 16609
252b5132
RH
16610fi
16611
d34a2b1d
JG
16612
16613echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16614echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16615if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 16616 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 16617else
5464f5a1
NN
16618 cat >conftest.$ac_ext <<_ACEOF
16619/* confdefs.h. */
16620_ACEOF
16621cat confdefs.h >>conftest.$ac_ext
16622cat >>conftest.$ac_ext <<_ACEOF
16623/* end confdefs.h. */
d34a2b1d 16624$ac_includes_default
5464f5a1
NN
16625int
16626main ()
16627{
d34a2b1d
JG
16628#ifndef realloc
16629 char *p = (char *) realloc;
16630#endif
16631
5464f5a1
NN
16632 ;
16633 return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext
16637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638 (eval $ac_compile) 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
49c96104
SE
16645 { ac_try='test -z "$ac_c_werror_flag"
16646 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
16652 { ac_try='test -s conftest.$ac_objext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
d34a2b1d 16658 ac_cv_have_decl_realloc=yes
252b5132 16659else
5464f5a1
NN
16660 echo "$as_me: failed program was:" >&5
16661sed 's/^/| /' conftest.$ac_ext >&5
16662
d34a2b1d 16663ac_cv_have_decl_realloc=no
252b5132 16664fi
5464f5a1 16665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 16666fi
d34a2b1d
JG
16667echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16668echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16669if test $ac_cv_have_decl_realloc = yes; then
16670
16671cat >>confdefs.h <<_ACEOF
16672#define HAVE_DECL_REALLOC 1
16673_ACEOF
252b5132 16674
5464f5a1 16675
d34a2b1d
JG
16676else
16677 cat >>confdefs.h <<_ACEOF
16678#define HAVE_DECL_REALLOC 0
efa9bda4
AL
16679_ACEOF
16680
d34a2b1d 16681
efa9bda4
AL
16682fi
16683
d34a2b1d 16684
be5cacdb
L
16685echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
16686echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
16687if test "${ac_cv_have_decl_stpcpy+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689else
16690 cat >conftest.$ac_ext <<_ACEOF
16691/* confdefs.h. */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h. */
16696$ac_includes_default
16697int
16698main ()
16699{
16700#ifndef stpcpy
16701 char *p = (char *) stpcpy;
16702#endif
16703
16704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext
16709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710 (eval $ac_compile) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
49c96104
SE
16717 { ac_try='test -z "$ac_c_werror_flag"
16718 || test ! -s conftest.err'
be5cacdb
L
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); }; } &&
16724 { ac_try='test -s conftest.$ac_objext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 ac_cv_have_decl_stpcpy=yes
16731else
16732 echo "$as_me: failed program was:" >&5
16733sed 's/^/| /' conftest.$ac_ext >&5
16734
16735ac_cv_have_decl_stpcpy=no
16736fi
16737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16738fi
16739echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
16740echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
16741if test $ac_cv_have_decl_stpcpy = yes; then
16742
16743cat >>confdefs.h <<_ACEOF
16744#define HAVE_DECL_STPCPY 1
16745_ACEOF
16746
16747
16748else
16749 cat >>confdefs.h <<_ACEOF
16750#define HAVE_DECL_STPCPY 0
16751_ACEOF
16752
16753
16754fi
16755
16756
d34a2b1d
JG
16757echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16758echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16759if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761else
16762 cat >conftest.$ac_ext <<_ACEOF
16763/* confdefs.h. */
16764_ACEOF
16765cat confdefs.h >>conftest.$ac_ext
16766cat >>conftest.$ac_ext <<_ACEOF
16767/* end confdefs.h. */
d34a2b1d 16768$ac_includes_default
efa9bda4
AL
16769int
16770main ()
16771{
d34a2b1d
JG
16772#ifndef strstr
16773 char *p = (char *) strstr;
16774#endif
16775
efa9bda4
AL
16776 ;
16777 return 0;
16778}
16779_ACEOF
16780rm -f conftest.$ac_objext
16781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16782 (eval $ac_compile) 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
49c96104
SE
16789 { ac_try='test -z "$ac_c_werror_flag"
16790 || test ! -s conftest.err'
efa9bda4
AL
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); }; } &&
16796 { ac_try='test -s conftest.$ac_objext'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
d34a2b1d 16802 ac_cv_have_decl_strstr=yes
efa9bda4
AL
16803else
16804 echo "$as_me: failed program was:" >&5
16805sed 's/^/| /' conftest.$ac_ext >&5
16806
d34a2b1d 16807ac_cv_have_decl_strstr=no
efa9bda4
AL
16808fi
16809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16810fi
d34a2b1d
JG
16811echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16812echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16813if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 16814
d34a2b1d
JG
16815cat >>confdefs.h <<_ACEOF
16816#define HAVE_DECL_STRSTR 1
16817_ACEOF
efa9bda4 16818
d34a2b1d
JG
16819
16820else
16821 cat >>confdefs.h <<_ACEOF
16822#define HAVE_DECL_STRSTR 0
5464f5a1 16823_ACEOF
252b5132 16824
d34a2b1d 16825
252b5132
RH
16826fi
16827
6be7c12c 16828
36527912
AJ
16829echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16830echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16831if test "${ac_cv_have_decl_snprintf+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16833else
16834 cat >conftest.$ac_ext <<_ACEOF
16835/* confdefs.h. */
16836_ACEOF
16837cat confdefs.h >>conftest.$ac_ext
16838cat >>conftest.$ac_ext <<_ACEOF
16839/* end confdefs.h. */
16840$ac_includes_default
16841int
16842main ()
16843{
16844#ifndef snprintf
16845 char *p = (char *) snprintf;
16846#endif
16847
16848 ;
16849 return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16854 (eval $ac_compile) 2>conftest.er1
16855 ac_status=$?
16856 grep -v '^ *+' conftest.er1 >conftest.err
16857 rm -f conftest.er1
16858 cat conftest.err >&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
49c96104
SE
16861 { ac_try='test -z "$ac_c_werror_flag"
16862 || test ! -s conftest.err'
36527912
AJ
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); }; } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_have_decl_snprintf=yes
16875else
16876 echo "$as_me: failed program was:" >&5
16877sed 's/^/| /' conftest.$ac_ext >&5
16878
16879ac_cv_have_decl_snprintf=no
16880fi
16881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16882fi
16883echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16884echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16885if test $ac_cv_have_decl_snprintf = yes; then
16886
16887cat >>confdefs.h <<_ACEOF
16888#define HAVE_DECL_SNPRINTF 1
16889_ACEOF
16890
16891
16892else
16893 cat >>confdefs.h <<_ACEOF
16894#define HAVE_DECL_SNPRINTF 0
16895_ACEOF
16896
16897
16898fi
16899
16900
16901echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16902echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16903if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16905else
16906 cat >conftest.$ac_ext <<_ACEOF
16907/* confdefs.h. */
16908_ACEOF
16909cat confdefs.h >>conftest.$ac_ext
16910cat >>conftest.$ac_ext <<_ACEOF
16911/* end confdefs.h. */
16912$ac_includes_default
16913int
16914main ()
16915{
16916#ifndef vsnprintf
16917 char *p = (char *) vsnprintf;
16918#endif
16919
16920 ;
16921 return 0;
16922}
16923_ACEOF
16924rm -f conftest.$ac_objext
16925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
49c96104
SE
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
36527912
AJ
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); }; } &&
16940 { ac_try='test -s conftest.$ac_objext'
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16946 ac_cv_have_decl_vsnprintf=yes
16947else
16948 echo "$as_me: failed program was:" >&5
16949sed 's/^/| /' conftest.$ac_ext >&5
16950
16951ac_cv_have_decl_vsnprintf=no
16952fi
16953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16954fi
16955echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16956echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16957if test $ac_cv_have_decl_vsnprintf = yes; then
16958
16959cat >>confdefs.h <<_ACEOF
16960#define HAVE_DECL_VSNPRINTF 1
16961_ACEOF
16962
16963
16964else
16965 cat >>confdefs.h <<_ACEOF
16966#define HAVE_DECL_VSNPRINTF 0
16967_ACEOF
16968
16969
16970fi
16971
16972
d34a2b1d 16973
252b5132
RH
16974# If we are configured native, pick a core file support file.
16975COREFILE=
16976COREFLAG=
16977TRAD_HEADER=
16978if test "${target}" = "${host}"; then
16979 case "${host}" in
13dfd2d0 16980 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
16981 COREFILE=''
16982 ;;
ed84e695 16983 alpha*-*-linux-*)
252b5132
RH
16984 COREFILE=trad-core.lo
16985 TRAD_HEADER='"hosts/alphalinux.h"'
16986 ;;
690cc98b
NC
16987 alpha*-*-netbsd* | alpha*-*-openbsd*)
16988 COREFILE=netbsd-core.lo
16989 ;;
252b5132 16990 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
16991 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
16992 COREFILE='' ;;
e33533a4
MK
16993 arm-*-netbsd* | arm-*-openbsd*)
16994 COREFILE=netbsd-core.lo
16995 ;;
252b5132
RH
16996 arm-*-riscix) COREFILE=trad-core.lo ;;
16997 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
16998 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
16999 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
17000 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
17001 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
17002 hppa*-*-netbsd* | hppa*-*-openbsd*)
17003 COREFILE=netbsd-core.lo
17004 ;;
17005
dc810e39 17006 i370-*-*)
5b93d8bb
AM
17007 COREFILE=trad-core.lo
17008 TRAD_HEADER='"hosts/i370linux.h"'
17009 ;;
17010
80c7c40a 17011 i[3-7]86-sequent-bsd*)
5b93d8bb 17012 COREFILE=trad-core.lo
252b5132
RH
17013 TRAD_HEADER='"hosts/symmetry.h"'
17014 ;;
80c7c40a
NC
17015 i[3-7]86-sequent-sysv4*) ;;
17016 i[3-7]86-sequent-sysv*)
252b5132
RH
17017 COREFILE=trad-core.lo
17018 TRAD_HEADER='"hosts/symmetry.h"'
17019 ;;
80c7c40a 17020 i[3-7]86-*-bsdi)
7e3b3466
NC
17021 COREFILE=
17022 ;;
d2bef492 17023 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
17024 COREFILE=trad-core.lo
17025 TRAD_HEADER='"hosts/i386bsd.h"'
17026 ;;
13dfd2d0 17027 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
17028 COREFILE=''
17029 TRAD_HEADER='"hosts/i386bsd.h"'
17030 ;;
4615568e 17031 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
17032 COREFILE=netbsd-core.lo
17033 ;;
80c7c40a 17034 i[3-7]86-esix-sysv3*)
252b5132
RH
17035 COREFILE=trad-core.lo
17036 TRAD_HEADER='"hosts/esix.h"'
17037 ;;
80c7c40a 17038 i[3-7]86-*-sco3.2v5*)
252b5132
RH
17039 COREFILE=sco5-core.lo
17040 ;;
80c7c40a 17041 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
17042 COREFILE=trad-core.lo
17043 TRAD_HEADER='"hosts/i386sco.h"'
17044 ;;
80c7c40a 17045 i[3-7]86-*-mach3*)
252b5132
RH
17046 COREFILE=trad-core.lo
17047 TRAD_HEADER='"hosts/i386mach3.h"'
17048 ;;
ed84e695 17049 i[3-7]86-*-linux-*)
252b5132
RH
17050 COREFILE=trad-core.lo
17051 TRAD_HEADER='"hosts/i386linux.h"'
17052 ;;
80c7c40a
NC
17053 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17054 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
17055 i860-*-mach3* | i860-*-osf1*)
17056 COREFILE=trad-core.lo
17057 TRAD_HEADER='"hosts/i860mach3.h"'
17058 ;;
252b5132
RH
17059 mips-*-netbsd* | mips*-*-openbsd*)
17060 COREFILE=netbsd-core.lo
17061 ;;
17062 mips-dec-*)
17063 COREFILE=trad-core.lo
17064 TRAD_HEADER='"hosts/decstation.h"'
17065 ;;
17066 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17067 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17068 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
17069 mips-*-sysv4*) ;;
17070 mips-*-sysv* | mips-*-riscos*)
17071 COREFILE=trad-core.lo
17072 TRAD_HEADER='"hosts/riscos.h"'
17073 ;;
17074 mips-sony-bsd*)
17075 COREFILE=trad-core.lo
17076 TRAD_HEADER='"hosts/news-mips.h"'
17077 ;;
17078 m68*-bull*-sysv*)
17079 COREFILE=trad-core.lo
17080 TRAD_HEADER='"hosts/dpx2.h"'
17081 ;;
17082 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17083 m68*-hp-bsd*)
17084 COREFILE=trad-core.lo
17085 TRAD_HEADER='"hosts/hp300bsd.h"'
17086 ;;
ed84e695 17087 m68*-*-linux-*)
252b5132
RH
17088 COREFILE=trad-core.lo
17089 TRAD_HEADER='"hosts/m68klinux.h"'
17090 ;;
17091 m68*-motorola-sysv*)
17092 COREFILE=trad-core.lo
17093 TRAD_HEADER='"hosts/delta68.h"'
17094 ;;
17095 m68*-sony-*)
17096 COREFILE=trad-core.lo
17097 TRAD_HEADER='"hosts/news.h"'
17098 ;;
17099 m68*-*-netbsd* | m68*-*-openbsd*)
17100 COREFILE=netbsd-core.lo
17101 ;;
17102 m68*-apple-aux*)
17103 COREFILE=trad-core.lo
17104 TRAD_HEADER='"hosts/m68kaux.h"'
17105 ;;
eb1e0e80
NC
17106 m88*-*-sysv4*)
17107 ;;
17108 m88*-motorola-sysv*)
17109 COREFILE=ptrace-core.lo
17110 ;;
252b5132
RH
17111 m88*-*-mach3*)
17112 COREFILE=trad-core.lo
17113 TRAD_HEADER='"hosts/m88kmach3.h"'
17114 ;;
c6f8758f
NC
17115 m88*-*-openbsd*)
17116 COREFILE=netbsd-core.lo
17117 ;;
252b5132
RH
17118 ns32k-pc532-mach)
17119 COREFILE=trad-core.lo
17120 TRAD_HEADER='"hosts/pc532mach.h"'
17121 ;;
17122 ns32k-*-netbsd* | ns32k-*-openbsd*)
17123 COREFILE=netbsd-core.lo
17124 ;;
eb1e0e80
NC
17125 rs6000-*-lynx*)
17126 COREFILE=lynx-core.lo
17127 ;;
17128 rs6000-*-aix5.* | powerpc-*-aix5.*)
17129 COREFILE=rs6000-core.lo
17130 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17131 ;;
83954261 17132 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
17133 COREFILE=rs6000-core.lo
17134 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
17135 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17136 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
17137 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17138echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17139 cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
83954261 17145#include <core.h>
5464f5a1
NN
17146int
17147main ()
17148{
83954261 17149struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
17150 ;
17151 return 0;
17152}
17153_ACEOF
17154rm -f conftest.$ac_objext
17155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17156 (eval $ac_compile) 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } &&
49c96104
SE
17163 { ac_try='test -z "$ac_c_werror_flag"
17164 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17172 (eval $ac_try) 2>&5
17173 ac_status=$?
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); }; }; then
17176
17177cat >>confdefs.h <<\_ACEOF
83954261 17178#define HAVE_ST_C_IMPL 1
5464f5a1 17179_ACEOF
83954261 17180
5464f5a1
NN
17181 echo "$as_me:$LINENO: result: yes" >&5
17182echo "${ECHO_T}yes" >&6
83954261 17183else
5464f5a1
NN
17184 echo "$as_me: failed program was:" >&5
17185sed 's/^/| /' conftest.$ac_ext >&5
17186
17187echo "$as_me:$LINENO: result: no" >&5
17188echo "${ECHO_T}no" >&6
83954261 17189fi
5464f5a1 17190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 17191 ;;
252b5132
RH
17192 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17193 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
17194 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17195 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17196 powerpc-*-beos*) ;;
13dfd2d0
NC
17197 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17198 COREFILE='' ;;
252b5132 17199 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 17200 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 17201 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
17202 sh*-*-netbsd* | sh*-*-openbsd*)
17203 COREFILE=netbsd-core.lo
17204 ;;
a9bf1154 17205 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
17206 COREFILE=netbsd-core.lo
17207 ;;
17208 tahoe-*-*)
17209 COREFILE=trad-core.lo
17210 TRAD_HEADER='"hosts/tahoe.h"'
17211 ;;
de6e5e1a
NC
17212 vax-*-netbsd* | vax-*-openbsd*)
17213 COREFILE=netbsd-core.lo
17214 ;;
252b5132
RH
17215 vax-*-ultrix2*)
17216 COREFILE=trad-core.lo
17217 TRAD_HEADER='"hosts/vaxult2.h"'
17218 ;;
17219 vax-*-ultrix*)
17220 COREFILE=trad-core.lo
17221 TRAD_HEADER='"hosts/vaxult2.h"'
17222 ;;
ed84e695 17223 vax-*-linux-*)
f8fc3443
NC
17224 COREFILE=trad-core.lo
17225 TRAD_HEADER='"hosts/vaxlinux.h"'
17226 ;;
252b5132
RH
17227 vax-*-*)
17228 COREFILE=trad-core.lo
17229 TRAD_HEADER='"hosts/vaxbsd.h"'
17230 ;;
85cfd8d3
MK
17231 x86_64-*-netbsd* | x86_64-*-openbsd*)
17232 COREFILE=netbsd-core.lo
17233 ;;
252b5132
RH
17234 esac
17235
17236 case "$COREFILE" in
17237 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17238 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17239 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17240 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17241 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17242 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17243 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17244 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17245 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17246 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17247 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17248 esac
17249
17250 # ELF corefile support has several flavors, but all of
17251 # them use something called <sys/procfs.h>
5464f5a1
NN
17252
17253for ac_header in sys/procfs.h
252b5132 17254do
5464f5a1
NN
17255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17256if eval "test \"\${$as_ac_Header+set}\" = set"; then
17257 echo "$as_me:$LINENO: checking for $ac_header" >&5
17258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17259if eval "test \"\${$as_ac_Header+set}\" = set"; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17261fi
17262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17264else
17265 # Is the header compilable?
17266echo "$as_me:$LINENO: checking $ac_header usability" >&5
17267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17268cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274$ac_includes_default
17275#include <$ac_header>
17276_ACEOF
17277rm -f conftest.$ac_objext
17278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279 (eval $ac_compile) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
49c96104
SE
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17293 { ac_try='test -s conftest.$ac_objext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 ac_header_compiler=yes
17300else
17301 echo "$as_me: failed program was:" >&5
17302sed 's/^/| /' conftest.$ac_ext >&5
17303
17304ac_header_compiler=no
17305fi
17306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17308echo "${ECHO_T}$ac_header_compiler" >&6
17309
17310# Is the header present?
17311echo "$as_me:$LINENO: checking $ac_header presence" >&5
17312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17313cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h. */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h. */
17319#include <$ac_header>
17320_ACEOF
17321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } >/dev/null; then
17329 if test -s conftest.err; then
17330 ac_cpp_err=$ac_c_preproc_warn_flag
17331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17332 else
17333 ac_cpp_err=
17334 fi
252b5132 17335else
5464f5a1 17336 ac_cpp_err=yes
252b5132 17337fi
5464f5a1
NN
17338if test -z "$ac_cpp_err"; then
17339 ac_header_preproc=yes
17340else
17341 echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344 ac_header_preproc=no
252b5132 17345fi
5464f5a1
NN
17346rm -f conftest.err conftest.$ac_ext
17347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17348echo "${ECHO_T}$ac_header_preproc" >&6
17349
17350# So? What about this header?
17351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17352 yes:no: )
17353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17357 ac_header_preproc=yes
17358 ;;
17359 no:yes:* )
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17372 (
17373 cat <<\_ASBOX
17374## ------------------------------------------ ##
17375## Report this to the AC_PACKAGE_NAME lists. ##
17376## ------------------------------------------ ##
17377_ASBOX
17378 ) |
17379 sed "s/^/$as_me: WARNING: /" >&2
17380 ;;
17381esac
17382echo "$as_me:$LINENO: checking for $ac_header" >&5
17383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17384if eval "test \"\${$as_ac_Header+set}\" = set"; then
17385 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 17386else
5464f5a1
NN
17387 eval "$as_ac_Header=\$ac_header_preproc"
17388fi
17389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17391
252b5132 17392fi
5464f5a1
NN
17393if test `eval echo '${'$as_ac_Header'}'` = yes; then
17394 cat >>confdefs.h <<_ACEOF
17395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17396_ACEOF
17397
17398fi
17399
252b5132
RH
17400done
17401
17402 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
17403 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17404echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17405 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17406 echo $ECHO_N "(cached) $ECHO_C" >&6
17407else
17408 cat >conftest.$ac_ext <<_ACEOF
17409/* confdefs.h. */
17410_ACEOF
17411cat confdefs.h >>conftest.$ac_ext
17412cat >>conftest.$ac_ext <<_ACEOF
17413/* end confdefs.h. */
7ee38065
MS
17414
17415#define _SYSCALL32
252b5132 17416#include <sys/procfs.h>
5464f5a1
NN
17417int
17418main ()
17419{
252b5132 17420prstatus_t avar
5464f5a1
NN
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext
17426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
49c96104
SE
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
252b5132
RH
17447 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17448else
5464f5a1
NN
17449 echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452bfd_cv_have_sys_procfs_type_prstatus_t=no
17453
252b5132 17454fi
5464f5a1 17455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17456fi
17457
17458 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
17459
17460cat >>confdefs.h <<\_ACEOF
252b5132 17461#define HAVE_PRSTATUS_T 1
5464f5a1 17462_ACEOF
252b5132
RH
17463
17464 fi
5464f5a1
NN
17465 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17466echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 17467
5464f5a1
NN
17468 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17469echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17470 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17472else
5464f5a1
NN
17473 cat >conftest.$ac_ext <<_ACEOF
17474/* confdefs.h. */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h. */
7ee38065
MS
17479
17480#define _SYSCALL32
17481#include <sys/procfs.h>
5464f5a1
NN
17482int
17483main ()
17484{
7ee38065 17485prstatus32_t avar
5464f5a1
NN
17486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext
17491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
49c96104
SE
17499 { ac_try='test -z "$ac_c_werror_flag"
17500 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
7ee38065
MS
17512 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17513else
5464f5a1
NN
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517bfd_cv_have_sys_procfs_type_prstatus32_t=no
17518
7ee38065 17519fi
5464f5a1 17520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17521fi
17522
17523 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
17524
17525cat >>confdefs.h <<\_ACEOF
7ee38065 17526#define HAVE_PRSTATUS32_T 1
5464f5a1 17527_ACEOF
7ee38065
MS
17528
17529 fi
5464f5a1
NN
17530 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17531echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 17532
5464f5a1
NN
17533 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17534echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17535 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17537else
5464f5a1
NN
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
7ee38065
MS
17544
17545#define _SYSCALL32
252b5132 17546#include <sys/procfs.h>
5464f5a1
NN
17547int
17548main ()
17549{
252b5132 17550prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17551 ;
17552 return 0;
17553}
17554_ACEOF
17555rm -f conftest.$ac_objext
17556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17557 (eval $ac_compile) 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
49c96104
SE
17564 { ac_try='test -z "$ac_c_werror_flag"
17565 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17571 { ac_try='test -s conftest.$ac_objext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
252b5132
RH
17577 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17578else
5464f5a1
NN
17579 echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17583
252b5132 17584fi
5464f5a1 17585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17586fi
17587
17588 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
17589
17590cat >>confdefs.h <<\_ACEOF
252b5132 17591#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 17592_ACEOF
252b5132
RH
17593
17594 fi
5464f5a1
NN
17595 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
17596echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 17597
5464f5a1
NN
17598 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
17599echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17600 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17602else
5464f5a1
NN
17603 cat >conftest.$ac_ext <<_ACEOF
17604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
7ee38065
MS
17609
17610#define _SYSCALL32
17611#include <sys/procfs.h>
5464f5a1
NN
17612int
17613main ()
17614{
7ee38065 17615prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext
17621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17622 (eval $ac_compile) 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
49c96104
SE
17629 { ac_try='test -z "$ac_c_werror_flag"
17630 || test ! -s conftest.err'
5464f5a1
NN
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest.$ac_objext'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
7ee38065
MS
17642 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
17643else
5464f5a1
NN
17644 echo "$as_me: failed program was:" >&5
17645sed 's/^/| /' conftest.$ac_ext >&5
17646
17647bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
17648
7ee38065 17649fi
5464f5a1 17650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17651fi
17652
17653 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
17654
17655cat >>confdefs.h <<\_ACEOF
7ee38065 17656#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 17657_ACEOF
7ee38065
MS
17658
17659 fi
5464f5a1
NN
17660 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
17661echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 17662
5464f5a1
NN
17663 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17664echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17665 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17667else
5464f5a1
NN
17668 cat >conftest.$ac_ext <<_ACEOF
17669/* confdefs.h. */
17670_ACEOF
17671cat confdefs.h >>conftest.$ac_ext
17672cat >>conftest.$ac_ext <<_ACEOF
17673/* end confdefs.h. */
7ee38065
MS
17674
17675#define _SYSCALL32
252b5132 17676#include <sys/procfs.h>
5464f5a1
NN
17677int
17678main ()
17679{
252b5132 17680pstatus_t avar
5464f5a1
NN
17681 ;
17682 return 0;
17683}
17684_ACEOF
17685rm -f conftest.$ac_objext
17686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17688 ac_status=$?
17689 grep -v '^ *+' conftest.er1 >conftest.err
17690 rm -f conftest.er1
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
49c96104
SE
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17701 { ac_try='test -s conftest.$ac_objext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
252b5132
RH
17707 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17708else
5464f5a1
NN
17709 echo "$as_me: failed program was:" >&5
17710sed 's/^/| /' conftest.$ac_ext >&5
17711
17712bfd_cv_have_sys_procfs_type_pstatus_t=no
17713
252b5132 17714fi
5464f5a1 17715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17716fi
17717
17718 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
17719
17720cat >>confdefs.h <<\_ACEOF
252b5132 17721#define HAVE_PSTATUS_T 1
5464f5a1 17722_ACEOF
252b5132
RH
17723
17724 fi
5464f5a1
NN
17725 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17726echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 17727
5464f5a1
NN
17728 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
17729echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
17730 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 17732else
5464f5a1
NN
17733 cat >conftest.$ac_ext <<_ACEOF
17734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h. */
f572a39d
AM
17739
17740#define _SYSCALL32
17741#include <sys/procfs.h>
5464f5a1
NN
17742int
17743main ()
17744{
f572a39d 17745pxstatus_t avar
5464f5a1
NN
17746 ;
17747 return 0;
17748}
17749_ACEOF
17750rm -f conftest.$ac_objext
17751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17752 (eval $ac_compile) 2>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
49c96104
SE
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
f572a39d
AM
17772 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
17773else
5464f5a1
NN
17774 echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777bfd_cv_have_sys_procfs_type_pxstatus_t=no
17778
f572a39d 17779fi
5464f5a1 17780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
17781fi
17782
17783 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
17784
17785cat >>confdefs.h <<\_ACEOF
f572a39d 17786#define HAVE_PXSTATUS_T 1
5464f5a1 17787_ACEOF
f572a39d
AM
17788
17789 fi
5464f5a1
NN
17790 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
17791echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 17792
5464f5a1
NN
17793 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
17794echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
17795 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17797else
5464f5a1
NN
17798 cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
7ee38065
MS
17804
17805#define _SYSCALL32
17806#include <sys/procfs.h>
5464f5a1
NN
17807int
17808main ()
17809{
7ee38065 17810pstatus32_t avar
5464f5a1
NN
17811 ;
17812 return 0;
17813}
17814_ACEOF
17815rm -f conftest.$ac_objext
17816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17817 (eval $ac_compile) 2>conftest.er1
17818 ac_status=$?
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
49c96104
SE
17824 { ac_try='test -z "$ac_c_werror_flag"
17825 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17831 { ac_try='test -s conftest.$ac_objext'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
7ee38065
MS
17837 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
17838else
5464f5a1
NN
17839 echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
17842bfd_cv_have_sys_procfs_type_pstatus32_t=no
17843
7ee38065 17844fi
5464f5a1 17845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17846fi
17847
17848 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
17849
17850cat >>confdefs.h <<\_ACEOF
7ee38065 17851#define HAVE_PSTATUS32_T 1
5464f5a1 17852_ACEOF
7ee38065
MS
17853
17854 fi
5464f5a1
NN
17855 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
17856echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 17857
5464f5a1
NN
17858 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
17859echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
17860 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17862else
5464f5a1
NN
17863 cat >conftest.$ac_ext <<_ACEOF
17864/* confdefs.h. */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h. */
7ee38065
MS
17869
17870#define _SYSCALL32
252b5132 17871#include <sys/procfs.h>
5464f5a1
NN
17872int
17873main ()
17874{
252b5132 17875prpsinfo_t avar
5464f5a1
NN
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext
17881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882 (eval $ac_compile) 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
49c96104
SE
17889 { ac_try='test -z "$ac_c_werror_flag"
17890 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17896 { ac_try='test -s conftest.$ac_objext'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
252b5132
RH
17902 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
17903else
5464f5a1
NN
17904 echo "$as_me: failed program was:" >&5
17905sed 's/^/| /' conftest.$ac_ext >&5
17906
17907bfd_cv_have_sys_procfs_type_prpsinfo_t=no
17908
252b5132 17909fi
5464f5a1 17910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
17911fi
17912
17913 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
17914
17915cat >>confdefs.h <<\_ACEOF
252b5132 17916#define HAVE_PRPSINFO_T 1
5464f5a1 17917_ACEOF
252b5132
RH
17918
17919 fi
5464f5a1
NN
17920 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
17921echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 17922
5464f5a1
NN
17923 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
17924echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
17925 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 17927else
5464f5a1
NN
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
7ee38065
MS
17934
17935#define _SYSCALL32
17936#include <sys/procfs.h>
5464f5a1
NN
17937int
17938main ()
17939{
7ee38065 17940prpsinfo32_t avar
5464f5a1
NN
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
17946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17947 (eval $ac_compile) 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } &&
49c96104
SE
17954 { ac_try='test -z "$ac_c_werror_flag"
17955 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
7ee38065
MS
17967 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
17968else
5464f5a1
NN
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
17973
7ee38065 17974fi
5464f5a1 17975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
17976fi
17977
17978 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
17979
17980cat >>confdefs.h <<\_ACEOF
7ee38065 17981#define HAVE_PRPSINFO32_T 1
5464f5a1 17982_ACEOF
7ee38065
MS
17983
17984 fi
5464f5a1
NN
17985 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
17986echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 17987
5464f5a1
NN
17988 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
17989echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
17990 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 17992else
5464f5a1
NN
17993 cat >conftest.$ac_ext <<_ACEOF
17994/* confdefs.h. */
17995_ACEOF
17996cat confdefs.h >>conftest.$ac_ext
17997cat >>conftest.$ac_ext <<_ACEOF
17998/* end confdefs.h. */
7ee38065
MS
17999
18000#define _SYSCALL32
252b5132 18001#include <sys/procfs.h>
5464f5a1
NN
18002int
18003main ()
18004{
252b5132 18005psinfo_t avar
5464f5a1
NN
18006 ;
18007 return 0;
18008}
18009_ACEOF
18010rm -f conftest.$ac_objext
18011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18012 (eval $ac_compile) 2>conftest.er1
18013 ac_status=$?
18014 grep -v '^ *+' conftest.er1 >conftest.err
18015 rm -f conftest.er1
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
49c96104
SE
18019 { ac_try='test -z "$ac_c_werror_flag"
18020 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
252b5132
RH
18032 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18033else
5464f5a1
NN
18034 echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037bfd_cv_have_sys_procfs_type_psinfo_t=no
18038
252b5132 18039fi
5464f5a1 18040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18041fi
18042
18043 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
18044
18045cat >>confdefs.h <<\_ACEOF
252b5132 18046#define HAVE_PSINFO_T 1
5464f5a1 18047_ACEOF
252b5132
RH
18048
18049 fi
5464f5a1
NN
18050 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18051echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 18052
5464f5a1
NN
18053 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18054echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18055 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 18057else
5464f5a1
NN
18058 cat >conftest.$ac_ext <<_ACEOF
18059/* confdefs.h. */
18060_ACEOF
18061cat confdefs.h >>conftest.$ac_ext
18062cat >>conftest.$ac_ext <<_ACEOF
18063/* end confdefs.h. */
7ee38065
MS
18064
18065#define _SYSCALL32
18066#include <sys/procfs.h>
5464f5a1
NN
18067int
18068main ()
18069{
7ee38065 18070psinfo32_t avar
5464f5a1
NN
18071 ;
18072 return 0;
18073}
18074_ACEOF
18075rm -f conftest.$ac_objext
18076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077 (eval $ac_compile) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
49c96104
SE
18084 { ac_try='test -z "$ac_c_werror_flag"
18085 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
7ee38065
MS
18097 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18098else
5464f5a1
NN
18099 echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
18102bfd_cv_have_sys_procfs_type_psinfo32_t=no
18103
7ee38065 18104fi
5464f5a1 18105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
18106fi
18107
18108 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
18109
18110cat >>confdefs.h <<\_ACEOF
7ee38065 18111#define HAVE_PSINFO32_T 1
5464f5a1 18112_ACEOF
7ee38065
MS
18113
18114 fi
5464f5a1
NN
18115 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18116echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 18117
5464f5a1
NN
18118 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18119echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18120 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18122else
5464f5a1
NN
18123 cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
7ee38065
MS
18129
18130#define _SYSCALL32
252b5132 18131#include <sys/procfs.h>
5464f5a1
NN
18132int
18133main ()
18134{
252b5132 18135lwpstatus_t avar
5464f5a1
NN
18136 ;
18137 return 0;
18138}
18139_ACEOF
18140rm -f conftest.$ac_objext
18141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18142 (eval $ac_compile) 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
49c96104
SE
18149 { ac_try='test -z "$ac_c_werror_flag"
18150 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18156 { ac_try='test -s conftest.$ac_objext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
252b5132
RH
18162 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18163else
5464f5a1
NN
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18168
252b5132 18169fi
5464f5a1 18170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18171fi
18172
18173 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
18174
18175cat >>confdefs.h <<\_ACEOF
252b5132 18176#define HAVE_LWPSTATUS_T 1
5464f5a1 18177_ACEOF
252b5132
RH
18178
18179 fi
5464f5a1
NN
18180 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18181echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 18182
5464f5a1
NN
18183 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18184echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18185 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 18187else
5464f5a1
NN
18188 cat >conftest.$ac_ext <<_ACEOF
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
f572a39d
AM
18194
18195#define _SYSCALL32
18196#include <sys/procfs.h>
5464f5a1
NN
18197int
18198main ()
18199{
f572a39d 18200lwpxstatus_t avar
5464f5a1
NN
18201 ;
18202 return 0;
18203}
18204_ACEOF
18205rm -f conftest.$ac_objext
18206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18207 (eval $ac_compile) 2>conftest.er1
18208 ac_status=$?
18209 grep -v '^ *+' conftest.er1 >conftest.err
18210 rm -f conftest.er1
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
49c96104
SE
18214 { ac_try='test -z "$ac_c_werror_flag"
18215 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18221 { ac_try='test -s conftest.$ac_objext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
f572a39d
AM
18227 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18228else
5464f5a1
NN
18229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18233
f572a39d 18234fi
5464f5a1 18235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
18236fi
18237
18238 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
18239
18240cat >>confdefs.h <<\_ACEOF
f572a39d 18241#define HAVE_LWPXSTATUS_T 1
5464f5a1 18242_ACEOF
f572a39d
AM
18243
18244 fi
5464f5a1
NN
18245 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18246echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 18247
5464f5a1
NN
18248 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18249echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18250 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18252else
5464f5a1
NN
18253 cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
7ee38065
MS
18259
18260#define _SYSCALL32
252b5132 18261#include <sys/procfs.h>
5464f5a1
NN
18262int
18263main ()
18264{
252b5132 18265lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest.$ac_objext
18271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272 (eval $ac_compile) 2>conftest.er1
18273 ac_status=$?
18274 grep -v '^ *+' conftest.er1 >conftest.err
18275 rm -f conftest.er1
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
49c96104
SE
18279 { ac_try='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18286 { ac_try='test -s conftest.$ac_objext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
252b5132
RH
18292 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18293else
5464f5a1
NN
18294 echo "$as_me: failed program was:" >&5
18295sed 's/^/| /' conftest.$ac_ext >&5
18296
18297bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18298
252b5132 18299fi
5464f5a1 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18301fi
18302
18303 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
18304
18305cat >>confdefs.h <<\_ACEOF
252b5132 18306#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 18307_ACEOF
252b5132
RH
18308
18309 fi
5464f5a1
NN
18310 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18311echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 18312
5464f5a1
NN
18313 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18314echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18315 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18317else
5464f5a1
NN
18318 cat >conftest.$ac_ext <<_ACEOF
18319/* confdefs.h. */
18320_ACEOF
18321cat confdefs.h >>conftest.$ac_ext
18322cat >>conftest.$ac_ext <<_ACEOF
18323/* end confdefs.h. */
7ee38065
MS
18324
18325#define _SYSCALL32
252b5132 18326#include <sys/procfs.h>
5464f5a1
NN
18327int
18328main ()
18329{
252b5132 18330lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
18331 ;
18332 return 0;
18333}
18334_ACEOF
18335rm -f conftest.$ac_objext
18336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18337 (eval $ac_compile) 2>conftest.er1
18338 ac_status=$?
18339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
49c96104
SE
18344 { ac_try='test -z "$ac_c_werror_flag"
18345 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18351 { ac_try='test -s conftest.$ac_objext'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
252b5132
RH
18357 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18358else
5464f5a1
NN
18359 echo "$as_me: failed program was:" >&5
18360sed 's/^/| /' conftest.$ac_ext >&5
18361
18362bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18363
252b5132 18364fi
5464f5a1 18365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18366fi
18367
18368 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
18369
18370cat >>confdefs.h <<\_ACEOF
252b5132 18371#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 18372_ACEOF
252b5132
RH
18373
18374 fi
5464f5a1
NN
18375 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18376echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 18377
5464f5a1
NN
18378 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18379echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18380 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 18382else
5464f5a1
NN
18383 cat >conftest.$ac_ext <<_ACEOF
18384/* confdefs.h. */
18385_ACEOF
18386cat confdefs.h >>conftest.$ac_ext
18387cat >>conftest.$ac_ext <<_ACEOF
18388/* end confdefs.h. */
7ee38065
MS
18389
18390#define _SYSCALL32
e3c976c4 18391#include <sys/procfs.h>
5464f5a1
NN
18392int
18393main ()
18394{
e3c976c4 18395win32_pstatus_t avar
5464f5a1
NN
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
18401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
49c96104
SE
18409 { ac_try='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
18416 { ac_try='test -s conftest.$ac_objext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
e3c976c4
ILT
18422 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18423else
5464f5a1
NN
18424 echo "$as_me: failed program was:" >&5
18425sed 's/^/| /' conftest.$ac_ext >&5
18426
18427bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18428
e3c976c4 18429fi
5464f5a1 18430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
18431fi
18432
e3c976c4 18433 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
18434
18435cat >>confdefs.h <<\_ACEOF
e3c976c4 18436#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 18437_ACEOF
16e9c715
NC
18438
18439 fi
5464f5a1
NN
18440 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18441echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
18442
18443 fi
18444fi
16e9c715 18445
b3baf5d0 18446
6be7c12c 18447if test -n "$TRAD_HEADER"; then
5464f5a1
NN
18448
18449cat >>confdefs.h <<_ACEOF
252b5132 18450#define TRAD_HEADER $TRAD_HEADER
5464f5a1 18451_ACEOF
252b5132 18452
3f9b03b5 18453fi
252b5132
RH
18454
18455# Horrible hacks to build DLLs on Windows.
18456WIN32LDFLAGS=
18457WIN32LIBADD=
18458case "${host}" in
18459*-*-cygwin*)
18460 if test "$enable_shared" = "yes"; then
18461 WIN32LDFLAGS="-no-undefined"
18462 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18463 fi
18464 ;;
78be1d6e 18465*-*-linux*)
39691762
L
18466 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18467 # libiberty.a.
ca51bfff
L
18468 case "${host}" in
18469 mips*-*-linux*)
18470 # Linux/MIPS uses PIC by default.
18471 if test "$enable_shared" = "yes"; then
18472 WIN32LIBADD="-L../libiberty -liberty"
18473 fi
18474 ;;
18475 *)
66e25bab 18476 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 18477 if test -n "$x"; then
ca51bfff
L
18478 WIN32LIBADD="-L../libiberty/pic -liberty"
18479 fi
18480 ;;
18481 esac
39691762 18482 ;;
252b5132
RH
18483esac
18484
6be7c12c
AO
18485
18486
252b5132
RH
18487# target stuff:
18488
18489# Canonicalize the secondary target names.
18490if test -n "$enable_targets" ; then
18491 for targ in `echo $enable_targets | sed 's/,/ /g'`
18492 do
6d83c84b 18493 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
18494 if test -n "$result" ; then
18495 canon_targets="$canon_targets $result"
18496 else
18497 # Allow targets that config.sub doesn't recognize, like "all".
18498 canon_targets="$canon_targets $targ"
18499 fi
18500 done
18501fi
18502
18503all_targets=false
18504defvec=
18505selvecs=
08f74004 18506assocvecs=
252b5132
RH
18507selarchs=
18508TDEFINES=
18509for targ in $target $canon_targets
18510do
18511 if test "x$targ" = "xall"; then
18512 all_targets=true
08f74004 18513 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
18514 else
18515 . $srcdir/config.bfd
18516 if test "x$targ" = "x$target"; then
18517 defvec=$targ_defvec
18518 fi
18519 selvecs="$selvecs $targ_defvec $targ_selvecs"
18520 selarchs="$selarchs $targ_archs"
18521 TDEFINES="$TDEFINES $targ_cflags"
18522 fi
18523done
18524
6be7c12c 18525
252b5132
RH
18526# This processing still needs to be done if we're to decide properly whether
18527# 64-bit support needs to be compiled in. Currently, it will be included if
18528# the default or any other explicitly requested target requires it; it
18529# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 18530# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
18531# used.
18532
18533# uniq the default and selected vectors in all the configured targets.
18534f=""
18535for i in $selvecs ; do
18536 case " $f " in
18537 *" $i "*) ;;
18538 *) f="$f $i" ;;
18539 esac
18540done
18541selvecs="$f"
18542
6be7c12c 18543
08f74004
AM
18544# uniq the associated vectors in all the configured targets.
18545f=""
18546for i in $assocvecs ; do
18547 case " $f " in
18548 *" $i "*) ;;
18549 *) f="$f $i" ;;
18550 esac
18551done
18552assocvecs="$f"
18553
18554
252b5132
RH
18555# uniq the architectures in all the configured targets.
18556f=""
18557for i in $selarchs ; do
18558 case " $f " in
18559 *" $i "*) ;;
18560 *) f="$f $i" ;;
18561 esac
18562done
18563selarchs="$f"
18564
18565# Target backend .o files.
18566tb=
18567
65765700 18568elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
18569
18570for vec in $selvecs
18571do
69263e90 18572 target_size=32
252b5132
RH
18573 case "$vec" in
18574 # This list is alphabetized to make it easy to compare
dc810e39
AM
18575 # with the two vector lists in targets.c. For the same reason,
18576 # use one entry per line, even though this leads to long lines.
252b5132 18577 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 18578 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
18579 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18580 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18581 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 18582 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
18583 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18584 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18585 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18586 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
18587 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18588 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18589 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18590 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
18591 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18592 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18593 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
18594 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18595 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18596 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18597 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
18598 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
18599 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 18600 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 18601 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 18602 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 18603 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 18604 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 18605 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 18606 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 18607 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 18608 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 18609 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 18610 bfd_elf32_bigarm_symbian_vec)
00a97672 18611 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 18612 bfd_elf32_bigarm_vxworks_vec)
00a97672 18613 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
18614 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18615 bfd_elf32_bigmips_vxworks_vec)
18616 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 18617 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 18618 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 18619 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
18620 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
18621 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 18622 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 18623 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 18624 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 18625 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 18626 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 18627 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 18628 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 18629 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 18630 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
18631 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18632 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18633 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 18634 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 18635 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 18636 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 18637 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 18638 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 18639 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 18640 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 18641 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 18642 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 18643 bfd_elf32_littlearm_symbian_vec)
00a97672 18644 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 18645 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
18646 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18647 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
18648 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18649 bfd_elf32_littlemips_vxworks_vec)
18650 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 18651 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 18652 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
18653 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18654 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18655 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
18656 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18657 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
18658 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
18659 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
18660 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18661 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
18662 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18663 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
18664 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
18665 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 18666 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 18667 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
18668 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18669 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18670 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18671 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 18672 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 18673 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
18674 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
18675 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
18676 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18677 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18678 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 18679 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
18680 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
18681 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
18682 # FIXME: We include cofflink.lo not because it's needed for
18683 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
18684 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
18685 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18686 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18687 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18688 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18689 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18690 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18691 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18692 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18693 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18694 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18695 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18696 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18697 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 18698 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 18699 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
18700 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18701 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 18702 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
18703 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18704 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 18705 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 18706 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 18707 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 18708 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 18709 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
18710 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18711 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 18712 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
18713 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
18714 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 18715 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
18716 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
18717 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 18718 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 18719 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
18720 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18721 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 18722 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 18723 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
18724 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18725 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
18726 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
18727 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18728 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
18729 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18730 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18731 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18732 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 18733 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 18734 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
18735 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 ;;
18736 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 18737 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 18738 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 18739 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
18740 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18741 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
18742 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18743 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 18744 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 18745 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 18746 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 18747 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
18748 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18749 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
18750 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
18751 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
18752 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
18753 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
18754 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
18755 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
18756 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
18757 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
18758 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
18759 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 18760 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
18761 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
18762 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
18763 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
18764 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
18765 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
18766 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 18767 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
18768 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
18769 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
18770 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
18771 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
18772 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18773 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
18774 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
18775 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18776 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18777 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
18778 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
18779 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
18780 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
18781 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
18782 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 18783 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
18784 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
18785 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 18786 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 18787 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 18788 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
18789 mach_o_be_vec) tb="$tb mach-o.lo" ;;
18790 mach_o_le_vec) tb="$tb mach-o.lo" ;;
18791 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
18792 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18793 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18794 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
18795 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
18796 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
18797 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 18798 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 18799 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 18800 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 18801 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 18802 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 18803 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 18804 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 18805 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
18806 pef_vec) tb="$tb pef.lo" ;;
18807 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 18808 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 18809 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 18810 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 18811 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 18812 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 18813 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 18814 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 18815 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 18816 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 18817 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
18818 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
18819 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 18820 som_vec) tb="$tb som.lo" ;;
dc810e39 18821 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
18822 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
18823 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
18824 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
18825 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
18826 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 18827 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 18828 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
18829 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
18830 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
18831 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
18832 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
18833 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
18834 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
18835 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
18836 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 18837 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 18838 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 18839 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 18840 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 18841 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 18842 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 18843 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 18844 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 18845 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 18846 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 18847 versados_vec) tb="$tb versados.lo" ;;
dc810e39 18848 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
18849 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
18850 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
18851 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 18852 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 18853 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 18854
341ca622
AM
18855 # These appear out of order in targets.c
18856 srec_vec) tb="$tb srec.lo" ;;
18857 symbolsrec_vec) tb="$tb srec.lo" ;;
18858 tekhex_vec) tb="$tb tekhex.lo" ;;
18859 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
18860 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
18861
252b5132 18862 "") ;;
5464f5a1
NN
18863 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
18864echo "$as_me: error: *** unknown target vector $vec" >&2;}
18865 { (exit 1); exit 1; }; } ;;
252b5132 18866 esac
69263e90
AM
18867
18868 if test ${target_size} = 64; then
18869 target64=true
18870 fi
18871 if test x"${vec}" = x"${defvec}"; then
18872 bfd_default_target_size=${target_size}
18873 fi
252b5132
RH
18874done
18875
18876# Target architecture .o files.
18877# A couple of CPUs use shorter file names to avoid problems on DOS
18878# filesystems.
d031aafb 18879ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
18880
18881# Weed out duplicate .o files.
18882f=""
18883for i in $tb ; do
18884 case " $f " in
18885 *" $i "*) ;;
18886 *) f="$f $i" ;;
18887 esac
18888done
18889tb="$f"
18890
18891f=""
18892for i in $ta ; do
18893 case " $f " in
18894 *" $i "*) ;;
18895 *) f="$f $i" ;;
18896 esac
18897done
18898ta="$f"
18899
18900bfd_backends="$tb"
18901bfd_machines="$ta"
18902
18903if test x${all_targets} = xtrue ; then
18904 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
18905 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
18906 selvecs=
18907 havevecs=
18908 selarchs=
08f74004
AM
18909 test -n "$assocvecs" &&
18910 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
18911else # all_targets is true
18912 # Only set these if they will be nonempty, for the clever echo.
18913 havevecs=
08f74004 18914 assocvecs=
252b5132
RH
18915 test -n "$selvecs" &&
18916 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
18917 test -n "$selvecs" &&
18918 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18919 test -n "$selarchs" &&
18920 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18921fi # all_targets is true
18922
18923case ${host64}-${target64}-${want64} in
18924 *true*)
18925 wordsize=64
21e40a48 18926 bfd64_libs='$(BFD64_LIBS)'
252b5132 18927 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 18928 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
18929 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
18930echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
18932echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 18933 fi
966abd70
HPN
18934 if test -n "$GCC" ; then
18935 bad_64bit_gcc=no;
5464f5a1
NN
18936 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
18937echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 18938 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
18939 cat >conftest.$ac_ext <<_ACEOF
18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
966abd70 18945:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 18946_ACEOF
966abd70 18947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 18948 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 18949 bad_64bit_gcc=yes;
5464f5a1
NN
18950 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
18951echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 18952else
5464f5a1
NN
18953 echo "$as_me:$LINENO: result: no" >&5
18954echo "${ECHO_T}no" >&6
966abd70
HPN
18955fi
18956rm -f conftest*
18957
18958 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
18959 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
18960echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
18961 { (exit 1); exit 1; }; }
966abd70
HPN
18962 fi
18963 fi
252b5132
RH
18964 ;;
18965 false-false-false)
18966 wordsize=32
18967 all_backends='$(BFD32_BACKENDS)'
18968 ;;
18969esac
18970
6be7c12c
AO
18971
18972
18973
18974
18975
69263e90 18976
2858ef35 18977
1012372a
AC
18978# Determine the host dependant file_ptr a.k.a. off_t type. In order
18979# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
18980# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
18981# Hopefully a reasonable assumption since fseeko et.al. should be
18982# upward compatible.
5464f5a1
NN
18983
18984
18985
18986
2e6f4fae
DJ
18987
18988for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 18989do
5464f5a1
NN
18990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18991echo "$as_me:$LINENO: checking for $ac_func" >&5
18992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18993if eval "test \"\${$as_ac_var+set}\" = set"; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995else
2ba49b59
KC
18996 cat >conftest.$ac_ext <<_ACEOF
18997/* confdefs.h. */
18998_ACEOF
18999cat confdefs.h >>conftest.$ac_ext
19000cat >>conftest.$ac_ext <<_ACEOF
19001/* end confdefs.h. */
19002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19004#define $ac_func innocuous_$ac_func
19005
19006/* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char $ac_func (); below.
19008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009 <limits.h> exists even on freestanding compilers. */
19010
19011#ifdef __STDC__
19012# include <limits.h>
19013#else
19014# include <assert.h>
19015#endif
19016
19017#undef $ac_func
19018
19019/* Override any gcc2 internal prototype to avoid an error. */
19020#ifdef __cplusplus
19021extern "C"
19022{
19023#endif
19024/* We use char because int might match the return type of a gcc2
19025 builtin and then its argument prototype would still apply. */
19026char $ac_func ();
19027/* The GNU C library defines this for functions which it implements
19028 to always fail with ENOSYS. Some functions are actually named
19029 something starting with __ and the normal name is an alias. */
19030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19031choke me
19032#else
19033char (*f) () = $ac_func;
19034#endif
19035#ifdef __cplusplus
19036}
19037#endif
19038
19039int
19040main ()
19041{
19042return f != $ac_func;
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047rm -f conftest.$ac_objext conftest$ac_exeext
19048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19049 (eval $ac_link) 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
49c96104
SE
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
19063 { ac_try='test -s conftest$ac_exeext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19069 eval "$as_ac_var=yes"
19070else
19071 echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074eval "$as_ac_var=no"
19075fi
19076rm -f conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078fi
19079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19081if test `eval echo '${'$as_ac_var'}'` = yes; then
19082 cat >>confdefs.h <<_ACEOF
19083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19084_ACEOF
19085
19086fi
19087done
19088
19089if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19090 echo "$as_me:$LINENO: checking for off_t" >&5
19091echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19092if test "${ac_cv_type_off_t+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094else
19095 cat >conftest.$ac_ext <<_ACEOF
19096/* confdefs.h. */
19097_ACEOF
19098cat confdefs.h >>conftest.$ac_ext
19099cat >>conftest.$ac_ext <<_ACEOF
19100/* end confdefs.h. */
19101$ac_includes_default
19102int
19103main ()
19104{
19105if ((off_t *) 0)
19106 return 0;
19107if (sizeof (off_t))
19108 return 0;
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest.$ac_objext
19114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19115 (eval $ac_compile) 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
49c96104
SE
19122 { ac_try='test -z "$ac_c_werror_flag"
19123 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
19129 { ac_try='test -s conftest.$ac_objext'
19130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_type_off_t=yes
19136else
19137 echo "$as_me: failed program was:" >&5
19138sed 's/^/| /' conftest.$ac_ext >&5
19139
19140ac_cv_type_off_t=no
19141fi
19142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19143fi
19144echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19145echo "${ECHO_T}$ac_cv_type_off_t" >&6
19146
19147echo "$as_me:$LINENO: checking size of off_t" >&5
19148echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19149if test "${ac_cv_sizeof_off_t+set}" = set; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19151else
19152 if test "$ac_cv_type_off_t" = yes; then
19153 # The cast to unsigned long works around a bug in the HP C Compiler
19154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19156 # This bug is HP SR number 8606223364.
19157 if test "$cross_compiling" = yes; then
19158 # Depending upon the size, compute the lo and hi bounds.
19159cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
19160/* confdefs.h. */
19161_ACEOF
19162cat confdefs.h >>conftest.$ac_ext
19163cat >>conftest.$ac_ext <<_ACEOF
19164/* end confdefs.h. */
2ba49b59
KC
19165$ac_includes_default
19166int
19167main ()
19168{
19169static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19170test_array [0] = 0
5464f5a1 19171
2ba49b59
KC
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext
19177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19178 (eval $ac_compile) 2>conftest.er1
19179 ac_status=$?
19180 grep -v '^ *+' conftest.er1 >conftest.err
19181 rm -f conftest.er1
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); } &&
49c96104
SE
19185 { ac_try='test -z "$ac_c_werror_flag"
19186 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
19192 { ac_try='test -s conftest.$ac_objext'
19193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19194 (eval $ac_try) 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_lo=0 ac_mid=0
19199 while :; do
19200 cat >conftest.$ac_ext <<_ACEOF
19201/* confdefs.h. */
19202_ACEOF
19203cat confdefs.h >>conftest.$ac_ext
19204cat >>conftest.$ac_ext <<_ACEOF
19205/* end confdefs.h. */
19206$ac_includes_default
19207int
19208main ()
19209{
19210static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19211test_array [0] = 0
5464f5a1 19212
2ba49b59
KC
19213 ;
19214 return 0;
19215}
19216_ACEOF
19217rm -f conftest.$ac_objext
19218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219 (eval $ac_compile) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
49c96104
SE
19226 { ac_try='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_hi=$ac_mid; break
19240else
19241 echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19243
2ba49b59
KC
19244ac_lo=`expr $ac_mid + 1`
19245 if test $ac_lo -le $ac_mid; then
19246 ac_lo= ac_hi=
19247 break
19248 fi
19249 ac_mid=`expr 2 '*' $ac_mid + 1`
19250fi
19251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19252 done
19253else
19254 echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19256
2ba49b59
KC
19257cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263$ac_includes_default
19264int
19265main ()
5464f5a1 19266{
2ba49b59
KC
19267static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19268test_array [0] = 0
1012372a 19269
2ba49b59
KC
19270 ;
19271 return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
49c96104
SE
19283 { ac_try='test -z "$ac_c_werror_flag"
19284 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_hi=-1 ac_mid=-1
19297 while :; do
19298 cat >conftest.$ac_ext <<_ACEOF
19299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
19304$ac_includes_default
5464f5a1
NN
19305int
19306main ()
19307{
2ba49b59
KC
19308static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19309test_array [0] = 0
19310
5464f5a1
NN
19311 ;
19312 return 0;
19313}
19314_ACEOF
2ba49b59
KC
19315rm -f conftest.$ac_objext
19316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19317 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
19318 ac_status=$?
19319 grep -v '^ *+' conftest.er1 >conftest.err
19320 rm -f conftest.er1
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } &&
49c96104
SE
19324 { ac_try='test -z "$ac_c_werror_flag"
19325 || test ! -s conftest.err'
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); }; } &&
2ba49b59 19331 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
2ba49b59 19337 ac_lo=$ac_mid; break
5464f5a1
NN
19338else
19339 echo "$as_me: failed program was:" >&5
19340sed 's/^/| /' conftest.$ac_ext >&5
19341
2ba49b59
KC
19342ac_hi=`expr '(' $ac_mid ')' - 1`
19343 if test $ac_mid -le $ac_hi; then
19344 ac_lo= ac_hi=
19345 break
19346 fi
19347 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 19348fi
2ba49b59
KC
19349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19350 done
19351else
19352 echo "$as_me: failed program was:" >&5
19353sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19354
2ba49b59 19355ac_lo= ac_hi=
1012372a 19356fi
2ba49b59
KC
19357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19358fi
19359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360# Binary search between lo and hi bounds.
19361while test "x$ac_lo" != "x$ac_hi"; do
19362 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
19363 cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h. */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h. */
2ba49b59 19369$ac_includes_default
5464f5a1
NN
19370int
19371main ()
19372{
2ba49b59
KC
19373static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19374test_array [0] = 0
19375
5464f5a1
NN
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
49c96104
SE
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
2ba49b59 19402 ac_hi=$ac_mid
1012372a 19403else
5464f5a1
NN
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
2ba49b59 19407ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 19408fi
5464f5a1 19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 19410done
2ba49b59
KC
19411case $ac_lo in
19412?*) ac_cv_sizeof_off_t=$ac_lo;;
19413'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19414See \`config.log' for more details." >&5
19415echo "$as_me: error: cannot compute sizeof (off_t), 77
19416See \`config.log' for more details." >&2;}
19417 { (exit 1); exit 1; }; } ;;
19418esac
19419else
19420 if test "$cross_compiling" = yes; then
49c96104
SE
19421 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19422See \`config.log' for more details." >&5
19423echo "$as_me: error: cannot run test program while cross compiling
19424See \`config.log' for more details." >&2;}
2ba49b59
KC
19425 { (exit 1); exit 1; }; }
19426else
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433$ac_includes_default
19434long longval () { return (long) (sizeof (off_t)); }
19435unsigned long ulongval () { return (long) (sizeof (off_t)); }
19436#include <stdio.h>
19437#include <stdlib.h>
19438int
19439main ()
19440{
1012372a 19441
2ba49b59
KC
19442 FILE *f = fopen ("conftest.val", "w");
19443 if (! f)
19444 exit (1);
19445 if (((long) (sizeof (off_t))) < 0)
19446 {
19447 long i = longval ();
19448 if (i != ((long) (sizeof (off_t))))
19449 exit (1);
19450 fprintf (f, "%ld\n", i);
19451 }
19452 else
19453 {
19454 unsigned long i = ulongval ();
19455 if (i != ((long) (sizeof (off_t))))
19456 exit (1);
19457 fprintf (f, "%lu\n", i);
19458 }
19459 exit (ferror (f) || fclose (f) != 0);
19460
19461 ;
19462 return 0;
19463}
19464_ACEOF
19465rm -f conftest$ac_exeext
19466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467 (eval $ac_link) 2>&5
19468 ac_status=$?
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_sizeof_off_t=`cat conftest.val`
19477else
19478 echo "$as_me: program exited with status $ac_status" >&5
19479echo "$as_me: failed program was:" >&5
19480sed 's/^/| /' conftest.$ac_ext >&5
1012372a 19481
2ba49b59
KC
19482( exit $ac_status )
19483{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19484See \`config.log' for more details." >&5
19485echo "$as_me: error: cannot compute sizeof (off_t), 77
19486See \`config.log' for more details." >&2;}
5464f5a1 19487 { (exit 1); exit 1; }; }
1012372a 19488fi
2ba49b59
KC
19489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19490fi
19491fi
19492rm -f conftest.val
19493else
19494 ac_cv_sizeof_off_t=0
19495fi
19496fi
5464f5a1
NN
19497echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19498echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 19499cat >>confdefs.h <<_ACEOF
1012372a 19500#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 19501_ACEOF
1012372a
AC
19502
19503
1012372a 19504fi
5464f5a1
NN
19505echo "$as_me:$LINENO: checking file_ptr type" >&5
19506echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
19507bfd_file_ptr="long"
19508bfd_ufile_ptr="unsigned long"
19509if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19510 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
19511 bfd_file_ptr=BFD_HOST_64_BIT
19512 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19513fi
5464f5a1
NN
19514echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19515echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
19516
19517
19518
19519
252b5132
RH
19520tdefaults=""
19521test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19522test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 19523test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
19524test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19525test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19526
6be7c12c 19527
5464f5a1
NN
19528
19529
19530for ac_header in stdlib.h unistd.h
252b5132 19531do
5464f5a1
NN
19532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19533if eval "test \"\${$as_ac_Header+set}\" = set"; then
19534 echo "$as_me:$LINENO: checking for $ac_header" >&5
19535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19536if eval "test \"\${$as_ac_Header+set}\" = set"; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19538fi
19539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19541else
19542 # Is the header compilable?
19543echo "$as_me:$LINENO: checking $ac_header usability" >&5
19544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19545cat >conftest.$ac_ext <<_ACEOF
19546/* confdefs.h. */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h. */
19551$ac_includes_default
19552#include <$ac_header>
19553_ACEOF
19554rm -f conftest.$ac_objext
19555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19556 (eval $ac_compile) 2>conftest.er1
19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } &&
49c96104
SE
19563 { ac_try='test -z "$ac_c_werror_flag"
19564 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
19570 { ac_try='test -s conftest.$ac_objext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_header_compiler=yes
19577else
19578 echo "$as_me: failed program was:" >&5
19579sed 's/^/| /' conftest.$ac_ext >&5
19580
19581ac_header_compiler=no
19582fi
19583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19585echo "${ECHO_T}$ac_header_compiler" >&6
19586
19587# Is the header present?
19588echo "$as_me:$LINENO: checking $ac_header presence" >&5
19589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19590cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596#include <$ac_header>
19597_ACEOF
19598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19600 ac_status=$?
19601 grep -v '^ *+' conftest.er1 >conftest.err
19602 rm -f conftest.er1
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } >/dev/null; then
19606 if test -s conftest.err; then
19607 ac_cpp_err=$ac_c_preproc_warn_flag
19608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19609 else
19610 ac_cpp_err=
19611 fi
252b5132 19612else
5464f5a1 19613 ac_cpp_err=yes
252b5132 19614fi
5464f5a1
NN
19615if test -z "$ac_cpp_err"; then
19616 ac_header_preproc=yes
19617else
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 ac_header_preproc=no
252b5132 19622fi
5464f5a1
NN
19623rm -f conftest.err conftest.$ac_ext
19624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19625echo "${ECHO_T}$ac_header_preproc" >&6
19626
19627# So? What about this header?
19628case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19629 yes:no: )
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19633echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19634 ac_header_preproc=yes
19635 ;;
19636 no:yes:* )
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19638echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19640echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19642echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19644echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19648echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19649 (
19650 cat <<\_ASBOX
19651## ------------------------------------------ ##
19652## Report this to the AC_PACKAGE_NAME lists. ##
19653## ------------------------------------------ ##
19654_ASBOX
19655 ) |
19656 sed "s/^/$as_me: WARNING: /" >&2
19657 ;;
19658esac
19659echo "$as_me:$LINENO: checking for $ac_header" >&5
19660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19661if eval "test \"\${$as_ac_Header+set}\" = set"; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19663else
5464f5a1
NN
19664 eval "$as_ac_Header=\$ac_header_preproc"
19665fi
19666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19668
19669fi
19670if test `eval echo '${'$as_ac_Header'}'` = yes; then
19671 cat >>confdefs.h <<_ACEOF
19672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19673_ACEOF
19674
252b5132 19675fi
5464f5a1 19676
252b5132
RH
19677done
19678
5464f5a1 19679
252b5132
RH
19680for ac_func in getpagesize
19681do
5464f5a1
NN
19682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19683echo "$as_me:$LINENO: checking for $ac_func" >&5
19684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19685if eval "test \"\${$as_ac_var+set}\" = set"; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687else
19688 cat >conftest.$ac_ext <<_ACEOF
19689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
19693/* end confdefs.h. */
19694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19696#define $ac_func innocuous_$ac_func
19697
252b5132 19698/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
19699 which can conflict with char $ac_func (); below.
19700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19701 <limits.h> exists even on freestanding compilers. */
19702
19703#ifdef __STDC__
19704# include <limits.h>
19705#else
19706# include <assert.h>
19707#endif
6be7c12c 19708
5464f5a1 19709#undef $ac_func
252b5132 19710
5464f5a1
NN
19711/* Override any gcc2 internal prototype to avoid an error. */
19712#ifdef __cplusplus
19713extern "C"
19714{
19715#endif
19716/* We use char because int might match the return type of a gcc2
19717 builtin and then its argument prototype would still apply. */
19718char $ac_func ();
252b5132
RH
19719/* The GNU C library defines this for functions which it implements
19720 to always fail with ENOSYS. Some functions are actually named
19721 something starting with __ and the normal name is an alias. */
19722#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19723choke me
19724#else
5464f5a1
NN
19725char (*f) () = $ac_func;
19726#endif
19727#ifdef __cplusplus
19728}
252b5132
RH
19729#endif
19730
5464f5a1
NN
19731int
19732main ()
19733{
19734return f != $ac_func;
19735 ;
19736 return 0;
19737}
19738_ACEOF
19739rm -f conftest.$ac_objext conftest$ac_exeext
19740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19741 (eval $ac_link) 2>conftest.er1
19742 ac_status=$?
19743 grep -v '^ *+' conftest.er1 >conftest.err
19744 rm -f conftest.er1
19745 cat conftest.err >&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
49c96104
SE
19748 { ac_try='test -z "$ac_c_werror_flag"
19749 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
19755 { ac_try='test -s conftest$ac_exeext'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 eval "$as_ac_var=yes"
19762else
19763 echo "$as_me: failed program was:" >&5
19764sed 's/^/| /' conftest.$ac_ext >&5
19765
19766eval "$as_ac_var=no"
19767fi
19768rm -f conftest.err conftest.$ac_objext \
19769 conftest$ac_exeext conftest.$ac_ext
19770fi
19771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19773if test `eval echo '${'$as_ac_var'}'` = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19776_ACEOF
252b5132 19777
252b5132
RH
19778fi
19779done
19780
5464f5a1
NN
19781echo "$as_me:$LINENO: checking for working mmap" >&5
19782echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19783if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
19785else
19786 if test "$cross_compiling" = yes; then
19787 ac_cv_func_mmap_fixed_mapped=no
19788else
5464f5a1
NN
19789 cat >conftest.$ac_ext <<_ACEOF
19790/* confdefs.h. */
19791_ACEOF
19792cat confdefs.h >>conftest.$ac_ext
19793cat >>conftest.$ac_ext <<_ACEOF
19794/* end confdefs.h. */
19795$ac_includes_default
19796/* malloc might have been renamed as rpl_malloc. */
19797#undef malloc
6be7c12c 19798
252b5132
RH
19799/* Thanks to Mike Haertel and Jim Avera for this test.
19800 Here is a matrix of mmap possibilities:
19801 mmap private not fixed
19802 mmap private fixed at somewhere currently unmapped
19803 mmap private fixed at somewhere already mapped
19804 mmap shared not fixed
19805 mmap shared fixed at somewhere currently unmapped
19806 mmap shared fixed at somewhere already mapped
19807 For private mappings, we should verify that changes cannot be read()
19808 back from the file, nor mmap's back from the file at a different
19809 address. (There have been systems where private was not correctly
19810 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 19811 VM page cache was not coherent with the file system buffer cache
252b5132
RH
19812 like early versions of FreeBSD and possibly contemporary NetBSD.)
19813 For shared mappings, we should conversely verify that changes get
5464f5a1 19814 propagated back to all the places they're supposed to be.
252b5132
RH
19815
19816 Grep wants private fixed already mapped.
19817 The main things grep needs to know about mmap are:
19818 * does it exist and is it safe to write into the mmap'd area
19819 * how to use it (BSD variants) */
5464f5a1 19820
252b5132
RH
19821#include <fcntl.h>
19822#include <sys/mman.h>
19823
5464f5a1
NN
19824#if !STDC_HEADERS && !HAVE_STDLIB_H
19825char *malloc ();
19826#endif
6be7c12c 19827
5464f5a1
NN
19828/* This mess was copied from the GNU getpagesize.h. */
19829#if !HAVE_GETPAGESIZE
252b5132 19830/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 19831# if !HAVE_SYS_PARAM_H
252b5132
RH
19832# define HAVE_SYS_PARAM_H 1
19833# endif
19834
19835# ifdef _SC_PAGESIZE
19836# define getpagesize() sysconf(_SC_PAGESIZE)
19837# else /* no _SC_PAGESIZE */
5464f5a1 19838# if HAVE_SYS_PARAM_H
252b5132
RH
19839# include <sys/param.h>
19840# ifdef EXEC_PAGESIZE
19841# define getpagesize() EXEC_PAGESIZE
19842# else /* no EXEC_PAGESIZE */
19843# ifdef NBPG
19844# define getpagesize() NBPG * CLSIZE
19845# ifndef CLSIZE
19846# define CLSIZE 1
19847# endif /* no CLSIZE */
19848# else /* no NBPG */
19849# ifdef NBPC
19850# define getpagesize() NBPC
19851# else /* no NBPC */
19852# ifdef PAGESIZE
19853# define getpagesize() PAGESIZE
19854# endif /* PAGESIZE */
19855# endif /* no NBPC */
19856# endif /* no NBPG */
19857# endif /* no EXEC_PAGESIZE */
19858# else /* no HAVE_SYS_PARAM_H */
19859# define getpagesize() 8192 /* punt totally */
19860# endif /* no HAVE_SYS_PARAM_H */
19861# endif /* no _SC_PAGESIZE */
19862
5464f5a1
NN
19863#endif /* no HAVE_GETPAGESIZE */
19864
19865int
19866main ()
19867{
19868 char *data, *data2, *data3;
19869 int i, pagesize;
19870 int fd;
19871
19872 pagesize = getpagesize ();
19873
19874 /* First, make a file with some known garbage in it. */
19875 data = (char *) malloc (pagesize);
19876 if (!data)
19877 exit (1);
19878 for (i = 0; i < pagesize; ++i)
19879 *(data + i) = rand ();
19880 umask (0);
19881 fd = creat ("conftest.mmap", 0600);
19882 if (fd < 0)
19883 exit (1);
19884 if (write (fd, data, pagesize) != pagesize)
19885 exit (1);
19886 close (fd);
19887
19888 /* Next, try to mmap the file at a fixed address which already has
19889 something else allocated at it. If we can, also make sure that
19890 we see the same garbage. */
19891 fd = open ("conftest.mmap", O_RDWR);
19892 if (fd < 0)
19893 exit (1);
19894 data2 = (char *) malloc (2 * pagesize);
19895 if (!data2)
19896 exit (1);
19897 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
19898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19900 exit (1);
19901 for (i = 0; i < pagesize; ++i)
19902 if (*(data + i) != *(data2 + i))
19903 exit (1);
19904
19905 /* Finally, make sure that changes to the mapped area do not
19906 percolate back to the file as seen by read(). (This is a bug on
19907 some variants of i386 svr4.0.) */
19908 for (i = 0; i < pagesize; ++i)
19909 *(data2 + i) = *(data2 + i) + 1;
19910 data3 = (char *) malloc (pagesize);
19911 if (!data3)
19912 exit (1);
19913 if (read (fd, data3, pagesize) != pagesize)
19914 exit (1);
19915 for (i = 0; i < pagesize; ++i)
19916 if (*(data + i) != *(data3 + i))
19917 exit (1);
19918 close (fd);
19919 exit (0);
19920}
19921_ACEOF
19922rm -f conftest$ac_exeext
19923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924 (eval $ac_link) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_cv_func_mmap_fixed_mapped=yes
19934else
19935 echo "$as_me: program exited with status $ac_status" >&5
19936echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939( exit $ac_status )
19940ac_cv_func_mmap_fixed_mapped=no
19941fi
19942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19943fi
19944fi
19945echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19946echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
19947if test $ac_cv_func_mmap_fixed_mapped = yes; then
19948
19949cat >>confdefs.h <<\_ACEOF
19950#define HAVE_MMAP 1
19951_ACEOF
19952
19953fi
19954rm -f conftest.mmap
19955
19956
19957
19958for ac_func in madvise mprotect
19959do
19960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19961echo "$as_me:$LINENO: checking for $ac_func" >&5
19962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19963if eval "test \"\${$as_ac_var+set}\" = set"; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966 cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
19972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19974#define $ac_func innocuous_$ac_func
19975
19976/* System header to define __stub macros and hopefully few prototypes,
19977 which can conflict with char $ac_func (); below.
19978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19979 <limits.h> exists even on freestanding compilers. */
19980
19981#ifdef __STDC__
19982# include <limits.h>
19983#else
19984# include <assert.h>
19985#endif
19986
19987#undef $ac_func
19988
19989/* Override any gcc2 internal prototype to avoid an error. */
19990#ifdef __cplusplus
19991extern "C"
19992{
19993#endif
19994/* We use char because int might match the return type of a gcc2
19995 builtin and then its argument prototype would still apply. */
19996char $ac_func ();
19997/* The GNU C library defines this for functions which it implements
19998 to always fail with ENOSYS. Some functions are actually named
19999 something starting with __ and the normal name is an alias. */
20000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20001choke me
20002#else
20003char (*f) () = $ac_func;
20004#endif
20005#ifdef __cplusplus
20006}
20007#endif
20008
20009int
20010main ()
20011{
20012return f != $ac_func;
20013 ;
20014 return 0;
20015}
20016_ACEOF
20017rm -f conftest.$ac_objext conftest$ac_exeext
20018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20019 (eval $ac_link) 2>conftest.er1
20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
49c96104
SE
20026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
20033 { ac_try='test -s conftest$ac_exeext'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 eval "$as_ac_var=yes"
20040else
20041 echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
20044eval "$as_ac_var=no"
20045fi
20046rm -f conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20048fi
20049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20051if test `eval echo '${'$as_ac_var'}'` = yes; then
20052 cat >>confdefs.h <<_ACEOF
20053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20054_ACEOF
20055
20056fi
20057done
20058
20059case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20060 true+yes )
20061cat >>confdefs.h <<\_ACEOF
20062#define USE_MMAP 1
20063_ACEOF
20064 ;;
20065esac
20066
20067rm -f doc/config.status
20068 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20069
20e95c23 20070
5464f5a1
NN
20071 ac_config_commands="$ac_config_commands default"
20072
108a6f8e
CD
20073
20074
20075
20076
20077
5464f5a1
NN
20078cat >confcache <<\_ACEOF
20079# This file is a shell script that caches the results of configure
20080# tests run on this system so they can be shared between configure
20081# scripts and configure runs, see configure's option --config-cache.
20082# It is not useful on other systems. If it contains results you don't
20083# want to keep, you may remove or edit it.
20084#
20085# config.status only pays attention to the cache file if you give it
20086# the --recheck option to rerun configure.
20087#
20088# `ac_cv_env_foo' variables (set or unset) will be overridden when
20089# loading this file, other *unset* `ac_cv_foo' will be assigned the
20090# following values.
20091
20092_ACEOF
20093
20094# The following way of writing the cache mishandles newlines in values,
20095# but we know of no workaround that is simple, portable, and efficient.
20096# So, don't put newlines in cache variables' values.
20097# Ultrix sh set writes to stderr and can't be redirected directly,
20098# and sets the high bit in the cache file unless we assign to the vars.
20099{
20100 (set) 2>&1 |
20101 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20102 *ac_space=\ *)
20103 # `set' does not quote correctly, so add quotes (double-quote
20104 # substitution turns \\\\ into \\, and sed turns \\ into \).
20105 sed -n \
20106 "s/'/'\\\\''/g;
20107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20108 ;;
20109 *)
20110 # `set' quotes correctly as required by POSIX, so do not add quotes.
20111 sed -n \
20112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20113 ;;
20114 esac;
20115} |
20116 sed '
20117 t clear
20118 : clear
20119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20120 t end
20121 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20122 : end' >>confcache
20123if diff $cache_file confcache >/dev/null 2>&1; then :; else
20124 if test -w $cache_file; then
20125 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20126 cat confcache >$cache_file
20127 else
20128 echo "not updating unwritable cache $cache_file"
20129 fi
20130fi
20131rm -f confcache
20132
20133test "x$prefix" = xNONE && prefix=$ac_default_prefix
20134# Let make expand exec_prefix.
20135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20136
20137# VPATH may cause trouble with some makes, so we remove $(srcdir),
20138# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20139# trailing colons and then remove the whole line if VPATH becomes empty
20140# (actually we leave an empty line to preserve line numbers).
20141if test "x$srcdir" = x.; then
20142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20143s/:*\$(srcdir):*/:/;
20144s/:*\${srcdir}:*/:/;
20145s/:*@srcdir@:*/:/;
20146s/^\([^=]*=[ ]*\):*/\1/;
20147s/:*$//;
20148s/^[^=]*=[ ]*$//;
20149}'
20150fi
20151
20152DEFS=-DHAVE_CONFIG_H
20153
20154ac_libobjs=
20155ac_ltlibobjs=
20156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20157 # 1. Remove the extension, and $U if already installed.
20158 ac_i=`echo "$ac_i" |
20159 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20160 # 2. Add them.
20161 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20162 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20163done
20164LIBOBJS=$ac_libobjs
20165
20166LTLIBOBJS=$ac_ltlibobjs
20167
20168
f5385ebf
AM
20169if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20170 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20171Usually this means the macro was only invoked conditionally." >&5
20172echo "$as_me: error: conditional \"AMDEP\" was never defined.
20173Usually this means the macro was only invoked conditionally." >&2;}
20174 { (exit 1); exit 1; }; }
20175fi
20176if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20177 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20178Usually this means the macro was only invoked conditionally." >&5
20179echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20180Usually this means the macro was only invoked conditionally." >&2;}
20181 { (exit 1); exit 1; }; }
20182fi
20183if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20184 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20185Usually this means the macro was only invoked conditionally." >&5
20186echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20187Usually this means the macro was only invoked conditionally." >&2;}
20188 { (exit 1); exit 1; }; }
20189fi
d5fbea21
DJ
20190if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20191 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20192Usually this means the macro was only invoked conditionally." >&5
20193echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20194Usually this means the macro was only invoked conditionally." >&2;}
20195 { (exit 1); exit 1; }; }
20196fi
f5385ebf
AM
20197if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20198 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20199Usually this means the macro was only invoked conditionally." >&5
20200echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20201Usually this means the macro was only invoked conditionally." >&2;}
20202 { (exit 1); exit 1; }; }
20203fi
5464f5a1
NN
20204
20205: ${CONFIG_STATUS=./config.status}
20206ac_clean_files_save=$ac_clean_files
20207ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20208{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20209echo "$as_me: creating $CONFIG_STATUS" >&6;}
20210cat >$CONFIG_STATUS <<_ACEOF
20211#! $SHELL
20212# Generated by $as_me.
20213# Run this file to recreate the current configuration.
20214# Compiler output produced by configure, useful for debugging
20215# configure, is in config.log if it exists.
20216
20217debug=false
20218ac_cs_recheck=false
20219ac_cs_silent=false
20220SHELL=\${CONFIG_SHELL-$SHELL}
20221_ACEOF
20222
20223cat >>$CONFIG_STATUS <<\_ACEOF
20224## --------------------- ##
20225## M4sh Initialization. ##
20226## --------------------- ##
20227
20228# Be Bourne compatible
20229if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20230 emulate sh
20231 NULLCMD=:
20232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20233 # is contrary to our usage. Disable this feature.
20234 alias -g '${1+"$@"}'='"$@"'
20235elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20236 set -o posix
20237fi
20238DUALCASE=1; export DUALCASE # for MKS sh
20239
20240# Support unset when possible.
20241if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20242 as_unset=unset
20243else
20244 as_unset=false
20245fi
20246
20247
20248# Work around bugs in pre-3.0 UWIN ksh.
20249$as_unset ENV MAIL MAILPATH
20250PS1='$ '
20251PS2='> '
20252PS4='+ '
20253
20254# NLS nuisances.
20255for as_var in \
20256 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20257 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20258 LC_TELEPHONE LC_TIME
20259do
20260 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20261 eval $as_var=C; export $as_var
20262 else
20263 $as_unset $as_var
20264 fi
20265done
20266
20267# Required to use basename.
20268if expr a : '\(a\)' >/dev/null 2>&1; then
20269 as_expr=expr
20270else
20271 as_expr=false
20272fi
20273
20274if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20275 as_basename=basename
20276else
20277 as_basename=false
20278fi
252b5132 20279
6be7c12c 20280
5464f5a1
NN
20281# Name of the executable.
20282as_me=`$as_basename "$0" ||
20283$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20284 X"$0" : 'X\(//\)$' \| \
20285 X"$0" : 'X\(/\)$' \| \
20286 . : '\(.\)' 2>/dev/null ||
20287echo X/"$0" |
20288 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20289 /^X\/\(\/\/\)$/{ s//\1/; q; }
20290 /^X\/\(\/\).*/{ s//\1/; q; }
20291 s/.*/./; q'`
20292
20293
20294# PATH needs CR, and LINENO needs CR and PATH.
20295# Avoid depending upon Character Ranges.
20296as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20297as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20298as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20299as_cr_digits='0123456789'
20300as_cr_alnum=$as_cr_Letters$as_cr_digits
20301
20302# The user is always right.
20303if test "${PATH_SEPARATOR+set}" != set; then
20304 echo "#! /bin/sh" >conf$$.sh
20305 echo "exit 0" >>conf$$.sh
20306 chmod +x conf$$.sh
20307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20308 PATH_SEPARATOR=';'
20309 else
20310 PATH_SEPARATOR=:
20311 fi
20312 rm -f conf$$.sh
20313fi
20314
20315
20316 as_lineno_1=$LINENO
20317 as_lineno_2=$LINENO
20318 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20319 test "x$as_lineno_1" != "x$as_lineno_2" &&
20320 test "x$as_lineno_3" = "x$as_lineno_2" || {
20321 # Find who we are. Look in the path if we contain no path at all
20322 # relative or not.
20323 case $0 in
20324 *[\\/]* ) as_myself=$0 ;;
20325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20326for as_dir in $PATH
20327do
20328 IFS=$as_save_IFS
20329 test -z "$as_dir" && as_dir=.
20330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20331done
20332
20333 ;;
20334 esac
20335 # We did not find ourselves, most probably we were run as `sh COMMAND'
20336 # in which case we are not to be found in the path.
20337 if test "x$as_myself" = x; then
20338 as_myself=$0
20339 fi
20340 if test ! -f "$as_myself"; then
20341 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20342echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20343 { (exit 1); exit 1; }; }
20344 fi
20345 case $CONFIG_SHELL in
20346 '')
20347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20348for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20349do
20350 IFS=$as_save_IFS
20351 test -z "$as_dir" && as_dir=.
20352 for as_base in sh bash ksh sh5; do
20353 case $as_dir in
20354 /*)
20355 if ("$as_dir/$as_base" -c '
20356 as_lineno_1=$LINENO
20357 as_lineno_2=$LINENO
20358 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20359 test "x$as_lineno_1" != "x$as_lineno_2" &&
20360 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20361 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20362 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20363 CONFIG_SHELL=$as_dir/$as_base
20364 export CONFIG_SHELL
20365 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20366 fi;;
20367 esac
20368 done
20369done
20370;;
20371 esac
20372
20373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20374 # uniformly replaced by the line number. The first 'sed' inserts a
20375 # line-number line before each line; the second 'sed' does the real
20376 # work. The second script uses 'N' to pair each line-number line
20377 # with the numbered line, and appends trailing '-' during
20378 # substitution so that $LINENO is not a special case at line end.
20379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20380 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20381 sed '=' <$as_myself |
20382 sed '
20383 N
20384 s,$,-,
20385 : loop
20386 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20387 t loop
20388 s,-$,,
20389 s,^['$as_cr_digits']*\n,,
20390 ' >$as_me.lineno &&
20391 chmod +x $as_me.lineno ||
20392 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20393echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20394 { (exit 1); exit 1; }; }
20395
20396 # Don't try to exec as it changes $[0], causing all sort of problems
20397 # (the dirname of $[0] is not the place where we might find the
20398 # original and so on. Autoconf is especially sensible to this).
20399 . ./$as_me.lineno
20400 # Exit status is that of the last command.
20401 exit
252b5132 20402}
6be7c12c 20403
5464f5a1
NN
20404
20405case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20406 *c*,-n*) ECHO_N= ECHO_C='
20407' ECHO_T=' ' ;;
20408 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20409 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20410esac
20411
20412if expr a : '\(a\)' >/dev/null 2>&1; then
20413 as_expr=expr
252b5132 20414else
5464f5a1 20415 as_expr=false
252b5132 20416fi
5464f5a1
NN
20417
20418rm -f conf$$ conf$$.exe conf$$.file
20419echo >conf$$.file
20420if ln -s conf$$.file conf$$ 2>/dev/null; then
20421 # We could just check for DJGPP; but this test a) works b) is more generic
20422 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20423 if test -f conf$$.exe; then
20424 # Don't use ln at all; we don't have any links
20425 as_ln_s='cp -p'
20426 else
20427 as_ln_s='ln -s'
20428 fi
20429elif ln conf$$.file conf$$ 2>/dev/null; then
20430 as_ln_s=ln
20431else
20432 as_ln_s='cp -p'
252b5132 20433fi
5464f5a1 20434rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 20435
5464f5a1
NN
20436if mkdir -p . 2>/dev/null; then
20437 as_mkdir_p=:
20438else
20439 test -d ./-p && rmdir ./-p
20440 as_mkdir_p=false
252b5132 20441fi
b3baf5d0 20442
5464f5a1 20443as_executable_p="test -f"
252b5132 20444
5464f5a1
NN
20445# Sed expression to map a string onto a valid CPP name.
20446as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 20447
5464f5a1
NN
20448# Sed expression to map a string onto a valid variable name.
20449as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 20450
252b5132 20451
5464f5a1
NN
20452# IFS
20453# We need space, tab and new line, in precisely that order.
20454as_nl='
20455'
20456IFS=" $as_nl"
252b5132 20457
5464f5a1
NN
20458# CDPATH.
20459$as_unset CDPATH
20460
20461exec 6>&1
20462
20463# Open the log real soon, to keep \$[0] and so on meaningful, and to
20464# report actual input values of CONFIG_FILES etc. instead of their
20465# values after options handling. Logging --version etc. is OK.
20466exec 5>>config.log
20467{
20468 echo
20469 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20470## Running $as_me. ##
20471_ASBOX
20472} >&5
20473cat >&5 <<_CSEOF
20474
20475This file was extended by $as_me, which was
20476generated by GNU Autoconf 2.59. Invocation command line was
20477
20478 CONFIG_FILES = $CONFIG_FILES
20479 CONFIG_HEADERS = $CONFIG_HEADERS
20480 CONFIG_LINKS = $CONFIG_LINKS
20481 CONFIG_COMMANDS = $CONFIG_COMMANDS
20482 $ $0 $@
20483
20484_CSEOF
20485echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20486echo >&5
20487_ACEOF
20488
20489# Files that config.status was made for.
20490if test -n "$ac_config_files"; then
20491 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 20492fi
5464f5a1
NN
20493
20494if test -n "$ac_config_headers"; then
20495 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 20496fi
252b5132 20497
5464f5a1
NN
20498if test -n "$ac_config_links"; then
20499 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 20500fi
252b5132 20501
5464f5a1
NN
20502if test -n "$ac_config_commands"; then
20503 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20504fi
252b5132 20505
5464f5a1
NN
20506cat >>$CONFIG_STATUS <<\_ACEOF
20507
20508ac_cs_usage="\
20509\`$as_me' instantiates files from templates according to the
20510current configuration.
20511
20512Usage: $0 [OPTIONS] [FILE]...
20513
20514 -h, --help print this help, then exit
20515 -V, --version print version number, then exit
20516 -q, --quiet do not print progress messages
20517 -d, --debug don't remove temporary files
20518 --recheck update $as_me by reconfiguring in the same conditions
20519 --file=FILE[:TEMPLATE]
20520 instantiate the configuration file FILE
20521 --header=FILE[:TEMPLATE]
20522 instantiate the configuration header FILE
20523
20524Configuration files:
20525$config_files
20526
20527Configuration headers:
20528$config_headers
20529
20530Configuration commands:
20531$config_commands
20532
20533Report bugs to <bug-autoconf@gnu.org>."
20534_ACEOF
20535
20536cat >>$CONFIG_STATUS <<_ACEOF
20537ac_cs_version="\\
20538config.status
20539configured by $0, generated by GNU Autoconf 2.59,
20540 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20541
20542Copyright (C) 2003 Free Software Foundation, Inc.
20543This config.status script is free software; the Free Software Foundation
20544gives unlimited permission to copy, distribute and modify it."
20545srcdir=$srcdir
20546INSTALL="$INSTALL"
20547_ACEOF
20548
20549cat >>$CONFIG_STATUS <<\_ACEOF
20550# If no file are specified by the user, then we need to provide default
20551# value. By we need to know if files were specified by the user.
20552ac_need_defaults=:
20553while test $# != 0
20554do
20555 case $1 in
20556 --*=*)
20557 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20558 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20559 ac_shift=:
6be7c12c 20560 ;;
5464f5a1
NN
20561 -*)
20562 ac_option=$1
20563 ac_optarg=$2
20564 ac_shift=shift
6be7c12c 20565 ;;
5464f5a1
NN
20566 *) # This is not an option, so the user has probably given explicit
20567 # arguments.
20568 ac_option=$1
20569 ac_need_defaults=false;;
20570 esac
252b5132 20571
5464f5a1
NN
20572 case $ac_option in
20573 # Handling of the options.
20574_ACEOF
20575cat >>$CONFIG_STATUS <<\_ACEOF
20576 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20577 ac_cs_recheck=: ;;
20578 --version | --vers* | -V )
20579 echo "$ac_cs_version"; exit 0 ;;
20580 --he | --h)
20581 # Conflict between --help and --header
20582 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20583Try \`$0 --help' for more information." >&5
20584echo "$as_me: error: ambiguous option: $1
20585Try \`$0 --help' for more information." >&2;}
20586 { (exit 1); exit 1; }; };;
20587 --help | --hel | -h )
20588 echo "$ac_cs_usage"; exit 0 ;;
20589 --debug | --d* | -d )
20590 debug=: ;;
20591 --file | --fil | --fi | --f )
20592 $ac_shift
20593 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20594 ac_need_defaults=false;;
20595 --header | --heade | --head | --hea )
20596 $ac_shift
20597 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20598 ac_need_defaults=false;;
20599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20600 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20601 ac_cs_silent=: ;;
6be7c12c 20602
5464f5a1
NN
20603 # This is an error.
20604 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20605Try \`$0 --help' for more information." >&5
20606echo "$as_me: error: unrecognized option: $1
20607Try \`$0 --help' for more information." >&2;}
20608 { (exit 1); exit 1; }; } ;;
252b5132 20609
5464f5a1 20610 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 20611
5464f5a1
NN
20612 esac
20613 shift
20614done
6be7c12c 20615
5464f5a1 20616ac_configure_extra_args=
252b5132 20617
5464f5a1
NN
20618if $ac_cs_silent; then
20619 exec 6>/dev/null
20620 ac_configure_extra_args="$ac_configure_extra_args --silent"
20621fi
6be7c12c 20622
5464f5a1
NN
20623_ACEOF
20624cat >>$CONFIG_STATUS <<_ACEOF
20625if \$ac_cs_recheck; then
20626 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20627 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20628fi
20629
20630_ACEOF
20631
20632cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 20633#
5464f5a1 20634# INIT-COMMANDS section.
6be7c12c 20635#
b3baf5d0 20636
f5385ebf 20637AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
20638
20639
20640# The HP-UX ksh and POSIX shell print the target directory to stdout
20641# if CDPATH is set.
20642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20643
20644sed_quote_subst='$sed_quote_subst'
20645double_quote_subst='$double_quote_subst'
20646delay_variable_subst='$delay_variable_subst'
20647enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20648macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20649macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20650enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20651pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20652enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20653host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20654host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20655host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20656build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20657build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20658build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20659SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20660Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20661GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20662EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20663FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20664LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20665NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20666LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20667max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20668ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20669exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20670lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20671lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20672lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20673reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20674reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20675deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20676file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20677AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20678AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20679STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20680RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20681old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20682old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20683old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20684CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20685CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20686compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20687GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20688lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20689lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20690lt_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"`'
20691objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20692SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20693ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20694MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20695lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20696lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20697lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20698lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20699lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20700need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20701libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20702shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20703extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20704archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20705enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20706export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20707whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20708compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20709old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20710old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20711archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20712archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20713module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20714module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20715with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20716allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20717no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20718hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20719hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20720hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20721hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20722hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20723hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20724hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20725hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20726inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20727link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20728fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20729always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20730export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20731exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20732include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20733prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20734file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20735variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20736need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20737need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20738version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20739runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20740shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20741shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20742libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20743library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20744soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20745postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20746postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20747finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20748finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20749hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20750sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20751sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20752hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20753enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20754enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20755enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20756old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20757striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20758
20759LTCC='$LTCC'
20760LTCFLAGS='$LTCFLAGS'
20761compiler='$compiler_DEFAULT'
20762
20763# Quote evaled strings.
20764for var in SED \
20765GREP \
20766EGREP \
20767FGREP \
20768LD \
20769NM \
20770LN_S \
20771lt_SP2NL \
20772lt_NL2SP \
20773reload_flag \
20774deplibs_check_method \
20775file_magic_cmd \
20776AR \
20777AR_FLAGS \
20778STRIP \
20779RANLIB \
20780CC \
20781CFLAGS \
20782compiler \
20783lt_cv_sys_global_symbol_pipe \
20784lt_cv_sys_global_symbol_to_cdecl \
20785lt_cv_sys_global_symbol_to_c_name_address \
20786SHELL \
20787ECHO \
20788lt_prog_compiler_no_builtin_flag \
20789lt_prog_compiler_wl \
20790lt_prog_compiler_pic \
20791lt_prog_compiler_static \
20792lt_cv_prog_compiler_c_o \
20793need_locks \
20794shrext_cmds \
20795export_dynamic_flag_spec \
20796whole_archive_flag_spec \
20797compiler_needs_object \
20798with_gnu_ld \
20799allow_undefined_flag \
20800no_undefined_flag \
20801hardcode_libdir_flag_spec \
20802hardcode_libdir_flag_spec_ld \
20803hardcode_libdir_separator \
20804fix_srcfile_path \
20805exclude_expsyms \
20806include_expsyms \
20807file_list_spec \
20808variables_saved_for_relink \
20809libname_spec \
20810library_names_spec \
20811soname_spec \
20812finish_eval \
20813old_striplib \
20814striplib; do
20815 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20816 *[\\\\\\\`\\"\\\$]*)
20817 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20818 ;;
20819 *)
20820 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20821 ;;
20822 esac
20823done
20824
20825# Double-quote double-evaled strings.
20826for var in reload_cmds \
20827old_postinstall_cmds \
20828old_postuninstall_cmds \
20829old_archive_cmds \
20830extract_expsyms_cmds \
20831old_archive_from_new_cmds \
20832old_archive_from_expsyms_cmds \
20833archive_cmds \
20834archive_expsym_cmds \
20835module_cmds \
20836module_expsym_cmds \
20837export_symbols_cmds \
20838prelink_cmds \
20839postinstall_cmds \
20840postuninstall_cmds \
20841finish_cmds \
20842sys_lib_search_path_spec \
20843sys_lib_dlsearch_path_spec; do
20844 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20845 *[\\\\\\\`\\"\\\$]*)
20846 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20847 ;;
20848 *)
20849 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20850 ;;
20851 esac
20852done
20853
20854# Fix-up fallback echo if it was mangled by the above quoting rules.
20855case \$lt_ECHO in
20856*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20857 ;;
20858esac
20859
20860ac_aux_dir='$ac_aux_dir'
20861xsi_shell='$xsi_shell'
20862lt_shell_append='$lt_shell_append'
20863
20864# See if we are running on zsh, and set the options which allow our
20865# commands through without removal of \ escapes INIT.
20866if test -n "\${ZSH_VERSION+set}" ; then
20867 setopt NO_GLOB_SUBST
20868fi
20869
20870
20871 PACKAGE='$PACKAGE'
20872 VERSION='$VERSION'
20873 TIMESTAMP='$TIMESTAMP'
20874 RM='$RM'
20875 ofile='$ofile'
20876
20877
20878
20e95c23
DJ
20879# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20880 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20881 # from automake.
20882 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20883 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20884 LINGUAS="${LINGUAS-%UNSET%}"
20885
5464f5a1 20886
d5efd9fc
AM
20887GCC="$GCC"
20888CC="$CC"
20889acx_cv_header_stdint="$acx_cv_header_stdint"
20890acx_cv_type_int8_t="$acx_cv_type_int8_t"
20891acx_cv_type_int16_t="$acx_cv_type_int16_t"
20892acx_cv_type_int32_t="$acx_cv_type_int32_t"
20893acx_cv_type_int64_t="$acx_cv_type_int64_t"
20894acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20895ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20896ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20897ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20898ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20899ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20900ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20901ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20902ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20903
20904
5464f5a1
NN
20905
20906_ACEOF
20907
20908
20909
20910cat >>$CONFIG_STATUS <<\_ACEOF
20911for ac_config_target in $ac_config_targets
252b5132 20912do
5464f5a1
NN
20913 case "$ac_config_target" in
20914 # Handling of arguments.
20915 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20916 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20917 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
20918 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 20919 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 20920 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 20921 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 20922 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
20923 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20924 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20925 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20926echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20927 { (exit 1); exit 1; }; };;
252b5132
RH
20928 esac
20929done
20930
5464f5a1
NN
20931# If the user did not use the arguments to specify the items to instantiate,
20932# then the envvar interface is used. Set only those that are not.
20933# We use the long form for the default assignment because of an extremely
20934# bizarre bug on SunOS 4.1.3.
20935if $ac_need_defaults; then
20936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20939fi
20940
20941# Have a temporary directory for convenience. Make it in the build tree
20942# simply because there is no reason to put it here, and in addition,
20943# creating and moving files from /tmp can sometimes cause problems.
20944# Create a temporary directory, and hook for its removal unless debugging.
20945$debug ||
20946{
20947 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20948 trap '{ (exit 1); exit 1; }' 1 2 13 15
20949}
b3baf5d0 20950
5464f5a1 20951# Create a (secure) tmp directory for tmp files.
b3baf5d0 20952
5464f5a1
NN
20953{
20954 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20955 test -n "$tmp" && test -d "$tmp"
20956} ||
20957{
20958 tmp=./confstat$$-$RANDOM
20959 (umask 077 && mkdir $tmp)
20960} ||
20961{
20962 echo "$me: cannot create a temporary directory in ." >&2
20963 { (exit 1); exit 1; }
20964}
20965
20966_ACEOF
20967
20968cat >>$CONFIG_STATUS <<_ACEOF
20969
20970#
20971# CONFIG_FILES section.
20972#
b3baf5d0 20973
5464f5a1
NN
20974# No need to generate the scripts if there are no CONFIG_FILES.
20975# This happens for instance when ./config.status config.h
20976if test -n "\$CONFIG_FILES"; then
20977 # Protect against being on the right side of a sed subst in config.status.
20978 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20979 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20980s,@SHELL@,$SHELL,;t t
20981s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20982s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20983s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20984s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20985s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20986s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20987s,@exec_prefix@,$exec_prefix,;t t
20988s,@prefix@,$prefix,;t t
20989s,@program_transform_name@,$program_transform_name,;t t
20990s,@bindir@,$bindir,;t t
20991s,@sbindir@,$sbindir,;t t
20992s,@libexecdir@,$libexecdir,;t t
20993s,@datadir@,$datadir,;t t
20994s,@sysconfdir@,$sysconfdir,;t t
20995s,@sharedstatedir@,$sharedstatedir,;t t
20996s,@localstatedir@,$localstatedir,;t t
20997s,@libdir@,$libdir,;t t
20998s,@includedir@,$includedir,;t t
20999s,@oldincludedir@,$oldincludedir,;t t
21000s,@infodir@,$infodir,;t t
21001s,@mandir@,$mandir,;t t
21002s,@build_alias@,$build_alias,;t t
21003s,@host_alias@,$host_alias,;t t
21004s,@target_alias@,$target_alias,;t t
21005s,@DEFS@,$DEFS,;t t
21006s,@ECHO_C@,$ECHO_C,;t t
21007s,@ECHO_N@,$ECHO_N,;t t
21008s,@ECHO_T@,$ECHO_T,;t t
21009s,@LIBS@,$LIBS,;t t
21010s,@build@,$build,;t t
21011s,@build_cpu@,$build_cpu,;t t
21012s,@build_vendor@,$build_vendor,;t t
21013s,@build_os@,$build_os,;t t
21014s,@host@,$host,;t t
21015s,@host_cpu@,$host_cpu,;t t
21016s,@host_vendor@,$host_vendor,;t t
21017s,@host_os@,$host_os,;t t
21018s,@target@,$target,;t t
21019s,@target_cpu@,$target_cpu,;t t
21020s,@target_vendor@,$target_vendor,;t t
21021s,@target_os@,$target_os,;t t
21022s,@CC@,$CC,;t t
21023s,@CFLAGS@,$CFLAGS,;t t
21024s,@LDFLAGS@,$LDFLAGS,;t t
21025s,@CPPFLAGS@,$CPPFLAGS,;t t
21026s,@ac_ct_CC@,$ac_ct_CC,;t t
21027s,@EXEEXT@,$EXEEXT,;t t
21028s,@OBJEXT@,$OBJEXT,;t t
21029s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21030s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21031s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 21032s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
21033s,@PACKAGE@,$PACKAGE,;t t
21034s,@VERSION@,$VERSION,;t t
21035s,@ACLOCAL@,$ACLOCAL,;t t
21036s,@AUTOCONF@,$AUTOCONF,;t t
21037s,@AUTOMAKE@,$AUTOMAKE,;t t
21038s,@AUTOHEADER@,$AUTOHEADER,;t t
21039s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
21040s,@install_sh@,$install_sh,;t t
21041s,@STRIP@,$STRIP,;t t
21042s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21043s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21044s,@mkdir_p@,$mkdir_p,;t t
21045s,@AWK@,$AWK,;t t
5464f5a1 21046s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
21047s,@am__leading_dot@,$am__leading_dot,;t t
21048s,@AMTAR@,$AMTAR,;t t
21049s,@am__tar@,$am__tar,;t t
21050s,@am__untar@,$am__untar,;t t
21051s,@DEPDIR@,$DEPDIR,;t t
21052s,@am__include@,$am__include,;t t
21053s,@am__quote@,$am__quote,;t t
21054s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21055s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21056s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21057s,@CCDEPMODE@,$CCDEPMODE,;t t
21058s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21059s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
21060s,@AR@,$AR,;t t
21061s,@ac_ct_AR@,$ac_ct_AR,;t t
21062s,@RANLIB@,$RANLIB,;t t
21063s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5464f5a1 21064s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb
SE
21065s,@SED@,$SED,;t t
21066s,@EGREP@,$EGREP,;t t
21067s,@FGREP@,$FGREP,;t t
21068s,@GREP@,$GREP,;t t
21069s,@LD@,$LD,;t t
21070s,@DUMPBIN@,$DUMPBIN,;t t
21071s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21072s,@NM@,$NM,;t t
21073s,@LN_S@,$LN_S,;t t
21074s,@lt_ECHO@,$lt_ECHO,;t t
21075s,@CPP@,$CPP,;t t
92f01d61 21076s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
21077s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21078s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 21079s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 21080s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
21081s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21082s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21083s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
21084s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21085s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
21086s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21087s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
21088s,@host_noncanonical@,$host_noncanonical,;t t
21089s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
21090s,@bfdlibdir@,$bfdlibdir,;t t
21091s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 21092s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
21093s,@LIBINTL@,$LIBINTL,;t t
21094s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21095s,@INCINTL@,$INCINTL,;t t
5464f5a1 21096s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
21097s,@GMSGFMT@,$GMSGFMT,;t t
21098s,@POSUB@,$POSUB,;t t
5464f5a1 21099s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 21100s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 21101s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
21102s,@GENCAT@,$GENCAT,;t t
21103s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 21104s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
21105s,@MSGFMT@,$MSGFMT,;t t
21106s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
21107s,@HDEFINES@,$HDEFINES,;t t
21108s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21109s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
21110s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21111s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21112s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21113s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21114s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21115s,@COREFILE@,$COREFILE,;t t
21116s,@COREFLAG@,$COREFLAG,;t t
21117s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21118s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21119s,@TDEFINES@,$TDEFINES,;t t
21120s,@wordsize@,$wordsize,;t t
21e40a48 21121s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
21122s,@all_backends@,$all_backends,;t t
21123s,@bfd_backends@,$bfd_backends,;t t
21124s,@bfd_machines@,$bfd_machines,;t t
21125s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21126s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21127s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21128s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
21129s,@datarootdir@,$datarootdir,;t t
21130s,@docdir@,$docdir,;t t
21131s,@htmldir@,$htmldir,;t t
5464f5a1
NN
21132s,@LIBOBJS@,$LIBOBJS,;t t
21133s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 21134CEOF
252b5132 21135
5464f5a1
NN
21136_ACEOF
21137
21138 cat >>$CONFIG_STATUS <<\_ACEOF
21139 # Split the substitutions into bite-sized pieces for seds with
21140 # small command number limits, like on Digital OSF/1 and HP-UX.
21141 ac_max_sed_lines=48
21142 ac_sed_frag=1 # Number of current file.
21143 ac_beg=1 # First line for current file.
21144 ac_end=$ac_max_sed_lines # Line after last line for current file.
21145 ac_more_lines=:
21146 ac_sed_cmds=
21147 while $ac_more_lines; do
21148 if test $ac_beg -gt 1; then
21149 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 21150 else
5464f5a1
NN
21151 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21152 fi
21153 if test ! -s $tmp/subs.frag; then
21154 ac_more_lines=false
21155 else
21156 # The purpose of the label and of the branching condition is to
21157 # speed up the sed processing (if there are no `@' at all, there
21158 # is no need to browse any of the substitutions).
21159 # These are the two extra sed commands mentioned above.
21160 (echo ':t
21161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21162 if test -z "$ac_sed_cmds"; then
21163 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21164 else
21165 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21166 fi
21167 ac_sed_frag=`expr $ac_sed_frag + 1`
21168 ac_beg=$ac_end
21169 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 21170 fi
5464f5a1
NN
21171 done
21172 if test -z "$ac_sed_cmds"; then
21173 ac_sed_cmds=cat
252b5132 21174 fi
5464f5a1 21175fi # test -n "$CONFIG_FILES"
6be7c12c 21176
5464f5a1
NN
21177_ACEOF
21178cat >>$CONFIG_STATUS <<\_ACEOF
21179for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 21180 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21181 case $ac_file in
21182 - | *:- | *:-:* ) # input from stdin
21183 cat >$tmp/stdin
21184 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21185 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21186 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21187 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21188 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21189 esac
21190
5464f5a1
NN
21191 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21192 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21193$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21194 X"$ac_file" : 'X\(//\)[^/]' \| \
21195 X"$ac_file" : 'X\(//\)$' \| \
21196 X"$ac_file" : 'X\(/\)' \| \
21197 . : '\(.\)' 2>/dev/null ||
21198echo X"$ac_file" |
21199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21201 /^X\(\/\/\)$/{ s//\1/; q; }
21202 /^X\(\/\).*/{ s//\1/; q; }
21203 s/.*/./; q'`
21204 { if $as_mkdir_p; then
21205 mkdir -p "$ac_dir"
252b5132 21206 else
5464f5a1
NN
21207 as_dir="$ac_dir"
21208 as_dirs=
21209 while test ! -d "$as_dir"; do
21210 as_dirs="$as_dir $as_dirs"
21211 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21213 X"$as_dir" : 'X\(//\)[^/]' \| \
21214 X"$as_dir" : 'X\(//\)$' \| \
21215 X"$as_dir" : 'X\(/\)' \| \
21216 . : '\(.\)' 2>/dev/null ||
21217echo X"$as_dir" |
21218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21220 /^X\(\/\/\)$/{ s//\1/; q; }
21221 /^X\(\/\).*/{ s//\1/; q; }
21222 s/.*/./; q'`
21223 done
21224 test ! -n "$as_dirs" || mkdir $as_dirs
21225 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21226echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21227 { (exit 1); exit 1; }; }; }
21228
21229 ac_builddir=.
21230
21231if test "$ac_dir" != .; then
21232 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21233 # A "../" for each directory in $ac_dir_suffix.
21234 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21235else
21236 ac_dir_suffix= ac_top_builddir=
21237fi
252b5132 21238
5464f5a1
NN
21239case $srcdir in
21240 .) # No --srcdir option. We are building in place.
21241 ac_srcdir=.
21242 if test -z "$ac_top_builddir"; then
21243 ac_top_srcdir=.
21244 else
21245 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21246 fi ;;
21247 [\\/]* | ?:[\\/]* ) # Absolute path.
21248 ac_srcdir=$srcdir$ac_dir_suffix;
21249 ac_top_srcdir=$srcdir ;;
252b5132 21250 *) # Relative path.
5464f5a1
NN
21251 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21252 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21253esac
252b5132 21254
5464f5a1
NN
21255# Do not use `cd foo && pwd` to compute absolute paths, because
21256# the directories may not exist.
21257case `pwd` in
21258.) ac_abs_builddir="$ac_dir";;
21259*)
21260 case "$ac_dir" in
21261 .) ac_abs_builddir=`pwd`;;
21262 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21263 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21264 esac;;
21265esac
21266case $ac_abs_builddir in
21267.) ac_abs_top_builddir=${ac_top_builddir}.;;
21268*)
21269 case ${ac_top_builddir}. in
21270 .) ac_abs_top_builddir=$ac_abs_builddir;;
21271 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21272 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21273 esac;;
21274esac
21275case $ac_abs_builddir in
21276.) ac_abs_srcdir=$ac_srcdir;;
21277*)
21278 case $ac_srcdir in
21279 .) ac_abs_srcdir=$ac_abs_builddir;;
21280 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21281 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21282 esac;;
21283esac
21284case $ac_abs_builddir in
21285.) ac_abs_top_srcdir=$ac_top_srcdir;;
21286*)
21287 case $ac_top_srcdir in
21288 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21289 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21290 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21291 esac;;
21292esac
252b5132 21293
5464f5a1
NN
21294
21295 case $INSTALL in
21296 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21297 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 21298 esac
252b5132 21299
49c96104
SE
21300 if test x"$ac_file" != x-; then
21301 { echo "$as_me:$LINENO: creating $ac_file" >&5
21302echo "$as_me: creating $ac_file" >&6;}
21303 rm -f "$ac_file"
21304 fi
5464f5a1
NN
21305 # Let's still pretend it is `configure' which instantiates (i.e., don't
21306 # use $as_me), people would be surprised to read:
21307 # /* config.h. Generated by config.status. */
21308 if test x"$ac_file" = x-; then
21309 configure_input=
21310 else
21311 configure_input="$ac_file. "
21312 fi
21313 configure_input=$configure_input"Generated from `echo $ac_file_in |
21314 sed 's,.*/,,'` by configure."
21315
21316 # First look for the input files in the build tree, otherwise in the
21317 # src tree.
21318 ac_file_inputs=`IFS=:
21319 for f in $ac_file_in; do
21320 case $f in
21321 -) echo $tmp/stdin ;;
21322 [\\/$]*)
21323 # Absolute (can't be DOS-style, as IFS=:)
21324 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21325echo "$as_me: error: cannot find input file: $f" >&2;}
21326 { (exit 1); exit 1; }; }
21327 echo "$f";;
21328 *) # Relative
21329 if test -f "$f"; then
21330 # Build tree
21331 echo "$f"
21332 elif test -f "$srcdir/$f"; then
21333 # Source tree
21334 echo "$srcdir/$f"
21335 else
21336 # /dev/null tree
21337 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21338echo "$as_me: error: cannot find input file: $f" >&2;}
21339 { (exit 1); exit 1; }; }
21340 fi;;
21341 esac
21342 done` || { (exit 1); exit 1; }
5464f5a1
NN
21343_ACEOF
21344cat >>$CONFIG_STATUS <<_ACEOF
21345 sed "$ac_vpsub
21346$extrasub
21347_ACEOF
21348cat >>$CONFIG_STATUS <<\_ACEOF
21349:t
21350/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21351s,@configure_input@,$configure_input,;t t
21352s,@srcdir@,$ac_srcdir,;t t
21353s,@abs_srcdir@,$ac_abs_srcdir,;t t
21354s,@top_srcdir@,$ac_top_srcdir,;t t
21355s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21356s,@builddir@,$ac_builddir,;t t
21357s,@abs_builddir@,$ac_abs_builddir,;t t
21358s,@top_builddir@,$ac_top_builddir,;t t
21359s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21360s,@INSTALL@,$ac_INSTALL,;t t
21361" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21362 rm -f $tmp/stdin
21363 if test x"$ac_file" != x-; then
21364 mv $tmp/out $ac_file
21365 else
21366 cat $tmp/out
21367 rm -f $tmp/out
21368 fi
21369
21370done
21371_ACEOF
21372cat >>$CONFIG_STATUS <<\_ACEOF
21373
21374#
21375# CONFIG_HEADER section.
21376#
252b5132
RH
21377
21378# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21379# NAME is the cpp macro being defined and VALUE is the value it is being given.
21380#
21381# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
21382ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21383ac_dB='[ ].*$,\1#\2'
21384ac_dC=' '
21385ac_dD=',;t'
21386# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21387ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21388ac_uB='$,\1#\2define\3'
252b5132 21389ac_uC=' '
5464f5a1
NN
21390ac_uD=',;t'
21391
21392for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 21393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
21394 case $ac_file in
21395 - | *:- | *:-:* ) # input from stdin
21396 cat >$tmp/stdin
21397 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21398 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21399 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21400 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21401 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
21402 esac
21403
5464f5a1
NN
21404 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21405echo "$as_me: creating $ac_file" >&6;}
21406
21407 # First look for the input files in the build tree, otherwise in the
21408 # src tree.
21409 ac_file_inputs=`IFS=:
21410 for f in $ac_file_in; do
21411 case $f in
21412 -) echo $tmp/stdin ;;
21413 [\\/$]*)
21414 # Absolute (can't be DOS-style, as IFS=:)
21415 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21416echo "$as_me: error: cannot find input file: $f" >&2;}
21417 { (exit 1); exit 1; }; }
21418 # Do quote $f, to prevent DOS paths from being IFS'd.
21419 echo "$f";;
21420 *) # Relative
21421 if test -f "$f"; then
21422 # Build tree
21423 echo "$f"
21424 elif test -f "$srcdir/$f"; then
21425 # Source tree
21426 echo "$srcdir/$f"
21427 else
21428 # /dev/null tree
21429 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21430echo "$as_me: error: cannot find input file: $f" >&2;}
21431 { (exit 1); exit 1; }; }
21432 fi;;
21433 esac
21434 done` || { (exit 1); exit 1; }
21435 # Remove the trailing spaces.
21436 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21437
21438_ACEOF
21439
21440# Transform confdefs.h into two sed scripts, `conftest.defines' and
21441# `conftest.undefs', that substitutes the proper values into
21442# config.h.in to produce config.h. The first handles `#define'
21443# templates, and the second `#undef' templates.
21444# And first: Protect against being on the right side of a sed subst in
21445# config.status. Protect against being in an unquoted here document
21446# in config.status.
21447rm -f conftest.defines conftest.undefs
21448# Using a here document instead of a string reduces the quoting nightmare.
21449# Putting comments in sed scripts is not portable.
21450#
21451# `end' is used to avoid that the second main sed command (meant for
21452# 0-ary CPP macros) applies to n-ary macro definitions.
21453# See the Autoconf documentation for `clear'.
21454cat >confdef2sed.sed <<\_ACEOF
21455s/[\\&,]/\\&/g
21456s,[\\$`],\\&,g
21457t clear
21458: clear
21459s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21460t end
21461s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21462: end
21463_ACEOF
21464# If some macros were called several times there might be several times
21465# the same #defines, which is useless. Nevertheless, we may not want to
21466# sort them, since we want the *last* AC-DEFINE to be honored.
21467uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21468sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21469rm -f confdef2sed.sed
252b5132
RH
21470
21471# This sed command replaces #undef with comments. This is necessary, for
21472# example, in the case of _POSIX_SOURCE, which is predefined and required
21473# on some systems where configure will not decide to define it.
5464f5a1
NN
21474cat >>conftest.undefs <<\_ACEOF
21475s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21476_ACEOF
21477
21478# Break up conftest.defines because some shells have a limit on the size
21479# of here documents, and old seds have small limits too (100 cmds).
21480echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21481echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21482echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21483echo ' :' >>$CONFIG_STATUS
21484rm -f conftest.tail
21485while grep . conftest.defines >/dev/null
21486do
21487 # Write a limited-size here document to $tmp/defines.sed.
21488 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21489 # Speed up: don't consider the non `#define' lines.
21490 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21491 # Work around the forget-to-reset-the-flag bug.
21492 echo 't clr' >>$CONFIG_STATUS
21493 echo ': clr' >>$CONFIG_STATUS
21494 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21495 echo 'CEOF
21496 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21497 rm -f $tmp/in
21498 mv $tmp/out $tmp/in
21499' >>$CONFIG_STATUS
21500 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21501 rm -f conftest.defines
21502 mv conftest.tail conftest.defines
21503done
21504rm -f conftest.defines
21505echo ' fi # grep' >>$CONFIG_STATUS
21506echo >>$CONFIG_STATUS
252b5132 21507
5464f5a1
NN
21508# Break up conftest.undefs because some shells have a limit on the size
21509# of here documents, and old seds have small limits too (100 cmds).
21510echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 21511rm -f conftest.tail
5464f5a1 21512while grep . conftest.undefs >/dev/null
252b5132 21513do
5464f5a1
NN
21514 # Write a limited-size here document to $tmp/undefs.sed.
21515 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21516 # Speed up: don't consider the non `#undef'
21517 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21518 # Work around the forget-to-reset-the-flag bug.
21519 echo 't clr' >>$CONFIG_STATUS
21520 echo ': clr' >>$CONFIG_STATUS
21521 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 21522 echo 'CEOF
5464f5a1
NN
21523 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21524 rm -f $tmp/in
21525 mv $tmp/out $tmp/in
21526' >>$CONFIG_STATUS
21527 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21528 rm -f conftest.undefs
21529 mv conftest.tail conftest.undefs
252b5132 21530done
5464f5a1
NN
21531rm -f conftest.undefs
21532
21533cat >>$CONFIG_STATUS <<\_ACEOF
21534 # Let's still pretend it is `configure' which instantiates (i.e., don't
21535 # use $as_me), people would be surprised to read:
21536 # /* config.h. Generated by config.status. */
21537 if test x"$ac_file" = x-; then
21538 echo "/* Generated by configure. */" >$tmp/config.h
21539 else
21540 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21541 fi
21542 cat $tmp/in >>$tmp/config.h
21543 rm -f $tmp/in
21544 if test x"$ac_file" != x-; then
21545 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21546 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21547echo "$as_me: $ac_file is unchanged" >&6;}
21548 else
21549 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21550$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21551 X"$ac_file" : 'X\(//\)[^/]' \| \
21552 X"$ac_file" : 'X\(//\)$' \| \
21553 X"$ac_file" : 'X\(/\)' \| \
21554 . : '\(.\)' 2>/dev/null ||
21555echo X"$ac_file" |
21556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21558 /^X\(\/\/\)$/{ s//\1/; q; }
21559 /^X\(\/\).*/{ s//\1/; q; }
21560 s/.*/./; q'`
21561 { if $as_mkdir_p; then
21562 mkdir -p "$ac_dir"
252b5132 21563 else
5464f5a1
NN
21564 as_dir="$ac_dir"
21565 as_dirs=
21566 while test ! -d "$as_dir"; do
21567 as_dirs="$as_dir $as_dirs"
21568 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21570 X"$as_dir" : 'X\(//\)[^/]' \| \
21571 X"$as_dir" : 'X\(//\)$' \| \
21572 X"$as_dir" : 'X\(/\)' \| \
21573 . : '\(.\)' 2>/dev/null ||
21574echo X"$as_dir" |
21575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21577 /^X\(\/\/\)$/{ s//\1/; q; }
21578 /^X\(\/\).*/{ s//\1/; q; }
21579 s/.*/./; q'`
21580 done
21581 test ! -n "$as_dirs" || mkdir $as_dirs
21582 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21583echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21584 { (exit 1); exit 1; }; }; }
21585
21586 rm -f $ac_file
21587 mv $tmp/config.h $ac_file
252b5132 21588 fi
5464f5a1
NN
21589 else
21590 cat $tmp/config.h
21591 rm -f $tmp/config.h
252b5132 21592 fi
f5385ebf
AM
21593# Compute $ac_file's index in $config_headers.
21594_am_stamp_count=1
21595for _am_header in $config_headers :; do
21596 case $_am_header in
21597 $ac_file | $ac_file:* )
21598 break ;;
21599 * )
21600 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21601 esac
21602done
21603echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21604$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21605 X$ac_file : 'X\(//\)[^/]' \| \
21606 X$ac_file : 'X\(//\)$' \| \
21607 X$ac_file : 'X\(/\)' \| \
21608 . : '\(.\)' 2>/dev/null ||
21609echo X$ac_file |
21610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21612 /^X\(\/\/\)$/{ s//\1/; q; }
21613 /^X\(\/\).*/{ s//\1/; q; }
21614 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
21615done
21616_ACEOF
21617cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 21618
5464f5a1
NN
21619#
21620# CONFIG_COMMANDS section.
21621#
21622for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21623 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21624 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21625 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21626$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21627 X"$ac_dest" : 'X\(//\)[^/]' \| \
21628 X"$ac_dest" : 'X\(//\)$' \| \
21629 X"$ac_dest" : 'X\(/\)' \| \
21630 . : '\(.\)' 2>/dev/null ||
21631echo X"$ac_dest" |
21632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21634 /^X\(\/\/\)$/{ s//\1/; q; }
21635 /^X\(\/\).*/{ s//\1/; q; }
21636 s/.*/./; q'`
21637 { if $as_mkdir_p; then
21638 mkdir -p "$ac_dir"
21639 else
21640 as_dir="$ac_dir"
21641 as_dirs=
21642 while test ! -d "$as_dir"; do
21643 as_dirs="$as_dir $as_dirs"
21644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21646 X"$as_dir" : 'X\(//\)[^/]' \| \
21647 X"$as_dir" : 'X\(//\)$' \| \
21648 X"$as_dir" : 'X\(/\)' \| \
21649 . : '\(.\)' 2>/dev/null ||
21650echo X"$as_dir" |
21651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21653 /^X\(\/\/\)$/{ s//\1/; q; }
21654 /^X\(\/\).*/{ s//\1/; q; }
21655 s/.*/./; q'`
21656 done
21657 test ! -n "$as_dirs" || mkdir $as_dirs
21658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21659echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21660 { (exit 1); exit 1; }; }; }
b3baf5d0 21661
5464f5a1 21662 ac_builddir=.
b3baf5d0 21663
5464f5a1
NN
21664if test "$ac_dir" != .; then
21665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21666 # A "../" for each directory in $ac_dir_suffix.
21667 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21668else
21669 ac_dir_suffix= ac_top_builddir=
21670fi
21671
21672case $srcdir in
21673 .) # No --srcdir option. We are building in place.
21674 ac_srcdir=.
21675 if test -z "$ac_top_builddir"; then
21676 ac_top_srcdir=.
21677 else
21678 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21679 fi ;;
21680 [\\/]* | ?:[\\/]* ) # Absolute path.
21681 ac_srcdir=$srcdir$ac_dir_suffix;
21682 ac_top_srcdir=$srcdir ;;
21683 *) # Relative path.
21684 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21685 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21686esac
21687
21688# Do not use `cd foo && pwd` to compute absolute paths, because
21689# the directories may not exist.
21690case `pwd` in
21691.) ac_abs_builddir="$ac_dir";;
21692*)
21693 case "$ac_dir" in
21694 .) ac_abs_builddir=`pwd`;;
21695 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21696 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21697 esac;;
21698esac
21699case $ac_abs_builddir in
21700.) ac_abs_top_builddir=${ac_top_builddir}.;;
21701*)
21702 case ${ac_top_builddir}. in
21703 .) ac_abs_top_builddir=$ac_abs_builddir;;
21704 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21705 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21706 esac;;
21707esac
21708case $ac_abs_builddir in
21709.) ac_abs_srcdir=$ac_srcdir;;
21710*)
21711 case $ac_srcdir in
21712 .) ac_abs_srcdir=$ac_abs_builddir;;
21713 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21714 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21715 esac;;
21716esac
21717case $ac_abs_builddir in
21718.) ac_abs_top_srcdir=$ac_top_srcdir;;
21719*)
21720 case $ac_top_srcdir in
21721 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21722 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21723 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21724 esac;;
21725esac
21726
21727
21728 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21729echo "$as_me: executing $ac_dest commands" >&6;}
21730 case $ac_dest in
f5385ebf
AM
21731 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21732 # Strip MF so we end up with the name of the file.
21733 mf=`echo "$mf" | sed -e 's/:.*$//'`
21734 # Check whether this is an Automake generated Makefile or not.
21735 # We used to match only the files named `Makefile.in', but
21736 # some people rename them; so instead we look at the file content.
21737 # Grep'ing the first line is not enough: some people post-process
21738 # each Makefile.in and add a new line on top of each file to say so.
21739 # So let's grep whole file.
21740 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21741 dirpart=`(dirname "$mf") 2>/dev/null ||
21742$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21743 X"$mf" : 'X\(//\)[^/]' \| \
21744 X"$mf" : 'X\(//\)$' \| \
21745 X"$mf" : 'X\(/\)' \| \
21746 . : '\(.\)' 2>/dev/null ||
21747echo X"$mf" |
21748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21750 /^X\(\/\/\)$/{ s//\1/; q; }
21751 /^X\(\/\).*/{ s//\1/; q; }
21752 s/.*/./; q'`
21753 else
21754 continue
21755 fi
21756 # Extract the definition of DEPDIR, am__include, and am__quote
21757 # from the Makefile without running `make'.
21758 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21759 test -z "$DEPDIR" && continue
21760 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21761 test -z "am__include" && continue
21762 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21763 # When using ansi2knr, U may be empty or an underscore; expand it
21764 U=`sed -n 's/^U = //p' < "$mf"`
21765 # Find all dependency output files, they are included files with
21766 # $(DEPDIR) in their names. We invoke sed twice because it is the
21767 # simplest approach to changing $(DEPDIR) to its actual value in the
21768 # expansion.
21769 for file in `sed -n "
21770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21772 # Make sure the directory exists.
21773 test -f "$dirpart/$file" && continue
21774 fdir=`(dirname "$file") 2>/dev/null ||
21775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21776 X"$file" : 'X\(//\)[^/]' \| \
21777 X"$file" : 'X\(//\)$' \| \
21778 X"$file" : 'X\(/\)' \| \
21779 . : '\(.\)' 2>/dev/null ||
21780echo X"$file" |
21781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21783 /^X\(\/\/\)$/{ s//\1/; q; }
21784 /^X\(\/\).*/{ s//\1/; q; }
21785 s/.*/./; q'`
21786 { if $as_mkdir_p; then
21787 mkdir -p $dirpart/$fdir
21788 else
21789 as_dir=$dirpart/$fdir
21790 as_dirs=
21791 while test ! -d "$as_dir"; do
21792 as_dirs="$as_dir $as_dirs"
21793 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21795 X"$as_dir" : 'X\(//\)[^/]' \| \
21796 X"$as_dir" : 'X\(//\)$' \| \
21797 X"$as_dir" : 'X\(/\)' \| \
21798 . : '\(.\)' 2>/dev/null ||
21799echo X"$as_dir" |
21800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21802 /^X\(\/\/\)$/{ s//\1/; q; }
21803 /^X\(\/\).*/{ s//\1/; q; }
21804 s/.*/./; q'`
21805 done
21806 test ! -n "$as_dirs" || mkdir $as_dirs
21807 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21808echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21809 { (exit 1); exit 1; }; }; }
21810
21811 # echo "creating $dirpart/$file"
21812 echo '# dummy' > "$dirpart/$file"
21813 done
21814done
d7040cdb
SE
21815 ;;
21816 libtool )
21817
21818 # See if we are running on zsh, and set the options which allow our
21819 # commands through without removal of \ escapes.
21820 if test -n "${ZSH_VERSION+set}" ; then
21821 setopt NO_GLOB_SUBST
21822 fi
21823
21824 cfgfile="${ofile}T"
21825 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21826 $RM "$cfgfile"
21827
21828 cat <<_LT_EOF >> "$cfgfile"
21829#! $SHELL
21830
21831# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21832# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21834# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21835#
21836# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21837# 2006, 2007 Free Software Foundation, Inc.
21838#
21839# This file is part of GNU Libtool:
21840# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21841#
21842# This program is free software; you can redistribute it and/or modify
21843# it under the terms of the GNU General Public License as published by
21844# the Free Software Foundation; either version 2 of the License, or
21845# (at your option) any later version.
21846#
21847# This program is distributed in the hope that it will be useful, but
21848# WITHOUT ANY WARRANTY; without even the implied warranty of
21849# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21850# General Public License for more details.
21851#
21852# You should have received a copy of the GNU General Public License
21853# along with this program; if not, a copy can be downloaded from
21854# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21855# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21856# MA 02110-1301, USA.
21857#
21858# As a special exception to the GNU General Public License, if you
21859# distribute this file as part of a program that contains a
21860# configuration script generated by Autoconf, you may include it under
21861# the same distribution terms that you use for the rest of that program.
21862
21863
21864# The names of the tagged configurations supported by this script.
21865available_tags=""
21866
21867# ### BEGIN LIBTOOL CONFIG
21868
21869# Whether or not to build shared libraries.
21870build_libtool_libs=$enable_shared
21871
21872# Which release of libtool.m4 was used?
21873macro_version=$macro_version
21874macro_revision=$macro_revision
21875
21876# Whether or not to build static libraries.
21877build_old_libs=$enable_static
21878
21879# What type of objects to build.
21880pic_mode=$pic_mode
21881
21882# Whether or not to optimize for fast installation.
21883fast_install=$enable_fast_install
21884
21885# The host system.
21886host_alias=$host_alias
21887host=$host
21888host_os=$host_os
21889
21890# The build system.
21891build_alias=$build_alias
21892build=$build
21893build_os=$build_os
21894
21895# A sed program that does not truncate output.
21896SED=$lt_SED
21897
21898# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21899Xsed="\$SED -e 1s/^X//"
21900
21901# A grep program that handles long lines.
21902GREP=$lt_GREP
21903
21904# An ERE matcher.
21905EGREP=$lt_EGREP
21906
21907# A literal string matcher.
21908FGREP=$lt_FGREP
21909
21910# A BSD- or MS-compatible name lister.
21911NM=$lt_NM
21912
21913# Whether we need soft or hard links.
21914LN_S=$lt_LN_S
21915
21916# What is the maximum length of a command?
21917max_cmd_len=$max_cmd_len
21918
21919# Object file suffix (normally "o").
21920objext=$ac_objext
21921
21922# Executable file suffix (normally "").
21923exeext=$exeext
21924
21925# whether the shell understands "unset".
21926lt_unset=$lt_unset
21927
21928# turn spaces into newlines.
21929SP2NL=$lt_lt_SP2NL
21930
21931# turn newlines into spaces.
21932NL2SP=$lt_lt_NL2SP
21933
21934# How to create reloadable object files.
21935reload_flag=$lt_reload_flag
21936reload_cmds=$lt_reload_cmds
21937
21938# Method to check whether dependent libraries are shared objects.
21939deplibs_check_method=$lt_deplibs_check_method
21940
21941# Command to use when deplibs_check_method == "file_magic".
21942file_magic_cmd=$lt_file_magic_cmd
21943
21944# The archiver.
21945AR=$lt_AR
21946AR_FLAGS=$lt_AR_FLAGS
21947
21948# A symbol stripping program.
21949STRIP=$lt_STRIP
21950
21951# Commands used to install an old-style archive.
21952RANLIB=$lt_RANLIB
21953old_postinstall_cmds=$lt_old_postinstall_cmds
21954old_postuninstall_cmds=$lt_old_postuninstall_cmds
21955
21956# A C compiler.
21957LTCC=$lt_CC
21958
21959# LTCC compiler flags.
21960LTCFLAGS=$lt_CFLAGS
21961
21962# Take the output of nm and produce a listing of raw symbols and C names.
21963global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21964
21965# Transform the output of nm in a proper C declaration.
21966global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21967
21968# Transform the output of nm in a C name address pair.
21969global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21970
21971# The name of the directory that contains temporary libtool files.
21972objdir=$objdir
21973
21974# Shell to use when invoking shell scripts.
21975SHELL=$lt_SHELL
21976
21977# An echo program that does not interpret backslashes.
21978ECHO=$lt_ECHO
21979
21980# Used to examine libraries when file_magic_cmd begins with "file".
21981MAGIC_CMD=$MAGIC_CMD
21982
21983# Must we lock files when doing compilation?
21984need_locks=$lt_need_locks
21985
21986# Old archive suffix (normally "a").
21987libext=$libext
21988
21989# Shared library suffix (normally ".so").
21990shrext_cmds=$lt_shrext_cmds
21991
21992# The commands to extract the exported symbol list from a shared archive.
21993extract_expsyms_cmds=$lt_extract_expsyms_cmds
21994
21995# Variables whose values should be saved in libtool wrapper scripts and
21996# restored at link time.
21997variables_saved_for_relink=$lt_variables_saved_for_relink
21998
21999# Do we need the "lib" prefix for modules?
22000need_lib_prefix=$need_lib_prefix
22001
22002# Do we need a version for libraries?
22003need_version=$need_version
22004
22005# Library versioning type.
22006version_type=$version_type
22007
22008# Shared library runtime path variable.
22009runpath_var=$runpath_var
22010
22011# Shared library path variable.
22012shlibpath_var=$shlibpath_var
22013
22014# Is shlibpath searched before the hard-coded library search path?
22015shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22016
22017# Format of library name prefix.
22018libname_spec=$lt_libname_spec
22019
22020# List of archive names. First name is the real one, the rest are links.
22021# The last name is the one that the linker finds with -lNAME
22022library_names_spec=$lt_library_names_spec
22023
22024# The coded name of the library, if different from the real name.
22025soname_spec=$lt_soname_spec
22026
22027# Command to use after installation of a shared archive.
22028postinstall_cmds=$lt_postinstall_cmds
22029
22030# Command to use after uninstallation of a shared archive.
22031postuninstall_cmds=$lt_postuninstall_cmds
22032
22033# Commands used to finish a libtool library installation in a directory.
22034finish_cmds=$lt_finish_cmds
22035
22036# As "finish_cmds", except a single script fragment to be evaled but
22037# not shown.
22038finish_eval=$lt_finish_eval
22039
22040# Whether we should hardcode library paths into libraries.
22041hardcode_into_libs=$hardcode_into_libs
22042
22043# Compile-time system search path for libraries.
22044sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22045
22046# Run-time system search path for libraries.
22047sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22048
22049# Whether dlopen is supported.
22050dlopen_support=$enable_dlopen
22051
22052# Whether dlopen of programs is supported.
22053dlopen_self=$enable_dlopen_self
22054
22055# Whether dlopen of statically linked programs is supported.
22056dlopen_self_static=$enable_dlopen_self_static
22057
22058# Commands to strip libraries.
22059old_striplib=$lt_old_striplib
22060striplib=$lt_striplib
22061
22062
22063# The linker used to build libraries.
22064LD=$lt_LD
22065
22066# Commands used to build an old-style archive.
22067old_archive_cmds=$lt_old_archive_cmds
22068
22069# A language specific compiler.
22070CC=$lt_compiler
22071
22072# Is the compiler the GNU compiler?
22073with_gcc=$GCC
22074
22075# Compiler flag to turn off builtin functions.
22076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22077
22078# How to pass a linker flag through the compiler.
22079wl=$lt_lt_prog_compiler_wl
22080
22081# Additional compiler flags for building library objects.
22082pic_flag=$lt_lt_prog_compiler_pic
22083
22084# Compiler flag to prevent dynamic linking.
22085link_static_flag=$lt_lt_prog_compiler_static
22086
22087# Does compiler simultaneously support -c and -o options?
22088compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22089
22090# Whether or not to add -lc for building shared libraries.
22091build_libtool_need_lc=$archive_cmds_need_lc
22092
22093# Whether or not to disallow shared libs when runtime libs are static.
22094allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22095
22096# Compiler flag to allow reflexive dlopens.
22097export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22098
22099# Compiler flag to generate shared objects directly from archives.
22100whole_archive_flag_spec=$lt_whole_archive_flag_spec
22101
22102# Whether the compiler copes with passing no objects directly.
22103compiler_needs_object=$lt_compiler_needs_object
22104
22105# Create an old-style archive from a shared archive.
22106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22107
22108# Create a temporary old-style archive to link instead of a shared archive.
22109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22110
22111# Commands used to build a shared archive.
22112archive_cmds=$lt_archive_cmds
22113archive_expsym_cmds=$lt_archive_expsym_cmds
22114
22115# Commands used to build a loadable module if different from building
22116# a shared archive.
22117module_cmds=$lt_module_cmds
22118module_expsym_cmds=$lt_module_expsym_cmds
22119
22120# Whether we are building with GNU ld or not.
22121with_gnu_ld=$lt_with_gnu_ld
22122
22123# Flag that allows shared libraries with undefined symbols to be built.
22124allow_undefined_flag=$lt_allow_undefined_flag
22125
22126# Flag that enforces no undefined symbols.
22127no_undefined_flag=$lt_no_undefined_flag
22128
22129# Flag to hardcode \$libdir into a binary during linking.
22130# This must work even if \$libdir does not exist
22131hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22132
22133# If ld is used when linking, flag to hardcode \$libdir into a binary
22134# during linking. This must work even if \$libdir does not exist.
22135hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22136
22137# Whether we need a single "-rpath" flag with a separated argument.
22138hardcode_libdir_separator=$lt_hardcode_libdir_separator
22139
22140# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22141# DIR into the resulting binary.
22142hardcode_direct=$hardcode_direct
22143
22144# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22145# DIR into the resulting binary and the resulting library dependency is
22146# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22147# library is relocated.
22148hardcode_direct_absolute=$hardcode_direct_absolute
22149
22150# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22151# into the resulting binary.
22152hardcode_minus_L=$hardcode_minus_L
22153
22154# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22155# into the resulting binary.
22156hardcode_shlibpath_var=$hardcode_shlibpath_var
22157
22158# Set to "yes" if building a shared library automatically hardcodes DIR
22159# into the library and all subsequent libraries and executables linked
22160# against it.
22161hardcode_automatic=$hardcode_automatic
22162
22163# Set to yes if linker adds runtime paths of dependent libraries
22164# to runtime path list.
22165inherit_rpath=$inherit_rpath
22166
22167# Whether libtool must link a program against all its dependency libraries.
22168link_all_deplibs=$link_all_deplibs
22169
22170# Fix the shell variable \$srcfile for the compiler.
22171fix_srcfile_path=$lt_fix_srcfile_path
22172
22173# Set to "yes" if exported symbols are required.
22174always_export_symbols=$always_export_symbols
22175
22176# The commands to list exported symbols.
22177export_symbols_cmds=$lt_export_symbols_cmds
22178
22179# Symbols that should not be listed in the preloaded symbols.
22180exclude_expsyms=$lt_exclude_expsyms
22181
22182# Symbols that must always be exported.
22183include_expsyms=$lt_include_expsyms
22184
22185# Commands necessary for linking programs (against libraries) with templates.
22186prelink_cmds=$lt_prelink_cmds
22187
22188# Specify filename containing input files.
22189file_list_spec=$lt_file_list_spec
22190
22191# How to hardcode a shared library path into an executable.
22192hardcode_action=$hardcode_action
22193
22194# ### END LIBTOOL CONFIG
22195
22196_LT_EOF
22197
22198 case $host_os in
22199 aix3*)
22200 cat <<\_LT_EOF >> "$cfgfile"
22201# AIX sometimes has problems with the GCC collect2 program. For some
22202# reason, if we set the COLLECT_NAMES environment variable, the problems
22203# vanish in a puff of smoke.
22204if test "X${COLLECT_NAMES+set}" != Xset; then
22205 COLLECT_NAMES=
22206 export COLLECT_NAMES
22207fi
22208_LT_EOF
22209 ;;
22210 esac
22211
22212
22213ltmain="$ac_aux_dir/ltmain.sh"
22214
22215
22216 # We use sed instead of cat because bash on DJGPP gets confused if
22217 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22218 # text mode, it properly converts lines to CR/LF. This bash problem
22219 # is reportedly fixed, but why not run on old versions too?
22220 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22221 || (rm -f "$cfgfile"; exit 1)
22222
22223 case $xsi_shell in
22224 yes)
22225 cat << \_LT_EOF >> "$cfgfile"
22226# func_dirname file append nondir_replacement
22227# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22228# otherwise set result to NONDIR_REPLACEMENT.
22229func_dirname ()
22230{
22231 case ${1} in
22232 */*) func_dirname_result="${1%/*}${2}" ;;
22233 * ) func_dirname_result="${3}" ;;
22234 esac
22235}
22236
22237# func_basename file
22238func_basename ()
22239{
22240 func_basename_result="${1##*/}"
22241}
22242
22243# func_stripname prefix suffix name
22244# strip PREFIX and SUFFIX off of NAME.
22245# PREFIX and SUFFIX must not contain globbing or regex special
22246# characters, hashes, percent signs, but SUFFIX may contain a leading
22247# dot (in which case that matches only a dot).
22248func_stripname ()
22249{
22250 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22251 # positional parameters, so assign one to ordinary parameter first.
22252 func_stripname_result=${3}
22253 func_stripname_result=${func_stripname_result#"${1}"}
22254 func_stripname_result=${func_stripname_result%"${2}"}
22255}
22256
22257# func_opt_split
22258func_opt_split ()
22259{
22260 func_opt_split_opt=${1%%=*}
22261 func_opt_split_arg=${1#*=}
22262}
22263
22264# func_lo2o object
22265func_lo2o ()
22266{
22267 case ${1} in
22268 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22269 *) func_lo2o_result=${1} ;;
22270 esac
22271}
22272_LT_EOF
22273 ;;
22274 *) # Bourne compatible functions.
22275 cat << \_LT_EOF >> "$cfgfile"
22276# func_dirname file append nondir_replacement
22277# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22278# otherwise set result to NONDIR_REPLACEMENT.
22279func_dirname ()
22280{
22281 # Extract subdirectory from the argument.
22282 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22283 if test "X$func_dirname_result" = "X${1}"; then
22284 func_dirname_result="${3}"
22285 else
22286 func_dirname_result="$func_dirname_result${2}"
22287 fi
22288}
22289
22290# func_basename file
22291func_basename ()
22292{
22293 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22294}
22295
22296# func_stripname prefix suffix name
22297# strip PREFIX and SUFFIX off of NAME.
22298# PREFIX and SUFFIX must not contain globbing or regex special
22299# characters, hashes, percent signs, but SUFFIX may contain a leading
22300# dot (in which case that matches only a dot).
22301# func_strip_suffix prefix name
22302func_stripname ()
22303{
22304 case ${2} in
22305 .*) func_stripname_result=`$ECHO "X${3}" \
22306 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22307 *) func_stripname_result=`$ECHO "X${3}" \
22308 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22309 esac
22310}
22311
22312# sed scripts:
22313my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22314my_sed_long_arg='1s/^-[^=]*=//'
22315
22316# func_opt_split
22317func_opt_split ()
22318{
22319 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22320 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22321}
22322
22323# func_lo2o object
22324func_lo2o ()
22325{
22326 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22327}
22328_LT_EOF
22329esac
22330
22331case $lt_shell_append in
22332 yes)
22333 cat << \_LT_EOF >> "$cfgfile"
22334
22335# func_append var value
22336# Append VALUE to the end of shell variable VAR.
22337func_append ()
22338{
22339 eval "$1+=\$2"
22340}
22341_LT_EOF
22342 ;;
22343 *)
22344 cat << \_LT_EOF >> "$cfgfile"
22345
22346# func_append var value
22347# Append VALUE to the end of shell variable VAR.
22348func_append ()
22349{
22350 eval "$1=\$$1\$2"
22351}
22352_LT_EOF
22353 ;;
22354 esac
22355
22356
22357 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22358 || (rm -f "$cfgfile"; exit 1)
22359
22360 mv -f "$cfgfile" "$ofile" ||
22361 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22362 chmod +x "$ofile"
22363
f5385ebf 22364 ;;
20e95c23
DJ
22365 default-1 )
22366 for ac_file in $CONFIG_FILES; do
22367 # Support "outfile[:infile[:infile...]]"
22368 case "$ac_file" in
22369 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22370 esac
22371 # PO directories have a Makefile.in generated from Makefile.in.in.
22372 case "$ac_file" in */Makefile.in)
22373 # Adjust a relative srcdir.
22374 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22375 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22376 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22377 # In autoconf-2.13 it is called $ac_given_srcdir.
22378 # In autoconf-2.50 it is called $srcdir.
22379 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22380 case "$ac_given_srcdir" in
22381 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22382 /*) top_srcdir="$ac_given_srcdir" ;;
22383 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22384 esac
22385 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22386 rm -f "$ac_dir/POTFILES"
22387 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22388 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22389 POMAKEFILEDEPS="POTFILES.in"
22390 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22391 # on $ac_dir but don't depend on user-specified configuration
22392 # parameters.
22393 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22394 # The LINGUAS file contains the set of available languages.
22395 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22396 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22397 fi
22398 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22399 # Hide the ALL_LINGUAS assigment from automake.
22400 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22401 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22402 else
22403 # The set of available languages was given in configure.in.
22404 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22405 fi
22406 case "$ac_given_srcdir" in
22407 .) srcdirpre= ;;
22408 *) srcdirpre='$(srcdir)/' ;;
22409 esac
22410 POFILES=
22411 GMOFILES=
22412 UPDATEPOFILES=
22413 DUMMYPOFILES=
22414 for lang in $ALL_LINGUAS; do
22415 POFILES="$POFILES $srcdirpre$lang.po"
22416 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22417 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22418 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22419 done
22420 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22421 # environment variable.
22422 INST_LINGUAS=
22423 if test -n "$ALL_LINGUAS"; then
22424 for presentlang in $ALL_LINGUAS; do
22425 useit=no
22426 if test "%UNSET%" != "$LINGUAS"; then
22427 desiredlanguages="$LINGUAS"
22428 else
22429 desiredlanguages="$ALL_LINGUAS"
22430 fi
22431 for desiredlang in $desiredlanguages; do
22432 # Use the presentlang catalog if desiredlang is
22433 # a. equal to presentlang, or
22434 # b. a variant of presentlang (because in this case,
22435 # presentlang can be used as a fallback for messages
22436 # which are not translated in the desiredlang catalog).
22437 case "$desiredlang" in
22438 "$presentlang"*) useit=yes;;
22439 esac
22440 done
22441 if test $useit = yes; then
22442 INST_LINGUAS="$INST_LINGUAS $presentlang"
22443 fi
22444 done
22445 fi
22446 CATALOGS=
22447 if test -n "$INST_LINGUAS"; then
22448 for lang in $INST_LINGUAS; do
22449 CATALOGS="$CATALOGS $lang.gmo"
22450 done
22451 fi
22452 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22453 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"
22454 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22455 if test -f "$f"; then
22456 case "$f" in
22457 *.orig | *.bak | *~) ;;
22458 *) cat "$f" >> "$ac_dir/Makefile" ;;
22459 esac
22460 fi
22461 done
22462 fi
22463 ;;
22464 esac
22465 done ;;
d5efd9fc
AM
22466 bfd_stdint.h )
22467if test "$GCC" = yes; then
22468 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22469else
22470 echo "/* generated for $CC */" > tmp-stdint.h
22471fi
22472
22473sed 's/^ *//' >> tmp-stdint.h <<EOF
22474
22475 #ifndef GCC_GENERATED_STDINT_H
22476 #define GCC_GENERATED_STDINT_H 1
22477
22478 #include <sys/types.h>
22479EOF
22480
22481if test "$acx_cv_header_stdint" != stdint.h; then
22482 echo "#include <stddef.h>" >> tmp-stdint.h
22483fi
22484if test "$acx_cv_header_stdint" != stddef.h; then
22485 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22486fi
22487
22488sed 's/^ *//' >> tmp-stdint.h <<EOF
22489 /* glibc uses these symbols as guards to prevent redefinitions. */
22490 #ifdef __int8_t_defined
22491 #define _INT8_T
22492 #define _INT16_T
22493 #define _INT32_T
22494 #endif
22495 #ifdef __uint32_t_defined
22496 #define _UINT32_T
22497 #endif
22498
22499EOF
22500
22501# ----------------- done header, emit basic int types -------------
22502if test "$acx_cv_header_stdint" = stddef.h; then
22503 sed 's/^ *//' >> tmp-stdint.h <<EOF
22504
22505 #ifndef _UINT8_T
22506 #define _UINT8_T
22507 #ifndef __uint8_t_defined
22508 #define __uint8_t_defined
22509 typedef unsigned $acx_cv_type_int8_t uint8_t;
22510 #endif
22511 #endif
22512
22513 #ifndef _UINT16_T
22514 #define _UINT16_T
22515 #ifndef __uint16_t_defined
22516 #define __uint16_t_defined
22517 typedef unsigned $acx_cv_type_int16_t uint16_t;
22518 #endif
22519 #endif
22520
22521 #ifndef _UINT32_T
22522 #define _UINT32_T
22523 #ifndef __uint32_t_defined
22524 #define __uint32_t_defined
22525 typedef unsigned $acx_cv_type_int32_t uint32_t;
22526 #endif
22527 #endif
22528
22529 #ifndef _INT8_T
22530 #define _INT8_T
22531 #ifndef __int8_t_defined
22532 #define __int8_t_defined
22533 typedef $acx_cv_type_int8_t int8_t;
22534 #endif
22535 #endif
22536
22537 #ifndef _INT16_T
22538 #define _INT16_T
22539 #ifndef __int16_t_defined
22540 #define __int16_t_defined
22541 typedef $acx_cv_type_int16_t int16_t;
22542 #endif
22543 #endif
22544
22545 #ifndef _INT32_T
22546 #define _INT32_T
22547 #ifndef __int32_t_defined
22548 #define __int32_t_defined
22549 typedef $acx_cv_type_int32_t int32_t;
22550 #endif
22551 #endif
22552EOF
22553elif test "$ac_cv_type_u_int32_t" = yes; then
22554 sed 's/^ *//' >> tmp-stdint.h <<EOF
22555
22556 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22557 #ifndef _INT8_T
22558 #define _INT8_T
22559 #endif
22560 #ifndef _INT16_T
22561 #define _INT16_T
22562 #endif
22563 #ifndef _INT32_T
22564 #define _INT32_T
22565 #endif
22566
22567 #ifndef _UINT8_T
22568 #define _UINT8_T
22569 #ifndef __uint8_t_defined
22570 #define __uint8_t_defined
22571 typedef u_int8_t uint8_t;
22572 #endif
22573 #endif
22574
22575 #ifndef _UINT16_T
22576 #define _UINT16_T
22577 #ifndef __uint16_t_defined
22578 #define __uint16_t_defined
22579 typedef u_int16_t uint16_t;
22580 #endif
22581 #endif
22582
22583 #ifndef _UINT32_T
22584 #define _UINT32_T
22585 #ifndef __uint32_t_defined
22586 #define __uint32_t_defined
22587 typedef u_int32_t uint32_t;
22588 #endif
22589 #endif
22590EOF
22591else
22592 sed 's/^ *//' >> tmp-stdint.h <<EOF
22593
22594 /* Some systems have guard macros to prevent redefinitions, define them. */
22595 #ifndef _INT8_T
22596 #define _INT8_T
22597 #endif
22598 #ifndef _INT16_T
22599 #define _INT16_T
22600 #endif
22601 #ifndef _INT32_T
22602 #define _INT32_T
22603 #endif
22604 #ifndef _UINT8_T
22605 #define _UINT8_T
22606 #endif
22607 #ifndef _UINT16_T
22608 #define _UINT16_T
22609 #endif
22610 #ifndef _UINT32_T
22611 #define _UINT32_T
22612 #endif
22613EOF
22614fi
22615
22616# ------------- done basic int types, emit int64_t types ------------
22617if test "$ac_cv_type_uint64_t" = yes; then
22618 sed 's/^ *//' >> tmp-stdint.h <<EOF
22619
22620 /* system headers have good uint64_t and int64_t */
22621 #ifndef _INT64_T
22622 #define _INT64_T
22623 #endif
22624 #ifndef _UINT64_T
22625 #define _UINT64_T
22626 #endif
22627EOF
22628elif test "$ac_cv_type_u_int64_t" = yes; then
22629 sed 's/^ *//' >> tmp-stdint.h <<EOF
22630
22631 /* system headers have an u_int64_t (and int64_t) */
22632 #ifndef _INT64_T
22633 #define _INT64_T
22634 #endif
22635 #ifndef _UINT64_T
22636 #define _UINT64_T
22637 #ifndef __uint64_t_defined
22638 #define __uint64_t_defined
22639 typedef u_int64_t uint64_t;
22640 #endif
22641 #endif
22642EOF
22643elif test -n "$acx_cv_type_int64_t"; then
22644 sed 's/^ *//' >> tmp-stdint.h <<EOF
22645
22646 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22647 #ifndef _INT64_T
22648 #define _INT64_T
22649 typedef $acx_cv_type_int64_t int64_t;
22650 #endif
22651 #ifndef _UINT64_T
22652 #define _UINT64_T
22653 #ifndef __uint64_t_defined
22654 #define __uint64_t_defined
22655 typedef unsigned $acx_cv_type_int64_t uint64_t;
22656 #endif
22657 #endif
22658EOF
22659else
22660 sed 's/^ *//' >> tmp-stdint.h <<EOF
22661
22662 /* some common heuristics for int64_t, using compiler-specific tests */
22663 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22664 #ifndef _INT64_T
22665 #define _INT64_T
22666 #ifndef __int64_t_defined
22667 typedef long long int64_t;
22668 #endif
22669 #endif
22670 #ifndef _UINT64_T
22671 #define _UINT64_T
22672 typedef unsigned long long uint64_t;
22673 #endif
22674
22675 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22676 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22677 does not implement __extension__. But that compiler doesn't define
22678 __GNUC_MINOR__. */
22679 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22680 # define __extension__
22681 # endif
22682
22683 # ifndef _INT64_T
22684 # define _INT64_T
22685 __extension__ typedef long long int64_t;
22686 # endif
22687 # ifndef _UINT64_T
22688 # define _UINT64_T
22689 __extension__ typedef unsigned long long uint64_t;
22690 # endif
22691
22692 #elif !defined __STRICT_ANSI__
22693 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22694
22695 # ifndef _INT64_T
22696 # define _INT64_T
22697 typedef __int64 int64_t;
22698 # endif
22699 # ifndef _UINT64_T
22700 # define _UINT64_T
22701 typedef unsigned __int64 uint64_t;
22702 # endif
22703 # endif /* compiler */
22704
22705 #endif /* ANSI version */
22706EOF
22707fi
22708
22709# ------------- done int64_t types, emit intptr types ------------
22710if test "$ac_cv_type_uintptr_t" != yes; then
22711 sed 's/^ *//' >> tmp-stdint.h <<EOF
22712
22713 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22714 #ifndef __uintptr_t_defined
22715 typedef u$acx_cv_type_intptr_t uintptr_t;
22716 #endif
22717 #ifndef __intptr_t_defined
22718 typedef $acx_cv_type_intptr_t intptr_t;
22719 #endif
22720EOF
22721fi
22722
22723# ------------- done intptr types, emit int_least types ------------
22724if test "$ac_cv_type_int_least32_t" != yes; then
22725 sed 's/^ *//' >> tmp-stdint.h <<EOF
22726
22727 /* Define int_least types */
22728 typedef int8_t int_least8_t;
22729 typedef int16_t int_least16_t;
22730 typedef int32_t int_least32_t;
22731 #ifdef _INT64_T
22732 typedef int64_t int_least64_t;
22733 #endif
22734
22735 typedef uint8_t uint_least8_t;
22736 typedef uint16_t uint_least16_t;
22737 typedef uint32_t uint_least32_t;
22738 #ifdef _UINT64_T
22739 typedef uint64_t uint_least64_t;
22740 #endif
22741EOF
22742fi
22743
22744# ------------- done intptr types, emit int_fast types ------------
22745if test "$ac_cv_type_int_fast32_t" != yes; then
22746 sed 's/^ *//' >> tmp-stdint.h <<EOF
22747
22748 /* Define int_fast types. short is often slow */
22749 typedef int8_t int_fast8_t;
22750 typedef int int_fast16_t;
22751 typedef int32_t int_fast32_t;
22752 #ifdef _INT64_T
22753 typedef int64_t int_fast64_t;
22754 #endif
22755
22756 typedef uint8_t uint_fast8_t;
22757 typedef unsigned int uint_fast16_t;
22758 typedef uint32_t uint_fast32_t;
22759 #ifdef _UINT64_T
22760 typedef uint64_t uint_fast64_t;
22761 #endif
22762EOF
22763fi
22764
22765if test "$ac_cv_type_uintmax_t" != yes; then
22766 sed 's/^ *//' >> tmp-stdint.h <<EOF
22767
22768 /* Define intmax based on what we found */
22769 #ifdef _INT64_T
22770 typedef int64_t intmax_t;
22771 #else
22772 typedef long intmax_t;
22773 #endif
22774 #ifdef _UINT64_T
22775 typedef uint64_t uintmax_t;
22776 #else
22777 typedef unsigned long uintmax_t;
22778 #endif
22779EOF
22780fi
22781
22782sed 's/^ *//' >> tmp-stdint.h <<EOF
22783
22784 #endif /* GCC_GENERATED_STDINT_H */
22785EOF
22786
22787if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
22788 rm -f tmp-stdint.h
22789else
22790 mv -f tmp-stdint.h bfd_stdint.h
22791fi
22792
22793 ;;
20e95c23
DJ
22794 default )
22795case "$srcdir" in
22796 .) srcdirpre= ;;
22797 *) srcdirpre='$(srcdir)/' ;;
22798esac
22799POFILES=
22800GMOFILES=
22801for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22802 if test $lang != dummy; then
22803 POFILES="$POFILES $srcdirpre$lang.po"
22804 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22805 fi
22806done
22807sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
22808 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
22809 -e "s,@POFILES@,$POFILES," \
22810 -e "s,@GMOFILES@,$GMOFILES," \
22811 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
22812 esac
22813done
22814_ACEOF
22815
22816cat >>$CONFIG_STATUS <<\_ACEOF
22817
22818{ (exit 0); exit 0; }
22819_ACEOF
252b5132 22820chmod +x $CONFIG_STATUS
5464f5a1
NN
22821ac_clean_files=$ac_clean_files_save
22822
22823
22824# configure is writing to config.log, and then calls config.status.
22825# config.status does its own redirection, appending to config.log.
22826# Unfortunately, on DOS this fails, as config.log is still kept open
22827# by configure, so config.status won't be able to write to it; its
22828# output is simply discarded. So we exec the FD to /dev/null,
22829# effectively closing config.log, so it can be properly (re)opened and
22830# appended to by config.status. When coming back to configure, we
22831# need to make the FD available again.
22832if test "$no_create" != yes; then
22833 ac_cs_success=:
22834 ac_config_status_args=
22835 test "$silent" = yes &&
22836 ac_config_status_args="$ac_config_status_args --quiet"
22837 exec 5>/dev/null
22838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22839 exec 5>>config.log
22840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22841 # would make configure fail if this is the last instruction.
22842 $ac_cs_success || { (exit 1); exit 1; }
22843fi
252b5132 22844
55c80943 22845
This page took 1.608669 seconds and 4 git commands to generate.