Kill pthread_ops_hack
[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
718a6fd8 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 462ac_subst_files=''
7357c5b6 463ac_pwd=`pwd`
252b5132
RH
464
465# Initialize some variables set by options.
5464f5a1
NN
466ac_init_help=
467ac_init_version=false
252b5132
RH
468# The variables have the same names as the options, with
469# dashes changed to underlines.
5464f5a1 470cache_file=/dev/null
252b5132 471exec_prefix=NONE
252b5132 472no_create=
252b5132
RH
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
252b5132
RH
481verbose=
482x_includes=NONE
483x_libraries=NONE
5464f5a1
NN
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
252b5132
RH
503ac_prev=
504for ac_option
505do
252b5132
RH
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
5464f5a1 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
5464f5a1 517 case $ac_option in
252b5132
RH
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 522 bindir=$ac_optarg ;;
252b5132
RH
523
524 -build | --build | --buil | --bui | --bu)
5464f5a1 525 ac_prev=build_alias ;;
252b5132 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 527 build_alias=$ac_optarg ;;
252b5132
RH
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
252b5132
RH
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
5464f5a1 543 datadir=$ac_optarg ;;
252b5132
RH
544
545 -disable-* | --disable-*)
5464f5a1 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 547 # Reject names that are not valid shell variable names.
5464f5a1
NN
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
252b5132
RH
553
554 -enable-* | --enable-*)
5464f5a1 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 556 # Reject names that are not valid shell variable names.
5464f5a1
NN
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
563 *) ac_optarg=yes ;;
564 esac
5464f5a1 565 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
5464f5a1 574 exec_prefix=$ac_optarg ;;
252b5132
RH
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
5464f5a1
NN
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
252b5132
RH
586
587 -host | --host | --hos | --ho)
5464f5a1 588 ac_prev=host_alias ;;
252b5132 589 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 590 host_alias=$ac_optarg ;;
252b5132
RH
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 597 includedir=$ac_optarg ;;
252b5132
RH
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 602 infodir=$ac_optarg ;;
252b5132
RH
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 607 libdir=$ac_optarg ;;
252b5132
RH
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
5464f5a1 614 libexecdir=$ac_optarg ;;
252b5132
RH
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 623 localstatedir=$ac_optarg ;;
252b5132
RH
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 628 mandir=$ac_optarg ;;
252b5132
RH
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 635 | --no-cr | --no-c | -n)
252b5132
RH
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 649 oldincludedir=$ac_optarg ;;
252b5132
RH
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 654 prefix=$ac_optarg ;;
252b5132
RH
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 661 program_prefix=$ac_optarg ;;
252b5132
RH
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 668 program_suffix=$ac_optarg ;;
252b5132
RH
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 685 program_transform_name=$ac_optarg ;;
252b5132
RH
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
5464f5a1 695 sbindir=$ac_optarg ;;
252b5132
RH
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
5464f5a1 706 sharedstatedir=$ac_optarg ;;
252b5132
RH
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
5464f5a1 711 site=$ac_optarg ;;
6be7c12c 712
252b5132
RH
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 716 srcdir=$ac_optarg ;;
252b5132
RH
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 723 sysconfdir=$ac_optarg ;;
252b5132
RH
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 726 ac_prev=target_alias ;;
252b5132 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 728 target_alias=$ac_optarg ;;
252b5132
RH
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
5464f5a1
NN
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
252b5132
RH
735
736 -with-* | --with-*)
5464f5a1 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 738 # Reject names that are not valid shell variable names.
5464f5a1
NN
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
252b5132 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
745 *) ac_optarg=yes ;;
746 esac
5464f5a1 747 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
748
749 -without-* | --without-*)
5464f5a1 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 751 # Reject names that are not valid shell variable names.
5464f5a1
NN
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
252b5132
RH
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 767 x_includes=$ac_optarg ;;
252b5132
RH
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 774 x_libraries=$ac_optarg ;;
252b5132 775
5464f5a1
NN
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
252b5132
RH
779 ;;
780
5464f5a1
NN
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
252b5132 791 *)
5464f5a1
NN
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
5464f5a1
NN
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
252b5132 806fi
252b5132 807
5464f5a1
NN
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
6be7c12c 818
5464f5a1
NN
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 822do
5464f5a1
NN
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
252b5132
RH
828 esac
829done
830
5464f5a1
NN
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
252b5132 848
5464f5a1
NN
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
252b5132 853
252b5132
RH
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
5464f5a1
NN
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
252b5132
RH
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
252b5132 882 else
5464f5a1
NN
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
252b5132
RH
885 fi
886fi
5464f5a1
NN
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CC_set=${CC+set}
904ac_env_CC_value=$CC
905ac_cv_env_CC_set=${CC+set}
906ac_cv_env_CC_value=$CC
907ac_env_CFLAGS_set=${CFLAGS+set}
908ac_env_CFLAGS_value=$CFLAGS
909ac_cv_env_CFLAGS_set=${CFLAGS+set}
910ac_cv_env_CFLAGS_value=$CFLAGS
911ac_env_LDFLAGS_set=${LDFLAGS+set}
912ac_env_LDFLAGS_value=$LDFLAGS
913ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914ac_cv_env_LDFLAGS_value=$LDFLAGS
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919ac_env_CPP_set=${CPP+set}
920ac_env_CPP_value=$CPP
921ac_cv_env_CPP_set=${CPP+set}
922ac_cv_env_CPP_value=$CPP
b3baf5d0 923
5464f5a1
NN
924#
925# Report the --help message.
926#
927if test "$ac_init_help" = "long"; then
928 # Omit some internal or obsolete options to make the list less imposing.
929 # This message is too long to be a string in the A/UX 3.1 sh.
930 cat <<_ACEOF
931\`configure' configures this package to adapt to many kinds of systems.
252b5132 932
5464f5a1 933Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 934
5464f5a1
NN
935To assign environment variables (e.g., CC, CFLAGS...), specify them as
936VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 937
5464f5a1 938Defaults for the options are specified in brackets.
6be7c12c 939
5464f5a1
NN
940Configuration:
941 -h, --help display this help and exit
942 --help=short display options specific to this package
943 --help=recursive display the short help of all the included packages
944 -V, --version display version information and exit
945 -q, --quiet, --silent do not print \`checking...' messages
946 --cache-file=FILE cache test results in FILE [disabled]
947 -C, --config-cache alias for \`--cache-file=config.cache'
948 -n, --no-create do not create output files
949 --srcdir=DIR find the sources in DIR [configure dir or \`..']
950
951_ACEOF
952
953 cat <<_ACEOF
954Installation directories:
955 --prefix=PREFIX install architecture-independent files in PREFIX
956 [$ac_default_prefix]
957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
958 [PREFIX]
6be7c12c 959
5464f5a1
NN
960By default, \`make install' will install all the files in
961\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963for instance \`--prefix=\$HOME'.
6be7c12c 964
5464f5a1 965For better control, use the options below.
6be7c12c 966
5464f5a1
NN
967Fine tuning of the installation directories:
968 --bindir=DIR user executables [EPREFIX/bin]
969 --sbindir=DIR system admin executables [EPREFIX/sbin]
970 --libexecdir=DIR program executables [EPREFIX/libexec]
971 --datadir=DIR read-only architecture-independent data [PREFIX/share]
972 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
973 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
974 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
975 --libdir=DIR object code libraries [EPREFIX/lib]
976 --includedir=DIR C header files [PREFIX/include]
977 --oldincludedir=DIR C header files for non-gcc [/usr/include]
978 --infodir=DIR info documentation [PREFIX/info]
979 --mandir=DIR man documentation [PREFIX/man]
980_ACEOF
6be7c12c 981
5464f5a1 982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
984Program names:
985 --program-prefix=PREFIX prepend PREFIX to installed program names
986 --program-suffix=SUFFIX append SUFFIX to installed program names
987 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 988
5464f5a1
NN
989System types:
990 --build=BUILD configure for building on BUILD [guessed]
991 --host=HOST cross-compile to build programs to run on HOST [BUILD]
992 --target=TARGET configure for building compilers for TARGET [HOST]
993_ACEOF
252b5132 994fi
252b5132 995
5464f5a1 996if test -n "$ac_init_help"; then
6be7c12c 997
5464f5a1 998 cat <<\_ACEOF
252b5132 999
5464f5a1
NN
1000Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
d7040cdb
SE
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
d053aef8 1007 --disable-largefile omit support for large files
d7040cdb
SE
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
5464f5a1
NN
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1014 --enable-targets alternative target configurations
1015 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 1016 --enable-secureplt Default to creating read-only plt entries
504b7d20 1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
241a6c40
AM
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
5464f5a1
NN
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1024
1025Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1028 --with-pic try to use only PIC/non-PIC objects [default=use
1029 both]
1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
5464f5a1 1031 --with-mmap try using mmap for BFD input files if available
0d4a1476
AS
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
a1ac8190
JM
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
c428fa83 1037 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
1038
1039Some influential environment variables:
1040 CC C compiler command
1041 CFLAGS C compiler flags
1042 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1043 nonstandard directory <lib dir>
1044 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045 headers in a nonstandard directory <include dir>
1046 CPP C preprocessor
1047
1048Use these variables to override the choices made by `configure' or to help
1049it to find libraries and programs with nonstandard names/locations.
1050
1051_ACEOF
1052fi
1053
1054if test "$ac_init_help" = "recursive"; then
1055 # If there are subdirs, report their specific --help.
1056 ac_popdir=`pwd`
1057 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1058 test -d $ac_dir || continue
1059 ac_builddir=.
1060
1061if test "$ac_dir" != .; then
1062 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1063 # A "../" for each directory in $ac_dir_suffix.
1064 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1065else
1066 ac_dir_suffix= ac_top_builddir=
1067fi
1068
1069case $srcdir in
1070 .) # No --srcdir option. We are building in place.
1071 ac_srcdir=.
1072 if test -z "$ac_top_builddir"; then
1073 ac_top_srcdir=.
1074 else
1075 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1076 fi ;;
1077 [\\/]* | ?:[\\/]* ) # Absolute path.
1078 ac_srcdir=$srcdir$ac_dir_suffix;
1079 ac_top_srcdir=$srcdir ;;
1080 *) # Relative path.
1081 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1082 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
1083esac
1084
5464f5a1
NN
1085# Do not use `cd foo && pwd` to compute absolute paths, because
1086# the directories may not exist.
1087case `pwd` in
1088.) ac_abs_builddir="$ac_dir";;
1089*)
1090 case "$ac_dir" in
1091 .) ac_abs_builddir=`pwd`;;
1092 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1093 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1094 esac;;
1095esac
1096case $ac_abs_builddir in
1097.) ac_abs_top_builddir=${ac_top_builddir}.;;
1098*)
1099 case ${ac_top_builddir}. in
1100 .) ac_abs_top_builddir=$ac_abs_builddir;;
1101 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1102 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1103 esac;;
1104esac
1105case $ac_abs_builddir in
1106.) ac_abs_srcdir=$ac_srcdir;;
1107*)
1108 case $ac_srcdir in
1109 .) ac_abs_srcdir=$ac_abs_builddir;;
1110 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1111 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1112 esac;;
1113esac
1114case $ac_abs_builddir in
1115.) ac_abs_top_srcdir=$ac_top_srcdir;;
1116*)
1117 case $ac_top_srcdir in
1118 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1120 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 esac;;
1122esac
6be7c12c 1123
5464f5a1
NN
1124 cd $ac_dir
1125 # Check for guested configure; otherwise get Cygnus style configure.
1126 if test -f $ac_srcdir/configure.gnu; then
1127 echo
1128 $SHELL $ac_srcdir/configure.gnu --help=recursive
1129 elif test -f $ac_srcdir/configure; then
1130 echo
1131 $SHELL $ac_srcdir/configure --help=recursive
1132 elif test -f $ac_srcdir/configure.ac ||
1133 test -f $ac_srcdir/configure.in; then
1134 echo
1135 $ac_configure --help
1136 else
1137 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1138 fi
7357c5b6 1139 cd $ac_popdir
5464f5a1 1140 done
6be7c12c
AO
1141fi
1142
5464f5a1
NN
1143test -n "$ac_init_help" && exit 0
1144if $ac_init_version; then
1145 cat <<\_ACEOF
6be7c12c 1146
5464f5a1
NN
1147Copyright (C) 2003 Free Software Foundation, Inc.
1148This configure script is free software; the Free Software Foundation
1149gives unlimited permission to copy, distribute and modify it.
1150_ACEOF
1151 exit 0
1152fi
1153exec 5>config.log
1154cat >&5 <<_ACEOF
1155This file contains any messages produced by compilers while
1156running configure, to aid debugging if configure makes a mistake.
6be7c12c 1157
5464f5a1
NN
1158It was created by $as_me, which was
1159generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1160
5464f5a1 1161 $ $0 $@
6be7c12c 1162
5464f5a1
NN
1163_ACEOF
1164{
1165cat <<_ASUNAME
1166## --------- ##
1167## Platform. ##
1168## --------- ##
1169
1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174uname -v = `(uname -v) 2>/dev/null || echo unknown`
1175
1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1178
1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186
1187_ASUNAME
1188
1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190for as_dir in $PATH
1191do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195done
6be7c12c 1196
5464f5a1 1197} >&5
66e25bab 1198
5464f5a1 1199cat >&5 <<_ACEOF
b3baf5d0 1200
6be7c12c 1201
5464f5a1
NN
1202## ----------- ##
1203## Core tests. ##
1204## ----------- ##
252b5132 1205
5464f5a1 1206_ACEOF
c5d1701e 1207
6be7c12c 1208
5464f5a1
NN
1209# Keep a trace of the command line.
1210# Strip out --no-create and --no-recursion so they do not pile up.
1211# Strip out --silent because we don't want to record it for future runs.
1212# Also quote any args containing shell meta-characters.
1213# Make two passes to allow for proper duplicate-argument suppression.
1214ac_configure_args=
1215ac_configure_args0=
1216ac_configure_args1=
1217ac_sep=
1218ac_must_keep_next=false
1219for ac_pass in 1 2
1220do
1221 for ac_arg
1222 do
1223 case $ac_arg in
1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 continue ;;
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 esac
1231 case $ac_pass in
1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1233 2)
1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1235 if test $ac_must_keep_next = true; then
1236 ac_must_keep_next=false # Got value, back to normal.
1237 else
1238 case $ac_arg in
1239 *=* | --config-cache | -C | -disable-* | --disable-* \
1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1242 | -with-* | --with-* | -without-* | --without-* | --x)
1243 case "$ac_configure_args0 " in
1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1245 esac
1246 ;;
1247 -* ) ac_must_keep_next=true ;;
1248 esac
1249 fi
1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1251 # Get rid of the leading space.
1252 ac_sep=" "
1253 ;;
1254 esac
1255 done
1256done
1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1259
1260# When interrupted or exit'd, cleanup temporary files, and complete
1261# config.log. We remove comments because anyway the quotes in there
1262# would cause problems or look ugly.
1263# WARNING: Be sure not to use single quotes in there, as some shells,
1264# such as our DU 5.0 friend, will then `close' the trap.
1265trap 'exit_status=$?
1266 # Save into config.log some information that might help in debugging.
1267 {
1268 echo
1269
1270 cat <<\_ASBOX
1271## ---------------- ##
1272## Cache variables. ##
1273## ---------------- ##
1274_ASBOX
1275 echo
1276 # The following way of writing the cache mishandles newlines in values,
1277{
1278 (set) 2>&1 |
1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1280 *ac_space=\ *)
1281 sed -n \
1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 ;;
1285 *)
1286 sed -n \
1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1288 ;;
1289 esac;
1290}
1291 echo
1292
1293 cat <<\_ASBOX
1294## ----------------- ##
1295## Output variables. ##
1296## ----------------- ##
1297_ASBOX
1298 echo
1299 for ac_var in $ac_subst_vars
1300 do
1301 eval ac_val=$`echo $ac_var`
1302 echo "$ac_var='"'"'$ac_val'"'"'"
1303 done | sort
1304 echo
1305
1306 if test -n "$ac_subst_files"; then
1307 cat <<\_ASBOX
1308## ------------- ##
1309## Output files. ##
1310## ------------- ##
1311_ASBOX
1312 echo
1313 for ac_var in $ac_subst_files
1314 do
1315 eval ac_val=$`echo $ac_var`
1316 echo "$ac_var='"'"'$ac_val'"'"'"
1317 done | sort
1318 echo
1319 fi
1320
1321 if test -s confdefs.h; then
1322 cat <<\_ASBOX
1323## ----------- ##
1324## confdefs.h. ##
1325## ----------- ##
1326_ASBOX
1327 echo
1328 sed "/^$/d" confdefs.h | sort
1329 echo
1330 fi
1331 test "$ac_signal" != 0 &&
1332 echo "$as_me: caught signal $ac_signal"
1333 echo "$as_me: exit $exit_status"
1334 } >&5
1335 rm -f core *.core &&
1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1337 exit $exit_status
1338 ' 0
1339for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341done
1342ac_signal=0
1343
1344# confdefs.h avoids OS command line length limits that DEFS can exceed.
1345rm -rf conftest* confdefs.h
1346# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347echo >confdefs.h
1348
1349# Predefined preprocessor variables.
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_NAME "$PACKAGE_NAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_VERSION "$PACKAGE_VERSION"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_STRING "$PACKAGE_STRING"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373_ACEOF
1374
1375
1376# Let the site file select an alternate cache file if it wants to.
1377# Prefer explicitly selected file to automatically selected ones.
1378if test -z "$CONFIG_SITE"; then
1379 if test "x$prefix" != xNONE; then
1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1381 else
1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1383 fi
1384fi
1385for ac_site_file in $CONFIG_SITE; do
1386 if test -r "$ac_site_file"; then
1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1388echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392done
1393
1394if test -r "$cache_file"; then
1395 # Some versions of bash will fail to source /dev/null (special
1396 # files actually), so we avoid doing that.
1397 if test -f "$cache_file"; then
1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1399echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409fi
1410
1411# Check that the precious variables saved in the cache have kept the same
1412# value.
1413ac_cache_corrupted=false
1414for ac_var in `(set) 2>&1 |
1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1417 eval ac_new_set=\$ac_env_${ac_var}_set
1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1419 eval ac_new_val="\$ac_env_${ac_var}_value"
1420 case $ac_old_set,$ac_new_set in
1421 set,)
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1425 ,set)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,);;
1430 *)
1431 if test "x$ac_old_val" != "x$ac_new_val"; then
6194aaab
L
1432 # differences in whitespace do not lead to failure.
1433 ac_old_val_w=`echo x $ac_old_val`
1434 ac_new_val_w=`echo x $ac_new_val`
1435 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5464f5a1 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
6194aaab
L
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1442 eval $ac_var=\$ac_old_val
1443 fi
1444 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1445echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447echo "$as_me: current value: \`$ac_new_val'" >&2;}
5464f5a1
NN
1448 fi;;
1449 esac
1450 # Pass precious variables to config.status.
1451 if test "$ac_new_set" = set; then
1452 case $ac_new_val in
1453 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1454 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 *) ac_arg=$ac_var=$ac_new_val ;;
1456 esac
1457 case " $ac_configure_args " in
1458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1459 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 esac
1461 fi
1462done
1463if $ac_cache_corrupted; then
7357c5b6
AM
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1468 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1469echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471fi
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
7357c5b6
AM
1495
1496
1497
5464f5a1
NN
1498
1499
1500
1501
1502ac_aux_dir=
1503for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504 if test -f $ac_dir/install-sh; then
1505 ac_aux_dir=$ac_dir
1506 ac_install_sh="$ac_aux_dir/install-sh -c"
1507 break
1508 elif test -f $ac_dir/install.sh; then
1509 ac_aux_dir=$ac_dir
1510 ac_install_sh="$ac_aux_dir/install.sh -c"
1511 break
1512 elif test -f $ac_dir/shtool; then
1513 ac_aux_dir=$ac_dir
1514 ac_install_sh="$ac_aux_dir/shtool install -c"
1515 break
1516 fi
1517done
1518if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522fi
1523ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1526
1527# Make sure we can run config.sub.
1528$ac_config_sub sun4 >/dev/null 2>&1 ||
1529 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533echo "$as_me:$LINENO: checking build system type" >&5
1534echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538 ac_cv_build_alias=$build_alias
1539test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550fi
1551echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552echo "${ECHO_T}$ac_cv_build" >&6
1553build=$ac_cv_build
1554build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559echo "$as_me:$LINENO: checking host system type" >&5
1560echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 ac_cv_host_alias=$host_alias
1565test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572fi
1573echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574echo "${ECHO_T}$ac_cv_host" >&6
1575host=$ac_cv_host
1576host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking target system type" >&5
1582echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586 ac_cv_target_alias=$target_alias
1587test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594fi
1595echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596echo "${ECHO_T}$ac_cv_target" >&6
1597target=$ac_cv_target
1598target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601
1602
1603# The aliases save the names the user supplied, while $host etc.
1604# will get canonicalized.
1605test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609ac_ext=c
1610ac_cpp='$CPP $CPPFLAGS'
1611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614if test -n "$ac_tool_prefix"; then
1615 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1616set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617echo "$as_me:$LINENO: checking for $ac_word" >&5
1618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624else
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 for ac_exec_ext in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 break 2
1635 fi
1636done
1637done
1638
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$ac_cv_prog_CC"; then
1652 ac_ct_CC=$CC
1653 # Extract the first word of "gcc", so it can be a program name with args.
1654set dummy gcc; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_ac_ct_CC="gcc"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682echo "${ECHO_T}$ac_ct_CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 CC=$ac_ct_CC
1689else
1690 CC="$ac_cv_prog_CC"
1691fi
1692
1693if test -z "$CC"; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1696set dummy ${ac_tool_prefix}cc; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="${ac_tool_prefix}cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721CC=$ac_cv_prog_CC
1722if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724echo "${ECHO_T}$CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730fi
1731if test -z "$ac_cv_prog_CC"; then
1732 ac_ct_CC=$CC
1733 # Extract the first word of "cc", so it can be a program name with args.
1734set dummy cc; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="cc"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
1755done
1756
1757fi
1758fi
1759ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762echo "${ECHO_T}$ac_ct_CC" >&6
1763else
1764 echo "$as_me:$LINENO: result: no" >&5
1765echo "${ECHO_T}no" >&6
1766fi
1767
1768 CC=$ac_ct_CC
1769else
1770 CC="$ac_cv_prog_CC"
1771fi
1772
1773fi
1774if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776set dummy cc; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784else
1785 ac_prog_rejected=no
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789 IFS=$as_save_IFS
1790 test -z "$as_dir" && as_dir=.
1791 for ac_exec_ext in '' $ac_executable_extensions; do
1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1794 ac_prog_rejected=yes
1795 continue
1796 fi
1797 ac_cv_prog_CC="cc"
1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1799 break 2
1800 fi
1801done
1802done
1803
1804if test $ac_prog_rejected = yes; then
1805 # We found a bogon in the path, so make sure we never use it.
1806 set dummy $ac_cv_prog_CC
1807 shift
1808 if test $# != 0; then
1809 # We chose a different compiler from the bogus one.
1810 # However, it has the same basename, so the bogon will be chosen
1811 # first if we set CC to just the basename; use the full file name.
1812 shift
1813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 fi
1815fi
1816fi
1817fi
1818CC=$ac_cv_prog_CC
1819if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821echo "${ECHO_T}$CC" >&6
1822else
1823 echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827fi
1828if test -z "$CC"; then
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in cl
1831 do
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834echo "$as_me:$LINENO: checking for $ac_word" >&5
1835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841else
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853done
1854done
1855
1856fi
1857fi
1858CC=$ac_cv_prog_CC
1859if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861echo "${ECHO_T}$CC" >&6
1862else
1863 echo "$as_me:$LINENO: result: no" >&5
1864echo "${ECHO_T}no" >&6
1865fi
1866
1867 test -n "$CC" && break
1868 done
1869fi
1870if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875set dummy $ac_prog; ac_word=$2
1876echo "$as_me:$LINENO: checking for $ac_word" >&5
1877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883else
1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885for as_dir in $PATH
1886do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC="$ac_prog"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895done
1896done
1897
1898fi
1899fi
1900ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903echo "${ECHO_T}$ac_ct_CC" >&6
1904else
1905 echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909 test -n "$ac_ct_CC" && break
1910done
1911
1912 CC=$ac_ct_CC
1913fi
1914
1915fi
1916
1917
7357c5b6
AM
1918test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464f5a1
NN
1921See \`config.log' for more details." >&5
1922echo "$as_me: error: no acceptable C compiler found in \$PATH
1923See \`config.log' for more details." >&2;}
7357c5b6 1924 { (exit 1); exit 1; }; }; }
5464f5a1
NN
1925
1926# Provide some information about the compiler.
1927echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929ac_compiler=`set X $ac_compile; echo $2`
1930{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1931 (eval $ac_compiler --version </dev/null >&5) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }
1935{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1936 (eval $ac_compiler -v </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1941 (eval $ac_compiler -V </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945
1946cat >conftest.$ac_ext <<_ACEOF
1947/* confdefs.h. */
1948_ACEOF
1949cat confdefs.h >>conftest.$ac_ext
1950cat >>conftest.$ac_ext <<_ACEOF
1951/* end confdefs.h. */
1952
1953int
1954main ()
1955{
1956
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961ac_clean_files_save=$ac_clean_files
1962ac_clean_files="$ac_clean_files a.out a.exe b.out"
1963# Try to create an executable without -o first, disregard a.out.
1964# It will help us diagnose broken compilers, and finding out an intuition
1965# of exeext.
1966echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1970 (eval $ac_link_default) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; then
1974 # Find the output, starting from the most likely. This scheme is
1975# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1976# resort.
1977
1978# Be careful to initialize this variable, since it used to be cached.
1979# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1980ac_cv_exeext=
1981# b.out is created by i960 compilers.
1982for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983do
1984 test -f "$ac_file" || continue
1985 case $ac_file in
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1987 ;;
1988 conftest.$ac_ext )
1989 # This is the source file.
1990 ;;
1991 [ab].out )
1992 # We found the default executable, but exeext='' is most
1993 # certainly right.
1994 break;;
1995 *.* )
1996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1997 # FIXME: I believe we export ac_cv_exeext for Libtool,
1998 # but it would be cool to find out if it's true. Does anybody
1999 # maintain Libtool? --akim.
2000 export ac_cv_exeext
2001 break;;
2002 * )
2003 break;;
2004 esac
2005done
2006else
2007 echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
7357c5b6
AM
2010{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013See \`config.log' for more details." >&5
2014echo "$as_me: error: C compiler cannot create executables
2015See \`config.log' for more details." >&2;}
7357c5b6 2016 { (exit 77); exit 77; }; }; }
5464f5a1
NN
2017fi
2018
2019ac_exeext=$ac_cv_exeext
2020echo "$as_me:$LINENO: result: $ac_file" >&5
2021echo "${ECHO_T}$ac_file" >&6
2022
2023# Check the compiler produces executables we can run. If not, either
2024# the compiler is broken, or we cross compile.
2025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2028# If not cross compiling, check that we can run a simple program.
2029if test "$cross_compiling" != yes; then
2030 if { ac_try='./$ac_file'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 cross_compiling=no
2037 else
2038 if test "$cross_compiling" = maybe; then
2039 cross_compiling=yes
2040 else
7357c5b6
AM
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5464f5a1
NN
2044If you meant to cross compile, use \`--host'.
2045See \`config.log' for more details." >&5
2046echo "$as_me: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&2;}
7357c5b6 2049 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2050 fi
2051 fi
2052fi
2053echo "$as_me:$LINENO: result: yes" >&5
2054echo "${ECHO_T}yes" >&6
2055
2056rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057ac_clean_files=$ac_clean_files_save
2058# Check the compiler produces executables we can run. If not, either
2059# the compiler is broken, or we cross compile.
2060echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063echo "${ECHO_T}$cross_compiling" >&6
2064
2065echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2068 (eval $ac_link) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2073# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2074# work properly (i.e., refer to `conftest.exe'), while it won't with
2075# `rm'.
2076for ac_file in conftest.exe conftest conftest.*; do
2077 test -f "$ac_file" || continue
2078 case $ac_file in
2079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2081 export ac_cv_exeext
2082 break;;
2083 * ) break;;
2084 esac
2085done
2086else
7357c5b6
AM
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5464f5a1
NN
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092See \`config.log' for more details." >&2;}
7357c5b6 2093 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2094fi
2095
2096rm -f conftest$ac_cv_exeext
2097echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100rm -f conftest.$ac_ext
2101EXEEXT=$ac_cv_exeext
2102ac_exeext=$EXEEXT
2103echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108 cat >conftest.$ac_ext <<_ACEOF
2109/* confdefs.h. */
2110_ACEOF
2111cat confdefs.h >>conftest.$ac_ext
2112cat >>conftest.$ac_ext <<_ACEOF
2113/* end confdefs.h. */
2114
2115int
2116main ()
2117{
2118
2119 ;
2120 return 0;
2121}
2122_ACEOF
2123rm -f conftest.o conftest.obj
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; then
2129 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2130 case $ac_file in
2131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2133 break;;
2134 esac
2135done
2136else
2137 echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
7357c5b6
AM
2140{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464f5a1
NN
2142{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143See \`config.log' for more details." >&5
2144echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145See \`config.log' for more details." >&2;}
7357c5b6 2146 { (exit 1); exit 1; }; }; }
5464f5a1
NN
2147fi
2148
2149rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150fi
2151echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152echo "${ECHO_T}$ac_cv_objext" >&6
2153OBJEXT=$ac_cv_objext
2154ac_objext=$OBJEXT
2155echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160 cat >conftest.$ac_ext <<_ACEOF
2161/* confdefs.h. */
2162_ACEOF
2163cat confdefs.h >>conftest.$ac_ext
2164cat >>conftest.$ac_ext <<_ACEOF
2165/* end confdefs.h. */
2166
2167int
2168main ()
2169{
2170#ifndef __GNUC__
2171 choke me
2172#endif
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178rm -f conftest.$ac_objext
2179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>conftest.er1
2181 ac_status=$?
2182 grep -v '^ *+' conftest.er1 >conftest.err
2183 rm -f conftest.er1
2184 cat conftest.err >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); } &&
7357c5b6
AM
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
5464f5a1
NN
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; } &&
2194 { ac_try='test -s conftest.$ac_objext'
2195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 (eval $ac_try) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; }; then
2200 ac_compiler_gnu=yes
2201else
2202 echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205ac_compiler_gnu=no
2206fi
2207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210fi
2211echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213GCC=`test $ac_compiler_gnu = yes && echo yes`
2214ac_test_CFLAGS=${CFLAGS+set}
2215ac_save_CFLAGS=$CFLAGS
2216CFLAGS="-g"
2217echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228
2229int
2230main ()
2231{
2232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237rm -f conftest.$ac_objext
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
7357c5b6
AM
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
5464f5a1
NN
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_cv_prog_cc_g=yes
2260else
2261 echo "$as_me: failed program was:" >&5
2262sed 's/^/| /' conftest.$ac_ext >&5
2263
2264ac_cv_prog_cc_g=no
2265fi
2266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267fi
2268echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2274 CFLAGS="-g -O2"
2275 else
2276 CFLAGS="-g"
2277 fi
2278else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284fi
2285echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289else
2290 ac_cv_prog_cc_stdc=no
2291ac_save_CC=$CC
2292cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298#include <stdarg.h>
2299#include <stdio.h>
2300#include <sys/types.h>
2301#include <sys/stat.h>
2302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2303struct buf { int x; };
2304FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305static char *e (p, i)
2306 char **p;
2307 int i;
2308{
2309 return p[i];
2310}
2311static char *f (char * (*g) (char **, int), char **p, ...)
2312{
2313 char *s;
2314 va_list v;
2315 va_start (v,p);
2316 s = g (p, va_arg (v,int));
2317 va_end (v);
2318 return s;
2319}
2320
2321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2322 function prototypes and stuff, but not '\xHH' hex character constants.
2323 These don't provoke an error unfortunately, instead are silently treated
2324 as 'x'. The following induces an error, until -std1 is added to get
2325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2326 array size at least. It's necessary to write '\x00'==0 to get something
2327 that's true only with -std1. */
2328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330int test (int i, double x);
2331struct s1 {int (*f) (int a);};
2332struct s2 {int (*f) (double a);};
2333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334int argc;
2335char **argv;
2336int
2337main ()
2338{
2339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344# Don't try gcc -ansi; that turns off useful extensions and
2345# breaks some systems' header files.
2346# AIX -qlanglvl=ansi
2347# Ultrix and OSF/1 -std1
2348# HP-UX 10.20 and later -Ae
2349# HP-UX older versions -Aa -D_HPUX_SOURCE
2350# SVR4 -Xc -D__EXTENSIONS__
2351for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
7357c5b6
AM
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
5464f5a1
NN
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_stdc=$ac_arg
2377break
2378else
2379 echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382fi
2383rm -f conftest.err conftest.$ac_objext
2384done
2385rm -f conftest.$ac_ext conftest.$ac_objext
2386CC=$ac_save_CC
2387
2388fi
2389
2390case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393echo "${ECHO_T}none needed" >&6 ;;
2394 *)
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398esac
2399
2400# Some people use a C++ compiler to compile C. Since we use `exit',
2401# in C++ we need to declare it. In case someone uses the same compiler
2402# for both compiling C and C++ we need to have the C++ compiler decide
2403# the declaration of exit, since it's the most demanding environment.
2404cat >conftest.$ac_ext <<_ACEOF
2405#ifndef __cplusplus
2406 choke me
2407#endif
2408_ACEOF
2409rm -f conftest.$ac_objext
2410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
7357c5b6
AM
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
5464f5a1
NN
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 (eval $ac_try) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; } &&
2425 { ac_try='test -s conftest.$ac_objext'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 for ac_declaration in \
2432 '' \
2433 'extern "C" void std::exit (int) throw (); using std::exit;' \
2434 'extern "C" void std::exit (int); using std::exit;' \
2435 'extern "C" void exit (int) throw ();' \
2436 'extern "C" void exit (int);' \
2437 'void exit (int);'
2438do
2439 cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h. */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h. */
2445$ac_declaration
2446#include <stdlib.h>
2447int
2448main ()
2449{
2450exit (42);
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455rm -f conftest.$ac_objext
2456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
7357c5b6
AM
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
5464f5a1
NN
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 :
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
2491$ac_declaration
2492int
2493main ()
2494{
2495exit (42);
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2503 ac_status=$?
2504 grep -v '^ *+' conftest.er1 >conftest.err
2505 rm -f conftest.er1
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
7357c5b6
AM
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
5464f5a1
NN
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 (eval $ac_try) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 break
2523else
2524 echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527fi
2528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529done
2530rm -f conftest*
2531if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2535fi
2536
2537else
2538 echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541fi
2542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543ac_ext=c
2544ac_cpp='$CPP $CPPFLAGS'
2545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549
f5385ebf
AM
2550echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
f5385ebf
AM
2555 ac_func_search_save_LIBS=$LIBS
2556ac_cv_search_strerror=no
5464f5a1
NN
2557cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564/* Override any gcc2 internal prototype to avoid an error. */
2565#ifdef __cplusplus
2566extern "C"
2567#endif
2568/* We use char because int might match the return type of a gcc2
2569 builtin and then its argument prototype would still apply. */
2570char strerror ();
2571int
2572main ()
2573{
2574strerror ();
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext conftest$ac_exeext
2580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2581 (eval $ac_link) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
7357c5b6
AM
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
5464f5a1
NN
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest$ac_exeext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
f5385ebf 2601 ac_cv_search_strerror="none required"
5464f5a1
NN
2602else
2603 echo "$as_me: failed program was:" >&5
2604sed 's/^/| /' conftest.$ac_ext >&5
2605
5464f5a1
NN
2606fi
2607rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2609if test "$ac_cv_search_strerror" = no; then
2610 for ac_lib in cposix; do
2611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2612 cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
2618
2619/* Override any gcc2 internal prototype to avoid an error. */
2620#ifdef __cplusplus
2621extern "C"
2622#endif
2623/* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2625char strerror ();
2626int
2627main ()
2628{
2629strerror ();
2630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext conftest$ac_exeext
2635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2636 (eval $ac_link) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
7357c5b6
AM
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
f5385ebf
AM
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest$ac_exeext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_search_strerror="-l$ac_lib"
2657break
2658else
2659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
5464f5a1 2662fi
f5385ebf
AM
2663rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
5464f5a1 2666fi
f5385ebf
AM
2667LIBS=$ac_func_search_save_LIBS
2668fi
2669echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2673
f5385ebf 2674fi
5464f5a1
NN
2675
2676
f5385ebf 2677am__api_version="1.9"
5464f5a1
NN
2678# Find a good install program. We prefer a C program (faster),
2679# so one script is as good as another. But avoid the broken or
2680# incompatible versions:
2681# SysV /etc/install, /usr/sbin/install
2682# SunOS /usr/etc/install
2683# IRIX /sbin/install
2684# AIX /bin/install
2685# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2689# OS/2's system install, which has a completely different semantic
252b5132 2690# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2691# Reject install programs that cannot install multiple files.
5464f5a1
NN
2692echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2694if test -z "$INSTALL"; then
5464f5a1
NN
2695if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2697else
5464f5a1
NN
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704case $as_dir/ in
2705 ./ | .// | /cC/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2708 /usr/ucb/* ) ;;
2709 *)
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2716 if test $ac_prog = install &&
5464f5a1 2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2718 # AIX install. It has an incompatible calling convention.
2719 :
5464f5a1
NN
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2723 :
252b5132 2724 else
58c85be7
RW
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
252b5132
RH
2737 fi
2738 fi
2739 done
5464f5a1
NN
2740 done
2741 ;;
2742esac
2743done
2744
58c85be7 2745rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
2746
2747fi
2748 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2749 INSTALL=$ac_cv_path_install
252b5132 2750 else
58c85be7
RW
2751 # As a last resort, use the slow shell script. Don't cache a
2752 # value for INSTALL within a source directory, because that will
252b5132 2753 # break other packages using the cache if that directory is
58c85be7 2754 # removed, or if the value is a relative name.
5464f5a1 2755 INSTALL=$ac_install_sh
252b5132
RH
2756 fi
2757fi
5464f5a1
NN
2758echo "$as_me:$LINENO: result: $INSTALL" >&5
2759echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2760
2761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762# It thinks the first close brace ends the variable substitution.
2763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
5464f5a1 2765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2766
2767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
5464f5a1
NN
2769echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2771# Just in case
2772sleep 1
f5385ebf 2773echo timestamp > conftest.file
252b5132
RH
2774# Do `set' in a subshell so we don't clobber the current shell's
2775# arguments. Must try -L first in case configure is actually a
2776# symlink; some systems play weird games with the mod time of symlinks
2777# (eg FreeBSD returns the mod time of the symlink's containing
2778# directory).
2779if (
f5385ebf 2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2781 if test "$*" = "X"; then
2782 # -L didn't work.
f5385ebf 2783 set X `ls -t $srcdir/configure conftest.file`
252b5132 2784 fi
f5385ebf
AM
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2788
2789 # If neither matched, then we have a broken ls. This can happen
2790 # if, for instance, CONFIG_SHELL is bash and it inherits a
2791 # broken ls alias from the environment. This has actually
2792 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794alias in your environment" >&5
2795echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
252b5132
RH
2798 fi
2799
f5385ebf 2800 test "$2" = conftest.file
252b5132
RH
2801 )
2802then
2803 # Ok.
2804 :
2805else
5464f5a1
NN
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807Check your system clock" >&5
2808echo "$as_me: error: newly created file is older than distributed files!
2809Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
252b5132 2811fi
5464f5a1
NN
2812echo "$as_me:$LINENO: result: yes" >&5
2813echo "${ECHO_T}yes" >&6
252b5132 2814test "$program_prefix" != NONE &&
5464f5a1 2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2816# Use a double $ so make ignores it.
2817test "$program_suffix" != NONE &&
5464f5a1
NN
2818 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2819# Double any \ or $. echo might interpret backslashes.
2820# By default was `s,x,x', remove it if useless.
2821cat <<\_ACEOF >conftest.sed
2822s/[\\$]/&&/g;s/;s,x,x,$//
2823_ACEOF
2824program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825rm conftest.sed
2826
f5385ebf
AM
2827# expand $ac_aux_dir to an absolute path
2828am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831# Use eval to expand $SHELL
2832if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838fi
2839
2840if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2841 # We used to keeping the `.' as first argument, in order to
2842 # allow $(mkdir_p) to be used without argument. As in
2843 # $(mkdir_p) $(somedir)
2844 # where $(somedir) is conditionally defined. However this is wrong
2845 # for two reasons:
2846 # 1. if the package is installed by a user who cannot write `.'
2847 # make install will fail,
2848 # 2. the above comment should most certainly read
2849 # $(mkdir_p) $(DESTDIR)$(somedir)
2850 # so it does not work when $(somedir) is undefined and
2851 # $(DESTDIR) is not.
2852 # To support the latter case, we have to write
2853 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2854 # so the `.' trick is pointless.
2855 mkdir_p='mkdir -p --'
2856else
2857 # On NextStep and OpenStep, the `mkdir' command does not
2858 # recognize any option. It will interpret all options as
2859 # directories to create, and then abort because `.' already
2860 # exists.
2861 for d in ./-p ./--version;
2862 do
2863 test -d $d && rmdir $d
2864 done
2865 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2866 if test -f "$ac_aux_dir/mkinstalldirs"; then
2867 mkdir_p='$(mkinstalldirs)'
2868 else
2869 mkdir_p='$(install_sh) -d'
2870 fi
2871fi
2872
2873for ac_prog in gawk mawk nawk awk
2874do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876set dummy $ac_prog; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_AWK="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901AWK=$ac_cv_prog_AWK
2902if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904echo "${ECHO_T}$AWK" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
2910 test -n "$AWK" && break
2911done
2912
5464f5a1
NN
2913echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 cat >conftest.make <<\_ACEOF
252b5132 2920all:
5464f5a1
NN
2921 @echo 'ac_maketemp="$(MAKE)"'
2922_ACEOF
252b5132 2923# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2924eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2925if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2929fi
5464f5a1 2930rm -f conftest.make
252b5132
RH
2931fi
2932if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
252b5132
RH
2935 SET_MAKE=
2936else
5464f5a1
NN
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
252b5132
RH
2939 SET_MAKE="MAKE=${MAKE-make}"
2940fi
2941
f5385ebf
AM
2942rm -rf .tst 2>/dev/null
2943mkdir .tst 2>/dev/null
2944if test -d .tst; then
2945 am__leading_dot=.
2946else
2947 am__leading_dot=_
2948fi
2949rmdir .tst 2>/dev/null
2950
2951DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956am_make=${MAKE-make}
2957cat > confinc << 'END'
2958am__doit:
2959 @echo done
2960.PHONY: am__doit
2961END
2962# If we don't find an include directive, just comment out the code.
2963echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965am__include="#"
2966am__quote=
2967_am_result=none
2968# First try GNU make style include.
2969echo "include confinc" > confmf
2970# We grep out `Entering directory' and `Leaving directory'
2971# messages which can occur if `w' ends up in MAKEFLAGS.
2972# In particular we don't look at `^make:' because GNU make might
2973# be invoked under some other name (usually "gmake"), in which
2974# case it prints its new name instead of `make'.
2975if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976 am__include=include
2977 am__quote=
2978 _am_result=GNU
2979fi
2980# Now try BSD make style include.
2981if test "$am__include" = "#"; then
2982 echo '.include "confinc"' > confmf
2983 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984 am__include=.include
2985 am__quote="\""
2986 _am_result=BSD
2987 fi
2988fi
2989
2990
2991echo "$as_me:$LINENO: result: $_am_result" >&5
2992echo "${ECHO_T}$_am_result" >&6
2993rm -f confinc confmf
2994
2995# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
2998
2999fi;
3000if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003fi
3004
3005
3006if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012fi
6be7c12c 3013
252b5132 3014
252b5132 3015
f5385ebf
AM
3016# test to see if srcdir already configured
3017if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
5464f5a1
NN
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
252b5132 3022fi
5464f5a1 3023
f5385ebf
AM
3024# test whether we have cygpath
3025if test -z "$CYGPATH_W"; then
3026 if (cygpath --version) >/dev/null 2>/dev/null; then
3027 CYGPATH_W='cygpath -w'
3028 else
3029 CYGPATH_W=echo
3030 fi
3031fi
3032
3033
3034# Define the identity of the package.
3035 PACKAGE=bfd
96497422 3036 VERSION=2.19.50
f5385ebf
AM
3037
3038
5464f5a1 3039cat >>confdefs.h <<_ACEOF
252b5132 3040#define PACKAGE "$PACKAGE"
5464f5a1 3041_ACEOF
252b5132 3042
5464f5a1
NN
3043
3044cat >>confdefs.h <<_ACEOF
252b5132 3045#define VERSION "$VERSION"
5464f5a1 3046_ACEOF
252b5132 3047
f5385ebf
AM
3048# Some tools Automake needs.
3049
3050ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 3063
f5385ebf 3064install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 3065
f5385ebf
AM
3066# Installed binaries are usually stripped using `strip' when the user
3067# run `make install-strip'. However `strip' might not be the right
3068# tool to use in cross-compilation environments, therefore Automake
3069# will honor the `STRIP' environment variable to overrule this program.
3070if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073set dummy ${ac_tool_prefix}strip; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 3081else
f5385ebf
AM
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095
3096fi
3097fi
3098STRIP=$ac_cv_prog_STRIP
3099if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101echo "${ECHO_T}$STRIP" >&6
3102else
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
252b5132 3107fi
f5385ebf
AM
3108if test -z "$ac_cv_prog_STRIP"; then
3109 ac_ct_STRIP=$STRIP
3110 # Extract the first word of "strip", so it can be a program name with args.
3111set dummy strip; ac_word=$2
3112echo "$as_me:$LINENO: checking for $ac_word" >&5
3113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP="strip"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131done
3132done
252b5132 3133
f5385ebf
AM
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3135fi
3136fi
3137ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 3141else
f5385ebf
AM
3142 echo "$as_me:$LINENO: result: no" >&5
3143echo "${ECHO_T}no" >&6
252b5132
RH
3144fi
3145
f5385ebf 3146 STRIP=$ac_ct_STRIP
252b5132 3147else
f5385ebf
AM
3148 STRIP="$ac_cv_prog_STRIP"
3149fi
3150
252b5132 3151fi
f5385ebf
AM
3152INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3153
3154# We need awk for the "check" target. The system "awk" is bad on
3155# some platforms.
3156# Always define AMTAR for backward compatibility.
3157
3158AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
252b5132 3162
f5385ebf
AM
3163
3164
3165depcc="$CC" am_compiler_list=
3166
3167echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3171else
f5385ebf
AM
3172 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3173 # We make a subdir and do the tests there. Otherwise we can end up
3174 # making bogus files that we don't know about and never remove. For
3175 # instance it was reported that on HP-UX the gcc test will end up
3176 # making a dummy file named `D' -- because `-MD' means `put the output
3177 # in D'.
3178 mkdir conftest.dir
3179 # Copy depcomp to subdir because otherwise we won't find it if we're
3180 # using a relative directory.
3181 cp "$am_depcomp" conftest.dir
3182 cd conftest.dir
3183 # We will build objects and dependencies in a subdirectory because
3184 # it helps to detect inapplicable dependency modes. For instance
3185 # both Tru64's cc and ICC support -MD to output dependencies as a
3186 # side effect of compilation, but ICC will put the dependencies in
3187 # the current directory while Tru64 will put them in the object
3188 # directory.
3189 mkdir sub
3190
3191 am_cv_CC_dependencies_compiler_type=none
3192 if test "$am_compiler_list" = ""; then
3193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3194 fi
3195 for depmode in $am_compiler_list; do
3196 # Setup a source with many dependencies, because some compilers
3197 # like to wrap large dependency lists on column 80 (with \), and
3198 # we should not choose a depcomp mode which is confused by this.
3199 #
3200 # We need to recreate these files for each test, as the compiler may
3201 # overwrite some of them when testing with obscure command lines.
3202 # This happens at least with the AIX C compiler.
3203 : > sub/conftest.c
3204 for i in 1 2 3 4 5 6; do
3205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3206 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3207 # Solaris 8's {/usr,}/bin/sh.
3208 touch sub/conftst$i.h
3209 done
3210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3211
3212 case $depmode in
3213 nosideeffect)
3214 # after this tag, mechanisms are not by side-effect, so they'll
3215 # only be used when explicitly requested
3216 if test "x$enable_dependency_tracking" = xyes; then
3217 continue
3218 else
3219 break
3220 fi
3221 ;;
3222 none) break ;;
3223 esac
3224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3225 # mode. It turns out that the SunPro C++ compiler does not properly
3226 # handle `-M -o', and we need to detect this.
3227 if depmode=$depmode \
3228 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3230 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3231 >/dev/null 2>conftest.err &&
3232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3233 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3235 # icc doesn't choke on unknown options, it will just issue warnings
3236 # or remarks (even with -Werror). So we grep stderr for any message
3237 # that says an option was ignored or not supported.
3238 # When given -MP, icc 7.0 and 7.1 complain thusly:
3239 # icc: Command line warning: ignoring option '-M'; no argument required
3240 # The diagnosis changed in icc 8.0:
3241 # icc: Command line remark: option '-MP' not supported
3242 if (grep 'ignoring option' conftest.err ||
3243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3244 am_cv_CC_dependencies_compiler_type=$depmode
3245 break
3246 fi
3247 fi
3248 done
3249
3250 cd ..
3251 rm -rf conftest.dir
3252else
3253 am_cv_CC_dependencies_compiler_type=none
3254fi
3255
252b5132 3256fi
f5385ebf
AM
3257echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3260
f5385ebf
AM
3261
3262
3263if
3264 test "x$enable_dependency_tracking" != xno \
3265 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3266 am__fastdepCC_TRUE=
3267 am__fastdepCC_FALSE='#'
252b5132 3268else
f5385ebf
AM
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
252b5132
RH
3271fi
3272
6be7c12c 3273
e43d48cc 3274
f5385ebf 3275
5464f5a1
NN
3276if test -n "$ac_tool_prefix"; then
3277 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3278set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3283else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286else
5464f5a1
NN
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_AR="${ac_tool_prefix}ar"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3297 fi
3298done
3299done
3300
252b5132
RH
3301fi
3302fi
5464f5a1 3303AR=$ac_cv_prog_AR
252b5132 3304if test -n "$AR"; then
5464f5a1
NN
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306echo "${ECHO_T}$AR" >&6
252b5132 3307else
5464f5a1
NN
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
252b5132 3312fi
5464f5a1
NN
3313if test -z "$ac_cv_prog_AR"; then
3314 ac_ct_AR=$AR
3315 # Extract the first word of "ar", so it can be a program name with args.
3316set dummy ar; ac_word=$2
3317echo "$as_me:$LINENO: checking for $ac_word" >&5
3318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_AR="ar"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337done
252b5132 3338
5464f5a1
NN
3339fi
3340fi
3341ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344echo "${ECHO_T}$ac_ct_AR" >&6
3345else
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348fi
252b5132 3349
5464f5a1
NN
3350 AR=$ac_ct_AR
3351else
3352 AR="$ac_cv_prog_AR"
3353fi
6be7c12c 3354
5464f5a1
NN
3355if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3357set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3362else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365else
5464f5a1
NN
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378done
3379
252b5132
RH
3380fi
3381fi
5464f5a1 3382RANLIB=$ac_cv_prog_RANLIB
252b5132 3383if test -n "$RANLIB"; then
5464f5a1
NN
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385echo "${ECHO_T}$RANLIB" >&6
252b5132 3386else
5464f5a1
NN
3387 echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
252b5132
RH
3389fi
3390
5464f5a1 3391fi
252b5132 3392if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3393 ac_ct_RANLIB=$RANLIB
252b5132
RH
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395set dummy ranlib; ac_word=$2
5464f5a1
NN
3396echo "$as_me:$LINENO: checking for $ac_word" >&5
3397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3400else
5464f5a1
NN
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3403else
5464f5a1
NN
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_ac_ct_RANLIB="ranlib"
3412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415done
3416done
3417
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3419fi
3420fi
5464f5a1
NN
3421ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3425else
5464f5a1
NN
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
252b5132
RH
3428fi
3429
5464f5a1 3430 RANLIB=$ac_ct_RANLIB
252b5132 3431else
5464f5a1 3432 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3433fi
3434
252b5132
RH
3435
3436# Check whether --enable-shared or --disable-shared was given.
3437if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
d7040cdb
SE
3440 case $enableval in
3441 yes) enable_shared=yes ;;
3442 no) enable_shared=no ;;
3443 *)
3444 enable_shared=no
3445 # Look at the argument we got. We use all the common list separators.
3446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3447 for pkg in $enableval; do
3448 IFS="$lt_save_ifs"
3449 if test "X$pkg" = "X$p"; then
3450 enable_shared=yes
3451 fi
3452 done
3453 IFS="$lt_save_ifs"
3454 ;;
3455 esac
252b5132
RH
3456else
3457 enable_shared=no
5464f5a1 3458fi;
252b5132 3459
d7040cdb
SE
3460
3461
3462
3463
3464
3465
3466
3467
cfbc9945
SE
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3475set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476echo "$as_me:$LINENO: checking for $ac_word" >&5
3477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3480else
cfbc9945
SE
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
b2ef150d 3483else
cfbc9945
SE
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3494 fi
3495done
3496done
c5d1701e 3497
cfbc9945
SE
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503echo "${ECHO_T}$CC" >&6
252b5132 3504else
cfbc9945
SE
3505 echo "$as_me:$LINENO: result: no" >&5
3506echo "${ECHO_T}no" >&6
252b5132 3507fi
cfbc9945
SE
3508
3509fi
3510if test -z "$ac_cv_prog_CC"; then
3511 ac_ct_CC=$CC
3512 # Extract the first word of "gcc", so it can be a program name with args.
3513set dummy gcc; ac_word=$2
3514echo "$as_me:$LINENO: checking for $ac_word" >&5
3515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3518else
cfbc9945
SE
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3521else
cfbc9945
SE
3522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523for as_dir in $PATH
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="gcc"
3530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534done
3535
252b5132
RH
3536fi
3537fi
cfbc9945
SE
3538ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 3542else
5464f5a1
NN
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
252b5132 3545fi
cfbc9945
SE
3546
3547 CC=$ac_ct_CC
3548else
3549 CC="$ac_cv_prog_CC"
3550fi
3551
3552if test -z "$CC"; then
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3555set dummy ${ac_tool_prefix}cc; ac_word=$2
3556echo "$as_me:$LINENO: checking for $ac_word" >&5
3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3560else
cfbc9945
SE
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3563else
cfbc9945
SE
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_CC="${ac_tool_prefix}cc"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576done
3577
252b5132
RH
3578fi
3579fi
cfbc9945
SE
3580CC=$ac_cv_prog_CC
3581if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583echo "${ECHO_T}$CC" >&6
ac48eca1 3584else
cfbc9945
SE
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
ac48eca1 3587fi
ac48eca1 3588
cfbc9945
SE
3589fi
3590if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "cc", so it can be a program name with args.
3593set dummy cc; ac_word=$2
3594echo "$as_me:$LINENO: checking for $ac_word" >&5
3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464f5a1 3597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3598else
cfbc9945
SE
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3601else
cfbc9945
SE
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="cc"
3610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613done
3614done
3615
252b5132 3616fi
cfbc9945
SE
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621echo "${ECHO_T}$ac_ct_CC" >&6
3622else
3623 echo "$as_me:$LINENO: result: no" >&5
3624echo "${ECHO_T}no" >&6
252b5132
RH
3625fi
3626
cfbc9945
SE
3627 CC=$ac_ct_CC
3628else
3629 CC="$ac_cv_prog_CC"
3630fi
252b5132 3631
cfbc9945
SE
3632fi
3633if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635set dummy cc; ac_word=$2
3636echo "$as_me:$LINENO: checking for $ac_word" >&5
3637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3640else
cfbc9945
SE
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643else
3644 ac_prog_rejected=no
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653 ac_prog_rejected=yes
3654 continue
3655 fi
3656 ac_cv_prog_CC="cc"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660done
3661done
3662
3663if test $ac_prog_rejected = yes; then
3664 # We found a bogon in the path, so make sure we never use it.
3665 set dummy $ac_cv_prog_CC
3666 shift
3667 if test $# != 0; then
3668 # We chose a different compiler from the bogus one.
3669 # However, it has the same basename, so the bogon will be chosen
3670 # first if we set CC to just the basename; use the full file name.
3671 shift
3672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3673 fi
3674fi
3675fi
3676fi
3677CC=$ac_cv_prog_CC
3678if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680echo "${ECHO_T}$CC" >&6
3681else
3682 echo "$as_me:$LINENO: result: no" >&5
3683echo "${ECHO_T}no" >&6
252b5132
RH
3684fi
3685
cfbc9945
SE
3686fi
3687if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl
3690 do
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693echo "$as_me:$LINENO: checking for $ac_word" >&5
3694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695if test "${ac_cv_prog_CC+set}" = set; then
5464f5a1 3696 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3697else
cfbc9945
SE
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700else
3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702for as_dir in $PATH
3703do
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3711 fi
3712done
3713done
ac48eca1 3714
cfbc9945
SE
3715fi
3716fi
3717CC=$ac_cv_prog_CC
3718if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720echo "${ECHO_T}$CC" >&6
3721else
3722 echo "$as_me:$LINENO: result: no" >&5
3723echo "${ECHO_T}no" >&6
3724fi
ac48eca1 3725
cfbc9945
SE
3726 test -n "$CC" && break
3727 done
3728fi
3729if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3732do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734set dummy $ac_prog; ac_word=$2
3735echo "$as_me:$LINENO: checking for $ac_word" >&5
3736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742else
3743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_ac_ct_CC="$ac_prog"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
ac48eca1 3756
cfbc9945
SE
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762echo "${ECHO_T}$ac_ct_CC" >&6
3763else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766fi
ac48eca1 3767
cfbc9945
SE
3768 test -n "$ac_ct_CC" && break
3769done
ac48eca1 3770
cfbc9945
SE
3771 CC=$ac_ct_CC
3772fi
55c80943 3773
cfbc9945 3774fi
ac48eca1 3775
ac48eca1 3776
7357c5b6
AM
3777test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
cfbc9945
SE
3780See \`config.log' for more details." >&5
3781echo "$as_me: error: no acceptable C compiler found in \$PATH
3782See \`config.log' for more details." >&2;}
7357c5b6 3783 { (exit 1); exit 1; }; }; }
ac48eca1 3784
cfbc9945
SE
3785# Provide some information about the compiler.
3786echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788ac_compiler=`set X $ac_compile; echo $2`
3789{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3790 (eval $ac_compiler --version </dev/null >&5) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }
3794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3795 (eval $ac_compiler -v </dev/null >&5) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }
3799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3800 (eval $ac_compiler -V </dev/null >&5) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
ac48eca1 3804
cfbc9945
SE
3805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807if test "${ac_cv_c_compiler_gnu+set}" = set; then
5464f5a1 3808 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3809else
cfbc9945
SE
3810 cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
ac48eca1 3816
cfbc9945
SE
3817int
3818main ()
3819{
3820#ifndef __GNUC__
3821 choke me
3822#endif
5464f5a1 3823
cfbc9945
SE
3824 ;
3825 return 0;
3826}
3827_ACEOF
3828rm -f conftest.$ac_objext
3829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
7357c5b6
AM
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
cfbc9945
SE
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 (eval $ac_try) 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_compiler_gnu=yes
ac48eca1 3851else
cfbc9945
SE
3852 echo "$as_me: failed program was:" >&5
3853sed 's/^/| /' conftest.$ac_ext >&5
3854
3855ac_compiler_gnu=no
ac48eca1 3856fi
cfbc9945
SE
3857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 3859
5464f5a1 3860fi
cfbc9945
SE
3861echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863GCC=`test $ac_compiler_gnu = yes && echo yes`
3864ac_test_CFLAGS=${CFLAGS+set}
3865ac_save_CFLAGS=$CFLAGS
3866CFLAGS="-g"
3867echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869if test "${ac_cv_prog_cc_g+set}" = set; then
5464f5a1 3870 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3871else
cfbc9945
SE
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889 (eval $ac_compile) 2>conftest.er1
3890 ac_status=$?
3891 grep -v '^ *+' conftest.er1 >conftest.err
3892 rm -f conftest.er1
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
7357c5b6
AM
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
cfbc9945
SE
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; } &&
3903 { ac_try='test -s conftest.$ac_objext'
3904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905 (eval $ac_try) 2>&5
3906 ac_status=$?
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; }; then
3909 ac_cv_prog_cc_g=yes
6be7c12c 3910else
cfbc9945
SE
3911 echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 3913
cfbc9945 3914ac_cv_prog_cc_g=no
ac48eca1 3915fi
cfbc9945 3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 3917fi
cfbc9945
SE
3918echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3924 CFLAGS="-g -O2"
3925 else
3926 CFLAGS="-g"
3927 fi
ac48eca1 3928else
cfbc9945
SE
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3933 fi
ac48eca1 3934fi
cfbc9945
SE
3935echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937if test "${ac_cv_prog_cc_stdc+set}" = set; then
5464f5a1 3938 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3939else
cfbc9945
SE
3940 ac_cv_prog_cc_stdc=no
3941ac_save_CC=$CC
3942cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <stdarg.h>
3949#include <stdio.h>
3950#include <sys/types.h>
3951#include <sys/stat.h>
3952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3953struct buf { int x; };
3954FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955static char *e (p, i)
3956 char **p;
3957 int i;
3958{
3959 return p[i];
3960}
3961static char *f (char * (*g) (char **, int), char **p, ...)
3962{
3963 char *s;
3964 va_list v;
3965 va_start (v,p);
3966 s = g (p, va_arg (v,int));
3967 va_end (v);
3968 return s;
3969}
5464f5a1 3970
cfbc9945
SE
3971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3972 function prototypes and stuff, but not '\xHH' hex character constants.
3973 These don't provoke an error unfortunately, instead are silently treated
3974 as 'x'. The following induces an error, until -std1 is added to get
3975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3976 array size at least. It's necessary to write '\x00'==0 to get something
3977 that's true only with -std1. */
3978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979
3980int test (int i, double x);
3981struct s1 {int (*f) (int a);};
3982struct s2 {int (*f) (double a);};
3983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984int argc;
3985char **argv;
3986int
3987main ()
3988{
3989return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994# Don't try gcc -ansi; that turns off useful extensions and
3995# breaks some systems' header files.
3996# AIX -qlanglvl=ansi
3997# Ultrix and OSF/1 -std1
3998# HP-UX 10.20 and later -Ae
3999# HP-UX older versions -Aa -D_HPUX_SOURCE
4000# SVR4 -Xc -D__EXTENSIONS__
4001for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002do
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
7357c5b6
AM
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
cfbc9945
SE
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_prog_cc_stdc=$ac_arg
4027break
ac48eca1 4028else
cfbc9945
SE
4029 echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
ac48eca1 4031
5464f5a1 4032fi
cfbc9945 4033rm -f conftest.err conftest.$ac_objext
5464f5a1 4034done
cfbc9945
SE
4035rm -f conftest.$ac_ext conftest.$ac_objext
4036CC=$ac_save_CC
5464f5a1 4037
ac48eca1 4038fi
252b5132 4039
cfbc9945
SE
4040case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043echo "${ECHO_T}none needed" >&6 ;;
4044 *)
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048esac
6be7c12c 4049
cfbc9945
SE
4050# Some people use a C++ compiler to compile C. Since we use `exit',
4051# in C++ we need to declare it. In case someone uses the same compiler
4052# for both compiling C and C++ we need to have the C++ compiler decide
4053# the declaration of exit, since it's the most demanding environment.
4054cat >conftest.$ac_ext <<_ACEOF
4055#ifndef __cplusplus
4056 choke me
4057#endif
4058_ACEOF
4059rm -f conftest.$ac_objext
4060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
5464f5a1 4062 ac_status=$?
cfbc9945
SE
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
5464f5a1 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945 4067 (exit $ac_status); } &&
7357c5b6
AM
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
cfbc9945
SE
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
5464f5a1
NN
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
d70c5fc7
NC
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cfbc9945
SE
4080 (exit $ac_status); }; }; then
4081 for ac_declaration in \
4082 '' \
4083 'extern "C" void std::exit (int) throw (); using std::exit;' \
4084 'extern "C" void std::exit (int); using std::exit;' \
4085 'extern "C" void exit (int) throw ();' \
4086 'extern "C" void exit (int);' \
4087 'void exit (int);'
4088do
4089 cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h. */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h. */
4095$ac_declaration
4096#include <stdlib.h>
4097int
4098main ()
4099{
4100exit (42);
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext
4106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4107 (eval $ac_compile) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
7357c5b6
AM
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
cfbc9945
SE
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 (eval $ac_try) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 :
b2ef150d 4128else
cfbc9945
SE
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 4131
cfbc9945
SE
4132continue
4133fi
4134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
cfbc9945 4141$ac_declaration
5464f5a1
NN
4142int
4143main ()
4144{
cfbc9945 4145exit (42);
5464f5a1
NN
4146 ;
4147 return 0;
4148}
4149_ACEOF
cfbc9945
SE
4150rm -f conftest.$ac_objext
4151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
7357c5b6
AM
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
5464f5a1
NN
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; } &&
cfbc9945 4166 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
cfbc9945 4172 break
b2ef150d 4173else
5464f5a1
NN
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
b2ef150d 4177fi
cfbc9945
SE
4178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179done
4180rm -f conftest*
4181if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
6ec7057a 4185fi
cfbc9945 4186
92f01d61 4187else
cfbc9945
SE
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
92f01d61 4190
cfbc9945
SE
4191fi
4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
92f01d61
JM
4198
4199
cfbc9945
SE
4200cat >>confdefs.h <<\_ACEOF
4201#define _GNU_SOURCE 1
4202_ACEOF
a1ac8190 4203
c428fa83 4204
7357c5b6
AM
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212# On Suns, sometimes $CPP names a directory.
4213if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215fi
4216if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219else
4220 # Double quotes because CPP needs to be expanded
4221 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4222 do
4223 ac_preproc_ok=false
4224for ac_c_preproc_warn_flag in '' yes
4225do
4226 # Use a header file that comes with gcc, so configuring glibc
4227 # with a fresh cross-compiler works.
4228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 # <limits.h> exists even on freestanding compilers.
4230 # On the NeXT, cc -E runs the code through the compiler's parser,
4231 # not just through cpp. "Syntax error" is here to catch this case.
4232 cat >conftest.$ac_ext <<_ACEOF
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
4238#ifdef __STDC__
4239# include <limits.h>
4240#else
4241# include <assert.h>
4242#endif
4243 Syntax error
4244_ACEOF
4245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } >/dev/null; then
4253 if test -s conftest.err; then
4254 ac_cpp_err=$ac_c_preproc_warn_flag
4255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4256 else
4257 ac_cpp_err=
4258 fi
4259else
4260 ac_cpp_err=yes
4261fi
4262if test -z "$ac_cpp_err"; then
4263 :
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
cfbc9945 4267
7357c5b6
AM
4268 # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.$ac_ext
d7040cdb 4272
7357c5b6
AM
4273 # OK, works on sane cases. Now check whether non-existent headers
4274 # can be detected and how.
4275 cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
4281#include <ac_nonexistent.h>
4282_ACEOF
4283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } >/dev/null; then
4291 if test -s conftest.err; then
4292 ac_cpp_err=$ac_c_preproc_warn_flag
4293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4294 else
4295 ac_cpp_err=
4296 fi
4297else
4298 ac_cpp_err=yes
4299fi
4300if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302continue
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4306
7357c5b6
AM
4307 # Passes both tests.
4308ac_preproc_ok=:
4309break
4310fi
4311rm -f conftest.err conftest.$ac_ext
d7040cdb 4312
7357c5b6
AM
4313done
4314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315rm -f conftest.err conftest.$ac_ext
4316if $ac_preproc_ok; then
4317 break
4318fi
d7040cdb 4319
7357c5b6
AM
4320 done
4321 ac_cv_prog_CPP=$CPP
d7040cdb 4322
7357c5b6
AM
4323fi
4324 CPP=$ac_cv_prog_CPP
4325else
4326 ac_cv_prog_CPP=$CPP
4327fi
4328echo "$as_me:$LINENO: result: $CPP" >&5
4329echo "${ECHO_T}$CPP" >&6
4330ac_preproc_ok=false
4331for ac_c_preproc_warn_flag in '' yes
4332do
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h. */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h. */
4345#ifdef __STDC__
4346# include <limits.h>
4347#else
4348# include <assert.h>
4349#endif
4350 Syntax error
4351_ACEOF
4352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } >/dev/null; then
4360 if test -s conftest.err; then
4361 ac_cpp_err=$ac_c_preproc_warn_flag
4362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 else
4364 ac_cpp_err=
4365 fi
4366else
4367 ac_cpp_err=yes
4368fi
4369if test -z "$ac_cpp_err"; then
4370 :
4371else
4372 echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4374
7357c5b6
AM
4375 # Broken: fails on valid input.
4376continue
4377fi
4378rm -f conftest.err conftest.$ac_ext
d7040cdb 4379
7357c5b6
AM
4380 # OK, works on sane cases. Now check whether non-existent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388#include <ac_nonexistent.h>
4389_ACEOF
4390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4401 else
4402 ac_cpp_err=
4403 fi
4404else
4405 ac_cpp_err=yes
4406fi
4407if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409continue
4410else
4411 echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4413
7357c5b6
AM
4414 # Passes both tests.
4415ac_preproc_ok=:
4416break
4417fi
4418rm -f conftest.err conftest.$ac_ext
d7040cdb 4419
7357c5b6
AM
4420done
4421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422rm -f conftest.err conftest.$ac_ext
4423if $ac_preproc_ok; then
4424 :
4425else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429See \`config.log' for more details." >&5
4430echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4433fi
d7040cdb 4434
7357c5b6
AM
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4440
d7040cdb 4441
7357c5b6
AM
4442echo "$as_me:$LINENO: checking for egrep" >&5
4443echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448 then ac_cv_prog_egrep='grep -E'
4449 else ac_cv_prog_egrep='egrep'
4450 fi
4451fi
4452echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
d7040cdb
SE
4455
4456
7357c5b6
AM
4457echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdlib.h>
4469#include <stdarg.h>
4470#include <string.h>
4471#include <float.h>
d7040cdb 4472
7357c5b6
AM
4473int
4474main ()
4475{
d7040cdb 4476
7357c5b6
AM
4477 ;
4478 return 0;
4479}
4480_ACEOF
4481rm -f conftest.$ac_objext
4482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_header_stdc=yes
c428fa83 4504else
7357c5b6
AM
4505 echo "$as_me: failed program was:" >&5
4506sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4507
7357c5b6
AM
4508ac_cv_header_stdc=no
4509fi
4510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4511
7357c5b6
AM
4512if test $ac_cv_header_stdc = yes; then
4513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520#include <string.h>
d7040cdb 4521
7357c5b6
AM
4522_ACEOF
4523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4525 :
4526else
4527 ac_cv_header_stdc=no
4528fi
4529rm -f conftest*
d7040cdb 4530
7357c5b6 4531fi
d7040cdb 4532
7357c5b6
AM
4533if test $ac_cv_header_stdc = yes; then
4534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535 cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h. */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h. */
4541#include <stdlib.h>
d7040cdb 4542
7357c5b6
AM
4543_ACEOF
4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4546 :
4547else
4548 ac_cv_header_stdc=no
4549fi
4550rm -f conftest*
d7040cdb 4551
7357c5b6 4552fi
d7040cdb 4553
7357c5b6
AM
4554if test $ac_cv_header_stdc = yes; then
4555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556 if test "$cross_compiling" = yes; then
4557 :
4558else
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565#include <ctype.h>
4566#if ((' ' & 0x0FF) == 0x020)
4567# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569#else
4570# define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575#endif
d7040cdb 4576
7357c5b6
AM
4577#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578int
4579main ()
4580{
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 exit(2);
4586 exit (0);
4587}
4588_ACEOF
4589rm -f conftest$ac_exeext
4590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4600 :
d7040cdb 4601else
7357c5b6
AM
4602 echo "$as_me: program exited with status $ac_status" >&5
4603echo "$as_me: failed program was:" >&5
4604sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4605
7357c5b6
AM
4606( exit $ac_status )
4607ac_cv_header_stdc=no
4608fi
4609rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610fi
4611fi
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615if test $ac_cv_header_stdc = yes; then
d7040cdb 4616
7357c5b6
AM
4617cat >>confdefs.h <<\_ACEOF
4618#define STDC_HEADERS 1
4619_ACEOF
d7040cdb 4620
7357c5b6 4621fi
d7040cdb 4622
7357c5b6 4623# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d7040cdb
SE
4624
4625
4626
4627
c428fa83 4628
d7040cdb
SE
4629
4630
4631
4632
7357c5b6
AM
4633for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4635do
4636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637echo "$as_me:$LINENO: checking for $ac_header" >&5
4638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
4648$ac_includes_default
d7040cdb 4649
7357c5b6
AM
4650#include <$ac_header>
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654 (eval $ac_compile) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } &&
4661 { ac_try='test -z "$ac_c_werror_flag"
4662 || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 (eval $ac_try) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 eval "$as_ac_Header=yes"
4675else
4676 echo "$as_me: failed program was:" >&5
4677sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4678
7357c5b6
AM
4679eval "$as_ac_Header=no"
4680fi
4681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688_ACEOF
d7040cdb 4689
7357c5b6
AM
4690fi
4691
4692done
4693
4694
4695
4696 if test "${ac_cv_header_minix_config_h+set}" = set; then
4697 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699if test "${ac_cv_header_minix_config_h+set}" = set; then
d7040cdb 4700 echo $ECHO_N "(cached) $ECHO_C" >&6
7357c5b6
AM
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
d7040cdb 4704else
7357c5b6
AM
4705 # Is the header compilable?
4706echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708cat >conftest.$ac_ext <<_ACEOF
4709/* confdefs.h. */
4710_ACEOF
4711cat confdefs.h >>conftest.$ac_ext
4712cat >>conftest.$ac_ext <<_ACEOF
4713/* end confdefs.h. */
4714$ac_includes_default
4715#include <minix/config.h>
4716_ACEOF
4717rm -f conftest.$ac_objext
4718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4719 (eval $ac_compile) 2>conftest.er1
4720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); } &&
4726 { ac_try='test -z "$ac_c_werror_flag"
4727 || test ! -s conftest.err'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 ac_header_compiler=yes
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4743
7357c5b6 4744ac_header_compiler=no
d7040cdb 4745fi
7357c5b6
AM
4746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748echo "${ECHO_T}$ac_header_compiler" >&6
d7040cdb 4749
7357c5b6
AM
4750# Is the header present?
4751echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759#include <minix/config.h>
4760_ACEOF
4761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null; then
4769 if test -s conftest.err; then
4770 ac_cpp_err=$ac_c_preproc_warn_flag
4771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4772 else
4773 ac_cpp_err=
4774 fi
4775else
4776 ac_cpp_err=yes
4777fi
4778if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
d7040cdb 4783
7357c5b6
AM
4784 ac_header_preproc=no
4785fi
4786rm -f conftest.err conftest.$ac_ext
4787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788echo "${ECHO_T}$ac_header_preproc" >&6
d7040cdb 4789
7357c5b6
AM
4790# So? What about this header?
4791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4792 yes:no: )
4793 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4794echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4795 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4796echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4797 ac_header_preproc=yes
4798 ;;
4799 no:yes:* )
4800 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4801echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4802 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4803echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4804 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4805echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4806 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4807echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4808 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4809echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4811echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4812 (
4813 cat <<\_ASBOX
4814## ------------------------------------------ ##
4815## Report this to the AC_PACKAGE_NAME lists. ##
4816## ------------------------------------------ ##
4817_ASBOX
4818 ) |
4819 sed "s/^/$as_me: WARNING: /" >&2
4820 ;;
4821esac
4822echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4828fi
4829echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4831
4832fi
4833if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835else
4836 MINIX=
4837fi
d7040cdb
SE
4838
4839
7357c5b6 4840 if test "$MINIX" = yes; then
d7040cdb 4841
7357c5b6
AM
4842cat >>confdefs.h <<\_ACEOF
4843#define _POSIX_SOURCE 1
4844_ACEOF
d7040cdb
SE
4845
4846
7357c5b6
AM
4847cat >>confdefs.h <<\_ACEOF
4848#define _POSIX_1_SOURCE 2
4849_ACEOF
d7040cdb
SE
4850
4851
7357c5b6
AM
4852cat >>confdefs.h <<\_ACEOF
4853#define _MINIX 1
4854_ACEOF
d7040cdb 4855
7357c5b6 4856 fi
d7040cdb
SE
4857
4858
4859
7357c5b6
AM
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
d7040cdb
SE
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
7357c5b6
AM
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
d7040cdb 4871
7357c5b6
AM
4872# define __EXTENSIONS__ 1
4873 $ac_includes_default
4874int
4875main ()
4876{
d7040cdb 4877
7357c5b6
AM
4878 ;
4879 return 0;
4880}
4881_ACEOF
4882rm -f conftest.$ac_objext
4883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4905else
7357c5b6
AM
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909ac_cv_safe_to_define___extensions__=no
d7040cdb 4910fi
7357c5b6
AM
4911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 cat >>confdefs.h <<\_ACEOF
4917#define __EXTENSIONS__ 1
4918_ACEOF
d7040cdb 4919
7357c5b6
AM
4920 cat >>confdefs.h <<\_ACEOF
4921#define _ALL_SOURCE 1
4922_ACEOF
d7040cdb 4923
7357c5b6
AM
4924 cat >>confdefs.h <<\_ACEOF
4925#define _GNU_SOURCE 1
4926_ACEOF
d7040cdb 4927
7357c5b6
AM
4928 cat >>confdefs.h <<\_ACEOF
4929#define _POSIX_PTHREAD_SEMANTICS 1
4930_ACEOF
d7040cdb 4931
7357c5b6
AM
4932 cat >>confdefs.h <<\_ACEOF
4933#define _TANDEM_SOURCE 1
4934_ACEOF
d7040cdb
SE
4935
4936
d053aef8
JK
4937# Check whether --enable-largefile or --disable-largefile was given.
4938if test "${enable_largefile+set}" = set; then
4939 enableval="$enable_largefile"
4940
4941fi;
4942if test "$enable_largefile" != no; then
4943
4944 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4945echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4946if test "${ac_cv_sys_largefile_CC+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949 ac_cv_sys_largefile_CC=no
4950 if test "$GCC" != yes; then
4951 ac_save_CC=$CC
4952 while :; do
4953 # IRIX 6.2 and later do not support large files by default,
4954 # so use the C compiler's -n32 option if that helps.
4955 cat >conftest.$ac_ext <<_ACEOF
4956/* confdefs.h. */
4957_ACEOF
4958cat confdefs.h >>conftest.$ac_ext
4959cat >>conftest.$ac_ext <<_ACEOF
4960/* end confdefs.h. */
4961#include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4969 ? 1 : -1];
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
4978 rm -f conftest.$ac_objext
4979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980 (eval $ac_compile) 2>conftest.er1
4981 ac_status=$?
4982 grep -v '^ *+' conftest.er1 >conftest.err
4983 rm -f conftest.er1
4984 cat conftest.err >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } &&
4987 { ac_try='test -z "$ac_c_werror_flag"
4988 || test ! -s conftest.err'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 break
5001else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005fi
5006rm -f conftest.err conftest.$ac_objext
5007 CC="$CC -n32"
5008 rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_sys_largefile_CC=' -n32'; break
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
5034
5035fi
5036rm -f conftest.err conftest.$ac_objext
5037 break
5038 done
5039 CC=$ac_save_CC
5040 rm -f conftest.$ac_ext
5041 fi
5042fi
5043echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5044echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5045 if test "$ac_cv_sys_largefile_CC" != no; then
5046 CC=$CC$ac_cv_sys_largefile_CC
5047 fi
5048
5049 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5050echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5051if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 while :; do
5055 ac_cv_sys_file_offset_bits=no
5056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
5062#include <sys/types.h>
5063 /* Check that off_t can represent 2**63 - 1 correctly.
5064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5065 since some C++ compilers masquerading as C compilers
5066 incorrectly reject 9223372036854775807. */
5067#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5069 && LARGE_OFF_T % 2147483647 == 1)
5070 ? 1 : -1];
5071int
5072main ()
5073{
5074
5075 ;
5076 return 0;
5077}
5078_ACEOF
5079rm -f conftest.$ac_objext
5080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5082 ac_status=$?
5083 grep -v '^ *+' conftest.er1 >conftest.err
5084 rm -f conftest.er1
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try='test -z "$ac_c_werror_flag"
5089 || test ! -s conftest.err'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 break
5102else
5103 echo "$as_me: failed program was:" >&5
5104sed 's/^/| /' conftest.$ac_ext >&5
5105
5106fi
5107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h. */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h. */
5114#define _FILE_OFFSET_BITS 64
5115#include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5123 ? 1 : -1];
5124int
5125main ()
5126{
5127
5128 ;
5129 return 0;
5130}
5131_ACEOF
5132rm -f conftest.$ac_objext
5133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5135 ac_status=$?
5136 grep -v '^ *+' conftest.er1 >conftest.err
5137 rm -f conftest.er1
5138 cat conftest.err >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_sys_file_offset_bits=64; break
5155else
5156 echo "$as_me: failed program was:" >&5
5157sed 's/^/| /' conftest.$ac_ext >&5
5158
5159fi
5160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 break
5162done
5163fi
5164echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5165echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5166if test "$ac_cv_sys_file_offset_bits" != no; then
5167
5168cat >>confdefs.h <<_ACEOF
5169#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5170_ACEOF
5171
5172fi
5173rm -f conftest*
5174 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5175echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5176if test "${ac_cv_sys_large_files+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179 while :; do
5180 ac_cv_sys_large_files=no
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187#include <sys/types.h>
5188 /* Check that off_t can represent 2**63 - 1 correctly.
5189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5190 since some C++ compilers masquerading as C compilers
5191 incorrectly reject 9223372036854775807. */
5192#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5194 && LARGE_OFF_T % 2147483647 == 1)
5195 ? 1 : -1];
5196int
5197main ()
5198{
5199
5200 ;
5201 return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext
5205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5206 (eval $ac_compile) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 break
5227else
5228 echo "$as_me: failed program was:" >&5
5229sed 's/^/| /' conftest.$ac_ext >&5
5230
5231fi
5232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239#define _LARGE_FILES 1
5240#include <sys/types.h>
5241 /* Check that off_t can represent 2**63 - 1 correctly.
5242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5243 since some C++ compilers masquerading as C compilers
5244 incorrectly reject 9223372036854775807. */
5245#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5247 && LARGE_OFF_T % 2147483647 == 1)
5248 ? 1 : -1];
5249int
5250main ()
5251{
5252
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5279 ac_cv_sys_large_files=1; break
5280else
5281 echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284fi
5285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 break
5287done
5288fi
5289echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5290echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5291if test "$ac_cv_sys_large_files" != no; then
5292
5293cat >>confdefs.h <<_ACEOF
5294#define _LARGE_FILES $ac_cv_sys_large_files
5295_ACEOF
5296
5297fi
5298rm -f conftest*
5299fi
5300
d7040cdb 5301
718a6fd8
SE
5302case `pwd` in
5303 *\ * | *\ *)
5304 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5305echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5306esac
d7040cdb
SE
5307
5308
7357c5b6 5309
718a6fd8
SE
5310macro_version='2.2.6'
5311macro_revision='1.3012'
7357c5b6
AM
5312
5313
5314
5315
5316
5317
7357c5b6
AM
5318
5319
5320
5321
5322
5323
5324
718a6fd8 5325ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6
AM
5326
5327echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5328echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5329if test "${lt_cv_path_SED+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 # Loop through the user's path and test for sed and gsed.
5333# Then use that list of sed's as ones to test for truncation.
5334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335for as_dir in $PATH
5336do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for lt_ac_prog in sed gsed; do
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5342 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5343 fi
5344 done
5345 done
5346done
5347IFS=$as_save_IFS
5348lt_ac_max=0
5349lt_ac_count=0
5350# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5351# along with /bin/sed that truncates output.
5352for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5353 test ! -f $lt_ac_sed && continue
5354 cat /dev/null > conftest.in
5355 lt_ac_count=0
5356 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5357 # Check for GNU sed and select it if it is found.
5358 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5359 lt_cv_path_SED=$lt_ac_sed
5360 break
5361 fi
5362 while true; do
5363 cat conftest.in conftest.in >conftest.tmp
5364 mv conftest.tmp conftest.in
5365 cp conftest.in conftest.nl
5366 echo >>conftest.nl
5367 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5368 cmp -s conftest.out conftest.nl || break
5369 # 10000 chars as input seems more than enough
5370 test $lt_ac_count -gt 10 && break
5371 lt_ac_count=`expr $lt_ac_count + 1`
5372 if test $lt_ac_count -gt $lt_ac_max; then
5373 lt_ac_max=$lt_ac_count
5374 lt_cv_path_SED=$lt_ac_sed
5375 fi
5376 done
5377done
5378
5379fi
5380
5381SED=$lt_cv_path_SED
5382
5383echo "$as_me:$LINENO: result: $SED" >&5
5384echo "${ECHO_T}$SED" >&6
5385
5386test -z "$SED" && SED=sed
5387Xsed="$SED -e 1s/^X//"
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399echo "$as_me:$LINENO: checking for fgrep" >&5
5400echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5401if test "${ac_cv_prog_fgrep+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403else
5404 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5405 then ac_cv_prog_fgrep='grep -F'
5406 else ac_cv_prog_fgrep='fgrep'
5407 fi
5408fi
5409echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5410echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5411 FGREP=$ac_cv_prog_fgrep
5412
5413
5414test -z "$GREP" && GREP=grep
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434# Check whether --with-gnu-ld or --without-gnu-ld was given.
5435if test "${with_gnu_ld+set}" = set; then
5436 withval="$with_gnu_ld"
5437 test "$withval" = no || with_gnu_ld=yes
5438else
5439 with_gnu_ld=no
5440fi;
5441ac_prog=ld
5442if test "$GCC" = yes; then
5443 # Check if gcc -print-prog-name=ld gives a path.
5444 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5445echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5446 case $host in
5447 *-*-mingw*)
5448 # gcc leaves a trailing carriage return which upsets mingw
5449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5450 *)
5451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5452 esac
5453 case $ac_prog in
5454 # Accept absolute paths.
5455 [\\/]* | ?:[\\/]*)
5456 re_direlt='/[^/][^/]*/\.\./'
5457 # Canonicalize the pathname of ld
5458 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5459 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
d7040cdb 5460 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
cfbc9945
SE
5461 done
5462 test -z "$LD" && LD="$ac_prog"
5463 ;;
5bd8253d 5464 "")
cfbc9945
SE
5465 # If it fails, then pretend we aren't using GCC.
5466 ac_prog=ld
5bd8253d
L
5467 ;;
5468 *)
cfbc9945
SE
5469 # If it is relative, then search for the first ld in PATH.
5470 with_gnu_ld=unknown
5bd8253d 5471 ;;
cfbc9945
SE
5472 esac
5473elif test "$with_gnu_ld" = yes; then
5474 echo "$as_me:$LINENO: checking for GNU ld" >&5
5475echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5476else
5477 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5478echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5479fi
5480if test "${lt_cv_path_LD+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483 if test -z "$LD"; then
d7040cdb 5484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
cfbc9945 5485 for ac_dir in $PATH; do
d7040cdb 5486 IFS="$lt_save_ifs"
cfbc9945
SE
5487 test -z "$ac_dir" && ac_dir=.
5488 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5489 lt_cv_path_LD="$ac_dir/$ac_prog"
5490 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5491 # but apparently some variants of GNU ld only accept -v.
cfbc9945 5492 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5493 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5494 *GNU* | *'with BFD'*)
cfbc9945 5495 test "$with_gnu_ld" != no && break
d7040cdb
SE
5496 ;;
5497 *)
cfbc9945 5498 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5499 ;;
5500 esac
cfbc9945
SE
5501 fi
5502 done
d7040cdb 5503 IFS="$lt_save_ifs"
cfbc9945
SE
5504else
5505 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9e9b66a9 5506fi
1ad12f97
NC
5507fi
5508
cfbc9945
SE
5509LD="$lt_cv_path_LD"
5510if test -n "$LD"; then
5511 echo "$as_me:$LINENO: result: $LD" >&5
5512echo "${ECHO_T}$LD" >&6
5513else
5514 echo "$as_me:$LINENO: result: no" >&5
5515echo "${ECHO_T}no" >&6
5516fi
5517test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5518echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5519 { (exit 1); exit 1; }; }
5520echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5521echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5522if test "${lt_cv_prog_gnu_ld+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
d7040cdb
SE
5525 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5526case `$LD -v 2>&1 </dev/null` in
5527*GNU* | *'with BFD'*)
cfbc9945 5528 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5529 ;;
5530*)
cfbc9945 5531 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5532 ;;
5533esac
49c96104 5534fi
cfbc9945
SE
5535echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5536echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5537with_gnu_ld=$lt_cv_prog_gnu_ld
49c96104 5538
9e9b66a9 5539
cfbc9945 5540
d7040cdb
SE
5541
5542
5543
5544
5545
5546
d7040cdb
SE
5547echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5548echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
cfbc9945
SE
5549if test "${lt_cv_path_NM+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552 if test -n "$NM"; then
5553 # Let the user override the test.
5554 lt_cv_path_NM="$NM"
5555else
d7040cdb
SE
5556 lt_nm_to_check="${ac_tool_prefix}nm"
5557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5558 lt_nm_to_check="$lt_nm_to_check nm"
5559 fi
5560 for lt_tmp_nm in $lt_nm_to_check; do
5561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5563 IFS="$lt_save_ifs"
5564 test -z "$ac_dir" && ac_dir=.
5565 tmp_nm="$ac_dir/$lt_tmp_nm"
5566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5567 # Check to see if the nm accepts a BSD-compat flag.
5568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5569 # nm: unknown option "B" ignored
5570 # Tru64's nm complains that /dev/null is an invalid object file
5571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5572 */dev/null* | *'Invalid file or object type'*)
5573 lt_cv_path_NM="$tmp_nm -B"
5574 break
5575 ;;
5576 *)
5577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5578 */dev/null*)
5579 lt_cv_path_NM="$tmp_nm -p"
5580 break
5581 ;;
5582 *)
5583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5584 continue # so that we can try to find one that supports BSD flags
5585 ;;
5586 esac
5587 ;;
5588 esac
cfbc9945 5589 fi
d7040cdb
SE
5590 done
5591 IFS="$lt_save_ifs"
cfbc9945 5592 done
d7040cdb 5593 : ${lt_cv_path_NM=no}
cfbc9945 5594fi
a2d91340 5595fi
d7040cdb
SE
5596echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5597echo "${ECHO_T}$lt_cv_path_NM" >&6
5598if test "$lt_cv_path_NM" != "no"; then
5599 NM="$lt_cv_path_NM"
cfbc9945 5600else
d7040cdb
SE
5601 # Didn't find any BSD compatible name lister, look for dumpbin.
5602 if test -n "$ac_tool_prefix"; then
5603 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5604 do
5605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_DUMPBIN+set}" = set; then
cfbc9945 5610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5611else
d7040cdb
SE
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5464f5a1 5628
d7040cdb
SE
5629fi
5630fi
5631DUMPBIN=$ac_cv_prog_DUMPBIN
5632if test -n "$DUMPBIN"; then
5633 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5634echo "${ECHO_T}$DUMPBIN" >&6
5635else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
d5fbea21 5639
d7040cdb
SE
5640 test -n "$DUMPBIN" && break
5641 done
5642fi
5643if test -z "$DUMPBIN"; then
5644 ac_ct_DUMPBIN=$DUMPBIN
5645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5646do
5647 # Extract the first word of "$ac_prog", so it can be a program name with args.
5648set dummy $ac_prog; ac_word=$2
5649echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 if test -n "$ac_ct_DUMPBIN"; then
5655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
cfbc9945 5667 fi
d7040cdb
SE
5668done
5669done
d5fbea21 5670
d7040cdb
SE
5671fi
5672fi
5673ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5674if test -n "$ac_ct_DUMPBIN"; then
5675 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5676echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5677else
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
d5fbea21 5681
d7040cdb
SE
5682 test -n "$ac_ct_DUMPBIN" && break
5683done
5684test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
24443139 5685
d7040cdb
SE
5686 DUMPBIN=$ac_ct_DUMPBIN
5687fi
24443139 5688
24443139 5689
d7040cdb
SE
5690 if test "$DUMPBIN" != ":"; then
5691 NM="$DUMPBIN"
cfbc9945 5692 fi
d7040cdb
SE
5693fi
5694test -z "$NM" && NM=nm
a703a6ea 5695
f5385ebf 5696
cfbc9945 5697
24443139
AS
5698
5699
5700
d7040cdb
SE
5701echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5702echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5703if test "${lt_cv_nm_interface+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 lt_cv_nm_interface="BSD nm"
5707 echo "int some_variable = 0;" > conftest.$ac_ext
718a6fd8 5708 (eval echo "\"\$as_me:5708: $ac_compile\"" >&5)
d7040cdb
SE
5709 (eval "$ac_compile" 2>conftest.err)
5710 cat conftest.err >&5
718a6fd8 5711 (eval echo "\"\$as_me:5711: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5713 cat conftest.err >&5
718a6fd8 5714 (eval echo "\"\$as_me:5714: output\"" >&5)
d7040cdb
SE
5715 cat conftest.out >&5
5716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5717 lt_cv_nm_interface="MS dumpbin"
5718 fi
5719 rm -f conftest*
cfbc9945 5720fi
d7040cdb
SE
5721echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5722echo "${ECHO_T}$lt_cv_nm_interface" >&6
a703a6ea 5723
d7040cdb
SE
5724echo "$as_me:$LINENO: checking whether ln -s works" >&5
5725echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5726LN_S=$as_ln_s
5727if test "$LN_S" = "ln -s"; then
5728 echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
5730else
5731 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5732echo "${ECHO_T}no, using $LN_S" >&6
5733fi
252b5132 5734
cfbc9945
SE
5735# find the maximum length of command line arguments
5736echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5737echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5738if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741 i=0
5742 teststring="ABCD"
5464f5a1 5743
cfbc9945
SE
5744 case $build_os in
5745 msdosdjgpp*)
5746 # On DJGPP, this test can blow up pretty badly due to problems in libc
5747 # (any single argument exceeding 2000 bytes causes a buffer overrun
5748 # during glob expansion). Even if it were fixed, the result of this
5749 # check would be larger than it should be.
5750 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5751 ;;
5464f5a1 5752
d7040cdb
SE
5753 gnu*)
5754 # Under GNU Hurd, this test is not required because there is
5755 # no limit to the length of command line arguments.
5756 # Libtool will interpret -1 as no limit whatsoever
5757 lt_cv_sys_max_cmd_len=-1;
5758 ;;
5759
718a6fd8 5760 cygwin* | mingw* | cegcc*)
cfbc9945
SE
5761 # On Win9x/ME, this test blows up -- it succeeds, but takes
5762 # about 5 minutes as the teststring grows exponentially.
5763 # Worse, since 9x/ME are not pre-emptively multitasking,
5764 # you end up with a "frozen" computer, even though with patience
5765 # the test eventually succeeds (with a max line length of 256k).
5766 # Instead, let's just punt: use the minimum linelength reported by
5767 # all of the supported platforms: 8192 (on NT/2K/XP).
5768 lt_cv_sys_max_cmd_len=8192;
5769 ;;
5464f5a1 5770
cfbc9945
SE
5771 amigaos*)
5772 # On AmigaOS with pdksh, this test takes hours, literally.
5773 # So we just punt and use a minimum line length of 8192.
5774 lt_cv_sys_max_cmd_len=8192;
5775 ;;
5464f5a1 5776
cfbc9945
SE
5777 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5778 # This has been around since 386BSD, at least. Likely further.
5779 if test -x /sbin/sysctl; then
5780 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5781 elif test -x /usr/sbin/sysctl; then
5782 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5783 else
d7040cdb 5784 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
cfbc9945
SE
5785 fi
5786 # And add a safety zone
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5789 ;;
d7040cdb
SE
5790
5791 interix*)
5792 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5793 lt_cv_sys_max_cmd_len=196608
5794 ;;
5795
5796 osf*)
5797 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5798 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5799 # nice to cause kernel panics so lets avoid the loop below.
5800 # First set a reasonable default.
5801 lt_cv_sys_max_cmd_len=16384
5802 #
5803 if test -x /sbin/sysconfig; then
5804 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5805 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5806 esac
5807 fi
5808 ;;
5809 sco3.2v5*)
5810 lt_cv_sys_max_cmd_len=102400
5811 ;;
5812 sysv5* | sco5v6* | sysv4.2uw2*)
5813 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5814 if test -n "$kargmax"; then
5815 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5816 else
5817 lt_cv_sys_max_cmd_len=32768
5818 fi
5819 ;;
5820 *)
718a6fd8
SE
5821 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5822 if test -n "$lt_cv_sys_max_cmd_len"; then
79887925
L
5823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5825 else
5826 # Make teststring a little bigger before we do anything with it.
5827 # a 1K string should be a reasonable start.
5828 for i in 1 2 3 4 5 6 7 8 ; do
5829 teststring=$teststring$teststring
5830 done
5831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5832 # If test is not a shell built-in, we'll probably end up computing a
5833 # maximum length that is only half of the actual maximum length, but
5834 # we can't tell.
5835 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5836 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5837 test $i != 17 # 1/2 MB should be enough
5838 do
5839 i=`expr $i + 1`
5840 teststring=$teststring$teststring
5841 done
5842 # Only check the string length outside the loop.
5843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5844 teststring=
5845 # Add a significant safety factor because C++ compilers can tack on
5846 # massive amounts of additional arguments before passing them to the
5847 # linker. It appears as though 1/2 is a usable value.
5848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5849 fi
d7040cdb 5850 ;;
cfbc9945 5851 esac
5464f5a1 5852
252b5132 5853fi
cfbc9945 5854
d7040cdb 5855if test -n $lt_cv_sys_max_cmd_len ; then
cfbc9945
SE
5856 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5857echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5464f5a1 5858else
cfbc9945
SE
5859 echo "$as_me:$LINENO: result: none" >&5
5860echo "${ECHO_T}none" >&6
5464f5a1 5861fi
d7040cdb 5862max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5863
cfbc9945 5864
252b5132 5865
cfbc9945 5866
cfbc9945 5867
d7040cdb 5868
d7040cdb
SE
5869: ${CP="cp -f"}
5870: ${MV="mv -f"}
5871: ${RM="rm -f"}
5872
5873echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5874echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5875# Try some XSI features
5876xsi_shell=no
5877( _lt_dummy="a/b/c"
5878 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5879 = c,a/b,, \
5880 && eval 'test $(( 1 + 1 )) -eq 2 \
5881 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb
SE
5882 && xsi_shell=yes
5883echo "$as_me:$LINENO: result: $xsi_shell" >&5
5884echo "${ECHO_T}$xsi_shell" >&6
5885
5886
5887echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5888echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5889lt_shell_append=no
5890( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5891 >/dev/null 2>&1 \
5892 && lt_shell_append=yes
5893echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5894echo "${ECHO_T}$lt_shell_append" >&6
5895
5896
5897if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5898 lt_unset=unset
5464f5a1 5899else
d7040cdb 5900 lt_unset=false
5464f5a1 5901fi
252b5132 5902
d7040cdb
SE
5903
5904
5905
5906
5907# test EBCDIC or ASCII
5908case `echo X|tr X '\101'` in
5909 A) # ASCII based system
5910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5911 lt_SP2NL='tr \040 \012'
5912 lt_NL2SP='tr \015\012 \040\040'
5913 ;;
5914 *) # EBCDIC based system
5915 lt_SP2NL='tr \100 \n'
5916 lt_NL2SP='tr \r\n \100\100'
5917 ;;
5918esac
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5929echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5930if test "${lt_cv_ld_reload_flag+set}" = set; then
5464f5a1
NN
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
d7040cdb
SE
5933 lt_cv_ld_reload_flag='-r'
5934fi
5935echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5936echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5937reload_flag=$lt_cv_ld_reload_flag
5938case $reload_flag in
5939"" | " "*) ;;
5940*) reload_flag=" $reload_flag" ;;
5941esac
5942reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943case $host_os in
5944 darwin*)
5945 if test "$GCC" = yes; then
5946 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5947 else
5948 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5949 fi
5950 ;;
5951esac
5952
5953
5954
5955
5956
5957
5958
5959
5960
718a6fd8
SE
5961if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5963set dummy ${ac_tool_prefix}objdump; ac_word=$2
5964echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$OBJDUMP"; then
5970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984done
5985
5986fi
5987fi
5988OBJDUMP=$ac_cv_prog_OBJDUMP
5989if test -n "$OBJDUMP"; then
5990 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5991echo "${ECHO_T}$OBJDUMP" >&6
5992else
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
5995fi
5996
5997fi
5998if test -z "$ac_cv_prog_OBJDUMP"; then
5999 ac_ct_OBJDUMP=$OBJDUMP
6000 # Extract the first word of "objdump", so it can be a program name with args.
6001set dummy objdump; ac_word=$2
6002echo "$as_me:$LINENO: checking for $ac_word" >&5
6003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007 if test -n "$ac_ct_OBJDUMP"; then
6008 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022done
6023
6024 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6025fi
6026fi
6027ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6028if test -n "$ac_ct_OBJDUMP"; then
6029 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6030echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6031else
6032 echo "$as_me:$LINENO: result: no" >&5
6033echo "${ECHO_T}no" >&6
6034fi
6035
6036 OBJDUMP=$ac_ct_OBJDUMP
6037else
6038 OBJDUMP="$ac_cv_prog_OBJDUMP"
6039fi
6040
6041test -z "$OBJDUMP" && OBJDUMP=objdump
6042
6043
6044
6045
6046
6047
6048
6049
d7040cdb
SE
6050
6051echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6052echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6053if test "${lt_cv_deplibs_check_method+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055else
6056 lt_cv_file_magic_cmd='$MAGIC_CMD'
6057lt_cv_file_magic_test_file=
6058lt_cv_deplibs_check_method='unknown'
6059# Need to set the preceding variable on all platforms that support
6060# interlibrary dependencies.
6061# 'none' -- dependencies not supported.
6062# `unknown' -- same as none, but documents that we really don't know.
6063# 'pass_all' -- all dependencies passed with no checks.
6064# 'test_compile' -- check by making test program.
6065# 'file_magic [[regex]]' -- check by looking for files in library path
6066# which responds to the $file_magic_cmd with a given extended regex.
6067# If you have `file' or equivalent on your system and you're not sure
6068# whether `pass_all' will *always* work, you probably want this one.
6069
6070case $host_os in
e81819a5 6071aix[4-9]*)
d7040cdb
SE
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075beos*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079bsdi[45]*)
6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6081 lt_cv_file_magic_cmd='/usr/bin/file -L'
6082 lt_cv_file_magic_test_file=/shlib/libc.so
6083 ;;
6084
6085cygwin*)
6086 # func_win32_libid is a shell function defined in ltmain.sh
6087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6088 lt_cv_file_magic_cmd='func_win32_libid'
6089 ;;
6090
6091mingw* | pw32*)
6092 # Base MSYS/MinGW do not provide the 'file' command needed by
6093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6094 # unless we find 'file', for example because we are cross-compiling.
6095 if ( file / ) >/dev/null 2>&1; then
6096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6097 lt_cv_file_magic_cmd='func_win32_libid'
6098 else
6099 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6100 lt_cv_file_magic_cmd='$OBJDUMP -f'
6101 fi
6102 ;;
6103
718a6fd8
SE
6104cegcc)
6105 # use the weaker test based on 'objdump'. See mingw*.
6106 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6107 lt_cv_file_magic_cmd='$OBJDUMP -f'
6108 ;;
6109
d7040cdb
SE
6110darwin* | rhapsody*)
6111 lt_cv_deplibs_check_method=pass_all
cfbc9945 6112 ;;
d7040cdb
SE
6113
6114freebsd* | dragonfly*)
6115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6116 case $host_cpu in
6117 i*86 )
6118 # Not sure whether the presence of OpenBSD here was a mistake.
6119 # Let's accept both of them until this is cleared up.
6120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6123 ;;
6124 esac
6125 else
6126 lt_cv_deplibs_check_method=pass_all
6127 fi
6128 ;;
6129
6130gnu*)
6131 lt_cv_deplibs_check_method=pass_all
cfbc9945 6132 ;;
d7040cdb
SE
6133
6134hpux10.20* | hpux11*)
6135 lt_cv_file_magic_cmd=/usr/bin/file
6136 case $host_cpu in
6137 ia64*)
6138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6140 ;;
6141 hppa*64*)
6142 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]'
6143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6144 ;;
cfbc9945 6145 *)
d7040cdb
SE
6146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6148 ;;
6149 esac
6150 ;;
6be7c12c 6151
d7040cdb
SE
6152interix[3-9]*)
6153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6155 ;;
cfbc9945 6156
d7040cdb
SE
6157irix5* | irix6* | nonstopux*)
6158 case $LD in
6159 *-32|*"-32 ") libmagic=32-bit;;
6160 *-n32|*"-n32 ") libmagic=N32;;
6161 *-64|*"-64 ") libmagic=64-bit;;
6162 *) libmagic=never-match;;
6163 esac
6164 lt_cv_deplibs_check_method=pass_all
cfbc9945 6165 ;;
cfbc9945 6166
d7040cdb
SE
6167# This must be Linux ELF.
6168linux* | k*bsd*-gnu)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
5464f5a1 6171
d7040cdb
SE
6172netbsd*)
6173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945 6175 else
d7040cdb 6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
cfbc9945 6177 fi
d7040cdb
SE
6178 ;;
6179
6180newos6*)
6181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6182 lt_cv_file_magic_cmd=/usr/bin/file
6183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6184 ;;
6185
6186*nto* | *qnx*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
cfbc9945 6189
d7040cdb
SE
6190openbsd*)
6191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6193 else
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
cfbc9945
SE
6195 fi
6196 ;;
d7040cdb
SE
6197
6198osf3* | osf4* | osf5*)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202rdos*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206solaris*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214sysv4 | sysv4.3*)
6215 case $host_vendor in
6216 motorola)
6217 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]'
6218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6219 ;;
6220 ncr)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223 sequent)
6224 lt_cv_file_magic_cmd='/bin/file'
6225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6226 ;;
6227 sni)
6228 lt_cv_file_magic_cmd='/bin/file'
6229 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6230 lt_cv_file_magic_test_file=/lib/libc.so
6231 ;;
6232 siemens)
6233 lt_cv_deplibs_check_method=pass_all
6234 ;;
6235 pc)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 esac
6239 ;;
6240
6241tpf*)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
cfbc9945
SE
6244esac
6245
d7040cdb
SE
6246fi
6247echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6248echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6249file_magic_cmd=$lt_cv_file_magic_cmd
6250deplibs_check_method=$lt_cv_deplibs_check_method
6251test -z "$deplibs_check_method" && deplibs_check_method=unknown
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
cfbc9945 6264if test -n "$ac_tool_prefix"; then
d7040cdb
SE
6265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
6267echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6269if test "${ac_cv_prog_AR+set}" = set; then
5464f5a1
NN
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
d7040cdb
SE
6272 if test -n "$AR"; then
6273 ac_cv_prog_AR="$AR" # Let the user override the test.
5464f5a1
NN
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278 IFS=$as_save_IFS
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6282 ac_cv_prog_AR="${ac_tool_prefix}ar"
5464f5a1
NN
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 break 2
6285 fi
6286done
6287done
6288
6289fi
6290fi
d7040cdb
SE
6291AR=$ac_cv_prog_AR
6292if test -n "$AR"; then
6293 echo "$as_me:$LINENO: result: $AR" >&5
6294echo "${ECHO_T}$AR" >&6
5464f5a1
NN
6295else
6296 echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298fi
6299
5464f5a1 6300fi
d7040cdb
SE
6301if test -z "$ac_cv_prog_AR"; then
6302 ac_ct_AR=$AR
6303 # Extract the first word of "ar", so it can be a program name with args.
6304set dummy ar; ac_word=$2
5464f5a1
NN
6305echo "$as_me:$LINENO: checking for $ac_word" >&5
6306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d7040cdb 6307if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5464f5a1 6308 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6309else
d7040cdb
SE
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
252b5132 6312else
5464f5a1
NN
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 6320 ac_cv_prog_ac_ct_AR="ar"
5464f5a1
NN
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326
d7040cdb 6327 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5464f5a1
NN
6328fi
6329fi
d7040cdb
SE
6330ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331if test -n "$ac_ct_AR"; then
6332 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6333echo "${ECHO_T}$ac_ct_AR" >&6
6334else
6335 echo "$as_me:$LINENO: result: no" >&5
5464f5a1
NN
6336echo "${ECHO_T}no" >&6
6337fi
6338
d7040cdb 6339 AR=$ac_ct_AR
cfbc9945 6340else
d7040cdb 6341 AR="$ac_cv_prog_AR"
5464f5a1 6342fi
cfbc9945 6343
d7040cdb
SE
6344test -z "$AR" && AR=ar
6345test -z "$AR_FLAGS" && AR_FLAGS=cru
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
cfbc9945
SE
6357if test -n "$ac_tool_prefix"; then
6358 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6359set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
6360echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6362if test "${ac_cv_prog_STRIP+set}" = set; then
5464f5a1
NN
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
cfbc9945
SE
6365 if test -n "$STRIP"; then
6366 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5464f5a1
NN
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6375 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464f5a1
NN
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381
6382fi
6383fi
cfbc9945
SE
6384STRIP=$ac_cv_prog_STRIP
6385if test -n "$STRIP"; then
6386 echo "$as_me:$LINENO: result: $STRIP" >&5
6387echo "${ECHO_T}$STRIP" >&6
5464f5a1
NN
6388else
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
6391fi
6392
252b5132 6393fi
cfbc9945
SE
6394if test -z "$ac_cv_prog_STRIP"; then
6395 ac_ct_STRIP=$STRIP
6396 # Extract the first word of "strip", so it can be a program name with args.
6397set dummy strip; ac_word=$2
5464f5a1
NN
6398echo "$as_me:$LINENO: checking for $ac_word" >&5
6399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
cfbc9945 6400if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464f5a1
NN
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402else
cfbc9945
SE
6403 if test -n "$ac_ct_STRIP"; then
6404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5464f5a1
NN
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cfbc9945 6413 ac_cv_prog_ac_ct_STRIP="strip"
5464f5a1
NN
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417done
6418done
6419
cfbc9945 6420 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5464f5a1
NN
6421fi
6422fi
cfbc9945
SE
6423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6424if test -n "$ac_ct_STRIP"; then
6425 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6426echo "${ECHO_T}$ac_ct_STRIP" >&6
5464f5a1
NN
6427else
6428 echo "$as_me:$LINENO: result: no" >&5
6429echo "${ECHO_T}no" >&6
6430fi
6431
cfbc9945
SE
6432 STRIP=$ac_ct_STRIP
6433else
6434 STRIP="$ac_cv_prog_STRIP"
5464f5a1
NN
6435fi
6436
d7040cdb 6437test -z "$STRIP" && STRIP=:
5464f5a1 6438
cfbc9945
SE
6439
6440
cfbc9945 6441
cfbc9945
SE
6442
6443
d7040cdb
SE
6444if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6446set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6447echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449if test "${ac_cv_prog_RANLIB+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
cfbc9945 6451else
d7040cdb
SE
6452 if test -n "$RANLIB"; then
6453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
cfbc9945 6465 fi
d7040cdb
SE
6466done
6467done
cfbc9945 6468
d7040cdb
SE
6469fi
6470fi
6471RANLIB=$ac_cv_prog_RANLIB
6472if test -n "$RANLIB"; then
6473 echo "$as_me:$LINENO: result: $RANLIB" >&5
6474echo "${ECHO_T}$RANLIB" >&6
6475else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478fi
cfbc9945 6479
d7040cdb
SE
6480fi
6481if test -z "$ac_cv_prog_RANLIB"; then
6482 ac_ct_RANLIB=$RANLIB
6483 # Extract the first word of "ranlib", so it can be a program name with args.
6484set dummy ranlib; ac_word=$2
6485echo "$as_me:$LINENO: checking for $ac_word" >&5
6486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490 if test -n "$ac_ct_RANLIB"; then
6491 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_RANLIB="ranlib"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
cfbc9945 6503 fi
d7040cdb
SE
6504done
6505done
cfbc9945 6506
d7040cdb
SE
6507 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6508fi
6509fi
6510ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6511if test -n "$ac_ct_RANLIB"; then
6512 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6513echo "${ECHO_T}$ac_ct_RANLIB" >&6
cfbc9945 6514else
d7040cdb
SE
6515 echo "$as_me:$LINENO: result: no" >&5
6516echo "${ECHO_T}no" >&6
6517fi
5464f5a1 6518
d7040cdb
SE
6519 RANLIB=$ac_ct_RANLIB
6520else
6521 RANLIB="$ac_cv_prog_RANLIB"
6522fi
5464f5a1 6523
d7040cdb 6524test -z "$RANLIB" && RANLIB=:
5464f5a1 6525
5464f5a1 6526
5464f5a1 6527
cfbc9945 6528
cfbc9945 6529
d7040cdb
SE
6530
6531# Determine commands to create old-style static archives.
718a6fd8 6532old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6533old_postinstall_cmds='chmod 644 $oldlib'
6534old_postuninstall_cmds=
6535
6536if test -n "$RANLIB"; then
6537 case $host_os in
6538 openbsd*)
6539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6540 ;;
6541 *)
6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6543 ;;
6544 esac
6545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
cfbc9945 6546fi
cfbc9945
SE
6547
6548
cfbc9945
SE
6549
6550
cfbc9945 6551
cfbc9945 6552
cfbc9945 6553
cfbc9945 6554
cfbc9945
SE
6555
6556
cfbc9945 6557
cfbc9945 6558
cfbc9945
SE
6559
6560
6561
6562
6563
6564
6565
5464f5a1 6566
5464f5a1 6567
cfbc9945
SE
6568
6569
6570
5464f5a1 6571
5464f5a1 6572
cfbc9945
SE
6573
6574
6575
5464f5a1 6576
cfbc9945
SE
6577
6578
6579
6580
d7040cdb
SE
6581# If no C compiler was specified, use CC.
6582LTCC=${LTCC-"$CC"}
cfbc9945 6583
d7040cdb
SE
6584# If no C compiler flags were specified, use CFLAGS.
6585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
cfbc9945 6586
d7040cdb
SE
6587# Allow CC to be a program name with arguments.
6588compiler=$CC
cfbc9945 6589
cfbc9945 6590
d7040cdb
SE
6591# Check for command to grab the raw symbol name followed by C symbol from nm.
6592echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6593echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6594if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
5464f5a1 6597
d7040cdb
SE
6598# These are sane defaults that work on at least a few old systems.
6599# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5464f5a1 6600
d7040cdb
SE
6601# Character class describing NM global symbol codes.
6602symcode='[BCDEGRST]'
6603
6604# Regexp to match symbols that can be accessed directly from C.
6605sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6606
6607# Define system-specific variables.
6608case $host_os in
6609aix*)
6610 symcode='[BCDT]'
6611 ;;
718a6fd8 6612cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6613 symcode='[ABCDGISTW]'
6614 ;;
6615hpux*)
6616 if test "$host_cpu" = ia64; then
6617 symcode='[ABCDEGRST]'
6618 fi
6619 ;;
6620irix* | nonstopux*)
6621 symcode='[BCDEGRST]'
6622 ;;
6623osf*)
6624 symcode='[BCDEGQRST]'
6625 ;;
6626solaris*)
6627 symcode='[BDRT]'
6628 ;;
6629sco3.2v5*)
6630 symcode='[DT]'
6631 ;;
6632sysv4.2uw2*)
6633 symcode='[DT]'
6634 ;;
6635sysv5* | sco5v6* | unixware* | OpenUNIX*)
6636 symcode='[ABDT]'
6637 ;;
6638sysv4)
6639 symcode='[DFNSTU]'
6640 ;;
cfbc9945 6641esac
5464f5a1 6642
d7040cdb
SE
6643# If we're using GNU nm, then use its standard symbol codes.
6644case `$NM -V 2>&1` in
6645*GNU* | *'with BFD'*)
6646 symcode='[ABCDGIRSTW]' ;;
6647esac
5464f5a1 6648
d7040cdb
SE
6649# Transform an extracted symbol line into a proper C declaration.
6650# Some systems (esp. on ia64) link data and code symbols differently,
6651# so use this general approach.
6652lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5464f5a1 6653
d7040cdb
SE
6654# Transform an extracted symbol line into symbol name and symbol address
6655lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6656lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5464f5a1 6657
d7040cdb
SE
6658# Handle CRLF in mingw tool chain
6659opt_cr=
6660case $build_os in
6661mingw*)
6662 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6663 ;;
6664esac
5464f5a1 6665
d7040cdb
SE
6666# Try without a prefix underscore, then with it.
6667for ac_symprfx in "" "_"; do
6668
6669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6670 symxfrm="\\1 $ac_symprfx\\2 \\2"
6671
6672 # Write the raw and C identifiers.
6673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674 # Fake it for dumpbin and say T for any non-static function
6675 # and D for any global variable.
6676 # Also find C++ and __fastcall symbols from MSVC++,
6677 # which start with @ or ?.
6678 lt_cv_sys_global_symbol_pipe="$AWK '"\
6679" {last_section=section; section=\$ 3};"\
6680" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6681" \$ 0!~/External *\|/{next};"\
6682" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6683" {if(hide[section]) next};"\
6684" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6685" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6686" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6687" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6688" ' prfx=^$ac_symprfx"
6689 else
6690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6691 fi
cfbc9945 6692
d7040cdb
SE
6693 # Check to see that the pipe works correctly.
6694 pipe_works=no
cfbc9945 6695
d7040cdb
SE
6696 rm -f conftest*
6697 cat > conftest.$ac_ext <<_LT_EOF
6698#ifdef __cplusplus
6699extern "C" {
6700#endif
6701char nm_test_var;
6702void nm_test_func(void);
6703void nm_test_func(void){}
6704#ifdef __cplusplus
6705}
6706#endif
6707int main(){nm_test_var='a';nm_test_func();return(0);}
6708_LT_EOF
cfbc9945 6709
d7040cdb
SE
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; then
6715 # Now try to grab the symbols.
6716 nlist=conftest.nm
6717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && test -s "$nlist"; then
6722 # Try sorting and uniquifying the output.
6723 if sort "$nlist" | uniq > "$nlist"T; then
6724 mv -f "$nlist"T "$nlist"
6725 else
6726 rm -f "$nlist"T
6727 fi
cfbc9945 6728
d7040cdb
SE
6729 # Make sure that we snagged all the symbols we need.
6730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6732 cat <<_LT_EOF > conftest.$ac_ext
6733#ifdef __cplusplus
6734extern "C" {
6735#endif
cfbc9945 6736
d7040cdb
SE
6737_LT_EOF
6738 # Now generate the symbol file.
6739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5464f5a1 6740
d7040cdb 6741 cat <<_LT_EOF >> conftest.$ac_ext
cfbc9945 6742
d7040cdb
SE
6743/* The mapping between symbol names and symbols. */
6744const struct {
6745 const char *name;
6746 void *address;
6747}
6748lt__PROGRAM__LTX_preloaded_symbols[] =
6749{
6750 { "@PROGRAM@", (void *) 0 },
6751_LT_EOF
6752 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6753 cat <<\_LT_EOF >> conftest.$ac_ext
6754 {0, (void *) 0}
6755};
6756
6757/* This works around a problem in FreeBSD linker */
6758#ifdef FREEBSD_WORKAROUND
6759static const void *lt_preloaded_setup() {
6760 return lt__PROGRAM__LTX_preloaded_symbols;
6761}
6762#endif
cfbc9945 6763
d7040cdb
SE
6764#ifdef __cplusplus
6765}
6766#endif
6767_LT_EOF
6768 # Now try linking the two files.
6769 mv conftest.$ac_objext conftstm.$ac_objext
6770 lt_save_LIBS="$LIBS"
6771 lt_save_CFLAGS="$CFLAGS"
6772 LIBS="conftstm.$ac_objext"
6773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6779 pipe_works=yes
6780 fi
6781 LIBS="$lt_save_LIBS"
6782 CFLAGS="$lt_save_CFLAGS"
6783 else
6784 echo "cannot find nm_test_func in $nlist" >&5
6785 fi
6786 else
6787 echo "cannot find nm_test_var in $nlist" >&5
6788 fi
6789 else
6790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6791 fi
6792 else
6793 echo "$progname: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 fi
718a6fd8 6796 rm -rf conftest* conftst*
cfbc9945 6797
d7040cdb
SE
6798 # Do not use the global_symbol_pipe unless it works.
6799 if test "$pipe_works" = yes; then
6800 break
6801 else
6802 lt_cv_sys_global_symbol_pipe=
6803 fi
6804done
cfbc9945 6805
252b5132 6806fi
5464f5a1 6807
d7040cdb
SE
6808if test -z "$lt_cv_sys_global_symbol_pipe"; then
6809 lt_cv_sys_global_symbol_to_cdecl=
6810fi
6811if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6812 echo "$as_me:$LINENO: result: failed" >&5
6813echo "${ECHO_T}failed" >&6
b3baf5d0 6814else
d7040cdb
SE
6815 echo "$as_me:$LINENO: result: ok" >&5
6816echo "${ECHO_T}ok" >&6
6817fi
5464f5a1 6818
cfbc9945 6819
b3baf5d0 6820
cfbc9945
SE
6821
6822
6823
6824
5464f5a1 6825
4a2a2686
HPN
6826
6827
6828
cfbc9945
SE
6829
6830
cfbc9945 6831
cfbc9945 6832
718a6fd8
SE
6833
6834
6835
6836
6837
9d7cbccd 6838
20e95c23 6839
d7040cdb
SE
6840# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6841if test "${enable_libtool_lock+set}" = set; then
6842 enableval="$enable_libtool_lock"
20e95c23 6843
d7040cdb
SE
6844fi;
6845test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20e95c23 6846
d7040cdb
SE
6847# Some flags need to be propagated to the compiler or linker for good
6848# libtool support.
6849case $host in
6850ia64-*-hpux*)
6851 # Find out which ABI we are using.
6852 echo 'int i;' > conftest.$ac_ext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; then
6858 case `/usr/bin/file conftest.$ac_objext` in
6859 *ELF-32*)
6860 HPUX_IA64_MODE="32"
6861 ;;
6862 *ELF-64*)
6863 HPUX_IA64_MODE="64"
6864 ;;
20e95c23 6865 esac
d7040cdb
SE
6866 fi
6867 rm -rf conftest*
6868 ;;
6869*-*-irix6*)
6870 # Find out which ABI we are using.
718a6fd8 6871 echo '#line 6871 "configure"' > conftest.$ac_ext
d7040cdb
SE
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; then
6877 if test "$lt_cv_prog_gnu_ld" = yes; then
6878 case `/usr/bin/file conftest.$ac_objext` in
6879 *32-bit*)
6880 LD="${LD-ld} -melf32bsmip"
6881 ;;
6882 *N32*)
6883 LD="${LD-ld} -melf32bmipn32"
6884 ;;
6885 *64-bit*)
6886 LD="${LD-ld} -melf64bmip"
6887 ;;
6888 esac
20e95c23 6889 else
d7040cdb
SE
6890 case `/usr/bin/file conftest.$ac_objext` in
6891 *32-bit*)
6892 LD="${LD-ld} -32"
6893 ;;
6894 *N32*)
6895 LD="${LD-ld} -n32"
6896 ;;
6897 *64-bit*)
6898 LD="${LD-ld} -64"
6899 ;;
20e95c23
DJ
6900 esac
6901 fi
d7040cdb
SE
6902 fi
6903 rm -rf conftest*
6904 ;;
20e95c23 6905
d7040cdb
SE
6906x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6907s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; then
6915 case `/usr/bin/file conftest.o` in
6916 *32-bit*)
6917 case $host in
6918 x86_64-*kfreebsd*-gnu)
6919 LD="${LD-ld} -m elf_i386_fbsd"
6920 ;;
6921 x86_64-*linux*)
6922 LD="${LD-ld} -m elf_i386"
6923 ;;
6924 ppc64-*linux*|powerpc64-*linux*)
6925 LD="${LD-ld} -m elf32ppclinux"
6926 ;;
6927 s390x-*linux*)
6928 LD="${LD-ld} -m elf_s390"
6929 ;;
6930 sparc64-*linux*)
6931 LD="${LD-ld} -m elf32_sparc"
6932 ;;
6933 esac
6934 ;;
6935 *64-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_x86_64_fbsd"
6939 ;;
6940 x86_64-*linux*)
6941 LD="${LD-ld} -m elf_x86_64"
6942 ;;
6943 ppc*-*linux*|powerpc*-*linux*)
6944 LD="${LD-ld} -m elf64ppc"
6945 ;;
6946 s390*-*linux*|s390*-*tpf*)
6947 LD="${LD-ld} -m elf64_s390"
6948 ;;
6949 sparc*-*linux*)
6950 LD="${LD-ld} -m elf64_sparc"
6951 ;;
6952 esac
6953 ;;
20e95c23
DJ
6954 esac
6955 fi
d7040cdb 6956 rm -rf conftest*
7357c5b6 6957 ;;
d7040cdb 6958
7357c5b6
AM
6959*-*-sco3.2v5*)
6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961 SAVE_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -belf"
6963 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6964echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6965if test "${lt_cv_cc_needs_belf+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
d7040cdb 6967else
7357c5b6
AM
6968 ac_ext=c
6969ac_cpp='$CPP $CPPFLAGS'
6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6973
7357c5b6 6974 cat >conftest.$ac_ext <<_ACEOF
d7040cdb
SE
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
d7040cdb 6980
d7040cdb
SE
6981int
6982main ()
6983{
7357c5b6
AM
6984
6985 ;
6986 return 0;
d7040cdb
SE
6987}
6988_ACEOF
7357c5b6 6989rm -f conftest.$ac_objext conftest$ac_exeext
d7040cdb 6990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357c5b6 6991 (eval $ac_link) 2>conftest.er1
d7040cdb
SE
6992 ac_status=$?
6993 grep -v '^ *+' conftest.er1 >conftest.err
6994 rm -f conftest.er1
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
7357c5b6
AM
6998 { ac_try='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
d7040cdb
SE
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7357c5b6 7005 { ac_try='test -s conftest$ac_exeext'
d7040cdb
SE
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7357c5b6 7011 lt_cv_cc_needs_belf=yes
d7040cdb
SE
7012else
7013 echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5
7015
7357c5b6 7016lt_cv_cc_needs_belf=no
d7040cdb 7017fi
7357c5b6
AM
7018rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 ac_ext=c
7021ac_cpp='$CPP $CPPFLAGS'
7022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
7025
7026fi
7357c5b6
AM
7027echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7028echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7032 fi
7033 ;;
7034sparc*-*solaris*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; then
7042 case `/usr/bin/file conftest.o` in
7043 *64-bit*)
7044 case $lt_cv_prog_gnu_ld in
7045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7046 *)
7047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7048 LD="${LD-ld} -64"
7049 fi
7050 ;;
7357c5b6
AM
7051 esac
7052 ;;
7053 esac
7054 fi
7055 rm -rf conftest*
7056 ;;
7057esac
d7040cdb 7058
7357c5b6 7059need_locks="$enable_libtool_lock"
d7040cdb
SE
7060
7061
718a6fd8
SE
7062 case $host_os in
7063 rhapsody* | darwin*)
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7066set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7067echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7069if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 if test -n "$DSYMUTIL"; then
7073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7074else
7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086done
7087done
7088
7089fi
7090fi
7091DSYMUTIL=$ac_cv_prog_DSYMUTIL
7092if test -n "$DSYMUTIL"; then
7093 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7094echo "${ECHO_T}$DSYMUTIL" >&6
7095else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098fi
7099
7100fi
7101if test -z "$ac_cv_prog_DSYMUTIL"; then
7102 ac_ct_DSYMUTIL=$DSYMUTIL
7103 # Extract the first word of "dsymutil", so it can be a program name with args.
7104set dummy dsymutil; ac_word=$2
7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 if test -n "$ac_ct_DSYMUTIL"; then
7111 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126
7127 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7128fi
7129fi
7130ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7131if test -n "$ac_ct_DSYMUTIL"; then
7132 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7133echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7134else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137fi
7138
7139 DSYMUTIL=$ac_ct_DSYMUTIL
7140else
7141 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7142fi
7143
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7146set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7147echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149if test "${ac_cv_prog_NMEDIT+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 if test -n "$NMEDIT"; then
7153 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7154else
7155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168
7169fi
7170fi
7171NMEDIT=$ac_cv_prog_NMEDIT
7172if test -n "$NMEDIT"; then
7173 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7174echo "${ECHO_T}$NMEDIT" >&6
7175else
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178fi
7179
7180fi
7181if test -z "$ac_cv_prog_NMEDIT"; then
7182 ac_ct_NMEDIT=$NMEDIT
7183 # Extract the first word of "nmedit", so it can be a program name with args.
7184set dummy nmedit; ac_word=$2
7185echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 if test -n "$ac_ct_NMEDIT"; then
7191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206
7207 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7208fi
7209fi
7210ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7211if test -n "$ac_ct_NMEDIT"; then
7212 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7213echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7214else
7215 echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6
7217fi
7218
7219 NMEDIT=$ac_ct_NMEDIT
7220else
7221 NMEDIT="$ac_cv_prog_NMEDIT"
7222fi
7223
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7226set dummy ${ac_tool_prefix}lipo; ac_word=$2
7227echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229if test "${ac_cv_prog_LIPO+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 if test -n "$LIPO"; then
7233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7234else
7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246done
7247done
7248
7249fi
7250fi
7251LIPO=$ac_cv_prog_LIPO
7252if test -n "$LIPO"; then
7253 echo "$as_me:$LINENO: result: $LIPO" >&5
7254echo "${ECHO_T}$LIPO" >&6
7255else
7256 echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258fi
7259
7260fi
7261if test -z "$ac_cv_prog_LIPO"; then
7262 ac_ct_LIPO=$LIPO
7263 # Extract the first word of "lipo", so it can be a program name with args.
7264set dummy lipo; ac_word=$2
7265echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270 if test -n "$ac_ct_LIPO"; then
7271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_ac_ct_LIPO="lipo"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7283 fi
7284done
7285done
7286
7287 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7288fi
7289fi
7290ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7291if test -n "$ac_ct_LIPO"; then
7292 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7293echo "${ECHO_T}$ac_ct_LIPO" >&6
7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 LIPO=$ac_ct_LIPO
7300else
7301 LIPO="$ac_cv_prog_LIPO"
7302fi
7303
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306set dummy ${ac_tool_prefix}otool; ac_word=$2
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_prog_OTOOL+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
7329fi
7330fi
7331OTOOL=$ac_cv_prog_OTOOL
7332if test -n "$OTOOL"; then
7333 echo "$as_me:$LINENO: result: $OTOOL" >&5
7334echo "${ECHO_T}$OTOOL" >&6
7335else
7336 echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340fi
7341if test -z "$ac_cv_prog_OTOOL"; then
7342 ac_ct_OTOOL=$OTOOL
7343 # Extract the first word of "otool", so it can be a program name with args.
7344set dummy otool; ac_word=$2
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL="otool"
7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365done
7366
7367 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7368fi
7369fi
7370ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7371if test -n "$ac_ct_OTOOL"; then
7372 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7373echo "${ECHO_T}$ac_ct_OTOOL" >&6
7374else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377fi
7378
7379 OTOOL=$ac_ct_OTOOL
7380else
7381 OTOOL="$ac_cv_prog_OTOOL"
7382fi
7383
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}otool64; ac_word=$2
7387echo "$as_me:$LINENO: checking for $ac_word" >&5
7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389if test "${ac_cv_prog_OTOOL64+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391else
7392 if test -n "$OTOOL64"; then
7393 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406done
7407done
7408
7409fi
7410fi
7411OTOOL64=$ac_cv_prog_OTOOL64
7412if test -n "$OTOOL64"; then
7413 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7414echo "${ECHO_T}$OTOOL64" >&6
7415else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418fi
7419
7420fi
7421if test -z "$ac_cv_prog_OTOOL64"; then
7422 ac_ct_OTOOL64=$OTOOL64
7423 # Extract the first word of "otool64", so it can be a program name with args.
7424set dummy otool64; ac_word=$2
7425echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 if test -n "$ac_ct_OTOOL64"; then
7431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_OTOOL64="otool64"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444done
7445done
7446
7447 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7448fi
7449fi
7450ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7451if test -n "$ac_ct_OTOOL64"; then
7452 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7453echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7454else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457fi
7458
7459 OTOOL64=$ac_ct_OTOOL64
7460else
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7462fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7491echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7492if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494else
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7500 # link flags.
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504-dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507 _lt_result=$?
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7510 else
7511 cat conftest.err >&5
7512 fi
7513 rm -rf libconftest.dylib*
7514 rm -f conftest.*
7515 fi
7516fi
7517echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7518echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7519 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7520echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7521if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h. */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h. */
7534
7535int
7536main ()
7537{
7538
7539 ;
7540 return 0;
7541}
7542_ACEOF
7543rm -f conftest.$ac_objext conftest$ac_exeext
7544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545 (eval $ac_link) 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 lt_cv_ld_exported_symbols_list=yes
7566else
7567 echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570lt_cv_ld_exported_symbols_list=no
7571fi
7572rm -f conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 LDFLAGS="$save_LDFLAGS"
7575
7576fi
7577echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7578echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7579 case $host_os in
7580 rhapsody* | darwin1.[012])
7581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7582 darwin1.*)
7583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584 darwin*) # darwin 5.x on
7585 # if running on 10.5 or later, the deployment target defaults
7586 # to the OS version, if on x86, and 10.4, the deployment
7587 # target defaults to 10.4. Don't you love it?
7588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591 10.[012]*)
7592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593 10.*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 esac
7596 ;;
7597 esac
7598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599 _lt_dar_single_mod='$single_module'
7600 fi
7601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603 else
7604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605 fi
7606 if test "$DSYMUTIL" != ":"; then
7607 _lt_dsymutil='~$DSYMUTIL $lib || :'
7608 else
7609 _lt_dsymutil=
7610 fi
7611 ;;
7612 esac
7613
7614
d7040cdb
SE
7615for ac_header in dlfcn.h
7616do
7617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618echo "$as_me:$LINENO: checking for $ac_header" >&5
7619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h. */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h. */
7629$ac_includes_default
7630
7631#include <$ac_header>
7632_ACEOF
7633rm -f conftest.$ac_objext
7634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7357c5b6
AM
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
d7040cdb
SE
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 eval "$as_ac_Header=yes"
7656else
7657 echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660eval "$as_ac_Header=no"
7661fi
7662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663fi
7664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7666if test `eval echo '${'$as_ac_Header'}'` = yes; then
7667 cat >>confdefs.h <<_ACEOF
7668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669_ACEOF
7670
7671fi
7672
7673done
7674
7675
7676
718a6fd8
SE
7677# Set options
7678
7679
7680
7681 enable_dlopen=no
7682
7683
7684 enable_win32_dll=no
7685
7686
7687
7688 # Check whether --enable-static or --disable-static was given.
7689if test "${enable_static+set}" = set; then
7690 enableval="$enable_static"
7691 p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7695 *)
7696 enable_static=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7700 IFS="$lt_save_ifs"
7701 if test "X$pkg" = "X$p"; then
7702 enable_static=yes
7703 fi
7704 done
7705 IFS="$lt_save_ifs"
7706 ;;
7707 esac
7708else
7709 enable_static=yes
7710fi;
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720# Check whether --with-pic or --without-pic was given.
7721if test "${with_pic+set}" = set; then
7722 withval="$with_pic"
7723 pic_mode="$withval"
7724else
7725 pic_mode=default
7726fi;
7727
7728test -z "$pic_mode" && pic_mode=default
7729
7730
7731
7732
7733
7734
7735
7736 # Check whether --enable-fast-install or --disable-fast-install was given.
7737if test "${enable_fast_install+set}" = set; then
7738 enableval="$enable_fast_install"
7739 p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_fast_install=yes ;;
7742 no) enable_fast_install=no ;;
7743 *)
7744 enable_fast_install=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_fast_install=yes
7751 fi
7752 done
7753 IFS="$lt_save_ifs"
7754 ;;
7755 esac
7756else
7757 enable_fast_install=yes
7758fi;
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
d7040cdb
SE
7769# This can be used to rebuild libtool when needed
7770LIBTOOL_DEPS="$ltmain"
7771
7772# Always use our own libtool.
7773LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799test -z "$LN_S" && LN_S="ln -s"
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814if test -n "${ZSH_VERSION+set}" ; then
7815 setopt NO_GLOB_SUBST
7816fi
7817
7818echo "$as_me:$LINENO: checking for objdir" >&5
7819echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7820if test "${lt_cv_objdir+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7822else
7823 rm -f .libs 2>/dev/null
7824mkdir .libs 2>/dev/null
7825if test -d .libs; then
7826 lt_cv_objdir=.libs
7827else
7828 # MS-DOS does not allow filenames that begin with a dot.
7829 lt_cv_objdir=_libs
7830fi
7831rmdir .libs 2>/dev/null
7832fi
7833echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7834echo "${ECHO_T}$lt_cv_objdir" >&6
7835objdir=$lt_cv_objdir
7836
7837
7838
7839
7840
7841cat >>confdefs.h <<_ACEOF
7842#define LT_OBJDIR "$lt_cv_objdir/"
7843_ACEOF
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861case $host_os in
7862aix3*)
7863 # AIX sometimes has problems with the GCC collect2 program. For some
7864 # reason, if we set the COLLECT_NAMES environment variable, the problems
7865 # vanish in a puff of smoke.
7866 if test "X${COLLECT_NAMES+set}" != Xset; then
7867 COLLECT_NAMES=
7868 export COLLECT_NAMES
7869 fi
7870 ;;
7871esac
7872
7873# Sed substitution that helps us do robust quoting. It backslashifies
7874# metacharacters that are still active within double-quoted strings.
7875sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7876
7877# Same as above, but do not quote variable references.
7878double_quote_subst='s/\(["`\\]\)/\\\1/g'
7879
7880# Sed substitution to delay expansion of an escaped shell variable in a
7881# double_quote_subst'ed string.
7882delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7883
7884# Sed substitution to delay expansion of an escaped single quote.
7885delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7886
7887# Sed substitution to avoid accidental globbing in evaled expressions
7888no_glob_subst='s/\*/\\\*/g'
7889
7890# Global variables:
7891ofile=libtool
7892can_build_shared=yes
7893
7894# All known linkers require a `.a' archive for static linking (except MSVC,
7895# which needs '.lib').
7896libext=a
7897
7898with_gnu_ld="$lt_cv_prog_gnu_ld"
7899
7900old_CC="$CC"
7901old_CFLAGS="$CFLAGS"
7902
7903# Set sane defaults for various variables
7904test -z "$CC" && CC=cc
7905test -z "$LTCC" && LTCC=$CC
7906test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907test -z "$LD" && LD=ld
7908test -z "$ac_objext" && ac_objext=o
7909
7910for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917done
7918cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7919
7920
7921# Only perform the check for file, if the check method requires it
7922test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923case $deplibs_check_method in
7924file_magic*)
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7927echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7928if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 case $MAGIC_CMD in
7932[\\/*] | ?:[\\/]*)
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934 ;;
7935*)
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7940 IFS="$lt_save_ifs"
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7946 "file_magic "*)
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7951 :
7952 else
7953 cat <<_LT_EOF 1>&2
7954
7955*** Warning: the command libtool uses to detect shared libraries,
7956*** $file_magic_cmd, produces output that libtool cannot recognize.
7957*** The result is that libtool may fail to recognize shared libraries
7958*** as such. This will affect the creation of libtool libraries that
7959*** depend on shared libraries, but programs linked with such libtool
7960*** libraries will work regardless of this problem. Nevertheless, you
7961*** may want to report the problem to your system manager and/or to
7962*** bug-libtool@gnu.org
7963
7964_LT_EOF
7965 fi ;;
7966 esac
7967 fi
7968 break
7969 fi
7970 done
7971 IFS="$lt_save_ifs"
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7973 ;;
7974esac
7975fi
7976
7977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978if test -n "$MAGIC_CMD"; then
7979 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7980echo "${ECHO_T}$MAGIC_CMD" >&6
7981else
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984fi
7985
7986
7987
7988
7989
7990if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
7992 echo "$as_me:$LINENO: checking for file" >&5
7993echo $ECHO_N "checking for file... $ECHO_C" >&6
7994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 case $MAGIC_CMD in
7998[\\/*] | ?:[\\/]*)
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000 ;;
8001*)
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8006 IFS="$lt_save_ifs"
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8012 "file_magic "*)
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8017 :
8018 else
8019 cat <<_LT_EOF 1>&2
8020
8021*** Warning: the command libtool uses to detect shared libraries,
8022*** $file_magic_cmd, produces output that libtool cannot recognize.
8023*** The result is that libtool may fail to recognize shared libraries
8024*** as such. This will affect the creation of libtool libraries that
8025*** depend on shared libraries, but programs linked with such libtool
8026*** libraries will work regardless of this problem. Nevertheless, you
8027*** may want to report the problem to your system manager and/or to
8028*** bug-libtool@gnu.org
8029
8030_LT_EOF
8031 fi ;;
8032 esac
8033 fi
8034 break
8035 fi
8036 done
8037 IFS="$lt_save_ifs"
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8039 ;;
8040esac
8041fi
8042
8043MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044if test -n "$MAGIC_CMD"; then
8045 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8046echo "${ECHO_T}$MAGIC_CMD" >&6
8047else
8048 echo "$as_me:$LINENO: result: no" >&5
8049echo "${ECHO_T}no" >&6
8050fi
8051
8052
8053 else
8054 MAGIC_CMD=:
8055 fi
8056fi
8057
8058 fi
8059 ;;
8060esac
8061
8062# Use C for the default configuration in the libtool script
8063
8064lt_save_CC="$CC"
8065ac_ext=c
8066ac_cpp='$CPP $CPPFLAGS'
8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072# Source file extension for C test sources.
8073ac_ext=c
8074
8075# Object file extension for compiled C test sources.
8076objext=o
8077objext=$objext
8078
8079# Code to be used in simple compile tests
8080lt_simple_compile_test_code="int some_variable = 0;"
8081
8082# Code to be used in simple link tests
8083lt_simple_link_test_code='int main(){return(0);}'
8084
8085
8086
8087
8088
8089
8090
8091# If no C compiler was specified, use CC.
8092LTCC=${LTCC-"$CC"}
8093
8094# If no C compiler flags were specified, use CFLAGS.
8095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8096
8097# Allow CC to be a program name with arguments.
8098compiler=$CC
8099
8100# Save the default compiler, since it gets overwritten when the other
8101# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102compiler_DEFAULT=$CC
8103
8104# save warnings/boilerplate of simple test code
8105ac_outfile=conftest.$ac_objext
8106echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108_lt_compiler_boilerplate=`cat conftest.err`
8109$RM conftest*
8110
8111ac_outfile=conftest.$ac_objext
8112echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8115$RM -r conftest*
d7040cdb
SE
8116
8117
8118## CAVEAT EMPTOR:
8119## There is no encapsulation within the following macros, do not change
8120## the running order or otherwise move them around unless you know exactly
8121## what you are doing...
8122if test -n "$compiler"; then
8123
8124lt_prog_compiler_no_builtin_flag=
8125
8126if test "$GCC" = yes; then
8127 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8128
8129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8130echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 lt_cv_prog_compiler_rtti_exceptions=no
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8137 lt_compiler_flag="-fno-rtti -fno-exceptions"
8138 # Insert the option either (1) after the last *FLAGS variable, or
8139 # (2) before a word containing "conftest.", or (3) at the end.
8140 # Note that $ac_compile itself does not contain backslashes and begins
8141 # with a dollar sign (not a hyphen), so the echo should work correctly.
8142 # The option is referenced via a variable to avoid confusing sed.
8143 lt_compile=`echo "$ac_compile" | $SED \
8144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8146 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8147 (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
d7040cdb
SE
8148 (eval "$lt_compile" 2>conftest.err)
8149 ac_status=$?
8150 cat conftest.err >&5
718a6fd8 8151 echo "$as_me:8151: \$? = $ac_status" >&5
d7040cdb
SE
8152 if (exit $ac_status) && test -s "$ac_outfile"; then
8153 # The compiler can only warn and ignore the option if not recognized
8154 # So say no if there are warnings other than the usual output.
8155 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8158 lt_cv_prog_compiler_rtti_exceptions=yes
8159 fi
8160 fi
8161 $RM conftest*
8162
8163fi
8164echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8165echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8166
8167if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8169else
8170 :
8171fi
8172
8173fi
8174
8175
8176
8177
8178
8179
8180 lt_prog_compiler_wl=
8181lt_prog_compiler_pic=
8182lt_prog_compiler_static=
8183
8184echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8185echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8186
8187 if test "$GCC" = yes; then
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_static='-static'
8190
8191 case $host_os in
8192 aix*)
8193 # All AIX code is PIC.
8194 if test "$host_cpu" = ia64; then
8195 # AIX 5 now supports IA64 processor
8196 lt_prog_compiler_static='-Bstatic'
8197 fi
8198 ;;
8199
8200 amigaos*)
718a6fd8
SE
8201 case $host_cpu in
8202 powerpc)
8203 # see comment about AmigaOS4 .so support
8204 lt_prog_compiler_pic='-fPIC'
8205 ;;
8206 m68k)
8207 # FIXME: we need at least 68020 code to build shared libraries, but
8208 # adding the `-m68020' flag to GCC prevents building anything better,
8209 # like `-m68040'.
8210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8211 ;;
8212 esac
d7040cdb
SE
8213 ;;
8214
8215 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8216 # PIC is the default for these OSes.
8217 ;;
8218
718a6fd8 8219 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8220 # This hack is so that the source file can tell whether it is being
8221 # built for inclusion in a dll (and should export symbols for example).
8222 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8223 # (--disable-auto-import) libraries
8224 lt_prog_compiler_pic='-DDLL_EXPORT'
8225 ;;
8226
8227 darwin* | rhapsody*)
8228 # PIC is the default on this platform
8229 # Common symbols not allowed in MH_DYLIB files
8230 lt_prog_compiler_pic='-fno-common'
8231 ;;
8232
8233 hpux*)
718a6fd8
SE
8234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8236 # sets the default TLS model and affects inlining.
d7040cdb 8237 case $host_cpu in
718a6fd8 8238 hppa*64*)
d7040cdb
SE
8239 # +Z the default
8240 ;;
8241 *)
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244 esac
8245 ;;
8246
8247 interix[3-9]*)
8248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8249 # Instead, we relocate shared libraries at runtime.
8250 ;;
8251
8252 msdosdjgpp*)
8253 # Just because we use GCC doesn't mean we suddenly get shared libraries
8254 # on systems that don't support them.
8255 lt_prog_compiler_can_build_shared=no
8256 enable_shared=no
8257 ;;
8258
8259 *nto* | *qnx*)
8260 # QNX uses GNU C++, but need to define -shared option too, otherwise
8261 # it will coredump.
8262 lt_prog_compiler_pic='-fPIC -shared'
8263 ;;
8264
8265 sysv4*MP*)
8266 if test -d /usr/nec; then
8267 lt_prog_compiler_pic=-Kconform_pic
8268 fi
8269 ;;
8270
8271 *)
8272 lt_prog_compiler_pic='-fPIC'
8273 ;;
8274 esac
8275 else
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8277 case $host_os in
8278 aix*)
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
8283 else
8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8285 fi
8286 ;;
d7040cdb 8287
718a6fd8 8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 ;;
8293
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 # not for PA HP-UX.
8298 case $host_cpu in
8299 hppa*64*|ia64*)
8300 # +Z the default
8301 ;;
8302 *)
8303 lt_prog_compiler_pic='+Z'
8304 ;;
8305 esac
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
8308 ;;
8309
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
8315
8316 linux* | k*bsd*-gnu)
8317 case $cc_basename in
718a6fd8
SE
8318 # old Intel for x86_64 which still supported -KPIC.
8319 ecc*)
d7040cdb
SE
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
718a6fd8
SE
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8326 icc* | ifort*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8330 ;;
8331 # Lahey Fortran 8.1.
8332 lf95*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8336 ;;
d7040cdb
SE
8337 pgcc* | pgf77* | pgf90* | pgf95*)
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
718a6fd8
SE
8349 xl*)
8350 # IBM XL C 8.0/Fortran 10.1 on PPC
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8354 ;;
d7040cdb
SE
8355 *)
8356 case `$CC -V 2>&1 | sed 5q` in
8357 *Sun\ C*)
8358 # Sun C 5.9
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
8361 lt_prog_compiler_wl='-Wl,'
8362 ;;
8363 *Sun\ F*)
8364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 lt_prog_compiler_wl=''
8368 ;;
8369 esac
8370 ;;
8371 esac
8372 ;;
8373
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8377 ;;
8378
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
8384
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
8389 ;;
8390
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
8393 ;;
8394
8395 solaris*)
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
8401 *)
8402 lt_prog_compiler_wl='-Wl,';;
8403 esac
8404 ;;
8405
8406 sunos4*)
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
8410 ;;
8411
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 sysv4*MP*)
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
8423 ;;
8424
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
8434 ;;
8435
8436 uts4*)
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 ;;
8440
8441 *)
8442 lt_prog_compiler_can_build_shared=no
8443 ;;
8444 esac
8445 fi
8446
8447case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8451 ;;
8452 *)
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8454 ;;
8455esac
8456echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8457echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8458
8459
8460
8461
8462
8463
8464#
8465# Check to make sure the PIC flag actually works.
8466#
8467if test -n "$lt_prog_compiler_pic"; then
8468 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
718a6fd8 8470if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
d7040cdb
SE
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
718a6fd8 8473 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8486 (eval echo "\"\$as_me:8486: $lt_compile\"" >&5)
d7040cdb
SE
8487 (eval "$lt_compile" 2>conftest.err)
8488 ac_status=$?
8489 cat conftest.err >&5
718a6fd8 8490 echo "$as_me:8490: \$? = $ac_status" >&5
d7040cdb
SE
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
8494 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8497 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8498 fi
8499 fi
8500 $RM conftest*
8501
8502fi
718a6fd8
SE
8503echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8504echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
d7040cdb 8505
718a6fd8 8506if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8507 case $lt_prog_compiler_pic in
8508 "" | " "*) ;;
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510 esac
8511else
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8514fi
8515
8516fi
8517
8518
8519
8520
8521
8522
8523#
8524# Check to make sure the static flag actually works.
8525#
8526wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8527echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
718a6fd8 8529if test "${lt_cv_prog_compiler_static_works+set}" = set; then
d7040cdb
SE
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8531else
718a6fd8 8532 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
8542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8545 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8546 fi
8547 else
718a6fd8 8548 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8549 fi
8550 fi
718a6fd8 8551 $RM -r conftest*
d7040cdb
SE
8552 LDFLAGS="$save_LDFLAGS"
8553
8554fi
718a6fd8
SE
8555echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8556echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
d7040cdb 8557
718a6fd8 8558if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8559 :
8560else
8561 lt_prog_compiler_static=
8562fi
8563
8564
8565
8566
8567
8568
8569
8570 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8572if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8574else
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8577 mkdir conftest
8578 cd conftest
8579 mkdir out
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8581
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8591 (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
d7040cdb
SE
8592 (eval "$lt_compile" 2>out/conftest.err)
8593 ac_status=$?
8594 cat out/conftest.err >&5
718a6fd8 8595 echo "$as_me:8595: \$? = $ac_status" >&5
d7040cdb
SE
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597 then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
8600 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8604 fi
8605 fi
8606 chmod u+w . 2>&5
8607 $RM conftest*
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8612 cd ..
8613 $RM -r conftest
8614 $RM conftest*
8615
8616fi
8617echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8618echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8619
8620
8621
8622
8623
8624
8625 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8626echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8627if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8632 mkdir conftest
8633 cd conftest
8634 mkdir out
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8636
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
718a6fd8 8646 (eval echo "\"\$as_me:8646: $lt_compile\"" >&5)
d7040cdb
SE
8647 (eval "$lt_compile" 2>out/conftest.err)
8648 ac_status=$?
8649 cat out/conftest.err >&5
718a6fd8 8650 echo "$as_me:8650: \$? = $ac_status" >&5
d7040cdb
SE
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8652 then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
8655 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8659 fi
8660 fi
8661 chmod u+w . 2>&5
8662 $RM conftest*
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8667 cd ..
8668 $RM -r conftest
8669 $RM conftest*
8670
8671fi
8672echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8673echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8674
8675
8676
8677
8678hard_links="nottested"
8679if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
8681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8682echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8683 hard_links=yes
8684 $RM conftest*
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8686 touch conftest.a
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8689 echo "$as_me:$LINENO: result: $hard_links" >&5
8690echo "${ECHO_T}$hard_links" >&6
8691 if test "$hard_links" = no; then
8692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8694 need_locks=warn
8695 fi
8696else
8697 need_locks=no
8698fi
8699
8700
8701
8702
8703
8704
8705 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8707
8708 runpath_var=
8709 allow_undefined_flag=
8710 always_export_symbols=no
8711 archive_cmds=
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8718 hardcode_direct=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 inherit_rpath=no
8726 link_all_deplibs=unknown
8727 module_cmds=
8728 module_expsym_cmds=
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8735 include_expsyms=
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
718a6fd8 8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
718a6fd8 8746 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8747 extract_expsyms_cmds=
8748
8749 case $host_os in
718a6fd8 8750 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8755 with_gnu_ld=no
8756 fi
8757 ;;
8758 interix*)
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8760 with_gnu_ld=yes
8761 ;;
8762 openbsd*)
8763 with_gnu_ld=no
8764 ;;
8765 esac
8766
8767 ld_shlibs=yes
8768 if test "$with_gnu_ld" = yes; then
8769 # If archive_cmds runs LD, not CC, wlarc should be empty
8770 wlarc='${wl}'
8771
8772 # Set some defaults for GNU ld with shared library support. These
8773 # are reset later if shared libraries are not supported. Putting them
8774 # here allows them to be overridden if necessary.
8775 runpath_var=LD_RUN_PATH
8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8777 export_dynamic_flag_spec='${wl}--export-dynamic'
8778 # ancient GNU ld didn't support --whole-archive et. al.
8779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8780 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8781 else
8782 whole_archive_flag_spec=
8783 fi
8784 supports_anon_versioning=no
8785 case `$LD -v 2>&1` in
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
8792
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
e81819a5 8795 aix[3-9]*)
d7040cdb
SE
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8800
8801*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8802*** to be unable to reliably create shared libraries on AIX.
8803*** Therefore, libtool is disabling shared libraries support. If you
8804*** really care for shared libraries, you may want to modify your PATH
8805*** so that a non-GNU linker is found, and then restart.
8806
8807_LT_EOF
8808 fi
8809 ;;
8810
8811 amigaos*)
718a6fd8
SE
8812 case $host_cpu in
8813 powerpc)
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8817 ;;
8818 m68k)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8822 ;;
8823 esac
d7040cdb
SE
8824 ;;
8825
8826 beos*)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 else
8833 ld_shlibs=no
8834 fi
8835 ;;
8836
718a6fd8 8837 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 allow_undefined_flag=unsupported
8842 always_export_symbols=no
8843 enable_shared_with_static_runtimes=yes
8844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8845
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8855 fi~
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8859 fi
8860 ;;
8861
8862 interix[3-9]*)
8863 hardcode_direct=no
8864 hardcode_shlibpath_var=no
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8868 # Instead, shared libraries are loaded at an image base (0x10000000 by
8869 # default) and relocated if they conflict, which is a slow very memory
8870 # consuming and fragmenting process. To avoid this, we pick a random,
8871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8874 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'
8875 ;;
8876
8877 gnu* | linux* | tpf* | k*bsd*-gnu)
8878 tmp_diet=no
8879 if test "$host_os" = linux-dietlibc; then
8880 case $cc_basename in
8881 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8882 esac
8883 fi
8884 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8885 && test "$tmp_diet" = no
8886 then
8887 tmp_addflag=
718a6fd8 8888 tmp_sharedflag='-shared'
d7040cdb
SE
8889 case $cc_basename,$host_cpu in
8890 pgcc*) # Portland Group C compiler
8891 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'
8892 tmp_addflag=' $pic_flag'
8893 ;;
8894 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8895 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'
8896 tmp_addflag=' $pic_flag -Mnomain' ;;
8897 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8898 tmp_addflag=' -i_dynamic' ;;
8899 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8900 tmp_addflag=' -i_dynamic -nofor_main' ;;
8901 ifc* | ifort*) # Intel Fortran compiler
8902 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8903 lf95*) # Lahey Fortran 8.1
8904 whole_archive_flag_spec=
8905 tmp_sharedflag='--shared' ;;
8906 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8907 tmp_sharedflag='-qmkshrobj'
8908 tmp_addflag= ;;
d7040cdb
SE
8909 esac
8910 case `$CC -V 2>&1 | sed 5q` in
8911 *Sun\ C*) # Sun C 5.9
8912 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'
8913 compiler_needs_object=yes
8914 tmp_sharedflag='-G' ;;
8915 *Sun\ F*) # Sun Fortran 8.3
8916 tmp_sharedflag='-G' ;;
d7040cdb
SE
8917 esac
8918 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919
8920 if test "x$supports_anon_versioning" = xyes; then
8921 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8922 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8923 echo "local: *; };" >> $output_objdir/$libname.ver~
8924 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8925 fi
718a6fd8
SE
8926
8927 case $cc_basename in
8928 xlf*)
8929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8930 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8931 hardcode_libdir_flag_spec=
8932 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8934 if test "x$supports_anon_versioning" = xyes; then
8935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937 echo "local: *; };" >> $output_objdir/$libname.ver~
8938 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8939 fi
8940 ;;
8941 esac
d7040cdb
SE
8942 else
8943 ld_shlibs=no
8944 fi
8945 ;;
8946
8947 netbsd*)
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8950 wlarc=
8951 else
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8954 fi
8955 ;;
8956
8957 solaris*)
8958 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8959 ld_shlibs=no
8960 cat <<_LT_EOF 1>&2
8961
8962*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963*** create shared libraries on Solaris systems. Therefore, libtool
8964*** is disabling shared libraries support. We urge you to upgrade GNU
8965*** binutils to release 2.9.1 or newer. Another option is to modify
8966*** your PATH or compiler configuration so that the native linker is
8967*** used, and then restart.
8968
8969_LT_EOF
8970 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973 else
8974 ld_shlibs=no
8975 fi
8976 ;;
8977
8978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979 case `$LD -v 2>&1` in
8980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8981 ld_shlibs=no
8982 cat <<_LT_EOF 1>&2
8983
8984*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985*** reliably create shared libraries on SCO systems. Therefore, libtool
8986*** is disabling shared libraries support. We urge you to upgrade GNU
8987*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8988*** your PATH or compiler configuration so that the native linker is
8989*** used, and then restart.
8990
8991_LT_EOF
8992 ;;
8993 *)
8994 # For security reasons, it is highly recommended that you always
8995 # use absolute paths for naming shared libraries, and exclude the
8996 # DT_RUNPATH tag from executables and libraries. But doing so
8997 # requires that you compile everything twice, which is a pain.
8998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006 esac
9007 ;;
9008
9009 sunos4*)
9010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011 wlarc=
9012 hardcode_direct=yes
9013 hardcode_shlibpath_var=no
9014 ;;
9015
9016 *)
9017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9022 fi
9023 ;;
9024 esac
9025
9026 if test "$ld_shlibs" = no; then
9027 runpath_var=
9028 hardcode_libdir_flag_spec=
9029 export_dynamic_flag_spec=
9030 whole_archive_flag_spec=
9031 fi
9032 else
9033 # PORTME fill in a description of your system's linker (not GNU ld)
9034 case $host_os in
9035 aix3*)
9036 allow_undefined_flag=unsupported
9037 always_export_symbols=yes
9038 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'
9039 # Note: this linker hardcodes the directories in LIBPATH if there
9040 # are no directories specified by -L.
9041 hardcode_minus_L=yes
9042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043 # Neither direct hardcoding nor static linking is supported with a
9044 # broken collect2.
9045 hardcode_direct=unsupported
9046 fi
9047 ;;
9048
e81819a5 9049 aix[4-9]*)
d7040cdb
SE
9050 if test "$host_cpu" = ia64; then
9051 # On IA64, the linker does run time linking by default, so we don't
9052 # have to do anything special.
9053 aix_use_runtimelinking=no
9054 exp_sym_flag='-Bexport'
9055 no_entry_flag=""
9056 else
9057 # If we're using GNU nm, then we don't want the "-C" option.
9058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9060 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'
9061 else
9062 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'
9063 fi
9064 aix_use_runtimelinking=no
9065
9066 # Test if we are trying to use run time linking or normal
9067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9068 # need to do runtime linking.
e81819a5 9069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
9070 for ld_flag in $LDFLAGS; do
9071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9072 aix_use_runtimelinking=yes
9073 break
9074 fi
9075 done
9076 ;;
9077 esac
9078
9079 exp_sym_flag='-bexport'
9080 no_entry_flag='-bnoentry'
9081 fi
9082
9083 # When large executables or shared objects are built, AIX ld can
9084 # have problems creating the table of contents. If linking a library
9085 # or program results in "error TOC overflow" add -mminimal-toc to
9086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9088
9089 archive_cmds=''
9090 hardcode_direct=yes
9091 hardcode_direct_absolute=yes
9092 hardcode_libdir_separator=':'
9093 link_all_deplibs=yes
9094 file_list_spec='${wl}-f,'
9095
9096 if test "$GCC" = yes; then
9097 case $host_os in aix4.[012]|aix4.[012].*)
9098 # We only want to do this on AIX 4.2 and lower, the check
9099 # below for broken collect2 doesn't work under 4.3+
9100 collect2name=`${CC} -print-prog-name=collect2`
9101 if test -f "$collect2name" &&
9102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9103 then
9104 # We have reworked collect2
9105 :
9106 else
9107 # We have old collect2
9108 hardcode_direct=unsupported
9109 # It fails to find uninstalled libraries when the uninstalled
9110 # path is not listed in the libpath. Setting hardcode_minus_L
9111 # to unsupported forces relinking
9112 hardcode_minus_L=yes
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_libdir_separator=
9115 fi
9116 ;;
9117 esac
9118 shared_flag='-shared'
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag="$shared_flag "'${wl}-G'
9121 fi
9122 else
9123 # not using gcc
9124 if test "$host_cpu" = ia64; then
9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9126 # chokes on -Wl,-G. The following line is correct:
9127 shared_flag='-G'
9128 else
9129 if test "$aix_use_runtimelinking" = yes; then
9130 shared_flag='${wl}-G'
9131 else
9132 shared_flag='${wl}-bM:SRE'
9133 fi
9134 fi
9135 fi
9136
718a6fd8 9137 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9138 # It seems that -bexpall does not export symbols beginning with
9139 # underscore (_), so it is better to generate a list of symbols to export.
9140 always_export_symbols=yes
9141 if test "$aix_use_runtimelinking" = yes; then
9142 # Warning - without using the other runtime loading flags (-brtl),
9143 # -berok will link without error, but may produce a broken library.
9144 allow_undefined_flag='-berok'
9145 # Determine the default libpath from the value encoded in an
9146 # empty executable.
9147 cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h. */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h. */
9153
9154int
9155main ()
9156{
9157
9158 ;
9159 return 0;
9160}
9161_ACEOF
9162rm -f conftest.$ac_objext conftest$ac_exeext
9163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
7357c5b6
AM
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
d7040cdb
SE
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184
9185lt_aix_libpath_sed='
9186 /Import File Strings/,/^$/ {
9187 /^0/ {
9188 s/^0 *\(.*\)$/\1/
9189 p
9190 }
9191 }'
9192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9193# Check for a 64-bit object if we didn't find anything.
9194if test -z "$aix_libpath"; then
9195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9196fi
9197else
9198 echo "$as_me: failed program was:" >&5
9199sed 's/^/| /' conftest.$ac_ext >&5
9200
9201fi
9202rm -f conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9205
9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207 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"
9208 else
9209 if test "$host_cpu" = ia64; then
9210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9211 allow_undefined_flag="-z nodefs"
9212 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"
9213 else
9214 # Determine the default libpath from the value encoded in an
9215 # empty executable.
9216 cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222
9223int
9224main ()
9225{
9226
9227 ;
9228 return 0;
9229}
9230_ACEOF
9231rm -f conftest.$ac_objext conftest$ac_exeext
9232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
7357c5b6
AM
9240 { ac_try='test -z "$ac_c_werror_flag"
9241 || test ! -s conftest.err'
d7040cdb
SE
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253
9254lt_aix_libpath_sed='
9255 /Import File Strings/,/^$/ {
9256 /^0/ {
9257 s/^0 *\(.*\)$/\1/
9258 p
9259 }
9260 }'
9261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262# Check for a 64-bit object if we didn't find anything.
9263if test -z "$aix_libpath"; then
9264 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265fi
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270fi
9271rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9274
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 # Exported symbols can be pulled into shared objects from archives
9281 whole_archive_flag_spec='$convenience'
9282 archive_cmds_need_lc=yes
9283 # This is similar to how AIX traditionally builds its shared libraries.
9284 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'
9285 fi
9286 fi
9287 ;;
9288
9289 amigaos*)
718a6fd8
SE
9290 case $host_cpu in
9291 powerpc)
9292 # see comment about AmigaOS4 .so support
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds=''
9295 ;;
9296 m68k)
9297 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)'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_minus_L=yes
9300 ;;
9301 esac
d7040cdb
SE
9302 ;;
9303
9304 bsdi[45]*)
9305 export_dynamic_flag_spec=-rdynamic
9306 ;;
9307
718a6fd8 9308 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9309 # When not using gcc, we currently assume that we are using
9310 # Microsoft Visual C++.
9311 # hardcode_libdir_flag_spec is actually meaningless, as there is
9312 # no search path for DLLs.
9313 hardcode_libdir_flag_spec=' '
9314 allow_undefined_flag=unsupported
9315 # Tell ltmain to make .lib files, not .a files.
9316 libext=lib
9317 # Tell ltmain to make .dll files, not .so files.
9318 shrext_cmds=".dll"
9319 # FIXME: Setting linknames here is a bad hack.
9320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9321 # The linker will automatically build a .lib file if we build a DLL.
9322 old_archive_from_new_cmds='true'
9323 # FIXME: Should let the user specify the lib program.
9324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9325 fix_srcfile_path='`cygpath -w "$srcfile"`'
9326 enable_shared_with_static_runtimes=yes
9327 ;;
9328
9329 darwin* | rhapsody*)
d7040cdb 9330
718a6fd8
SE
9331
9332 archive_cmds_need_lc=no
9333 hardcode_direct=no
9334 hardcode_automatic=yes
9335 hardcode_shlibpath_var=unsupported
9336 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 allow_undefined_flag="$_lt_dar_allow_undefined"
9339 case $cc_basename in
9340 ifort*) _lt_dar_can_shared=yes ;;
9341 *) _lt_dar_can_shared=$GCC ;;
9342 esac
9343 if test "$_lt_dar_can_shared" = "yes"; then
9344 output_verbose_link_cmd=echo
9345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9347 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9348 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9349
9350 else
9351 ld_shlibs=no
9352 fi
9353
d7040cdb
SE
9354 ;;
9355
9356 dgux*)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 freebsd1*)
9363 ld_shlibs=no
9364 ;;
9365
9366 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9367 # support. Future versions do this automatically, but an explicit c++rt0.o
9368 # does not break anything, and helps significantly (at the cost of a little
9369 # extra space).
9370 freebsd2.2*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9378 freebsd2*)
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=yes
9381 hardcode_minus_L=yes
9382 hardcode_shlibpath_var=no
9383 ;;
9384
9385 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9386 freebsd* | dragonfly*)
9387 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 hpux9*)
9394 if test "$GCC" = yes; then
9395 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'
9396 else
9397 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'
9398 fi
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_separator=:
9401 hardcode_direct=yes
9402
9403 # hardcode_minus_L: Not really in the search PATH,
9404 # but as the default location of the library.
9405 hardcode_minus_L=yes
9406 export_dynamic_flag_spec='${wl}-E'
9407 ;;
9408
9409 hpux10*)
9410 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9414 fi
9415 if test "$with_gnu_ld" = no; then
9416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9417 hardcode_libdir_flag_spec_ld='+b $libdir'
9418 hardcode_libdir_separator=:
9419 hardcode_direct=yes
9420 hardcode_direct_absolute=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 # hardcode_minus_L: Not really in the search PATH,
9423 # but as the default location of the library.
9424 hardcode_minus_L=yes
9425 fi
9426 ;;
9427
9428 hpux11*)
9429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9430 case $host_cpu in
9431 hppa*64*)
9432 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 ;;
9434 ia64*)
718a6fd8 9435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9436 ;;
9437 *)
9438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9439 ;;
9440 esac
9441 else
9442 case $host_cpu in
9443 hppa*64*)
9444 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 ;;
9446 ia64*)
9447 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 *)
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 esac
9453 fi
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457
9458 case $host_cpu in
9459 hppa*64*|ia64*)
9460 hardcode_direct=no
9461 hardcode_shlibpath_var=no
9462 ;;
9463 *)
9464 hardcode_direct=yes
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9467
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9471 ;;
9472 esac
9473 fi
9474 ;;
9475
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 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'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat >conftest.$ac_ext <<_ACEOF
9485int foo(void) {}
9486_ACEOF
9487rm -f conftest.$ac_objext conftest$ac_exeext
9488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } &&
7357c5b6
AM
9496 { ac_try='test -z "$ac_c_werror_flag"
9497 || test ! -s conftest.err'
d7040cdb
SE
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 (eval $ac_try) 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 (eval $ac_try) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 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'
9510
9511else
9512 echo "$as_me: failed program was:" >&5
9513sed 's/^/| /' conftest.$ac_ext >&5
9514
9515fi
9516rm -f conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 LDFLAGS="$save_LDFLAGS"
9519 else
9520 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'
9521 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'
9522 fi
9523 archive_cmds_need_lc='no'
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 inherit_rpath=yes
9527 link_all_deplibs=yes
9528 ;;
9529
9530 netbsd*)
9531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9533 else
9534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9535 fi
9536 hardcode_libdir_flag_spec='-R$libdir'
9537 hardcode_direct=yes
9538 hardcode_shlibpath_var=no
9539 ;;
9540
9541 newsos6)
9542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 hardcode_direct=yes
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 hardcode_shlibpath_var=no
9547 ;;
9548
9549 *nto* | *qnx*)
9550 ;;
9551
9552 openbsd*)
718a6fd8
SE
9553 if test -f /usr/libexec/ld.so; then
9554 hardcode_direct=yes
9555 hardcode_shlibpath_var=no
9556 hardcode_direct_absolute=yes
9557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9561 export_dynamic_flag_spec='${wl}-E'
9562 else
9563 case $host_os in
9564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 hardcode_libdir_flag_spec='-R$libdir'
9567 ;;
9568 *)
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9571 ;;
9572 esac
9573 fi
9574 else
9575 ld_shlibs=no
d7040cdb
SE
9576 fi
9577 ;;
9578
9579 os2*)
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_minus_L=yes
9582 allow_undefined_flag=unsupported
9583 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'
9584 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9585 ;;
9586
9587 osf3*)
9588 if test "$GCC" = yes; then
9589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9590 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'
9591 else
9592 allow_undefined_flag=' -expect_unresolved \*'
9593 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'
9594 fi
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 hardcode_libdir_separator=:
9598 ;;
9599
9600 osf4* | osf5*) # as osf3* with the addition of -msym flag
9601 if test "$GCC" = yes; then
9602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9603 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'
9604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605 else
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 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'
9608 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~
9609 $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'
9610
9611 # Both c and cxx compiler support -rpath directly
9612 hardcode_libdir_flag_spec='-rpath $libdir'
9613 fi
9614 archive_cmds_need_lc='no'
9615 hardcode_libdir_separator=:
9616 ;;
9617
9618 solaris*)
9619 no_undefined_flag=' -z defs'
9620 if test "$GCC" = yes; then
9621 wlarc='${wl}'
9622 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9625 else
9626 case `$CC -V 2>&1` in
9627 *"Compilers 5.0"*)
9628 wlarc=''
9629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9632 ;;
9633 *)
9634 wlarc='${wl}'
9635 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9637 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9638 ;;
9639 esac
9640 fi
9641 hardcode_libdir_flag_spec='-R$libdir'
9642 hardcode_shlibpath_var=no
9643 case $host_os in
9644 solaris2.[0-5] | solaris2.[0-5].*) ;;
9645 *)
9646 # The compiler driver will combine and reorder linker options,
9647 # but understands `-z linker_flag'. GCC discards it without `$wl',
9648 # but is careful enough not to reorder.
9649 # Supported since Solaris 2.6 (maybe 2.5.1?)
9650 if test "$GCC" = yes; then
9651 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9652 else
9653 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9654 fi
9655 ;;
9656 esac
9657 link_all_deplibs=yes
9658 ;;
9659
9660 sunos4*)
9661 if test "x$host_vendor" = xsequent; then
9662 # Use $CC to link under sequent, because it throws in some extra .o
9663 # files that make .init and .fini sections work.
9664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9665 else
9666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9667 fi
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_direct=yes
9670 hardcode_minus_L=yes
9671 hardcode_shlibpath_var=no
9672 ;;
9673
9674 sysv4)
9675 case $host_vendor in
9676 sni)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_direct=yes # is this really true???
9679 ;;
9680 siemens)
9681 ## LD is ld it makes a PLAMLIB
9682 ## CC just makes a GrossModule.
9683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9684 reload_cmds='$CC -r -o $output$reload_objs'
9685 hardcode_direct=no
9686 ;;
9687 motorola)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9690 ;;
9691 esac
9692 runpath_var='LD_RUN_PATH'
9693 hardcode_shlibpath_var=no
9694 ;;
9695
9696 sysv4.3*)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 export_dynamic_flag_spec='-Bexport'
9700 ;;
9701
9702 sysv4*MP*)
9703 if test -d /usr/nec; then
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 runpath_var=LD_RUN_PATH
9707 hardcode_runpath_var=yes
9708 ld_shlibs=yes
9709 fi
9710 ;;
9711
9712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9713 no_undefined_flag='${wl}-z,text'
9714 archive_cmds_need_lc=no
9715 hardcode_shlibpath_var=no
9716 runpath_var='LD_RUN_PATH'
9717
9718 if test "$GCC" = yes; then
9719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 else
9722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 fi
9725 ;;
9726
9727 sysv5* | sco3.2v5* | sco5v6*)
9728 # Note: We can NOT use -z defs as we might desire, because we do not
9729 # link with -lc, and that would cause any symbols used from libc to
9730 # always be unresolved, which means just about no library would
9731 # ever link correctly. If we're not using GNU ld we use -z text
9732 # though, which does catch some bad symbols but isn't as heavy-handed
9733 # as -z defs.
9734 no_undefined_flag='${wl}-z,text'
9735 allow_undefined_flag='${wl}-z,nodefs'
9736 archive_cmds_need_lc=no
9737 hardcode_shlibpath_var=no
9738 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9739 hardcode_libdir_separator=':'
9740 link_all_deplibs=yes
9741 export_dynamic_flag_spec='${wl}-Bexport'
9742 runpath_var='LD_RUN_PATH'
9743
9744 if test "$GCC" = yes; then
9745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 fi
9751 ;;
9752
9753 uts4*)
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 *)
9760 ld_shlibs=no
9761 ;;
9762 esac
9763
9764 if test x$host_vendor = xsni; then
9765 case $host in
9766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9767 export_dynamic_flag_spec='${wl}-Blargedynsym'
9768 ;;
9769 esac
9770 fi
9771 fi
9772
9773echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9774echo "${ECHO_T}$ld_shlibs" >&6
9775test "$ld_shlibs" = no && can_build_shared=no
9776
9777with_gnu_ld=$with_gnu_ld
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793#
9794# Do we need to explicitly link libc?
9795#
9796case "x$archive_cmds_need_lc" in
9797x|xyes)
9798 # Assume -lc should be added
9799 archive_cmds_need_lc=yes
9800
9801 if test "$enable_shared" = yes && test "$GCC" = yes; then
9802 case $archive_cmds in
9803 *'~'*)
9804 # FIXME: we may have to deal with multi-command sequences.
9805 ;;
9806 '$CC '*)
9807 # Test whether the compiler implicitly links with -lc since on some
9808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9809 # to ld, don't add -lc before -lgcc.
9810 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9812 $RM conftest*
9813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9814
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } 2>conftest.err; then
9820 soname=conftest
9821 lib=conftest
9822 libobjs=conftest.$ac_objext
9823 deplibs=
9824 wl=$lt_prog_compiler_wl
9825 pic_flag=$lt_prog_compiler_pic
9826 compiler_flags=-v
9827 linker_flags=-v
9828 verstring=
9829 output_objdir=.
9830 libname=conftest
9831 lt_save_allow_undefined_flag=$allow_undefined_flag
9832 allow_undefined_flag=
9833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }
9838 then
9839 archive_cmds_need_lc=no
9840 else
9841 archive_cmds_need_lc=yes
9842 fi
9843 allow_undefined_flag=$lt_save_allow_undefined_flag
9844 else
9845 cat conftest.err 1>&5
9846 fi
9847 $RM conftest*
9848 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9849echo "${ECHO_T}$archive_cmds_need_lc" >&6
9850 ;;
9851 esac
9852 fi
9853 ;;
9854esac
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10013echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
718a6fd8
SE
10014
10015if test "$GCC" = yes; then
d7040cdb
SE
10016 case $host_os in
10017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10018 *) lt_awk_arg="/^libraries:/" ;;
10019 esac
10020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10021 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10022 # if the path contains ";" then we assume it to be the separator
10023 # otherwise default to the standard path separator (i.e. ":") - it is
10024 # assumed that no part of a normal pathname contains ";" but that should
10025 # okay in the real world where ";" in dirpaths is itself problematic.
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10027 else
10028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10029 fi
10030 # Ok, now we have the path, separated by spaces, we can step through it
10031 # and add multilib dir if necessary.
10032 lt_tmp_lt_search_path_spec=
10033 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10034 for lt_sys_path in $lt_search_path_spec; do
10035 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10037 else
10038 test -d "$lt_sys_path" && \
10039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10040 fi
10041 done
10042 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10043BEGIN {RS=" "; FS="/|\n";} {
10044 lt_foo="";
10045 lt_count=0;
10046 for (lt_i = NF; lt_i > 0; lt_i--) {
10047 if ($lt_i != "" && $lt_i != ".") {
10048 if ($lt_i == "..") {
10049 lt_count++;
10050 } else {
10051 if (lt_count == 0) {
10052 lt_foo="/" $lt_i lt_foo;
10053 } else {
10054 lt_count--;
10055 }
10056 }
10057 }
10058 }
10059 if (lt_foo != "") { lt_freq[lt_foo]++; }
10060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10061}'`
10062 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10063else
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10065fi
10066library_names_spec=
10067libname_spec='lib$name'
10068soname_spec=
10069shrext_cmds=".so"
10070postinstall_cmds=
10071postuninstall_cmds=
10072finish_cmds=
10073finish_eval=
10074shlibpath_var=
10075shlibpath_overrides_runpath=unknown
10076version_type=none
10077dynamic_linker="$host_os ld.so"
10078sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079need_lib_prefix=unknown
10080hardcode_into_libs=no
10081
10082# when you set need_version to no, make sure it does not cause -set_version
10083# flags to be left without arguments
10084need_version=unknown
10085
10086case $host_os in
10087aix3*)
10088 version_type=linux
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10091
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 ;;
10095
e81819a5 10096aix[4-9]*)
d7040cdb
SE
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 else
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10111 case $host_os in
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo ' yes '
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10116 :
10117 else
10118 can_build_shared=no
10119 fi
10120 ;;
10121 esac
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 else
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 fi
10136 shlibpath_var=LIBPATH
10137 fi
10138 ;;
10139
10140amigaos*)
718a6fd8
SE
10141 case $host_cpu in
10142 powerpc)
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 ;;
10147 m68k)
d7040cdb
SE
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 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'
718a6fd8
SE
10151 ;;
10152 esac
d7040cdb
SE
10153 ;;
10154
10155beos*)
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10159 ;;
10160
10161bsdi[45]*)
10162 version_type=linux
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10173 ;;
10174
718a6fd8 10175cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10176 version_type=windows
10177 shrext_cmds=".dll"
10178 need_version=no
10179 need_lib_prefix=no
10180
718a6fd8
SE
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10193 fi'
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $RM \$dlpath'
10197 shlibpath_overrides_runpath=yes
10198
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10204 ;;
718a6fd8 10205 mingw* | cegcc*)
d7040cdb
SE
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10210 # It is most probably a Windows format PATH printed by
10211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10212 # path with ; separators, and with drive letters. We can handle the
10213 # drive letters (cygwin fileutils understands them), so leave them,
10214 # especially as we might pass files found there to a mingw objdump,
10215 # which wouldn't understand a cygwinified path. Ahh.
10216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10217 else
10218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10219 fi
10220 ;;
10221 pw32*)
10222 # pw32 DLLs use 'pw' prefix rather than 'lib'
10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 ;;
10225 esac
10226 ;;
10227
10228 *)
10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10230 ;;
10231 esac
10232 dynamic_linker='Win32 ld.exe'
10233 # FIXME: first we should search . and the directory the executable is in
10234 shlibpath_var=PATH
10235 ;;
10236
10237darwin* | rhapsody*)
10238 dynamic_linker="$host_os dyld"
10239 version_type=darwin
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10243 soname_spec='${libname}${release}${major}$shared_ext'
10244 shlibpath_overrides_runpath=yes
10245 shlibpath_var=DYLD_LIBRARY_PATH
10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10247
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10250 ;;
10251
10252dgux*)
10253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 ;;
10260
10261freebsd1*)
10262 dynamic_linker=no
10263 ;;
10264
10265freebsd* | dragonfly*)
10266 # DragonFly does not have aout. When/if they implement a new
10267 # versioning mechanism, adjust this.
10268 if test -x /usr/bin/objformat; then
10269 objformat=`/usr/bin/objformat`
10270 else
10271 case $host_os in
10272 freebsd[123]*) objformat=aout ;;
10273 *) objformat=elf ;;
10274 esac
10275 fi
10276 version_type=freebsd-$objformat
10277 case $version_type in
10278 freebsd-elf*)
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10280 need_version=no
10281 need_lib_prefix=no
10282 ;;
10283 freebsd-*)
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10285 need_version=yes
10286 ;;
10287 esac
10288 shlibpath_var=LD_LIBRARY_PATH
10289 case $host_os in
10290 freebsd2*)
10291 shlibpath_overrides_runpath=yes
10292 ;;
10293 freebsd3.[01]* | freebsdelf3.[01]*)
10294 shlibpath_overrides_runpath=yes
10295 hardcode_into_libs=yes
10296 ;;
10297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10299 shlibpath_overrides_runpath=no
10300 hardcode_into_libs=yes
10301 ;;
10302 *) # from 4.6 on, and DragonFly
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 ;;
10306 esac
10307 ;;
10308
10309gnu*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 hardcode_into_libs=yes
10317 ;;
10318
10319hpux9* | hpux10* | hpux11*)
10320 # Give a soname corresponding to the major version so that dld.sl refuses to
10321 # link against other versions.
10322 version_type=sunos
10323 need_lib_prefix=no
10324 need_version=no
10325 case $host_cpu in
10326 ia64*)
10327 shrext_cmds='.so'
10328 hardcode_into_libs=yes
10329 dynamic_linker="$host_os dld.so"
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 if test "X$HPUX_IA64_MODE" = X32; then
10335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10336 else
10337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10338 fi
10339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10340 ;;
10341 hppa*64*)
10342 shrext_cmds='.sl'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.sl"
10345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 ;;
10352 *)
10353 shrext_cmds='.sl'
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=SHLIB_PATH
10356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 ;;
10360 esac
10361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10362 postinstall_cmds='chmod 555 $lib'
10363 ;;
10364
10365interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10375 ;;
10376
10377irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10380 *)
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10394 ;;
10395 *)
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10405 ;;
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10412 ;;
10413
10414# No shared lib support for Linux oldld, aout, or coff.
10415linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10417 ;;
10418
10419# This must be Linux ELF.
10420linux* | k*bsd*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440
10441int
10442main ()
10443{
10444
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext conftest$ac_exeext
10450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451 (eval $ac_link) 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } &&
7357c5b6
AM
10458 { ac_try='test -z "$ac_c_werror_flag"
10459 || test ! -s conftest.err'
d7040cdb
SE
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; } &&
10465 { ac_try='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
718a6fd8 10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
d7040cdb
SE
10472 shlibpath_overrides_runpath=yes
10473fi
10474
10475else
10476 echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479fi
10480rm -f conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 LDFLAGS=$save_LDFLAGS
10483 libdir=$save_libdir
10484
10485 # This implies no fast_install, which is unacceptable.
10486 # Some rework will be needed to allow for fast_install
10487 # before this can be enabled.
10488 hardcode_into_libs=yes
10489
10490 # Append ld.so.conf contents to the search path
10491 if test -f /etc/ld.so.conf; then
718a6fd8 10492 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d7040cdb
SE
10493 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10494 fi
10495
10496 # We used to test for /lib/ld.so.1 and disable shared libraries on
10497 # powerpc, because MkLinux only supported shared libraries with the
10498 # GNU dynamic linker. Since this was broken with cross compilers,
10499 # most powerpc-linux boxes support dynamic linking these days and
10500 # people can always --disable-shared, the test was removed, and we
10501 # assume the GNU/Linux dynamic linker is in use.
10502 dynamic_linker='GNU/Linux ld.so'
10503 ;;
10504
10505netbsd*)
10506 version_type=sunos
10507 need_lib_prefix=no
10508 need_version=no
10509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10512 dynamic_linker='NetBSD (a.out) ld.so'
10513 else
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 dynamic_linker='NetBSD ld.elf_so'
10517 fi
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10521 ;;
10522
10523newsos6)
10524 version_type=linux
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=yes
10528 ;;
10529
10530*nto* | *qnx*)
10531 version_type=qnx
10532 need_lib_prefix=no
10533 need_version=no
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=no
10538 hardcode_into_libs=yes
10539 dynamic_linker='ldqnx.so'
10540 ;;
10541
10542openbsd*)
10543 version_type=sunos
10544 sys_lib_dlsearch_path_spec="/usr/lib"
10545 need_lib_prefix=no
10546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10547 case $host_os in
10548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10549 *) need_version=no ;;
10550 esac
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10555 case $host_os in
10556 openbsd2.[89] | openbsd2.[89].*)
10557 shlibpath_overrides_runpath=no
10558 ;;
10559 *)
10560 shlibpath_overrides_runpath=yes
10561 ;;
10562 esac
10563 else
10564 shlibpath_overrides_runpath=yes
10565 fi
10566 ;;
10567
10568os2*)
10569 libname_spec='$name'
10570 shrext_cmds=".dll"
10571 need_lib_prefix=no
10572 library_names_spec='$libname${shared_ext} $libname.a'
10573 dynamic_linker='OS/2 ld.exe'
10574 shlibpath_var=LIBPATH
10575 ;;
10576
10577osf3* | osf4* | osf5*)
10578 version_type=osf
10579 need_lib_prefix=no
10580 need_version=no
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10586 ;;
10587
10588rdos*)
10589 dynamic_linker=no
10590 ;;
10591
10592solaris*)
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 hardcode_into_libs=yes
10601 # ldd complains unless libraries are executable
10602 postinstall_cmds='chmod +x $lib'
10603 ;;
10604
10605sunos4*)
10606 version_type=sunos
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=yes
10611 if test "$with_gnu_ld" = yes; then
10612 need_lib_prefix=no
10613 fi
10614 need_version=yes
10615 ;;
10616
10617sysv4 | sysv4.3*)
10618 version_type=linux
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 case $host_vendor in
10623 sni)
10624 shlibpath_overrides_runpath=no
10625 need_lib_prefix=no
10626 runpath_var=LD_RUN_PATH
10627 ;;
10628 siemens)
10629 need_lib_prefix=no
10630 ;;
10631 motorola)
10632 need_lib_prefix=no
10633 need_version=no
10634 shlibpath_overrides_runpath=no
10635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10636 ;;
10637 esac
10638 ;;
10639
10640sysv4*MP*)
10641 if test -d /usr/nec ;then
10642 version_type=linux
10643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10644 soname_spec='$libname${shared_ext}.$major'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 fi
10647 ;;
10648
10649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650 version_type=freebsd-elf
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10657 hardcode_into_libs=yes
10658 if test "$with_gnu_ld" = yes; then
10659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10660 else
10661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10662 case $host_os in
10663 sco3.2v5*)
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10665 ;;
10666 esac
10667 fi
10668 sys_lib_dlsearch_path_spec='/usr/lib'
10669 ;;
10670
10671tpf*)
10672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10673 version_type=linux
10674 need_lib_prefix=no
10675 need_version=no
718a6fd8 10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10680 ;;
10681
10682uts4*)
10683 version_type=linux
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 ;;
10688
10689*)
10690 dynamic_linker=no
10691 ;;
10692esac
10693echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10694echo "${ECHO_T}$dynamic_linker" >&6
10695test "$dynamic_linker" = no && can_build_shared=no
10696
10697variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10698if test "$GCC" = yes; then
10699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10700fi
10701
718a6fd8
SE
10702if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10704fi
10705if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10707fi
10708
d7040cdb
SE
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10796echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10797hardcode_action=
10798if test -n "$hardcode_libdir_flag_spec" ||
10799 test -n "$runpath_var" ||
10800 test "X$hardcode_automatic" = "Xyes" ; then
10801
10802 # We can hardcode non-existent directories.
10803 if test "$hardcode_direct" != no &&
10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10805 # have to relink, otherwise we might link with an installed library
10806 # when we should be linking with a yet-to-be-installed one
10807 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10808 test "$hardcode_minus_L" != no; then
10809 # Linking always hardcodes the temporary library directory.
10810 hardcode_action=relink
10811 else
10812 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10813 hardcode_action=immediate
10814 fi
10815else
10816 # We cannot hardcode anything, or else we can only hardcode existing
10817 # directories.
10818 hardcode_action=unsupported
10819fi
10820echo "$as_me:$LINENO: result: $hardcode_action" >&5
10821echo "${ECHO_T}$hardcode_action" >&6
10822
10823if test "$hardcode_action" = relink ||
10824 test "$inherit_rpath" = yes; then
10825 # Fast installation is not supported
10826 enable_fast_install=no
10827elif test "$shlibpath_overrides_runpath" = yes ||
10828 test "$enable_shared" = no; then
10829 # Fast installation is not necessary
10830 enable_fast_install=needless
10831fi
10832
10833
10834
10835
10836
10837
10838 if test "x$enable_dlopen" != xyes; then
10839 enable_dlopen=unknown
10840 enable_dlopen_self=unknown
10841 enable_dlopen_self_static=unknown
10842else
10843 lt_cv_dlopen=no
10844 lt_cv_dlopen_libs=
10845
10846 case $host_os in
10847 beos*)
10848 lt_cv_dlopen="load_add_on"
10849 lt_cv_dlopen_libs=
10850 lt_cv_dlopen_self=yes
10851 ;;
10852
718a6fd8 10853 mingw* | pw32* | cegcc*)
d7040cdb
SE
10854 lt_cv_dlopen="LoadLibrary"
10855 lt_cv_dlopen_libs=
10856 ;;
10857
10858 cygwin*)
10859 lt_cv_dlopen="dlopen"
10860 lt_cv_dlopen_libs=
10861 ;;
10862
10863 darwin*)
10864 # if libdl is installed we need to link against it
10865 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10866echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10867if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 ac_check_lib_save_LIBS=$LIBS
10871LIBS="-ldl $LIBS"
10872cat >conftest.$ac_ext <<_ACEOF
10873/* confdefs.h. */
10874_ACEOF
10875cat confdefs.h >>conftest.$ac_ext
10876cat >>conftest.$ac_ext <<_ACEOF
10877/* end confdefs.h. */
10878
10879/* Override any gcc2 internal prototype to avoid an error. */
10880#ifdef __cplusplus
10881extern "C"
10882#endif
10883/* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10885char dlopen ();
10886int
10887main ()
10888{
10889dlopen ();
10890 ;
10891 return 0;
10892}
10893_ACEOF
10894rm -f conftest.$ac_objext conftest$ac_exeext
10895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10896 (eval $ac_link) 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } &&
7357c5b6
AM
10903 { ac_try='test -z "$ac_c_werror_flag"
10904 || test ! -s conftest.err'
d7040cdb
SE
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ac_cv_lib_dl_dlopen=yes
10917else
10918 echo "$as_me: failed program was:" >&5
10919sed 's/^/| /' conftest.$ac_ext >&5
10920
10921ac_cv_lib_dl_dlopen=no
10922fi
10923rm -f conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925LIBS=$ac_check_lib_save_LIBS
10926fi
10927echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10928echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10929if test $ac_cv_lib_dl_dlopen = yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10931else
10932
10933 lt_cv_dlopen="dyld"
10934 lt_cv_dlopen_libs=
10935 lt_cv_dlopen_self=yes
10936
10937fi
10938
10939 ;;
10940
10941 *)
10942 echo "$as_me:$LINENO: checking for shl_load" >&5
10943echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10944if test "${ac_cv_func_shl_load+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 cat >conftest.$ac_ext <<_ACEOF
10948/* confdefs.h. */
10949_ACEOF
10950cat confdefs.h >>conftest.$ac_ext
10951cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h. */
10953/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10955#define shl_load innocuous_shl_load
10956
10957/* System header to define __stub macros and hopefully few prototypes,
10958 which can conflict with char shl_load (); below.
10959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10960 <limits.h> exists even on freestanding compilers. */
10961
10962#ifdef __STDC__
10963# include <limits.h>
10964#else
10965# include <assert.h>
10966#endif
10967
10968#undef shl_load
10969
10970/* Override any gcc2 internal prototype to avoid an error. */
10971#ifdef __cplusplus
10972extern "C"
10973{
10974#endif
10975/* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977char shl_load ();
10978/* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981#if defined (__stub_shl_load) || defined (__stub___shl_load)
10982choke me
10983#else
10984char (*f) () = shl_load;
10985#endif
10986#ifdef __cplusplus
10987}
10988#endif
10989
10990int
10991main ()
10992{
10993return f != shl_load;
10994 ;
10995 return 0;
10996}
10997_ACEOF
10998rm -f conftest.$ac_objext conftest$ac_exeext
10999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
7357c5b6
AM
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
d7040cdb
SE
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_func_shl_load=yes
11021else
11022 echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
11024
11025ac_cv_func_shl_load=no
11026fi
11027rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029fi
11030echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11031echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11032if test $ac_cv_func_shl_load = yes; then
11033 lt_cv_dlopen="shl_load"
11034else
11035 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11036echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11037if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039else
11040 ac_check_lib_save_LIBS=$LIBS
11041LIBS="-ldld $LIBS"
11042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048
11049/* Override any gcc2 internal prototype to avoid an error. */
11050#ifdef __cplusplus
11051extern "C"
11052#endif
11053/* We use char because int might match the return type of a gcc2
11054 builtin and then its argument prototype would still apply. */
11055char shl_load ();
11056int
11057main ()
11058{
11059shl_load ();
11060 ;
11061 return 0;
11062}
11063_ACEOF
11064rm -f conftest.$ac_objext conftest$ac_exeext
11065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>conftest.er1
11067 ac_status=$?
11068 grep -v '^ *+' conftest.er1 >conftest.err
11069 rm -f conftest.er1
11070 cat conftest.err >&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } &&
7357c5b6
AM
11073 { ac_try='test -z "$ac_c_werror_flag"
11074 || test ! -s conftest.err'
d7040cdb
SE
11075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11077 ac_status=$?
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; } &&
11080 { ac_try='test -s conftest$ac_exeext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_lib_dld_shl_load=yes
11087else
11088 echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
11091ac_cv_lib_dld_shl_load=no
11092fi
11093rm -f conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095LIBS=$ac_check_lib_save_LIBS
11096fi
11097echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11098echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11099if test $ac_cv_lib_dld_shl_load = yes; then
718a6fd8 11100 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11101else
11102 echo "$as_me:$LINENO: checking for dlopen" >&5
11103echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11104if test "${ac_cv_func_dlopen+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106else
11107 cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115#define dlopen innocuous_dlopen
11116
11117/* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char dlopen (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11121
11122#ifdef __STDC__
11123# include <limits.h>
11124#else
11125# include <assert.h>
11126#endif
11127
11128#undef dlopen
11129
11130/* Override any gcc2 internal prototype to avoid an error. */
11131#ifdef __cplusplus
11132extern "C"
11133{
11134#endif
11135/* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137char dlopen ();
11138/* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141#if defined (__stub_dlopen) || defined (__stub___dlopen)
11142choke me
11143#else
11144char (*f) () = dlopen;
11145#endif
11146#ifdef __cplusplus
11147}
11148#endif
11149
11150int
11151main ()
11152{
11153return f != dlopen;
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext conftest$ac_exeext
11159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
7357c5b6
AM
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
d7040cdb
SE
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 ac_cv_func_dlopen=yes
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185ac_cv_func_dlopen=no
11186fi
11187rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189fi
11190echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11191echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11192if test $ac_cv_func_dlopen = yes; then
11193 lt_cv_dlopen="dlopen"
11194else
11195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11196echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11197if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199else
11200 ac_check_lib_save_LIBS=$LIBS
11201LIBS="-ldl $LIBS"
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208
11209/* Override any gcc2 internal prototype to avoid an error. */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213/* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11215char dlopen ();
11216int
11217main ()
11218{
11219dlopen ();
11220 ;
11221 return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext conftest$ac_exeext
11225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
7357c5b6
AM
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
d7040cdb
SE
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest$ac_exeext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 ac_cv_lib_dl_dlopen=yes
11247else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251ac_cv_lib_dl_dlopen=no
11252fi
11253rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255LIBS=$ac_check_lib_save_LIBS
11256fi
11257echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11258echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11259if test $ac_cv_lib_dl_dlopen = yes; then
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261else
11262 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11263echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11264if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 ac_check_lib_save_LIBS=$LIBS
11268LIBS="-lsvld $LIBS"
11269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275
11276/* Override any gcc2 internal prototype to avoid an error. */
11277#ifdef __cplusplus
11278extern "C"
11279#endif
11280/* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11282char dlopen ();
11283int
11284main ()
11285{
11286dlopen ();
11287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
11292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11293 (eval $ac_link) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
7357c5b6
AM
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
d7040cdb
SE
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest$ac_exeext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_cv_lib_svld_dlopen=yes
11314else
11315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318ac_cv_lib_svld_dlopen=no
11319fi
11320rm -f conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
11322LIBS=$ac_check_lib_save_LIBS
11323fi
11324echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11325echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11326if test $ac_cv_lib_svld_dlopen = yes; then
11327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11328else
11329 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11330echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11331if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 ac_check_lib_save_LIBS=$LIBS
11335LIBS="-ldld $LIBS"
11336cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342
11343/* Override any gcc2 internal prototype to avoid an error. */
11344#ifdef __cplusplus
11345extern "C"
11346#endif
11347/* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11349char dld_link ();
11350int
11351main ()
11352{
11353dld_link ();
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext conftest$ac_exeext
11359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360 (eval $ac_link) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
7357c5b6
AM
11367 { ac_try='test -z "$ac_c_werror_flag"
11368 || test ! -s conftest.err'
d7040cdb
SE
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 ac_cv_lib_dld_dld_link=yes
11381else
11382 echo "$as_me: failed program was:" >&5
11383sed 's/^/| /' conftest.$ac_ext >&5
11384
11385ac_cv_lib_dld_dld_link=no
11386fi
11387rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389LIBS=$ac_check_lib_save_LIBS
11390fi
11391echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11392echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11393if test $ac_cv_lib_dld_dld_link = yes; then
718a6fd8 11394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403
11404fi
11405
11406
11407fi
11408
11409
11410fi
11411
11412 ;;
11413 esac
11414
11415 if test "x$lt_cv_dlopen" != xno; then
11416 enable_dlopen=yes
20e95c23 11417 else
d7040cdb 11418 enable_dlopen=no
252b5132 11419 fi
5464f5a1 11420
d7040cdb
SE
11421 case $lt_cv_dlopen in
11422 dlopen)
11423 save_CPPFLAGS="$CPPFLAGS"
11424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11425
11426 save_LDFLAGS="$LDFLAGS"
11427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11428
11429 save_LIBS="$LIBS"
11430 LIBS="$lt_cv_dlopen_libs $LIBS"
11431
11432 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11433echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11434if test "${lt_cv_dlopen_self+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
20e95c23 11436else
d7040cdb
SE
11437 if test "$cross_compiling" = yes; then :
11438 lt_cv_dlopen_self=cross
11439else
11440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11441 lt_status=$lt_dlunknown
11442 cat > conftest.$ac_ext <<_LT_EOF
718a6fd8 11443#line 11443 "configure"
d7040cdb
SE
11444#include "confdefs.h"
11445
11446#if HAVE_DLFCN_H
11447#include <dlfcn.h>
11448#endif
11449
11450#include <stdio.h>
11451
11452#ifdef RTLD_GLOBAL
11453# define LT_DLGLOBAL RTLD_GLOBAL
11454#else
11455# ifdef DL_GLOBAL
11456# define LT_DLGLOBAL DL_GLOBAL
11457# else
11458# define LT_DLGLOBAL 0
11459# endif
11460#endif
11461
11462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11463 find out it does not work in some platform. */
11464#ifndef LT_DLLAZY_OR_NOW
11465# ifdef RTLD_LAZY
11466# define LT_DLLAZY_OR_NOW RTLD_LAZY
11467# else
11468# ifdef DL_LAZY
11469# define LT_DLLAZY_OR_NOW DL_LAZY
11470# else
11471# ifdef RTLD_NOW
11472# define LT_DLLAZY_OR_NOW RTLD_NOW
11473# else
11474# ifdef DL_NOW
11475# define LT_DLLAZY_OR_NOW DL_NOW
11476# else
11477# define LT_DLLAZY_OR_NOW 0
11478# endif
11479# endif
11480# endif
11481# endif
11482#endif
11483
d7040cdb
SE
11484void fnord() { int i=42;}
11485int main ()
11486{
11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11488 int status = $lt_dlunknown;
11489
11490 if (self)
11491 {
11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11494 /* dlclose (self); */
11495 }
11496 else
11497 puts (dlerror ());
11498
718a6fd8 11499 return status;
d7040cdb
SE
11500}
11501_LT_EOF
11502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11503 (eval $ac_link) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11507 (./conftest; exit; ) >&5 2>/dev/null
11508 lt_status=$?
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513 esac
11514 else :
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11517 fi
252b5132 11518fi
d7040cdb 11519rm -fr conftest*
20e95c23 11520
d7040cdb
SE
11521
11522fi
11523echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11524echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11525
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11529echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11530if test "${lt_cv_dlopen_self_static+set}" = set; then
20e95c23
DJ
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
d7040cdb
SE
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11535else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
718a6fd8 11539#line 11539 "configure"
d7040cdb
SE
11540#include "confdefs.h"
11541
11542#if HAVE_DLFCN_H
11543#include <dlfcn.h>
11544#endif
11545
11546#include <stdio.h>
11547
11548#ifdef RTLD_GLOBAL
11549# define LT_DLGLOBAL RTLD_GLOBAL
11550#else
11551# ifdef DL_GLOBAL
11552# define LT_DLGLOBAL DL_GLOBAL
11553# else
11554# define LT_DLGLOBAL 0
11555# endif
11556#endif
11557
11558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560#ifndef LT_DLLAZY_OR_NOW
11561# ifdef RTLD_LAZY
11562# define LT_DLLAZY_OR_NOW RTLD_LAZY
11563# else
11564# ifdef DL_LAZY
11565# define LT_DLLAZY_OR_NOW DL_LAZY
11566# else
11567# ifdef RTLD_NOW
11568# define LT_DLLAZY_OR_NOW RTLD_NOW
11569# else
11570# ifdef DL_NOW
11571# define LT_DLLAZY_OR_NOW DL_NOW
11572# else
11573# define LT_DLLAZY_OR_NOW 0
11574# endif
11575# endif
11576# endif
11577# endif
11578#endif
11579
d7040cdb
SE
11580void fnord() { int i=42;}
11581int main ()
11582{
11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11584 int status = $lt_dlunknown;
11585
11586 if (self)
11587 {
11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11590 /* dlclose (self); */
11591 }
11592 else
11593 puts (dlerror ());
11594
718a6fd8 11595 return status;
d7040cdb
SE
11596}
11597_LT_EOF
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599 (eval $ac_link) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11603 (./conftest; exit; ) >&5 2>/dev/null
11604 lt_status=$?
11605 case x$lt_status in
11606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11608 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11609 esac
11610 else :
11611 # compilation failed
11612 lt_cv_dlopen_self_static=no
11613 fi
11614fi
11615rm -fr conftest*
11616
11617
11618fi
11619echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11620echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11621 fi
11622
11623 CPPFLAGS="$save_CPPFLAGS"
11624 LDFLAGS="$save_LDFLAGS"
11625 LIBS="$save_LIBS"
11626 ;;
11627 esac
11628
11629 case $lt_cv_dlopen_self in
11630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11631 *) enable_dlopen_self=unknown ;;
11632 esac
11633
11634 case $lt_cv_dlopen_self_static in
11635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11636 *) enable_dlopen_self_static=unknown ;;
11637 esac
11638fi
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656striplib=
11657old_striplib=
11658echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11659echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11660if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11662 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11663 echo "$as_me:$LINENO: result: yes" >&5
11664echo "${ECHO_T}yes" >&6
11665else
11666# FIXME - insert some real tests, host_os isn't really good enough
11667 case $host_os in
11668 darwin*)
11669 if test -n "$STRIP" ; then
11670 striplib="$STRIP -x"
11671 old_striplib="$STRIP -S"
11672 echo "$as_me:$LINENO: result: yes" >&5
11673echo "${ECHO_T}yes" >&6
11674 else
11675 echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6
11677 fi
20e95c23
DJ
11678 ;;
11679 *)
d7040cdb
SE
11680 echo "$as_me:$LINENO: result: no" >&5
11681echo "${ECHO_T}no" >&6
11682 ;;
11683 esac
11684fi
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697 # Report which library types will actually be built
11698 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11699echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11700 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11701echo "${ECHO_T}$can_build_shared" >&6
11702
11703 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11704echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11705 test "$can_build_shared" = "no" && enable_shared=no
11706
11707 # On AIX, shared libraries and static libraries use the same namespace, and
11708 # are all built from PIC.
11709 case $host_os in
11710 aix3*)
11711 test "$enable_shared" = yes && enable_static=no
11712 if test -n "$RANLIB"; then
11713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11714 postinstall_cmds='$RANLIB $lib'
11715 fi
11716 ;;
11717
e81819a5 11718 aix[4-9]*)
d7040cdb
SE
11719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11720 test "$enable_shared" = yes && enable_static=no
11721 fi
20e95c23 11722 ;;
d7040cdb
SE
11723 esac
11724 echo "$as_me:$LINENO: result: $enable_shared" >&5
11725echo "${ECHO_T}$enable_shared" >&6
11726
11727 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11728echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11729 # Make sure either enable_shared or enable_static is yes.
11730 test "$enable_shared" = yes || enable_static=yes
11731 echo "$as_me:$LINENO: result: $enable_static" >&5
11732echo "${ECHO_T}$enable_static" >&6
11733
11734
11735
11736
11737fi
11738ac_ext=c
11739ac_cpp='$CPP $CPPFLAGS'
11740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11742ac_compiler_gnu=$ac_cv_c_compiler_gnu
11743
11744CC="$lt_save_CC"
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758 ac_config_commands="$ac_config_commands libtool"
11759
11760
11761
11762
11763# Only expand once:
11764
11765
11766
11767# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11768if test "${enable_64_bit_bfd+set}" = set; then
11769 enableval="$enable_64_bit_bfd"
11770 case "${enableval}" in
11771 yes) want64=true ;;
11772 no) want64=false ;;
11773 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11774echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11775 { (exit 1); exit 1; }; } ;;
11776esac
11777else
11778 want64=false
504b7d20
NC
11779fi;
11780# Check whether --enable-targets or --disable-targets was given.
d7040cdb
SE
11781if test "${enable_targets+set}" = set; then
11782 enableval="$enable_targets"
11783 case "${enableval}" in
11784 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11785echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11786 { (exit 1); exit 1; }; }
11787 ;;
11788 no) enable_targets= ;;
11789 *) enable_targets=$enableval ;;
11790esac
504b7d20
NC
11791fi;
11792# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
d7040cdb
SE
11793if test "${enable_commonbfdlib+set}" = set; then
11794 enableval="$enable_commonbfdlib"
11795 case "${enableval}" in
11796 yes) commonbfdlib=true ;;
11797 no) commonbfdlib=false ;;
11798 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11799echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11800 { (exit 1); exit 1; }; } ;;
11801esac
11802fi;
504b7d20 11803
d7040cdb
SE
11804# Check whether --with-mmap or --without-mmap was given.
11805if test "${with_mmap+set}" = set; then
11806 withval="$with_mmap"
11807 case "${withval}" in
11808 yes) want_mmap=true ;;
11809 no) want_mmap=false ;;
11810 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11811echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11812 { (exit 1); exit 1; }; } ;;
20e95c23 11813esac
252b5132 11814else
d7040cdb
SE
11815 want_mmap=false
11816fi;
11817# Check whether --enable-secureplt or --disable-secureplt was given.
11818if test "${enable_secureplt+set}" = set; then
11819 enableval="$enable_secureplt"
11820 case "${enableval}" in
11821 yes) use_secureplt=true ;;
11822 no) use_secureplt=false ;;
11823 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11824echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11825 { (exit 1); exit 1; }; } ;;
11826esac
252b5132 11827else
d7040cdb
SE
11828 use_secureplt=false
11829fi; if test $use_secureplt = true; then
11830
11831cat >>confdefs.h <<\_ACEOF
11832#define USE_SECUREPLT 1
11833_ACEOF
5464f5a1 11834
252b5132 11835fi
20e95c23 11836
0d4a1476
AS
11837DEBUGDIR=${libdir}/debug
11838
0d4a1476
AS
11839# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11840if test "${with_separate_debug_dir+set}" = set; then
11841 withval="$with_separate_debug_dir"
11842 DEBUGDIR="${withval}"
11843fi;
11844
11845
504b7d20
NC
11846# Check to see if we should allow the generation of
11847# symbols with the ELF standard's STT_COMMON type.
11848# Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11849if test "${enable_elf_stt_common+set}" = set; then
11850 enableval="$enable_elf_stt_common"
11851 case "${enableval}" in
11852 yes) want_elf_stt_common=true ;;
11853 no) want_elf_stt_common=false ;;
11854 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11855echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11856 { (exit 1); exit 1; }; } ;;
11857 esac
11858else
11859 # We have to choose a default behaviour. For native builds we could
8bc9c892
NC
11860# test whether the loader supports the STT_COMMON type, but that would
11861# mean that built binaries could not be exported to older systems where
11862# the loader does not support it. So by default we always choose to
11863# disable this feature.
504b7d20 11864 want_elf_stt_common=false
504b7d20
NC
11865fi; if test $want_elf_stt_common = true; then
11866
11867cat >>confdefs.h <<\_ACEOF
11868#define USE_STT_COMMON 1
11869_ACEOF
11870
11871fi
11872
11873
d7040cdb 11874
d7040cdb
SE
11875# Check whether --with-pkgversion or --without-pkgversion was given.
11876if test "${with_pkgversion+set}" = set; then
11877 withval="$with_pkgversion"
11878 case "$withval" in
11879 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11880echo "$as_me: error: package version not specified" >&2;}
11881 { (exit 1); exit 1; }; } ;;
11882 no) PKGVERSION= ;;
11883 *) PKGVERSION="($withval) " ;;
11884 esac
252b5132 11885else
d7040cdb 11886 PKGVERSION="(GNU Binutils) "
252b5132 11887
d7040cdb 11888fi;
20e95c23
DJ
11889
11890
5464f5a1 11891
20e95c23 11892
d7040cdb
SE
11893# Check whether --with-bugurl or --without-bugurl was given.
11894if test "${with_bugurl+set}" = set; then
11895 withval="$with_bugurl"
11896 case "$withval" in
11897 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11898echo "$as_me: error: bug URL not specified" >&2;}
11899 { (exit 1); exit 1; }; } ;;
11900 no) BUGURL=
11901 ;;
11902 *) BUGURL="$withval"
11903 ;;
11904 esac
252b5132 11905else
d7040cdb
SE
11906 BUGURL="http://www.sourceware.org/bugzilla/"
11907
11908fi;
11909 case ${BUGURL} in
11910 "")
11911 REPORT_BUGS_TO=
11912 REPORT_BUGS_TEXI=
20e95c23
DJ
11913 ;;
11914 *)
d7040cdb
SE
11915 REPORT_BUGS_TO="<$BUGURL>"
11916 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
20e95c23 11917 ;;
d7040cdb
SE
11918 esac;
11919
11920
11921
11922
11923
11924GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11925
11926# Check whether --enable-werror or --disable-werror was given.
11927if test "${enable_werror+set}" = set; then
11928 enableval="$enable_werror"
11929 case "${enableval}" in
11930 yes | y) ERROR_ON_WARNING="yes" ;;
11931 no | n) ERROR_ON_WARNING="no" ;;
11932 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11933echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11934 { (exit 1); exit 1; }; } ;;
11935 esac
11936fi;
11937
bb8541b9
L
11938# Enable -Wno-format by default when using gcc on mingw
11939case "${host}" in
11940 *-*-mingw32*)
11941 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11942 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11943 fi
11944 ;;
11945 *) ;;
11946esac
11947
d7040cdb
SE
11948# Enable -Werror by default when using gcc
11949if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11950 ERROR_ON_WARNING=yes
11951fi
11952
11953NO_WERROR=
11954if test "${ERROR_ON_WARNING}" = yes ; then
11955 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11956 NO_WERROR="-Wno-error"
11957fi
11958
11959if test "${GCC}" = yes ; then
11960 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11961fi
11962
11963# Check whether --enable-build-warnings or --disable-build-warnings was given.
11964if test "${enable_build_warnings+set}" = set; then
11965 enableval="$enable_build_warnings"
11966 case "${enableval}" in
11967 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11968 no) if test "${GCC}" = yes ; then
11969 WARN_CFLAGS="-w"
11970 fi;;
11971 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11972 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11973 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11974 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11975 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
20e95c23 11976esac
d7040cdb
SE
11977fi;
11978
11979if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11980 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
20e95c23 11981fi
d7040cdb
SE
11982
11983
11984
11985
11986
11987 ac_config_headers="$ac_config_headers config.h:config.in"
11988
11989
11990if test -z "$target" ; then
11991 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11992echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11993 { (exit 1); exit 1; }; }
20e95c23
DJ
11994fi
11995
d7040cdb
SE
11996echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11997echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11998 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11999if test "${enable_maintainer_mode+set}" = set; then
12000 enableval="$enable_maintainer_mode"
12001 USE_MAINTAINER_MODE=$enableval
12002else
12003 USE_MAINTAINER_MODE=no
12004fi;
12005 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12006echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
20e95c23
DJ
12007
12008
d7040cdb
SE
12009if test $USE_MAINTAINER_MODE = yes; then
12010 MAINTAINER_MODE_TRUE=
12011 MAINTAINER_MODE_FALSE='#'
12012else
12013 MAINTAINER_MODE_TRUE='#'
12014 MAINTAINER_MODE_FALSE=
6be7c12c 12015fi
5464f5a1 12016
d7040cdb
SE
12017 MAINT=$MAINTAINER_MODE_TRUE
12018
12019
12020
12021
12022if false; then
12023 GENINSRC_NEVER_TRUE=
12024 GENINSRC_NEVER_FALSE='#'
20e95c23 12025else
d7040cdb
SE
12026 GENINSRC_NEVER_TRUE='#'
12027 GENINSRC_NEVER_FALSE=
5464f5a1 12028fi
5464f5a1 12029
d7040cdb
SE
12030 case ${build_alias} in
12031 "") build_noncanonical=${build} ;;
12032 *) build_noncanonical=${build_alias} ;;
20e95c23 12033esac
d7040cdb
SE
12034
12035 case ${host_alias} in
12036 "") host_noncanonical=${build_noncanonical} ;;
12037 *) host_noncanonical=${host_alias} ;;
12038esac
12039
12040 case ${target_alias} in
12041 "") target_noncanonical=${host_noncanonical} ;;
12042 *) target_noncanonical=${target_alias} ;;
12043esac
12044
12045echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12046echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12047 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12048if test "${enable_install_libbfd+set}" = set; then
12049 enableval="$enable_install_libbfd"
12050 install_libbfd_p=$enableval
252b5132 12051else
d7040cdb
SE
12052 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12053 install_libbfd_p=yes
12054 else
12055 install_libbfd_p=no
12056 fi
12057fi;
12058 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12059echo "${ECHO_T}$install_libbfd_p" >&6
12060
12061
12062if test $install_libbfd_p = yes; then
12063 INSTALL_LIBBFD_TRUE=
12064 INSTALL_LIBBFD_FALSE='#'
12065else
12066 INSTALL_LIBBFD_TRUE='#'
12067 INSTALL_LIBBFD_FALSE=
5464f5a1 12068fi
5464f5a1 12069
d7040cdb 12070 # Need _noncanonical variables for this.
5464f5a1 12071
5464f5a1 12072
d7040cdb
SE
12073
12074
12075 # libbfd.a is a host library containing target dependent code
12076 bfdlibdir='$(libdir)'
12077 bfdincludedir='$(includedir)'
12078 if test "${host}" != "${target}"; then
12079 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12080 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
20e95c23 12081 fi
6be7c12c 12082
5464f5a1 12083
5464f5a1
NN
12084
12085
5464f5a1 12086
ac48eca1 12087
d7040cdb
SE
12088host64=false
12089target64=false
12090bfd_default_target_size=32
252b5132 12091
d7040cdb 12092# host stuff:
20e95c23 12093
8cc9115f 12094ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
d7040cdb
SE
12095# If we haven't got the data from the intl directory,
12096# assume NLS is disabled.
12097USE_NLS=no
12098LIBINTL=
12099LIBINTL_DEP=
12100INCINTL=
12101XGETTEXT=
12102GMSGFMT=
12103POSUB=
12104
12105if test -f ../intl/config.intl; then
12106 . ../intl/config.intl
252b5132 12107fi
d7040cdb
SE
12108echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12109echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12110if test x"$USE_NLS" != xyes; then
12111 echo "$as_me:$LINENO: result: no" >&5
12112echo "${ECHO_T}no" >&6
12113else
12114 echo "$as_me:$LINENO: result: yes" >&5
12115echo "${ECHO_T}yes" >&6
5464f5a1 12116
d7040cdb
SE
12117cat >>confdefs.h <<\_ACEOF
12118#define ENABLE_NLS 1
12119_ACEOF
252b5132 12120
6be7c12c 12121
d7040cdb
SE
12122 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12123echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12124 # Look for .po and .gmo files in the source directory.
12125 CATALOGS=
12126 XLINGUAS=
12127 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12128 # If there aren't any .gmo files the shell will give us the
12129 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12130 # weeded out.
12131 case "$cat" in *\**)
12132 continue;;
12133 esac
12134 # The quadruple backslash is collapsed to a double backslash
12135 # by the backticks, then collapsed again by the double quotes,
12136 # leaving us with one backslash in the sed expression (right
12137 # before the dot that mustn't act as a wildcard).
12138 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12139 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12140 # The user is allowed to set LINGUAS to a list of languages to
12141 # install catalogs for. If it's empty that means "all of them."
12142 if test "x$LINGUAS" = x; then
12143 CATALOGS="$CATALOGS $cat"
12144 XLINGUAS="$XLINGUAS $lang"
12145 else
12146 case "$LINGUAS" in *$lang*)
12147 CATALOGS="$CATALOGS $cat"
12148 XLINGUAS="$XLINGUAS $lang"
12149 ;;
12150 esac
12151 fi
12152 done
12153 LINGUAS="$XLINGUAS"
12154 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12155echo "${ECHO_T}$LINGUAS" >&6
12156
252b5132 12157
d7040cdb 12158 DATADIRNAME=share
252b5132 12159
d7040cdb 12160 INSTOBJEXT=.mo
5464f5a1 12161
d7040cdb 12162 GENCAT=gencat
20e95c23 12163
d7040cdb 12164 CATOBJEXT=.gmo
5464f5a1 12165
20e95c23 12166fi
5464f5a1 12167
d7040cdb
SE
12168 MKINSTALLDIRS=
12169 if test -n "$ac_aux_dir"; then
12170 case "$ac_aux_dir" in
12171 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12172 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12173 esac
12174 fi
12175 if test -z "$MKINSTALLDIRS"; then
12176 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5464f5a1 12177 fi
5464f5a1 12178
5464f5a1 12179
d7040cdb
SE
12180
12181 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12182echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12183 # Check whether --enable-nls or --disable-nls was given.
12184if test "${enable_nls+set}" = set; then
12185 enableval="$enable_nls"
12186 USE_NLS=$enableval
252b5132 12187else
d7040cdb
SE
12188 USE_NLS=yes
12189fi;
12190 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12191echo "${ECHO_T}$USE_NLS" >&6
5464f5a1 12192
252b5132 12193
5464f5a1 12194
252b5132 12195
d7040cdb
SE
12196
12197
12198# Prepare PATH_SEPARATOR.
12199# The user is always right.
12200if test "${PATH_SEPARATOR+set}" != set; then
12201 echo "#! /bin/sh" >conf$$.sh
12202 echo "exit 0" >>conf$$.sh
12203 chmod +x conf$$.sh
12204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12205 PATH_SEPARATOR=';'
20e95c23 12206 else
d7040cdb 12207 PATH_SEPARATOR=:
20e95c23 12208 fi
d7040cdb
SE
12209 rm -f conf$$.sh
12210fi
12211
12212# Find out how to test for executable files. Don't use a zero-byte file,
12213# as systems may use methods other than mode bits to determine executability.
12214cat >conf$$.file <<_ASEOF
12215#! /bin/sh
12216exit 0
12217_ASEOF
12218chmod +x conf$$.file
12219if test -x conf$$.file >/dev/null 2>&1; then
12220 ac_executable_p="test -x"
20e95c23 12221else
d7040cdb 12222 ac_executable_p="test -f"
20e95c23 12223fi
d7040cdb 12224rm -f conf$$.file
5464f5a1 12225
d7040cdb
SE
12226# Extract the first word of "msgfmt", so it can be a program name with args.
12227set dummy msgfmt; ac_word=$2
12228echo "$as_me:$LINENO: checking for $ac_word" >&5
12229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12230if test "${ac_cv_path_MSGFMT+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232else
12233 case "$MSGFMT" in
12234 [\\/]* | ?:[\\/]*)
12235 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12236 ;;
12237 *)
12238 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12239 for ac_dir in $PATH; do
12240 IFS="$ac_save_IFS"
12241 test -z "$ac_dir" && ac_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12244 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12245 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12246 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12247 break 2
12248 fi
12249 fi
12250 done
12251 done
12252 IFS="$ac_save_IFS"
12253 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12254 ;;
12255esac
5464f5a1 12256fi
d7040cdb
SE
12257MSGFMT="$ac_cv_path_MSGFMT"
12258if test "$MSGFMT" != ":"; then
12259 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12260echo "${ECHO_T}$MSGFMT" >&6
20e95c23 12261else
d7040cdb
SE
12262 echo "$as_me:$LINENO: result: no" >&5
12263echo "${ECHO_T}no" >&6
252b5132 12264fi
d7040cdb
SE
12265
12266 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12267set dummy gmsgfmt; ac_word=$2
12268echo "$as_me:$LINENO: checking for $ac_word" >&5
12269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12270if test "${ac_cv_path_GMSGFMT+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12272else
d7040cdb
SE
12273 case $GMSGFMT in
12274 [\\/]* | ?:[\\/]*)
12275 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12276 ;;
12277 *)
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12288 fi
12289done
12290done
5464f5a1 12291
d7040cdb
SE
12292 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12293 ;;
12294esac
252b5132 12295fi
d7040cdb 12296GMSGFMT=$ac_cv_path_GMSGFMT
5464f5a1 12297
d7040cdb
SE
12298if test -n "$GMSGFMT"; then
12299 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12300echo "${ECHO_T}$GMSGFMT" >&6
252b5132 12301else
d7040cdb
SE
12302 echo "$as_me:$LINENO: result: no" >&5
12303echo "${ECHO_T}no" >&6
252b5132
RH
12304fi
12305
20e95c23
DJ
12306
12307
d7040cdb
SE
12308# Prepare PATH_SEPARATOR.
12309# The user is always right.
12310if test "${PATH_SEPARATOR+set}" != set; then
12311 echo "#! /bin/sh" >conf$$.sh
12312 echo "exit 0" >>conf$$.sh
12313 chmod +x conf$$.sh
12314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12315 PATH_SEPARATOR=';'
12316 else
12317 PATH_SEPARATOR=:
12318 fi
12319 rm -f conf$$.sh
252b5132 12320fi
20e95c23 12321
d7040cdb
SE
12322# Find out how to test for executable files. Don't use a zero-byte file,
12323# as systems may use methods other than mode bits to determine executability.
12324cat >conf$$.file <<_ASEOF
12325#! /bin/sh
12326exit 0
12327_ASEOF
12328chmod +x conf$$.file
12329if test -x conf$$.file >/dev/null 2>&1; then
12330 ac_executable_p="test -x"
12331else
12332 ac_executable_p="test -f"
12333fi
12334rm -f conf$$.file
252b5132 12335
d7040cdb
SE
12336# Extract the first word of "xgettext", so it can be a program name with args.
12337set dummy xgettext; ac_word=$2
12338echo "$as_me:$LINENO: checking for $ac_word" >&5
12339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12340if test "${ac_cv_path_XGETTEXT+set}" = set; then
20e95c23
DJ
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
d7040cdb
SE
12343 case "$XGETTEXT" in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12346 ;;
12347 *)
12348 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12349 for ac_dir in $PATH; do
12350 IFS="$ac_save_IFS"
12351 test -z "$ac_dir" && ac_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12354 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12355 (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
12356 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12357 break 2
12358 fi
12359 fi
12360 done
12361 done
12362 IFS="$ac_save_IFS"
12363 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12364 ;;
12365esac
12366fi
12367XGETTEXT="$ac_cv_path_XGETTEXT"
12368if test "$XGETTEXT" != ":"; then
12369 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12370echo "${ECHO_T}$XGETTEXT" >&6
252b5132 12371else
d7040cdb
SE
12372 echo "$as_me:$LINENO: result: no" >&5
12373echo "${ECHO_T}no" >&6
252b5132
RH
12374fi
12375
d7040cdb 12376 rm -f messages.po
5464f5a1 12377
252b5132 12378
d7040cdb
SE
12379# Prepare PATH_SEPARATOR.
12380# The user is always right.
12381if test "${PATH_SEPARATOR+set}" != set; then
12382 echo "#! /bin/sh" >conf$$.sh
12383 echo "exit 0" >>conf$$.sh
12384 chmod +x conf$$.sh
12385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12386 PATH_SEPARATOR=';'
12387 else
12388 PATH_SEPARATOR=:
12389 fi
12390 rm -f conf$$.sh
252b5132
RH
12391fi
12392
d7040cdb
SE
12393# Find out how to test for executable files. Don't use a zero-byte file,
12394# as systems may use methods other than mode bits to determine executability.
12395cat >conf$$.file <<_ASEOF
12396#! /bin/sh
12397exit 0
12398_ASEOF
12399chmod +x conf$$.file
12400if test -x conf$$.file >/dev/null 2>&1; then
12401 ac_executable_p="test -x"
5464f5a1 12402else
d7040cdb 12403 ac_executable_p="test -f"
20e95c23 12404fi
d7040cdb 12405rm -f conf$$.file
5464f5a1 12406
d7040cdb
SE
12407# Extract the first word of "msgmerge", so it can be a program name with args.
12408set dummy msgmerge; ac_word=$2
12409echo "$as_me:$LINENO: checking for $ac_word" >&5
12410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12411if test "${ac_cv_path_MSGMERGE+set}" = set; then
12412 echo $ECHO_N "(cached) $ECHO_C" >&6
12413else
12414 case "$MSGMERGE" in
12415 [\\/]* | ?:[\\/]*)
12416 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12417 ;;
12418 *)
12419 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12420 for ac_dir in $PATH; do
12421 IFS="$ac_save_IFS"
12422 test -z "$ac_dir" && ac_dir=.
12423 for ac_exec_ext in '' $ac_executable_extensions; do
12424 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12425 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12426 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12427 break 2
12428 fi
12429 fi
12430 done
12431 done
12432 IFS="$ac_save_IFS"
12433 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12434 ;;
12435esac
5464f5a1 12436fi
d7040cdb
SE
12437MSGMERGE="$ac_cv_path_MSGMERGE"
12438if test "$MSGMERGE" != ":"; then
12439 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12440echo "${ECHO_T}$MSGMERGE" >&6
20e95c23 12441else
d7040cdb
SE
12442 echo "$as_me:$LINENO: result: no" >&5
12443echo "${ECHO_T}no" >&6
12444fi
20e95c23 12445
5464f5a1 12446
d7040cdb
SE
12447 if test "$GMSGFMT" != ":"; then
12448 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12449 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12450 : ;
12451 else
12452 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12453 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12454echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12455 GMSGFMT=":"
12456 fi
12457 fi
252b5132 12458
d7040cdb
SE
12459 if test "$XGETTEXT" != ":"; then
12460 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12461 (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
12462 : ;
12463 else
12464 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12465echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12466 XGETTEXT=":"
12467 fi
12468 rm -f messages.po
12469 fi
6be7c12c 12470
d7040cdb 12471 ac_config_commands="$ac_config_commands default-1"
5464f5a1 12472
252b5132 12473
5464f5a1 12474
d7040cdb
SE
12475# Permit host specific settings.
12476. ${srcdir}/configure.host
12477
12478
12479# Find a good install program. We prefer a C program (faster),
12480# so one script is as good as another. But avoid the broken or
12481# incompatible versions:
12482# SysV /etc/install, /usr/sbin/install
12483# SunOS /usr/etc/install
12484# IRIX /sbin/install
12485# AIX /bin/install
12486# AmigaOS /C/install, which installs bootblocks on floppy discs
12487# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12488# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12489# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12490# OS/2's system install, which has a completely different semantic
12491# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 12492# Reject install programs that cannot install multiple files.
d7040cdb
SE
12493echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12494echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12495if test -z "$INSTALL"; then
12496if test "${ac_cv_path_install+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12498else
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500for as_dir in $PATH
12501do
12502 IFS=$as_save_IFS
12503 test -z "$as_dir" && as_dir=.
12504 # Account for people who put trailing slashes in PATH elements.
12505case $as_dir/ in
12506 ./ | .// | /cC/* | \
12507 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12508 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12509 /usr/ucb/* ) ;;
12510 *)
12511 # OSF1 and SCO ODT 3.0 have their own names for install.
12512 # Don't use installbsd from OSF since it installs stuff as root
12513 # by default.
12514 for ac_prog in ginstall scoinst install; do
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12517 if test $ac_prog = install &&
12518 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12519 # AIX install. It has an incompatible calling convention.
12520 :
12521 elif test $ac_prog = install &&
12522 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12523 # program-specific install script used by HP pwplus--don't use.
12524 :
12525 else
58c85be7
RW
12526 rm -rf conftest.one conftest.two conftest.dir
12527 echo one > conftest.one
12528 echo two > conftest.two
12529 mkdir conftest.dir
12530 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12531 test -s conftest.one && test -s conftest.two &&
12532 test -s conftest.dir/conftest.one &&
12533 test -s conftest.dir/conftest.two
12534 then
12535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12536 break 3
12537 fi
d7040cdb
SE
12538 fi
12539 fi
12540 done
12541 done
12542 ;;
12543esac
12544done
12545
58c85be7 12546rm -rf conftest.one conftest.two conftest.dir
252b5132 12547
d7040cdb
SE
12548fi
12549 if test "${ac_cv_path_install+set}" = set; then
12550 INSTALL=$ac_cv_path_install
12551 else
58c85be7
RW
12552 # As a last resort, use the slow shell script. Don't cache a
12553 # value for INSTALL within a source directory, because that will
d7040cdb 12554 # break other packages using the cache if that directory is
58c85be7 12555 # removed, or if the value is a relative name.
d7040cdb
SE
12556 INSTALL=$ac_install_sh
12557 fi
12558fi
12559echo "$as_me:$LINENO: result: $INSTALL" >&5
12560echo "${ECHO_T}$INSTALL" >&6
5464f5a1 12561
d7040cdb
SE
12562# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12563# It thinks the first close brace ends the variable substitution.
12564test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 12565
d7040cdb 12566test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5464f5a1 12567
d7040cdb 12568test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 12569
252b5132 12570
d7040cdb 12571BFD_HOST_64BIT_LONG=0
d2df793a 12572BFD_HOST_64BIT_LONG_LONG=0
d7040cdb
SE
12573BFD_HOST_64_BIT_DEFINED=0
12574BFD_HOST_64_BIT=
12575BFD_HOST_U_64_BIT=
d2df793a 12576BFD_HOSTPTR_T="unsigned long"
6be7c12c 12577
d7040cdb
SE
12578echo "$as_me:$LINENO: checking for long long" >&5
12579echo $ECHO_N "checking for long long... $ECHO_C" >&6
2ba49b59 12580if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 12581 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12582else
5464f5a1
NN
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
2ba49b59 12589$ac_includes_default
5464f5a1
NN
12590int
12591main ()
12592{
2ba49b59
KC
12593if ((long long *) 0)
12594 return 0;
12595if (sizeof (long long))
12596 return 0;
5464f5a1
NN
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601rm -f conftest.$ac_objext
12602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
7357c5b6
AM
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
5464f5a1
NN
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
2ba49b59 12623 ac_cv_type_long_long=yes
6726e1ea 12624else
5464f5a1
NN
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
2ba49b59 12628ac_cv_type_long_long=no
6726e1ea 12629fi
5464f5a1 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 12631fi
2ba49b59
KC
12632echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12633echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 12634
2ba49b59
KC
12635echo "$as_me:$LINENO: checking size of long long" >&5
12636echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12637if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 12638 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 12639else
2ba49b59
KC
12640 if test "$ac_cv_type_long_long" = yes; then
12641 # The cast to unsigned long works around a bug in the HP C Compiler
12642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12644 # This bug is HP SR number 8606223364.
12645 if test "$cross_compiling" = yes; then
12646 # Depending upon the size, compute the lo and hi bounds.
12647cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
2ba49b59
KC
12653$ac_includes_default
12654int
12655main ()
12656{
12657static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12658test_array [0] = 0
6726e1ea 12659
2ba49b59
KC
12660 ;
12661 return 0;
12662}
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
7357c5b6
AM
12673 { ac_try='test -z "$ac_c_werror_flag"
12674 || test ! -s conftest.err'
2ba49b59
KC
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_lo=0 ac_mid=0
12687 while :; do
12688 cat >conftest.$ac_ext <<_ACEOF
12689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
12694$ac_includes_default
5464f5a1
NN
12695int
12696main ()
12697{
2ba49b59
KC
12698static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12699test_array [0] = 0
12700
5464f5a1
NN
12701 ;
12702 return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext
12706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
7357c5b6
AM
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
5464f5a1
NN
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
2ba49b59 12727 ac_hi=$ac_mid; break
6726e1ea 12728else
5464f5a1
NN
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
2ba49b59
KC
12732ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12734 ac_lo= ac_hi=
12735 break
12736 fi
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 12738fi
5464f5a1 12739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 12740 done
252b5132 12741else
2ba49b59
KC
12742 echo "$as_me: failed program was:" >&5
12743sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 12744
5464f5a1
NN
12745cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751$ac_includes_default
2ba49b59
KC
12752int
12753main ()
12754{
12755static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12756test_array [0] = 0
12757
12758 ;
12759 return 0;
12760}
5464f5a1
NN
12761_ACEOF
12762rm -f conftest.$ac_objext
12763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
7357c5b6
AM
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
5464f5a1
NN
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
2ba49b59
KC
12784 ac_hi=-1 ac_mid=-1
12785 while :; do
12786 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
2ba49b59
KC
12792$ac_includes_default
12793int
12794main ()
12795{
12796static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12797test_array [0] = 0
12798
12799 ;
12800 return 0;
12801}
5464f5a1 12802_ACEOF
2ba49b59
KC
12803rm -f conftest.$ac_objext
12804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 12811 (exit $ac_status); } &&
7357c5b6
AM
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
2ba49b59
KC
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_lo=$ac_mid; break
252b5132 12826else
2ba49b59
KC
12827 echo "$as_me: failed program was:" >&5
12828sed 's/^/| /' conftest.$ac_ext >&5
12829
12830ac_hi=`expr '(' $ac_mid ')' - 1`
12831 if test $ac_mid -le $ac_hi; then
12832 ac_lo= ac_hi=
12833 break
12834 fi
12835 ac_mid=`expr 2 '*' $ac_mid`
252b5132 12836fi
2ba49b59
KC
12837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12838 done
5464f5a1
NN
12839else
12840 echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
2ba49b59 12843ac_lo= ac_hi=
252b5132 12844fi
2ba49b59
KC
12845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12846fi
12847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12848# Binary search between lo and hi bounds.
12849while test "x$ac_lo" != "x$ac_hi"; do
12850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12851 cat >conftest.$ac_ext <<_ACEOF
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h. */
12857$ac_includes_default
12858int
12859main ()
12860{
12861static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12862test_array [0] = 0
5464f5a1 12863
2ba49b59
KC
12864 ;
12865 return 0;
12866}
5464f5a1
NN
12867_ACEOF
12868rm -f conftest.$ac_objext
12869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
7357c5b6
AM
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
5464f5a1
NN
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
2ba49b59 12890 ac_hi=$ac_mid
5464f5a1
NN
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
2ba49b59 12895ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
12896fi
12897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
12898done
12899case $ac_lo in
12900?*) ac_cv_sizeof_long_long=$ac_lo;;
7357c5b6
AM
12901'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12902echo "$as_me: error: in \`$ac_pwd':" >&2;}
12903{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
2ba49b59
KC
12904See \`config.log' for more details." >&5
12905echo "$as_me: error: cannot compute sizeof (long long), 77
12906See \`config.log' for more details." >&2;}
7357c5b6 12907 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
12908esac
12909else
12910 if test "$cross_compiling" = yes; then
7357c5b6
AM
12911 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12912echo "$as_me: error: in \`$ac_pwd':" >&2;}
12913{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12914See \`config.log' for more details." >&5
12915echo "$as_me: error: cannot run test program while cross compiling
12916See \`config.log' for more details." >&2;}
12917 { (exit 1); exit 1; }; }; }
2ba49b59
KC
12918else
12919 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
12920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
12924/* end confdefs.h. */
2ba49b59
KC
12925$ac_includes_default
12926long longval () { return (long) (sizeof (long long)); }
12927unsigned long ulongval () { return (long) (sizeof (long long)); }
12928#include <stdio.h>
12929#include <stdlib.h>
12930int
12931main ()
12932{
12933
12934 FILE *f = fopen ("conftest.val", "w");
12935 if (! f)
12936 exit (1);
12937 if (((long) (sizeof (long long))) < 0)
12938 {
12939 long i = longval ();
12940 if (i != ((long) (sizeof (long long))))
12941 exit (1);
12942 fprintf (f, "%ld\n", i);
12943 }
12944 else
12945 {
12946 unsigned long i = ulongval ();
12947 if (i != ((long) (sizeof (long long))))
12948 exit (1);
12949 fprintf (f, "%lu\n", i);
12950 }
12951 exit (ferror (f) || fclose (f) != 0);
12952
12953 ;
12954 return 0;
12955}
5464f5a1 12956_ACEOF
2ba49b59
KC
12957rm -f conftest$ac_exeext
12958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>&5
5464f5a1 12960 ac_status=$?
5464f5a1 12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
12962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 12969else
2ba49b59
KC
12970 echo "$as_me: program exited with status $ac_status" >&5
12971echo "$as_me: failed program was:" >&5
5464f5a1
NN
12972sed 's/^/| /' conftest.$ac_ext >&5
12973
2ba49b59 12974( exit $ac_status )
7357c5b6
AM
12975{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12976echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
12977{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12978See \`config.log' for more details." >&5
12979echo "$as_me: error: cannot compute sizeof (long long), 77
12980See \`config.log' for more details." >&2;}
7357c5b6 12981 { (exit 1); exit 1; }; }; }
252b5132 12982fi
2ba49b59
KC
12983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12984fi
12985fi
12986rm -f conftest.val
6be7c12c 12987else
2ba49b59 12988 ac_cv_sizeof_long_long=0
5464f5a1 12989fi
5464f5a1 12990fi
2ba49b59
KC
12991echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12992echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12993cat >>confdefs.h <<_ACEOF
12994#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
12995_ACEOF
12996
5464f5a1 12997
d2df793a
NC
12998echo "$as_me:$LINENO: checking for void *" >&5
12999echo $ECHO_N "checking for void *... $ECHO_C" >&6
13000if test "${ac_cv_type_void_p+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002else
13003 cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009$ac_includes_default
13010int
13011main ()
13012{
13013if ((void * *) 0)
13014 return 0;
13015if (sizeof (void *))
13016 return 0;
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext
13022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
7357c5b6
AM
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
d2df793a
NC
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_cv_type_void_p=yes
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048ac_cv_type_void_p=no
13049fi
13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051fi
13052echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13053echo "${ECHO_T}$ac_cv_type_void_p" >&6
13054
13055echo "$as_me:$LINENO: checking size of void *" >&5
13056echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13057if test "${ac_cv_sizeof_void_p+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test "$ac_cv_type_void_p" = yes; then
13061 # The cast to unsigned long works around a bug in the HP C Compiler
13062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13064 # This bug is HP SR number 8606223364.
13065 if test "$cross_compiling" = yes; then
13066 # Depending upon the size, compute the lo and hi bounds.
13067cat >conftest.$ac_ext <<_ACEOF
13068/* confdefs.h. */
13069_ACEOF
13070cat confdefs.h >>conftest.$ac_ext
13071cat >>conftest.$ac_ext <<_ACEOF
13072/* end confdefs.h. */
13073$ac_includes_default
13074int
13075main ()
13076{
13077static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13078test_array [0] = 0
13079
13080 ;
13081 return 0;
13082}
13083_ACEOF
13084rm -f conftest.$ac_objext
13085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13086 (eval $ac_compile) 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
7357c5b6
AM
13093 { ac_try='test -z "$ac_c_werror_flag"
13094 || test ! -s conftest.err'
d2df793a
NC
13095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; } &&
13100 { ac_try='test -s conftest.$ac_objext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_lo=0 ac_mid=0
13107 while :; do
13108 cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114$ac_includes_default
13115int
13116main ()
13117{
13118static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13119test_array [0] = 0
13120
13121 ;
13122 return 0;
13123}
13124_ACEOF
13125rm -f conftest.$ac_objext
13126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13127 (eval $ac_compile) 2>conftest.er1
13128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
7357c5b6
AM
13134 { ac_try='test -z "$ac_c_werror_flag"
13135 || test ! -s conftest.err'
d2df793a
NC
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest.$ac_objext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_hi=$ac_mid; break
13148else
13149 echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152ac_lo=`expr $ac_mid + 1`
13153 if test $ac_lo -le $ac_mid; then
13154 ac_lo= ac_hi=
13155 break
13156 fi
13157 ac_mid=`expr 2 '*' $ac_mid + 1`
13158fi
13159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13160 done
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
13172int
13173main ()
13174{
13175static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
7357c5b6
AM
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
d2df793a
NC
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_hi=-1 ac_mid=-1
13205 while :; do
13206 cat >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 *))) >= $ac_mid)];
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); } &&
7357c5b6
AM
13232 { ac_try='test -z "$ac_c_werror_flag"
13233 || test ! -s conftest.err'
d2df793a
NC
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=$ac_mid; break
13246else
13247 echo "$as_me: failed program was:" >&5
13248sed 's/^/| /' conftest.$ac_ext >&5
13249
13250ac_hi=`expr '(' $ac_mid ')' - 1`
13251 if test $ac_mid -le $ac_hi; then
13252 ac_lo= ac_hi=
13253 break
13254 fi
13255 ac_mid=`expr 2 '*' $ac_mid`
13256fi
13257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13258 done
13259else
13260 echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
13263ac_lo= ac_hi=
13264fi
13265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13266fi
13267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268# Binary search between lo and hi bounds.
13269while test "x$ac_lo" != "x$ac_hi"; do
13270 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13271 cat >conftest.$ac_ext <<_ACEOF
13272/* confdefs.h. */
13273_ACEOF
13274cat confdefs.h >>conftest.$ac_ext
13275cat >>conftest.$ac_ext <<_ACEOF
13276/* end confdefs.h. */
13277$ac_includes_default
13278int
13279main ()
13280{
13281static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13282test_array [0] = 0
13283
13284 ;
13285 return 0;
13286}
13287_ACEOF
13288rm -f conftest.$ac_objext
13289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
7357c5b6
AM
13297 { ac_try='test -z "$ac_c_werror_flag"
13298 || test ! -s conftest.err'
d2df793a
NC
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 ac_hi=$ac_mid
13311else
13312 echo "$as_me: failed program was:" >&5
13313sed 's/^/| /' conftest.$ac_ext >&5
13314
13315ac_lo=`expr '(' $ac_mid ')' + 1`
13316fi
13317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13318done
13319case $ac_lo in
13320?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
13321'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13322echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d2df793a
NC
13324See \`config.log' for more details." >&5
13325echo "$as_me: error: cannot compute sizeof (void *), 77
13326See \`config.log' for more details." >&2;}
7357c5b6 13327 { (exit 1); exit 1; }; }; } ;;
d2df793a
NC
13328esac
13329else
13330 if test "$cross_compiling" = yes; then
7357c5b6
AM
13331 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13332echo "$as_me: error: in \`$ac_pwd':" >&2;}
13333{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13334See \`config.log' for more details." >&5
13335echo "$as_me: error: cannot run test program while cross compiling
13336See \`config.log' for more details." >&2;}
13337 { (exit 1); exit 1; }; }; }
d2df793a
NC
13338else
13339 cat >conftest.$ac_ext <<_ACEOF
13340/* confdefs.h. */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h. */
13345$ac_includes_default
13346long longval () { return (long) (sizeof (void *)); }
13347unsigned long ulongval () { return (long) (sizeof (void *)); }
13348#include <stdio.h>
13349#include <stdlib.h>
13350int
13351main ()
13352{
13353
13354 FILE *f = fopen ("conftest.val", "w");
13355 if (! f)
13356 exit (1);
13357 if (((long) (sizeof (void *))) < 0)
13358 {
13359 long i = longval ();
13360 if (i != ((long) (sizeof (void *))))
13361 exit (1);
13362 fprintf (f, "%ld\n", i);
13363 }
13364 else
13365 {
13366 unsigned long i = ulongval ();
13367 if (i != ((long) (sizeof (void *))))
13368 exit (1);
13369 fprintf (f, "%lu\n", i);
13370 }
13371 exit (ferror (f) || fclose (f) != 0);
13372
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377rm -f conftest$ac_exeext
13378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_sizeof_void_p=`cat conftest.val`
13389else
13390 echo "$as_me: program exited with status $ac_status" >&5
13391echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394( exit $ac_status )
7357c5b6
AM
13395{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13396echo "$as_me: error: in \`$ac_pwd':" >&2;}
d2df793a
NC
13397{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13398See \`config.log' for more details." >&5
13399echo "$as_me: error: cannot compute sizeof (void *), 77
13400See \`config.log' for more details." >&2;}
7357c5b6 13401 { (exit 1); exit 1; }; }; }
d2df793a
NC
13402fi
13403rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404fi
13405fi
13406rm -f conftest.val
13407else
13408 ac_cv_sizeof_void_p=0
13409fi
13410fi
13411echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13412echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13413cat >>confdefs.h <<_ACEOF
13414#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13415_ACEOF
13416
13417
2ba49b59
KC
13418echo "$as_me:$LINENO: checking for long" >&5
13419echo $ECHO_N "checking for long... $ECHO_C" >&6
13420if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13422else
13423 cat >conftest.$ac_ext <<_ACEOF
13424/* confdefs.h. */
13425_ACEOF
13426cat confdefs.h >>conftest.$ac_ext
13427cat >>conftest.$ac_ext <<_ACEOF
13428/* end confdefs.h. */
2ba49b59 13429$ac_includes_default
5464f5a1
NN
13430int
13431main ()
13432{
2ba49b59
KC
13433if ((long *) 0)
13434 return 0;
13435if (sizeof (long))
13436 return 0;
5464f5a1
NN
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441rm -f conftest.$ac_objext
13442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
7357c5b6
AM
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
5464f5a1
NN
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest.$ac_objext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
2ba49b59 13463 ac_cv_type_long=yes
252b5132 13464else
5464f5a1
NN
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
2ba49b59 13468ac_cv_type_long=no
252b5132 13469fi
5464f5a1 13470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 13471fi
2ba49b59
KC
13472echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13473echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 13474
2ba49b59
KC
13475echo "$as_me:$LINENO: checking size of long" >&5
13476echo $ECHO_N "checking size of long... $ECHO_C" >&6
13477if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
2ba49b59
KC
13480 if test "$ac_cv_type_long" = yes; then
13481 # The cast to unsigned long works around a bug in the HP C Compiler
13482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13484 # This bug is HP SR number 8606223364.
13485 if test "$cross_compiling" = yes; then
13486 # Depending upon the size, compute the lo and hi bounds.
13487cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
2ba49b59 13493$ac_includes_default
5464f5a1
NN
13494int
13495main ()
13496{
2ba49b59
KC
13497static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13498test_array [0] = 0
13499
5464f5a1
NN
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext
13505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
7357c5b6
AM
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
5464f5a1
NN
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
2ba49b59
KC
13526 ac_lo=0 ac_mid=0
13527 while :; do
13528 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
13533/* end confdefs.h. */
2ba49b59 13534$ac_includes_default
5464f5a1
NN
13535int
13536main ()
13537{
2ba49b59
KC
13538static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13539test_array [0] = 0
13540
5464f5a1
NN
13541 ;
13542 return 0;
13543}
13544_ACEOF
2ba49b59
KC
13545rm -f conftest.$ac_objext
13546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
7357c5b6
AM
13554 { ac_try='test -z "$ac_c_werror_flag"
13555 || test ! -s conftest.err'
5464f5a1
NN
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
2ba49b59 13561 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
2ba49b59 13567 ac_hi=$ac_mid; break
5464f5a1
NN
13568else
13569 echo "$as_me: failed program was:" >&5
13570sed 's/^/| /' conftest.$ac_ext >&5
13571
2ba49b59
KC
13572ac_lo=`expr $ac_mid + 1`
13573 if test $ac_lo -le $ac_mid; then
13574 ac_lo= ac_hi=
13575 break
13576 fi
13577 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 13578fi
2ba49b59
KC
13579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580 done
13581else
13582 echo "$as_me: failed program was:" >&5
13583sed 's/^/| /' conftest.$ac_ext >&5
13584
13585cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13586/* confdefs.h. */
13587_ACEOF
13588cat confdefs.h >>conftest.$ac_ext
13589cat >>conftest.$ac_ext <<_ACEOF
13590/* end confdefs.h. */
2ba49b59 13591$ac_includes_default
5464f5a1
NN
13592int
13593main ()
13594{
2ba49b59
KC
13595static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13596test_array [0] = 0
13597
5464f5a1
NN
13598 ;
13599 return 0;
13600}
13601_ACEOF
2ba49b59
KC
13602rm -f conftest.$ac_objext
13603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } &&
7357c5b6
AM
13611 { ac_try='test -z "$ac_c_werror_flag"
13612 || test ! -s conftest.err'
5464f5a1
NN
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; } &&
2ba49b59 13618 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; }; then
2ba49b59
KC
13624 ac_hi=-1 ac_mid=-1
13625 while :; do
13626 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
2ba49b59 13632$ac_includes_default
5464f5a1
NN
13633int
13634main ()
13635{
2ba49b59
KC
13636static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13637test_array [0] = 0
13638
5464f5a1
NN
13639 ;
13640 return 0;
13641}
13642_ACEOF
2ba49b59
KC
13643rm -f conftest.$ac_objext
13644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13646 ac_status=$?
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
7357c5b6
AM
13652 { ac_try='test -z "$ac_c_werror_flag"
13653 || test ! -s conftest.err'
5464f5a1
NN
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
2ba49b59 13659 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661 (eval $ac_try) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; }; then
2ba49b59 13665 ac_lo=$ac_mid; break
5464f5a1
NN
13666else
13667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
2ba49b59
KC
13670ac_hi=`expr '(' $ac_mid ')' - 1`
13671 if test $ac_mid -le $ac_hi; then
13672 ac_lo= ac_hi=
13673 break
13674 fi
13675 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13676fi
2ba49b59
KC
13677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13678 done
13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683ac_lo= ac_hi=
13684fi
13685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13686fi
13687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13688# Binary search between lo and hi bounds.
13689while test "x$ac_lo" != "x$ac_hi"; do
13690 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13691 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13692/* confdefs.h. */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h. */
2ba49b59 13697$ac_includes_default
5464f5a1
NN
13698int
13699main ()
13700{
2ba49b59
KC
13701static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13702test_array [0] = 0
13703
5464f5a1
NN
13704 ;
13705 return 0;
13706}
13707_ACEOF
2ba49b59
KC
13708rm -f conftest.$ac_objext
13709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13710 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
7357c5b6
AM
13717 { ac_try='test -z "$ac_c_werror_flag"
13718 || test ! -s conftest.err'
5464f5a1
NN
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } &&
2ba49b59 13724 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
2ba49b59 13730 ac_hi=$ac_mid
5464f5a1
NN
13731else
13732 echo "$as_me: failed program was:" >&5
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
2ba49b59 13735ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 13736fi
2ba49b59
KC
13737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13738done
13739case $ac_lo in
13740?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
13741'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13742echo "$as_me: error: in \`$ac_pwd':" >&2;}
13743{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
2ba49b59
KC
13744See \`config.log' for more details." >&5
13745echo "$as_me: error: cannot compute sizeof (long), 77
13746See \`config.log' for more details." >&2;}
7357c5b6 13747 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
13748esac
13749else
13750 if test "$cross_compiling" = yes; then
7357c5b6
AM
13751 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13752echo "$as_me: error: in \`$ac_pwd':" >&2;}
13753{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13754See \`config.log' for more details." >&5
13755echo "$as_me: error: cannot run test program while cross compiling
13756See \`config.log' for more details." >&2;}
13757 { (exit 1); exit 1; }; }; }
2e0fbf77
JW
13758else
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
2ba49b59
KC
13765$ac_includes_default
13766long longval () { return (long) (sizeof (long)); }
13767unsigned long ulongval () { return (long) (sizeof (long)); }
13768#include <stdio.h>
13769#include <stdlib.h>
2e0fbf77
JW
13770int
13771main ()
13772{
13773
2ba49b59
KC
13774 FILE *f = fopen ("conftest.val", "w");
13775 if (! f)
13776 exit (1);
13777 if (((long) (sizeof (long))) < 0)
13778 {
13779 long i = longval ();
13780 if (i != ((long) (sizeof (long))))
13781 exit (1);
13782 fprintf (f, "%ld\n", i);
13783 }
13784 else
13785 {
13786 unsigned long i = ulongval ();
13787 if (i != ((long) (sizeof (long))))
13788 exit (1);
13789 fprintf (f, "%lu\n", i);
13790 }
13791 exit (ferror (f) || fclose (f) != 0);
13792
2e0fbf77
JW
13793 ;
13794 return 0;
13795}
13796_ACEOF
2ba49b59
KC
13797rm -f conftest$ac_exeext
13798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
2e0fbf77
JW
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
2ba49b59 13808 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 13809else
2ba49b59
KC
13810 echo "$as_me: program exited with status $ac_status" >&5
13811echo "$as_me: failed program was:" >&5
2e0fbf77
JW
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
2ba49b59 13814( exit $ac_status )
7357c5b6
AM
13815{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13816echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
13817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13818See \`config.log' for more details." >&5
13819echo "$as_me: error: cannot compute sizeof (long), 77
13820See \`config.log' for more details." >&2;}
7357c5b6 13821 { (exit 1); exit 1; }; }; }
2e0fbf77 13822fi
2ba49b59 13823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 13824fi
2ba49b59
KC
13825fi
13826rm -f conftest.val
13827else
13828 ac_cv_sizeof_long=0
13829fi
13830fi
13831echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13832echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13833cat >>confdefs.h <<_ACEOF
13834#define SIZEOF_LONG $ac_cv_sizeof_long
13835_ACEOF
13836
13837
d2df793a
NC
13838
13839if test "x${ac_cv_sizeof_void_p}" = "x8"; then
2ba49b59 13840 host64=true
bce5e5c9
AM
13841fi
13842
13843if test "x${ac_cv_sizeof_long}" = "x8"; then
2ba49b59
KC
13844 BFD_HOST_64BIT_LONG=1
13845 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13846 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13847elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 13848 BFD_HOST_64BIT_LONG_LONG=1
2ba49b59
KC
13849 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13850 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
13851 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13852 BFD_HOSTPTR_T="unsigned long long"
13853 fi
2ba49b59
KC
13854fi
13855
13856if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13857 BFD_HOST_64_BIT_DEFINED=1
13858 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13859 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13860fi
13861
13862
13863
13864
13865
13866
13867
d2df793a 13868
2ba49b59
KC
13869# Put a plausible default for CC_FOR_BUILD in Makefile.
13870if test -z "$CC_FOR_BUILD"; then
13871 if test "x$cross_compiling" = "xno"; then
13872 CC_FOR_BUILD='$(CC)'
13873 else
13874 CC_FOR_BUILD=gcc
13875 fi
13876fi
13877
13878# Also set EXEEXT_FOR_BUILD.
13879if test "x$cross_compiling" = "xno"; then
13880 EXEEXT_FOR_BUILD='$(EXEEXT)'
13881else
13882 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13883echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13884if test "${bfd_cv_build_exeext+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886else
13887 rm -f conftest*
13888 echo 'int main () { return 0; }' > conftest.c
13889 bfd_cv_build_exeext=
13890 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13891 for file in conftest.*; do
13892 case $file in
13893 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13894 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13895 esac
13896 done
13897 rm -f conftest*
13898 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13899fi
13900echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13901echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13902 EXEEXT_FOR_BUILD=""
13903 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13904fi
13905
13906
13907
13908
13909
13910
13911
13912
8bc9c892
NC
13913
13914for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
2ba49b59
KC
13915do
13916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13917if eval "test \"\${$as_ac_Header+set}\" = set"; then
13918 echo "$as_me:$LINENO: checking for $ac_header" >&5
13919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13920if eval "test \"\${$as_ac_Header+set}\" = set"; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922fi
13923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13925else
13926 # Is the header compilable?
13927echo "$as_me:$LINENO: checking $ac_header usability" >&5
13928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13929cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h. */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h. */
13935$ac_includes_default
13936#include <$ac_header>
13937_ACEOF
13938rm -f conftest.$ac_objext
13939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13940 (eval $ac_compile) 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
7357c5b6
AM
13947 { ac_try='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
2ba49b59
KC
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13957 ac_status=$?
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_header_compiler=yes
13961else
13962 echo "$as_me: failed program was:" >&5
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
13965ac_header_compiler=no
13966fi
13967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969echo "${ECHO_T}$ac_header_compiler" >&6
13970
13971# Is the header present?
13972echo "$as_me:$LINENO: checking $ac_header presence" >&5
13973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13974cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980#include <$ac_header>
13981_ACEOF
13982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null; then
13990 if test -s conftest.err; then
13991 ac_cpp_err=$ac_c_preproc_warn_flag
13992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13993 else
13994 ac_cpp_err=
13995 fi
13996else
13997 ac_cpp_err=yes
13998fi
13999if test -z "$ac_cpp_err"; then
14000 ac_header_preproc=yes
14001else
14002 echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_header_preproc=no
14006fi
14007rm -f conftest.err conftest.$ac_ext
14008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14009echo "${ECHO_T}$ac_header_preproc" >&6
14010
14011# So? What about this header?
14012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 yes:no: )
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14018 ac_header_preproc=yes
14019 ;;
14020 no:yes:* )
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14033 (
14034 cat <<\_ASBOX
14035## ------------------------------------------ ##
14036## Report this to the AC_PACKAGE_NAME lists. ##
14037## ------------------------------------------ ##
14038_ASBOX
14039 ) |
14040 sed "s/^/$as_me: WARNING: /" >&2
14041 ;;
14042esac
14043echo "$as_me:$LINENO: checking for $ac_header" >&5
14044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14045if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 eval "$as_ac_Header=\$ac_header_preproc"
14049fi
14050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14052
14053fi
14054if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14057_ACEOF
14058
14059fi
14060
14061done
14062
14063
14064
14065
14066for ac_header in fcntl.h sys/file.h sys/time.h
14067do
14068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo "$as_me:$LINENO: checking for $ac_header" >&5
14071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14072if eval "test \"\${$as_ac_Header+set}\" = set"; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14074fi
14075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14077else
14078 # Is the header compilable?
14079echo "$as_me:$LINENO: checking $ac_header usability" >&5
14080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14081cat >conftest.$ac_ext <<_ACEOF
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
14087$ac_includes_default
14088#include <$ac_header>
14089_ACEOF
14090rm -f conftest.$ac_objext
14091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14092 (eval $ac_compile) 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
7357c5b6
AM
14099 { ac_try='test -z "$ac_c_werror_flag"
14100 || test ! -s conftest.err'
2ba49b59
KC
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_header_compiler=yes
14113else
14114 echo "$as_me: failed program was:" >&5
14115sed 's/^/| /' conftest.$ac_ext >&5
14116
14117ac_header_compiler=no
14118fi
14119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14120echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14121echo "${ECHO_T}$ac_header_compiler" >&6
14122
14123# Is the header present?
14124echo "$as_me:$LINENO: checking $ac_header presence" >&5
14125echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14126cat >conftest.$ac_ext <<_ACEOF
14127/* confdefs.h. */
14128_ACEOF
14129cat confdefs.h >>conftest.$ac_ext
14130cat >>conftest.$ac_ext <<_ACEOF
14131/* end confdefs.h. */
14132#include <$ac_header>
14133_ACEOF
14134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } >/dev/null; then
14142 if test -s conftest.err; then
14143 ac_cpp_err=$ac_c_preproc_warn_flag
14144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14145 else
14146 ac_cpp_err=
14147 fi
14148else
14149 ac_cpp_err=yes
14150fi
14151if test -z "$ac_cpp_err"; then
14152 ac_header_preproc=yes
14153else
14154 echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 ac_header_preproc=no
14158fi
14159rm -f conftest.err conftest.$ac_ext
14160echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14161echo "${ECHO_T}$ac_header_preproc" >&6
14162
14163# So? What about this header?
14164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14165 yes:no: )
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14170 ac_header_preproc=yes
14171 ;;
14172 no:yes:* )
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14185 (
14186 cat <<\_ASBOX
14187## ------------------------------------------ ##
14188## Report this to the AC_PACKAGE_NAME lists. ##
14189## ------------------------------------------ ##
14190_ASBOX
14191 ) |
14192 sed "s/^/$as_me: WARNING: /" >&2
14193 ;;
14194esac
14195echo "$as_me:$LINENO: checking for $ac_header" >&5
14196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14197if eval "test \"\${$as_ac_Header+set}\" = set"; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199else
14200 eval "$as_ac_Header=\$ac_header_preproc"
14201fi
14202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14204
14205fi
14206if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209_ACEOF
14210
14211fi
14212
14213done
14214
d5efd9fc
AM
14215
14216
14217inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14218
14219acx_cv_header_stdint=stddef.h
14220acx_cv_header_stdint_kind="(already complete)"
14221for i in stdint.h $inttype_headers; do
14222 unset ac_cv_type_uintptr_t
14223 unset ac_cv_type_uintmax_t
14224 unset ac_cv_type_int_least32_t
14225 unset ac_cv_type_int_fast32_t
14226 unset ac_cv_type_uint64_t
14227 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14228 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14229echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14230if test "${ac_cv_type_uintmax_t+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233 cat >conftest.$ac_ext <<_ACEOF
14234/* confdefs.h. */
14235_ACEOF
14236cat confdefs.h >>conftest.$ac_ext
14237cat >>conftest.$ac_ext <<_ACEOF
14238/* end confdefs.h. */
14239#include <sys/types.h>
14240#include <$i>
14241
14242int
14243main ()
14244{
14245if ((uintmax_t *) 0)
14246 return 0;
14247if (sizeof (uintmax_t))
14248 return 0;
14249 ;
14250 return 0;
14251}
14252_ACEOF
14253rm -f conftest.$ac_objext
14254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
7357c5b6
AM
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
d5efd9fc
AM
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_type_uintmax_t=yes
14276else
14277 echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280ac_cv_type_uintmax_t=no
14281fi
14282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283fi
14284echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14285echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14286if test $ac_cv_type_uintmax_t = yes; then
14287 acx_cv_header_stdint=$i
14288else
14289 continue
14290fi
14291
14292 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14293echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14294if test "${ac_cv_type_uintptr_t+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296else
14297 cat >conftest.$ac_ext <<_ACEOF
14298/* confdefs.h. */
14299_ACEOF
14300cat confdefs.h >>conftest.$ac_ext
14301cat >>conftest.$ac_ext <<_ACEOF
14302/* end confdefs.h. */
14303#include <sys/types.h>
14304#include <$i>
14305
14306int
14307main ()
14308{
14309if ((uintptr_t *) 0)
14310 return 0;
14311if (sizeof (uintptr_t))
14312 return 0;
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
7357c5b6
AM
14326 { ac_try='test -z "$ac_c_werror_flag"
14327 || test ! -s conftest.err'
d5efd9fc
AM
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_type_uintptr_t=yes
14340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344ac_cv_type_uintptr_t=no
14345fi
14346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14347fi
14348echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14349echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14350if test $ac_cv_type_uintptr_t = yes; then
14351 :
14352else
14353 acx_cv_header_stdint_kind="(mostly complete)"
14354fi
14355
14356 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14357echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14358if test "${ac_cv_type_int_least32_t+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361 cat >conftest.$ac_ext <<_ACEOF
14362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
14367#include <sys/types.h>
14368#include <$i>
14369
14370int
14371main ()
14372{
14373if ((int_least32_t *) 0)
14374 return 0;
14375if (sizeof (int_least32_t))
14376 return 0;
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext
14382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
7357c5b6
AM
14390 { ac_try='test -z "$ac_c_werror_flag"
14391 || test ! -s conftest.err'
d5efd9fc
AM
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_type_int_least32_t=yes
14404else
14405 echo "$as_me: failed program was:" >&5
14406sed 's/^/| /' conftest.$ac_ext >&5
14407
14408ac_cv_type_int_least32_t=no
14409fi
14410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14411fi
14412echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14413echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14414if test $ac_cv_type_int_least32_t = yes; then
14415 :
14416else
14417 acx_cv_header_stdint_kind="(mostly complete)"
14418fi
14419
14420 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14421echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14422if test "${ac_cv_type_int_fast32_t+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424else
14425 cat >conftest.$ac_ext <<_ACEOF
14426/* confdefs.h. */
14427_ACEOF
14428cat confdefs.h >>conftest.$ac_ext
14429cat >>conftest.$ac_ext <<_ACEOF
14430/* end confdefs.h. */
14431#include <sys/types.h>
14432#include <$i>
14433
14434int
14435main ()
14436{
14437if ((int_fast32_t *) 0)
14438 return 0;
14439if (sizeof (int_fast32_t))
14440 return 0;
14441 ;
14442 return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
7357c5b6
AM
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
d5efd9fc
AM
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_type_int_fast32_t=yes
14468else
14469 echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
14472ac_cv_type_int_fast32_t=no
14473fi
14474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
14476echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14477echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14478if test $ac_cv_type_int_fast32_t = yes; then
14479 :
14480else
14481 acx_cv_header_stdint_kind="(mostly complete)"
14482fi
14483
14484 echo "$as_me:$LINENO: checking for uint64_t" >&5
14485echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14486if test "${ac_cv_type_uint64_t+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488else
14489 cat >conftest.$ac_ext <<_ACEOF
14490/* confdefs.h. */
14491_ACEOF
14492cat confdefs.h >>conftest.$ac_ext
14493cat >>conftest.$ac_ext <<_ACEOF
14494/* end confdefs.h. */
14495#include <sys/types.h>
14496#include <$i>
14497
14498int
14499main ()
14500{
14501if ((uint64_t *) 0)
14502 return 0;
14503if (sizeof (uint64_t))
14504 return 0;
14505 ;
14506 return 0;
14507}
14508_ACEOF
14509rm -f conftest.$ac_objext
14510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
7357c5b6
AM
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
d5efd9fc
AM
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_type_uint64_t=yes
14532else
14533 echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536ac_cv_type_uint64_t=no
14537fi
14538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539fi
14540echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14541echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14542if test $ac_cv_type_uint64_t = yes; then
14543 :
14544else
14545 acx_cv_header_stdint_kind="(lacks uint64_t)"
14546fi
14547
14548 break
14549done
14550if test "$acx_cv_header_stdint" = stddef.h; then
14551 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14552 for i in stdint.h $inttype_headers; do
14553 unset ac_cv_type_uintptr_t
14554 unset ac_cv_type_uint32_t
14555 unset ac_cv_type_uint64_t
14556 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14557 echo "$as_me:$LINENO: checking for uint32_t" >&5
14558echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14559if test "${ac_cv_type_uint32_t+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568#include <sys/types.h>
14569#include <$i>
14570
14571int
14572main ()
14573{
14574if ((uint32_t *) 0)
14575 return 0;
14576if (sizeof (uint32_t))
14577 return 0;
14578 ;
14579 return 0;
14580}
14581_ACEOF
14582rm -f conftest.$ac_objext
14583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584 (eval $ac_compile) 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
7357c5b6
AM
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
d5efd9fc
AM
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_type_uint32_t=yes
14605else
14606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
14609ac_cv_type_uint32_t=no
14610fi
14611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14612fi
14613echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14614echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14615if test $ac_cv_type_uint32_t = yes; then
14616 acx_cv_header_stdint=$i
14617else
14618 continue
14619fi
14620
14621 echo "$as_me:$LINENO: checking for uint64_t" >&5
14622echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14623if test "${ac_cv_type_uint64_t+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14625else
14626 cat >conftest.$ac_ext <<_ACEOF
14627/* confdefs.h. */
14628_ACEOF
14629cat confdefs.h >>conftest.$ac_ext
14630cat >>conftest.$ac_ext <<_ACEOF
14631/* end confdefs.h. */
14632#include <sys/types.h>
14633#include <$i>
14634
14635int
14636main ()
14637{
14638if ((uint64_t *) 0)
14639 return 0;
14640if (sizeof (uint64_t))
14641 return 0;
14642 ;
14643 return 0;
14644}
14645_ACEOF
14646rm -f conftest.$ac_objext
14647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
7357c5b6
AM
14655 { ac_try='test -z "$ac_c_werror_flag"
14656 || test ! -s conftest.err'
d5efd9fc
AM
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_type_uint64_t=yes
14669else
14670 echo "$as_me: failed program was:" >&5
14671sed 's/^/| /' conftest.$ac_ext >&5
14672
14673ac_cv_type_uint64_t=no
14674fi
14675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14676fi
14677echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14678echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14679
14680 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14681echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14682if test "${ac_cv_type_uintptr_t+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 cat >conftest.$ac_ext <<_ACEOF
14686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
14691#include <sys/types.h>
14692#include <$i>
14693
14694int
14695main ()
14696{
14697if ((uintptr_t *) 0)
14698 return 0;
14699if (sizeof (uintptr_t))
14700 return 0;
14701 ;
14702 return 0;
14703}
14704_ACEOF
14705rm -f conftest.$ac_objext
14706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707 (eval $ac_compile) 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } &&
7357c5b6
AM
14714 { ac_try='test -z "$ac_c_werror_flag"
14715 || test ! -s conftest.err'
d5efd9fc
AM
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14718 ac_status=$?
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_type_uintptr_t=yes
14728else
14729 echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732ac_cv_type_uintptr_t=no
14733fi
14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14735fi
14736echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14737echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14738
14739 break
14740 done
14741fi
14742if test "$acx_cv_header_stdint" = stddef.h; then
14743 acx_cv_header_stdint_kind="(u_intXX_t style)"
14744 for i in sys/types.h $inttype_headers; do
14745 unset ac_cv_type_u_int32_t
14746 unset ac_cv_type_u_int64_t
14747 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14748 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14749echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14750if test "${ac_cv_type_u_int32_t+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 cat >conftest.$ac_ext <<_ACEOF
14754/* confdefs.h. */
14755_ACEOF
14756cat confdefs.h >>conftest.$ac_ext
14757cat >>conftest.$ac_ext <<_ACEOF
14758/* end confdefs.h. */
14759#include <sys/types.h>
14760#include <$i>
14761
14762int
14763main ()
14764{
14765if ((u_int32_t *) 0)
14766 return 0;
14767if (sizeof (u_int32_t))
14768 return 0;
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext
14774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
7357c5b6
AM
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
d5efd9fc
AM
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 ac_cv_type_u_int32_t=yes
14796else
14797 echo "$as_me: failed program was:" >&5
14798sed 's/^/| /' conftest.$ac_ext >&5
14799
14800ac_cv_type_u_int32_t=no
14801fi
14802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803fi
14804echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14805echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14806if test $ac_cv_type_u_int32_t = yes; then
14807 acx_cv_header_stdint=$i
14808else
14809 continue
14810fi
14811
14812 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14813echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14814if test "${ac_cv_type_u_int64_t+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14816else
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
14823#include <sys/types.h>
14824#include <$i>
14825
14826int
14827main ()
14828{
14829if ((u_int64_t *) 0)
14830 return 0;
14831if (sizeof (u_int64_t))
14832 return 0;
14833 ;
14834 return 0;
14835}
14836_ACEOF
14837rm -f conftest.$ac_objext
14838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839 (eval $ac_compile) 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } &&
7357c5b6
AM
14846 { ac_try='test -z "$ac_c_werror_flag"
14847 || test ! -s conftest.err'
d5efd9fc
AM
14848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_type_u_int64_t=yes
14860else
14861 echo "$as_me: failed program was:" >&5
14862sed 's/^/| /' conftest.$ac_ext >&5
14863
14864ac_cv_type_u_int64_t=no
14865fi
14866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14867fi
14868echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14869echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14870
14871 break
14872 done
14873fi
14874if test "$acx_cv_header_stdint" = stddef.h; then
14875 acx_cv_header_stdint_kind="(using manual detection)"
14876fi
14877
14878test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14879test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14880test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14881test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14882test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14883
14884# ----------------- Summarize what we found so far
14885
14886echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14887echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14888
14889case `$as_basename bfd_stdint.h ||
14890$as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14891 Xbfd_stdint.h : 'X\(//\)$' \| \
14892 Xbfd_stdint.h : 'X\(/\)$' \| \
14893 . : '\(.\)' 2>/dev/null ||
14894echo X/bfd_stdint.h |
14895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14896 /^X\/\(\/\/\)$/{ s//\1/; q; }
14897 /^X\/\(\/\).*/{ s//\1/; q; }
14898 s/.*/./; q'` in
14899 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14900echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14901 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14902echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14903 *) ;;
14904esac
14905
14906echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14907echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14908
14909# ----------------- done included file, check C basic types --------
14910
14911# Lacking an uintptr_t? Test size of void *
14912case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14913 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14914echo $ECHO_N "checking for void *... $ECHO_C" >&6
14915if test "${ac_cv_type_void_p+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918 cat >conftest.$ac_ext <<_ACEOF
14919/* confdefs.h. */
14920_ACEOF
14921cat confdefs.h >>conftest.$ac_ext
14922cat >>conftest.$ac_ext <<_ACEOF
14923/* end confdefs.h. */
14924$ac_includes_default
14925int
14926main ()
14927{
14928if ((void * *) 0)
14929 return 0;
14930if (sizeof (void *))
14931 return 0;
14932 ;
14933 return 0;
14934}
14935_ACEOF
14936rm -f conftest.$ac_objext
14937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>conftest.er1
14939 ac_status=$?
14940 grep -v '^ *+' conftest.er1 >conftest.err
14941 rm -f conftest.er1
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
7357c5b6
AM
14945 { ac_try='test -z "$ac_c_werror_flag"
14946 || test ! -s conftest.err'
d5efd9fc
AM
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest.$ac_objext'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }; then
14958 ac_cv_type_void_p=yes
14959else
14960 echo "$as_me: failed program was:" >&5
14961sed 's/^/| /' conftest.$ac_ext >&5
14962
14963ac_cv_type_void_p=no
14964fi
14965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14966fi
14967echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14968echo "${ECHO_T}$ac_cv_type_void_p" >&6
14969
14970echo "$as_me:$LINENO: checking size of void *" >&5
14971echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14972if test "${ac_cv_sizeof_void_p+set}" = set; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974else
14975 if test "$ac_cv_type_void_p" = yes; then
14976 # The cast to unsigned long works around a bug in the HP C Compiler
14977 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14978 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14979 # This bug is HP SR number 8606223364.
14980 if test "$cross_compiling" = yes; then
14981 # Depending upon the size, compute the lo and hi bounds.
14982cat >conftest.$ac_ext <<_ACEOF
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989int
14990main ()
14991{
14992static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14993test_array [0] = 0
14994
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999rm -f conftest.$ac_objext
15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15001 (eval $ac_compile) 2>conftest.er1
15002 ac_status=$?
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
7357c5b6
AM
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
d5efd9fc
AM
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_lo=0 ac_mid=0
15022 while :; do
15023 cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h. */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h. */
15029$ac_includes_default
15030int
15031main ()
15032{
15033static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15034test_array [0] = 0
15035
15036 ;
15037 return 0;
15038}
15039_ACEOF
15040rm -f conftest.$ac_objext
15041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15042 (eval $ac_compile) 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
7357c5b6
AM
15049 { ac_try='test -z "$ac_c_werror_flag"
15050 || test ! -s conftest.err'
d5efd9fc
AM
15051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15052 (eval $ac_try) 2>&5
15053 ac_status=$?
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); }; } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15062 ac_hi=$ac_mid; break
15063else
15064 echo "$as_me: failed program was:" >&5
15065sed 's/^/| /' conftest.$ac_ext >&5
15066
15067ac_lo=`expr $ac_mid + 1`
15068 if test $ac_lo -le $ac_mid; then
15069 ac_lo= ac_hi=
15070 break
15071 fi
15072 ac_mid=`expr 2 '*' $ac_mid + 1`
15073fi
15074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15075 done
15076else
15077 echo "$as_me: failed program was:" >&5
15078sed 's/^/| /' conftest.$ac_ext >&5
15079
15080cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15091test_array [0] = 0
15092
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
7357c5b6
AM
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
d5efd9fc
AM
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); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_hi=-1 ac_mid=-1
15120 while :; do
15121 cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127$ac_includes_default
15128int
15129main ()
15130{
15131static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15132test_array [0] = 0
15133
15134 ;
15135 return 0;
15136}
15137_ACEOF
15138rm -f conftest.$ac_objext
15139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15140 (eval $ac_compile) 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } &&
7357c5b6
AM
15147 { ac_try='test -z "$ac_c_werror_flag"
15148 || test ! -s conftest.err'
d5efd9fc
AM
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_lo=$ac_mid; break
15161else
15162 echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
15165ac_hi=`expr '(' $ac_mid ')' - 1`
15166 if test $ac_mid -le $ac_hi; then
15167 ac_lo= ac_hi=
15168 break
15169 fi
15170 ac_mid=`expr 2 '*' $ac_mid`
15171fi
15172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15173 done
15174else
15175 echo "$as_me: failed program was:" >&5
15176sed 's/^/| /' conftest.$ac_ext >&5
15177
15178ac_lo= ac_hi=
15179fi
15180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15181fi
15182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15183# Binary search between lo and hi bounds.
15184while test "x$ac_lo" != "x$ac_hi"; do
15185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15186 cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
15192$ac_includes_default
15193int
15194main ()
15195{
15196static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15197test_array [0] = 0
15198
15199 ;
15200 return 0;
15201}
15202_ACEOF
15203rm -f conftest.$ac_objext
15204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
7357c5b6
AM
15212 { ac_try='test -z "$ac_c_werror_flag"
15213 || test ! -s conftest.err'
d5efd9fc
AM
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; } &&
15219 { ac_try='test -s conftest.$ac_objext'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 ac_hi=$ac_mid
15226else
15227 echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230ac_lo=`expr '(' $ac_mid ')' + 1`
15231fi
15232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15233done
15234case $ac_lo in
15235?*) ac_cv_sizeof_void_p=$ac_lo;;
7357c5b6
AM
15236'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15237echo "$as_me: error: in \`$ac_pwd':" >&2;}
15238{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
d5efd9fc
AM
15239See \`config.log' for more details." >&5
15240echo "$as_me: error: cannot compute sizeof (void *), 77
15241See \`config.log' for more details." >&2;}
7357c5b6 15242 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15243esac
15244else
15245 if test "$cross_compiling" = yes; then
7357c5b6
AM
15246 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15247echo "$as_me: error: in \`$ac_pwd':" >&2;}
15248{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15249See \`config.log' for more details." >&5
15250echo "$as_me: error: cannot run test program while cross compiling
15251See \`config.log' for more details." >&2;}
15252 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15253else
15254 cat >conftest.$ac_ext <<_ACEOF
15255/* confdefs.h. */
15256_ACEOF
15257cat confdefs.h >>conftest.$ac_ext
15258cat >>conftest.$ac_ext <<_ACEOF
15259/* end confdefs.h. */
15260$ac_includes_default
15261long longval () { return (long) (sizeof (void *)); }
15262unsigned long ulongval () { return (long) (sizeof (void *)); }
15263#include <stdio.h>
15264#include <stdlib.h>
15265int
15266main ()
15267{
15268
15269 FILE *f = fopen ("conftest.val", "w");
15270 if (! f)
15271 exit (1);
15272 if (((long) (sizeof (void *))) < 0)
15273 {
15274 long i = longval ();
15275 if (i != ((long) (sizeof (void *))))
15276 exit (1);
15277 fprintf (f, "%ld\n", i);
15278 }
15279 else
15280 {
15281 unsigned long i = ulongval ();
15282 if (i != ((long) (sizeof (void *))))
15283 exit (1);
15284 fprintf (f, "%lu\n", i);
15285 }
15286 exit (ferror (f) || fclose (f) != 0);
15287
15288 ;
15289 return 0;
15290}
15291_ACEOF
15292rm -f conftest$ac_exeext
15293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15294 (eval $ac_link) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 ac_cv_sizeof_void_p=`cat conftest.val`
15304else
15305 echo "$as_me: program exited with status $ac_status" >&5
15306echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309( exit $ac_status )
7357c5b6
AM
15310{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15311echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15312{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15313See \`config.log' for more details." >&5
15314echo "$as_me: error: cannot compute sizeof (void *), 77
15315See \`config.log' for more details." >&2;}
7357c5b6 15316 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15317fi
15318rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15319fi
15320fi
15321rm -f conftest.val
15322else
15323 ac_cv_sizeof_void_p=0
15324fi
15325fi
15326echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15327echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15328cat >>confdefs.h <<_ACEOF
15329#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15330_ACEOF
15331
15332 ;;
15333esac
15334
15335# Lacking an uint64_t? Test size of long
15336case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15337 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15338echo $ECHO_N "checking for long... $ECHO_C" >&6
15339if test "${ac_cv_type_long+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342 cat >conftest.$ac_ext <<_ACEOF
15343/* confdefs.h. */
15344_ACEOF
15345cat confdefs.h >>conftest.$ac_ext
15346cat >>conftest.$ac_ext <<_ACEOF
15347/* end confdefs.h. */
15348$ac_includes_default
15349int
15350main ()
15351{
15352if ((long *) 0)
15353 return 0;
15354if (sizeof (long))
15355 return 0;
15356 ;
15357 return 0;
15358}
15359_ACEOF
15360rm -f conftest.$ac_objext
15361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15362 (eval $ac_compile) 2>conftest.er1
15363 ac_status=$?
15364 grep -v '^ *+' conftest.er1 >conftest.err
15365 rm -f conftest.er1
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
7357c5b6
AM
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
d5efd9fc
AM
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15373 ac_status=$?
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest.$ac_objext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_type_long=yes
15383else
15384 echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387ac_cv_type_long=no
15388fi
15389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15390fi
15391echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15392echo "${ECHO_T}$ac_cv_type_long" >&6
15393
15394echo "$as_me:$LINENO: checking size of long" >&5
15395echo $ECHO_N "checking size of long... $ECHO_C" >&6
15396if test "${ac_cv_sizeof_long+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398else
15399 if test "$ac_cv_type_long" = yes; then
15400 # The cast to unsigned long works around a bug in the HP C Compiler
15401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15403 # This bug is HP SR number 8606223364.
15404 if test "$cross_compiling" = yes; then
15405 # Depending upon the size, compute the lo and hi bounds.
15406cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412$ac_includes_default
15413int
15414main ()
15415{
15416static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15417test_array [0] = 0
15418
15419 ;
15420 return 0;
15421}
15422_ACEOF
15423rm -f conftest.$ac_objext
15424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>conftest.er1
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
7357c5b6
AM
15432 { ac_try='test -z "$ac_c_werror_flag"
15433 || test ! -s conftest.err'
d5efd9fc
AM
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15442 ac_status=$?
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; }; then
15445 ac_lo=0 ac_mid=0
15446 while :; do
15447 cat >conftest.$ac_ext <<_ACEOF
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
15453$ac_includes_default
15454int
15455main ()
15456{
15457static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15458test_array [0] = 0
15459
15460 ;
15461 return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext
15465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
7357c5b6
AM
15473 { ac_try='test -z "$ac_c_werror_flag"
15474 || test ! -s conftest.err'
d5efd9fc
AM
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; } &&
15480 { ac_try='test -s conftest.$ac_objext'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; }; then
15486 ac_hi=$ac_mid; break
15487else
15488 echo "$as_me: failed program was:" >&5
15489sed 's/^/| /' conftest.$ac_ext >&5
15490
15491ac_lo=`expr $ac_mid + 1`
15492 if test $ac_lo -le $ac_mid; then
15493 ac_lo= ac_hi=
15494 break
15495 fi
15496 ac_mid=`expr 2 '*' $ac_mid + 1`
15497fi
15498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15499 done
15500else
15501 echo "$as_me: failed program was:" >&5
15502sed 's/^/| /' conftest.$ac_ext >&5
15503
15504cat >conftest.$ac_ext <<_ACEOF
15505/* confdefs.h. */
15506_ACEOF
15507cat confdefs.h >>conftest.$ac_ext
15508cat >>conftest.$ac_ext <<_ACEOF
15509/* end confdefs.h. */
15510$ac_includes_default
15511int
15512main ()
15513{
15514static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15515test_array [0] = 0
15516
15517 ;
15518 return 0;
15519}
15520_ACEOF
15521rm -f conftest.$ac_objext
15522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15523 (eval $ac_compile) 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
7357c5b6
AM
15530 { ac_try='test -z "$ac_c_werror_flag"
15531 || test ! -s conftest.err'
d5efd9fc
AM
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; } &&
15537 { ac_try='test -s conftest.$ac_objext'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15540 ac_status=$?
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; }; then
15543 ac_hi=-1 ac_mid=-1
15544 while :; do
15545 cat >conftest.$ac_ext <<_ACEOF
15546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
15551$ac_includes_default
15552int
15553main ()
15554{
15555static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15556test_array [0] = 0
15557
15558 ;
15559 return 0;
15560}
15561_ACEOF
15562rm -f conftest.$ac_objext
15563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>conftest.er1
15565 ac_status=$?
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
7357c5b6
AM
15571 { ac_try='test -z "$ac_c_werror_flag"
15572 || test ! -s conftest.err'
d5efd9fc
AM
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; } &&
15578 { ac_try='test -s conftest.$ac_objext'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_lo=$ac_mid; break
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589ac_hi=`expr '(' $ac_mid ')' - 1`
15590 if test $ac_mid -le $ac_hi; then
15591 ac_lo= ac_hi=
15592 break
15593 fi
15594 ac_mid=`expr 2 '*' $ac_mid`
15595fi
15596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 done
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602ac_lo= ac_hi=
15603fi
15604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15605fi
15606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607# Binary search between lo and hi bounds.
15608while test "x$ac_lo" != "x$ac_hi"; do
15609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15610 cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */
15612_ACEOF
15613cat confdefs.h >>conftest.$ac_ext
15614cat >>conftest.$ac_ext <<_ACEOF
15615/* end confdefs.h. */
15616$ac_includes_default
15617int
15618main ()
15619{
15620static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15621test_array [0] = 0
15622
15623 ;
15624 return 0;
15625}
15626_ACEOF
15627rm -f conftest.$ac_objext
15628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
7357c5b6
AM
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
d5efd9fc
AM
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_hi=$ac_mid
15650else
15651 echo "$as_me: failed program was:" >&5
15652sed 's/^/| /' conftest.$ac_ext >&5
15653
15654ac_lo=`expr '(' $ac_mid ')' + 1`
15655fi
15656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15657done
15658case $ac_lo in
15659?*) ac_cv_sizeof_long=$ac_lo;;
7357c5b6
AM
15660'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15661echo "$as_me: error: in \`$ac_pwd':" >&2;}
15662{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
d5efd9fc
AM
15663See \`config.log' for more details." >&5
15664echo "$as_me: error: cannot compute sizeof (long), 77
15665See \`config.log' for more details." >&2;}
7357c5b6 15666 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
15667esac
15668else
15669 if test "$cross_compiling" = yes; then
7357c5b6
AM
15670 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15671echo "$as_me: error: in \`$ac_pwd':" >&2;}
15672{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15673See \`config.log' for more details." >&5
15674echo "$as_me: error: cannot run test program while cross compiling
15675See \`config.log' for more details." >&2;}
15676 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15677else
15678 cat >conftest.$ac_ext <<_ACEOF
15679/* confdefs.h. */
15680_ACEOF
15681cat confdefs.h >>conftest.$ac_ext
15682cat >>conftest.$ac_ext <<_ACEOF
15683/* end confdefs.h. */
15684$ac_includes_default
15685long longval () { return (long) (sizeof (long)); }
15686unsigned long ulongval () { return (long) (sizeof (long)); }
15687#include <stdio.h>
15688#include <stdlib.h>
15689int
15690main ()
15691{
15692
15693 FILE *f = fopen ("conftest.val", "w");
15694 if (! f)
15695 exit (1);
15696 if (((long) (sizeof (long))) < 0)
15697 {
15698 long i = longval ();
15699 if (i != ((long) (sizeof (long))))
15700 exit (1);
15701 fprintf (f, "%ld\n", i);
15702 }
15703 else
15704 {
15705 unsigned long i = ulongval ();
15706 if (i != ((long) (sizeof (long))))
15707 exit (1);
15708 fprintf (f, "%lu\n", i);
15709 }
15710 exit (ferror (f) || fclose (f) != 0);
15711
15712 ;
15713 return 0;
15714}
15715_ACEOF
15716rm -f conftest$ac_exeext
15717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15718 (eval $ac_link) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_cv_sizeof_long=`cat conftest.val`
15728else
15729 echo "$as_me: program exited with status $ac_status" >&5
15730echo "$as_me: failed program was:" >&5
15731sed 's/^/| /' conftest.$ac_ext >&5
15732
15733( exit $ac_status )
7357c5b6
AM
15734{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15735echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
15736{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15737See \`config.log' for more details." >&5
15738echo "$as_me: error: cannot compute sizeof (long), 77
15739See \`config.log' for more details." >&2;}
7357c5b6 15740 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
15741fi
15742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15743fi
15744fi
15745rm -f conftest.val
15746else
15747 ac_cv_sizeof_long=0
15748fi
15749fi
15750echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15751echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15752cat >>confdefs.h <<_ACEOF
15753#define SIZEOF_LONG $ac_cv_sizeof_long
15754_ACEOF
15755
15756 ;;
15757esac
15758
15759if test $acx_cv_header_stdint = stddef.h; then
15760 # Lacking a good header? Test size of everything and deduce all types.
15761 echo "$as_me:$LINENO: checking for int" >&5
15762echo $ECHO_N "checking for int... $ECHO_C" >&6
15763if test "${ac_cv_type_int+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
15766 cat >conftest.$ac_ext <<_ACEOF
15767/* confdefs.h. */
15768_ACEOF
15769cat confdefs.h >>conftest.$ac_ext
15770cat >>conftest.$ac_ext <<_ACEOF
15771/* end confdefs.h. */
15772$ac_includes_default
15773int
15774main ()
15775{
15776if ((int *) 0)
15777 return 0;
15778if (sizeof (int))
15779 return 0;
15780 ;
15781 return 0;
15782}
15783_ACEOF
15784rm -f conftest.$ac_objext
15785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
7357c5b6
AM
15793 { ac_try='test -z "$ac_c_werror_flag"
15794 || test ! -s conftest.err'
d5efd9fc
AM
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try='test -s conftest.$ac_objext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_type_int=yes
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811ac_cv_type_int=no
15812fi
15813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814fi
15815echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15816echo "${ECHO_T}$ac_cv_type_int" >&6
15817
15818echo "$as_me:$LINENO: checking size of int" >&5
15819echo $ECHO_N "checking size of int... $ECHO_C" >&6
15820if test "${ac_cv_sizeof_int+set}" = set; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822else
15823 if test "$ac_cv_type_int" = yes; then
15824 # The cast to unsigned long works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 if test "$cross_compiling" = yes; then
15829 # Depending upon the size, compute the lo and hi bounds.
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837int
15838main ()
15839{
15840static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15841test_array [0] = 0
15842
15843 ;
15844 return 0;
15845}
15846_ACEOF
15847rm -f conftest.$ac_objext
15848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
7357c5b6
AM
15856 { ac_try='test -z "$ac_c_werror_flag"
15857 || test ! -s conftest.err'
d5efd9fc
AM
15858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15859 (eval $ac_try) 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_lo=0 ac_mid=0
15870 while :; do
15871 cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
15877$ac_includes_default
15878int
15879main ()
15880{
15881static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15882test_array [0] = 0
15883
15884 ;
15885 return 0;
15886}
15887_ACEOF
15888rm -f conftest.$ac_objext
15889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
7357c5b6
AM
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
d5efd9fc
AM
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_hi=$ac_mid; break
15911else
15912 echo "$as_me: failed program was:" >&5
15913sed 's/^/| /' conftest.$ac_ext >&5
15914
15915ac_lo=`expr $ac_mid + 1`
15916 if test $ac_lo -le $ac_mid; then
15917 ac_lo= ac_hi=
15918 break
15919 fi
15920 ac_mid=`expr 2 '*' $ac_mid + 1`
15921fi
15922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923 done
15924else
15925 echo "$as_me: failed program was:" >&5
15926sed 's/^/| /' conftest.$ac_ext >&5
15927
15928cat >conftest.$ac_ext <<_ACEOF
15929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
15933/* end confdefs.h. */
15934$ac_includes_default
15935int
15936main ()
15937{
15938static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15939test_array [0] = 0
15940
15941 ;
15942 return 0;
15943}
15944_ACEOF
15945rm -f conftest.$ac_objext
15946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
7357c5b6
AM
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
d5efd9fc
AM
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967 ac_hi=-1 ac_mid=-1
15968 while :; do
15969 cat >conftest.$ac_ext <<_ACEOF
15970/* confdefs.h. */
15971_ACEOF
15972cat confdefs.h >>conftest.$ac_ext
15973cat >>conftest.$ac_ext <<_ACEOF
15974/* end confdefs.h. */
15975$ac_includes_default
15976int
15977main ()
15978{
15979static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15980test_array [0] = 0
15981
15982 ;
15983 return 0;
15984}
15985_ACEOF
15986rm -f conftest.$ac_objext
15987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15988 (eval $ac_compile) 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } &&
7357c5b6
AM
15995 { ac_try='test -z "$ac_c_werror_flag"
15996 || test ! -s conftest.err'
d5efd9fc
AM
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; } &&
16002 { ac_try='test -s conftest.$ac_objext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 ac_lo=$ac_mid; break
16009else
16010 echo "$as_me: failed program was:" >&5
16011sed 's/^/| /' conftest.$ac_ext >&5
16012
16013ac_hi=`expr '(' $ac_mid ')' - 1`
16014 if test $ac_mid -le $ac_hi; then
16015 ac_lo= ac_hi=
16016 break
16017 fi
16018 ac_mid=`expr 2 '*' $ac_mid`
16019fi
16020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 done
16022else
16023 echo "$as_me: failed program was:" >&5
16024sed 's/^/| /' conftest.$ac_ext >&5
16025
16026ac_lo= ac_hi=
16027fi
16028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16029fi
16030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16031# Binary search between lo and hi bounds.
16032while test "x$ac_lo" != "x$ac_hi"; do
16033 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16034 cat >conftest.$ac_ext <<_ACEOF
16035/* confdefs.h. */
16036_ACEOF
16037cat confdefs.h >>conftest.$ac_ext
16038cat >>conftest.$ac_ext <<_ACEOF
16039/* end confdefs.h. */
16040$ac_includes_default
16041int
16042main ()
16043{
16044static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16045test_array [0] = 0
16046
16047 ;
16048 return 0;
16049}
16050_ACEOF
16051rm -f conftest.$ac_objext
16052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16053 (eval $ac_compile) 2>conftest.er1
16054 ac_status=$?
16055 grep -v '^ *+' conftest.er1 >conftest.err
16056 rm -f conftest.er1
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
7357c5b6
AM
16060 { ac_try='test -z "$ac_c_werror_flag"
16061 || test ! -s conftest.err'
d5efd9fc
AM
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } &&
16067 { ac_try='test -s conftest.$ac_objext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_hi=$ac_mid
16074else
16075 echo "$as_me: failed program was:" >&5
16076sed 's/^/| /' conftest.$ac_ext >&5
16077
16078ac_lo=`expr '(' $ac_mid ')' + 1`
16079fi
16080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16081done
16082case $ac_lo in
16083?*) ac_cv_sizeof_int=$ac_lo;;
7357c5b6
AM
16084'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16085echo "$as_me: error: in \`$ac_pwd':" >&2;}
16086{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
d5efd9fc
AM
16087See \`config.log' for more details." >&5
16088echo "$as_me: error: cannot compute sizeof (int), 77
16089See \`config.log' for more details." >&2;}
7357c5b6 16090 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16091esac
16092else
16093 if test "$cross_compiling" = yes; then
7357c5b6
AM
16094 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16095echo "$as_me: error: in \`$ac_pwd':" >&2;}
16096{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16097See \`config.log' for more details." >&5
16098echo "$as_me: error: cannot run test program while cross compiling
16099See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16101else
16102 cat >conftest.$ac_ext <<_ACEOF
16103/* confdefs.h. */
16104_ACEOF
16105cat confdefs.h >>conftest.$ac_ext
16106cat >>conftest.$ac_ext <<_ACEOF
16107/* end confdefs.h. */
16108$ac_includes_default
16109long longval () { return (long) (sizeof (int)); }
16110unsigned long ulongval () { return (long) (sizeof (int)); }
16111#include <stdio.h>
16112#include <stdlib.h>
16113int
16114main ()
16115{
16116
16117 FILE *f = fopen ("conftest.val", "w");
16118 if (! f)
16119 exit (1);
16120 if (((long) (sizeof (int))) < 0)
16121 {
16122 long i = longval ();
16123 if (i != ((long) (sizeof (int))))
16124 exit (1);
16125 fprintf (f, "%ld\n", i);
16126 }
16127 else
16128 {
16129 unsigned long i = ulongval ();
16130 if (i != ((long) (sizeof (int))))
16131 exit (1);
16132 fprintf (f, "%lu\n", i);
16133 }
16134 exit (ferror (f) || fclose (f) != 0);
16135
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest$ac_exeext
16141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 ac_cv_sizeof_int=`cat conftest.val`
16152else
16153 echo "$as_me: program exited with status $ac_status" >&5
16154echo "$as_me: failed program was:" >&5
16155sed 's/^/| /' conftest.$ac_ext >&5
16156
16157( exit $ac_status )
7357c5b6
AM
16158{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16159echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16160{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16161See \`config.log' for more details." >&5
16162echo "$as_me: error: cannot compute sizeof (int), 77
16163See \`config.log' for more details." >&2;}
7357c5b6 16164 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16165fi
16166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16167fi
16168fi
16169rm -f conftest.val
16170else
16171 ac_cv_sizeof_int=0
16172fi
16173fi
16174echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16175echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16176cat >>confdefs.h <<_ACEOF
16177#define SIZEOF_INT $ac_cv_sizeof_int
16178_ACEOF
16179
16180
16181 echo "$as_me:$LINENO: checking for short" >&5
16182echo $ECHO_N "checking for short... $ECHO_C" >&6
16183if test "${ac_cv_type_short+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6
16185else
16186 cat >conftest.$ac_ext <<_ACEOF
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192$ac_includes_default
16193int
16194main ()
16195{
16196if ((short *) 0)
16197 return 0;
16198if (sizeof (short))
16199 return 0;
16200 ;
16201 return 0;
16202}
16203_ACEOF
16204rm -f conftest.$ac_objext
16205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>conftest.er1
16207 ac_status=$?
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
7357c5b6
AM
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
d5efd9fc
AM
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_type_short=yes
16227else
16228 echo "$as_me: failed program was:" >&5
16229sed 's/^/| /' conftest.$ac_ext >&5
16230
16231ac_cv_type_short=no
16232fi
16233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16234fi
16235echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16236echo "${ECHO_T}$ac_cv_type_short" >&6
16237
16238echo "$as_me:$LINENO: checking size of short" >&5
16239echo $ECHO_N "checking size of short... $ECHO_C" >&6
16240if test "${ac_cv_sizeof_short+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242else
16243 if test "$ac_cv_type_short" = yes; then
16244 # The cast to unsigned long works around a bug in the HP C Compiler
16245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16247 # This bug is HP SR number 8606223364.
16248 if test "$cross_compiling" = yes; then
16249 # Depending upon the size, compute the lo and hi bounds.
16250cat >conftest.$ac_ext <<_ACEOF
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
16256$ac_includes_default
16257int
16258main ()
16259{
16260static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16261test_array [0] = 0
16262
16263 ;
16264 return 0;
16265}
16266_ACEOF
16267rm -f conftest.$ac_objext
16268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16269 (eval $ac_compile) 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
7357c5b6
AM
16276 { ac_try='test -z "$ac_c_werror_flag"
16277 || test ! -s conftest.err'
d5efd9fc
AM
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest.$ac_objext'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16289 ac_lo=0 ac_mid=0
16290 while :; do
16291 cat >conftest.$ac_ext <<_ACEOF
16292/* confdefs.h. */
16293_ACEOF
16294cat confdefs.h >>conftest.$ac_ext
16295cat >>conftest.$ac_ext <<_ACEOF
16296/* end confdefs.h. */
16297$ac_includes_default
16298int
16299main ()
16300{
16301static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16302test_array [0] = 0
16303
16304 ;
16305 return 0;
16306}
16307_ACEOF
16308rm -f conftest.$ac_objext
16309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
7357c5b6
AM
16317 { ac_try='test -z "$ac_c_werror_flag"
16318 || test ! -s conftest.err'
d5efd9fc
AM
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_hi=$ac_mid; break
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335ac_lo=`expr $ac_mid + 1`
16336 if test $ac_lo -le $ac_mid; then
16337 ac_lo= ac_hi=
16338 break
16339 fi
16340 ac_mid=`expr 2 '*' $ac_mid + 1`
16341fi
16342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343 done
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354$ac_includes_default
16355int
16356main ()
16357{
16358static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16359test_array [0] = 0
16360
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext
16366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>conftest.er1
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
7357c5b6
AM
16374 { ac_try='test -z "$ac_c_werror_flag"
16375 || test ! -s conftest.err'
d5efd9fc
AM
16376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try='test -s conftest.$ac_objext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_hi=-1 ac_mid=-1
16388 while :; do
16389 cat >conftest.$ac_ext <<_ACEOF
16390/* confdefs.h. */
16391_ACEOF
16392cat confdefs.h >>conftest.$ac_ext
16393cat >>conftest.$ac_ext <<_ACEOF
16394/* end confdefs.h. */
16395$ac_includes_default
16396int
16397main ()
16398{
16399static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16400test_array [0] = 0
16401
16402 ;
16403 return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext
16407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
7357c5b6
AM
16415 { ac_try='test -z "$ac_c_werror_flag"
16416 || test ! -s conftest.err'
d5efd9fc
AM
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_lo=$ac_mid; break
16429else
16430 echo "$as_me: failed program was:" >&5
16431sed 's/^/| /' conftest.$ac_ext >&5
16432
16433ac_hi=`expr '(' $ac_mid ')' - 1`
16434 if test $ac_mid -le $ac_hi; then
16435 ac_lo= ac_hi=
16436 break
16437 fi
16438 ac_mid=`expr 2 '*' $ac_mid`
16439fi
16440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441 done
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446ac_lo= ac_hi=
16447fi
16448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449fi
16450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451# Binary search between lo and hi bounds.
16452while test "x$ac_lo" != "x$ac_hi"; do
16453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16454 cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461int
16462main ()
16463{
16464static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16465test_array [0] = 0
16466
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext
16472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16473 (eval $ac_compile) 2>conftest.er1
16474 ac_status=$?
16475 grep -v '^ *+' conftest.er1 >conftest.err
16476 rm -f conftest.er1
16477 cat conftest.err >&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
7357c5b6
AM
16480 { ac_try='test -z "$ac_c_werror_flag"
16481 || test ! -s conftest.err'
d5efd9fc
AM
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_hi=$ac_mid
16494else
16495 echo "$as_me: failed program was:" >&5
16496sed 's/^/| /' conftest.$ac_ext >&5
16497
16498ac_lo=`expr '(' $ac_mid ')' + 1`
16499fi
16500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16501done
16502case $ac_lo in
16503?*) ac_cv_sizeof_short=$ac_lo;;
7357c5b6
AM
16504'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16505echo "$as_me: error: in \`$ac_pwd':" >&2;}
16506{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
d5efd9fc
AM
16507See \`config.log' for more details." >&5
16508echo "$as_me: error: cannot compute sizeof (short), 77
16509See \`config.log' for more details." >&2;}
7357c5b6 16510 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16511esac
16512else
16513 if test "$cross_compiling" = yes; then
7357c5b6
AM
16514 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16515echo "$as_me: error: in \`$ac_pwd':" >&2;}
16516{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16517See \`config.log' for more details." >&5
16518echo "$as_me: error: cannot run test program while cross compiling
16519See \`config.log' for more details." >&2;}
16520 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16521else
16522 cat >conftest.$ac_ext <<_ACEOF
16523/* confdefs.h. */
16524_ACEOF
16525cat confdefs.h >>conftest.$ac_ext
16526cat >>conftest.$ac_ext <<_ACEOF
16527/* end confdefs.h. */
16528$ac_includes_default
16529long longval () { return (long) (sizeof (short)); }
16530unsigned long ulongval () { return (long) (sizeof (short)); }
16531#include <stdio.h>
16532#include <stdlib.h>
16533int
16534main ()
16535{
16536
16537 FILE *f = fopen ("conftest.val", "w");
16538 if (! f)
16539 exit (1);
16540 if (((long) (sizeof (short))) < 0)
16541 {
16542 long i = longval ();
16543 if (i != ((long) (sizeof (short))))
16544 exit (1);
16545 fprintf (f, "%ld\n", i);
16546 }
16547 else
16548 {
16549 unsigned long i = ulongval ();
16550 if (i != ((long) (sizeof (short))))
16551 exit (1);
16552 fprintf (f, "%lu\n", i);
16553 }
16554 exit (ferror (f) || fclose (f) != 0);
16555
16556 ;
16557 return 0;
16558}
16559_ACEOF
16560rm -f conftest$ac_exeext
16561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_cv_sizeof_short=`cat conftest.val`
16572else
16573 echo "$as_me: program exited with status $ac_status" >&5
16574echo "$as_me: failed program was:" >&5
16575sed 's/^/| /' conftest.$ac_ext >&5
16576
16577( exit $ac_status )
7357c5b6
AM
16578{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16579echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
16580{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16581See \`config.log' for more details." >&5
16582echo "$as_me: error: cannot compute sizeof (short), 77
16583See \`config.log' for more details." >&2;}
7357c5b6 16584 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16585fi
16586rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16587fi
16588fi
16589rm -f conftest.val
16590else
16591 ac_cv_sizeof_short=0
16592fi
16593fi
16594echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16595echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16596cat >>confdefs.h <<_ACEOF
16597#define SIZEOF_SHORT $ac_cv_sizeof_short
16598_ACEOF
16599
16600
16601 echo "$as_me:$LINENO: checking for char" >&5
16602echo $ECHO_N "checking for char... $ECHO_C" >&6
16603if test "${ac_cv_type_char+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605else
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613int
16614main ()
16615{
16616if ((char *) 0)
16617 return 0;
16618if (sizeof (char))
16619 return 0;
16620 ;
16621 return 0;
16622}
16623_ACEOF
16624rm -f conftest.$ac_objext
16625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16626 (eval $ac_compile) 2>conftest.er1
16627 ac_status=$?
16628 grep -v '^ *+' conftest.er1 >conftest.err
16629 rm -f conftest.er1
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
7357c5b6
AM
16633 { ac_try='test -z "$ac_c_werror_flag"
16634 || test ! -s conftest.err'
d5efd9fc
AM
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest.$ac_objext'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; }; then
16646 ac_cv_type_char=yes
16647else
16648 echo "$as_me: failed program was:" >&5
16649sed 's/^/| /' conftest.$ac_ext >&5
16650
16651ac_cv_type_char=no
16652fi
16653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16654fi
16655echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16656echo "${ECHO_T}$ac_cv_type_char" >&6
16657
16658echo "$as_me:$LINENO: checking size of char" >&5
16659echo $ECHO_N "checking size of char... $ECHO_C" >&6
16660if test "${ac_cv_sizeof_char+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
16663 if test "$ac_cv_type_char" = yes; then
16664 # The cast to unsigned long works around a bug in the HP C Compiler
16665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16667 # This bug is HP SR number 8606223364.
16668 if test "$cross_compiling" = yes; then
16669 # Depending upon the size, compute the lo and hi bounds.
16670cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
16677int
16678main ()
16679{
16680static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16681test_array [0] = 0
16682
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext
16688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689 (eval $ac_compile) 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
7357c5b6
AM
16696 { ac_try='test -z "$ac_c_werror_flag"
16697 || test ! -s conftest.err'
d5efd9fc
AM
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_lo=0 ac_mid=0
16710 while :; do
16711 cat >conftest.$ac_ext <<_ACEOF
16712/* confdefs.h. */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h. */
16717$ac_includes_default
16718int
16719main ()
16720{
16721static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16722test_array [0] = 0
16723
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext
16729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
7357c5b6
AM
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
d5efd9fc
AM
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 ac_hi=$ac_mid; break
16751else
16752 echo "$as_me: failed program was:" >&5
16753sed 's/^/| /' conftest.$ac_ext >&5
16754
16755ac_lo=`expr $ac_mid + 1`
16756 if test $ac_lo -le $ac_mid; then
16757 ac_lo= ac_hi=
16758 break
16759 fi
16760 ac_mid=`expr 2 '*' $ac_mid + 1`
16761fi
16762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16763 done
16764else
16765 echo "$as_me: failed program was:" >&5
16766sed 's/^/| /' conftest.$ac_ext >&5
16767
16768cat >conftest.$ac_ext <<_ACEOF
16769/* confdefs.h. */
16770_ACEOF
16771cat confdefs.h >>conftest.$ac_ext
16772cat >>conftest.$ac_ext <<_ACEOF
16773/* end confdefs.h. */
16774$ac_includes_default
16775int
16776main ()
16777{
16778static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16779test_array [0] = 0
16780
16781 ;
16782 return 0;
16783}
16784_ACEOF
16785rm -f conftest.$ac_objext
16786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16787 (eval $ac_compile) 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
7357c5b6
AM
16794 { ac_try='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
d5efd9fc
AM
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_hi=-1 ac_mid=-1
16808 while :; do
16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815$ac_includes_default
16816int
16817main ()
16818{
16819static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16820test_array [0] = 0
16821
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext
16827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
7357c5b6
AM
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
d5efd9fc
AM
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_lo=$ac_mid; break
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853ac_hi=`expr '(' $ac_mid ')' - 1`
16854 if test $ac_mid -le $ac_hi; then
16855 ac_lo= ac_hi=
16856 break
16857 fi
16858 ac_mid=`expr 2 '*' $ac_mid`
16859fi
16860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16861 done
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866ac_lo= ac_hi=
16867fi
16868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16869fi
16870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16871# Binary search between lo and hi bounds.
16872while test "x$ac_lo" != "x$ac_hi"; do
16873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16874 cat >conftest.$ac_ext <<_ACEOF
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
16880$ac_includes_default
16881int
16882main ()
16883{
16884static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16885test_array [0] = 0
16886
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext
16892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16893 (eval $ac_compile) 2>conftest.er1
16894 ac_status=$?
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
7357c5b6
AM
16900 { ac_try='test -z "$ac_c_werror_flag"
16901 || test ! -s conftest.err'
d5efd9fc
AM
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; } &&
16907 { ac_try='test -s conftest.$ac_objext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_hi=$ac_mid
16914else
16915 echo "$as_me: failed program was:" >&5
16916sed 's/^/| /' conftest.$ac_ext >&5
16917
16918ac_lo=`expr '(' $ac_mid ')' + 1`
16919fi
16920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16921done
16922case $ac_lo in
16923?*) ac_cv_sizeof_char=$ac_lo;;
7357c5b6
AM
16924'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16925echo "$as_me: error: in \`$ac_pwd':" >&2;}
16926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
d5efd9fc
AM
16927See \`config.log' for more details." >&5
16928echo "$as_me: error: cannot compute sizeof (char), 77
16929See \`config.log' for more details." >&2;}
7357c5b6 16930 { (exit 1); exit 1; }; }; } ;;
d5efd9fc
AM
16931esac
16932else
16933 if test "$cross_compiling" = yes; then
7357c5b6
AM
16934 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16935echo "$as_me: error: in \`$ac_pwd':" >&2;}
16936{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16937See \`config.log' for more details." >&5
16938echo "$as_me: error: cannot run test program while cross compiling
16939See \`config.log' for more details." >&2;}
16940 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
16941else
16942 cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948$ac_includes_default
16949long longval () { return (long) (sizeof (char)); }
16950unsigned long ulongval () { return (long) (sizeof (char)); }
16951#include <stdio.h>
16952#include <stdlib.h>
16953int
16954main ()
16955{
16956
16957 FILE *f = fopen ("conftest.val", "w");
16958 if (! f)
16959 exit (1);
16960 if (((long) (sizeof (char))) < 0)
16961 {
16962 long i = longval ();
16963 if (i != ((long) (sizeof (char))))
16964 exit (1);
16965 fprintf (f, "%ld\n", i);
16966 }
16967 else
16968 {
16969 unsigned long i = ulongval ();
16970 if (i != ((long) (sizeof (char))))
16971 exit (1);
16972 fprintf (f, "%lu\n", i);
16973 }
16974 exit (ferror (f) || fclose (f) != 0);
16975
16976 ;
16977 return 0;
16978}
16979_ACEOF
16980rm -f conftest$ac_exeext
16981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_sizeof_char=`cat conftest.val`
16992else
16993 echo "$as_me: program exited with status $ac_status" >&5
16994echo "$as_me: failed program was:" >&5
16995sed 's/^/| /' conftest.$ac_ext >&5
16996
16997( exit $ac_status )
7357c5b6
AM
16998{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16999echo "$as_me: error: in \`$ac_pwd':" >&2;}
d5efd9fc
AM
17000{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17001See \`config.log' for more details." >&5
17002echo "$as_me: error: cannot compute sizeof (char), 77
17003See \`config.log' for more details." >&2;}
7357c5b6 17004 { (exit 1); exit 1; }; }; }
d5efd9fc
AM
17005fi
17006rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17007fi
17008fi
17009rm -f conftest.val
17010else
17011 ac_cv_sizeof_char=0
17012fi
17013fi
17014echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17015echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17016cat >>confdefs.h <<_ACEOF
17017#define SIZEOF_CHAR $ac_cv_sizeof_char
17018_ACEOF
17019
17020
17021
17022 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17023echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17024 case "$ac_cv_sizeof_char" in
17025 1) acx_cv_type_int8_t=char ;;
17026 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17027echo "$as_me: error: no 8-bit type" >&2;}
17028 { (exit please report a bug); exit please report a bug; }; }
17029 esac
17030 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17031echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17032
17033 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17034echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17035 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17036 2:*) acx_cv_type_int16_t=int ;;
17037 *:2) acx_cv_type_int16_t=short ;;
17038 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17039echo "$as_me: error: no 16-bit type" >&2;}
17040 { (exit please report a bug); exit please report a bug; }; }
17041 esac
17042 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17043echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17044
17045 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17046echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17047 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17048 4:*) acx_cv_type_int32_t=int ;;
17049 *:4) acx_cv_type_int32_t=long ;;
17050 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17051echo "$as_me: error: no 32-bit type" >&2;}
17052 { (exit please report a bug); exit please report a bug; }; }
17053 esac
17054 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17055echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17056fi
17057
17058# These tests are here to make the output prettier
17059
17060if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17061 case "$ac_cv_sizeof_long" in
17062 8) acx_cv_type_int64_t=long ;;
17063 esac
17064 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17065echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17066 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17067echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17068fi
17069
17070# Now we can use the above types
17071
17072if test "$ac_cv_type_uintptr_t" != yes; then
17073 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17074echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17075 case $ac_cv_sizeof_void_p in
17076 2) acx_cv_type_intptr_t=int16_t ;;
17077 4) acx_cv_type_intptr_t=int32_t ;;
17078 8) acx_cv_type_intptr_t=int64_t ;;
17079 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17080echo "$as_me: error: no equivalent for intptr_t" >&2;}
17081 { (exit please report a bug); exit please report a bug; }; }
17082 esac
17083 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17084echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17085fi
17086
17087# ----------------- done all checks, emit header -------------
17088 ac_config_commands="$ac_config_commands bfd_stdint.h"
17089
17090
17091
2ba49b59
KC
17092echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17093echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17094if test "${ac_cv_header_time+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 cat >conftest.$ac_ext <<_ACEOF
17098/* confdefs.h. */
17099_ACEOF
17100cat confdefs.h >>conftest.$ac_ext
17101cat >>conftest.$ac_ext <<_ACEOF
17102/* end confdefs.h. */
17103#include <sys/types.h>
17104#include <sys/time.h>
17105#include <time.h>
17106
17107int
17108main ()
17109{
17110if ((struct tm *) 0)
17111return 0;
17112 ;
17113 return 0;
17114}
17115_ACEOF
17116rm -f conftest.$ac_objext
17117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17118 (eval $ac_compile) 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } &&
7357c5b6
AM
17125 { ac_try='test -z "$ac_c_werror_flag"
17126 || test ! -s conftest.err'
2ba49b59
KC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; } &&
17132 { ac_try='test -s conftest.$ac_objext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_header_time=yes
17139else
17140 echo "$as_me: failed program was:" >&5
17141sed 's/^/| /' conftest.$ac_ext >&5
17142
17143ac_cv_header_time=no
17144fi
17145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17146fi
17147echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17148echo "${ECHO_T}$ac_cv_header_time" >&6
17149if test $ac_cv_header_time = yes; then
17150
17151cat >>confdefs.h <<\_ACEOF
17152#define TIME_WITH_SYS_TIME 1
17153_ACEOF
17154
17155fi
17156
17157
17158
17159
17160
17161
17162ac_header_dirent=no
17163for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17164 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17165echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17166echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17167if eval "test \"\${$as_ac_Header+set}\" = set"; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169else
17170 cat >conftest.$ac_ext <<_ACEOF
17171/* confdefs.h. */
17172_ACEOF
17173cat confdefs.h >>conftest.$ac_ext
17174cat >>conftest.$ac_ext <<_ACEOF
17175/* end confdefs.h. */
17176#include <sys/types.h>
17177#include <$ac_hdr>
17178
17179int
17180main ()
17181{
17182if ((DIR *) 0)
17183return 0;
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext
17189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17190 (eval $ac_compile) 2>conftest.er1
17191 ac_status=$?
17192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
7357c5b6
AM
17197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
2ba49b59
KC
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest.$ac_objext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 eval "$as_ac_Header=yes"
17211else
17212 echo "$as_me: failed program was:" >&5
17213sed 's/^/| /' conftest.$ac_ext >&5
17214
17215eval "$as_ac_Header=no"
17216fi
17217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17218fi
17219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221if test `eval echo '${'$as_ac_Header'}'` = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17224_ACEOF
17225
17226ac_header_dirent=$ac_hdr; break
17227fi
17228
17229done
17230# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17231if test $ac_header_dirent = dirent.h; then
17232 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17233echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17234if test "${ac_cv_search_opendir+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236else
17237 ac_func_search_save_LIBS=$LIBS
17238ac_cv_search_opendir=no
17239cat >conftest.$ac_ext <<_ACEOF
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245
17246/* Override any gcc2 internal prototype to avoid an error. */
17247#ifdef __cplusplus
17248extern "C"
17249#endif
17250/* We use char because int might match the return type of a gcc2
17251 builtin and then its argument prototype would still apply. */
17252char opendir ();
17253int
17254main ()
17255{
17256opendir ();
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261rm -f conftest.$ac_objext conftest$ac_exeext
17262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17263 (eval $ac_link) 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } &&
7357c5b6
AM
17270 { ac_try='test -z "$ac_c_werror_flag"
17271 || test ! -s conftest.err'
2ba49b59
KC
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; } &&
17277 { ac_try='test -s conftest$ac_exeext'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17280 ac_status=$?
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; }; then
17283 ac_cv_search_opendir="none required"
17284else
17285 echo "$as_me: failed program was:" >&5
17286sed 's/^/| /' conftest.$ac_ext >&5
17287
17288fi
17289rm -f conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291if test "$ac_cv_search_opendir" = no; then
17292 for ac_lib in dir; do
17293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300
17301/* Override any gcc2 internal prototype to avoid an error. */
17302#ifdef __cplusplus
17303extern "C"
17304#endif
17305/* We use char because int might match the return type of a gcc2
17306 builtin and then its argument prototype would still apply. */
17307char opendir ();
17308int
17309main ()
17310{
17311opendir ();
17312 ;
17313 return 0;
17314}
17315_ACEOF
17316rm -f conftest.$ac_objext conftest$ac_exeext
17317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
7357c5b6
AM
17325 { ac_try='test -z "$ac_c_werror_flag"
17326 || test ! -s conftest.err'
2ba49b59
KC
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; } &&
17332 { ac_try='test -s conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_search_opendir="-l$ac_lib"
17339break
17340else
17341 echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344fi
17345rm -f conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 done
17348fi
17349LIBS=$ac_func_search_save_LIBS
17350fi
17351echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17352echo "${ECHO_T}$ac_cv_search_opendir" >&6
17353if test "$ac_cv_search_opendir" != no; then
17354 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17355
17356fi
17357
17358else
17359 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17360echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17361if test "${ac_cv_search_opendir+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
17364 ac_func_search_save_LIBS=$LIBS
17365ac_cv_search_opendir=no
17366cat >conftest.$ac_ext <<_ACEOF
17367/* confdefs.h. */
17368_ACEOF
17369cat confdefs.h >>conftest.$ac_ext
17370cat >>conftest.$ac_ext <<_ACEOF
17371/* end confdefs.h. */
17372
17373/* Override any gcc2 internal prototype to avoid an error. */
17374#ifdef __cplusplus
17375extern "C"
17376#endif
17377/* We use char because int might match the return type of a gcc2
17378 builtin and then its argument prototype would still apply. */
17379char opendir ();
17380int
17381main ()
17382{
17383opendir ();
17384 ;
17385 return 0;
17386}
17387_ACEOF
17388rm -f conftest.$ac_objext conftest$ac_exeext
17389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17390 (eval $ac_link) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } &&
7357c5b6
AM
17397 { ac_try='test -z "$ac_c_werror_flag"
17398 || test ! -s conftest.err'
2ba49b59
KC
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } &&
17404 { ac_try='test -s conftest$ac_exeext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_search_opendir="none required"
17411else
17412 echo "$as_me: failed program was:" >&5
17413sed 's/^/| /' conftest.$ac_ext >&5
17414
17415fi
17416rm -f conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418if test "$ac_cv_search_opendir" = no; then
17419 for ac_lib in x; do
17420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427
17428/* Override any gcc2 internal prototype to avoid an error. */
17429#ifdef __cplusplus
17430extern "C"
17431#endif
17432/* We use char because int might match the return type of a gcc2
17433 builtin and then its argument prototype would still apply. */
17434char opendir ();
17435int
17436main ()
17437{
17438opendir ();
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext conftest$ac_exeext
17444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
7357c5b6
AM
17452 { ac_try='test -z "$ac_c_werror_flag"
17453 || test ! -s conftest.err'
2ba49b59
KC
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest$ac_exeext'
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_cv_search_opendir="-l$ac_lib"
17466break
17467else
17468 echo "$as_me: failed program was:" >&5
17469sed 's/^/| /' conftest.$ac_ext >&5
17470
17471fi
17472rm -f conftest.err conftest.$ac_objext \
17473 conftest$ac_exeext conftest.$ac_ext
17474 done
17475fi
17476LIBS=$ac_func_search_save_LIBS
17477fi
17478echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17479echo "${ECHO_T}$ac_cv_search_opendir" >&6
17480if test "$ac_cv_search_opendir" != no; then
17481 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17482
17483fi
17484
17485fi
17486
17487echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17488echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17489if test "${gcc_cv_header_string+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498#include <string.h>
17499#include <strings.h>
17500int
17501main ()
17502{
17503
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
7357c5b6
AM
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
2ba49b59
KC
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 gcc_cv_header_string=yes
17531else
17532 echo "$as_me: failed program was:" >&5
17533sed 's/^/| /' conftest.$ac_ext >&5
17534
17535gcc_cv_header_string=no
17536fi
17537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17538fi
17539echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17540echo "${ECHO_T}$gcc_cv_header_string" >&6
17541if test $gcc_cv_header_string = yes; then
17542
17543cat >>confdefs.h <<\_ACEOF
17544#define STRING_WITH_STRINGS 1
17545_ACEOF
17546
2e0fbf77
JW
17547fi
17548
5464f5a1
NN
17549
17550
17551
17552
17553
17554
17555
428b207a
TT
17556
17557for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
252b5132 17558do
5464f5a1
NN
17559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560echo "$as_me:$LINENO: checking for $ac_func" >&5
17561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17562if eval "test \"\${$as_ac_var+set}\" = set"; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 cat >conftest.$ac_ext <<_ACEOF
17566/* confdefs.h. */
17567_ACEOF
17568cat confdefs.h >>conftest.$ac_ext
17569cat >>conftest.$ac_ext <<_ACEOF
17570/* end confdefs.h. */
17571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573#define $ac_func innocuous_$ac_func
17574
252b5132 17575/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17579
17580#ifdef __STDC__
17581# include <limits.h>
17582#else
17583# include <assert.h>
17584#endif
6be7c12c 17585
5464f5a1 17586#undef $ac_func
252b5132 17587
5464f5a1
NN
17588/* Override any gcc2 internal prototype to avoid an error. */
17589#ifdef __cplusplus
17590extern "C"
17591{
17592#endif
17593/* We use char because int might match the return type of a gcc2
17594 builtin and then its argument prototype would still apply. */
17595char $ac_func ();
252b5132
RH
17596/* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17600choke me
17601#else
5464f5a1
NN
17602char (*f) () = $ac_func;
17603#endif
17604#ifdef __cplusplus
17605}
252b5132
RH
17606#endif
17607
5464f5a1
NN
17608int
17609main ()
17610{
17611return f != $ac_func;
17612 ;
17613 return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext conftest$ac_exeext
17617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
7357c5b6
AM
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
5464f5a1
NN
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 eval "$as_ac_var=yes"
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643eval "$as_ac_var=no"
17644fi
17645rm -f conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17647fi
17648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17650if test `eval echo '${'$as_ac_var'}'` = yes; then
17651 cat >>confdefs.h <<_ACEOF
17652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653_ACEOF
252b5132 17654
252b5132
RH
17655fi
17656done
17657
5464f5a1 17658
49c97a80
ILT
17659for ac_func in strtoull
17660do
5464f5a1
NN
17661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17662echo "$as_me:$LINENO: checking for $ac_func" >&5
17663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17664if eval "test \"\${$as_ac_var+set}\" = set"; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666else
17667 cat >conftest.$ac_ext <<_ACEOF
17668/* confdefs.h. */
17669_ACEOF
17670cat confdefs.h >>conftest.$ac_ext
17671cat >>conftest.$ac_ext <<_ACEOF
17672/* end confdefs.h. */
17673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17675#define $ac_func innocuous_$ac_func
17676
49c97a80 17677/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
17678 which can conflict with char $ac_func (); below.
17679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17680 <limits.h> exists even on freestanding compilers. */
17681
17682#ifdef __STDC__
17683# include <limits.h>
17684#else
17685# include <assert.h>
17686#endif
49c97a80 17687
5464f5a1 17688#undef $ac_func
49c97a80 17689
5464f5a1
NN
17690/* Override any gcc2 internal prototype to avoid an error. */
17691#ifdef __cplusplus
17692extern "C"
17693{
17694#endif
17695/* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697char $ac_func ();
49c97a80
ILT
17698/* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17702choke me
17703#else
5464f5a1
NN
17704char (*f) () = $ac_func;
17705#endif
17706#ifdef __cplusplus
17707}
49c97a80
ILT
17708#endif
17709
5464f5a1
NN
17710int
17711main ()
17712{
17713return f != $ac_func;
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext conftest$ac_exeext
17719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
7357c5b6
AM
17727 { ac_try='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
5464f5a1
NN
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 eval "$as_ac_var=yes"
17741else
17742 echo "$as_me: failed program was:" >&5
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
17745eval "$as_ac_var=no"
17746fi
17747rm -f conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749fi
17750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17752if test `eval echo '${'$as_ac_var'}'` = yes; then
17753 cat >>confdefs.h <<_ACEOF
17754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17755_ACEOF
49c97a80 17756
49c97a80
ILT
17757fi
17758done
17759
6be7c12c 17760
2e9ebff5
JG
17761echo "$as_me:$LINENO: checking whether basename is declared" >&5
17762echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17763if test "${ac_cv_have_decl_basename+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766 cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
ec7b76fe 17772$ac_includes_default
2e9ebff5
JG
17773int
17774main ()
17775{
17776#ifndef basename
17777 char *p = (char *) basename;
17778#endif
17779
17780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest.$ac_objext
17785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
7357c5b6
AM
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
2e9ebff5
JG
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_cv_have_decl_basename=yes
17807else
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811ac_cv_have_decl_basename=no
17812fi
17813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17814fi
17815echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17816echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17817if test $ac_cv_have_decl_basename = yes; then
17818
17819cat >>confdefs.h <<_ACEOF
17820#define HAVE_DECL_BASENAME 1
17821_ACEOF
17822
17823
17824else
17825 cat >>confdefs.h <<_ACEOF
17826#define HAVE_DECL_BASENAME 0
17827_ACEOF
17828
17829
17830fi
17831
17832
ec7b76fe
JG
17833echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17834echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17835if test "${ac_cv_have_decl_ftello+set}" = set; then
17836 echo $ECHO_N "(cached) $ECHO_C" >&6
17837else
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
17848#ifndef ftello
17849 char *p = (char *) ftello;
17850#endif
17851
17852 ;
17853 return 0;
17854}
17855_ACEOF
17856rm -f conftest.$ac_objext
17857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17858 (eval $ac_compile) 2>conftest.er1
17859 ac_status=$?
17860 grep -v '^ *+' conftest.er1 >conftest.err
17861 rm -f conftest.er1
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } &&
7357c5b6
AM
17865 { ac_try='test -z "$ac_c_werror_flag"
17866 || test ! -s conftest.err'
ec7b76fe
JG
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; } &&
17872 { ac_try='test -s conftest.$ac_objext'
17873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874 (eval $ac_try) 2>&5
17875 ac_status=$?
17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); }; }; then
17878 ac_cv_have_decl_ftello=yes
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883ac_cv_have_decl_ftello=no
17884fi
17885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17886fi
17887echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17888echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17889if test $ac_cv_have_decl_ftello = yes; then
17890
17891cat >>confdefs.h <<_ACEOF
17892#define HAVE_DECL_FTELLO 1
17893_ACEOF
17894
17895
17896else
17897 cat >>confdefs.h <<_ACEOF
17898#define HAVE_DECL_FTELLO 0
17899_ACEOF
17900
17901
17902fi
17903
17904
17905echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17906echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17907if test "${ac_cv_have_decl_ftello64+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17909else
17910 cat >conftest.$ac_ext <<_ACEOF
17911/* confdefs.h. */
17912_ACEOF
17913cat confdefs.h >>conftest.$ac_ext
17914cat >>conftest.$ac_ext <<_ACEOF
17915/* end confdefs.h. */
17916$ac_includes_default
17917int
17918main ()
17919{
17920#ifndef ftello64
17921 char *p = (char *) ftello64;
17922#endif
17923
17924 ;
17925 return 0;
17926}
17927_ACEOF
17928rm -f conftest.$ac_objext
17929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930 (eval $ac_compile) 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } &&
7357c5b6
AM
17937 { ac_try='test -z "$ac_c_werror_flag"
17938 || test ! -s conftest.err'
ec7b76fe
JG
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest.$ac_objext'
17945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946 (eval $ac_try) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_have_decl_ftello64=yes
17951else
17952 echo "$as_me: failed program was:" >&5
17953sed 's/^/| /' conftest.$ac_ext >&5
17954
17955ac_cv_have_decl_ftello64=no
17956fi
17957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958fi
17959echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17960echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17961if test $ac_cv_have_decl_ftello64 = yes; then
17962
17963cat >>confdefs.h <<_ACEOF
17964#define HAVE_DECL_FTELLO64 1
17965_ACEOF
17966
17967
17968else
17969 cat >>confdefs.h <<_ACEOF
17970#define HAVE_DECL_FTELLO64 0
17971_ACEOF
17972
17973
17974fi
17975
17976
17977echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
17978echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
17979if test "${ac_cv_have_decl_fseeko+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981else
17982 cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
17988$ac_includes_default
17989int
17990main ()
17991{
17992#ifndef fseeko
17993 char *p = (char *) fseeko;
17994#endif
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest.$ac_objext
18001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } &&
7357c5b6
AM
18009 { ac_try='test -z "$ac_c_werror_flag"
18010 || test ! -s conftest.err'
ec7b76fe
JG
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 ac_cv_have_decl_fseeko=yes
18023else
18024 echo "$as_me: failed program was:" >&5
18025sed 's/^/| /' conftest.$ac_ext >&5
18026
18027ac_cv_have_decl_fseeko=no
18028fi
18029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18030fi
18031echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18032echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18033if test $ac_cv_have_decl_fseeko = yes; then
18034
18035cat >>confdefs.h <<_ACEOF
18036#define HAVE_DECL_FSEEKO 1
18037_ACEOF
18038
18039
18040else
18041 cat >>confdefs.h <<_ACEOF
18042#define HAVE_DECL_FSEEKO 0
18043_ACEOF
18044
18045
18046fi
18047
18048
18049echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18050echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18051if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053else
18054 cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060$ac_includes_default
18061int
18062main ()
18063{
18064#ifndef fseeko64
18065 char *p = (char *) fseeko64;
18066#endif
18067
18068 ;
18069 return 0;
18070}
18071_ACEOF
18072rm -f conftest.$ac_objext
18073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18074 (eval $ac_compile) 2>conftest.er1
18075 ac_status=$?
18076 grep -v '^ *+' conftest.er1 >conftest.err
18077 rm -f conftest.er1
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } &&
7357c5b6
AM
18081 { ac_try='test -z "$ac_c_werror_flag"
18082 || test ! -s conftest.err'
ec7b76fe
JG
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; } &&
18088 { ac_try='test -s conftest.$ac_objext'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_have_decl_fseeko64=yes
18095else
18096 echo "$as_me: failed program was:" >&5
18097sed 's/^/| /' conftest.$ac_ext >&5
18098
18099ac_cv_have_decl_fseeko64=no
18100fi
18101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18102fi
18103echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18104echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18105if test $ac_cv_have_decl_fseeko64 = yes; then
18106
18107cat >>confdefs.h <<_ACEOF
18108#define HAVE_DECL_FSEEKO64 1
18109_ACEOF
18110
18111
18112else
18113 cat >>confdefs.h <<_ACEOF
18114#define HAVE_DECL_FSEEKO64 0
18115_ACEOF
18116
18117
18118fi
18119
18120
2e9ebff5 18121
6be7c12c 18122
252b5132 18123case "${host}" in
855b0be7 18124*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
18125
18126cat >>confdefs.h <<\_ACEOF
252b5132 18127#define USE_BINARY_FOPEN 1
5464f5a1 18128_ACEOF
252b5132
RH
18129 ;;
18130esac
18131
d34a2b1d
JG
18132echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18133echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18134if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 18135 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18136else
5464f5a1
NN
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
d34a2b1d 18143$ac_includes_default
5464f5a1
NN
18144int
18145main ()
18146{
d34a2b1d
JG
18147#ifndef ffs
18148 char *p = (char *) ffs;
18149#endif
18150
5464f5a1
NN
18151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest.$ac_objext
18156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>conftest.er1
18158 ac_status=$?
18159 grep -v '^ *+' conftest.er1 >conftest.err
18160 rm -f conftest.er1
18161 cat conftest.err >&5
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); } &&
7357c5b6
AM
18164 { ac_try='test -z "$ac_c_werror_flag"
18165 || test ! -s conftest.err'
5464f5a1
NN
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; } &&
18171 { ac_try='test -s conftest.$ac_objext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
d34a2b1d 18177 ac_cv_have_decl_ffs=yes
252b5132 18178else
5464f5a1
NN
18179 echo "$as_me: failed program was:" >&5
18180sed 's/^/| /' conftest.$ac_ext >&5
18181
d34a2b1d 18182ac_cv_have_decl_ffs=no
252b5132 18183fi
5464f5a1 18184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18185fi
d34a2b1d
JG
18186echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18187echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18188if test $ac_cv_have_decl_ffs = yes; then
252b5132 18189
d34a2b1d
JG
18190cat >>confdefs.h <<_ACEOF
18191#define HAVE_DECL_FFS 1
18192_ACEOF
5464f5a1 18193
d34a2b1d
JG
18194
18195else
18196 cat >>confdefs.h <<_ACEOF
18197#define HAVE_DECL_FFS 0
5464f5a1 18198_ACEOF
252b5132 18199
d34a2b1d 18200
252b5132
RH
18201fi
18202
d34a2b1d
JG
18203
18204echo "$as_me:$LINENO: checking whether free is declared" >&5
18205echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18206if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 18207 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18208else
5464f5a1
NN
18209 cat >conftest.$ac_ext <<_ACEOF
18210/* confdefs.h. */
18211_ACEOF
18212cat confdefs.h >>conftest.$ac_ext
18213cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */
d34a2b1d 18215$ac_includes_default
5464f5a1
NN
18216int
18217main ()
18218{
d34a2b1d
JG
18219#ifndef free
18220 char *p = (char *) free;
18221#endif
18222
5464f5a1
NN
18223 ;
18224 return 0;
18225}
18226_ACEOF
18227rm -f conftest.$ac_objext
18228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
7357c5b6
AM
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
5464f5a1
NN
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
d34a2b1d 18249 ac_cv_have_decl_free=yes
252b5132 18250else
5464f5a1
NN
18251 echo "$as_me: failed program was:" >&5
18252sed 's/^/| /' conftest.$ac_ext >&5
18253
d34a2b1d 18254ac_cv_have_decl_free=no
252b5132 18255fi
5464f5a1 18256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18257fi
d34a2b1d
JG
18258echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18259echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18260if test $ac_cv_have_decl_free = yes; then
18261
18262cat >>confdefs.h <<_ACEOF
18263#define HAVE_DECL_FREE 1
18264_ACEOF
252b5132 18265
5464f5a1 18266
d34a2b1d
JG
18267else
18268 cat >>confdefs.h <<_ACEOF
18269#define HAVE_DECL_FREE 0
5464f5a1 18270_ACEOF
252b5132 18271
d34a2b1d 18272
252b5132
RH
18273fi
18274
d34a2b1d
JG
18275
18276echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18277echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18278if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 18279 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18280else
5464f5a1
NN
18281 cat >conftest.$ac_ext <<_ACEOF
18282/* confdefs.h. */
18283_ACEOF
18284cat confdefs.h >>conftest.$ac_ext
18285cat >>conftest.$ac_ext <<_ACEOF
18286/* end confdefs.h. */
d34a2b1d 18287$ac_includes_default
5464f5a1
NN
18288int
18289main ()
18290{
d34a2b1d
JG
18291#ifndef getenv
18292 char *p = (char *) getenv;
18293#endif
18294
5464f5a1
NN
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext
18300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18301 (eval $ac_compile) 2>conftest.er1
18302 ac_status=$?
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
7357c5b6
AM
18308 { ac_try='test -z "$ac_c_werror_flag"
18309 || test ! -s conftest.err'
5464f5a1
NN
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
d34a2b1d 18321 ac_cv_have_decl_getenv=yes
252b5132 18322else
5464f5a1
NN
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
d34a2b1d 18326ac_cv_have_decl_getenv=no
252b5132 18327fi
5464f5a1 18328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18329fi
d34a2b1d
JG
18330echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18331echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18332if test $ac_cv_have_decl_getenv = yes; then
252b5132 18333
d34a2b1d
JG
18334cat >>confdefs.h <<_ACEOF
18335#define HAVE_DECL_GETENV 1
18336_ACEOF
5464f5a1 18337
d34a2b1d
JG
18338
18339else
18340 cat >>confdefs.h <<_ACEOF
18341#define HAVE_DECL_GETENV 0
5464f5a1 18342_ACEOF
252b5132 18343
d34a2b1d 18344
252b5132
RH
18345fi
18346
d34a2b1d
JG
18347
18348echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18349echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18350if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 18351 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18352else
5464f5a1
NN
18353 cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
d34a2b1d 18359$ac_includes_default
5464f5a1
NN
18360int
18361main ()
18362{
d34a2b1d
JG
18363#ifndef malloc
18364 char *p = (char *) malloc;
18365#endif
18366
5464f5a1
NN
18367 ;
18368 return 0;
18369}
18370_ACEOF
18371rm -f conftest.$ac_objext
18372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18373 (eval $ac_compile) 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
7357c5b6
AM
18380 { ac_try='test -z "$ac_c_werror_flag"
18381 || test ! -s conftest.err'
5464f5a1
NN
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
d34a2b1d 18393 ac_cv_have_decl_malloc=yes
252b5132 18394else
5464f5a1
NN
18395 echo "$as_me: failed program was:" >&5
18396sed 's/^/| /' conftest.$ac_ext >&5
18397
d34a2b1d 18398ac_cv_have_decl_malloc=no
252b5132 18399fi
5464f5a1 18400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18401fi
d34a2b1d
JG
18402echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18403echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18404if test $ac_cv_have_decl_malloc = yes; then
252b5132 18405
d34a2b1d
JG
18406cat >>confdefs.h <<_ACEOF
18407#define HAVE_DECL_MALLOC 1
18408_ACEOF
5464f5a1 18409
d34a2b1d
JG
18410
18411else
18412 cat >>confdefs.h <<_ACEOF
18413#define HAVE_DECL_MALLOC 0
5464f5a1 18414_ACEOF
252b5132 18415
d34a2b1d 18416
252b5132
RH
18417fi
18418
d34a2b1d
JG
18419
18420echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18421echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18422if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 18423 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 18424else
5464f5a1
NN
18425 cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h. */
d34a2b1d 18431$ac_includes_default
5464f5a1
NN
18432int
18433main ()
18434{
d34a2b1d
JG
18435#ifndef realloc
18436 char *p = (char *) realloc;
18437#endif
18438
5464f5a1
NN
18439 ;
18440 return 0;
18441}
18442_ACEOF
18443rm -f conftest.$ac_objext
18444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18445 (eval $ac_compile) 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
7357c5b6
AM
18452 { ac_try='test -z "$ac_c_werror_flag"
18453 || test ! -s conftest.err'
5464f5a1
NN
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
d34a2b1d 18465 ac_cv_have_decl_realloc=yes
252b5132 18466else
5464f5a1
NN
18467 echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
d34a2b1d 18470ac_cv_have_decl_realloc=no
252b5132 18471fi
5464f5a1 18472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 18473fi
d34a2b1d
JG
18474echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18475echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18476if test $ac_cv_have_decl_realloc = yes; then
18477
18478cat >>confdefs.h <<_ACEOF
18479#define HAVE_DECL_REALLOC 1
18480_ACEOF
252b5132 18481
5464f5a1 18482
d34a2b1d
JG
18483else
18484 cat >>confdefs.h <<_ACEOF
18485#define HAVE_DECL_REALLOC 0
efa9bda4
AL
18486_ACEOF
18487
d34a2b1d 18488
efa9bda4
AL
18489fi
18490
d34a2b1d 18491
be5cacdb
L
18492echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18493echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18494if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18496else
18497 cat >conftest.$ac_ext <<_ACEOF
18498/* confdefs.h. */
18499_ACEOF
18500cat confdefs.h >>conftest.$ac_ext
18501cat >>conftest.$ac_ext <<_ACEOF
18502/* end confdefs.h. */
18503$ac_includes_default
18504int
18505main ()
18506{
18507#ifndef stpcpy
18508 char *p = (char *) stpcpy;
18509#endif
18510
18511 ;
18512 return 0;
18513}
18514_ACEOF
18515rm -f conftest.$ac_objext
18516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18518 ac_status=$?
18519 grep -v '^ *+' conftest.er1 >conftest.err
18520 rm -f conftest.er1
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
7357c5b6
AM
18524 { ac_try='test -z "$ac_c_werror_flag"
18525 || test ! -s conftest.err'
be5cacdb
L
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try='test -s conftest.$ac_objext'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; }; then
18537 ac_cv_have_decl_stpcpy=yes
18538else
18539 echo "$as_me: failed program was:" >&5
18540sed 's/^/| /' conftest.$ac_ext >&5
18541
18542ac_cv_have_decl_stpcpy=no
18543fi
18544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18545fi
18546echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18547echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18548if test $ac_cv_have_decl_stpcpy = yes; then
18549
18550cat >>confdefs.h <<_ACEOF
18551#define HAVE_DECL_STPCPY 1
18552_ACEOF
18553
18554
18555else
18556 cat >>confdefs.h <<_ACEOF
18557#define HAVE_DECL_STPCPY 0
18558_ACEOF
18559
18560
18561fi
18562
18563
d34a2b1d
JG
18564echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18565echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18566if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568else
18569 cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h. */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h. */
d34a2b1d 18575$ac_includes_default
efa9bda4
AL
18576int
18577main ()
18578{
d34a2b1d
JG
18579#ifndef strstr
18580 char *p = (char *) strstr;
18581#endif
18582
efa9bda4
AL
18583 ;
18584 return 0;
18585}
18586_ACEOF
18587rm -f conftest.$ac_objext
18588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18589 (eval $ac_compile) 2>conftest.er1
18590 ac_status=$?
18591 grep -v '^ *+' conftest.er1 >conftest.err
18592 rm -f conftest.er1
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } &&
7357c5b6
AM
18596 { ac_try='test -z "$ac_c_werror_flag"
18597 || test ! -s conftest.err'
efa9bda4
AL
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
d34a2b1d 18609 ac_cv_have_decl_strstr=yes
efa9bda4
AL
18610else
18611 echo "$as_me: failed program was:" >&5
18612sed 's/^/| /' conftest.$ac_ext >&5
18613
d34a2b1d 18614ac_cv_have_decl_strstr=no
efa9bda4
AL
18615fi
18616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617fi
d34a2b1d
JG
18618echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18619echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18620if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 18621
d34a2b1d
JG
18622cat >>confdefs.h <<_ACEOF
18623#define HAVE_DECL_STRSTR 1
18624_ACEOF
efa9bda4 18625
d34a2b1d
JG
18626
18627else
18628 cat >>confdefs.h <<_ACEOF
18629#define HAVE_DECL_STRSTR 0
5464f5a1 18630_ACEOF
252b5132 18631
d34a2b1d 18632
252b5132
RH
18633fi
18634
6be7c12c 18635
36527912
AJ
18636echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18637echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18638if test "${ac_cv_have_decl_snprintf+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18640else
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647$ac_includes_default
18648int
18649main ()
18650{
18651#ifndef snprintf
18652 char *p = (char *) snprintf;
18653#endif
18654
18655 ;
18656 return 0;
18657}
18658_ACEOF
18659rm -f conftest.$ac_objext
18660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
7357c5b6
AM
18668 { ac_try='test -z "$ac_c_werror_flag"
18669 || test ! -s conftest.err'
36527912
AJ
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest.$ac_objext'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18678 ac_status=$?
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; }; then
18681 ac_cv_have_decl_snprintf=yes
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686ac_cv_have_decl_snprintf=no
18687fi
18688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18689fi
18690echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18691echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18692if test $ac_cv_have_decl_snprintf = yes; then
18693
18694cat >>confdefs.h <<_ACEOF
18695#define HAVE_DECL_SNPRINTF 1
18696_ACEOF
18697
18698
18699else
18700 cat >>confdefs.h <<_ACEOF
18701#define HAVE_DECL_SNPRINTF 0
18702_ACEOF
18703
18704
18705fi
18706
18707
18708echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18709echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18710if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712else
18713 cat >conftest.$ac_ext <<_ACEOF
18714/* confdefs.h. */
18715_ACEOF
18716cat confdefs.h >>conftest.$ac_ext
18717cat >>conftest.$ac_ext <<_ACEOF
18718/* end confdefs.h. */
18719$ac_includes_default
18720int
18721main ()
18722{
18723#ifndef vsnprintf
18724 char *p = (char *) vsnprintf;
18725#endif
18726
18727 ;
18728 return 0;
18729}
18730_ACEOF
18731rm -f conftest.$ac_objext
18732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18733 (eval $ac_compile) 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } &&
7357c5b6
AM
18740 { ac_try='test -z "$ac_c_werror_flag"
18741 || test ! -s conftest.err'
36527912
AJ
18742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743 (eval $ac_try) 2>&5
18744 ac_status=$?
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest.$ac_objext'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 ac_cv_have_decl_vsnprintf=yes
18754else
18755 echo "$as_me: failed program was:" >&5
18756sed 's/^/| /' conftest.$ac_ext >&5
18757
18758ac_cv_have_decl_vsnprintf=no
18759fi
18760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18761fi
18762echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18763echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18764if test $ac_cv_have_decl_vsnprintf = yes; then
18765
18766cat >>confdefs.h <<_ACEOF
18767#define HAVE_DECL_VSNPRINTF 1
18768_ACEOF
18769
18770
18771else
18772 cat >>confdefs.h <<_ACEOF
18773#define HAVE_DECL_VSNPRINTF 0
18774_ACEOF
18775
18776
18777fi
18778
18779
d34a2b1d 18780
1b315056 18781# Link in zlib if we can. This allows us to read compressed debug sections.
7357c5b6 18782# This is used only by compress.c.
1b315056
CS
18783echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18784echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18785if test "${ac_cv_search_zlibVersion+set}" = set; then
18786 echo $ECHO_N "(cached) $ECHO_C" >&6
18787else
18788 ac_func_search_save_LIBS=$LIBS
18789ac_cv_search_zlibVersion=no
18790cat >conftest.$ac_ext <<_ACEOF
18791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
18796
18797/* Override any gcc2 internal prototype to avoid an error. */
18798#ifdef __cplusplus
18799extern "C"
18800#endif
18801/* We use char because int might match the return type of a gcc2
18802 builtin and then its argument prototype would still apply. */
18803char zlibVersion ();
18804int
18805main ()
18806{
18807zlibVersion ();
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812rm -f conftest.$ac_objext conftest$ac_exeext
18813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18814 (eval $ac_link) 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
7357c5b6
AM
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
1b315056
CS
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; } &&
18828 { ac_try='test -s conftest$ac_exeext'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_cv_search_zlibVersion="none required"
18835else
18836 echo "$as_me: failed program was:" >&5
18837sed 's/^/| /' conftest.$ac_ext >&5
18838
18839fi
18840rm -f conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18842if test "$ac_cv_search_zlibVersion" = no; then
18843 for ac_lib in z; do
18844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
18846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851
18852/* Override any gcc2 internal prototype to avoid an error. */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856/* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18858char zlibVersion ();
18859int
18860main ()
18861{
18862zlibVersion ();
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext conftest$ac_exeext
18868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
7357c5b6
AM
18876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
1b315056
CS
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
18884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_search_zlibVersion="-l$ac_lib"
18890break
18891else
18892 echo "$as_me: failed program was:" >&5
18893sed 's/^/| /' conftest.$ac_ext >&5
18894
18895fi
18896rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
18898 done
18899fi
18900LIBS=$ac_func_search_save_LIBS
18901fi
18902echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18903echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18904if test "$ac_cv_search_zlibVersion" != no; then
18905 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18906
18907for ac_header in zlib.h
18908do
18909as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18910if eval "test \"\${$as_ac_Header+set}\" = set"; then
18911 echo "$as_me:$LINENO: checking for $ac_header" >&5
18912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18913if eval "test \"\${$as_ac_Header+set}\" = set"; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18915fi
18916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18918else
18919 # Is the header compilable?
18920echo "$as_me:$LINENO: checking $ac_header usability" >&5
18921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18922cat >conftest.$ac_ext <<_ACEOF
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
18927/* end confdefs.h. */
18928$ac_includes_default
18929#include <$ac_header>
18930_ACEOF
18931rm -f conftest.$ac_objext
18932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18933 (eval $ac_compile) 2>conftest.er1
18934 ac_status=$?
18935 grep -v '^ *+' conftest.er1 >conftest.err
18936 rm -f conftest.er1
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
7357c5b6
AM
18940 { ac_try='test -z "$ac_c_werror_flag"
18941 || test ! -s conftest.err'
1b315056
CS
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest.$ac_objext'
18948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_header_compiler=yes
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
18958ac_header_compiler=no
18959fi
18960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962echo "${ECHO_T}$ac_header_compiler" >&6
18963
18964# Is the header present?
18965echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18967cat >conftest.$ac_ext <<_ACEOF
18968/* confdefs.h. */
18969_ACEOF
18970cat confdefs.h >>conftest.$ac_ext
18971cat >>conftest.$ac_ext <<_ACEOF
18972/* end confdefs.h. */
18973#include <$ac_header>
18974_ACEOF
18975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } >/dev/null; then
18983 if test -s conftest.err; then
18984 ac_cpp_err=$ac_c_preproc_warn_flag
18985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18986 else
18987 ac_cpp_err=
18988 fi
18989else
18990 ac_cpp_err=yes
18991fi
18992if test -z "$ac_cpp_err"; then
18993 ac_header_preproc=yes
18994else
18995 echo "$as_me: failed program was:" >&5
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
18998 ac_header_preproc=no
18999fi
19000rm -f conftest.err conftest.$ac_ext
19001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002echo "${ECHO_T}$ac_header_preproc" >&6
19003
19004# So? What about this header?
19005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19006 yes:no: )
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19010echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19011 ac_header_preproc=yes
19012 ;;
19013 no:yes:* )
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19019echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19021echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19025echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19026 (
19027 cat <<\_ASBOX
19028## ------------------------------------------ ##
19029## Report this to the AC_PACKAGE_NAME lists. ##
19030## ------------------------------------------ ##
19031_ASBOX
19032 ) |
19033 sed "s/^/$as_me: WARNING: /" >&2
19034 ;;
19035esac
19036echo "$as_me:$LINENO: checking for $ac_header" >&5
19037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19038if eval "test \"\${$as_ac_Header+set}\" = set"; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040else
19041 eval "$as_ac_Header=\$ac_header_preproc"
19042fi
19043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19045
19046fi
19047if test `eval echo '${'$as_ac_Header'}'` = yes; then
19048 cat >>confdefs.h <<_ACEOF
19049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19050_ACEOF
19051
19052fi
19053
19054done
19055
19056fi
19057
19058
252b5132
RH
19059# If we are configured native, pick a core file support file.
19060COREFILE=
19061COREFLAG=
19062TRAD_HEADER=
19063if test "${target}" = "${host}"; then
19064 case "${host}" in
13dfd2d0 19065 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
19066 COREFILE=''
19067 ;;
ed84e695 19068 alpha*-*-linux-*)
252b5132
RH
19069 COREFILE=trad-core.lo
19070 TRAD_HEADER='"hosts/alphalinux.h"'
19071 ;;
690cc98b
NC
19072 alpha*-*-netbsd* | alpha*-*-openbsd*)
19073 COREFILE=netbsd-core.lo
19074 ;;
252b5132 19075 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
19076 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19077 COREFILE='' ;;
e33533a4
MK
19078 arm-*-netbsd* | arm-*-openbsd*)
19079 COREFILE=netbsd-core.lo
19080 ;;
252b5132
RH
19081 arm-*-riscix) COREFILE=trad-core.lo ;;
19082 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19083 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19084 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19085 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19086 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
19087 hppa*-*-netbsd* | hppa*-*-openbsd*)
19088 COREFILE=netbsd-core.lo
19089 ;;
19090
dc810e39 19091 i370-*-*)
5b93d8bb
AM
19092 COREFILE=trad-core.lo
19093 TRAD_HEADER='"hosts/i370linux.h"'
19094 ;;
19095
80c7c40a 19096 i[3-7]86-sequent-bsd*)
5b93d8bb 19097 COREFILE=trad-core.lo
252b5132
RH
19098 TRAD_HEADER='"hosts/symmetry.h"'
19099 ;;
80c7c40a
NC
19100 i[3-7]86-sequent-sysv4*) ;;
19101 i[3-7]86-sequent-sysv*)
252b5132
RH
19102 COREFILE=trad-core.lo
19103 TRAD_HEADER='"hosts/symmetry.h"'
19104 ;;
80c7c40a 19105 i[3-7]86-*-bsdi)
7e3b3466
NC
19106 COREFILE=
19107 ;;
d2bef492 19108 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
19109 COREFILE=trad-core.lo
19110 TRAD_HEADER='"hosts/i386bsd.h"'
19111 ;;
0b3e17e9 19112 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
d4af9775
DB
19113 COREFILE=''
19114 TRAD_HEADER='"hosts/i386bsd.h"'
19115 ;;
4615568e 19116 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
19117 COREFILE=netbsd-core.lo
19118 ;;
80c7c40a 19119 i[3-7]86-esix-sysv3*)
252b5132
RH
19120 COREFILE=trad-core.lo
19121 TRAD_HEADER='"hosts/esix.h"'
19122 ;;
80c7c40a 19123 i[3-7]86-*-sco3.2v5*)
252b5132
RH
19124 COREFILE=sco5-core.lo
19125 ;;
80c7c40a 19126 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
19127 COREFILE=trad-core.lo
19128 TRAD_HEADER='"hosts/i386sco.h"'
19129 ;;
80c7c40a 19130 i[3-7]86-*-mach3*)
252b5132
RH
19131 COREFILE=trad-core.lo
19132 TRAD_HEADER='"hosts/i386mach3.h"'
19133 ;;
ed84e695 19134 i[3-7]86-*-linux-*)
252b5132
RH
19135 COREFILE=trad-core.lo
19136 TRAD_HEADER='"hosts/i386linux.h"'
19137 ;;
80c7c40a
NC
19138 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19139 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
19140 i860-*-mach3* | i860-*-osf1*)
19141 COREFILE=trad-core.lo
19142 TRAD_HEADER='"hosts/i860mach3.h"'
19143 ;;
252b5132
RH
19144 mips-*-netbsd* | mips*-*-openbsd*)
19145 COREFILE=netbsd-core.lo
19146 ;;
19147 mips-dec-*)
19148 COREFILE=trad-core.lo
19149 TRAD_HEADER='"hosts/decstation.h"'
19150 ;;
19151 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19152 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19153 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
19154 mips-*-sysv4*) ;;
19155 mips-*-sysv* | mips-*-riscos*)
19156 COREFILE=trad-core.lo
19157 TRAD_HEADER='"hosts/riscos.h"'
19158 ;;
19159 mips-sony-bsd*)
19160 COREFILE=trad-core.lo
19161 TRAD_HEADER='"hosts/news-mips.h"'
19162 ;;
19163 m68*-bull*-sysv*)
19164 COREFILE=trad-core.lo
19165 TRAD_HEADER='"hosts/dpx2.h"'
19166 ;;
19167 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19168 m68*-hp-bsd*)
19169 COREFILE=trad-core.lo
19170 TRAD_HEADER='"hosts/hp300bsd.h"'
19171 ;;
ed84e695 19172 m68*-*-linux-*)
252b5132
RH
19173 COREFILE=trad-core.lo
19174 TRAD_HEADER='"hosts/m68klinux.h"'
19175 ;;
19176 m68*-motorola-sysv*)
19177 COREFILE=trad-core.lo
19178 TRAD_HEADER='"hosts/delta68.h"'
19179 ;;
19180 m68*-sony-*)
19181 COREFILE=trad-core.lo
19182 TRAD_HEADER='"hosts/news.h"'
19183 ;;
19184 m68*-*-netbsd* | m68*-*-openbsd*)
19185 COREFILE=netbsd-core.lo
19186 ;;
19187 m68*-apple-aux*)
19188 COREFILE=trad-core.lo
19189 TRAD_HEADER='"hosts/m68kaux.h"'
19190 ;;
eb1e0e80
NC
19191 m88*-*-sysv4*)
19192 ;;
19193 m88*-motorola-sysv*)
19194 COREFILE=ptrace-core.lo
19195 ;;
252b5132
RH
19196 m88*-*-mach3*)
19197 COREFILE=trad-core.lo
19198 TRAD_HEADER='"hosts/m88kmach3.h"'
19199 ;;
c6f8758f
NC
19200 m88*-*-openbsd*)
19201 COREFILE=netbsd-core.lo
19202 ;;
252b5132
RH
19203 ns32k-pc532-mach)
19204 COREFILE=trad-core.lo
19205 TRAD_HEADER='"hosts/pc532mach.h"'
19206 ;;
19207 ns32k-*-netbsd* | ns32k-*-openbsd*)
19208 COREFILE=netbsd-core.lo
19209 ;;
eb1e0e80
NC
19210 rs6000-*-lynx*)
19211 COREFILE=lynx-core.lo
19212 ;;
19213 rs6000-*-aix5.* | powerpc-*-aix5.*)
19214 COREFILE=rs6000-core.lo
19215 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19216 ;;
83954261 19217 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
19218 COREFILE=rs6000-core.lo
19219 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
19220 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19221 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
19222 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19223echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225/* confdefs.h. */
19226_ACEOF
19227cat confdefs.h >>conftest.$ac_ext
19228cat >>conftest.$ac_ext <<_ACEOF
19229/* end confdefs.h. */
83954261 19230#include <core.h>
5464f5a1
NN
19231int
19232main ()
19233{
83954261 19234struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
19235 ;
19236 return 0;
19237}
19238_ACEOF
19239rm -f conftest.$ac_objext
19240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19242 ac_status=$?
19243 grep -v '^ *+' conftest.er1 >conftest.err
19244 rm -f conftest.er1
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
7357c5b6
AM
19248 { ac_try='test -z "$ac_c_werror_flag"
19249 || test ! -s conftest.err'
5464f5a1
NN
19250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19251 (eval $ac_try) 2>&5
19252 ac_status=$?
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; } &&
19255 { ac_try='test -s conftest.$ac_objext'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261
19262cat >>confdefs.h <<\_ACEOF
83954261 19263#define HAVE_ST_C_IMPL 1
5464f5a1 19264_ACEOF
83954261 19265
5464f5a1
NN
19266 echo "$as_me:$LINENO: result: yes" >&5
19267echo "${ECHO_T}yes" >&6
83954261 19268else
5464f5a1
NN
19269 echo "$as_me: failed program was:" >&5
19270sed 's/^/| /' conftest.$ac_ext >&5
19271
19272echo "$as_me:$LINENO: result: no" >&5
19273echo "${ECHO_T}no" >&6
83954261 19274fi
5464f5a1 19275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 19276 ;;
252b5132
RH
19277 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19278 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
19279 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19280 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19281 powerpc-*-beos*) ;;
13dfd2d0
NC
19282 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19283 COREFILE='' ;;
252b5132 19284 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 19285 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 19286 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
19287 sh*-*-netbsd* | sh*-*-openbsd*)
19288 COREFILE=netbsd-core.lo
19289 ;;
a9bf1154 19290 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
19291 COREFILE=netbsd-core.lo
19292 ;;
19293 tahoe-*-*)
19294 COREFILE=trad-core.lo
19295 TRAD_HEADER='"hosts/tahoe.h"'
19296 ;;
de6e5e1a
NC
19297 vax-*-netbsd* | vax-*-openbsd*)
19298 COREFILE=netbsd-core.lo
19299 ;;
252b5132
RH
19300 vax-*-ultrix2*)
19301 COREFILE=trad-core.lo
19302 TRAD_HEADER='"hosts/vaxult2.h"'
19303 ;;
19304 vax-*-ultrix*)
19305 COREFILE=trad-core.lo
19306 TRAD_HEADER='"hosts/vaxult2.h"'
19307 ;;
ed84e695 19308 vax-*-linux-*)
f8fc3443
NC
19309 COREFILE=trad-core.lo
19310 TRAD_HEADER='"hosts/vaxlinux.h"'
19311 ;;
252b5132
RH
19312 vax-*-*)
19313 COREFILE=trad-core.lo
19314 TRAD_HEADER='"hosts/vaxbsd.h"'
19315 ;;
85cfd8d3
MK
19316 x86_64-*-netbsd* | x86_64-*-openbsd*)
19317 COREFILE=netbsd-core.lo
19318 ;;
252b5132
RH
19319 esac
19320
19321 case "$COREFILE" in
19322 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19323 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19324 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19325 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19326 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19327 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19328 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19329 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19330 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19331 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19332 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19333 esac
19334
19335 # ELF corefile support has several flavors, but all of
19336 # them use something called <sys/procfs.h>
5464f5a1
NN
19337
19338for ac_header in sys/procfs.h
252b5132 19339do
5464f5a1
NN
19340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19341if eval "test \"\${$as_ac_Header+set}\" = set"; then
19342 echo "$as_me:$LINENO: checking for $ac_header" >&5
19343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19344if eval "test \"\${$as_ac_Header+set}\" = set"; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346fi
19347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19349else
19350 # Is the header compilable?
19351echo "$as_me:$LINENO: checking $ac_header usability" >&5
19352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19353cat >conftest.$ac_ext <<_ACEOF
19354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
19359$ac_includes_default
19360#include <$ac_header>
19361_ACEOF
19362rm -f conftest.$ac_objext
19363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
7357c5b6
AM
19371 { ac_try='test -z "$ac_c_werror_flag"
19372 || test ! -s conftest.err'
5464f5a1
NN
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_header_compiler=yes
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389ac_header_compiler=no
19390fi
19391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19393echo "${ECHO_T}$ac_header_compiler" >&6
19394
19395# Is the header present?
19396echo "$as_me:$LINENO: checking $ac_header presence" >&5
19397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19398cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404#include <$ac_header>
19405_ACEOF
19406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } >/dev/null; then
19414 if test -s conftest.err; then
19415 ac_cpp_err=$ac_c_preproc_warn_flag
19416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19417 else
19418 ac_cpp_err=
19419 fi
252b5132 19420else
5464f5a1 19421 ac_cpp_err=yes
252b5132 19422fi
5464f5a1
NN
19423if test -z "$ac_cpp_err"; then
19424 ac_header_preproc=yes
19425else
19426 echo "$as_me: failed program was:" >&5
19427sed 's/^/| /' conftest.$ac_ext >&5
19428
19429 ac_header_preproc=no
252b5132 19430fi
5464f5a1
NN
19431rm -f conftest.err conftest.$ac_ext
19432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19433echo "${ECHO_T}$ac_header_preproc" >&6
19434
19435# So? What about this header?
19436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19437 yes:no: )
19438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19442 ac_header_preproc=yes
19443 ;;
19444 no:yes:* )
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19457 (
19458 cat <<\_ASBOX
19459## ------------------------------------------ ##
19460## Report this to the AC_PACKAGE_NAME lists. ##
19461## ------------------------------------------ ##
19462_ASBOX
19463 ) |
19464 sed "s/^/$as_me: WARNING: /" >&2
19465 ;;
19466esac
19467echo "$as_me:$LINENO: checking for $ac_header" >&5
19468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19469if eval "test \"\${$as_ac_Header+set}\" = set"; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 19471else
5464f5a1
NN
19472 eval "$as_ac_Header=\$ac_header_preproc"
19473fi
19474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19476
252b5132 19477fi
5464f5a1
NN
19478if test `eval echo '${'$as_ac_Header'}'` = yes; then
19479 cat >>confdefs.h <<_ACEOF
19480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19481_ACEOF
19482
19483fi
19484
252b5132
RH
19485done
19486
19487 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
19488 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19489echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19490 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492else
19493 cat >conftest.$ac_ext <<_ACEOF
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
7ee38065
MS
19499
19500#define _SYSCALL32
252b5132 19501#include <sys/procfs.h>
5464f5a1
NN
19502int
19503main ()
19504{
252b5132 19505prstatus_t avar
5464f5a1
NN
19506 ;
19507 return 0;
19508}
19509_ACEOF
19510rm -f conftest.$ac_objext
19511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19512 (eval $ac_compile) 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
7357c5b6
AM
19519 { ac_try='test -z "$ac_c_werror_flag"
19520 || test ! -s conftest.err'
5464f5a1
NN
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
252b5132
RH
19532 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19533else
5464f5a1
NN
19534 echo "$as_me: failed program was:" >&5
19535sed 's/^/| /' conftest.$ac_ext >&5
19536
19537bfd_cv_have_sys_procfs_type_prstatus_t=no
19538
252b5132 19539fi
5464f5a1 19540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19541fi
19542
19543 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
19544
19545cat >>confdefs.h <<\_ACEOF
252b5132 19546#define HAVE_PRSTATUS_T 1
5464f5a1 19547_ACEOF
252b5132
RH
19548
19549 fi
5464f5a1
NN
19550 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19551echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 19552
5464f5a1
NN
19553 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19554echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19555 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19557else
5464f5a1
NN
19558 cat >conftest.$ac_ext <<_ACEOF
19559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h. */
7ee38065
MS
19564
19565#define _SYSCALL32
19566#include <sys/procfs.h>
5464f5a1
NN
19567int
19568main ()
19569{
7ee38065 19570prstatus32_t avar
5464f5a1
NN
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext
19576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19577 (eval $ac_compile) 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
7357c5b6
AM
19584 { ac_try='test -z "$ac_c_werror_flag"
19585 || test ! -s conftest.err'
5464f5a1
NN
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19588 ac_status=$?
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; } &&
19591 { ac_try='test -s conftest.$ac_objext'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
7ee38065
MS
19597 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19598else
5464f5a1
NN
19599 echo "$as_me: failed program was:" >&5
19600sed 's/^/| /' conftest.$ac_ext >&5
19601
19602bfd_cv_have_sys_procfs_type_prstatus32_t=no
19603
7ee38065 19604fi
5464f5a1 19605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19606fi
19607
19608 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
19609
19610cat >>confdefs.h <<\_ACEOF
7ee38065 19611#define HAVE_PRSTATUS32_T 1
5464f5a1 19612_ACEOF
7ee38065
MS
19613
19614 fi
5464f5a1
NN
19615 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19616echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 19617
5464f5a1
NN
19618 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19619echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19620 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19622else
5464f5a1
NN
19623 cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
7ee38065
MS
19629
19630#define _SYSCALL32
252b5132 19631#include <sys/procfs.h>
5464f5a1
NN
19632int
19633main ()
19634{
252b5132 19635prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19636 ;
19637 return 0;
19638}
19639_ACEOF
19640rm -f conftest.$ac_objext
19641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19642 (eval $ac_compile) 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } &&
7357c5b6
AM
19649 { ac_try='test -z "$ac_c_werror_flag"
19650 || test ! -s conftest.err'
5464f5a1
NN
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } &&
19656 { ac_try='test -s conftest.$ac_objext'
19657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658 (eval $ac_try) 2>&5
19659 ac_status=$?
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; }; then
252b5132
RH
19662 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19663else
5464f5a1
NN
19664 echo "$as_me: failed program was:" >&5
19665sed 's/^/| /' conftest.$ac_ext >&5
19666
19667bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19668
252b5132 19669fi
5464f5a1 19670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19671fi
19672
19673 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
19674
19675cat >>confdefs.h <<\_ACEOF
252b5132 19676#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 19677_ACEOF
252b5132
RH
19678
19679 fi
5464f5a1
NN
19680 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19681echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 19682
5464f5a1
NN
19683 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19684echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19685 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19687else
5464f5a1
NN
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. */
7ee38065
MS
19694
19695#define _SYSCALL32
19696#include <sys/procfs.h>
5464f5a1
NN
19697int
19698main ()
19699{
7ee38065 19700prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
19701 ;
19702 return 0;
19703}
19704_ACEOF
19705rm -f conftest.$ac_objext
19706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
7357c5b6
AM
19714 { ac_try='test -z "$ac_c_werror_flag"
19715 || test ! -s conftest.err'
5464f5a1
NN
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
7ee38065
MS
19727 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19728else
5464f5a1
NN
19729 echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19733
7ee38065 19734fi
5464f5a1 19735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19736fi
19737
19738 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
19739
19740cat >>confdefs.h <<\_ACEOF
7ee38065 19741#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 19742_ACEOF
7ee38065
MS
19743
19744 fi
5464f5a1
NN
19745 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19746echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 19747
5464f5a1
NN
19748 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19749echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19750 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19752else
5464f5a1
NN
19753 cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
7ee38065
MS
19759
19760#define _SYSCALL32
252b5132 19761#include <sys/procfs.h>
5464f5a1
NN
19762int
19763main ()
19764{
252b5132 19765pstatus_t avar
5464f5a1
NN
19766 ;
19767 return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19772 (eval $ac_compile) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
7357c5b6
AM
19779 { ac_try='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
5464f5a1
NN
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
252b5132
RH
19792 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19793else
5464f5a1
NN
19794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797bfd_cv_have_sys_procfs_type_pstatus_t=no
19798
252b5132 19799fi
5464f5a1 19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19801fi
19802
19803 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
19804
19805cat >>confdefs.h <<\_ACEOF
252b5132 19806#define HAVE_PSTATUS_T 1
5464f5a1 19807_ACEOF
252b5132
RH
19808
19809 fi
5464f5a1
NN
19810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19811echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 19812
5464f5a1
NN
19813 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19814echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19815 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 19817else
5464f5a1
NN
19818 cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
f572a39d
AM
19824
19825#define _SYSCALL32
19826#include <sys/procfs.h>
5464f5a1
NN
19827int
19828main ()
19829{
f572a39d 19830pxstatus_t avar
5464f5a1
NN
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
7357c5b6
AM
19844 { ac_try='test -z "$ac_c_werror_flag"
19845 || test ! -s conftest.err'
5464f5a1
NN
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest.$ac_objext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
f572a39d
AM
19857 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19858else
5464f5a1
NN
19859 echo "$as_me: failed program was:" >&5
19860sed 's/^/| /' conftest.$ac_ext >&5
19861
19862bfd_cv_have_sys_procfs_type_pxstatus_t=no
19863
f572a39d 19864fi
5464f5a1 19865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
19866fi
19867
19868 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
19869
19870cat >>confdefs.h <<\_ACEOF
f572a39d 19871#define HAVE_PXSTATUS_T 1
5464f5a1 19872_ACEOF
f572a39d
AM
19873
19874 fi
5464f5a1
NN
19875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19876echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 19877
5464f5a1
NN
19878 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19879echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19880 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 19882else
5464f5a1
NN
19883 cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
7ee38065
MS
19889
19890#define _SYSCALL32
19891#include <sys/procfs.h>
5464f5a1
NN
19892int
19893main ()
19894{
7ee38065 19895pstatus32_t avar
5464f5a1
NN
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext
19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19903 ac_status=$?
19904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
7357c5b6
AM
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
5464f5a1
NN
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
7ee38065
MS
19922 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19923else
5464f5a1
NN
19924 echo "$as_me: failed program was:" >&5
19925sed 's/^/| /' conftest.$ac_ext >&5
19926
19927bfd_cv_have_sys_procfs_type_pstatus32_t=no
19928
7ee38065 19929fi
5464f5a1 19930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
19931fi
19932
19933 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
19934
19935cat >>confdefs.h <<\_ACEOF
7ee38065 19936#define HAVE_PSTATUS32_T 1
5464f5a1 19937_ACEOF
7ee38065
MS
19938
19939 fi
5464f5a1
NN
19940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19941echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 19942
5464f5a1
NN
19943 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19944echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19945 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 19947else
5464f5a1
NN
19948 cat >conftest.$ac_ext <<_ACEOF
19949/* confdefs.h. */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h. */
7ee38065
MS
19954
19955#define _SYSCALL32
252b5132 19956#include <sys/procfs.h>
5464f5a1
NN
19957int
19958main ()
19959{
252b5132 19960prpsinfo_t avar
5464f5a1
NN
19961 ;
19962 return 0;
19963}
19964_ACEOF
19965rm -f conftest.$ac_objext
19966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967 (eval $ac_compile) 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } &&
7357c5b6
AM
19974 { ac_try='test -z "$ac_c_werror_flag"
19975 || test ! -s conftest.err'
5464f5a1
NN
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
252b5132
RH
19987 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
19988else
5464f5a1
NN
19989 echo "$as_me: failed program was:" >&5
19990sed 's/^/| /' conftest.$ac_ext >&5
19991
19992bfd_cv_have_sys_procfs_type_prpsinfo_t=no
19993
252b5132 19994fi
5464f5a1 19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
19996fi
19997
19998 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
19999
20000cat >>confdefs.h <<\_ACEOF
252b5132 20001#define HAVE_PRPSINFO_T 1
5464f5a1 20002_ACEOF
252b5132
RH
20003
20004 fi
5464f5a1
NN
20005 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20006echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 20007
5464f5a1
NN
20008 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20009echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20010 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20012else
5464f5a1
NN
20013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
7ee38065
MS
20019
20020#define _SYSCALL32
20021#include <sys/procfs.h>
5464f5a1
NN
20022int
20023main ()
20024{
7ee38065 20025prpsinfo32_t avar
5464f5a1
NN
20026 ;
20027 return 0;
20028}
20029_ACEOF
20030rm -f conftest.$ac_objext
20031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20032 (eval $ac_compile) 2>conftest.er1
20033 ac_status=$?
20034 grep -v '^ *+' conftest.er1 >conftest.err
20035 rm -f conftest.er1
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
7357c5b6
AM
20039 { ac_try='test -z "$ac_c_werror_flag"
20040 || test ! -s conftest.err'
5464f5a1
NN
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20043 ac_status=$?
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; } &&
20046 { ac_try='test -s conftest.$ac_objext'
20047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20048 (eval $ac_try) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
7ee38065
MS
20052 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20053else
5464f5a1
NN
20054 echo "$as_me: failed program was:" >&5
20055sed 's/^/| /' conftest.$ac_ext >&5
20056
20057bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20058
7ee38065 20059fi
5464f5a1 20060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20061fi
20062
20063 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
20064
20065cat >>confdefs.h <<\_ACEOF
7ee38065 20066#define HAVE_PRPSINFO32_T 1
5464f5a1 20067_ACEOF
7ee38065
MS
20068
20069 fi
5464f5a1
NN
20070 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20071echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 20072
5464f5a1
NN
20073 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20074echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20075 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20077else
5464f5a1
NN
20078 cat >conftest.$ac_ext <<_ACEOF
20079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
20083/* end confdefs.h. */
7ee38065
MS
20084
20085#define _SYSCALL32
252b5132 20086#include <sys/procfs.h>
5464f5a1
NN
20087int
20088main ()
20089{
252b5132 20090psinfo_t avar
5464f5a1
NN
20091 ;
20092 return 0;
20093}
20094_ACEOF
20095rm -f conftest.$ac_objext
20096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20097 (eval $ac_compile) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
7357c5b6
AM
20104 { ac_try='test -z "$ac_c_werror_flag"
20105 || test ! -s conftest.err'
5464f5a1
NN
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
252b5132
RH
20117 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20118else
5464f5a1
NN
20119 echo "$as_me: failed program was:" >&5
20120sed 's/^/| /' conftest.$ac_ext >&5
20121
20122bfd_cv_have_sys_procfs_type_psinfo_t=no
20123
252b5132 20124fi
5464f5a1 20125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20126fi
20127
20128 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
20129
20130cat >>confdefs.h <<\_ACEOF
252b5132 20131#define HAVE_PSINFO_T 1
5464f5a1 20132_ACEOF
252b5132
RH
20133
20134 fi
5464f5a1
NN
20135 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20136echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 20137
5464f5a1
NN
20138 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20139echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20140 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 20142else
5464f5a1
NN
20143 cat >conftest.$ac_ext <<_ACEOF
20144/* confdefs.h. */
20145_ACEOF
20146cat confdefs.h >>conftest.$ac_ext
20147cat >>conftest.$ac_ext <<_ACEOF
20148/* end confdefs.h. */
7ee38065
MS
20149
20150#define _SYSCALL32
20151#include <sys/procfs.h>
5464f5a1
NN
20152int
20153main ()
20154{
7ee38065 20155psinfo32_t avar
5464f5a1
NN
20156 ;
20157 return 0;
20158}
20159_ACEOF
20160rm -f conftest.$ac_objext
20161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
7357c5b6
AM
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
5464f5a1
NN
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
7ee38065
MS
20182 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20183else
5464f5a1
NN
20184 echo "$as_me: failed program was:" >&5
20185sed 's/^/| /' conftest.$ac_ext >&5
20186
20187bfd_cv_have_sys_procfs_type_psinfo32_t=no
20188
7ee38065 20189fi
5464f5a1 20190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
20191fi
20192
20193 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
20194
20195cat >>confdefs.h <<\_ACEOF
7ee38065 20196#define HAVE_PSINFO32_T 1
5464f5a1 20197_ACEOF
7ee38065
MS
20198
20199 fi
5464f5a1
NN
20200 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20201echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 20202
5464f5a1
NN
20203 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20204echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20205 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20207else
5464f5a1
NN
20208 cat >conftest.$ac_ext <<_ACEOF
20209/* confdefs.h. */
20210_ACEOF
20211cat confdefs.h >>conftest.$ac_ext
20212cat >>conftest.$ac_ext <<_ACEOF
20213/* end confdefs.h. */
7ee38065
MS
20214
20215#define _SYSCALL32
252b5132 20216#include <sys/procfs.h>
5464f5a1
NN
20217int
20218main ()
20219{
252b5132 20220lwpstatus_t avar
5464f5a1
NN
20221 ;
20222 return 0;
20223}
20224_ACEOF
20225rm -f conftest.$ac_objext
20226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20228 ac_status=$?
20229 grep -v '^ *+' conftest.er1 >conftest.err
20230 rm -f conftest.er1
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
7357c5b6
AM
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
5464f5a1
NN
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
252b5132
RH
20247 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20248else
5464f5a1
NN
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20253
252b5132 20254fi
5464f5a1 20255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20256fi
20257
20258 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
20259
20260cat >>confdefs.h <<\_ACEOF
252b5132 20261#define HAVE_LWPSTATUS_T 1
5464f5a1 20262_ACEOF
252b5132
RH
20263
20264 fi
5464f5a1
NN
20265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20266echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 20267
5464f5a1
NN
20268 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20269echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20270 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 20272else
5464f5a1
NN
20273 cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
f572a39d
AM
20279
20280#define _SYSCALL32
20281#include <sys/procfs.h>
5464f5a1
NN
20282int
20283main ()
20284{
f572a39d 20285lwpxstatus_t avar
5464f5a1
NN
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>conftest.er1
20293 ac_status=$?
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
7357c5b6
AM
20299 { ac_try='test -z "$ac_c_werror_flag"
20300 || test ! -s conftest.err'
5464f5a1
NN
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; } &&
20306 { ac_try='test -s conftest.$ac_objext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
f572a39d
AM
20312 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20313else
5464f5a1
NN
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
20317bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20318
f572a39d 20319fi
5464f5a1 20320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
20321fi
20322
20323 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
20324
20325cat >>confdefs.h <<\_ACEOF
f572a39d 20326#define HAVE_LWPXSTATUS_T 1
5464f5a1 20327_ACEOF
f572a39d
AM
20328
20329 fi
5464f5a1
NN
20330 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20331echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 20332
5464f5a1
NN
20333 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20334echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20335 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20336 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20337else
5464f5a1
NN
20338 cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h. */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
20343/* end confdefs.h. */
7ee38065
MS
20344
20345#define _SYSCALL32
252b5132 20346#include <sys/procfs.h>
5464f5a1
NN
20347int
20348main ()
20349{
252b5132 20350lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355rm -f conftest.$ac_objext
20356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20358 ac_status=$?
20359 grep -v '^ *+' conftest.er1 >conftest.err
20360 rm -f conftest.er1
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
7357c5b6
AM
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
5464f5a1
NN
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
252b5132
RH
20377 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20378else
5464f5a1
NN
20379 echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20383
252b5132 20384fi
5464f5a1 20385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20386fi
20387
20388 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
20389
20390cat >>confdefs.h <<\_ACEOF
252b5132 20391#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 20392_ACEOF
252b5132
RH
20393
20394 fi
5464f5a1
NN
20395 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20396echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 20397
5464f5a1
NN
20398 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20399echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20400 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 20402else
5464f5a1
NN
20403 cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
7ee38065
MS
20409
20410#define _SYSCALL32
252b5132 20411#include <sys/procfs.h>
5464f5a1
NN
20412int
20413main ()
20414{
252b5132 20415lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
20416 ;
20417 return 0;
20418}
20419_ACEOF
20420rm -f conftest.$ac_objext
20421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20422 (eval $ac_compile) 2>conftest.er1
20423 ac_status=$?
20424 grep -v '^ *+' conftest.er1 >conftest.err
20425 rm -f conftest.er1
20426 cat conftest.err >&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); } &&
7357c5b6
AM
20429 { ac_try='test -z "$ac_c_werror_flag"
20430 || test ! -s conftest.err'
5464f5a1
NN
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; } &&
20436 { ac_try='test -s conftest.$ac_objext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
252b5132
RH
20442 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20443else
5464f5a1
NN
20444 echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20448
252b5132 20449fi
5464f5a1 20450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20451fi
20452
20453 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
20454
20455cat >>confdefs.h <<\_ACEOF
252b5132 20456#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 20457_ACEOF
252b5132
RH
20458
20459 fi
5464f5a1
NN
20460 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20461echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 20462
5464f5a1
NN
20463 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20464echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20465 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 20467else
5464f5a1
NN
20468 cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
7ee38065
MS
20474
20475#define _SYSCALL32
e3c976c4 20476#include <sys/procfs.h>
5464f5a1
NN
20477int
20478main ()
20479{
e3c976c4 20480win32_pstatus_t avar
5464f5a1
NN
20481 ;
20482 return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext
20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
7357c5b6
AM
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
5464f5a1
NN
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
e3c976c4
ILT
20507 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20508else
5464f5a1
NN
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
20512bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20513
e3c976c4 20514fi
5464f5a1 20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
20516fi
20517
e3c976c4 20518 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
20519
20520cat >>confdefs.h <<\_ACEOF
e3c976c4 20521#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 20522_ACEOF
16e9c715
NC
20523
20524 fi
5464f5a1
NN
20525 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20526echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
20527
20528 fi
20529fi
16e9c715 20530
b3baf5d0 20531
6be7c12c 20532if test -n "$TRAD_HEADER"; then
5464f5a1
NN
20533
20534cat >>confdefs.h <<_ACEOF
252b5132 20535#define TRAD_HEADER $TRAD_HEADER
5464f5a1 20536_ACEOF
252b5132 20537
3f9b03b5 20538fi
252b5132
RH
20539
20540# Horrible hacks to build DLLs on Windows.
20541WIN32LDFLAGS=
20542WIN32LIBADD=
20543case "${host}" in
20544*-*-cygwin*)
20545 if test "$enable_shared" = "yes"; then
20546 WIN32LDFLAGS="-no-undefined"
20547 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20548 fi
20549 ;;
78be1d6e 20550*-*-linux*)
39691762
L
20551 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20552 # libiberty.a.
c5cb8442
TS
20553 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20554 if test -n "$x"; then
20555 WIN32LIBADD="-L../libiberty/pic -liberty"
20556 fi
39691762 20557 ;;
252b5132
RH
20558esac
20559
6be7c12c
AO
20560
20561
252b5132
RH
20562# target stuff:
20563
20564# Canonicalize the secondary target names.
20565if test -n "$enable_targets" ; then
20566 for targ in `echo $enable_targets | sed 's/,/ /g'`
20567 do
6d83c84b 20568 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
20569 if test -n "$result" ; then
20570 canon_targets="$canon_targets $result"
20571 else
20572 # Allow targets that config.sub doesn't recognize, like "all".
20573 canon_targets="$canon_targets $targ"
20574 fi
20575 done
20576fi
20577
20578all_targets=false
20579defvec=
20580selvecs=
08f74004 20581assocvecs=
252b5132
RH
20582selarchs=
20583TDEFINES=
20584for targ in $target $canon_targets
20585do
20586 if test "x$targ" = "xall"; then
20587 all_targets=true
08f74004 20588 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
20589 else
20590 . $srcdir/config.bfd
20591 if test "x$targ" = "x$target"; then
20592 defvec=$targ_defvec
20593 fi
20594 selvecs="$selvecs $targ_defvec $targ_selvecs"
20595 selarchs="$selarchs $targ_archs"
20596 TDEFINES="$TDEFINES $targ_cflags"
20597 fi
20598done
20599
6be7c12c 20600
252b5132
RH
20601# This processing still needs to be done if we're to decide properly whether
20602# 64-bit support needs to be compiled in. Currently, it will be included if
20603# the default or any other explicitly requested target requires it; it
20604# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 20605# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
20606# used.
20607
20608# uniq the default and selected vectors in all the configured targets.
20609f=""
20610for i in $selvecs ; do
20611 case " $f " in
20612 *" $i "*) ;;
20613 *) f="$f $i" ;;
20614 esac
20615done
20616selvecs="$f"
20617
6be7c12c 20618
08f74004
AM
20619# uniq the associated vectors in all the configured targets.
20620f=""
20621for i in $assocvecs ; do
20622 case " $f " in
20623 *" $i "*) ;;
20624 *) f="$f $i" ;;
20625 esac
20626done
20627assocvecs="$f"
20628
20629
252b5132
RH
20630# uniq the architectures in all the configured targets.
20631f=""
20632for i in $selarchs ; do
20633 case " $f " in
20634 *" $i "*) ;;
20635 *) f="$f $i" ;;
20636 esac
20637done
20638selarchs="$f"
20639
20640# Target backend .o files.
20641tb=
20642
104d59d1 20643elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
20644
20645for vec in $selvecs
20646do
69263e90 20647 target_size=32
252b5132
RH
20648 case "$vec" in
20649 # This list is alphabetized to make it easy to compare
dc810e39
AM
20650 # with the two vector lists in targets.c. For the same reason,
20651 # use one entry per line, even though this leads to long lines.
252b5132 20652 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 20653 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
20654 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20655 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20656 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 20657 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
20658 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20659 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20660 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20661 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
20662 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20663 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20664 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20665 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
20666 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20667 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20668 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20669 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20670 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20671 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20672 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
20673 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20674 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 20675 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
e81819a5
NC
20676 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20677 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 20678 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
e81819a5
NC
20679 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20680 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 20681 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
e81819a5
NC
20682 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20683 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 20684 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 20685 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 20686 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 20687 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 20688 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 20689 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 20690 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 20691 bfd_elf32_bigarm_symbian_vec)
00a97672 20692 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20693 bfd_elf32_bigarm_vxworks_vec)
00a97672 20694 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20695 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20696 bfd_elf32_bigmips_vxworks_vec)
20697 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
3d3d428f 20698 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
0949843d 20699 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 20700 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 20701 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
20702 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20703 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 20704 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 20705 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 20706 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 20707 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 20708 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 20709 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 20710 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 20711 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 20712 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
0b3e17e9
NC
20713 bfd_elf32_i386_dragonfly_vec)
20714 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
eac338cf
PB
20715 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20716 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20717 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 20718 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 20719 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 20720 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 20721 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 20722 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 20723 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 20724 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 20725 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 20726 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 20727 bfd_elf32_littlearm_symbian_vec)
00a97672 20728 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 20729 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
20730 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20731 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
20732 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20733 bfd_elf32_littlemips_vxworks_vec)
20734 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 20735 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 20736 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
20737 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20738 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20739 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
20740 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20741 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
20742 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20743 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20744 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20745 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
20746 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20747 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
20748 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20749 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 20750 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 20751 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
20752 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20753 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20754 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20755 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 20756 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 20757 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
20758 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20759 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
20760 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20761 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20762 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 20763 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
20764 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20765 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
20766 # FIXME: We include cofflink.lo not because it's needed for
20767 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20768 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
20769 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20770 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20771 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20772 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20773 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20774 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20775 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20776 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20777 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20778 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20779 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20780 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20781 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 20782 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 20783 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
20784 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20785 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 20786 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
20787 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20788 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 20789 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 20790 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 20791 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 20792 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 20793 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
20794 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20795 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 20796 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20797 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20798 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20799 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
20800 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20801 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20802 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 20803 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
20804 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20805 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 20806 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 20807 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
20808 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20809 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20810 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
20811 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20812 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
20813 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20814 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20815 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20816 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 20817 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 20818 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
20819 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 ;;
20820 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 20821 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 20822 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 20823 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
20824 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20825 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20826 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20827 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 20828 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 20829 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 20830 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 20831 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
20832 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20833 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
20834 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20835 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20836 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20837 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20838 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20839 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20840 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20841 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20842 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20843 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 20844 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20845 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20846 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
20847 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20848 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20849 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20850 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 20851 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
20852 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20853 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
20854 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20855 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
20856 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20857 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
20858 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20859 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20860 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20861 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
20862 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20863 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
20864 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20865 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20866 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 20867 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
20868 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20869 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 20870 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 20871 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 20872 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
20873 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20874 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20875 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
20876 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20877 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20878 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20879 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
20880 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20881 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 20882 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 20883 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 20884 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 20885 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 20886 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 20887 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 20888 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 20889 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
20890 pef_vec) tb="$tb pef.lo" ;;
20891 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 20892 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 20893 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20894 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 20895 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 20896 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 20897 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 20898 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20899 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 20900 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 20901 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
20902 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20903 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 20904 som_vec) tb="$tb som.lo" ;;
dc810e39 20905 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
20906 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20907 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20908 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20909 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20910 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 20911 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 20912 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
20913 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20914 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
20915 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20916 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20917 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20918 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20919 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20920 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 20921 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20922 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20923 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20924 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 20925 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 20926 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 20927 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 20928 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 20929 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 20930 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 20931 versados_vec) tb="$tb versados.lo" ;;
dc810e39 20932 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
20933 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20934 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20935 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 20936 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 20937 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 20938
341ca622
AM
20939 # These appear out of order in targets.c
20940 srec_vec) tb="$tb srec.lo" ;;
20941 symbolsrec_vec) tb="$tb srec.lo" ;;
20942 tekhex_vec) tb="$tb tekhex.lo" ;;
20943 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20944 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20945
252b5132 20946 "") ;;
5464f5a1
NN
20947 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20948echo "$as_me: error: *** unknown target vector $vec" >&2;}
20949 { (exit 1); exit 1; }; } ;;
252b5132 20950 esac
69263e90
AM
20951
20952 if test ${target_size} = 64; then
20953 target64=true
20954 fi
20955 if test x"${vec}" = x"${defvec}"; then
20956 bfd_default_target_size=${target_size}
20957 fi
252b5132
RH
20958done
20959
20960# Target architecture .o files.
20961# A couple of CPUs use shorter file names to avoid problems on DOS
20962# filesystems.
d031aafb 20963ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
20964
20965# Weed out duplicate .o files.
20966f=""
20967for i in $tb ; do
20968 case " $f " in
20969 *" $i "*) ;;
20970 *) f="$f $i" ;;
20971 esac
20972done
20973tb="$f"
20974
20975f=""
20976for i in $ta ; do
20977 case " $f " in
20978 *" $i "*) ;;
20979 *) f="$f $i" ;;
20980 esac
20981done
20982ta="$f"
20983
20984bfd_backends="$tb"
20985bfd_machines="$ta"
20986
20987if test x${all_targets} = xtrue ; then
20988 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
20989 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
20990 selvecs=
20991 havevecs=
20992 selarchs=
08f74004
AM
20993 test -n "$assocvecs" &&
20994 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
20995else # all_targets is true
20996 # Only set these if they will be nonempty, for the clever echo.
20997 havevecs=
08f74004 20998 assocvecs=
252b5132
RH
20999 test -n "$selvecs" &&
21000 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21001 test -n "$selvecs" &&
21002 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21003 test -n "$selarchs" &&
21004 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21005fi # all_targets is true
21006
21007case ${host64}-${target64}-${want64} in
21008 *true*)
21009 wordsize=64
21e40a48 21010 bfd64_libs='$(BFD64_LIBS)'
252b5132 21011 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 21012 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
21013 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21014echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21016echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 21017 fi
966abd70
HPN
21018 if test -n "$GCC" ; then
21019 bad_64bit_gcc=no;
5464f5a1
NN
21020 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21021echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 21022 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
21023 cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h. */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h. */
966abd70 21029:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 21030_ACEOF
966abd70 21031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 21032 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 21033 bad_64bit_gcc=yes;
5464f5a1
NN
21034 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21035echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 21036else
5464f5a1
NN
21037 echo "$as_me:$LINENO: result: no" >&5
21038echo "${ECHO_T}no" >&6
966abd70
HPN
21039fi
21040rm -f conftest*
21041
21042 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
21043 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21044echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21045 { (exit 1); exit 1; }; }
966abd70
HPN
21046 fi
21047 fi
252b5132
RH
21048 ;;
21049 false-false-false)
21050 wordsize=32
21051 all_backends='$(BFD32_BACKENDS)'
21052 ;;
21053esac
21054
6be7c12c
AO
21055
21056
21057
21058
21059
69263e90 21060
2858ef35 21061
1012372a
AC
21062# Determine the host dependant file_ptr a.k.a. off_t type. In order
21063# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21064# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21065# Hopefully a reasonable assumption since fseeko et.al. should be
21066# upward compatible.
5464f5a1
NN
21067
21068
21069
21070
2e6f4fae
DJ
21071
21072for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 21073do
5464f5a1
NN
21074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21075echo "$as_me:$LINENO: checking for $ac_func" >&5
21076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21077if eval "test \"\${$as_ac_var+set}\" = set"; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079else
2ba49b59
KC
21080 cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h. */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h. */
21086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088#define $ac_func innocuous_$ac_func
21089
21090/* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char $ac_func (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21094
21095#ifdef __STDC__
21096# include <limits.h>
21097#else
21098# include <assert.h>
21099#endif
21100
21101#undef $ac_func
21102
21103/* Override any gcc2 internal prototype to avoid an error. */
21104#ifdef __cplusplus
21105extern "C"
21106{
21107#endif
21108/* We use char because int might match the return type of a gcc2
21109 builtin and then its argument prototype would still apply. */
21110char $ac_func ();
21111/* The GNU C library defines this for functions which it implements
21112 to always fail with ENOSYS. Some functions are actually named
21113 something starting with __ and the normal name is an alias. */
21114#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21115choke me
21116#else
21117char (*f) () = $ac_func;
21118#endif
21119#ifdef __cplusplus
21120}
21121#endif
21122
21123int
21124main ()
21125{
21126return f != $ac_func;
21127 ;
21128 return 0;
21129}
21130_ACEOF
21131rm -f conftest.$ac_objext conftest$ac_exeext
21132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
7357c5b6
AM
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
2ba49b59
KC
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 eval "$as_ac_var=yes"
21154else
21155 echo "$as_me: failed program was:" >&5
21156sed 's/^/| /' conftest.$ac_ext >&5
21157
21158eval "$as_ac_var=no"
21159fi
21160rm -f conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21162fi
21163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21164echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21165if test `eval echo '${'$as_ac_var'}'` = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21168_ACEOF
21169
21170fi
21171done
21172
21173if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21174 echo "$as_me:$LINENO: checking for off_t" >&5
21175echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21176if test "${ac_cv_type_off_t+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178else
21179 cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
21185$ac_includes_default
21186int
21187main ()
21188{
21189if ((off_t *) 0)
21190 return 0;
21191if (sizeof (off_t))
21192 return 0;
21193 ;
21194 return 0;
21195}
21196_ACEOF
21197rm -f conftest.$ac_objext
21198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>conftest.er1
21200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
7357c5b6
AM
21206 { ac_try='test -z "$ac_c_werror_flag"
21207 || test ! -s conftest.err'
2ba49b59
KC
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; } &&
21213 { ac_try='test -s conftest.$ac_objext'
21214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21215 (eval $ac_try) 2>&5
21216 ac_status=$?
21217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218 (exit $ac_status); }; }; then
21219 ac_cv_type_off_t=yes
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224ac_cv_type_off_t=no
21225fi
21226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21227fi
21228echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21229echo "${ECHO_T}$ac_cv_type_off_t" >&6
21230
21231echo "$as_me:$LINENO: checking size of off_t" >&5
21232echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21233if test "${ac_cv_sizeof_off_t+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21235else
21236 if test "$ac_cv_type_off_t" = yes; then
21237 # The cast to unsigned long works around a bug in the HP C Compiler
21238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21240 # This bug is HP SR number 8606223364.
21241 if test "$cross_compiling" = yes; then
21242 # Depending upon the size, compute the lo and hi bounds.
21243cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
21244/* confdefs.h. */
21245_ACEOF
21246cat confdefs.h >>conftest.$ac_ext
21247cat >>conftest.$ac_ext <<_ACEOF
21248/* end confdefs.h. */
2ba49b59
KC
21249$ac_includes_default
21250int
21251main ()
21252{
21253static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21254test_array [0] = 0
5464f5a1 21255
2ba49b59
KC
21256 ;
21257 return 0;
21258}
21259_ACEOF
21260rm -f conftest.$ac_objext
21261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21262 (eval $ac_compile) 2>conftest.er1
21263 ac_status=$?
21264 grep -v '^ *+' conftest.er1 >conftest.err
21265 rm -f conftest.er1
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
7357c5b6
AM
21269 { ac_try='test -z "$ac_c_werror_flag"
21270 || test ! -s conftest.err'
2ba49b59
KC
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; } &&
21276 { ac_try='test -s conftest.$ac_objext'
21277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278 (eval $ac_try) 2>&5
21279 ac_status=$?
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); }; }; then
21282 ac_lo=0 ac_mid=0
21283 while :; do
21284 cat >conftest.$ac_ext <<_ACEOF
21285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
21290$ac_includes_default
21291int
21292main ()
21293{
21294static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21295test_array [0] = 0
5464f5a1 21296
2ba49b59
KC
21297 ;
21298 return 0;
21299}
21300_ACEOF
21301rm -f conftest.$ac_objext
21302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21303 (eval $ac_compile) 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
7357c5b6
AM
21310 { ac_try='test -z "$ac_c_werror_flag"
21311 || test ! -s conftest.err'
2ba49b59
KC
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_hi=$ac_mid; break
21324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21327
2ba49b59
KC
21328ac_lo=`expr $ac_mid + 1`
21329 if test $ac_lo -le $ac_mid; then
21330 ac_lo= ac_hi=
21331 break
21332 fi
21333 ac_mid=`expr 2 '*' $ac_mid + 1`
21334fi
21335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21336 done
21337else
21338 echo "$as_me: failed program was:" >&5
21339sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21340
2ba49b59
KC
21341cat >conftest.$ac_ext <<_ACEOF
21342/* confdefs.h. */
21343_ACEOF
21344cat confdefs.h >>conftest.$ac_ext
21345cat >>conftest.$ac_ext <<_ACEOF
21346/* end confdefs.h. */
21347$ac_includes_default
21348int
21349main ()
5464f5a1 21350{
2ba49b59
KC
21351static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21352test_array [0] = 0
1012372a 21353
2ba49b59
KC
21354 ;
21355 return 0;
21356}
21357_ACEOF
21358rm -f conftest.$ac_objext
21359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21360 (eval $ac_compile) 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
7357c5b6
AM
21367 { ac_try='test -z "$ac_c_werror_flag"
21368 || test ! -s conftest.err'
2ba49b59
KC
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; } &&
21374 { ac_try='test -s conftest.$ac_objext'
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; }; then
21380 ac_hi=-1 ac_mid=-1
21381 while :; do
21382 cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h. */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h. */
21388$ac_includes_default
5464f5a1
NN
21389int
21390main ()
21391{
2ba49b59
KC
21392static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21393test_array [0] = 0
21394
5464f5a1
NN
21395 ;
21396 return 0;
21397}
21398_ACEOF
2ba49b59
KC
21399rm -f conftest.$ac_objext
21400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21401 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
7357c5b6
AM
21408 { ac_try='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
5464f5a1
NN
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
2ba49b59 21415 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
2ba49b59 21421 ac_lo=$ac_mid; break
5464f5a1
NN
21422else
21423 echo "$as_me: failed program was:" >&5
21424sed 's/^/| /' conftest.$ac_ext >&5
21425
2ba49b59
KC
21426ac_hi=`expr '(' $ac_mid ')' - 1`
21427 if test $ac_mid -le $ac_hi; then
21428 ac_lo= ac_hi=
21429 break
21430 fi
21431 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 21432fi
2ba49b59
KC
21433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21434 done
21435else
21436 echo "$as_me: failed program was:" >&5
21437sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21438
2ba49b59 21439ac_lo= ac_hi=
1012372a 21440fi
2ba49b59
KC
21441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21442fi
21443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21444# Binary search between lo and hi bounds.
21445while test "x$ac_lo" != "x$ac_hi"; do
21446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
21447 cat >conftest.$ac_ext <<_ACEOF
21448/* confdefs.h. */
21449_ACEOF
21450cat confdefs.h >>conftest.$ac_ext
21451cat >>conftest.$ac_ext <<_ACEOF
21452/* end confdefs.h. */
2ba49b59 21453$ac_includes_default
5464f5a1
NN
21454int
21455main ()
21456{
2ba49b59
KC
21457static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21458test_array [0] = 0
21459
5464f5a1
NN
21460 ;
21461 return 0;
21462}
21463_ACEOF
21464rm -f conftest.$ac_objext
21465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21466 (eval $ac_compile) 2>conftest.er1
21467 ac_status=$?
21468 grep -v '^ *+' conftest.er1 >conftest.err
21469 rm -f conftest.er1
21470 cat conftest.err >&5
21471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472 (exit $ac_status); } &&
7357c5b6
AM
21473 { ac_try='test -z "$ac_c_werror_flag"
21474 || test ! -s conftest.err'
5464f5a1
NN
21475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476 (eval $ac_try) 2>&5
21477 ac_status=$?
21478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479 (exit $ac_status); }; } &&
21480 { ac_try='test -s conftest.$ac_objext'
21481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482 (eval $ac_try) 2>&5
21483 ac_status=$?
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); }; }; then
2ba49b59 21486 ac_hi=$ac_mid
1012372a 21487else
5464f5a1
NN
21488 echo "$as_me: failed program was:" >&5
21489sed 's/^/| /' conftest.$ac_ext >&5
21490
2ba49b59 21491ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 21492fi
5464f5a1 21493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 21494done
2ba49b59
KC
21495case $ac_lo in
21496?*) ac_cv_sizeof_off_t=$ac_lo;;
7357c5b6
AM
21497'') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21498echo "$as_me: error: in \`$ac_pwd':" >&2;}
21499{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
2ba49b59
KC
21500See \`config.log' for more details." >&5
21501echo "$as_me: error: cannot compute sizeof (off_t), 77
21502See \`config.log' for more details." >&2;}
7357c5b6 21503 { (exit 1); exit 1; }; }; } ;;
2ba49b59
KC
21504esac
21505else
21506 if test "$cross_compiling" = yes; then
7357c5b6
AM
21507 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21508echo "$as_me: error: in \`$ac_pwd':" >&2;}
21509{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21510See \`config.log' for more details." >&5
21511echo "$as_me: error: cannot run test program while cross compiling
21512See \`config.log' for more details." >&2;}
21513 { (exit 1); exit 1; }; }; }
2ba49b59
KC
21514else
21515 cat >conftest.$ac_ext <<_ACEOF
21516/* confdefs.h. */
21517_ACEOF
21518cat confdefs.h >>conftest.$ac_ext
21519cat >>conftest.$ac_ext <<_ACEOF
21520/* end confdefs.h. */
21521$ac_includes_default
21522long longval () { return (long) (sizeof (off_t)); }
21523unsigned long ulongval () { return (long) (sizeof (off_t)); }
21524#include <stdio.h>
21525#include <stdlib.h>
21526int
21527main ()
21528{
1012372a 21529
2ba49b59
KC
21530 FILE *f = fopen ("conftest.val", "w");
21531 if (! f)
21532 exit (1);
21533 if (((long) (sizeof (off_t))) < 0)
21534 {
21535 long i = longval ();
21536 if (i != ((long) (sizeof (off_t))))
21537 exit (1);
21538 fprintf (f, "%ld\n", i);
21539 }
21540 else
21541 {
21542 unsigned long i = ulongval ();
21543 if (i != ((long) (sizeof (off_t))))
21544 exit (1);
21545 fprintf (f, "%lu\n", i);
21546 }
21547 exit (ferror (f) || fclose (f) != 0);
21548
21549 ;
21550 return 0;
21551}
21552_ACEOF
21553rm -f conftest$ac_exeext
21554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555 (eval $ac_link) 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560 (eval $ac_try) 2>&5
21561 ac_status=$?
21562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); }; }; then
21564 ac_cv_sizeof_off_t=`cat conftest.val`
21565else
21566 echo "$as_me: program exited with status $ac_status" >&5
21567echo "$as_me: failed program was:" >&5
21568sed 's/^/| /' conftest.$ac_ext >&5
1012372a 21569
2ba49b59 21570( exit $ac_status )
7357c5b6
AM
21571{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21572echo "$as_me: error: in \`$ac_pwd':" >&2;}
2ba49b59
KC
21573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21574See \`config.log' for more details." >&5
21575echo "$as_me: error: cannot compute sizeof (off_t), 77
21576See \`config.log' for more details." >&2;}
7357c5b6 21577 { (exit 1); exit 1; }; }; }
1012372a 21578fi
2ba49b59
KC
21579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21580fi
21581fi
21582rm -f conftest.val
21583else
21584 ac_cv_sizeof_off_t=0
21585fi
21586fi
5464f5a1
NN
21587echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21588echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 21589cat >>confdefs.h <<_ACEOF
1012372a 21590#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 21591_ACEOF
1012372a
AC
21592
21593
1012372a 21594fi
5464f5a1
NN
21595echo "$as_me:$LINENO: checking file_ptr type" >&5
21596echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
21597bfd_file_ptr="long"
21598bfd_ufile_ptr="unsigned long"
21599if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21600 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
21601 bfd_file_ptr=BFD_HOST_64_BIT
21602 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21603fi
5464f5a1
NN
21604echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21605echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
21606
21607
21608
21609
252b5132
RH
21610tdefaults=""
21611test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21612test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 21613test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
21614test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21615test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21616
6be7c12c 21617
5464f5a1
NN
21618
21619
21620for ac_header in stdlib.h unistd.h
252b5132 21621do
5464f5a1
NN
21622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21623if eval "test \"\${$as_ac_Header+set}\" = set"; then
21624 echo "$as_me:$LINENO: checking for $ac_header" >&5
21625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21626if eval "test \"\${$as_ac_Header+set}\" = set"; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628fi
21629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21631else
21632 # Is the header compilable?
21633echo "$as_me:$LINENO: checking $ac_header usability" >&5
21634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21635cat >conftest.$ac_ext <<_ACEOF
21636/* confdefs.h. */
21637_ACEOF
21638cat confdefs.h >>conftest.$ac_ext
21639cat >>conftest.$ac_ext <<_ACEOF
21640/* end confdefs.h. */
21641$ac_includes_default
21642#include <$ac_header>
21643_ACEOF
21644rm -f conftest.$ac_objext
21645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21646 (eval $ac_compile) 2>conftest.er1
21647 ac_status=$?
21648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
7357c5b6
AM
21653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
5464f5a1
NN
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21657 ac_status=$?
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_header_compiler=yes
21667else
21668 echo "$as_me: failed program was:" >&5
21669sed 's/^/| /' conftest.$ac_ext >&5
21670
21671ac_header_compiler=no
21672fi
21673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21675echo "${ECHO_T}$ac_header_compiler" >&6
21676
21677# Is the header present?
21678echo "$as_me:$LINENO: checking $ac_header presence" >&5
21679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21680cat >conftest.$ac_ext <<_ACEOF
21681/* confdefs.h. */
21682_ACEOF
21683cat confdefs.h >>conftest.$ac_ext
21684cat >>conftest.$ac_ext <<_ACEOF
21685/* end confdefs.h. */
21686#include <$ac_header>
21687_ACEOF
21688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21690 ac_status=$?
21691 grep -v '^ *+' conftest.er1 >conftest.err
21692 rm -f conftest.er1
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } >/dev/null; then
21696 if test -s conftest.err; then
21697 ac_cpp_err=$ac_c_preproc_warn_flag
21698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21699 else
21700 ac_cpp_err=
21701 fi
252b5132 21702else
5464f5a1 21703 ac_cpp_err=yes
252b5132 21704fi
5464f5a1
NN
21705if test -z "$ac_cpp_err"; then
21706 ac_header_preproc=yes
21707else
21708 echo "$as_me: failed program was:" >&5
21709sed 's/^/| /' conftest.$ac_ext >&5
21710
21711 ac_header_preproc=no
252b5132 21712fi
5464f5a1
NN
21713rm -f conftest.err conftest.$ac_ext
21714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21715echo "${ECHO_T}$ac_header_preproc" >&6
21716
21717# So? What about this header?
21718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21719 yes:no: )
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21724 ac_header_preproc=yes
21725 ;;
21726 no:yes:* )
21727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21734echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21739 (
21740 cat <<\_ASBOX
21741## ------------------------------------------ ##
21742## Report this to the AC_PACKAGE_NAME lists. ##
21743## ------------------------------------------ ##
21744_ASBOX
21745 ) |
21746 sed "s/^/$as_me: WARNING: /" >&2
21747 ;;
21748esac
21749echo "$as_me:$LINENO: checking for $ac_header" >&5
21750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21751if eval "test \"\${$as_ac_Header+set}\" = set"; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 21753else
5464f5a1
NN
21754 eval "$as_ac_Header=\$ac_header_preproc"
21755fi
21756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21758
21759fi
21760if test `eval echo '${'$as_ac_Header'}'` = yes; then
21761 cat >>confdefs.h <<_ACEOF
21762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21763_ACEOF
21764
252b5132 21765fi
5464f5a1 21766
252b5132
RH
21767done
21768
5464f5a1 21769
252b5132
RH
21770for ac_func in getpagesize
21771do
5464f5a1
NN
21772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21773echo "$as_me:$LINENO: checking for $ac_func" >&5
21774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21775if eval "test \"\${$as_ac_var+set}\" = set"; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777else
21778 cat >conftest.$ac_ext <<_ACEOF
21779/* confdefs.h. */
21780_ACEOF
21781cat confdefs.h >>conftest.$ac_ext
21782cat >>conftest.$ac_ext <<_ACEOF
21783/* end confdefs.h. */
21784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21786#define $ac_func innocuous_$ac_func
21787
252b5132 21788/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
21789 which can conflict with char $ac_func (); below.
21790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21791 <limits.h> exists even on freestanding compilers. */
21792
21793#ifdef __STDC__
21794# include <limits.h>
21795#else
21796# include <assert.h>
21797#endif
6be7c12c 21798
5464f5a1 21799#undef $ac_func
252b5132 21800
5464f5a1
NN
21801/* Override any gcc2 internal prototype to avoid an error. */
21802#ifdef __cplusplus
21803extern "C"
21804{
21805#endif
21806/* We use char because int might match the return type of a gcc2
21807 builtin and then its argument prototype would still apply. */
21808char $ac_func ();
252b5132
RH
21809/* The GNU C library defines this for functions which it implements
21810 to always fail with ENOSYS. Some functions are actually named
21811 something starting with __ and the normal name is an alias. */
21812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21813choke me
21814#else
5464f5a1
NN
21815char (*f) () = $ac_func;
21816#endif
21817#ifdef __cplusplus
21818}
252b5132
RH
21819#endif
21820
5464f5a1
NN
21821int
21822main ()
21823{
21824return f != $ac_func;
21825 ;
21826 return 0;
21827}
21828_ACEOF
21829rm -f conftest.$ac_objext conftest$ac_exeext
21830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21831 (eval $ac_link) 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
7357c5b6
AM
21838 { ac_try='test -z "$ac_c_werror_flag"
21839 || test ! -s conftest.err'
5464f5a1
NN
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
21851 eval "$as_ac_var=yes"
21852else
21853 echo "$as_me: failed program was:" >&5
21854sed 's/^/| /' conftest.$ac_ext >&5
21855
21856eval "$as_ac_var=no"
21857fi
21858rm -f conftest.err conftest.$ac_objext \
21859 conftest$ac_exeext conftest.$ac_ext
21860fi
21861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21863if test `eval echo '${'$as_ac_var'}'` = yes; then
21864 cat >>confdefs.h <<_ACEOF
21865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21866_ACEOF
252b5132 21867
252b5132
RH
21868fi
21869done
21870
5464f5a1
NN
21871echo "$as_me:$LINENO: checking for working mmap" >&5
21872echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21873if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21874 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
21875else
21876 if test "$cross_compiling" = yes; then
21877 ac_cv_func_mmap_fixed_mapped=no
21878else
5464f5a1
NN
21879 cat >conftest.$ac_ext <<_ACEOF
21880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
21885$ac_includes_default
21886/* malloc might have been renamed as rpl_malloc. */
21887#undef malloc
6be7c12c 21888
252b5132
RH
21889/* Thanks to Mike Haertel and Jim Avera for this test.
21890 Here is a matrix of mmap possibilities:
21891 mmap private not fixed
21892 mmap private fixed at somewhere currently unmapped
21893 mmap private fixed at somewhere already mapped
21894 mmap shared not fixed
21895 mmap shared fixed at somewhere currently unmapped
21896 mmap shared fixed at somewhere already mapped
21897 For private mappings, we should verify that changes cannot be read()
21898 back from the file, nor mmap's back from the file at a different
21899 address. (There have been systems where private was not correctly
21900 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 21901 VM page cache was not coherent with the file system buffer cache
252b5132
RH
21902 like early versions of FreeBSD and possibly contemporary NetBSD.)
21903 For shared mappings, we should conversely verify that changes get
5464f5a1 21904 propagated back to all the places they're supposed to be.
252b5132
RH
21905
21906 Grep wants private fixed already mapped.
21907 The main things grep needs to know about mmap are:
21908 * does it exist and is it safe to write into the mmap'd area
21909 * how to use it (BSD variants) */
5464f5a1 21910
252b5132
RH
21911#include <fcntl.h>
21912#include <sys/mman.h>
21913
5464f5a1
NN
21914#if !STDC_HEADERS && !HAVE_STDLIB_H
21915char *malloc ();
21916#endif
6be7c12c 21917
5464f5a1
NN
21918/* This mess was copied from the GNU getpagesize.h. */
21919#if !HAVE_GETPAGESIZE
252b5132 21920/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 21921# if !HAVE_SYS_PARAM_H
252b5132
RH
21922# define HAVE_SYS_PARAM_H 1
21923# endif
21924
21925# ifdef _SC_PAGESIZE
21926# define getpagesize() sysconf(_SC_PAGESIZE)
21927# else /* no _SC_PAGESIZE */
5464f5a1 21928# if HAVE_SYS_PARAM_H
252b5132
RH
21929# include <sys/param.h>
21930# ifdef EXEC_PAGESIZE
21931# define getpagesize() EXEC_PAGESIZE
21932# else /* no EXEC_PAGESIZE */
21933# ifdef NBPG
21934# define getpagesize() NBPG * CLSIZE
21935# ifndef CLSIZE
21936# define CLSIZE 1
21937# endif /* no CLSIZE */
21938# else /* no NBPG */
21939# ifdef NBPC
21940# define getpagesize() NBPC
21941# else /* no NBPC */
21942# ifdef PAGESIZE
21943# define getpagesize() PAGESIZE
21944# endif /* PAGESIZE */
21945# endif /* no NBPC */
21946# endif /* no NBPG */
21947# endif /* no EXEC_PAGESIZE */
21948# else /* no HAVE_SYS_PARAM_H */
21949# define getpagesize() 8192 /* punt totally */
21950# endif /* no HAVE_SYS_PARAM_H */
21951# endif /* no _SC_PAGESIZE */
21952
5464f5a1
NN
21953#endif /* no HAVE_GETPAGESIZE */
21954
21955int
21956main ()
21957{
21958 char *data, *data2, *data3;
21959 int i, pagesize;
21960 int fd;
21961
21962 pagesize = getpagesize ();
21963
21964 /* First, make a file with some known garbage in it. */
21965 data = (char *) malloc (pagesize);
21966 if (!data)
21967 exit (1);
21968 for (i = 0; i < pagesize; ++i)
21969 *(data + i) = rand ();
21970 umask (0);
21971 fd = creat ("conftest.mmap", 0600);
21972 if (fd < 0)
21973 exit (1);
21974 if (write (fd, data, pagesize) != pagesize)
21975 exit (1);
21976 close (fd);
21977
21978 /* Next, try to mmap the file at a fixed address which already has
21979 something else allocated at it. If we can, also make sure that
21980 we see the same garbage. */
21981 fd = open ("conftest.mmap", O_RDWR);
21982 if (fd < 0)
21983 exit (1);
21984 data2 = (char *) malloc (2 * pagesize);
21985 if (!data2)
21986 exit (1);
21987 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21988 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21989 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21990 exit (1);
21991 for (i = 0; i < pagesize; ++i)
21992 if (*(data + i) != *(data2 + i))
21993 exit (1);
21994
21995 /* Finally, make sure that changes to the mapped area do not
21996 percolate back to the file as seen by read(). (This is a bug on
21997 some variants of i386 svr4.0.) */
21998 for (i = 0; i < pagesize; ++i)
21999 *(data2 + i) = *(data2 + i) + 1;
22000 data3 = (char *) malloc (pagesize);
22001 if (!data3)
22002 exit (1);
22003 if (read (fd, data3, pagesize) != pagesize)
22004 exit (1);
22005 for (i = 0; i < pagesize; ++i)
22006 if (*(data + i) != *(data3 + i))
22007 exit (1);
22008 close (fd);
22009 exit (0);
22010}
22011_ACEOF
22012rm -f conftest$ac_exeext
22013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22014 (eval $ac_link) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_func_mmap_fixed_mapped=yes
22024else
22025 echo "$as_me: program exited with status $ac_status" >&5
22026echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029( exit $ac_status )
22030ac_cv_func_mmap_fixed_mapped=no
22031fi
22032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22033fi
22034fi
22035echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22036echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22037if test $ac_cv_func_mmap_fixed_mapped = yes; then
22038
22039cat >>confdefs.h <<\_ACEOF
22040#define HAVE_MMAP 1
22041_ACEOF
22042
22043fi
22044rm -f conftest.mmap
22045
22046
22047
22048for ac_func in madvise mprotect
22049do
22050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22051echo "$as_me:$LINENO: checking for $ac_func" >&5
22052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22053if eval "test \"\${$as_ac_var+set}\" = set"; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22055else
22056 cat >conftest.$ac_ext <<_ACEOF
22057/* confdefs.h. */
22058_ACEOF
22059cat confdefs.h >>conftest.$ac_ext
22060cat >>conftest.$ac_ext <<_ACEOF
22061/* end confdefs.h. */
22062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22064#define $ac_func innocuous_$ac_func
22065
22066/* System header to define __stub macros and hopefully few prototypes,
22067 which can conflict with char $ac_func (); below.
22068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22069 <limits.h> exists even on freestanding compilers. */
22070
22071#ifdef __STDC__
22072# include <limits.h>
22073#else
22074# include <assert.h>
22075#endif
22076
22077#undef $ac_func
22078
22079/* Override any gcc2 internal prototype to avoid an error. */
22080#ifdef __cplusplus
22081extern "C"
22082{
22083#endif
22084/* We use char because int might match the return type of a gcc2
22085 builtin and then its argument prototype would still apply. */
22086char $ac_func ();
22087/* The GNU C library defines this for functions which it implements
22088 to always fail with ENOSYS. Some functions are actually named
22089 something starting with __ and the normal name is an alias. */
22090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22091choke me
22092#else
22093char (*f) () = $ac_func;
22094#endif
22095#ifdef __cplusplus
22096}
22097#endif
22098
22099int
22100main ()
22101{
22102return f != $ac_func;
22103 ;
22104 return 0;
22105}
22106_ACEOF
22107rm -f conftest.$ac_objext conftest$ac_exeext
22108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
7357c5b6
AM
22116 { ac_try='test -z "$ac_c_werror_flag"
22117 || test ! -s conftest.err'
5464f5a1
NN
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; } &&
22123 { ac_try='test -s conftest$ac_exeext'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 eval "$as_ac_var=yes"
22130else
22131 echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134eval "$as_ac_var=no"
22135fi
22136rm -f conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
22138fi
22139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22140echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22141if test `eval echo '${'$as_ac_var'}'` = yes; then
22142 cat >>confdefs.h <<_ACEOF
22143#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22144_ACEOF
22145
22146fi
22147done
22148
22149case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22150 true+yes )
22151cat >>confdefs.h <<\_ACEOF
22152#define USE_MMAP 1
22153_ACEOF
22154 ;;
22155esac
22156
22157rm -f doc/config.status
22158 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22159
20e95c23 22160
5464f5a1
NN
22161 ac_config_commands="$ac_config_commands default"
22162
108a6f8e
CD
22163
22164
22165
22166
22167
5464f5a1
NN
22168cat >confcache <<\_ACEOF
22169# This file is a shell script that caches the results of configure
22170# tests run on this system so they can be shared between configure
22171# scripts and configure runs, see configure's option --config-cache.
22172# It is not useful on other systems. If it contains results you don't
22173# want to keep, you may remove or edit it.
22174#
22175# config.status only pays attention to the cache file if you give it
22176# the --recheck option to rerun configure.
22177#
22178# `ac_cv_env_foo' variables (set or unset) will be overridden when
22179# loading this file, other *unset* `ac_cv_foo' will be assigned the
22180# following values.
22181
22182_ACEOF
22183
22184# The following way of writing the cache mishandles newlines in values,
22185# but we know of no workaround that is simple, portable, and efficient.
22186# So, don't put newlines in cache variables' values.
22187# Ultrix sh set writes to stderr and can't be redirected directly,
22188# and sets the high bit in the cache file unless we assign to the vars.
22189{
22190 (set) 2>&1 |
22191 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22192 *ac_space=\ *)
22193 # `set' does not quote correctly, so add quotes (double-quote
22194 # substitution turns \\\\ into \\, and sed turns \\ into \).
22195 sed -n \
22196 "s/'/'\\\\''/g;
22197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22198 ;;
22199 *)
22200 # `set' quotes correctly as required by POSIX, so do not add quotes.
22201 sed -n \
22202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22203 ;;
22204 esac;
22205} |
22206 sed '
22207 t clear
22208 : clear
22209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22210 t end
22211 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22212 : end' >>confcache
22213if diff $cache_file confcache >/dev/null 2>&1; then :; else
22214 if test -w $cache_file; then
22215 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22216 cat confcache >$cache_file
22217 else
22218 echo "not updating unwritable cache $cache_file"
22219 fi
22220fi
22221rm -f confcache
22222
22223test "x$prefix" = xNONE && prefix=$ac_default_prefix
22224# Let make expand exec_prefix.
22225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22226
22227# VPATH may cause trouble with some makes, so we remove $(srcdir),
22228# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22229# trailing colons and then remove the whole line if VPATH becomes empty
22230# (actually we leave an empty line to preserve line numbers).
22231if test "x$srcdir" = x.; then
22232 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22233s/:*\$(srcdir):*/:/;
22234s/:*\${srcdir}:*/:/;
22235s/:*@srcdir@:*/:/;
22236s/^\([^=]*=[ ]*\):*/\1/;
22237s/:*$//;
22238s/^[^=]*=[ ]*$//;
22239}'
22240fi
22241
22242DEFS=-DHAVE_CONFIG_H
22243
22244ac_libobjs=
22245ac_ltlibobjs=
22246for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22247 # 1. Remove the extension, and $U if already installed.
22248 ac_i=`echo "$ac_i" |
22249 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22250 # 2. Add them.
22251 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22252 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22253done
22254LIBOBJS=$ac_libobjs
22255
22256LTLIBOBJS=$ac_ltlibobjs
22257
22258
f5385ebf
AM
22259if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22260 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22261Usually this means the macro was only invoked conditionally." >&5
22262echo "$as_me: error: conditional \"AMDEP\" was never defined.
22263Usually this means the macro was only invoked conditionally." >&2;}
22264 { (exit 1); exit 1; }; }
22265fi
22266if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22267 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22268Usually this means the macro was only invoked conditionally." >&5
22269echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22270Usually this means the macro was only invoked conditionally." >&2;}
22271 { (exit 1); exit 1; }; }
22272fi
22273if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22274 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22275Usually this means the macro was only invoked conditionally." >&5
22276echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22277Usually this means the macro was only invoked conditionally." >&2;}
22278 { (exit 1); exit 1; }; }
22279fi
d5fbea21
DJ
22280if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22281 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22282Usually this means the macro was only invoked conditionally." >&5
22283echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22284Usually this means the macro was only invoked conditionally." >&2;}
22285 { (exit 1); exit 1; }; }
22286fi
f5385ebf
AM
22287if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22288 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22289Usually this means the macro was only invoked conditionally." >&5
22290echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22291Usually this means the macro was only invoked conditionally." >&2;}
22292 { (exit 1); exit 1; }; }
22293fi
5464f5a1
NN
22294
22295: ${CONFIG_STATUS=./config.status}
22296ac_clean_files_save=$ac_clean_files
22297ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22298{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22299echo "$as_me: creating $CONFIG_STATUS" >&6;}
22300cat >$CONFIG_STATUS <<_ACEOF
22301#! $SHELL
22302# Generated by $as_me.
22303# Run this file to recreate the current configuration.
22304# Compiler output produced by configure, useful for debugging
22305# configure, is in config.log if it exists.
22306
22307debug=false
22308ac_cs_recheck=false
22309ac_cs_silent=false
22310SHELL=\${CONFIG_SHELL-$SHELL}
22311_ACEOF
22312
22313cat >>$CONFIG_STATUS <<\_ACEOF
22314## --------------------- ##
22315## M4sh Initialization. ##
22316## --------------------- ##
22317
22318# Be Bourne compatible
22319if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22320 emulate sh
22321 NULLCMD=:
22322 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22323 # is contrary to our usage. Disable this feature.
22324 alias -g '${1+"$@"}'='"$@"'
22325elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22326 set -o posix
22327fi
22328DUALCASE=1; export DUALCASE # for MKS sh
22329
22330# Support unset when possible.
22331if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22332 as_unset=unset
22333else
22334 as_unset=false
22335fi
22336
22337
22338# Work around bugs in pre-3.0 UWIN ksh.
22339$as_unset ENV MAIL MAILPATH
22340PS1='$ '
22341PS2='> '
22342PS4='+ '
22343
22344# NLS nuisances.
22345for as_var in \
22346 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22347 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22348 LC_TELEPHONE LC_TIME
22349do
22350 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22351 eval $as_var=C; export $as_var
22352 else
22353 $as_unset $as_var
22354 fi
22355done
22356
22357# Required to use basename.
22358if expr a : '\(a\)' >/dev/null 2>&1; then
22359 as_expr=expr
22360else
22361 as_expr=false
22362fi
22363
22364if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22365 as_basename=basename
22366else
22367 as_basename=false
22368fi
252b5132 22369
6be7c12c 22370
5464f5a1
NN
22371# Name of the executable.
22372as_me=`$as_basename "$0" ||
22373$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22374 X"$0" : 'X\(//\)$' \| \
22375 X"$0" : 'X\(/\)$' \| \
22376 . : '\(.\)' 2>/dev/null ||
22377echo X/"$0" |
22378 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22379 /^X\/\(\/\/\)$/{ s//\1/; q; }
22380 /^X\/\(\/\).*/{ s//\1/; q; }
22381 s/.*/./; q'`
22382
22383
22384# PATH needs CR, and LINENO needs CR and PATH.
22385# Avoid depending upon Character Ranges.
22386as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22387as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22388as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22389as_cr_digits='0123456789'
22390as_cr_alnum=$as_cr_Letters$as_cr_digits
22391
22392# The user is always right.
22393if test "${PATH_SEPARATOR+set}" != set; then
22394 echo "#! /bin/sh" >conf$$.sh
22395 echo "exit 0" >>conf$$.sh
22396 chmod +x conf$$.sh
22397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22398 PATH_SEPARATOR=';'
22399 else
22400 PATH_SEPARATOR=:
22401 fi
22402 rm -f conf$$.sh
22403fi
22404
22405
22406 as_lineno_1=$LINENO
22407 as_lineno_2=$LINENO
22408 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22409 test "x$as_lineno_1" != "x$as_lineno_2" &&
22410 test "x$as_lineno_3" = "x$as_lineno_2" || {
22411 # Find who we are. Look in the path if we contain no path at all
22412 # relative or not.
22413 case $0 in
22414 *[\\/]* ) as_myself=$0 ;;
22415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416for as_dir in $PATH
22417do
22418 IFS=$as_save_IFS
22419 test -z "$as_dir" && as_dir=.
22420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22421done
22422
22423 ;;
22424 esac
22425 # We did not find ourselves, most probably we were run as `sh COMMAND'
22426 # in which case we are not to be found in the path.
22427 if test "x$as_myself" = x; then
22428 as_myself=$0
22429 fi
22430 if test ! -f "$as_myself"; then
22431 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22432echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22433 { (exit 1); exit 1; }; }
22434 fi
22435 case $CONFIG_SHELL in
22436 '')
22437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22438for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22439do
22440 IFS=$as_save_IFS
22441 test -z "$as_dir" && as_dir=.
22442 for as_base in sh bash ksh sh5; do
22443 case $as_dir in
22444 /*)
22445 if ("$as_dir/$as_base" -c '
22446 as_lineno_1=$LINENO
22447 as_lineno_2=$LINENO
22448 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22449 test "x$as_lineno_1" != "x$as_lineno_2" &&
22450 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22451 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22452 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22453 CONFIG_SHELL=$as_dir/$as_base
22454 export CONFIG_SHELL
22455 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22456 fi;;
22457 esac
22458 done
22459done
22460;;
22461 esac
22462
22463 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22464 # uniformly replaced by the line number. The first 'sed' inserts a
22465 # line-number line before each line; the second 'sed' does the real
22466 # work. The second script uses 'N' to pair each line-number line
22467 # with the numbered line, and appends trailing '-' during
22468 # substitution so that $LINENO is not a special case at line end.
22469 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22470 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22471 sed '=' <$as_myself |
22472 sed '
22473 N
22474 s,$,-,
22475 : loop
22476 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22477 t loop
22478 s,-$,,
22479 s,^['$as_cr_digits']*\n,,
22480 ' >$as_me.lineno &&
22481 chmod +x $as_me.lineno ||
22482 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22483echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22484 { (exit 1); exit 1; }; }
22485
22486 # Don't try to exec as it changes $[0], causing all sort of problems
22487 # (the dirname of $[0] is not the place where we might find the
22488 # original and so on. Autoconf is especially sensible to this).
22489 . ./$as_me.lineno
22490 # Exit status is that of the last command.
22491 exit
252b5132 22492}
6be7c12c 22493
5464f5a1
NN
22494
22495case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22496 *c*,-n*) ECHO_N= ECHO_C='
22497' ECHO_T=' ' ;;
22498 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22499 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22500esac
22501
22502if expr a : '\(a\)' >/dev/null 2>&1; then
22503 as_expr=expr
252b5132 22504else
5464f5a1 22505 as_expr=false
252b5132 22506fi
5464f5a1
NN
22507
22508rm -f conf$$ conf$$.exe conf$$.file
22509echo >conf$$.file
22510if ln -s conf$$.file conf$$ 2>/dev/null; then
22511 # We could just check for DJGPP; but this test a) works b) is more generic
22512 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22513 if test -f conf$$.exe; then
22514 # Don't use ln at all; we don't have any links
22515 as_ln_s='cp -p'
22516 else
22517 as_ln_s='ln -s'
22518 fi
22519elif ln conf$$.file conf$$ 2>/dev/null; then
22520 as_ln_s=ln
22521else
22522 as_ln_s='cp -p'
252b5132 22523fi
5464f5a1 22524rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 22525
5464f5a1
NN
22526if mkdir -p . 2>/dev/null; then
22527 as_mkdir_p=:
22528else
22529 test -d ./-p && rmdir ./-p
22530 as_mkdir_p=false
252b5132 22531fi
b3baf5d0 22532
5464f5a1 22533as_executable_p="test -f"
252b5132 22534
5464f5a1
NN
22535# Sed expression to map a string onto a valid CPP name.
22536as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 22537
5464f5a1
NN
22538# Sed expression to map a string onto a valid variable name.
22539as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 22540
252b5132 22541
5464f5a1
NN
22542# IFS
22543# We need space, tab and new line, in precisely that order.
22544as_nl='
22545'
22546IFS=" $as_nl"
252b5132 22547
5464f5a1
NN
22548# CDPATH.
22549$as_unset CDPATH
22550
22551exec 6>&1
22552
22553# Open the log real soon, to keep \$[0] and so on meaningful, and to
22554# report actual input values of CONFIG_FILES etc. instead of their
22555# values after options handling. Logging --version etc. is OK.
22556exec 5>>config.log
22557{
22558 echo
22559 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22560## Running $as_me. ##
22561_ASBOX
22562} >&5
22563cat >&5 <<_CSEOF
22564
22565This file was extended by $as_me, which was
22566generated by GNU Autoconf 2.59. Invocation command line was
22567
22568 CONFIG_FILES = $CONFIG_FILES
22569 CONFIG_HEADERS = $CONFIG_HEADERS
22570 CONFIG_LINKS = $CONFIG_LINKS
22571 CONFIG_COMMANDS = $CONFIG_COMMANDS
22572 $ $0 $@
22573
22574_CSEOF
22575echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22576echo >&5
22577_ACEOF
22578
22579# Files that config.status was made for.
22580if test -n "$ac_config_files"; then
22581 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 22582fi
5464f5a1
NN
22583
22584if test -n "$ac_config_headers"; then
22585 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 22586fi
252b5132 22587
5464f5a1
NN
22588if test -n "$ac_config_links"; then
22589 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 22590fi
252b5132 22591
5464f5a1
NN
22592if test -n "$ac_config_commands"; then
22593 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22594fi
252b5132 22595
5464f5a1
NN
22596cat >>$CONFIG_STATUS <<\_ACEOF
22597
22598ac_cs_usage="\
22599\`$as_me' instantiates files from templates according to the
22600current configuration.
22601
22602Usage: $0 [OPTIONS] [FILE]...
22603
22604 -h, --help print this help, then exit
22605 -V, --version print version number, then exit
22606 -q, --quiet do not print progress messages
22607 -d, --debug don't remove temporary files
22608 --recheck update $as_me by reconfiguring in the same conditions
22609 --file=FILE[:TEMPLATE]
22610 instantiate the configuration file FILE
22611 --header=FILE[:TEMPLATE]
22612 instantiate the configuration header FILE
22613
22614Configuration files:
22615$config_files
22616
22617Configuration headers:
22618$config_headers
22619
22620Configuration commands:
22621$config_commands
22622
22623Report bugs to <bug-autoconf@gnu.org>."
22624_ACEOF
22625
22626cat >>$CONFIG_STATUS <<_ACEOF
22627ac_cs_version="\\
22628config.status
22629configured by $0, generated by GNU Autoconf 2.59,
22630 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22631
22632Copyright (C) 2003 Free Software Foundation, Inc.
22633This config.status script is free software; the Free Software Foundation
22634gives unlimited permission to copy, distribute and modify it."
22635srcdir=$srcdir
22636INSTALL="$INSTALL"
22637_ACEOF
22638
22639cat >>$CONFIG_STATUS <<\_ACEOF
22640# If no file are specified by the user, then we need to provide default
22641# value. By we need to know if files were specified by the user.
22642ac_need_defaults=:
22643while test $# != 0
22644do
22645 case $1 in
22646 --*=*)
22647 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22648 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22649 ac_shift=:
6be7c12c 22650 ;;
5464f5a1
NN
22651 -*)
22652 ac_option=$1
22653 ac_optarg=$2
22654 ac_shift=shift
6be7c12c 22655 ;;
5464f5a1
NN
22656 *) # This is not an option, so the user has probably given explicit
22657 # arguments.
22658 ac_option=$1
22659 ac_need_defaults=false;;
22660 esac
252b5132 22661
5464f5a1
NN
22662 case $ac_option in
22663 # Handling of the options.
22664_ACEOF
22665cat >>$CONFIG_STATUS <<\_ACEOF
22666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22667 ac_cs_recheck=: ;;
22668 --version | --vers* | -V )
22669 echo "$ac_cs_version"; exit 0 ;;
22670 --he | --h)
22671 # Conflict between --help and --header
22672 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22673Try \`$0 --help' for more information." >&5
22674echo "$as_me: error: ambiguous option: $1
22675Try \`$0 --help' for more information." >&2;}
22676 { (exit 1); exit 1; }; };;
22677 --help | --hel | -h )
22678 echo "$ac_cs_usage"; exit 0 ;;
22679 --debug | --d* | -d )
22680 debug=: ;;
22681 --file | --fil | --fi | --f )
22682 $ac_shift
22683 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22684 ac_need_defaults=false;;
22685 --header | --heade | --head | --hea )
22686 $ac_shift
22687 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22688 ac_need_defaults=false;;
22689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22690 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22691 ac_cs_silent=: ;;
6be7c12c 22692
5464f5a1
NN
22693 # This is an error.
22694 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22695Try \`$0 --help' for more information." >&5
22696echo "$as_me: error: unrecognized option: $1
22697Try \`$0 --help' for more information." >&2;}
22698 { (exit 1); exit 1; }; } ;;
252b5132 22699
5464f5a1 22700 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 22701
5464f5a1
NN
22702 esac
22703 shift
22704done
6be7c12c 22705
5464f5a1 22706ac_configure_extra_args=
252b5132 22707
5464f5a1
NN
22708if $ac_cs_silent; then
22709 exec 6>/dev/null
22710 ac_configure_extra_args="$ac_configure_extra_args --silent"
22711fi
6be7c12c 22712
5464f5a1
NN
22713_ACEOF
22714cat >>$CONFIG_STATUS <<_ACEOF
22715if \$ac_cs_recheck; then
22716 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22717 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22718fi
22719
22720_ACEOF
22721
22722cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 22723#
5464f5a1 22724# INIT-COMMANDS section.
6be7c12c 22725#
b3baf5d0 22726
f5385ebf 22727AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
22728
22729
22730# The HP-UX ksh and POSIX shell print the target directory to stdout
22731# if CDPATH is set.
22732(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22733
22734sed_quote_subst='$sed_quote_subst'
22735double_quote_subst='$double_quote_subst'
22736delay_variable_subst='$delay_variable_subst'
22737enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22738macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22739macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22740enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22741pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22742enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22743host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22744host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22745host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22746build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22747build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22748build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22749SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22750Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22751GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22752EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22753FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22754LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22755NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22756LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22757max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22758ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22759exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22760lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22761lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22762lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22763reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22764reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8 22765OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22766deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22767file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22768AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22769AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22770STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22771RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22772old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22773old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22774old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22775CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22776CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22777compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22778GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22779lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22780lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22781lt_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"`'
718a6fd8 22782lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22783objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22784SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22785ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22786MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22787lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22788lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22789lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22790lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22791lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22792need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
718a6fd8
SE
22793DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22794NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22795LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22796OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22797OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
d7040cdb
SE
22798libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22799shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22800extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22801archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22802enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22803export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22804whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22805compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22806old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22808archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22809archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22810module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22811module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22812with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22813allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22814no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22815hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22816hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22817hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22818hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22819hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22820hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22821hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22822hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22823inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22824link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22825fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22826always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22827export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22828exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22829include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22830prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22831file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22832variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22833need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22834need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22835version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22836runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22837shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22838shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22839libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22840library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22841soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22842postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22845finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22846hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22847sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22849hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22850enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22851enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22852enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22853old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22854striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22855
22856LTCC='$LTCC'
22857LTCFLAGS='$LTCFLAGS'
22858compiler='$compiler_DEFAULT'
22859
22860# Quote evaled strings.
22861for var in SED \
22862GREP \
22863EGREP \
22864FGREP \
22865LD \
22866NM \
22867LN_S \
22868lt_SP2NL \
22869lt_NL2SP \
22870reload_flag \
718a6fd8 22871OBJDUMP \
d7040cdb
SE
22872deplibs_check_method \
22873file_magic_cmd \
22874AR \
22875AR_FLAGS \
22876STRIP \
22877RANLIB \
22878CC \
22879CFLAGS \
22880compiler \
22881lt_cv_sys_global_symbol_pipe \
22882lt_cv_sys_global_symbol_to_cdecl \
22883lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 22884lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
22885SHELL \
22886ECHO \
22887lt_prog_compiler_no_builtin_flag \
22888lt_prog_compiler_wl \
22889lt_prog_compiler_pic \
22890lt_prog_compiler_static \
22891lt_cv_prog_compiler_c_o \
22892need_locks \
718a6fd8
SE
22893DSYMUTIL \
22894NMEDIT \
22895LIPO \
22896OTOOL \
22897OTOOL64 \
d7040cdb
SE
22898shrext_cmds \
22899export_dynamic_flag_spec \
22900whole_archive_flag_spec \
22901compiler_needs_object \
22902with_gnu_ld \
22903allow_undefined_flag \
22904no_undefined_flag \
22905hardcode_libdir_flag_spec \
22906hardcode_libdir_flag_spec_ld \
22907hardcode_libdir_separator \
22908fix_srcfile_path \
22909exclude_expsyms \
22910include_expsyms \
22911file_list_spec \
22912variables_saved_for_relink \
22913libname_spec \
22914library_names_spec \
22915soname_spec \
22916finish_eval \
22917old_striplib \
22918striplib; do
22919 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22920 *[\\\\\\\`\\"\\\$]*)
22921 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22922 ;;
22923 *)
22924 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22925 ;;
22926 esac
22927done
22928
22929# Double-quote double-evaled strings.
22930for var in reload_cmds \
22931old_postinstall_cmds \
22932old_postuninstall_cmds \
22933old_archive_cmds \
22934extract_expsyms_cmds \
22935old_archive_from_new_cmds \
22936old_archive_from_expsyms_cmds \
22937archive_cmds \
22938archive_expsym_cmds \
22939module_cmds \
22940module_expsym_cmds \
22941export_symbols_cmds \
22942prelink_cmds \
22943postinstall_cmds \
22944postuninstall_cmds \
22945finish_cmds \
22946sys_lib_search_path_spec \
22947sys_lib_dlsearch_path_spec; do
22948 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22949 *[\\\\\\\`\\"\\\$]*)
22950 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22951 ;;
22952 *)
22953 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22954 ;;
22955 esac
22956done
22957
22958# Fix-up fallback echo if it was mangled by the above quoting rules.
22959case \$lt_ECHO in
22960*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22961 ;;
22962esac
22963
22964ac_aux_dir='$ac_aux_dir'
22965xsi_shell='$xsi_shell'
22966lt_shell_append='$lt_shell_append'
22967
22968# See if we are running on zsh, and set the options which allow our
22969# commands through without removal of \ escapes INIT.
22970if test -n "\${ZSH_VERSION+set}" ; then
22971 setopt NO_GLOB_SUBST
22972fi
22973
22974
22975 PACKAGE='$PACKAGE'
22976 VERSION='$VERSION'
22977 TIMESTAMP='$TIMESTAMP'
22978 RM='$RM'
22979 ofile='$ofile'
22980
22981
22982
20e95c23
DJ
22983# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22984 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
22985 # from automake.
22986 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22987 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22988 LINGUAS="${LINGUAS-%UNSET%}"
22989
5464f5a1 22990
d5efd9fc
AM
22991GCC="$GCC"
22992CC="$CC"
22993acx_cv_header_stdint="$acx_cv_header_stdint"
22994acx_cv_type_int8_t="$acx_cv_type_int8_t"
22995acx_cv_type_int16_t="$acx_cv_type_int16_t"
22996acx_cv_type_int32_t="$acx_cv_type_int32_t"
22997acx_cv_type_int64_t="$acx_cv_type_int64_t"
22998acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
22999ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23000ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23001ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23002ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23003ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23004ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23005ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23006ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23007
23008
5464f5a1
NN
23009
23010_ACEOF
23011
23012
23013
23014cat >>$CONFIG_STATUS <<\_ACEOF
23015for ac_config_target in $ac_config_targets
252b5132 23016do
5464f5a1
NN
23017 case "$ac_config_target" in
23018 # Handling of arguments.
23019 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23020 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23021 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23022 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 23023 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
d7040cdb 23024 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20e95c23 23025 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
d5efd9fc 23026 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
5464f5a1
NN
23027 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23028 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23030echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23031 { (exit 1); exit 1; }; };;
252b5132
RH
23032 esac
23033done
23034
5464f5a1
NN
23035# If the user did not use the arguments to specify the items to instantiate,
23036# then the envvar interface is used. Set only those that are not.
23037# We use the long form for the default assignment because of an extremely
23038# bizarre bug on SunOS 4.1.3.
23039if $ac_need_defaults; then
23040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23043fi
23044
23045# Have a temporary directory for convenience. Make it in the build tree
23046# simply because there is no reason to put it here, and in addition,
23047# creating and moving files from /tmp can sometimes cause problems.
23048# Create a temporary directory, and hook for its removal unless debugging.
23049$debug ||
23050{
23051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23052 trap '{ (exit 1); exit 1; }' 1 2 13 15
23053}
b3baf5d0 23054
5464f5a1 23055# Create a (secure) tmp directory for tmp files.
b3baf5d0 23056
5464f5a1
NN
23057{
23058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23059 test -n "$tmp" && test -d "$tmp"
23060} ||
23061{
23062 tmp=./confstat$$-$RANDOM
23063 (umask 077 && mkdir $tmp)
23064} ||
23065{
23066 echo "$me: cannot create a temporary directory in ." >&2
23067 { (exit 1); exit 1; }
23068}
23069
23070_ACEOF
23071
23072cat >>$CONFIG_STATUS <<_ACEOF
23073
23074#
23075# CONFIG_FILES section.
23076#
b3baf5d0 23077
5464f5a1
NN
23078# No need to generate the scripts if there are no CONFIG_FILES.
23079# This happens for instance when ./config.status config.h
23080if test -n "\$CONFIG_FILES"; then
23081 # Protect against being on the right side of a sed subst in config.status.
23082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23084s,@SHELL@,$SHELL,;t t
23085s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23086s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23087s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23088s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23089s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23090s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23091s,@exec_prefix@,$exec_prefix,;t t
23092s,@prefix@,$prefix,;t t
23093s,@program_transform_name@,$program_transform_name,;t t
23094s,@bindir@,$bindir,;t t
23095s,@sbindir@,$sbindir,;t t
23096s,@libexecdir@,$libexecdir,;t t
23097s,@datadir@,$datadir,;t t
23098s,@sysconfdir@,$sysconfdir,;t t
23099s,@sharedstatedir@,$sharedstatedir,;t t
23100s,@localstatedir@,$localstatedir,;t t
23101s,@libdir@,$libdir,;t t
23102s,@includedir@,$includedir,;t t
23103s,@oldincludedir@,$oldincludedir,;t t
23104s,@infodir@,$infodir,;t t
23105s,@mandir@,$mandir,;t t
23106s,@build_alias@,$build_alias,;t t
23107s,@host_alias@,$host_alias,;t t
23108s,@target_alias@,$target_alias,;t t
23109s,@DEFS@,$DEFS,;t t
23110s,@ECHO_C@,$ECHO_C,;t t
23111s,@ECHO_N@,$ECHO_N,;t t
23112s,@ECHO_T@,$ECHO_T,;t t
23113s,@LIBS@,$LIBS,;t t
23114s,@build@,$build,;t t
23115s,@build_cpu@,$build_cpu,;t t
23116s,@build_vendor@,$build_vendor,;t t
23117s,@build_os@,$build_os,;t t
23118s,@host@,$host,;t t
23119s,@host_cpu@,$host_cpu,;t t
23120s,@host_vendor@,$host_vendor,;t t
23121s,@host_os@,$host_os,;t t
23122s,@target@,$target,;t t
23123s,@target_cpu@,$target_cpu,;t t
23124s,@target_vendor@,$target_vendor,;t t
23125s,@target_os@,$target_os,;t t
23126s,@CC@,$CC,;t t
23127s,@CFLAGS@,$CFLAGS,;t t
23128s,@LDFLAGS@,$LDFLAGS,;t t
23129s,@CPPFLAGS@,$CPPFLAGS,;t t
23130s,@ac_ct_CC@,$ac_ct_CC,;t t
23131s,@EXEEXT@,$EXEEXT,;t t
23132s,@OBJEXT@,$OBJEXT,;t t
23133s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23134s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23135s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 23136s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
23137s,@PACKAGE@,$PACKAGE,;t t
23138s,@VERSION@,$VERSION,;t t
23139s,@ACLOCAL@,$ACLOCAL,;t t
23140s,@AUTOCONF@,$AUTOCONF,;t t
23141s,@AUTOMAKE@,$AUTOMAKE,;t t
23142s,@AUTOHEADER@,$AUTOHEADER,;t t
23143s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
23144s,@install_sh@,$install_sh,;t t
23145s,@STRIP@,$STRIP,;t t
23146s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23147s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23148s,@mkdir_p@,$mkdir_p,;t t
23149s,@AWK@,$AWK,;t t
5464f5a1 23150s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
23151s,@am__leading_dot@,$am__leading_dot,;t t
23152s,@AMTAR@,$AMTAR,;t t
23153s,@am__tar@,$am__tar,;t t
23154s,@am__untar@,$am__untar,;t t
23155s,@DEPDIR@,$DEPDIR,;t t
23156s,@am__include@,$am__include,;t t
23157s,@am__quote@,$am__quote,;t t
23158s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23159s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23160s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23161s,@CCDEPMODE@,$CCDEPMODE,;t t
23162s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23163s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
23164s,@AR@,$AR,;t t
23165s,@ac_ct_AR@,$ac_ct_AR,;t t
23166s,@RANLIB@,$RANLIB,;t t
23167s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7357c5b6
AM
23168s,@CPP@,$CPP,;t t
23169s,@EGREP@,$EGREP,;t t
5464f5a1 23170s,@LIBTOOL@,$LIBTOOL,;t t
d7040cdb 23171s,@SED@,$SED,;t t
d7040cdb
SE
23172s,@FGREP@,$FGREP,;t t
23173s,@GREP@,$GREP,;t t
23174s,@LD@,$LD,;t t
23175s,@DUMPBIN@,$DUMPBIN,;t t
23176s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23177s,@NM@,$NM,;t t
23178s,@LN_S@,$LN_S,;t t
718a6fd8
SE
23179s,@OBJDUMP@,$OBJDUMP,;t t
23180s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
d7040cdb 23181s,@lt_ECHO@,$lt_ECHO,;t t
718a6fd8
SE
23182s,@DSYMUTIL@,$DSYMUTIL,;t t
23183s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23184s,@NMEDIT@,$NMEDIT,;t t
23185s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23186s,@LIPO@,$LIPO,;t t
23187s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23188s,@OTOOL@,$OTOOL,;t t
23189s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23190s,@OTOOL64@,$OTOOL64,;t t
23191s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
0d4a1476 23192s,@DEBUGDIR@,$DEBUGDIR,;t t
92f01d61 23193s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
23194s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23195s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 23196s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 23197s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
23198s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23199s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23200s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
23201s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23202s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
23203s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23204s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
23205s,@host_noncanonical@,$host_noncanonical,;t t
23206s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
23207s,@bfdlibdir@,$bfdlibdir,;t t
23208s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 23209s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
23210s,@LIBINTL@,$LIBINTL,;t t
23211s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23212s,@INCINTL@,$INCINTL,;t t
5464f5a1 23213s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
23214s,@GMSGFMT@,$GMSGFMT,;t t
23215s,@POSUB@,$POSUB,;t t
5464f5a1 23216s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 23217s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 23218s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
23219s,@GENCAT@,$GENCAT,;t t
23220s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 23221s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
23222s,@MSGFMT@,$MSGFMT,;t t
23223s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1
NN
23224s,@HDEFINES@,$HDEFINES,;t t
23225s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
d2df793a 23226s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
5464f5a1
NN
23227s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23228s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23229s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
d2df793a 23230s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
5464f5a1
NN
23231s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23232s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23233s,@COREFILE@,$COREFILE,;t t
23234s,@COREFLAG@,$COREFLAG,;t t
23235s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23236s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23237s,@TDEFINES@,$TDEFINES,;t t
23238s,@wordsize@,$wordsize,;t t
21e40a48 23239s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
23240s,@all_backends@,$all_backends,;t t
23241s,@bfd_backends@,$bfd_backends,;t t
23242s,@bfd_machines@,$bfd_machines,;t t
23243s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23244s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23245s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23246s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
23247s,@datarootdir@,$datarootdir,;t t
23248s,@docdir@,$docdir,;t t
23249s,@htmldir@,$htmldir,;t t
5464f5a1
NN
23250s,@LIBOBJS@,$LIBOBJS,;t t
23251s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 23252CEOF
252b5132 23253
5464f5a1
NN
23254_ACEOF
23255
23256 cat >>$CONFIG_STATUS <<\_ACEOF
23257 # Split the substitutions into bite-sized pieces for seds with
23258 # small command number limits, like on Digital OSF/1 and HP-UX.
23259 ac_max_sed_lines=48
23260 ac_sed_frag=1 # Number of current file.
23261 ac_beg=1 # First line for current file.
23262 ac_end=$ac_max_sed_lines # Line after last line for current file.
23263 ac_more_lines=:
23264 ac_sed_cmds=
23265 while $ac_more_lines; do
23266 if test $ac_beg -gt 1; then
23267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 23268 else
5464f5a1
NN
23269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23270 fi
23271 if test ! -s $tmp/subs.frag; then
23272 ac_more_lines=false
23273 else
23274 # The purpose of the label and of the branching condition is to
23275 # speed up the sed processing (if there are no `@' at all, there
23276 # is no need to browse any of the substitutions).
23277 # These are the two extra sed commands mentioned above.
23278 (echo ':t
23279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23280 if test -z "$ac_sed_cmds"; then
23281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23282 else
23283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23284 fi
23285 ac_sed_frag=`expr $ac_sed_frag + 1`
23286 ac_beg=$ac_end
23287 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 23288 fi
5464f5a1
NN
23289 done
23290 if test -z "$ac_sed_cmds"; then
23291 ac_sed_cmds=cat
252b5132 23292 fi
5464f5a1 23293fi # test -n "$CONFIG_FILES"
6be7c12c 23294
5464f5a1
NN
23295_ACEOF
23296cat >>$CONFIG_STATUS <<\_ACEOF
23297for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 23298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23299 case $ac_file in
23300 - | *:- | *:-:* ) # input from stdin
23301 cat >$tmp/stdin
23302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23306 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23307 esac
23308
5464f5a1
NN
23309 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23310 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23312 X"$ac_file" : 'X\(//\)[^/]' \| \
23313 X"$ac_file" : 'X\(//\)$' \| \
23314 X"$ac_file" : 'X\(/\)' \| \
23315 . : '\(.\)' 2>/dev/null ||
23316echo X"$ac_file" |
23317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23319 /^X\(\/\/\)$/{ s//\1/; q; }
23320 /^X\(\/\).*/{ s//\1/; q; }
23321 s/.*/./; q'`
23322 { if $as_mkdir_p; then
23323 mkdir -p "$ac_dir"
252b5132 23324 else
5464f5a1
NN
23325 as_dir="$ac_dir"
23326 as_dirs=
23327 while test ! -d "$as_dir"; do
23328 as_dirs="$as_dir $as_dirs"
23329 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23331 X"$as_dir" : 'X\(//\)[^/]' \| \
23332 X"$as_dir" : 'X\(//\)$' \| \
23333 X"$as_dir" : 'X\(/\)' \| \
23334 . : '\(.\)' 2>/dev/null ||
23335echo X"$as_dir" |
23336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23338 /^X\(\/\/\)$/{ s//\1/; q; }
23339 /^X\(\/\).*/{ s//\1/; q; }
23340 s/.*/./; q'`
23341 done
23342 test ! -n "$as_dirs" || mkdir $as_dirs
23343 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23344echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23345 { (exit 1); exit 1; }; }; }
23346
23347 ac_builddir=.
23348
23349if test "$ac_dir" != .; then
23350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23351 # A "../" for each directory in $ac_dir_suffix.
23352 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23353else
23354 ac_dir_suffix= ac_top_builddir=
23355fi
252b5132 23356
5464f5a1
NN
23357case $srcdir in
23358 .) # No --srcdir option. We are building in place.
23359 ac_srcdir=.
23360 if test -z "$ac_top_builddir"; then
23361 ac_top_srcdir=.
23362 else
23363 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23364 fi ;;
23365 [\\/]* | ?:[\\/]* ) # Absolute path.
23366 ac_srcdir=$srcdir$ac_dir_suffix;
23367 ac_top_srcdir=$srcdir ;;
252b5132 23368 *) # Relative path.
5464f5a1
NN
23369 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23370 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23371esac
252b5132 23372
5464f5a1
NN
23373# Do not use `cd foo && pwd` to compute absolute paths, because
23374# the directories may not exist.
23375case `pwd` in
23376.) ac_abs_builddir="$ac_dir";;
23377*)
23378 case "$ac_dir" in
23379 .) ac_abs_builddir=`pwd`;;
23380 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23381 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23382 esac;;
23383esac
23384case $ac_abs_builddir in
23385.) ac_abs_top_builddir=${ac_top_builddir}.;;
23386*)
23387 case ${ac_top_builddir}. in
23388 .) ac_abs_top_builddir=$ac_abs_builddir;;
23389 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23390 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23391 esac;;
23392esac
23393case $ac_abs_builddir in
23394.) ac_abs_srcdir=$ac_srcdir;;
23395*)
23396 case $ac_srcdir in
23397 .) ac_abs_srcdir=$ac_abs_builddir;;
23398 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23399 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23400 esac;;
23401esac
23402case $ac_abs_builddir in
23403.) ac_abs_top_srcdir=$ac_top_srcdir;;
23404*)
23405 case $ac_top_srcdir in
23406 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23407 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23408 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23409 esac;;
23410esac
252b5132 23411
5464f5a1
NN
23412
23413 case $INSTALL in
23414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23415 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 23416 esac
252b5132 23417
7357c5b6
AM
23418 if test x"$ac_file" != x-; then
23419 { echo "$as_me:$LINENO: creating $ac_file" >&5
23420echo "$as_me: creating $ac_file" >&6;}
23421 rm -f "$ac_file"
23422 fi
5464f5a1
NN
23423 # Let's still pretend it is `configure' which instantiates (i.e., don't
23424 # use $as_me), people would be surprised to read:
23425 # /* config.h. Generated by config.status. */
23426 if test x"$ac_file" = x-; then
23427 configure_input=
23428 else
23429 configure_input="$ac_file. "
23430 fi
23431 configure_input=$configure_input"Generated from `echo $ac_file_in |
23432 sed 's,.*/,,'` by configure."
23433
23434 # First look for the input files in the build tree, otherwise in the
23435 # src tree.
23436 ac_file_inputs=`IFS=:
23437 for f in $ac_file_in; do
23438 case $f in
23439 -) echo $tmp/stdin ;;
23440 [\\/$]*)
23441 # Absolute (can't be DOS-style, as IFS=:)
23442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23443echo "$as_me: error: cannot find input file: $f" >&2;}
23444 { (exit 1); exit 1; }; }
23445 echo "$f";;
23446 *) # Relative
23447 if test -f "$f"; then
23448 # Build tree
23449 echo "$f"
23450 elif test -f "$srcdir/$f"; then
23451 # Source tree
23452 echo "$srcdir/$f"
23453 else
23454 # /dev/null tree
23455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23456echo "$as_me: error: cannot find input file: $f" >&2;}
23457 { (exit 1); exit 1; }; }
23458 fi;;
23459 esac
23460 done` || { (exit 1); exit 1; }
5464f5a1
NN
23461_ACEOF
23462cat >>$CONFIG_STATUS <<_ACEOF
23463 sed "$ac_vpsub
23464$extrasub
23465_ACEOF
23466cat >>$CONFIG_STATUS <<\_ACEOF
23467:t
23468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23469s,@configure_input@,$configure_input,;t t
23470s,@srcdir@,$ac_srcdir,;t t
23471s,@abs_srcdir@,$ac_abs_srcdir,;t t
23472s,@top_srcdir@,$ac_top_srcdir,;t t
23473s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23474s,@builddir@,$ac_builddir,;t t
23475s,@abs_builddir@,$ac_abs_builddir,;t t
23476s,@top_builddir@,$ac_top_builddir,;t t
23477s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23478s,@INSTALL@,$ac_INSTALL,;t t
23479" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23480 rm -f $tmp/stdin
23481 if test x"$ac_file" != x-; then
23482 mv $tmp/out $ac_file
23483 else
23484 cat $tmp/out
23485 rm -f $tmp/out
23486 fi
23487
23488done
23489_ACEOF
23490cat >>$CONFIG_STATUS <<\_ACEOF
23491
23492#
23493# CONFIG_HEADER section.
23494#
252b5132
RH
23495
23496# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23497# NAME is the cpp macro being defined and VALUE is the value it is being given.
23498#
23499# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
23500ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23501ac_dB='[ ].*$,\1#\2'
23502ac_dC=' '
23503ac_dD=',;t'
23504# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23505ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23506ac_uB='$,\1#\2define\3'
252b5132 23507ac_uC=' '
5464f5a1
NN
23508ac_uD=',;t'
23509
23510for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 23511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
23512 case $ac_file in
23513 - | *:- | *:-:* ) # input from stdin
23514 cat >$tmp/stdin
23515 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23517 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23519 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
23520 esac
23521
5464f5a1
NN
23522 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23523echo "$as_me: creating $ac_file" >&6;}
23524
23525 # First look for the input files in the build tree, otherwise in the
23526 # src tree.
23527 ac_file_inputs=`IFS=:
23528 for f in $ac_file_in; do
23529 case $f in
23530 -) echo $tmp/stdin ;;
23531 [\\/$]*)
23532 # Absolute (can't be DOS-style, as IFS=:)
23533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23534echo "$as_me: error: cannot find input file: $f" >&2;}
23535 { (exit 1); exit 1; }; }
23536 # Do quote $f, to prevent DOS paths from being IFS'd.
23537 echo "$f";;
23538 *) # Relative
23539 if test -f "$f"; then
23540 # Build tree
23541 echo "$f"
23542 elif test -f "$srcdir/$f"; then
23543 # Source tree
23544 echo "$srcdir/$f"
23545 else
23546 # /dev/null tree
23547 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23548echo "$as_me: error: cannot find input file: $f" >&2;}
23549 { (exit 1); exit 1; }; }
23550 fi;;
23551 esac
23552 done` || { (exit 1); exit 1; }
23553 # Remove the trailing spaces.
23554 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23555
23556_ACEOF
23557
23558# Transform confdefs.h into two sed scripts, `conftest.defines' and
23559# `conftest.undefs', that substitutes the proper values into
23560# config.h.in to produce config.h. The first handles `#define'
23561# templates, and the second `#undef' templates.
23562# And first: Protect against being on the right side of a sed subst in
23563# config.status. Protect against being in an unquoted here document
23564# in config.status.
23565rm -f conftest.defines conftest.undefs
23566# Using a here document instead of a string reduces the quoting nightmare.
23567# Putting comments in sed scripts is not portable.
23568#
23569# `end' is used to avoid that the second main sed command (meant for
23570# 0-ary CPP macros) applies to n-ary macro definitions.
23571# See the Autoconf documentation for `clear'.
23572cat >confdef2sed.sed <<\_ACEOF
23573s/[\\&,]/\\&/g
23574s,[\\$`],\\&,g
23575t clear
23576: clear
23577s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23578t end
23579s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23580: end
23581_ACEOF
23582# If some macros were called several times there might be several times
23583# the same #defines, which is useless. Nevertheless, we may not want to
23584# sort them, since we want the *last* AC-DEFINE to be honored.
23585uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23586sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23587rm -f confdef2sed.sed
252b5132
RH
23588
23589# This sed command replaces #undef with comments. This is necessary, for
23590# example, in the case of _POSIX_SOURCE, which is predefined and required
23591# on some systems where configure will not decide to define it.
5464f5a1
NN
23592cat >>conftest.undefs <<\_ACEOF
23593s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23594_ACEOF
23595
23596# Break up conftest.defines because some shells have a limit on the size
23597# of here documents, and old seds have small limits too (100 cmds).
23598echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23599echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23600echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23601echo ' :' >>$CONFIG_STATUS
23602rm -f conftest.tail
23603while grep . conftest.defines >/dev/null
23604do
23605 # Write a limited-size here document to $tmp/defines.sed.
23606 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23607 # Speed up: don't consider the non `#define' lines.
23608 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23609 # Work around the forget-to-reset-the-flag bug.
23610 echo 't clr' >>$CONFIG_STATUS
23611 echo ': clr' >>$CONFIG_STATUS
23612 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23613 echo 'CEOF
23614 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23615 rm -f $tmp/in
23616 mv $tmp/out $tmp/in
23617' >>$CONFIG_STATUS
23618 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23619 rm -f conftest.defines
23620 mv conftest.tail conftest.defines
23621done
23622rm -f conftest.defines
23623echo ' fi # grep' >>$CONFIG_STATUS
23624echo >>$CONFIG_STATUS
252b5132 23625
5464f5a1
NN
23626# Break up conftest.undefs because some shells have a limit on the size
23627# of here documents, and old seds have small limits too (100 cmds).
23628echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 23629rm -f conftest.tail
5464f5a1 23630while grep . conftest.undefs >/dev/null
252b5132 23631do
5464f5a1
NN
23632 # Write a limited-size here document to $tmp/undefs.sed.
23633 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23634 # Speed up: don't consider the non `#undef'
23635 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23636 # Work around the forget-to-reset-the-flag bug.
23637 echo 't clr' >>$CONFIG_STATUS
23638 echo ': clr' >>$CONFIG_STATUS
23639 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 23640 echo 'CEOF
5464f5a1
NN
23641 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23642 rm -f $tmp/in
23643 mv $tmp/out $tmp/in
23644' >>$CONFIG_STATUS
23645 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23646 rm -f conftest.undefs
23647 mv conftest.tail conftest.undefs
252b5132 23648done
5464f5a1
NN
23649rm -f conftest.undefs
23650
23651cat >>$CONFIG_STATUS <<\_ACEOF
23652 # Let's still pretend it is `configure' which instantiates (i.e., don't
23653 # use $as_me), people would be surprised to read:
23654 # /* config.h. Generated by config.status. */
23655 if test x"$ac_file" = x-; then
23656 echo "/* Generated by configure. */" >$tmp/config.h
23657 else
23658 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23659 fi
23660 cat $tmp/in >>$tmp/config.h
23661 rm -f $tmp/in
23662 if test x"$ac_file" != x-; then
23663 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23664 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23665echo "$as_me: $ac_file is unchanged" >&6;}
23666 else
23667 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23668$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23669 X"$ac_file" : 'X\(//\)[^/]' \| \
23670 X"$ac_file" : 'X\(//\)$' \| \
23671 X"$ac_file" : 'X\(/\)' \| \
23672 . : '\(.\)' 2>/dev/null ||
23673echo X"$ac_file" |
23674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23676 /^X\(\/\/\)$/{ s//\1/; q; }
23677 /^X\(\/\).*/{ s//\1/; q; }
23678 s/.*/./; q'`
23679 { if $as_mkdir_p; then
23680 mkdir -p "$ac_dir"
252b5132 23681 else
5464f5a1
NN
23682 as_dir="$ac_dir"
23683 as_dirs=
23684 while test ! -d "$as_dir"; do
23685 as_dirs="$as_dir $as_dirs"
23686 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23687$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23688 X"$as_dir" : 'X\(//\)[^/]' \| \
23689 X"$as_dir" : 'X\(//\)$' \| \
23690 X"$as_dir" : 'X\(/\)' \| \
23691 . : '\(.\)' 2>/dev/null ||
23692echo X"$as_dir" |
23693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23694 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23695 /^X\(\/\/\)$/{ s//\1/; q; }
23696 /^X\(\/\).*/{ s//\1/; q; }
23697 s/.*/./; q'`
23698 done
23699 test ! -n "$as_dirs" || mkdir $as_dirs
23700 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23701echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23702 { (exit 1); exit 1; }; }; }
23703
23704 rm -f $ac_file
23705 mv $tmp/config.h $ac_file
252b5132 23706 fi
5464f5a1
NN
23707 else
23708 cat $tmp/config.h
23709 rm -f $tmp/config.h
252b5132 23710 fi
f5385ebf
AM
23711# Compute $ac_file's index in $config_headers.
23712_am_stamp_count=1
23713for _am_header in $config_headers :; do
23714 case $_am_header in
23715 $ac_file | $ac_file:* )
23716 break ;;
23717 * )
23718 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23719 esac
23720done
23721echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23722$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23723 X$ac_file : 'X\(//\)[^/]' \| \
23724 X$ac_file : 'X\(//\)$' \| \
23725 X$ac_file : 'X\(/\)' \| \
23726 . : '\(.\)' 2>/dev/null ||
23727echo X$ac_file |
23728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23730 /^X\(\/\/\)$/{ s//\1/; q; }
23731 /^X\(\/\).*/{ s//\1/; q; }
23732 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
23733done
23734_ACEOF
23735cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 23736
5464f5a1
NN
23737#
23738# CONFIG_COMMANDS section.
23739#
23740for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23741 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23742 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23743 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23744$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23745 X"$ac_dest" : 'X\(//\)[^/]' \| \
23746 X"$ac_dest" : 'X\(//\)$' \| \
23747 X"$ac_dest" : 'X\(/\)' \| \
23748 . : '\(.\)' 2>/dev/null ||
23749echo X"$ac_dest" |
23750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23752 /^X\(\/\/\)$/{ s//\1/; q; }
23753 /^X\(\/\).*/{ s//\1/; q; }
23754 s/.*/./; q'`
23755 { if $as_mkdir_p; then
23756 mkdir -p "$ac_dir"
23757 else
23758 as_dir="$ac_dir"
23759 as_dirs=
23760 while test ! -d "$as_dir"; do
23761 as_dirs="$as_dir $as_dirs"
23762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23764 X"$as_dir" : 'X\(//\)[^/]' \| \
23765 X"$as_dir" : 'X\(//\)$' \| \
23766 X"$as_dir" : 'X\(/\)' \| \
23767 . : '\(.\)' 2>/dev/null ||
23768echo X"$as_dir" |
23769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23771 /^X\(\/\/\)$/{ s//\1/; q; }
23772 /^X\(\/\).*/{ s//\1/; q; }
23773 s/.*/./; q'`
23774 done
23775 test ! -n "$as_dirs" || mkdir $as_dirs
23776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23777echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23778 { (exit 1); exit 1; }; }; }
b3baf5d0 23779
5464f5a1 23780 ac_builddir=.
b3baf5d0 23781
5464f5a1
NN
23782if test "$ac_dir" != .; then
23783 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23784 # A "../" for each directory in $ac_dir_suffix.
23785 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23786else
23787 ac_dir_suffix= ac_top_builddir=
23788fi
23789
23790case $srcdir in
23791 .) # No --srcdir option. We are building in place.
23792 ac_srcdir=.
23793 if test -z "$ac_top_builddir"; then
23794 ac_top_srcdir=.
23795 else
23796 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23797 fi ;;
23798 [\\/]* | ?:[\\/]* ) # Absolute path.
23799 ac_srcdir=$srcdir$ac_dir_suffix;
23800 ac_top_srcdir=$srcdir ;;
23801 *) # Relative path.
23802 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23803 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23804esac
23805
23806# Do not use `cd foo && pwd` to compute absolute paths, because
23807# the directories may not exist.
23808case `pwd` in
23809.) ac_abs_builddir="$ac_dir";;
23810*)
23811 case "$ac_dir" in
23812 .) ac_abs_builddir=`pwd`;;
23813 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23814 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23815 esac;;
23816esac
23817case $ac_abs_builddir in
23818.) ac_abs_top_builddir=${ac_top_builddir}.;;
23819*)
23820 case ${ac_top_builddir}. in
23821 .) ac_abs_top_builddir=$ac_abs_builddir;;
23822 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23823 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23824 esac;;
23825esac
23826case $ac_abs_builddir in
23827.) ac_abs_srcdir=$ac_srcdir;;
23828*)
23829 case $ac_srcdir in
23830 .) ac_abs_srcdir=$ac_abs_builddir;;
23831 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23832 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23833 esac;;
23834esac
23835case $ac_abs_builddir in
23836.) ac_abs_top_srcdir=$ac_top_srcdir;;
23837*)
23838 case $ac_top_srcdir in
23839 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23840 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23841 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23842 esac;;
23843esac
23844
23845
23846 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23847echo "$as_me: executing $ac_dest commands" >&6;}
23848 case $ac_dest in
f5385ebf
AM
23849 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23850 # Strip MF so we end up with the name of the file.
23851 mf=`echo "$mf" | sed -e 's/:.*$//'`
23852 # Check whether this is an Automake generated Makefile or not.
23853 # We used to match only the files named `Makefile.in', but
23854 # some people rename them; so instead we look at the file content.
23855 # Grep'ing the first line is not enough: some people post-process
23856 # each Makefile.in and add a new line on top of each file to say so.
23857 # So let's grep whole file.
23858 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23859 dirpart=`(dirname "$mf") 2>/dev/null ||
23860$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23861 X"$mf" : 'X\(//\)[^/]' \| \
23862 X"$mf" : 'X\(//\)$' \| \
23863 X"$mf" : 'X\(/\)' \| \
23864 . : '\(.\)' 2>/dev/null ||
23865echo X"$mf" |
23866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23868 /^X\(\/\/\)$/{ s//\1/; q; }
23869 /^X\(\/\).*/{ s//\1/; q; }
23870 s/.*/./; q'`
23871 else
23872 continue
23873 fi
23874 # Extract the definition of DEPDIR, am__include, and am__quote
23875 # from the Makefile without running `make'.
23876 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23877 test -z "$DEPDIR" && continue
23878 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23879 test -z "am__include" && continue
23880 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23881 # When using ansi2knr, U may be empty or an underscore; expand it
23882 U=`sed -n 's/^U = //p' < "$mf"`
23883 # Find all dependency output files, they are included files with
23884 # $(DEPDIR) in their names. We invoke sed twice because it is the
23885 # simplest approach to changing $(DEPDIR) to its actual value in the
23886 # expansion.
23887 for file in `sed -n "
23888 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23889 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23890 # Make sure the directory exists.
23891 test -f "$dirpart/$file" && continue
23892 fdir=`(dirname "$file") 2>/dev/null ||
23893$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23894 X"$file" : 'X\(//\)[^/]' \| \
23895 X"$file" : 'X\(//\)$' \| \
23896 X"$file" : 'X\(/\)' \| \
23897 . : '\(.\)' 2>/dev/null ||
23898echo X"$file" |
23899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23901 /^X\(\/\/\)$/{ s//\1/; q; }
23902 /^X\(\/\).*/{ s//\1/; q; }
23903 s/.*/./; q'`
23904 { if $as_mkdir_p; then
23905 mkdir -p $dirpart/$fdir
23906 else
23907 as_dir=$dirpart/$fdir
23908 as_dirs=
23909 while test ! -d "$as_dir"; do
23910 as_dirs="$as_dir $as_dirs"
23911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23913 X"$as_dir" : 'X\(//\)[^/]' \| \
23914 X"$as_dir" : 'X\(//\)$' \| \
23915 X"$as_dir" : 'X\(/\)' \| \
23916 . : '\(.\)' 2>/dev/null ||
23917echo X"$as_dir" |
23918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23920 /^X\(\/\/\)$/{ s//\1/; q; }
23921 /^X\(\/\).*/{ s//\1/; q; }
23922 s/.*/./; q'`
23923 done
23924 test ! -n "$as_dirs" || mkdir $as_dirs
23925 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23926echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23927 { (exit 1); exit 1; }; }; }
23928
23929 # echo "creating $dirpart/$file"
23930 echo '# dummy' > "$dirpart/$file"
23931 done
23932done
d7040cdb
SE
23933 ;;
23934 libtool )
23935
23936 # See if we are running on zsh, and set the options which allow our
23937 # commands through without removal of \ escapes.
23938 if test -n "${ZSH_VERSION+set}" ; then
23939 setopt NO_GLOB_SUBST
23940 fi
23941
23942 cfgfile="${ofile}T"
23943 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23944 $RM "$cfgfile"
23945
23946 cat <<_LT_EOF >> "$cfgfile"
23947#! $SHELL
23948
23949# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 23950# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
23951# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23952# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23953#
718a6fd8
SE
23954# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23955# 2006, 2007, 2008 Free Software Foundation, Inc.
23956# Written by Gordon Matzigkeit, 1996
d7040cdb 23957#
718a6fd8 23958# This file is part of GNU Libtool.
d7040cdb 23959#
718a6fd8
SE
23960# GNU Libtool is free software; you can redistribute it and/or
23961# modify it under the terms of the GNU General Public License as
23962# published by the Free Software Foundation; either version 2 of
23963# the License, or (at your option) any later version.
d7040cdb 23964#
718a6fd8
SE
23965# As a special exception to the GNU General Public License,
23966# if you distribute this file as part of a program or library that
23967# is built using GNU Libtool, you may include this file under the
23968# same distribution terms that you use for the rest of that program.
d7040cdb 23969#
718a6fd8
SE
23970# GNU Libtool is distributed in the hope that it will be useful,
23971# but WITHOUT ANY WARRANTY; without even the implied warranty of
23972# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23973# GNU General Public License for more details.
d7040cdb 23974#
718a6fd8
SE
23975# You should have received a copy of the GNU General Public License
23976# along with GNU Libtool; see the file COPYING. If not, a copy
23977# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23978# obtained by writing to the Free Software Foundation, Inc.,
23979# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
23980
23981
23982# The names of the tagged configurations supported by this script.
23983available_tags=""
23984
23985# ### BEGIN LIBTOOL CONFIG
23986
23987# Whether or not to build shared libraries.
23988build_libtool_libs=$enable_shared
23989
23990# Which release of libtool.m4 was used?
23991macro_version=$macro_version
23992macro_revision=$macro_revision
23993
23994# Whether or not to build static libraries.
23995build_old_libs=$enable_static
23996
23997# What type of objects to build.
23998pic_mode=$pic_mode
23999
24000# Whether or not to optimize for fast installation.
24001fast_install=$enable_fast_install
24002
24003# The host system.
24004host_alias=$host_alias
24005host=$host
24006host_os=$host_os
24007
24008# The build system.
24009build_alias=$build_alias
24010build=$build
24011build_os=$build_os
24012
24013# A sed program that does not truncate output.
24014SED=$lt_SED
24015
24016# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24017Xsed="\$SED -e 1s/^X//"
24018
24019# A grep program that handles long lines.
24020GREP=$lt_GREP
24021
24022# An ERE matcher.
24023EGREP=$lt_EGREP
24024
24025# A literal string matcher.
24026FGREP=$lt_FGREP
24027
24028# A BSD- or MS-compatible name lister.
24029NM=$lt_NM
24030
24031# Whether we need soft or hard links.
24032LN_S=$lt_LN_S
24033
24034# What is the maximum length of a command?
24035max_cmd_len=$max_cmd_len
24036
24037# Object file suffix (normally "o").
24038objext=$ac_objext
24039
24040# Executable file suffix (normally "").
24041exeext=$exeext
24042
24043# whether the shell understands "unset".
24044lt_unset=$lt_unset
24045
24046# turn spaces into newlines.
24047SP2NL=$lt_lt_SP2NL
24048
24049# turn newlines into spaces.
24050NL2SP=$lt_lt_NL2SP
24051
24052# How to create reloadable object files.
24053reload_flag=$lt_reload_flag
24054reload_cmds=$lt_reload_cmds
24055
718a6fd8
SE
24056# An object symbol dumper.
24057OBJDUMP=$lt_OBJDUMP
24058
d7040cdb
SE
24059# Method to check whether dependent libraries are shared objects.
24060deplibs_check_method=$lt_deplibs_check_method
24061
24062# Command to use when deplibs_check_method == "file_magic".
24063file_magic_cmd=$lt_file_magic_cmd
24064
24065# The archiver.
24066AR=$lt_AR
24067AR_FLAGS=$lt_AR_FLAGS
24068
24069# A symbol stripping program.
24070STRIP=$lt_STRIP
24071
24072# Commands used to install an old-style archive.
24073RANLIB=$lt_RANLIB
24074old_postinstall_cmds=$lt_old_postinstall_cmds
24075old_postuninstall_cmds=$lt_old_postuninstall_cmds
24076
24077# A C compiler.
24078LTCC=$lt_CC
24079
24080# LTCC compiler flags.
24081LTCFLAGS=$lt_CFLAGS
24082
24083# Take the output of nm and produce a listing of raw symbols and C names.
24084global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24085
24086# Transform the output of nm in a proper C declaration.
24087global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24088
24089# Transform the output of nm in a C name address pair.
24090global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24091
718a6fd8
SE
24092# Transform the output of nm in a C name address pair when lib prefix is needed.
24093global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24094
d7040cdb
SE
24095# The name of the directory that contains temporary libtool files.
24096objdir=$objdir
24097
24098# Shell to use when invoking shell scripts.
24099SHELL=$lt_SHELL
24100
24101# An echo program that does not interpret backslashes.
24102ECHO=$lt_ECHO
24103
24104# Used to examine libraries when file_magic_cmd begins with "file".
24105MAGIC_CMD=$MAGIC_CMD
24106
24107# Must we lock files when doing compilation?
24108need_locks=$lt_need_locks
24109
718a6fd8
SE
24110# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24111DSYMUTIL=$lt_DSYMUTIL
24112
24113# Tool to change global to local symbols on Mac OS X.
24114NMEDIT=$lt_NMEDIT
24115
24116# Tool to manipulate fat objects and archives on Mac OS X.
24117LIPO=$lt_LIPO
24118
24119# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24120OTOOL=$lt_OTOOL
24121
24122# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24123OTOOL64=$lt_OTOOL64
24124
d7040cdb
SE
24125# Old archive suffix (normally "a").
24126libext=$libext
24127
24128# Shared library suffix (normally ".so").
24129shrext_cmds=$lt_shrext_cmds
24130
24131# The commands to extract the exported symbol list from a shared archive.
24132extract_expsyms_cmds=$lt_extract_expsyms_cmds
24133
24134# Variables whose values should be saved in libtool wrapper scripts and
24135# restored at link time.
24136variables_saved_for_relink=$lt_variables_saved_for_relink
24137
24138# Do we need the "lib" prefix for modules?
24139need_lib_prefix=$need_lib_prefix
24140
24141# Do we need a version for libraries?
24142need_version=$need_version
24143
24144# Library versioning type.
24145version_type=$version_type
24146
24147# Shared library runtime path variable.
24148runpath_var=$runpath_var
24149
24150# Shared library path variable.
24151shlibpath_var=$shlibpath_var
24152
24153# Is shlibpath searched before the hard-coded library search path?
24154shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24155
24156# Format of library name prefix.
24157libname_spec=$lt_libname_spec
24158
24159# List of archive names. First name is the real one, the rest are links.
24160# The last name is the one that the linker finds with -lNAME
24161library_names_spec=$lt_library_names_spec
24162
24163# The coded name of the library, if different from the real name.
24164soname_spec=$lt_soname_spec
24165
24166# Command to use after installation of a shared archive.
24167postinstall_cmds=$lt_postinstall_cmds
24168
24169# Command to use after uninstallation of a shared archive.
24170postuninstall_cmds=$lt_postuninstall_cmds
24171
24172# Commands used to finish a libtool library installation in a directory.
24173finish_cmds=$lt_finish_cmds
24174
24175# As "finish_cmds", except a single script fragment to be evaled but
24176# not shown.
24177finish_eval=$lt_finish_eval
24178
24179# Whether we should hardcode library paths into libraries.
24180hardcode_into_libs=$hardcode_into_libs
24181
24182# Compile-time system search path for libraries.
24183sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24184
24185# Run-time system search path for libraries.
24186sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24187
24188# Whether dlopen is supported.
24189dlopen_support=$enable_dlopen
24190
24191# Whether dlopen of programs is supported.
24192dlopen_self=$enable_dlopen_self
24193
24194# Whether dlopen of statically linked programs is supported.
24195dlopen_self_static=$enable_dlopen_self_static
24196
24197# Commands to strip libraries.
24198old_striplib=$lt_old_striplib
24199striplib=$lt_striplib
24200
24201
24202# The linker used to build libraries.
24203LD=$lt_LD
24204
24205# Commands used to build an old-style archive.
24206old_archive_cmds=$lt_old_archive_cmds
24207
24208# A language specific compiler.
24209CC=$lt_compiler
24210
24211# Is the compiler the GNU compiler?
24212with_gcc=$GCC
24213
24214# Compiler flag to turn off builtin functions.
24215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24216
24217# How to pass a linker flag through the compiler.
24218wl=$lt_lt_prog_compiler_wl
24219
24220# Additional compiler flags for building library objects.
24221pic_flag=$lt_lt_prog_compiler_pic
24222
24223# Compiler flag to prevent dynamic linking.
24224link_static_flag=$lt_lt_prog_compiler_static
24225
24226# Does compiler simultaneously support -c and -o options?
24227compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24228
24229# Whether or not to add -lc for building shared libraries.
24230build_libtool_need_lc=$archive_cmds_need_lc
24231
24232# Whether or not to disallow shared libs when runtime libs are static.
24233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24234
24235# Compiler flag to allow reflexive dlopens.
24236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24237
24238# Compiler flag to generate shared objects directly from archives.
24239whole_archive_flag_spec=$lt_whole_archive_flag_spec
24240
24241# Whether the compiler copes with passing no objects directly.
24242compiler_needs_object=$lt_compiler_needs_object
24243
24244# Create an old-style archive from a shared archive.
24245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24246
24247# Create a temporary old-style archive to link instead of a shared archive.
24248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24249
24250# Commands used to build a shared archive.
24251archive_cmds=$lt_archive_cmds
24252archive_expsym_cmds=$lt_archive_expsym_cmds
24253
24254# Commands used to build a loadable module if different from building
24255# a shared archive.
24256module_cmds=$lt_module_cmds
24257module_expsym_cmds=$lt_module_expsym_cmds
24258
24259# Whether we are building with GNU ld or not.
24260with_gnu_ld=$lt_with_gnu_ld
24261
24262# Flag that allows shared libraries with undefined symbols to be built.
24263allow_undefined_flag=$lt_allow_undefined_flag
24264
24265# Flag that enforces no undefined symbols.
24266no_undefined_flag=$lt_no_undefined_flag
24267
24268# Flag to hardcode \$libdir into a binary during linking.
24269# This must work even if \$libdir does not exist
24270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24271
24272# If ld is used when linking, flag to hardcode \$libdir into a binary
24273# during linking. This must work even if \$libdir does not exist.
24274hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24275
24276# Whether we need a single "-rpath" flag with a separated argument.
24277hardcode_libdir_separator=$lt_hardcode_libdir_separator
24278
24279# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24280# DIR into the resulting binary.
24281hardcode_direct=$hardcode_direct
24282
24283# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24284# DIR into the resulting binary and the resulting library dependency is
24285# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24286# library is relocated.
24287hardcode_direct_absolute=$hardcode_direct_absolute
24288
24289# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24290# into the resulting binary.
24291hardcode_minus_L=$hardcode_minus_L
24292
24293# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24294# into the resulting binary.
24295hardcode_shlibpath_var=$hardcode_shlibpath_var
24296
24297# Set to "yes" if building a shared library automatically hardcodes DIR
24298# into the library and all subsequent libraries and executables linked
24299# against it.
24300hardcode_automatic=$hardcode_automatic
24301
24302# Set to yes if linker adds runtime paths of dependent libraries
24303# to runtime path list.
24304inherit_rpath=$inherit_rpath
24305
24306# Whether libtool must link a program against all its dependency libraries.
24307link_all_deplibs=$link_all_deplibs
24308
24309# Fix the shell variable \$srcfile for the compiler.
24310fix_srcfile_path=$lt_fix_srcfile_path
24311
24312# Set to "yes" if exported symbols are required.
24313always_export_symbols=$always_export_symbols
24314
24315# The commands to list exported symbols.
24316export_symbols_cmds=$lt_export_symbols_cmds
24317
24318# Symbols that should not be listed in the preloaded symbols.
24319exclude_expsyms=$lt_exclude_expsyms
24320
24321# Symbols that must always be exported.
24322include_expsyms=$lt_include_expsyms
24323
24324# Commands necessary for linking programs (against libraries) with templates.
24325prelink_cmds=$lt_prelink_cmds
24326
24327# Specify filename containing input files.
24328file_list_spec=$lt_file_list_spec
24329
24330# How to hardcode a shared library path into an executable.
24331hardcode_action=$hardcode_action
24332
24333# ### END LIBTOOL CONFIG
24334
24335_LT_EOF
24336
24337 case $host_os in
24338 aix3*)
24339 cat <<\_LT_EOF >> "$cfgfile"
24340# AIX sometimes has problems with the GCC collect2 program. For some
24341# reason, if we set the COLLECT_NAMES environment variable, the problems
24342# vanish in a puff of smoke.
24343if test "X${COLLECT_NAMES+set}" != Xset; then
24344 COLLECT_NAMES=
24345 export COLLECT_NAMES
24346fi
24347_LT_EOF
24348 ;;
24349 esac
24350
24351
24352ltmain="$ac_aux_dir/ltmain.sh"
24353
24354
24355 # We use sed instead of cat because bash on DJGPP gets confused if
24356 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24357 # text mode, it properly converts lines to CR/LF. This bash problem
24358 # is reportedly fixed, but why not run on old versions too?
24359 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24360 || (rm -f "$cfgfile"; exit 1)
24361
24362 case $xsi_shell in
24363 yes)
24364 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24365
d7040cdb
SE
24366# func_dirname file append nondir_replacement
24367# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24368# otherwise set result to NONDIR_REPLACEMENT.
24369func_dirname ()
24370{
24371 case ${1} in
24372 */*) func_dirname_result="${1%/*}${2}" ;;
24373 * ) func_dirname_result="${3}" ;;
24374 esac
24375}
24376
24377# func_basename file
24378func_basename ()
24379{
24380 func_basename_result="${1##*/}"
24381}
24382
718a6fd8
SE
24383# func_dirname_and_basename file append nondir_replacement
24384# perform func_basename and func_dirname in a single function
24385# call:
24386# dirname: Compute the dirname of FILE. If nonempty,
24387# add APPEND to the result, otherwise set result
24388# to NONDIR_REPLACEMENT.
24389# value returned in "$func_dirname_result"
24390# basename: Compute filename of FILE.
24391# value retuned in "$func_basename_result"
24392# Implementation must be kept synchronized with func_dirname
24393# and func_basename. For efficiency, we do not delegate to
24394# those functions but instead duplicate the functionality here.
24395func_dirname_and_basename ()
24396{
24397 case ${1} in
24398 */*) func_dirname_result="${1%/*}${2}" ;;
24399 * ) func_dirname_result="${3}" ;;
24400 esac
24401 func_basename_result="${1##*/}"
24402}
24403
d7040cdb
SE
24404# func_stripname prefix suffix name
24405# strip PREFIX and SUFFIX off of NAME.
24406# PREFIX and SUFFIX must not contain globbing or regex special
24407# characters, hashes, percent signs, but SUFFIX may contain a leading
24408# dot (in which case that matches only a dot).
24409func_stripname ()
24410{
24411 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24412 # positional parameters, so assign one to ordinary parameter first.
24413 func_stripname_result=${3}
24414 func_stripname_result=${func_stripname_result#"${1}"}
24415 func_stripname_result=${func_stripname_result%"${2}"}
24416}
24417
24418# func_opt_split
24419func_opt_split ()
24420{
24421 func_opt_split_opt=${1%%=*}
24422 func_opt_split_arg=${1#*=}
24423}
24424
24425# func_lo2o object
24426func_lo2o ()
24427{
24428 case ${1} in
24429 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24430 *) func_lo2o_result=${1} ;;
24431 esac
24432}
718a6fd8
SE
24433
24434# func_xform libobj-or-source
24435func_xform ()
24436{
24437 func_xform_result=${1%.*}.lo
24438}
24439
24440# func_arith arithmetic-term...
24441func_arith ()
24442{
24443 func_arith_result=$(( $* ))
24444}
24445
24446# func_len string
24447# STRING may not start with a hyphen.
24448func_len ()
24449{
24450 func_len_result=${#1}
24451}
24452
d7040cdb
SE
24453_LT_EOF
24454 ;;
24455 *) # Bourne compatible functions.
24456 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 24457
d7040cdb
SE
24458# func_dirname file append nondir_replacement
24459# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24460# otherwise set result to NONDIR_REPLACEMENT.
24461func_dirname ()
24462{
24463 # Extract subdirectory from the argument.
24464 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24465 if test "X$func_dirname_result" = "X${1}"; then
24466 func_dirname_result="${3}"
24467 else
24468 func_dirname_result="$func_dirname_result${2}"
24469 fi
24470}
24471
24472# func_basename file
24473func_basename ()
24474{
24475 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24476}
24477
718a6fd8 24478
d7040cdb
SE
24479# func_stripname prefix suffix name
24480# strip PREFIX and SUFFIX off of NAME.
24481# PREFIX and SUFFIX must not contain globbing or regex special
24482# characters, hashes, percent signs, but SUFFIX may contain a leading
24483# dot (in which case that matches only a dot).
24484# func_strip_suffix prefix name
24485func_stripname ()
24486{
24487 case ${2} in
24488 .*) func_stripname_result=`$ECHO "X${3}" \
24489 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24490 *) func_stripname_result=`$ECHO "X${3}" \
24491 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24492 esac
24493}
24494
24495# sed scripts:
24496my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24497my_sed_long_arg='1s/^-[^=]*=//'
24498
24499# func_opt_split
24500func_opt_split ()
24501{
24502 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24503 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24504}
24505
24506# func_lo2o object
24507func_lo2o ()
24508{
24509 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24510}
718a6fd8
SE
24511
24512# func_xform libobj-or-source
24513func_xform ()
24514{
24515 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24516}
24517
24518# func_arith arithmetic-term...
24519func_arith ()
24520{
24521 func_arith_result=`expr "$@"`
24522}
24523
24524# func_len string
24525# STRING may not start with a hyphen.
24526func_len ()
24527{
24528 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24529}
24530
d7040cdb
SE
24531_LT_EOF
24532esac
24533
24534case $lt_shell_append in
24535 yes)
24536 cat << \_LT_EOF >> "$cfgfile"
24537
24538# func_append var value
24539# Append VALUE to the end of shell variable VAR.
24540func_append ()
24541{
24542 eval "$1+=\$2"
24543}
24544_LT_EOF
24545 ;;
24546 *)
24547 cat << \_LT_EOF >> "$cfgfile"
24548
24549# func_append var value
24550# Append VALUE to the end of shell variable VAR.
24551func_append ()
24552{
24553 eval "$1=\$$1\$2"
24554}
718a6fd8 24555
d7040cdb
SE
24556_LT_EOF
24557 ;;
24558 esac
24559
24560
24561 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24562 || (rm -f "$cfgfile"; exit 1)
24563
24564 mv -f "$cfgfile" "$ofile" ||
24565 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24566 chmod +x "$ofile"
24567
f5385ebf 24568 ;;
20e95c23
DJ
24569 default-1 )
24570 for ac_file in $CONFIG_FILES; do
24571 # Support "outfile[:infile[:infile...]]"
24572 case "$ac_file" in
24573 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24574 esac
24575 # PO directories have a Makefile.in generated from Makefile.in.in.
24576 case "$ac_file" in */Makefile.in)
24577 # Adjust a relative srcdir.
24578 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24579 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24580 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24581 # In autoconf-2.13 it is called $ac_given_srcdir.
24582 # In autoconf-2.50 it is called $srcdir.
24583 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24584 case "$ac_given_srcdir" in
24585 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24586 /*) top_srcdir="$ac_given_srcdir" ;;
24587 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24588 esac
24589 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24590 rm -f "$ac_dir/POTFILES"
24591 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24592 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24593 POMAKEFILEDEPS="POTFILES.in"
24594 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24595 # on $ac_dir but don't depend on user-specified configuration
24596 # parameters.
24597 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24598 # The LINGUAS file contains the set of available languages.
24599 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24600 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24601 fi
24602 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24603 # Hide the ALL_LINGUAS assigment from automake.
24604 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24605 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24606 else
24607 # The set of available languages was given in configure.in.
24608 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24609 fi
24610 case "$ac_given_srcdir" in
24611 .) srcdirpre= ;;
24612 *) srcdirpre='$(srcdir)/' ;;
24613 esac
24614 POFILES=
24615 GMOFILES=
24616 UPDATEPOFILES=
24617 DUMMYPOFILES=
24618 for lang in $ALL_LINGUAS; do
24619 POFILES="$POFILES $srcdirpre$lang.po"
24620 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24621 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24622 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24623 done
24624 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24625 # environment variable.
24626 INST_LINGUAS=
24627 if test -n "$ALL_LINGUAS"; then
24628 for presentlang in $ALL_LINGUAS; do
24629 useit=no
24630 if test "%UNSET%" != "$LINGUAS"; then
24631 desiredlanguages="$LINGUAS"
24632 else
24633 desiredlanguages="$ALL_LINGUAS"
24634 fi
24635 for desiredlang in $desiredlanguages; do
24636 # Use the presentlang catalog if desiredlang is
24637 # a. equal to presentlang, or
24638 # b. a variant of presentlang (because in this case,
24639 # presentlang can be used as a fallback for messages
24640 # which are not translated in the desiredlang catalog).
24641 case "$desiredlang" in
24642 "$presentlang"*) useit=yes;;
24643 esac
24644 done
24645 if test $useit = yes; then
24646 INST_LINGUAS="$INST_LINGUAS $presentlang"
24647 fi
24648 done
24649 fi
24650 CATALOGS=
24651 if test -n "$INST_LINGUAS"; then
24652 for lang in $INST_LINGUAS; do
24653 CATALOGS="$CATALOGS $lang.gmo"
24654 done
24655 fi
24656 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24657 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"
24658 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24659 if test -f "$f"; then
24660 case "$f" in
24661 *.orig | *.bak | *~) ;;
24662 *) cat "$f" >> "$ac_dir/Makefile" ;;
24663 esac
24664 fi
24665 done
24666 fi
24667 ;;
24668 esac
24669 done ;;
d5efd9fc
AM
24670 bfd_stdint.h )
24671if test "$GCC" = yes; then
24672 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24673else
24674 echo "/* generated for $CC */" > tmp-stdint.h
24675fi
24676
24677sed 's/^ *//' >> tmp-stdint.h <<EOF
24678
24679 #ifndef GCC_GENERATED_STDINT_H
24680 #define GCC_GENERATED_STDINT_H 1
24681
24682 #include <sys/types.h>
24683EOF
24684
24685if test "$acx_cv_header_stdint" != stdint.h; then
24686 echo "#include <stddef.h>" >> tmp-stdint.h
24687fi
24688if test "$acx_cv_header_stdint" != stddef.h; then
24689 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24690fi
24691
24692sed 's/^ *//' >> tmp-stdint.h <<EOF
24693 /* glibc uses these symbols as guards to prevent redefinitions. */
24694 #ifdef __int8_t_defined
24695 #define _INT8_T
24696 #define _INT16_T
24697 #define _INT32_T
24698 #endif
24699 #ifdef __uint32_t_defined
24700 #define _UINT32_T
24701 #endif
24702
24703EOF
24704
24705# ----------------- done header, emit basic int types -------------
24706if test "$acx_cv_header_stdint" = stddef.h; then
24707 sed 's/^ *//' >> tmp-stdint.h <<EOF
24708
24709 #ifndef _UINT8_T
24710 #define _UINT8_T
24711 #ifndef __uint8_t_defined
24712 #define __uint8_t_defined
24713 typedef unsigned $acx_cv_type_int8_t uint8_t;
24714 #endif
24715 #endif
24716
24717 #ifndef _UINT16_T
24718 #define _UINT16_T
24719 #ifndef __uint16_t_defined
24720 #define __uint16_t_defined
24721 typedef unsigned $acx_cv_type_int16_t uint16_t;
24722 #endif
24723 #endif
24724
24725 #ifndef _UINT32_T
24726 #define _UINT32_T
24727 #ifndef __uint32_t_defined
24728 #define __uint32_t_defined
24729 typedef unsigned $acx_cv_type_int32_t uint32_t;
24730 #endif
24731 #endif
24732
24733 #ifndef _INT8_T
24734 #define _INT8_T
24735 #ifndef __int8_t_defined
24736 #define __int8_t_defined
24737 typedef $acx_cv_type_int8_t int8_t;
24738 #endif
24739 #endif
24740
24741 #ifndef _INT16_T
24742 #define _INT16_T
24743 #ifndef __int16_t_defined
24744 #define __int16_t_defined
24745 typedef $acx_cv_type_int16_t int16_t;
24746 #endif
24747 #endif
24748
24749 #ifndef _INT32_T
24750 #define _INT32_T
24751 #ifndef __int32_t_defined
24752 #define __int32_t_defined
24753 typedef $acx_cv_type_int32_t int32_t;
24754 #endif
24755 #endif
24756EOF
24757elif test "$ac_cv_type_u_int32_t" = yes; then
24758 sed 's/^ *//' >> tmp-stdint.h <<EOF
24759
24760 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24761 #ifndef _INT8_T
24762 #define _INT8_T
24763 #endif
24764 #ifndef _INT16_T
24765 #define _INT16_T
24766 #endif
24767 #ifndef _INT32_T
24768 #define _INT32_T
24769 #endif
24770
24771 #ifndef _UINT8_T
24772 #define _UINT8_T
24773 #ifndef __uint8_t_defined
24774 #define __uint8_t_defined
24775 typedef u_int8_t uint8_t;
24776 #endif
24777 #endif
24778
24779 #ifndef _UINT16_T
24780 #define _UINT16_T
24781 #ifndef __uint16_t_defined
24782 #define __uint16_t_defined
24783 typedef u_int16_t uint16_t;
24784 #endif
24785 #endif
24786
24787 #ifndef _UINT32_T
24788 #define _UINT32_T
24789 #ifndef __uint32_t_defined
24790 #define __uint32_t_defined
24791 typedef u_int32_t uint32_t;
24792 #endif
24793 #endif
24794EOF
24795else
24796 sed 's/^ *//' >> tmp-stdint.h <<EOF
24797
24798 /* Some systems have guard macros to prevent redefinitions, define them. */
24799 #ifndef _INT8_T
24800 #define _INT8_T
24801 #endif
24802 #ifndef _INT16_T
24803 #define _INT16_T
24804 #endif
24805 #ifndef _INT32_T
24806 #define _INT32_T
24807 #endif
24808 #ifndef _UINT8_T
24809 #define _UINT8_T
24810 #endif
24811 #ifndef _UINT16_T
24812 #define _UINT16_T
24813 #endif
24814 #ifndef _UINT32_T
24815 #define _UINT32_T
24816 #endif
24817EOF
24818fi
24819
24820# ------------- done basic int types, emit int64_t types ------------
24821if test "$ac_cv_type_uint64_t" = yes; then
24822 sed 's/^ *//' >> tmp-stdint.h <<EOF
24823
24824 /* system headers have good uint64_t and int64_t */
24825 #ifndef _INT64_T
24826 #define _INT64_T
24827 #endif
24828 #ifndef _UINT64_T
24829 #define _UINT64_T
24830 #endif
24831EOF
24832elif test "$ac_cv_type_u_int64_t" = yes; then
24833 sed 's/^ *//' >> tmp-stdint.h <<EOF
24834
24835 /* system headers have an u_int64_t (and int64_t) */
24836 #ifndef _INT64_T
24837 #define _INT64_T
24838 #endif
24839 #ifndef _UINT64_T
24840 #define _UINT64_T
24841 #ifndef __uint64_t_defined
24842 #define __uint64_t_defined
24843 typedef u_int64_t uint64_t;
24844 #endif
24845 #endif
24846EOF
24847elif test -n "$acx_cv_type_int64_t"; then
24848 sed 's/^ *//' >> tmp-stdint.h <<EOF
24849
24850 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24851 #ifndef _INT64_T
24852 #define _INT64_T
24853 typedef $acx_cv_type_int64_t int64_t;
24854 #endif
24855 #ifndef _UINT64_T
24856 #define _UINT64_T
24857 #ifndef __uint64_t_defined
24858 #define __uint64_t_defined
24859 typedef unsigned $acx_cv_type_int64_t uint64_t;
24860 #endif
24861 #endif
24862EOF
24863else
24864 sed 's/^ *//' >> tmp-stdint.h <<EOF
24865
24866 /* some common heuristics for int64_t, using compiler-specific tests */
24867 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24868 #ifndef _INT64_T
24869 #define _INT64_T
24870 #ifndef __int64_t_defined
24871 typedef long long int64_t;
24872 #endif
24873 #endif
24874 #ifndef _UINT64_T
24875 #define _UINT64_T
24876 typedef unsigned long long uint64_t;
24877 #endif
24878
24879 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24880 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24881 does not implement __extension__. But that compiler doesn't define
24882 __GNUC_MINOR__. */
24883 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24884 # define __extension__
24885 # endif
24886
24887 # ifndef _INT64_T
24888 # define _INT64_T
24889 __extension__ typedef long long int64_t;
24890 # endif
24891 # ifndef _UINT64_T
24892 # define _UINT64_T
24893 __extension__ typedef unsigned long long uint64_t;
24894 # endif
24895
24896 #elif !defined __STRICT_ANSI__
24897 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24898
24899 # ifndef _INT64_T
24900 # define _INT64_T
24901 typedef __int64 int64_t;
24902 # endif
24903 # ifndef _UINT64_T
24904 # define _UINT64_T
24905 typedef unsigned __int64 uint64_t;
24906 # endif
24907 # endif /* compiler */
24908
24909 #endif /* ANSI version */
24910EOF
24911fi
24912
24913# ------------- done int64_t types, emit intptr types ------------
24914if test "$ac_cv_type_uintptr_t" != yes; then
24915 sed 's/^ *//' >> tmp-stdint.h <<EOF
24916
24917 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24918 #ifndef __uintptr_t_defined
24919 typedef u$acx_cv_type_intptr_t uintptr_t;
24920 #endif
24921 #ifndef __intptr_t_defined
24922 typedef $acx_cv_type_intptr_t intptr_t;
24923 #endif
24924EOF
24925fi
24926
24927# ------------- done intptr types, emit int_least types ------------
24928if test "$ac_cv_type_int_least32_t" != yes; then
24929 sed 's/^ *//' >> tmp-stdint.h <<EOF
24930
24931 /* Define int_least types */
24932 typedef int8_t int_least8_t;
24933 typedef int16_t int_least16_t;
24934 typedef int32_t int_least32_t;
24935 #ifdef _INT64_T
24936 typedef int64_t int_least64_t;
24937 #endif
24938
24939 typedef uint8_t uint_least8_t;
24940 typedef uint16_t uint_least16_t;
24941 typedef uint32_t uint_least32_t;
24942 #ifdef _UINT64_T
24943 typedef uint64_t uint_least64_t;
24944 #endif
24945EOF
24946fi
24947
24948# ------------- done intptr types, emit int_fast types ------------
24949if test "$ac_cv_type_int_fast32_t" != yes; then
24950 sed 's/^ *//' >> tmp-stdint.h <<EOF
24951
24952 /* Define int_fast types. short is often slow */
24953 typedef int8_t int_fast8_t;
24954 typedef int int_fast16_t;
24955 typedef int32_t int_fast32_t;
24956 #ifdef _INT64_T
24957 typedef int64_t int_fast64_t;
24958 #endif
24959
24960 typedef uint8_t uint_fast8_t;
24961 typedef unsigned int uint_fast16_t;
24962 typedef uint32_t uint_fast32_t;
24963 #ifdef _UINT64_T
24964 typedef uint64_t uint_fast64_t;
24965 #endif
24966EOF
24967fi
24968
24969if test "$ac_cv_type_uintmax_t" != yes; then
24970 sed 's/^ *//' >> tmp-stdint.h <<EOF
24971
24972 /* Define intmax based on what we found */
24973 #ifdef _INT64_T
24974 typedef int64_t intmax_t;
24975 #else
24976 typedef long intmax_t;
24977 #endif
24978 #ifdef _UINT64_T
24979 typedef uint64_t uintmax_t;
24980 #else
24981 typedef unsigned long uintmax_t;
24982 #endif
24983EOF
24984fi
24985
24986sed 's/^ *//' >> tmp-stdint.h <<EOF
24987
24988 #endif /* GCC_GENERATED_STDINT_H */
24989EOF
24990
24991if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
24992 rm -f tmp-stdint.h
24993else
24994 mv -f tmp-stdint.h bfd_stdint.h
24995fi
24996
24997 ;;
20e95c23
DJ
24998 default )
24999case "$srcdir" in
25000 .) srcdirpre= ;;
25001 *) srcdirpre='$(srcdir)/' ;;
25002esac
25003POFILES=
25004GMOFILES=
25005for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25006 if test $lang != dummy; then
25007 POFILES="$POFILES $srcdirpre$lang.po"
25008 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25009 fi
25010done
25011sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25012 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25013 -e "s,@POFILES@,$POFILES," \
25014 -e "s,@GMOFILES@,$GMOFILES," \
25015 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
25016 esac
25017done
25018_ACEOF
25019
25020cat >>$CONFIG_STATUS <<\_ACEOF
25021
25022{ (exit 0); exit 0; }
25023_ACEOF
252b5132 25024chmod +x $CONFIG_STATUS
5464f5a1
NN
25025ac_clean_files=$ac_clean_files_save
25026
25027
25028# configure is writing to config.log, and then calls config.status.
25029# config.status does its own redirection, appending to config.log.
25030# Unfortunately, on DOS this fails, as config.log is still kept open
25031# by configure, so config.status won't be able to write to it; its
25032# output is simply discarded. So we exec the FD to /dev/null,
25033# effectively closing config.log, so it can be properly (re)opened and
25034# appended to by config.status. When coming back to configure, we
25035# need to make the FD available again.
25036if test "$no_create" != yes; then
25037 ac_cs_success=:
25038 ac_config_status_args=
25039 test "$silent" = yes &&
25040 ac_config_status_args="$ac_config_status_args --quiet"
25041 exec 5>/dev/null
25042 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25043 exec 5>>config.log
25044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25045 # would make configure fail if this is the last instruction.
25046 $ac_cs_success || { (exit 1); exit 1; }
25047fi
252b5132 25048
55c80943 25049
This page took 1.946687 seconds and 4 git commands to generate.